move common files to folder /common/

This commit is contained in:
igoradamenko
2018-01-23 20:15:35 +02:00
parent fa821cb5e1
commit 26e2445913
7 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { h, render } from 'preact';
import 'babel-polyfill'; // TODO: remove it
import 'mimic'; // TODO: it's for dev only
import './polyfills'; // TODO: check it
import 'common/polyfills'; // TODO: check it
import Root from './components/root';
@@ -1,4 +1,4 @@
import './promises';
import 'common/promises';
// TODO: i think we need to use unfetch here instead of heavy axios
import axios from 'axios';
+1 -1
View File
@@ -1,5 +1,5 @@
import { Component } from 'preact';
import fetcher from 'fetcher';
import fetcher from 'common/fetcher';
export default class Root extends Component {
componentDidMount() {
+2 -4
View File
@@ -1,8 +1,6 @@
import tmpl from 'blueimp-tmpl';
import { nodeId } from './common/settings';
import { nodeId } from './settings';
import fetcher from './fetcher';
import fetcher from './common/fetcher';
let node = null;
let afterInit = null;