-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (106 loc) · 4.7 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
<!doctype html>
<html>
<head>
<title>WarpZone New Tab</title>
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="stylesheet" type="text/css" href="/css/main.css"/>
<script src="/js/extension.js"></script>
<script src="/js/vue.global.prod.js"></script>
<script src="/js/main.js"></script>
<script async src="https://unpkg.com/thesemetrics@latest"></script>
</head>
<body onload="init()">
<div class="backdrop"></div>
<div class="backdrop-cover"></div>
<div id="appContainer">
<div class="screen" v-bind:class="{active: screen=='home'}" id="home">
<form v-on:submit.prevent="openActiveLink">
<input type="text" name="search"
autocomplete="off" spellcheck="false" placeholder="Search..."
v-model="query"
v-on:keydown="navigate"
>
</form>
<div class="results">
<h3 v-if="topSites.length">Top Sites</h3>
<div class="result" v-for="result in topSites" v-bind:class="{active: activeIndex==result.idx}">
<a v-bind:href="result.url" v-bind:target="linkTarget" v-bind:id="'result-link-'+result.idx">
<p>{{result.title}}</p>
<p>{{result.url}}</p>
</a>
</div>
<h3 v-if="bookmarkResults.length">Bookmarks</h3>
<div class="result" v-for="result in bookmarkResults" v-bind:class="{active: activeIndex==result.idx}">
<a v-bind:href="result.url" v-bind:target="linkTarget" v-bind:id="'result-link-'+result.idx">
<p>{{result.title}}</p>
<p>{{result.url}}</p>
</a>
</div>
<h3 v-if="historyResults.length">History</h3>
<div class="result" v-for="result in historyResults" v-bind:class="{active: activeIndex==result.idx}">
<a v-bind:href="result.url" v-bind:target="linkTarget" v-bind:id="'result-link-'+result.idx">
<p>{{result.title}}</p>
<p>{{result.url}}</p>
</a>
</div>
</div>
</div>
<div class="screen" v-bind:class="{active: screen=='settings'}" id="settings">
<div class="screen-title">
<button v-on:click="goto('home')">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
fill="none" stroke="#ffffff" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round"
class="feather arrow-left">
<line x1="19" y1="12" x2="5" y2="12"></line>
<polyline points="12 19 5 12 12 5"></polyline>
</svg>
</button>
<h3>Settings</h3>
</div>
<form v-on:submit.prevent="changeBgImage()" class="form">
<label>
<h4>
Background Image URL
<span class="help-tooltip" title="Leave this empty for default background">?</span>
</h4>
<input type="url" v-model="bgImage" spellcheck="false">
</label>
<button>
Set
</button>
</form>
<section class="form">
<label>
<h4>
Background Darkness
</h4>
<input type="range" v-model="bgDarken" min="0" max="100" class="slider">
</label>
</section>
<section class="form">
<h4>About</h4></br>
<p>Version: {{version}}</p></br>
<p v-if="mode=='ext'">Build Number: {{buildNumber}}</p></br>
</section>
</div>
<div class="title">
<img src="/assets/logo.png" class="logo">
<h1>WarpZone</h1>
<button v-on:click="goto('settings')" title="Settings">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
fill="none" stroke="#ffffff" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round"
class="feather settings">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
<!--<span>Settings</span>-->
</button>
</div>
<div class="sidebar">
<textarea v-model="notes" spellcheck="false"></textarea>
</div>
</div>
</body>
</html>