Compare commits
No commits in common. "5dfdd73cf54812de442b3392b10bee004bddad16" and "096922ff754bb1e70b11cc29179a770bf3755c55" have entirely different histories.
5dfdd73cf5
...
096922ff75
42
package.json
42
package.json
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite build -m development --watch",
|
"start": "vite build -m development --watch",
|
||||||
"start:chromium": "VITE_BROWSER=chromium pnpm start",
|
"start:chromium": "VITE_BROWSER=chromium pnpm start",
|
||||||
|
@ -16,36 +15,36 @@
|
||||||
"@holllo/preact-components": "^0.2.3",
|
"@holllo/preact-components": "^0.2.3",
|
||||||
"htm": "^3.1.1",
|
"htm": "^3.1.1",
|
||||||
"modern-normalize": "^1.1.0",
|
"modern-normalize": "^1.1.0",
|
||||||
"preact": "^10.13.1",
|
"preact": "^10.11.0",
|
||||||
"webextension-polyfill": "^0.10.0"
|
"webextension-polyfill": "^0.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@preact/preset-vite": "^2.5.0",
|
"@preact/preset-vite": "^2.4.0",
|
||||||
"@types/babel__core": "^7.20.0",
|
"@types/babel__core": "^7.1.19",
|
||||||
"@types/webextension-polyfill": "^0.10.0",
|
"@types/webextension-polyfill": "^0.9.1",
|
||||||
"ava": "^5.2.0",
|
"ava": "^4.3.3",
|
||||||
"c8": "^7.13.0",
|
"c8": "^7.12.0",
|
||||||
"postcss": "^8.4.21",
|
"postcss": "^8.4.16",
|
||||||
"sass": "^1.60.0",
|
"sass": "^1.55.0",
|
||||||
"stylelint": "^15.3.0",
|
"stylelint": "^14.12.1",
|
||||||
"stylelint-config-standard-scss": "^7.0.1",
|
"stylelint-config-standard-scss": "^5.0.0",
|
||||||
"trash-cli": "^5.0.0",
|
"trash-cli": "^5.0.0",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^5.0.2",
|
"typescript": "^4.8.3",
|
||||||
"vite": "^4.2.1",
|
"vite": "^3.1.3",
|
||||||
"vite-plugin-web-extension": "^3.0.2",
|
"vite-plugin-web-extension": "^1.4.4",
|
||||||
"web-ext": "^7.6.0",
|
"web-ext": "^7.2.0",
|
||||||
"xo": "^0.53.1"
|
"xo": "^0.52.3"
|
||||||
},
|
},
|
||||||
"ava": {
|
"ava": {
|
||||||
"extensions": {
|
"extensions": [
|
||||||
"ts": "module"
|
"ts"
|
||||||
},
|
],
|
||||||
"files": [
|
"files": [
|
||||||
"tests/**/*.test.ts"
|
"tests/**/*.test.ts"
|
||||||
],
|
],
|
||||||
"nodeArguments": [
|
"require": [
|
||||||
"--loader=ts-node/esm"
|
"ts-node/register"
|
||||||
],
|
],
|
||||||
"snapshotDir": "tests/snapshots"
|
"snapshotDir": "tests/snapshots"
|
||||||
},
|
},
|
||||||
|
@ -66,6 +65,7 @@
|
||||||
"files": "tests/**/*.test.ts",
|
"files": "tests/**/*.test.ts",
|
||||||
"rules": {
|
"rules": {
|
||||||
"@typescript-eslint/triple-slash-reference": "off",
|
"@typescript-eslint/triple-slash-reference": "off",
|
||||||
|
"import/extensions": "off",
|
||||||
"no-await-in-loop": "off"
|
"no-await-in-loop": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
3933
pnpm-lock.yaml
3933
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -71,23 +71,18 @@ export async function contextClicked(
|
||||||
let url: string | undefined;
|
let url: string | undefined;
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case 'queue-add-new-link': {
|
case 'queue-add-new-link':
|
||||||
text = info.linkText;
|
text = info.linkText;
|
||||||
url = info.linkUrl;
|
url = info.linkUrl;
|
||||||
break;
|
break;
|
||||||
}
|
case 'queue-add-new-link-tab':
|
||||||
|
|
||||||
case 'queue-add-new-link-tab': {
|
|
||||||
text = tab?.title;
|
text = tab?.title;
|
||||||
url = info.pageUrl;
|
url = info.pageUrl;
|
||||||
break;
|
break;
|
||||||
}
|
default:
|
||||||
|
|
||||||
default: {
|
|
||||||
console.warn(`Encountered unknown context menu ID: ${id}`);
|
console.warn(`Encountered unknown context menu ID: ${id}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (url === undefined) {
|
if (url === undefined) {
|
||||||
console.warn('Cannot add a new item without a URL.');
|
console.warn('Cannot add a new item without a URL.');
|
||||||
|
|
|
@ -15,7 +15,7 @@ export default function createManifest(
|
||||||
};
|
};
|
||||||
|
|
||||||
const icons = {
|
const icons = {
|
||||||
128: 'queue.png',
|
128: 'assets/queue.png',
|
||||||
};
|
};
|
||||||
|
|
||||||
manifest.icons = icons;
|
manifest.icons = icons;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Queue</title>
|
<title>Queue</title>
|
||||||
<link rel="shortcut icon" href="/queue.png" type="image/png">
|
<link rel="shortcut icon" href="/assets/queue.png" type="image/png">
|
||||||
<link rel="stylesheet" href="./index.scss">
|
<link rel="stylesheet" href="./index.scss">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import {
|
||||||
dataMigrations,
|
dataMigrations,
|
||||||
deserializeQueue,
|
deserializeQueue,
|
||||||
serializeQueue,
|
serializeQueue,
|
||||||
} from '../source/settings/migrations.js';
|
} from '../source/settings/migrations';
|
||||||
|
|
||||||
const queueItemSample: Queue.Item = {
|
const queueItemSample: Queue.Item = {
|
||||||
added: new Date('2022-03-02T16:00:00Z'),
|
added: new Date('2022-03-02T16:00:00Z'),
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"outDir": "build",
|
"outDir": "build",
|
||||||
"skipLibCheck": true,
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "ESNext"
|
"target": "ESNext"
|
||||||
},
|
},
|
||||||
|
@ -16,5 +15,10 @@
|
||||||
"source/**/*.ts",
|
"source/**/*.ts",
|
||||||
"tests/**/*.ts",
|
"tests/**/*.ts",
|
||||||
"vite.config.ts"
|
"vite.config.ts"
|
||||||
]
|
],
|
||||||
|
"ts-node": {
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "CommonJS"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,11 +46,11 @@ export default defineConfig({
|
||||||
// See vite-plugin-web-extension for documentation.
|
// See vite-plugin-web-extension for documentation.
|
||||||
// https://github.com/aklinker1/vite-plugin-web-extension
|
// https://github.com/aklinker1/vite-plugin-web-extension
|
||||||
webExtension({
|
webExtension({
|
||||||
|
assets: 'assets',
|
||||||
browser: targetBrowser,
|
browser: targetBrowser,
|
||||||
manifest: () => createManifest(targetBrowser),
|
manifest: () => createManifest(targetBrowser),
|
||||||
webExtConfig,
|
webExtConfig,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
publicDir: 'source/assets',
|
|
||||||
root: sourceDir,
|
root: sourceDir,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue