mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Replaced absolute import paths with relative paths
This commit is contained in:
parent
e992dd9425
commit
9a151080e1
6 changed files with 7 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { toBase10, toBase36 } from 'utils'
|
||||
import { toBase10, toBase36 } from '../../utils'
|
||||
|
||||
const baseURL = 'https://elastic.pushshift.io'
|
||||
const postURL = `${baseURL}/rs/submissions/_search?source=`
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { prettyScore, prettyDate, parse, redditThumbnails, isDeleted } from 'utils'
|
||||
import { prettyScore, prettyDate, parse, redditThumbnails, isDeleted } from '../../utils'
|
||||
|
||||
export default (props) => {
|
||||
if (!props.title) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {connect, sort, filter} from '../../state'
|
|||
import {
|
||||
topSort, bottomSort, newSort, oldSort,
|
||||
showRemovedAndDeleted, showRemoved, showDeleted
|
||||
} from 'utils'
|
||||
} from '../../utils'
|
||||
|
||||
const arrayToLookup = (commentList, removed, deleted) => {
|
||||
const lookup = {}
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@ import CommentSection from './CommentSection'
|
|||
import {
|
||||
getPost,
|
||||
getComments as getRedditComments
|
||||
} from 'api/reddit'
|
||||
} from '../../api/reddit'
|
||||
import {
|
||||
getPost as getRemovedPost,
|
||||
getComments as getPushshiftComments
|
||||
} from 'api/pushshift'
|
||||
import { isDeleted, isRemoved } from 'utils'
|
||||
} from '../../api/pushshift'
|
||||
import { isDeleted, isRemoved } from '../../utils'
|
||||
|
||||
export default class Thread extends React.Component {
|
||||
constructor (props) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react'
|
||||
import { Subscribe, Container } from 'unstated'
|
||||
import { get, put } from 'utils'
|
||||
import { get, put } from '../utils'
|
||||
|
||||
// Sort types for comments
|
||||
export const sort = {
|
||||
|
|
|
|||
|
|
@ -11,12 +11,6 @@ module.exports = {
|
|||
historyApiFallback: true
|
||||
},
|
||||
devtool: 'cheap-module-eval-source-map',
|
||||
resolve: {
|
||||
modules: [
|
||||
path.resolve(__dirname, 'src'),
|
||||
path.resolve(__dirname, 'node_modules')
|
||||
]
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue