mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(CloudFunc) window.CloudFunc -> require
This commit is contained in:
parent
62899daa17
commit
ebe0183de0
8 changed files with 53 additions and 39 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* global CloudCmd, CloudFunc */
|
||||
/* global CloudCmd */
|
||||
|
||||
'use strict';
|
||||
|
||||
|
|
@ -6,6 +6,8 @@ const exec = require('execon');
|
|||
const currify = require('currify/legacy');
|
||||
|
||||
const load = require('../dom/load');
|
||||
|
||||
const {MAX_FILE_SIZE: maxSize} = require('../../common/cloudfunc');
|
||||
const {time, timeEnd} = require('../../common/util');
|
||||
|
||||
CloudCmd.Edit = EditProto;
|
||||
|
|
@ -97,8 +99,6 @@ function EditProto(callback) {
|
|||
|
||||
function _loadFiles(element, callback) {
|
||||
const socketPath = CloudCmd.PREFIX;
|
||||
const maxSize = CloudFunc.MAX_FILE_SIZE;
|
||||
|
||||
const prefix = socketPath + '/' + EditorName;
|
||||
const url = prefix + '/' + EditorName + '.js';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue