-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathindex.html
More file actions
207 lines (202 loc) · 9.1 KB
/
index.html
File metadata and controls
207 lines (202 loc) · 9.1 KB
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE html>
<html lang="[[=z.lang]]">
<!-- Headers -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="public/main.css" />
<link rel="stylesheet" href="workspaces/documentation-ui/src/css/main.css" />
<link rel="stylesheet" href="node_modules/highlight.js/styles/github.css" />
<script src="https://cdn.socket.io/4.7.5/socket.io.min.js"></script>
<script src="public/main.js" defer></script>
<title>NodeSecure</title>
<div id="lang" data-lang="[[=z.i18nLangName]]" style="display: none;"></div>
<main>
<nav id="aside">
<a class="nsecure-logo" href="https://github.com/NodeSecure" target="_blank" rel="noopener">
<svg width="60" height="60" viewBox="0 0 1324 776" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M662 0L998.042 194V582L662 776L325.958 582V194L662 0Z" fill="white" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M325.958 388V582L662 776L998.042 582V388H325.958Z"
fill="#3319D1" fill-opacity="0.74" />
<rect x="200" y="346.475" width="924" height="97.3244" fill="#00D1FF" />
<g filter="url(#filter0_f_401_16)">
<rect x="200" y="346.475" width="924" height="97.3244" fill="#00D1FF" />
</g>
<g filter="url(#filter1_f_401_16)">
<rect x="200" y="346.475" width="924" height="97.3244" fill="#00D1FF" />
</g>
<defs>
<filter id="filter0_f_401_16" x="0" y="146.475" width="1324" height="497.324" filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB">
<feflood flood-opacity="0" result="BackgroundImageFix" />
<feblend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" />
<fegaussianblur stdDeviation="100" result="effect1_foregroundBlur_401_16" />
</filter>
<filter id="filter1_f_401_16" x="0" y="146.475" width="1324" height="497.324" filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB">
<feflood flood-opacity="0" result="BackgroundImageFix" />
<feblend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" />
<fegaussianblur stdDeviation="100" result="effect1_foregroundBlur_401_16" />
</filter>
</defs>
</svg>
</a>
<ul id="view-navigation">
<li data-menu="home--view">
<i class="icon-home"></i>
<span></span>
</li>
<li data-menu="network--view">
<i class="icon-globe-alt-outline"></i>
<span></span>
</li>
<li data-menu="search--view">
<i class="icon-search"></i>
<span></span>
</li>
<li data-menu="settings--view" class="bottom-nav">
<i class="icon-cog"></i>
<span></span>
</li>
</ul>
</nav>
<nav id="search-nav">
</nav>
<section class="content">
<div id="home--view" class="view hidden"></div>
<div id="network--view" class="view hidden">
<div id="network-loader">
<div class="lds-ellipsis">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<p>[[=z.token('loading_nodes')]]</p>
<p>[[=z.token('please_wait')]]</p>
</div>
<div id="dependency-graph"></div>
<div id="network-locker">
<i class="icon-lock-open"></i>
<p>[[=z.token('network.unlocked')]]</p>
</div>
<nsecure-legend id="legend">
</div>
</div>
<div id="search--view" class="view hidden">
<div class="container">
<form>
<div class="form-group">
<i class="icon-search"></i>
<input type="text" id="package" name="package" placeholder="[[=z.token('search.registryPlaceholder')]]" autocomplete="off" required>
</div>
</form>
<div class="recent-packages">
<h2>[[=z.token('search.recentPackages')]]</h2>
</div>
<div class="cache-packages">
<h2>[[=z.token('search.packagesCache')]]</h2>
</div>
</div>
</div>
<div id="settings--view" class="view hidden">
<h1><i class="icon-cog"></i>[[=z.token('settings.general.title')]]</h1>
<form>
<div class="line">
<label for="default_package_menu">[[=z.token('settings.general.defaultPannel')]]:</label>
<select name="defaultPackageMenu" id="default_package_menu">
<option value="info">[[=z.token('package_info.navigation.overview')]]</option>
<option value="files">[[=z.token('package_info.navigation.files')]]</option>
<option value="dependencies">[[=z.token('package_info.navigation.dependencies')]]</option>
<option value="warnings">[[=z.token('package_info.navigation.warnings')]]</option>
<option value="vulnerabilities">[[=z.token('package_info.navigation.vulnerabilities')]]</option>
<option value="licenses" selected>[[=z.token('package_info.navigation.licenses')]]</option>
</select>
<label for="theme_selector" class="mt-10">[[=z.token('settings.general.themePannel')]]:</label>
<select name="themeSelector" id="theme_selector">
<option value="dark">[[=z.token('settings.dark')]]</option>
<option value="light">[[=z.token('settings.light')]]</option>
</select>
<label for="lang_selector" class="mt-10">[[=z.token('settings.general.langPannel')]]:</label>
<select name="langSelector" id="lang_selector">
<option value="french">[[=z.token('settings.languages.fr')]]</option>
<option value="english">[[=z.token('settings.languages.en')]]</option>
</select>
<p class="settings-line-title">[[=z.token('settings.general.network')]]:</p>
<div>
<input type="checkbox" id="show-friendly" name="show-friendly" />
<label for="show-friendly">[[=z.token('settings.general.showFriendly')]]</label>
</div>
<p class="settings-line-title">[[=z.token('settings.general.security')]]:</p>
<div>
<input type="checkbox" id="disable-external" name="disable-external" />
<label for="disable-external">[[=z.token('settings.general.disableExternalRequests')]]</label>
</div>
</div>
<div class="line" id="warnings-settings">
<p>[[=z.token('settings.general.warnings')]]:</p>
</div>
<div class="line">
<p>[[=z.token('settings.general.flags')]]:</p>
<div>
<input type="checkbox" name="flags" value="hasManyPublishers" id="hasManyPublishers">
<label for="hasManyPublishers">👥 hasManyPublishers</label>
</div>
<div>
<input type="checkbox" name="flags" value="hasIndirectDependencies" id="hasIndirectDependencies">
<label for="hasIndirectDependencies">🌲 hasIndirectDependencies</label>
</div>
<div>
<input type="checkbox" name="flags" value="hasMissingOrUnusedDependency" id="hasMissingOrUnusedDependency">
<label for="hasMissingOrUnusedDependency">👀 hasMissingOrUnusedDependency</label>
</div>
<div>
<input type="checkbox" name="flags" value="isDead" id="isDead">
<label for="isDead">💀 isDead</label>
</div>
<div>
<input type="checkbox" name="flags" value="isOutdated" id="isOutdated">
<label for="isOutdated">⌚️ isOutdated</label>
</div>
<div>
<input type="checkbox" name="flags" id="flags" value="hasDuplicate">
<label for="flags">🎭 hasDuplicate</label>
</div>
</div>
</form>
<button class="save">[[=z.token('settings.general.save')]]</button>
<div class="line">
<h2><i class="icon-keyboard"></i>[[=z.token('settings.shortcuts.title')]]</h2>
<div class="shortcuts">
<div class="note">💡 [[=z.token('settings.shortcuts.blockquote')]]</div>
<div>
<input readonly id="home" class="hotkey">
<label for="home">[[=z.token('settings.shortcuts.goto')]] Home view</label>
</div>
<div>
<input readonly id="network" class="hotkey">
<label for="network">[[=z.token('settings.shortcuts.goto')]] Network view</label>
</div>
<div>
<input readonly id="search" class="hotkey">
<label for="settings">[[=z.token('settings.shortcuts.goto')]] Search view</label>
</div>
<div>
<input readonly id="settings" class="hotkey">
<label for="settings">[[=z.token('settings.shortcuts.goto')]] Settings view</label>
</div>
<div>
<input readonly id="wiki" class="hotkey">
<label for="wiki">[[=z.token('settings.shortcuts.openCloseWiki')]]</label>
</div>
<div>
<input readonly id="lock" class="hotkey">
<label for="lock">[[=z.token('settings.shortcuts.lock')]]</label>
</div>
</div>
</div>
</div>
<section id="package-info"></section>
</section>
</main>
</html>