Skip to content

Commit

Permalink
chore: use licia module directly
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Sep 10, 2021
1 parent d43ec69 commit 4d16ffe
Show file tree
Hide file tree
Showing 14 changed files with 2,675 additions and 8,633 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

6 changes: 2 additions & 4 deletions .eustia.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
module.exports = {
eruda: {
fione: {
library: ['fione', 'node_modules/eustia-module'],
files: 'src/**/*.js',
ignore: 'src/**/stringify.js',
output: 'src/lib/util.js',
exclude: ['createCfg'],
output: 'src/lib/fione.js',
format: 'es',
},
test: {
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
src/lib/util.js
test/util.js
src/lib/fione.js
eruda.js
eruda.min.js
2 changes: 1 addition & 1 deletion src/Console/Log.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
isPrimitive,
wrap,
defaults,
getObjType,
isEl,
toStr,
toNum,
Expand All @@ -35,6 +34,7 @@ import {
nextTick,
linkify,
} from '../lib/util'
import { getObjType } from '../lib/fione'
import evalCss from '../lib/evalCss'

export default class Log extends Emitter {
Expand Down
2 changes: 1 addition & 1 deletion src/Elements/Elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
isFn,
isBool,
safeGet,
pxToNum,
isNaN,
isNum,
nextTick,
Expand All @@ -29,6 +28,7 @@ import {
lowerCase,
pick,
} from '../lib/util'
import { pxToNum } from '../lib/fione'
import { isErudaEl } from '../lib/extraUtil'
import evalCss from '../lib/evalCss'

Expand Down
3 changes: 2 additions & 1 deletion src/Elements/Highlight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { $, pxToNum, isStr, each, trim } from '../lib/util'
import { $, isStr, each, trim } from '../lib/util'
import { pxToNum } from '../lib/fione'
import evalCss from '../lib/evalCss'

export default class Highlight {
Expand Down
3 changes: 2 additions & 1 deletion src/EntryBtn/EntryBtn.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Draggabilly from 'draggabilly'
import emitter from '../lib/emitter'
import Settings from '../Settings/Settings'
import { Emitter, nextTick, pxToNum, orientation } from '../lib/util'
import { Emitter, nextTick, orientation } from '../lib/util'
import { pxToNum } from '../lib/fione'
import evalCss from '../lib/evalCss'

export default class EntryBtn extends Emitter {
Expand Down
3 changes: 2 additions & 1 deletion src/Network/Network.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Tool from '../DevTools/Tool'
import { getFileName, isEmpty, $, ms, trim, each, last } from '../lib/util'
import { isEmpty, $, ms, trim, each, last } from '../lib/util'
import { getFileName } from '../lib/fione'
import evalCss from '../lib/evalCss'
import chobitsu from 'chobitsu'

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Settings from '../Settings/Settings'
import {
$,
unique,
safeStorage,
each,
isStr,
startWith,
Expand All @@ -20,6 +19,7 @@ import {
filter,
map,
} from '../lib/util'
import { safeStorage } from '../lib/fione'
import { isErudaEl } from '../lib/extraUtil'
import evalCss from '../lib/evalCss'
import chobitsu from 'chobitsu'
Expand Down
2 changes: 1 addition & 1 deletion src/Snippets/defSnippets.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import emitter from '../lib/emitter'
import {
Url,
now,
safeStorage,
each,
isStr,
startWith,
Expand All @@ -12,6 +11,7 @@ import {
loadJs,
trim,
} from '../lib/util'
import { safeStorage } from '../lib/fione'
import { isErudaEl } from '../lib/extraUtil'
import evalCss from '../lib/evalCss'

Expand Down
2 changes: 1 addition & 1 deletion src/eruda.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Settings from './Settings/Settings'
import emitter from './lib/emitter'
import logger from './lib/logger'
import extraUtil from './lib/extraUtil'
import util from './lib/util'
import * as util from './lib/util'
import {
isFn,
isNum,
Expand Down
Loading

0 comments on commit 4d16ffe

Please sign in to comment.