-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcdn.js
35 lines (32 loc) · 1.03 KB
/
cdn.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
/**
* 存储项目中所用到的cdn路径
*/
const externalLinks = {
stylus: 'https://cdn.bootcdn.net/ajax/libs/stylus/0.32.1/stylus.js',
typeScript: 'https://cdn.jsdelivr.net/npm/browserified-typescript@0.3.0/index.js',
coffeeScript: 'https://cdn.jsdelivr.net/npm/coffeescript@2.5.1/lib/coffeescript-browser-compiler-legacy/coffeescript.js',
babel: 'https://cdn.staticfile.org/babel-standalone/6.26.0/babel.min.js'
}
const iframeLinks = {
mdCSS: [
'/images/markdown-style.css',
'https://cdn.staticfile.org/KaTeX/0.13.13/katex.css'
],
mdJS: [
'https://cdn.staticfile.org/raphael/2.3.0/raphael.min.js',
'https://cdn.staticfile.org/flowchart/1.15.0/flowchart.min.js',
'https://cdn.staticfile.org/KaTeX/0.13.13/katex.min.js',
'https://cdn.staticfile.org/KaTeX/0.13.13/contrib/auto-render.min.js'
],
commonJS: [
'/images/JSEController.js'
]
}
const formatLinks = {
typeScript: 'https://cdn.staticfile.org/prettier/2.5.1/parser-typescript.min.js'
}
export {
externalLinks,
iframeLinks,
formatLinks
}