Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
node-version: 22
cache: pnpm

- name: Approve build scripts
run: pnpm config set onlyBuiltDependencies '["@parcel/watcher","@swc/core","esbuild","lmdb","msgpackr-extract","sharp"]'

- name: Install dependencies
run: pnpm install --frozen-lockfile

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
node-version: 22
cache: pnpm

- name: Approve build scripts
run: pnpm config set onlyBuiltDependencies '["@parcel/watcher","@swc/core","esbuild","lmdb","msgpackr-extract","sharp"]'

- name: Install dependencies
run: pnpm install --frozen-lockfile

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
"@types/node": "^26.0.1",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@typescript-eslint/eslint-plugin": "^8.62.0",
"@typescript-eslint/parser": "^8.62.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"autoprefixer": "^10.5.2",
"eslint": "^10.6.0",
"eslint-config-prettier": "^10.1.8",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.2",
"eslint-plugin-react": "^7.37.5",
"postcss": "^8.5.15",
"prettier": "^3.9.1",
Expand Down
624 changes: 337 additions & 287 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
onlyBuiltDependencies:
- "@parcel/watcher"
- "@swc/core"
- esbuild
- lmdb
- msgpackr-extract
- sharp
allowBuilds:
'@parcel/watcher': true
'@swc/core': true
esbuild: true
lmdb: true
msgpackr-extract: true
sharp: true

packages:
- '.'
10 changes: 5 additions & 5 deletions src/contents/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ Promise.all([
storage.get('highlightColor'),
storage.get('hotkey'),
]).then(([m, l, active, color, hk]) => {
if (m !== undefined) runMode = m as any;
if (l !== undefined) siteList = l as any;
if (m !== undefined) runMode = m as 'all' | 'specific';
if (l !== undefined) siteList = l as string[];
if (active !== undefined) isSpottingActive = active as boolean;
if (color !== undefined) {
const colorStr = color as string;
Expand Down Expand Up @@ -241,9 +241,9 @@ window.addEventListener(
// Reset overlay to current user color
if (currentColor) {
overlay.style.borderColor = currentColor;
let r = parseInt(currentColor.slice(1, 3), 16);
let g = parseInt(currentColor.slice(3, 5), 16);
let b = parseInt(currentColor.slice(5, 7), 16);
const r = parseInt(currentColor.slice(1, 3), 16);
const g = parseInt(currentColor.slice(3, 5), 16);
const b = parseInt(currentColor.slice(5, 7), 16);
if (!isNaN(r) && !isNaN(g) && !isNaN(b)) {
overlay.style.backgroundColor = `rgba(${r}, ${g}, ${b}, 0.2)`;
}
Expand Down
4 changes: 3 additions & 1 deletion src/popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ function IndexPopup() {
try {
const domain = new URL(url).hostname;
setCurrentDomain(domain);
} catch (e) {}
} catch (e) {
console.error('Failed to parse URL', e);
}
}
});
}
Expand Down
Loading