Spaces:
Running
Running
Commit
·
1e52516
1
Parent(s):
0d1e1be
add num chunks col
Browse files
.svelte-kit/ambient.d.ts
CHANGED
@@ -27,7 +27,6 @@
|
|
27 |
*/
|
28 |
declare module '$env/static/private' {
|
29 |
export const NVM_INC: string;
|
30 |
-
export const COREPACK_ROOT: string;
|
31 |
export const XET_ACCESS_TOKEN: string;
|
32 |
export const TERM_PROGRAM: string;
|
33 |
export const NODE: string;
|
@@ -40,46 +39,48 @@ declare module '$env/static/private' {
|
|
40 |
export const TMPDIR: string;
|
41 |
export const HOMEBREW_REPOSITORY: string;
|
42 |
export const GOBIN: string;
|
|
|
43 |
export const TERM_PROGRAM_VERSION: string;
|
44 |
export const MallocNanoZone: string;
|
45 |
export const ORIGINAL_XDG_CURRENT_DESKTOP: string;
|
46 |
export const CURSOR_TRACE_ID: string;
|
47 |
export const ZDOTDIR: string;
|
48 |
-
export const
|
|
|
49 |
export const ZSH: string;
|
50 |
export const PNPM_HOME: string;
|
|
|
51 |
export const USER: string;
|
52 |
export const NVM_DIR: string;
|
53 |
export const LS_COLORS: string;
|
54 |
export const COMMAND_MODE: string;
|
55 |
-
export const
|
56 |
export const SSH_AUTH_SOCK: string;
|
57 |
export const __CF_USER_TEXT_ENCODING: string;
|
58 |
export const VSCODE_PROFILE_INITIALIZED: string;
|
59 |
export const npm_execpath: string;
|
60 |
export const PAGER: string;
|
61 |
export const LSCOLORS: string;
|
62 |
-
export const npm_config_frozen_lockfile: string;
|
63 |
-
export const npm_config_verify_deps_before_run: string;
|
64 |
export const PATH: string;
|
65 |
export const npm_package_json: string;
|
66 |
export const __CFBundleIdentifier: string;
|
67 |
export const XETHUB: string;
|
68 |
export const USER_ZDOTDIR: string;
|
69 |
-
export const
|
|
|
70 |
export const PWD: string;
|
71 |
export const npm_command: string;
|
72 |
-
export const
|
73 |
export const npm_lifecycle_event: string;
|
74 |
export const LANG: string;
|
75 |
export const npm_package_name: string;
|
76 |
export const NODE_PATH: string;
|
77 |
export const XPC_FLAGS: string;
|
78 |
export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
|
|
79 |
export const npm_config_node_gyp: string;
|
80 |
export const XPC_SERVICE_NAME: string;
|
81 |
export const npm_package_version: string;
|
82 |
-
export const pnpm_config_verify_deps_before_run: string;
|
83 |
export const VSCODE_INJECTION: string;
|
84 |
export const HOME: string;
|
85 |
export const SHLVL: string;
|
@@ -89,6 +90,7 @@ declare module '$env/static/private' {
|
|
89 |
export const HOMEBREW_PREFIX: string;
|
90 |
export const LOGNAME: string;
|
91 |
export const LESS: string;
|
|
|
92 |
export const npm_lifecycle_script: string;
|
93 |
export const VSCODE_GIT_IPC_HANDLE: string;
|
94 |
export const XETCORE: string;
|
@@ -102,6 +104,7 @@ declare module '$env/static/private' {
|
|
102 |
export const HFDIR: string;
|
103 |
export const CARGO_NET_GIT_FETCH_WITH_CLI: string;
|
104 |
export const COLORTERM: string;
|
|
|
105 |
export const npm_node_execpath: string;
|
106 |
export const NODE_ENV: string;
|
107 |
}
|
@@ -136,7 +139,6 @@ declare module '$env/static/public' {
|
|
136 |
declare module '$env/dynamic/private' {
|
137 |
export const env: {
|
138 |
NVM_INC: string;
|
139 |
-
COREPACK_ROOT: string;
|
140 |
XET_ACCESS_TOKEN: string;
|
141 |
TERM_PROGRAM: string;
|
142 |
NODE: string;
|
@@ -149,46 +151,48 @@ declare module '$env/dynamic/private' {
|
|
149 |
TMPDIR: string;
|
150 |
HOMEBREW_REPOSITORY: string;
|
151 |
GOBIN: string;
|
|
|
152 |
TERM_PROGRAM_VERSION: string;
|
153 |
MallocNanoZone: string;
|
154 |
ORIGINAL_XDG_CURRENT_DESKTOP: string;
|
155 |
CURSOR_TRACE_ID: string;
|
156 |
ZDOTDIR: string;
|
157 |
-
|
|
|
158 |
ZSH: string;
|
159 |
PNPM_HOME: string;
|
|
|
160 |
USER: string;
|
161 |
NVM_DIR: string;
|
162 |
LS_COLORS: string;
|
163 |
COMMAND_MODE: string;
|
164 |
-
|
165 |
SSH_AUTH_SOCK: string;
|
166 |
__CF_USER_TEXT_ENCODING: string;
|
167 |
VSCODE_PROFILE_INITIALIZED: string;
|
168 |
npm_execpath: string;
|
169 |
PAGER: string;
|
170 |
LSCOLORS: string;
|
171 |
-
npm_config_frozen_lockfile: string;
|
172 |
-
npm_config_verify_deps_before_run: string;
|
173 |
PATH: string;
|
174 |
npm_package_json: string;
|
175 |
__CFBundleIdentifier: string;
|
176 |
XETHUB: string;
|
177 |
USER_ZDOTDIR: string;
|
178 |
-
|
|
|
179 |
PWD: string;
|
180 |
npm_command: string;
|
181 |
-
|
182 |
npm_lifecycle_event: string;
|
183 |
LANG: string;
|
184 |
npm_package_name: string;
|
185 |
NODE_PATH: string;
|
186 |
XPC_FLAGS: string;
|
187 |
VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
|
|
188 |
npm_config_node_gyp: string;
|
189 |
XPC_SERVICE_NAME: string;
|
190 |
npm_package_version: string;
|
191 |
-
pnpm_config_verify_deps_before_run: string;
|
192 |
VSCODE_INJECTION: string;
|
193 |
HOME: string;
|
194 |
SHLVL: string;
|
@@ -198,6 +202,7 @@ declare module '$env/dynamic/private' {
|
|
198 |
HOMEBREW_PREFIX: string;
|
199 |
LOGNAME: string;
|
200 |
LESS: string;
|
|
|
201 |
npm_lifecycle_script: string;
|
202 |
VSCODE_GIT_IPC_HANDLE: string;
|
203 |
XETCORE: string;
|
@@ -211,6 +216,7 @@ declare module '$env/dynamic/private' {
|
|
211 |
HFDIR: string;
|
212 |
CARGO_NET_GIT_FETCH_WITH_CLI: string;
|
213 |
COLORTERM: string;
|
|
|
214 |
npm_node_execpath: string;
|
215 |
NODE_ENV: string;
|
216 |
[key: `PUBLIC_${string}`]: undefined;
|
|
|
27 |
*/
|
28 |
declare module '$env/static/private' {
|
29 |
export const NVM_INC: string;
|
|
|
30 |
export const XET_ACCESS_TOKEN: string;
|
31 |
export const TERM_PROGRAM: string;
|
32 |
export const NODE: string;
|
|
|
39 |
export const TMPDIR: string;
|
40 |
export const HOMEBREW_REPOSITORY: string;
|
41 |
export const GOBIN: string;
|
42 |
+
export const npm_config_global_prefix: string;
|
43 |
export const TERM_PROGRAM_VERSION: string;
|
44 |
export const MallocNanoZone: string;
|
45 |
export const ORIGINAL_XDG_CURRENT_DESKTOP: string;
|
46 |
export const CURSOR_TRACE_ID: string;
|
47 |
export const ZDOTDIR: string;
|
48 |
+
export const COLOR: string;
|
49 |
+
export const npm_config_noproxy: string;
|
50 |
export const ZSH: string;
|
51 |
export const PNPM_HOME: string;
|
52 |
+
export const npm_config_local_prefix: string;
|
53 |
export const USER: string;
|
54 |
export const NVM_DIR: string;
|
55 |
export const LS_COLORS: string;
|
56 |
export const COMMAND_MODE: string;
|
57 |
+
export const npm_config_globalconfig: string;
|
58 |
export const SSH_AUTH_SOCK: string;
|
59 |
export const __CF_USER_TEXT_ENCODING: string;
|
60 |
export const VSCODE_PROFILE_INITIALIZED: string;
|
61 |
export const npm_execpath: string;
|
62 |
export const PAGER: string;
|
63 |
export const LSCOLORS: string;
|
|
|
|
|
64 |
export const PATH: string;
|
65 |
export const npm_package_json: string;
|
66 |
export const __CFBundleIdentifier: string;
|
67 |
export const XETHUB: string;
|
68 |
export const USER_ZDOTDIR: string;
|
69 |
+
export const npm_config_init_module: string;
|
70 |
+
export const npm_config_userconfig: string;
|
71 |
export const PWD: string;
|
72 |
export const npm_command: string;
|
73 |
+
export const EDITOR: string;
|
74 |
export const npm_lifecycle_event: string;
|
75 |
export const LANG: string;
|
76 |
export const npm_package_name: string;
|
77 |
export const NODE_PATH: string;
|
78 |
export const XPC_FLAGS: string;
|
79 |
export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
80 |
+
export const npm_config_npm_version: string;
|
81 |
export const npm_config_node_gyp: string;
|
82 |
export const XPC_SERVICE_NAME: string;
|
83 |
export const npm_package_version: string;
|
|
|
84 |
export const VSCODE_INJECTION: string;
|
85 |
export const HOME: string;
|
86 |
export const SHLVL: string;
|
|
|
90 |
export const HOMEBREW_PREFIX: string;
|
91 |
export const LOGNAME: string;
|
92 |
export const LESS: string;
|
93 |
+
export const npm_config_cache: string;
|
94 |
export const npm_lifecycle_script: string;
|
95 |
export const VSCODE_GIT_IPC_HANDLE: string;
|
96 |
export const XETCORE: string;
|
|
|
104 |
export const HFDIR: string;
|
105 |
export const CARGO_NET_GIT_FETCH_WITH_CLI: string;
|
106 |
export const COLORTERM: string;
|
107 |
+
export const npm_config_prefix: string;
|
108 |
export const npm_node_execpath: string;
|
109 |
export const NODE_ENV: string;
|
110 |
}
|
|
|
139 |
declare module '$env/dynamic/private' {
|
140 |
export const env: {
|
141 |
NVM_INC: string;
|
|
|
142 |
XET_ACCESS_TOKEN: string;
|
143 |
TERM_PROGRAM: string;
|
144 |
NODE: string;
|
|
|
151 |
TMPDIR: string;
|
152 |
HOMEBREW_REPOSITORY: string;
|
153 |
GOBIN: string;
|
154 |
+
npm_config_global_prefix: string;
|
155 |
TERM_PROGRAM_VERSION: string;
|
156 |
MallocNanoZone: string;
|
157 |
ORIGINAL_XDG_CURRENT_DESKTOP: string;
|
158 |
CURSOR_TRACE_ID: string;
|
159 |
ZDOTDIR: string;
|
160 |
+
COLOR: string;
|
161 |
+
npm_config_noproxy: string;
|
162 |
ZSH: string;
|
163 |
PNPM_HOME: string;
|
164 |
+
npm_config_local_prefix: string;
|
165 |
USER: string;
|
166 |
NVM_DIR: string;
|
167 |
LS_COLORS: string;
|
168 |
COMMAND_MODE: string;
|
169 |
+
npm_config_globalconfig: string;
|
170 |
SSH_AUTH_SOCK: string;
|
171 |
__CF_USER_TEXT_ENCODING: string;
|
172 |
VSCODE_PROFILE_INITIALIZED: string;
|
173 |
npm_execpath: string;
|
174 |
PAGER: string;
|
175 |
LSCOLORS: string;
|
|
|
|
|
176 |
PATH: string;
|
177 |
npm_package_json: string;
|
178 |
__CFBundleIdentifier: string;
|
179 |
XETHUB: string;
|
180 |
USER_ZDOTDIR: string;
|
181 |
+
npm_config_init_module: string;
|
182 |
+
npm_config_userconfig: string;
|
183 |
PWD: string;
|
184 |
npm_command: string;
|
185 |
+
EDITOR: string;
|
186 |
npm_lifecycle_event: string;
|
187 |
LANG: string;
|
188 |
npm_package_name: string;
|
189 |
NODE_PATH: string;
|
190 |
XPC_FLAGS: string;
|
191 |
VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
|
192 |
+
npm_config_npm_version: string;
|
193 |
npm_config_node_gyp: string;
|
194 |
XPC_SERVICE_NAME: string;
|
195 |
npm_package_version: string;
|
|
|
196 |
VSCODE_INJECTION: string;
|
197 |
HOME: string;
|
198 |
SHLVL: string;
|
|
|
202 |
HOMEBREW_PREFIX: string;
|
203 |
LOGNAME: string;
|
204 |
LESS: string;
|
205 |
+
npm_config_cache: string;
|
206 |
npm_lifecycle_script: string;
|
207 |
VSCODE_GIT_IPC_HANDLE: string;
|
208 |
XETCORE: string;
|
|
|
216 |
HFDIR: string;
|
217 |
CARGO_NET_GIT_FETCH_WITH_CLI: string;
|
218 |
COLORTERM: string;
|
219 |
+
npm_config_prefix: string;
|
220 |
npm_node_execpath: string;
|
221 |
NODE_ENV: string;
|
222 |
[key: `PUBLIC_${string}`]: undefined;
|
.svelte-kit/generated/server/internal.js
CHANGED
@@ -21,7 +21,7 @@ export const options = {
|
|
21 |
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n\n<head>\n\t<meta charset=\"utf-8\" />\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t<title>XORB & Shard File Viewer</title>\n\t<meta name=\"description\" content=\"Parse and view metadata from XORB and Shard object files\" />\n\t" + head + "\n</head>\n\n<body data-sveltekit-preload-data=\"hover\">\n\t<div style=\"display: contents\">" + body + "</div>\n</body>\n\n</html>",
|
22 |
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
23 |
},
|
24 |
-
version_hash: "
|
25 |
};
|
26 |
|
27 |
export async function get_hooks() {
|
|
|
21 |
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n\n<head>\n\t<meta charset=\"utf-8\" />\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t<title>XORB & Shard File Viewer</title>\n\t<meta name=\"description\" content=\"Parse and view metadata from XORB and Shard object files\" />\n\t" + head + "\n</head>\n\n<body data-sveltekit-preload-data=\"hover\">\n\t<div style=\"display: contents\">" + body + "</div>\n</body>\n\n</html>",
|
22 |
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
23 |
},
|
24 |
+
version_hash: "16odu8j"
|
25 |
};
|
26 |
|
27 |
export async function get_hooks() {
|
src/lib/components/ShardViewer.svelte
CHANGED
@@ -134,6 +134,7 @@
|
|
134 |
<tr>
|
135 |
<th>File Hash</th>
|
136 |
<th>Entries</th>
|
|
|
137 |
<th>Total Length</th>
|
138 |
<th>SHA256</th>
|
139 |
</tr>
|
@@ -156,6 +157,15 @@
|
|
156 |
{formatHash(fileInfo.header.file_hash)}
|
157 |
</td>
|
158 |
<td>{fileInfo.header.num_entries}</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
<td>
|
160 |
{formatBytes(
|
161 |
fileInfo.entries.reduce(
|
@@ -179,7 +189,7 @@
|
|
179 |
</tr>
|
180 |
{#if expandedFiles.has(fileIndex)}
|
181 |
<tr class="file-details-row">
|
182 |
-
<td colspan="
|
183 |
<div class="file-entries-container">
|
184 |
<div class="entries-table-container">
|
185 |
<h4>Data Entries for File</h4>
|
|
|
134 |
<tr>
|
135 |
<th>File Hash</th>
|
136 |
<th>Entries</th>
|
137 |
+
<th>Number of Chunks</th>
|
138 |
<th>Total Length</th>
|
139 |
<th>SHA256</th>
|
140 |
</tr>
|
|
|
157 |
{formatHash(fileInfo.header.file_hash)}
|
158 |
</td>
|
159 |
<td>{fileInfo.header.num_entries}</td>
|
160 |
+
<td>
|
161 |
+
{fileInfo.entries
|
162 |
+
.reduce(
|
163 |
+
(sum, entry) =>
|
164 |
+
sum + (entry.chunk_index_end - entry.chunk_index_start),
|
165 |
+
0
|
166 |
+
)
|
167 |
+
.toLocaleString()}
|
168 |
+
</td>
|
169 |
<td>
|
170 |
{formatBytes(
|
171 |
fileInfo.entries.reduce(
|
|
|
189 |
</tr>
|
190 |
{#if expandedFiles.has(fileIndex)}
|
191 |
<tr class="file-details-row">
|
192 |
+
<td colspan="5">
|
193 |
<div class="file-entries-container">
|
194 |
<div class="entries-table-container">
|
195 |
<h4>Data Entries for File</h4>
|