-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathjsbox.config.js
55 lines (52 loc) · 1.61 KB
/
jsbox.config.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
/*
* @Author: chenzhongsheng
* @Date: 2025-01-23 01:29:22
* @Description: Coding something
*/
'use strict';
/*
此为测试文件
*/
window.jsboxConfig = {
libs: {
// 'cnchar': 'https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.latest.min.js',
// 'jQuery': 'https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js',
// 'easy-icon': {
// type: 'style',
// versio: '1.0.1',
// url: 'https://cdn.jsdelivr.net/gh/theajack/easy-icon/dist/easy-icon.min.css'
// },
'jsbox.cnchar': '',
'cnchar-order': 'jsbox.cnchar-order'
},
codes: {
//
'helloWorld': {
code: 'console.log("Hello world")',
needUI: true,
hideLog: true,
},
//
'helloWorld2': {
code: 'console.log("Hello world")',
needUI: false,
},
'helloWorldHtml': {
lang: 'html',
code: '<h1>Hello world</h1>',
hideLog: true,
},
// 默认使用上面定义的所有依赖
'testCnchar': {
desc: '测试',
code: 'cnchar.spell("你好")',
dep: ['cnchar-order'] // 定义依赖,优先从当前文件中查找,如果没有会尝试在jsbox预定义库中查找
},
'test': {
lang: 'html',
code: '<div>111</div><script>cnchar.spell("你好")</script>',
dep: ['cnchar-order'] // 定义依赖,优先从当前文件中查找,如果没有会尝试在jsbox预定义库中查找
}
}
};
// https://cdn.jsdelivr.net/npm/virtual-dom@2.1.1/dist/virtual-dom.js