-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
69 lines (65 loc) · 1.37 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
const make = require('./make');
const view = require('./view');
const router = require('./router');
const common = require('./common');
const binder = require('./binder');
const loader = require('./loader');
const session = require('./session');
const request = require('./request');
const get = require('./get');
const wet = require('./wet');
const validate = require('./validate');
const set = require('./set');
const add = require('./add');
const data = require('./data');
const time = require('./time');
const params = require('./params');
const meta = require('./meta');
const sketch = require('./sketch');
const ui = require("./ui");
const md5 = require('md5');
const uniqid = require('uniqid');
//common.tell('one');
let hooks = {
pages:{},
conts:{},
panels:{},
comps:{}
};
module.exports = {
ui:ui,
sketch:sketch,
meta:meta,
add:add,
binder:binder,
make:make,
view:view,
router:router,
common:common,
loader:loader,
session:session,
request:request.send,
validate:validate,
get:get,
wet:wet,
set:set,
data:data,
time:time,
params:params,
global:{
function:{},
comp:new Proxy({},{
set(obj, prop, value){
obj[prop] = value;
if(hooks.comps.hasOwnProperty(prop) == true){
hooks.comps[prop]();
}
}
}),
object:{}
},
hooks:hooks,
md5:md5,
uniqid:uniqid,
app_version:null
};