forked from WaterFutures/WaterBenchmarkHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
188 lines (173 loc) · 6.71 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF8">
<link rel="icon" type="image/x-icon" href="static/favicon.ico">
<link type="text/css" rel="stylesheet" href="static/libs/bootstrap.min.css"/>
<link type="text/css" rel="stylesheet" href="static/libs/bootstrap-vue.min.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<script src="static/libs/polyfill.min.js"></script>
<script src="static/libs/vue.min.js"></script>
<script src="static/libs/bootstrap-vue.min.js"></script>
<script src="static/libs/bootstrap-vue-icons.min.js"></script>
<script src="static/js/controller.js"></script>
<script src="static/js/database.js"></script>
<link type="text/css" rel="stylesheet" href="static/css/styles.css"/>
<title>Water Benchmark Hub</title>
</head>
<body>
<a href="#main-content" class="screen-reader-text skip-to-main-content-link">Skip to main content</a>
<div id="app">
<div>
<b-navbar toggleable="lg" type="dark" variant="primary">
<b-navbar-brand>
<img src="static/favicon.ico" alt="" width="30" height="30"></a>
WaterBenchmarkHub
</b-navbar-brand>
<b-collapse is-nav>
<b-navbar-nav>
<b-nav-item
active
href="#">
<span>
<i class="bi bi-database-fill"></i>
Benchmarks
</span>
</b-nav-item>
<b-nav-item
active
href="https://waterbenchmarkhub.readthedocs.io/en/latest/">
<span>
<i class="bi bi-book-half"></i>
Documentation
</span>
</b-nav-item>
<b-nav-item
active
href="https://github.com/WaterFutures/WaterBenchmarkHub">
<span>
<i class="bi bi-github"></i>
BenchmarkHub on GitHub
</span>
</b-nav-item>
</b-navbar-nav>
<b-navbar-nav class="ml-auto">
<div>
<b-form-input
class="sm mr-sm-2"
autocomplete="off"
v-model="searchText"
list="search-field"
id="searchBox"
placeholder="Search for benchmarks"
v-on:keyup.enter="onClickSearch">
</b-form-input>
<b-form-datalist id="search-field" :options="queryPredictions" v-if="searchText.length >= 3">
</b-form-datalist>
</div>
<b-button size="sm" class="my-2 my-sm-0" @click="onClickSearch">
Search
</b-button>
</b-navbar-nav>
</b-collapse>
</b-navbar>
</div>
<b-container fluid class="mt-1">
<b-row>
<b-col class="background-layer-light min-vh-100">
<div class="row ml-1">
<span>
<i class="bi-list-task"></i>
<b>Tasks & Types:</b>
</span>
</div>
<div class="row ml-1">
<div v-for="tag in allTagsTasks">
<div class="col px-md-1">
<b-badge
href="#"
v-bind:variant="activeTags.includes(tag) ? 'primary' : 'secondary'"
@click="onClickOnTag(tag)">{{tag}}
</b-badge>
</div>
</div>
</div>
<br>
<div class="row ml-1">
<span>
<i class="bi-bounding-box-circles"></i>
<b>Networks:</b>
</span>
</div>
<div class="row ml-1">
<div v-for="tag in allTagsNetworks">
<div class="col px-md-1">
<b-badge
href="#"
v-bind:variant="activeTags.includes(tag) ? 'primary' : 'secondary'"
@click="onClickOnTag(tag)">{{tag}}
</b-badge>
</div>
</div>
</div>
<br>
<div class="row ml-1">
<span>
<i class="bi-three-dots"></i>
<b>Other:</b>
</span>
</div>
<div class="row ml-1">
<div v-for="tag in allTagsOther">
<div class="col px-md-1">
<b-badge
href="#"
v-bind:variant="activeTags.includes(tag) ? 'primary' : 'secondary'"
@click="onClickOnTag(tag)">{{tag}}
</b-badge>
</div>
</div>
</div>
</b-col>
<b-col cols="8">
<searchterm
class="mb-1"
v-for="searchText in allSearchTexts"
v-bind:text="searchText"
:key="searchText"
v-on:click-on-close="onRemoveSearchText(searchText)"
>
</searchterm>
<div class="overflow-auto" id="main-content">
<template v-if="benchmarks.length != 0">
<b-list-group id="list-group-benchmarks">
<benchmark
v-for="benchmark in slicedBenchmarks"
:key="benchmark.id"
v-bind:benchmark="benchmark">
</benchmark>
</b-list-group>
<p align="center"><i>{{benchmarks.length}} benchmark resources found.</i></p>
<b-pagination
:per-page="perPage"
:total-rows="totalNumBenchmarks"
v-model="currentPage"
aria-controls="list-group-benchmarks"
align="center"/>
</template>
<template v-if="benchmarks.length == 0">
<p align="center"><i>Nothing found.</i></p>
</template>
</div>
<br>
</b-col>
</b-row>
</b-container>
</div>
<footer class="text-center text-white background-layer fixed-bottom">
<div class="text-center text-white p-3">
© 2024 WaterBenchmarkHub Developers
</div>
</footer>
</body>
</html>