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