forked from Inndy/gsheet-submission-review-tool
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.htm
97 lines (85 loc) · 3.95 KB
/
index.htm
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
<!DOCTYPE html>
<html lang="zh-Hant">
<head>
<meta charset="UTF-8">
<title>SITCON Reviewing Tool</title>
<script src="https://unpkg.com/[email protected]/dist/vue.js" integrity="sha384-uDHwRgVGzCbHUyl2dKQHqgCAab0OIx/w9PqT3pvjaX/ZGARjKanO5mJGjmdixblb" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.css" integrity="sha384-2QMA5oZ3MEXJddkHyZE/e/C1bd30ZUPdzqHrsaHMP3aGDbPA9yh77XDHXC9Imxw+" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap">
<link rel="stylesheet" href="style.css" media="all">
<meta property="og:title" content="SITCON Submissions Reviewing Tool">
<meta property="og:description" content="Make you more comfortable to review submissions.">
<meta property="og:url" content="https://sitcon.org/submission-review/">
<meta property="og:image" content="https://sitcon.org/submission-review/open-graph.png">
<meta property="og:image:type" content="website">
<link rel="icon" href="https://sitcon.org/submission-review/favicon.png">
<script src="config.js"></script>
</head>
<body>
<div id="app"></div>
<!---------------------------
BEGIN VUE.JS TEMPLATES
---------------------------->
<template id="t">
<div class="container">
<h1>SITCON Submissions Reviewing Tool</h1>
<data-view v-if="db.length > 0" v-for="data in db" :data="data" :fields="fields"></data-view>
<div v-if="state === 'LOADING'">Loading...</div>
<div v-if="state === 'NOFILE'">
Please drag HTML file into this window or click the button below to upload.
<br>
<label for="file" class="drop-container">
<span class="drop-title">Drop the file here</span>
or
<input type="file" @change="onUploadByButton" accept=".html, .htm">
</label>
</div>
<div v-if="state === 'ERROR'">Loading failed, please drag HTML file manually.</div>
<div v-if="state === 'DONE' && db.length == 0">NO DATA</div>
<div class="button-container">
<button type="button" class="btn" id="btnReturnToHome" v-on:click="returnToHome">
<span class="material-symbols-outlined">
home
</span>
</button>
<button type="button" class="btn" id="btnSwitchTheme" v-on:click="changeTheme">
<span class="material-symbols-outlined">
dark_mode
</span>
</button>
<button type="button" class="btn" id="btnScrollToTop" v-on:click="scrollToTop">
<span class="material-symbols-outlined">
arrow_upward
</span>
</button>
</div>
</div>
</template>
<template id="data-field">
<div class="field">
<span class="field-name" :class="!data[field] ? 'small text-muted' : ''">{{field}}</span>
<span class="field-content">
<a v-if="data[field].match(/^https?:(?!http).*$/)" :href="data[field]" target="_blank">{{data[field]}}</a>
<span v-else-if="data[field]">{{data[field]}}</span>
<span class="small text-muted" v-else>None</span>
</span>
</div>
</template>
<template id="data-view">
<div class="data">
<data-field v-for="field in fields" v-if="field" :field="field" :data="data"></data-field>
</div>
</template>
<!---------------------------
END VUE.JS TEMPLATES
---------------------------->
<script src="app.js"></script>
</body>
</html>
<!--
vim: et sw=2
-->