client: lint
This commit is contained in:
parent
7ce651cad0
commit
034542f5e2
17 changed files with 19 additions and 20 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import cache from './managers/cache'
|
||||
|
||||
var session, state, editor, ipc
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
session = (await import('./managers/session/')).default
|
||||
state = (await import('./managers/state')).default
|
||||
editor = (await import('./editor/')).default
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import locales from '../locales'
|
|||
import ContextMenu from '../ui/context-menu'
|
||||
|
||||
var sessionManager
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
sessionManager = (await import('../managers/session')).default
|
||||
})()
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import parser from '../parser'
|
|||
import * as resize from '../events/resize'
|
||||
|
||||
var Panel, Matrix, editor
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
Panel = (await import('../widgets/containers/panel')).default
|
||||
Matrix = (await import('../widgets/containers/matrix')).default
|
||||
editor = (await import('./')).default
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import domEvent from './dom-event'
|
||||
|
||||
var customEvents = {}
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
customEvents['draginit'] = customEvents['drag'] = customEvents['dragend'] = await import('./drag')
|
||||
customEvents['resize'] = await import('./resize')
|
||||
customEvents['wheel'] = domEvent('wheel')
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import cache from '../managers/cache'
|
|||
import {nanoid} from 'nanoid'
|
||||
|
||||
var notifications, locales, callbacks
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
notifications = (await import('../ui/notifications')).default
|
||||
locales = (await import('../locales')).default
|
||||
callbacks = (await import('./callbacks')).default
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ var Osc = class Osc extends EventEmitter {
|
|||
this.remoteControl = {}
|
||||
this.serverTargets = []
|
||||
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
this.remoteControl = (await import('./remote-control')).default
|
||||
})()
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ var Parser = class Parser {
|
|||
this.widgets = {}
|
||||
this.defaults = {}
|
||||
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
this.widgets = (await import('./widgets/')).widgets
|
||||
for (var k in this.widgets) {
|
||||
this.defaults[k] = this.widgets[k].defaults()._props()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import StackTrace from 'stacktrace-js'
|
|||
import ipc from './ipc'
|
||||
|
||||
var uiConsole
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
uiConsole = (await import('./ui/ui-console')).default
|
||||
})()
|
||||
|
||||
|
|
|
|||
|
|
@ -230,9 +230,9 @@ var menuEntries = [
|
|||
if (navigator.userAgent.match(/Android|iPhone|iPad|iPod/i)) {
|
||||
|
||||
|
||||
var noSleep = new NoSleep(),
|
||||
noSleepState = false,
|
||||
wakeLock = null
|
||||
var noSleep = new NoSleep(),
|
||||
noSleepState = false,
|
||||
wakeLock = null
|
||||
|
||||
menuEntries.push({
|
||||
label: locales('nosleep'),
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import html from 'nanohtml/lib/browser'
|
|||
import fastdom from 'fastdom'
|
||||
|
||||
var Tab, Root, Folder
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
Tab = (await import('../widgets/containers/tab')).default
|
||||
Root = (await import('../widgets/containers/root')).default
|
||||
Folder = (await import('../widgets/containers/folder')).default
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import locales from '../locales'
|
|||
import getCodeEditor from './ui-code-editor'
|
||||
|
||||
var editor
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
mainMenu = (await import('../editor')).default
|
||||
})()
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {icon} from './utils'
|
|||
import {widgets, categories} from '../widgets'
|
||||
|
||||
var Root, Panel, Matrix, Keyboard, widgetManager
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
Root = (await import('../widgets/containers/root')).default
|
||||
Panel = (await import('../widgets/containers/panel')).default
|
||||
Matrix = (await import('../widgets/containers/matrix')).default
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import Script from '../scripts/script'
|
|||
var updateWidget = ()=>{},
|
||||
uiConsole, widgetTree, widgetDragResize, sessionManager
|
||||
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
updateWidget = (await import('../../editor/data-workers')).updateWidget
|
||||
uiConsole = (await import('../../ui/ui-console')).default
|
||||
widgetTree = (await import('../../editor')).default.widgetTree
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import html from 'nanohtml/lib/browser'
|
|||
import Session from '../../managers/session/session'
|
||||
|
||||
var sessionManager
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
sessionManager = (await import('../../managers/session')).default
|
||||
})()
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import StaticProperties from '../mixins/static_properties'
|
|||
import {updateMobileThemeColor} from '../../ui/utils'
|
||||
|
||||
var mainMenu
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
mainMenu = (await import('../../ui/main-menu')).default
|
||||
})()
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import ipc from '../../ipc'
|
|||
import uiFilebrowser from '../../ui/ui-filebrowser'
|
||||
|
||||
var toolbar
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
toolbar = (await import('../../ui/main-menu')).default
|
||||
})()
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import loopProtect from 'loop-protect'
|
|||
import {deepCopy} from '../utils'
|
||||
|
||||
var sessionManager
|
||||
;(async ()=>{
|
||||
;(async()=>{
|
||||
sessionManager = (await import('../managers/session')).default
|
||||
})()
|
||||
|
||||
|
|
@ -16,7 +16,6 @@ class Vm {
|
|||
this.widget = []
|
||||
|
||||
if (!globals) {
|
||||
var sessionManager
|
||||
globals = {
|
||||
screen: {
|
||||
get width() {return screen.width},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue