Rename common.js to login.js
This commit is contained in:
parent
c2a8911b9c
commit
0fca629c34
5 changed files with 14 additions and 7 deletions
|
@ -9,7 +9,7 @@ import {
|
||||||
getLoginState,
|
getLoginState,
|
||||||
resetCheckAuth,
|
resetCheckAuth,
|
||||||
setloginStateChangeEvent
|
setloginStateChangeEvent
|
||||||
} from './common';
|
} from './lib/common/login';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
clearDuplicatedHistory,
|
clearDuplicatedHistory,
|
||||||
|
|
|
@ -11,7 +11,7 @@ import PDFObject from 'pdfobject';
|
||||||
import S from 'string';
|
import S from 'string';
|
||||||
import { saveAs } from 'file-saver';
|
import { saveAs } from 'file-saver';
|
||||||
|
|
||||||
require('./common');
|
require('./lib/common/login');
|
||||||
require('../vendor/md-toc');
|
require('../vendor/md-toc');
|
||||||
var Viz = require("viz.js");
|
var Viz = require("viz.js");
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
import store from 'store';
|
import store from 'store';
|
||||||
import S from 'string';
|
import S from 'string';
|
||||||
|
|
||||||
|
import {
|
||||||
|
checkIfAuth
|
||||||
|
} from './lib/common/login';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
checkIfAuth,
|
|
||||||
urlpath
|
urlpath
|
||||||
} from './common';
|
} from './lib/config';
|
||||||
|
|
||||||
window.migrateHistoryFromTempCallback = null;
|
window.migrateHistoryFromTempCallback = null;
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,10 @@ var List = require('list.js');
|
||||||
|
|
||||||
import {
|
import {
|
||||||
checkLoginStateChanged,
|
checkLoginStateChanged,
|
||||||
setloginStateChangeEvent,
|
setloginStateChangeEvent
|
||||||
|
} from './lib/common/login';
|
||||||
|
|
||||||
|
import {
|
||||||
debug,
|
debug,
|
||||||
DROPBOX_APP_KEY,
|
DROPBOX_APP_KEY,
|
||||||
GOOGLE_API_KEY,
|
GOOGLE_API_KEY,
|
||||||
|
@ -28,7 +31,7 @@ import {
|
||||||
noteurl,
|
noteurl,
|
||||||
urlpath,
|
urlpath,
|
||||||
version
|
version
|
||||||
} from './common';
|
} from './lib/config';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
autoLinkify,
|
autoLinkify,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { serverurl } from './lib/config';
|
import { serverurl } from '../config';
|
||||||
|
|
||||||
let checkAuth = false;
|
let checkAuth = false;
|
||||||
let profile = null;
|
let profile = null;
|
Loading…
Add table
Reference in a new issue