Skip to content

Commit f0e9877

Browse files
feat: wip swap from eruda to chii
1 parent ca0c200 commit f0e9877

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

run-command.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ commands: for (let i = 2; i < process.argv.length; i++)
191191
baremux: baremuxPath,
192192
uv: uvPath,
193193
scram: scramjetPath,
194-
eruda: 'node_modules/eruda',
194+
chii: 'node_modules/chii',
195195
};
196196
for (const path of Object.entries(compilePaths)) {
197197
const prefix = path[0] + '/',

src/routes.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ let altPaths = {
165165
roms: 'ms',
166166
uv: 'network',
167167
scram: 'worker',
168+
chii: 'ani',
168169
epoxy: 'epoch',
169170
libcurl: 'unix',
170171
bareasmodule: 'utc',

src/server.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ app.register(fastifyStatic, {
114114
'epoxy',
115115
'libcurl',
116116
'baremux',
117-
'eruda',
117+
'chii',
118118
].forEach((prefix) => {
119119
app.register(fastifyStatic, {
120120
root: fileURLToPath(new URL('../views/dist/' + prefix, import.meta.url)),
@@ -185,7 +185,7 @@ if (config.disguiseFiles) {
185185
'libcurl',
186186
'baremux',
187187
'wisp',
188-
'eruda',
188+
'chii',
189189
].map((dir) => getAltPrefix(dir, serverUrl.pathname).slice(1, -1)),
190190
exemptPages = ['login', 'test-shutdown', 'favicon.ico'];
191191
for (const [key, value] of Object.entries(externalPages))

views/assets/js/csel.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ if (document.getElementById('csel')) {
447447
classUpdateHandler(torCheck, 'off')();
448448
});
449449

450+
/* The Eruda devtools are an alternative to the Chii devtools.
450451
attachClassEventListener('eruda', 'change', (e) => {
451452
const enabled = checkBooleanState(e.target) === true;
452453
@@ -463,6 +464,7 @@ if (document.getElementById('csel')) {
463464
removeStorage('ErudaEnabled');
464465
}
465466
});
467+
*/
466468
}
467469

468470
/* END WEBSITE SETTINGS */
@@ -519,13 +521,15 @@ useStorageArgs('UseSocks5', (s) => {
519521
else if ('string' === typeof s) classUpdateHandler(regionList, s)();
520522
});
521523

524+
/*
522525
useStorageArgs('ErudaEnabled', (s) => {
523526
const erudaSwitch = document.getElementsByClassName('eruda');
524527
525528
if (s === true || s === 'true') {
526529
classUpdateHandler(erudaSwitch, 'on', classEvent(erudaSwitch, 'change'))();
527530
}
528531
});
532+
*/
529533

530534
useStorageArgs('UseAC', (s) => {
531535
if (s === false)

0 commit comments

Comments
 (0)