-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
index.html
135 lines (125 loc) · 4.23 KB
/
index.html
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AlgoWiki - Building Knowledge Repositories</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="AlgoWiki is a Repository which contains resources on different topics of computer science.">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/buble.css">
</head>
<body>
<div id="app"></div>
</body>
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/babel-standalone@6/babel.min.js"></script>
<script src="//unpkg.com/[email protected]/dist/docsify-demo-box-vue.min.js"></script>
<script src="//unpkg.com/[email protected]/index.js"></script>
<script src="//unpkg.com/element-ui/lib/index.js"></script>
<script src="//unpkg.com/element-ui/lib/umd/locale/en.js"></script>
<script src="//unpkg.com/[email protected]/dist/data-tables.min.js"></script>
<script src="//unpkg.com/[email protected]/dist/json2csv.js"></script>
<script>
Vue.use(DataTables)
Vue.use(DataTables.DataTablesServer)
ELEMENT.locale(ELEMENT.lang.en)
var data, titles;
var id = 0;
var define =
`data = [{
"content": "Water flood",
"flow_no": "FW201601010001",
"flow_type": "Repair",
"flow_type_code": "repair",
}, {
"content": "Lock broken",
"flow_no": "FW201601010002",
"flow_type": "Repair",
"flow_type_code": "repair",
}, {
"content": "Help to buy some drinks",
"flow_no": "FW201601010003",
"flow_type": "Help",
"flow_type_code": "help"
}];
titles = [{
prop: "flow_no",
label: "NO."
}, {
prop: "content",
label: "Content"
}, {
prop: "flow_type",
label: "Type"
}]`
var es5define = Babel.transform(define, { presets: ['es2015'] }).code
eval(es5define)
var jsResources = '<scr' + 'ipt src="//unpkg.com/vue/dist/vue.js"></scr' + 'ipt>'
+ '\n<scr' + `ipt src="//unpkg.com/element-ui/lib/index.js"></scr` + 'ipt>'
+ '\n<scr' + `ipt src="//unpkg.com/element-ui/lib/umd/locale/en.js"></scr` + 'ipt>'
+ '\n<scr' + `ipt src="//unpkg.com/[email protected]/dist/data-tables.min.js"></scr` + 'ipt>'
var cssResources = '@import url("//unpkg.com/element-ui/lib/theme-default/index.css");'
var bootCode =
'ELEMENT.locale(ELEMENT.lang.en)\n'
+ 'Vue.use(DataTables)\n'
+ 'Vue.use(DataTables.DataTablesServer)\n'
+ 'var data, titles\n\n' + define + '\n\n';
window.$docsify = {
coverpage: true,
name: 'AlgoWiki',
repo: 'https://www.github.com/vicky002/AlgoWiki',
subMaxLevel: 4,
loadSidebar: false,
themeColor: '#3F51B5',
ga: 'UA-45497633-7',
codesponsor: 'p9HijS4T3i4dif3TiynvGHf1',
search: 'auto',
// search: [
// '/',
// '/Algorithms',
// '/Android',
// '/C',
// '/C#'
// ],
// search: {
// maxAge: 86400000, // Expiration time, the default one day
// paths: [], // or 'auto'
// placeholder: 'Type to search',
// // Localization
// placeholder: {
// '/': 'Type to search'
// },
// noData: 'No Results!',
// // Localization
// noData: {
// '/': 'No Results'
// },
// // Headline depth, 1 - 6
// depth: 2
// },
plugins: [
DemoBoxVue.create(jsResources, cssResources, bootCode),
EditOnGithubPlugin.create(
'https://github.com/vicky002/AlgoWiki/'
),
function (hook) {
var footer = [
'<hr/>',
'<footer>',
'<span><a href="https://github.com/vicky002">Vikesh Tiwari</a> ©2017.</span>',
'<span>Maintained by <a href="http://eulercoder.me" target="_blank">Eulercoder</a>.</span>',
'</footer>'
].join('')
hook.afterEach(function (html) {
return html + footer
})
}
]
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/[email protected]/index.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/external-script.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
</html>