Rename common.js to login.js

This commit is contained in:
Yukai Huang 2017-01-13 22:51:44 +08:00
parent c2a8911b9c
commit 0fca629c34
5 changed files with 14 additions and 7 deletions

View File

@ -9,7 +9,7 @@ import {
getLoginState,
resetCheckAuth,
setloginStateChangeEvent
} from './common';
} from './lib/common/login';
import {
clearDuplicatedHistory,

View File

@ -11,7 +11,7 @@ import PDFObject from 'pdfobject';
import S from 'string';
import { saveAs } from 'file-saver';
require('./common');
require('./lib/common/login');
require('../vendor/md-toc');
var Viz = require("viz.js");

View File

@ -1,9 +1,13 @@
import store from 'store';
import S from 'string';
import {
checkIfAuth
} from './lib/common/login';
import {
checkIfAuth,
urlpath
} from './common';
} from './lib/config';
window.migrateHistoryFromTempCallback = null;

View File

@ -19,7 +19,10 @@ var List = require('list.js');
import {
checkLoginStateChanged,
setloginStateChangeEvent,
setloginStateChangeEvent
} from './lib/common/login';
import {
debug,
DROPBOX_APP_KEY,
GOOGLE_API_KEY,
@ -28,7 +31,7 @@ import {
noteurl,
urlpath,
version
} from './common';
} from './lib/config';
import {
autoLinkify,

View File

@ -1,4 +1,4 @@
import { serverurl } from './lib/config';
import { serverurl } from '../config';
let checkAuth = false;
let profile = null;