This sentence contains hidden text you can only read by installing inzerosight.
diff --git a/fonts/open-sans-v44-latin-regular.woff2 b/src/assets/fonts/open-sans-v44-latin-regular.woff2
similarity index 100%
rename from fonts/open-sans-v44-latin-regular.woff2
rename to src/assets/fonts/open-sans-v44-latin-regular.woff2
diff --git a/icon_128.png b/src/assets/icon_128.png
similarity index 100%
rename from icon_128.png
rename to src/assets/icon_128.png
diff --git a/icon_500.png b/src/assets/icon_500.png
similarity index 100%
rename from icon_500.png
rename to src/assets/icon_500.png
diff --git a/chunked.js b/src/chunked.js
similarity index 100%
rename from chunked.js
rename to src/chunked.js
diff --git a/content.js b/src/content.js
similarity index 100%
rename from content.js
rename to src/content.js
diff --git a/dash.js b/src/dash.js
similarity index 100%
rename from dash.js
rename to src/dash.js
diff --git a/index.html b/src/index.html
similarity index 100%
rename from index.html
rename to src/index.html
diff --git a/sig.js b/src/sig.js
similarity index 100%
rename from sig.js
rename to src/sig.js
diff --git a/speck32_64ecb.js b/src/speck32_64ecb.js
similarity index 100%
rename from speck32_64ecb.js
rename to src/speck32_64ecb.js
diff --git a/speck48_96ctr.js b/src/speck48_96ctr.js
similarity index 100%
rename from speck48_96ctr.js
rename to src/speck48_96ctr.js
diff --git a/style.css b/src/style.css
similarity index 97%
rename from style.css
rename to src/style.css
index 60db6c8..de6e2e0 100644
--- a/style.css
+++ b/src/style.css
@@ -3,7 +3,7 @@
font-style: normal;
font-weight: 400;
font-display: swap;
- src: url('fonts/open-sans-v44-latin-regular.woff2') format('woff2');
+ src: url('assets/fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}
html, body, div, span, applet, object, iframe,
diff --git a/content.test.js b/tests/content.test.js
similarity index 98%
rename from content.test.js
rename to tests/content.test.js
index 6819872..197cc77 100644
--- a/content.test.js
+++ b/tests/content.test.js
@@ -1,7 +1,7 @@
import assert from 'node:assert/strict';
import { test } from 'node:test';
import zwus from 'zwus';
-import { makeSig } from './sig.js';
+import { makeSig } from '../src/sig.js';
test('page overlay detects headers split by WBR and decodes across the split', async () => {
const buttons = [], inserted = [], fixtures = [], texts = [];
@@ -78,7 +78,7 @@ test('page overlay detects headers split by WBR and decodes across the split', a
};
globalThis.requestAnimationFrame = callback => { callback(); return 1; };
- await import('./content.js');
+ await import('../src/content.js');
assert.equal(buttons.length, fixtures.length);
fixtures.forEach(({ cipher }, i) =>
assert.equal(buttons[i].textContent, cipher === 'PLAIN' ? 'Decode' : 'Decrypt'));
diff --git a/sig.test.js b/tests/sig.test.js
similarity index 97%
rename from sig.test.js
rename to tests/sig.test.js
index 125d88d..e52b418 100644
--- a/sig.test.js
+++ b/tests/sig.test.js
@@ -1,10 +1,10 @@
import assert from 'node:assert/strict';
import { test } from 'node:test';
import zwus from 'zwus';
-import * as chunked from './chunked.js';
-import * as ctr from './speck48_96ctr.js';
-import * as ecb from './speck32_64ecb.js';
-import { makeSig, parseSig, parseModernSig, parseLegacySig, getPayloadEnd } from './sig.js';
+import * as chunked from '../src/chunked.js';
+import * as ctr from '../src/speck48_96ctr.js';
+import * as ecb from '../src/speck32_64ecb.js';
+import { makeSig, parseSig, parseModernSig, parseLegacySig, getPayloadEnd } from '../src/sig.js';
// Frozen wire-format fixtures, independent of the signature registry.
const HEADERS = {
diff --git a/vite.config.js b/vite.config.js
index 73fc40f..8844023 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -65,15 +65,16 @@ export default defineConfig(async ({ mode }) => {
plugins.push({
name: 'copy-icon',
writeBundle() {
- if (fs.existsSync('icon_500.png')) {
- fs.copyFileSync('icon_500.png', `dist/${target}/icon_500.png`);
+ if (fs.existsSync('src/assets/icon_500.png')) {
+ fs.copyFileSync('src/assets/icon_500.png', `dist/${target}/icon_500.png`);
}
}
});
return {
+ root: 'src',
build: {
- outDir: `dist/${target}`,
+ outDir: `../dist/${target}`,
emptyOutDir: true,
},
plugins,