diff --git a/README.md b/README.md index 7fe8a0e8..2726211f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@

ChromeDownload - +

diff --git a/package.json b/package.json index f97d86d2..ea6a2549 100644 --- a/package.json +++ b/package.json @@ -35,16 +35,16 @@ "devDependencies": { "@babel/plugin-transform-runtime": "^7.26.9", "@babel/runtime": "^7.26.9", - "@bedframe/cli": "^0.0.91", - "@crxjs/vite-plugin": "2.1.0", - "@types/mime-types": "^2.1.4", + "@bedframe/cli": "^0.0.95", + "@crxjs/vite-plugin": "^2.2.0", + "@types/mime-types": "^3.0.1", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", - "cross-env": "^7.0.3", - "dependency-cruiser": "^16.10.0", - "eslint": "9.22.0", + "cross-env": "^10.0.0", + "dependency-cruiser": "^17.0.1", + "eslint": "^9.33.0", "glob": "^11.0.1", - "mime-types": "^2.1.35", + "mime-types": "^3.0.1", "prettier": "^3.5.3", "process": "^0.11.10", "publish-browser-extension": "^3.0.1", @@ -55,6 +55,7 @@ "url": "^0.11.4" }, "dependencies": { + "@bedframe/core": "^0.0.46", "@codemirror/autocomplete": "^6.18.6", "@codemirror/commands": "^6.8.0", "@codemirror/lang-css": "^6.3.1", @@ -65,10 +66,10 @@ "@sveltejs/vite-plugin-svelte": "^5.0.3", "@tailwindcss/forms": "^0.5.10", "@tsconfig/svelte": "^5.0.4", - "@types/chrome": "^0.0.308", + "@types/chrome": "^0.1.4", "@types/color": "^4.2.0", "@types/lodash": "^4.17.16", - "@types/node": "^22.13.10", + "@types/node": "^24.3.0", "@types/sortablejs": "^1.15.8", "@types/uuid": "^10.0.0", "@types/webextension-polyfill": "^0.12.3", diff --git a/src/css/injected.scss b/src/css/injected.scss index f66995a3..7b86bca6 100644 --- a/src/css/injected.scss +++ b/src/css/injected.scss @@ -801,6 +801,11 @@ div > ol:has(.uiFileHandlerWrapper) { box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.2); } +html.transparencyEffects [class*="ResourceList__ResourceItem___voTSd"], +html.transparencyEffects [class*="ResourceList__ResourceItem___voTSd"] [class*="ResourceList__name___ydvDT"] { + border-bottom: none !important; +} + .assessmentsWrapper .message { display: none; } diff --git a/src/interface/pages/settings/general.svelte b/src/interface/pages/settings/general.svelte index 91a8a600..8557b7be 100644 --- a/src/interface/pages/settings/general.svelte +++ b/src/interface/pages/settings/general.svelte @@ -183,18 +183,19 @@ props: { state: $settingsState.newsSource, onChange: (value: string) => settingsState.newsSource = value, - options: [ - { value: "australia", label: "Australia" }, - { value: "usa", label: "USA" }, - { value: "taiwan", label: "Taiwan" }, - { value: "hong_kong", label: "Hong Kong" }, - { value: "panama", label: "Panama" }, - { value: "canada", label: "Canada" }, - { value: "singapore", label: "Singapore" }, - { value: "uk", label: "UK" }, - { value: "japan", label: "Japan" }, - { value: "netherlands", label: "Netherlands" } + options: [ + { value: "australia", label: "Australia" }, + { value: "usa", label: "USA" }, + { value: "uk", label: "UK" }, + { value: "taiwan", label: "Taiwan" }, + { value: "hong_kong", label: "Hong Kong" }, + { value: "panama", label: "Panama" }, + { value: "canada", label: "Canada" }, + { value: "singapore", label: "Singapore" }, + { value: "japan", label: "Japan" }, + { value: "netherlands", label: "Netherlands" } ] + } } ] as option} diff --git a/src/seqta/utils/SendNewsPage.ts b/src/seqta/utils/SendNewsPage.ts index 95a7f046..f21c0bde 100644 --- a/src/seqta/utils/SendNewsPage.ts +++ b/src/seqta/utils/SendNewsPage.ts @@ -18,12 +18,27 @@ export async function SendNewsPage() { const main = document.getElementById("main"); main!.innerHTML = ""; + const displayCountry = (() => { + switch (settingsState.newsSource?.toLowerCase()) { + case "usa": return "the USA"; + case "uk": return "the UK"; + case "netherlands": return "the Netherlands"; + default: + return settingsState.newsSource + ? settingsState.newsSource + .split("_") + .map(word => word.charAt(0).toUpperCase() + word.slice(1)) + .join(" ") + : "Australia"; + } + })(); + const html = stringToHTML(/* html */ ` -
-
-

Latest Headlines in ${settingsState.newsSource ? settingsState.newsSource.charAt(0).toUpperCase() + settingsState.newsSource.slice(1) : "Australia"}

-
-
`); +
+
+

Latest Headlines in ${displayCountry}

+
+
`); main!.append(html.firstChild!); diff --git a/vite.config.ts b/vite.config.ts index 229d002d..8bbf4abb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -84,6 +84,10 @@ export default defineConfig(({ command }) => ({ settings: join(__dirname, "src", "interface", "index.html"), pageState: join(__dirname, "src", "pageState.js"), }, + onwarn(warning, warn) { + if (warning.code === "FILE_NAME_CONFLICT") return; + warn(warning); + }, }, }, }));