From 85ae6c6fcdfe5cc2493c4f2ad29398f00fc2e5c2 Mon Sep 17 00:00:00 2001
From: nobkd <44443899+nobkd@users.noreply.github.com>
Date: Sat, 12 Apr 2025 02:34:45 +0200
Subject: [PATCH 01/20] WIP nue
---
bun.lock | 49 ++++++++++++++-------
package.json | 1 +
src-nue/@lib/bg.js | 0
src-nue/@lib/map.css | 2 +
src-nue/@lib/map.js | 0
src-nue/@lib/options.css | 0
src-nue/@view/bg.dhtml | 3 ++
src-nue/@view/layout.html | 3 ++
src-nue/@view/map.dhtml | 3 ++
src-nue/@view/options.dhtml | 3 ++
src-nue/bg.md | 6 +++
{public => src-nue}/icons/48-icon-grey.png | Bin
{public => src-nue}/icons/48-icon.png | Bin
{public => src-nue}/icons/96-icon-grey.png | Bin
{public => src-nue}/icons/96-icon.png | Bin
src-nue/manifest.json | 42 ++++++++++++++++++
src-nue/map.md | 6 +++
src-nue/options.md | 6 +++
src-nue/site.yaml | 5 +++
19 files changed, 114 insertions(+), 15 deletions(-)
create mode 100644 src-nue/@lib/bg.js
create mode 100644 src-nue/@lib/map.css
create mode 100644 src-nue/@lib/map.js
create mode 100644 src-nue/@lib/options.css
create mode 100644 src-nue/@view/bg.dhtml
create mode 100644 src-nue/@view/layout.html
create mode 100644 src-nue/@view/map.dhtml
create mode 100644 src-nue/@view/options.dhtml
create mode 100644 src-nue/bg.md
rename {public => src-nue}/icons/48-icon-grey.png (100%)
rename {public => src-nue}/icons/48-icon.png (100%)
rename {public => src-nue}/icons/96-icon-grey.png (100%)
rename {public => src-nue}/icons/96-icon.png (100%)
create mode 100644 src-nue/manifest.json
create mode 100644 src-nue/map.md
create mode 100644 src-nue/options.md
create mode 100644 src-nue/site.yaml
diff --git a/bun.lock b/bun.lock
index 8ddbc54..bb3450b 100644
--- a/bun.lock
+++ b/bun.lock
@@ -10,6 +10,7 @@
},
"devDependencies": {
"npm-run-all": "^4.1.5",
+ "nuekit": "^1.0.0-RC.3",
"web-ext": "^8.5.0",
},
},
@@ -103,6 +104,8 @@
"async": ["async@3.2.6", "", {}, "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA=="],
+ "async-function": ["async-function@1.0.0", "", {}, "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA=="],
+
"atomic-sleep": ["atomic-sleep@1.0.0", "", {}, "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ=="],
"atomically": ["atomically@2.0.3", "", { "dependencies": { "stubborn-fs": "^1.2.5", "when-exit": "^2.1.1" } }, "sha512-kU6FmrwZ3Lx7/7y3hPS5QnbJfaohcIul5fGqf7ok+4KklIEk9tJ0C2IQPdacSbVUWv6zVHXEBWoWd6NrVMT7Cw=="],
@@ -135,9 +138,9 @@
"call-bind": ["call-bind@1.0.8", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", "get-intrinsic": "^1.2.4", "set-function-length": "^1.2.2" } }, "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww=="],
- "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.1", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g=="],
+ "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
- "call-bound": ["call-bound@1.0.3", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "get-intrinsic": "^1.2.6" } }, "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA=="],
+ "call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="],
"callsites": ["callsites@3.1.0", "", {}, "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="],
@@ -213,6 +216,8 @@
"define-properties": ["define-properties@1.2.1", "", { "dependencies": { "define-data-property": "^1.0.1", "has-property-descriptors": "^1.0.0", "object-keys": "^1.1.1" } }, "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg=="],
+ "diff-dom": ["diff-dom@5.1.4", "", {}, "sha512-TSEaVdVGictY1KHg7VpVw2nuM02YKC9C8/qBkGiCnkiAybVbu1zQTMj2/dnVLRO7Z62UsqzHGpXweiOj5/jaZg=="],
+
"doctrine": ["doctrine@3.0.0", "", { "dependencies": { "esutils": "^2.0.2" } }, "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w=="],
"dom-serializer": ["dom-serializer@2.0.0", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", "entities": "^4.2.0" } }, "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg=="],
@@ -229,7 +234,7 @@
"emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
- "entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
+ "entities": ["entities@6.0.0", "", {}, "sha512-aKstq2TDOndCn4diEyp9Uq/Flu2i1GlLkc6XIDQSDMuaFE3OPW5OphLCyQ5SpSJZTb4reN+kTcYru5yIfXoRPw=="],
"error-ex": ["error-ex@1.3.2", "", { "dependencies": { "is-arrayish": "^0.2.1" } }, "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g=="],
@@ -307,7 +312,7 @@
"flatted": ["flatted@3.3.3", "", {}, "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg=="],
- "for-each": ["for-each@0.3.3", "", { "dependencies": { "is-callable": "^1.1.3" } }, "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw=="],
+ "for-each": ["for-each@0.3.5", "", { "dependencies": { "is-callable": "^1.2.7" } }, "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg=="],
"fs-extra": ["fs-extra@11.3.0", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" } }, "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew=="],
@@ -325,7 +330,7 @@
"get-east-asian-width": ["get-east-asian-width@1.3.0", "", {}, "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ=="],
- "get-intrinsic": ["get-intrinsic@1.2.7", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0", "function-bind": "^1.1.2", "get-proto": "^1.0.0", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA=="],
+ "get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
"get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="],
@@ -371,7 +376,7 @@
"hosted-git-info": ["hosted-git-info@2.8.9", "", {}, "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw=="],
- "htmlparser2": ["htmlparser2@8.0.2", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.0.1", "entities": "^4.4.0" } }, "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA=="],
+ "htmlparser2": ["htmlparser2@10.0.0", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.2.1", "entities": "^6.0.0" } }, "sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g=="],
"https-proxy-agent": ["https-proxy-agent@7.0.6", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "4" } }, "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw=="],
@@ -403,11 +408,11 @@
"is-arrayish": ["is-arrayish@0.2.1", "", {}, "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg=="],
- "is-async-function": ["is-async-function@2.1.0", "", { "dependencies": { "call-bound": "^1.0.3", "get-proto": "^1.0.1", "has-tostringtag": "^1.0.2", "safe-regex-test": "^1.1.0" } }, "sha512-GExz9MtyhlZyXYLxzlJRj5WUCE661zhDa1Yna52CN57AJsymh+DvXXjyveSioqSRdxvUrdKdvqB1b5cVKsNpWQ=="],
+ "is-async-function": ["is-async-function@2.1.1", "", { "dependencies": { "async-function": "^1.0.0", "call-bound": "^1.0.3", "get-proto": "^1.0.1", "has-tostringtag": "^1.0.2", "safe-regex-test": "^1.1.0" } }, "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ=="],
"is-bigint": ["is-bigint@1.1.0", "", { "dependencies": { "has-bigints": "^1.0.2" } }, "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ=="],
- "is-boolean-object": ["is-boolean-object@1.2.1", "", { "dependencies": { "call-bound": "^1.0.2", "has-tostringtag": "^1.0.2" } }, "sha512-l9qO6eFlUETHtuihLcYOaLKByJ1f+N4kthcU9YjHy3N+B3hWv0y/2Nd0mu/7lTFnRQHTrSdXF50HQ3bl5fEnng=="],
+ "is-boolean-object": ["is-boolean-object@1.2.2", "", { "dependencies": { "call-bound": "^1.0.3", "has-tostringtag": "^1.0.2" } }, "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A=="],
"is-callable": ["is-callable@1.2.7", "", {}, "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA=="],
@@ -463,7 +468,7 @@
"is-weakmap": ["is-weakmap@2.0.2", "", {}, "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w=="],
- "is-weakref": ["is-weakref@1.1.0", "", { "dependencies": { "call-bound": "^1.0.2" } }, "sha512-SXM8Nwyys6nT5WP6pltOwKytLV7FqQ4UiibxVmW+EIosHcmCqkkjViTb5SNssDlkCiEYRP1/pdWUKVvZBmsR2Q=="],
+ "is-weakref": ["is-weakref@1.1.1", "", { "dependencies": { "call-bound": "^1.0.3" } }, "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew=="],
"is-weakset": ["is-weakset@2.0.4", "", { "dependencies": { "call-bound": "^1.0.3", "get-intrinsic": "^1.2.6" } }, "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ=="],
@@ -555,7 +560,15 @@
"nth-check": ["nth-check@2.1.1", "", { "dependencies": { "boolbase": "^1.0.0" } }, "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w=="],
- "object-inspect": ["object-inspect@1.13.3", "", {}, "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA=="],
+ "nue-glow": ["nue-glow@0.2.2", "", {}, "sha512-ua/EDUmkWswmSIAAET9MNqwG3lk92eh7H//2XZ3LGJwCojiBukEpGrRyu9Mn5EzU4fHkCvL1ObChTO8OFWMFEg=="],
+
+ "nuejs-core": ["nuejs-core@0.5.3", "", { "dependencies": { "htmlparser2": "^10.0.0" } }, "sha512-tXEwdTSbR/c8NeRFrYawtJOKDkDUeiSX2XWW8N3qvrm6T2DS9EtV45SQya0nmou32wgoz1us/uNHBhuawV98jw=="],
+
+ "nuekit": ["nuekit@1.0.0-RC.3", "", { "dependencies": { "diff-dom": "^5.1.4", "js-yaml": "^4.1.0", "nue-glow": "latest", "nuejs-core": "latest", "nuemark": "latest" }, "peerDependencies": { "esbuild": "^0.25", "lightningcss": "^1.29" }, "optionalPeers": ["esbuild", "lightningcss"], "bin": { "nue": "src/cli.js" } }, "sha512-kbMAGE2BU8yVn9hYmi6K/Vi5Uf4YIb7UGWex+ilBYZbrf+64dv/i438Epcdcb3yPLvzlcf9hykTnQEUu+fY3ag=="],
+
+ "nuemark": ["nuemark@0.6.2", "", { "dependencies": { "js-yaml": "^4.1.0", "nue-glow": "latest" } }, "sha512-JHcPebtjzUYVSFXRAK5NyzyW3DoUz4OalifCdYPMT0spAjlErM1fo0ZVX1bjvUNYkp9ASsGYACX8/PZ8oYst6Q=="],
+
+ "object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="],
"object-keys": ["object-keys@1.1.1", "", {}, "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="],
@@ -615,7 +628,7 @@
"pino-std-serializers": ["pino-std-serializers@7.0.0", "", {}, "sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA=="],
- "possible-typed-array-names": ["possible-typed-array-names@1.0.0", "", {}, "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q=="],
+ "possible-typed-array-names": ["possible-typed-array-names@1.1.0", "", {}, "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg=="],
"prelude-ls": ["prelude-ls@1.2.1", "", {}, "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g=="],
@@ -697,7 +710,7 @@
"shebang-regex": ["shebang-regex@1.0.0", "", {}, "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ=="],
- "shell-quote": ["shell-quote@1.8.2", "", {}, "sha512-AzqKpGKjrj7EM6rKVQEPpB288oCfnrEIuyoT9cyF4nmGa7V8Zk6f7RRqYisX8X9m+Q7bd632aZW4ky7EhbQztA=="],
+ "shell-quote": ["shell-quote@1.7.3", "", {}, "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw=="],
"shellwords": ["shellwords@0.1.1", "", {}, "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww=="],
@@ -825,7 +838,7 @@
"which-collection": ["which-collection@1.0.2", "", { "dependencies": { "is-map": "^2.0.3", "is-set": "^2.0.3", "is-weakmap": "^2.0.2", "is-weakset": "^2.0.3" } }, "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw=="],
- "which-typed-array": ["which-typed-array@1.1.18", "", { "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.8", "call-bound": "^1.0.3", "for-each": "^0.3.3", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" } }, "sha512-qEcY+KJYlWyLH9vNbsr6/5j59AXk5ni5aakf8ldzBvGde6Iz4sxZGkJyWSAueTG7QhOvNRYb1lDdFmL5Td0QKA=="],
+ "which-typed-array": ["which-typed-array@1.1.19", "", { "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.8", "call-bound": "^1.0.4", "for-each": "^0.3.5", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" } }, "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw=="],
"widest-line": ["widest-line@5.0.0", "", { "dependencies": { "string-width": "^7.0.0" } }, "sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA=="],
@@ -879,12 +892,16 @@
"boxen/type-fest": ["type-fest@4.40.0", "", {}, "sha512-ABHZ2/tS2JkvH1PEjxFDTUWC8dB5OsIGZP4IFLhR293GqT5Y5qB1WwL2kMPYhQW9DVgVD8Hd7I8gjwPIf5GFkw=="],
+ "cheerio/htmlparser2": ["htmlparser2@8.0.2", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.0.1", "entities": "^4.4.0" } }, "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA=="],
+
"chrome-launcher/escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="],
"cliui/wrap-ansi": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],
"config-chain/ini": ["ini@1.3.8", "", {}, "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="],
+ "dom-serializer/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
+
"dot-prop/type-fest": ["type-fest@4.40.0", "", {}, "sha512-ABHZ2/tS2JkvH1PEjxFDTUWC8dB5OsIGZP4IFLhR293GqT5Y5qB1WwL2kMPYhQW9DVgVD8Hd7I8gjwPIf5GFkw=="],
"eslint/ajv": ["ajv@6.12.6", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="],
@@ -903,8 +920,6 @@
"fx-runner/commander": ["commander@2.9.0", "", { "dependencies": { "graceful-readlink": ">= 1.0.0" } }, "sha512-bmkUukX8wAOjHdN26xj5c4ctEV22TQ7dQYhSmuckKhToXrkUn0iIaolHdIxYYqD55nhpSPA9zPQ1yP57GdXP2A=="],
- "fx-runner/shell-quote": ["shell-quote@1.7.3", "", {}, "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw=="],
-
"fx-runner/which": ["which@1.2.4", "", { "dependencies": { "is-absolute": "^0.1.7", "isexe": "^1.1.1" }, "bin": { "which": "./bin/which" } }, "sha512-zDRAqDSBudazdfM9zpiI30Fu9ve47htYXcGi3ln0wfKu2a7SmrT6F3VDoYONu//48V8Vz4TdCRNPjtvyRO3yBA=="],
"global-directory/ini": ["ini@4.1.1", "", {}, "sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g=="],
@@ -929,6 +944,8 @@
"package-json/semver": ["semver@7.7.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA=="],
+ "parse5/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
+
"pino-abstract-transport/readable-stream": ["readable-stream@4.7.0", "", { "dependencies": { "abort-controller": "^3.0.0", "buffer": "^6.0.3", "events": "^3.3.0", "process": "^0.11.10", "string_decoder": "^1.3.0" } }, "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg=="],
"rc/ini": ["ini@1.3.8", "", {}, "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="],
@@ -975,6 +992,8 @@
"boxen/string-width/strip-ansi": ["strip-ansi@7.1.0", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ=="],
+ "cheerio/htmlparser2/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
+
"cliui/wrap-ansi/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
"eslint/ajv/json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="],
diff --git a/package.json b/package.json
index b6564ef..3266873 100644
--- a/package.json
+++ b/package.json
@@ -25,6 +25,7 @@
},
"devDependencies": {
"npm-run-all": "^4.1.5",
+ "nuekit": "^1.0.0-RC.3",
"web-ext": "^8.5.0"
},
"dependencies": {
diff --git a/src-nue/@lib/bg.js b/src-nue/@lib/bg.js
new file mode 100644
index 0000000..e69de29
diff --git a/src-nue/@lib/map.css b/src-nue/@lib/map.css
new file mode 100644
index 0000000..df67efb
--- /dev/null
+++ b/src-nue/@lib/map.css
@@ -0,0 +1,2 @@
+@import "leaflet/dist/leaflet.css";
+@import "leaflet-fullscreen/dist/leaflet.fullscreen.css";
diff --git a/src-nue/@lib/map.js b/src-nue/@lib/map.js
new file mode 100644
index 0000000..e69de29
diff --git a/src-nue/@lib/options.css b/src-nue/@lib/options.css
new file mode 100644
index 0000000..e69de29
diff --git a/src-nue/@view/bg.dhtml b/src-nue/@view/bg.dhtml
new file mode 100644
index 0000000..a125486
--- /dev/null
+++ b/src-nue/@view/bg.dhtml
@@ -0,0 +1,3 @@
+
+ bg
+
diff --git a/src-nue/@view/layout.html b/src-nue/@view/layout.html
new file mode 100644
index 0000000..83339bd
--- /dev/null
+++ b/src-nue/@view/layout.html
@@ -0,0 +1,3 @@
+
+
+
diff --git a/src-nue/@view/map.dhtml b/src-nue/@view/map.dhtml
new file mode 100644
index 0000000..53047fc
--- /dev/null
+++ b/src-nue/@view/map.dhtml
@@ -0,0 +1,3 @@
+
+ map
+
diff --git a/src-nue/@view/options.dhtml b/src-nue/@view/options.dhtml
new file mode 100644
index 0000000..900e7ae
--- /dev/null
+++ b/src-nue/@view/options.dhtml
@@ -0,0 +1,3 @@
+
+ options
+
diff --git a/src-nue/bg.md b/src-nue/bg.md
new file mode 100644
index 0000000..53b9c89
--- /dev/null
+++ b/src-nue/bg.md
@@ -0,0 +1,6 @@
+---
+include: [bg]
+title: Background
+---
+
+[bg]
diff --git a/public/icons/48-icon-grey.png b/src-nue/icons/48-icon-grey.png
similarity index 100%
rename from public/icons/48-icon-grey.png
rename to src-nue/icons/48-icon-grey.png
diff --git a/public/icons/48-icon.png b/src-nue/icons/48-icon.png
similarity index 100%
rename from public/icons/48-icon.png
rename to src-nue/icons/48-icon.png
diff --git a/public/icons/96-icon-grey.png b/src-nue/icons/96-icon-grey.png
similarity index 100%
rename from public/icons/96-icon-grey.png
rename to src-nue/icons/96-icon-grey.png
diff --git a/public/icons/96-icon.png b/src-nue/icons/96-icon.png
similarity index 100%
rename from public/icons/96-icon.png
rename to src-nue/icons/96-icon.png
diff --git a/src-nue/manifest.json b/src-nue/manifest.json
new file mode 100644
index 0000000..5a3c0e1
--- /dev/null
+++ b/src-nue/manifest.json
@@ -0,0 +1,42 @@
+{
+ "description": "Replace Google Maps iFrames with OpenStreetMap",
+ "manifest_version": 2,
+ "name": "Replace Maps",
+ "version": "0.0.8",
+ "homepage_url": "https://github.com/nobkd/replace-maps",
+ "icons": {
+ "48": "icons/48-icon.png",
+ "96": "icons/96-icon.png"
+ },
+ "browser_specific_settings": {
+ "gecko": {
+ "id": "replace_maps@nobkd.github.io",
+ "strict_min_version": "89.0"
+ }
+ },
+ "permissions": [
+ "tabs",
+ "webNavigation",
+ "storage",
+ "webRequest",
+ "webRequestBlocking",
+ ""
+ ],
+ "background": {
+ "page": "bg.html"
+ },
+ "web_accessible_resources": [
+ "map.html"
+ ],
+ "browser_action": {
+ "default_icon": {
+ "48": "icons/48-icon.png",
+ "96": "icons/96-icon.png"
+ },
+ "default_area": "navbar",
+ "default_title": "Replace Maps"
+ },
+ "options_ui": {
+ "page": "options.html"
+ }
+}
diff --git a/src-nue/map.md b/src-nue/map.md
new file mode 100644
index 0000000..173d6d8
--- /dev/null
+++ b/src-nue/map.md
@@ -0,0 +1,6 @@
+---
+include: [map]
+title: Map
+---
+
+[maps]
diff --git a/src-nue/options.md b/src-nue/options.md
new file mode 100644
index 0000000..da5908f
--- /dev/null
+++ b/src-nue/options.md
@@ -0,0 +1,6 @@
+---
+include: [options]
+title: Options
+---
+
+[options]
diff --git a/src-nue/site.yaml b/src-nue/site.yaml
new file mode 100644
index 0000000..d225b8d
--- /dev/null
+++ b/src-nue/site.yaml
@@ -0,0 +1,5 @@
+dist: ../.dist
+libs: ['@lib']
+globals: ['@view']
+
+title_template: '%s | Replace Maps'
From 829cc8b9c12c48a1770b23ff0bd94578b6d92b5a Mon Sep 17 00:00:00 2001
From: nobkd <44443899+nobkd@users.noreply.github.com>
Date: Sat, 12 Apr 2025 03:01:50 +0200
Subject: [PATCH 02/20] move
---
src-nue/@global/bootstrap.js | 5 +++++
src-nue/{@view => @global}/layout.html | 0
src-nue/@lib/bg.dhtml | 15 +++++++++++++++
src-nue/@lib/map.dhtml | 15 +++++++++++++++
src-nue/@lib/options.dhtml | 15 +++++++++++++++
src-nue/@view/bg.dhtml | 3 ---
src-nue/@view/map.dhtml | 3 ---
src-nue/@view/options.dhtml | 3 ---
src-nue/site.yaml | 2 +-
9 files changed, 51 insertions(+), 10 deletions(-)
create mode 100644 src-nue/@global/bootstrap.js
rename src-nue/{@view => @global}/layout.html (100%)
create mode 100644 src-nue/@lib/bg.dhtml
create mode 100644 src-nue/@lib/map.dhtml
create mode 100644 src-nue/@lib/options.dhtml
delete mode 100644 src-nue/@view/bg.dhtml
delete mode 100644 src-nue/@view/map.dhtml
delete mode 100644 src-nue/@view/options.dhtml
diff --git a/src-nue/@global/bootstrap.js b/src-nue/@global/bootstrap.js
new file mode 100644
index 0000000..79d5a65
--- /dev/null
+++ b/src-nue/@global/bootstrap.js
@@ -0,0 +1,5 @@
+import { router } from '/@nue/app-router.js'
+
+router.configure({
+ persistent_params: ['theme', 'excluded', 'resizable']
+})
diff --git a/src-nue/@view/layout.html b/src-nue/@global/layout.html
similarity index 100%
rename from src-nue/@view/layout.html
rename to src-nue/@global/layout.html
diff --git a/src-nue/@lib/bg.dhtml b/src-nue/@lib/bg.dhtml
new file mode 100644
index 0000000..013a140
--- /dev/null
+++ b/src-nue/@lib/bg.dhtml
@@ -0,0 +1,15 @@
+
+
+
+ bg
+
+
+
diff --git a/src-nue/@lib/map.dhtml b/src-nue/@lib/map.dhtml
new file mode 100644
index 0000000..45739aa
--- /dev/null
+++ b/src-nue/@lib/map.dhtml
@@ -0,0 +1,15 @@
+
+
+
+ map
+
+
+
diff --git a/src-nue/@lib/options.dhtml b/src-nue/@lib/options.dhtml
new file mode 100644
index 0000000..ae5325a
--- /dev/null
+++ b/src-nue/@lib/options.dhtml
@@ -0,0 +1,15 @@
+
+
+
+ options
+
+
+
diff --git a/src-nue/@view/bg.dhtml b/src-nue/@view/bg.dhtml
deleted file mode 100644
index a125486..0000000
--- a/src-nue/@view/bg.dhtml
+++ /dev/null
@@ -1,3 +0,0 @@
-
- bg
-
diff --git a/src-nue/@view/map.dhtml b/src-nue/@view/map.dhtml
deleted file mode 100644
index 53047fc..0000000
--- a/src-nue/@view/map.dhtml
+++ /dev/null
@@ -1,3 +0,0 @@
-
- map
-
diff --git a/src-nue/@view/options.dhtml b/src-nue/@view/options.dhtml
deleted file mode 100644
index 900e7ae..0000000
--- a/src-nue/@view/options.dhtml
+++ /dev/null
@@ -1,3 +0,0 @@
-
- options
-
diff --git a/src-nue/site.yaml b/src-nue/site.yaml
index d225b8d..6b54d54 100644
--- a/src-nue/site.yaml
+++ b/src-nue/site.yaml
@@ -1,5 +1,5 @@
dist: ../.dist
libs: ['@lib']
-globals: ['@view']
+globals: ['@global']
title_template: '%s | Replace Maps'
From d35013f9ed36e60d4f7d8e0a1ebd294f89208976 Mon Sep 17 00:00:00 2001
From: nobkd <44443899+nobkd@users.noreply.github.com>
Date: Sun, 13 Apr 2025 01:33:44 +0200
Subject: [PATCH 03/20] wip options, stuff
---
src-nue/@global/bootstrap.js | 3 +-
src-nue/@global/layout.html | 5 +++
src-nue/@lib/{bg.js => bg-script.js} | 0
src-nue/@lib/bg.dhtml | 1 +
src-nue/@lib/{map.js => map-script.js} | 0
src-nue/@lib/map.dhtml | 1 +
src-nue/@lib/options.dhtml | 58 +++++++++++++++++++++++++-
src-nue/site.yaml | 1 +
src/options.html | 8 ++--
9 files changed, 71 insertions(+), 6 deletions(-)
rename src-nue/@lib/{bg.js => bg-script.js} (100%)
rename src-nue/@lib/{map.js => map-script.js} (100%)
diff --git a/src-nue/@global/bootstrap.js b/src-nue/@global/bootstrap.js
index 79d5a65..e3ab330 100644
--- a/src-nue/@global/bootstrap.js
+++ b/src-nue/@global/bootstrap.js
@@ -1,5 +1,6 @@
import { router } from '/@nue/app-router.js'
router.configure({
- persistent_params: ['theme', 'excluded', 'resizable']
+ route: '/:',
+ persistent_params: ['theme', 'disabled_hosts', 'resizable'],
})
diff --git a/src-nue/@global/layout.html b/src-nue/@global/layout.html
index 83339bd..692b970 100644
--- a/src-nue/@global/layout.html
+++ b/src-nue/@global/layout.html
@@ -1,3 +1,8 @@
+
+
+
+
+
diff --git a/src-nue/@lib/bg.js b/src-nue/@lib/bg-script.js
similarity index 100%
rename from src-nue/@lib/bg.js
rename to src-nue/@lib/bg-script.js
diff --git a/src-nue/@lib/bg.dhtml b/src-nue/@lib/bg.dhtml
index 013a140..4b1ebe7 100644
--- a/src-nue/@lib/bg.dhtml
+++ b/src-nue/@lib/bg.dhtml
@@ -10,6 +10,7 @@
mounted() {
router.initialize({ root: this.root })
+ router.on('theme disabled_hosts resizable', () => this.update())
}
diff --git a/src-nue/@lib/map.js b/src-nue/@lib/map-script.js
similarity index 100%
rename from src-nue/@lib/map.js
rename to src-nue/@lib/map-script.js
diff --git a/src-nue/@lib/map.dhtml b/src-nue/@lib/map.dhtml
index 45739aa..6455ab3 100644
--- a/src-nue/@lib/map.dhtml
+++ b/src-nue/@lib/map.dhtml
@@ -10,6 +10,7 @@
mounted() {
router.initialize({ root: this.root })
+ router.on('theme disabled_hosts resizable', () => this.update())
}
diff --git a/src-nue/@lib/options.dhtml b/src-nue/@lib/options.dhtml
index ae5325a..5de752c 100644
--- a/src-nue/@lib/options.dhtml
+++ b/src-nue/@lib/options.dhtml
@@ -1,15 +1,71 @@
- options
+
+
+
+
+
+
+
+
+
+
diff --git a/src-nue/site.yaml b/src-nue/site.yaml
index 6b54d54..5bdbb88 100644
--- a/src-nue/site.yaml
+++ b/src-nue/site.yaml
@@ -1,5 +1,6 @@
dist: ../.dist
libs: ['@lib']
globals: ['@global']
+bundle: ['@lib/map-script.js', '@lib/bg-script.js']
title_template: '%s | Replace Maps'
diff --git a/src/options.html b/src/options.html
index f2cddb5..5a05e86 100644
--- a/src/options.html
+++ b/src/options.html
@@ -16,10 +16,10 @@
-->
-