Replaced absolute import paths with relative paths

This commit is contained in:
JubbeArt 2018-07-28 16:58:45 +02:00
parent e992dd9425
commit 9a151080e1
6 changed files with 7 additions and 13 deletions

View file

@ -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=`

View file

@ -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) {

View file

@ -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 = {}

View file

@ -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) {

View file

@ -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 = {

View file

@ -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: [
{