diff --git a/package.json b/package.json
index d0669a69..0f89cbdb 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
"scripts": {
"start": "web-ext run",
"nightly": "web-ext run --firefox=/home/esmail/software/firefox_nightly/firefox",
- "android": "web-ext run -t firefox-android --adb-device emulator-5554 --firefox-apk org.mozilla.fenix",
+ "android": "web-ext run -t firefox-android --adb-device emulator-5554 --firefox-apk org.mozilla.fenix ",
"build": "web-ext build",
"test": "web-ext lint",
"html": "rollup -c --config-popup && rollup -c --config-options"
diff --git a/src/assets/javascripts/utils.js b/src/assets/javascripts/utils.js
index 439826dd..18168e90 100644
--- a/src/assets/javascripts/utils.js
+++ b/src/assets/javascripts/utils.js
@@ -20,13 +20,6 @@ function getNextInstance(currentInstanceUrl, instances) {
return instances[nextInstanceIndex]
}
-/**
- * @param {string} str
- */
-function camelCase(str) {
- return str.charAt(0).toUpperCase() + str.slice(1)
-}
-
/**
* @param {URL} url
*/
@@ -178,7 +171,6 @@ export default {
protocolHost,
getList,
getBlacklist,
- camelCase,
getConfig,
getOptions,
getPingCache,
diff --git a/src/pages/components/Input.svelte b/src/pages/components/Input.svelte
index d963233c..97a47e6d 100644
--- a/src/pages/components/Input.svelte
+++ b/src/pages/components/Input.svelte
@@ -38,4 +38,9 @@
input:focus {
outline-color: var(--active);
}
+ @media (max-width: 715px) {
+ input {
+ width: 200px;
+ }
+ }
diff --git a/src/pages/components/RowCheckbox.svelte b/src/pages/components/RowCheckbox.svelte
deleted file mode 100644
index b7ccab93..00000000
--- a/src/pages/components/RowCheckbox.svelte
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
diff --git a/src/pages/components/RowSelect.svelte b/src/pages/components/RowSelect.svelte
deleted file mode 100644
index d685803e..00000000
--- a/src/pages/components/RowSelect.svelte
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/pages/stylesheets/Inter-VariableFont_slnt,wght.ttf b/src/pages/fonts/Inter-VariableFont_slnt,wght.ttf
similarity index 100%
rename from src/pages/stylesheets/Inter-VariableFont_slnt,wght.ttf
rename to src/pages/fonts/Inter-VariableFont_slnt,wght.ttf
diff --git a/src/pages/stylesheets/Vazirmatn-VariableFont_wght.ttf b/src/pages/fonts/Vazirmatn-VariableFont_wght.ttf
similarity index 100%
rename from src/pages/stylesheets/Vazirmatn-VariableFont_wght.ttf
rename to src/pages/fonts/Vazirmatn-VariableFont_wght.ttf
diff --git a/src/pages/fonts/styles.css b/src/pages/fonts/styles.css
new file mode 100644
index 00000000..754543b1
--- /dev/null
+++ b/src/pages/fonts/styles.css
@@ -0,0 +1,13 @@
+@font-face {
+ font-family: "Inter";
+ src: url("Inter-VariableFont_slnt,wght.ttf");
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: "Vazirmatn";
+ src: url("Vazirmatn-VariableFont_wght.ttf");
+ font-weight: normal;
+ font-style: normal;
+}
\ No newline at end of file
diff --git a/src/pages/options/index.html b/src/pages/options/index.html
index c3dcff71..b197d4a7 100644
--- a/src/pages/options/index.html
+++ b/src/pages/options/index.html
@@ -7,6 +7,7 @@
Settings
+
diff --git a/src/pages/options_src/App.svelte b/src/pages/options_src/App.svelte
index 6bbacb9b..8b0d3c54 100644
--- a/src/pages/options_src/App.svelte
+++ b/src/pages/options_src/App.svelte
@@ -93,7 +93,6 @@
{/if}
diff --git a/src/pages/options_src/General/General.svelte b/src/pages/options_src/General/General.svelte
index d5b2dd59..2cf65285 100644
--- a/src/pages/options_src/General/General.svelte
+++ b/src/pages/options_src/General/General.svelte
@@ -3,10 +3,12 @@
import Exceptions from "./Exceptions.svelte"
import SettingsButtons from "./SettingsButtons.svelte"
- import RowSelect from "../../components/RowSelect.svelte"
- import Checkbox from "../../components/RowCheckbox.svelte"
import { options } from "../stores"
import { onDestroy } from "svelte"
+ import Row from "../../components/Row.svelte"
+ import Label from "../../components/Label.svelte"
+ import Select from "../../components/Select.svelte"
+ import Checkbox from "../../components/Checkbox.svelte"
let _options
const unsubscribe = options.subscribe(val => (_options = val))
@@ -23,46 +25,55 @@
- {
- _options["theme"] = e.target.options[e.target.options.selectedIndex].value
- options.set(_options)
- }}
- ariaLabel="select theme"
- />
+
+
+
- {
- _options["fetchInstances"] = e.target.options[e.target.options.selectedIndex].value
- options.set(_options)
- }}
- ariaLabel="Select fetch public instances"
- values={[
- { value: "github", name: "GitHub" },
- { value: "codeberg", name: "Codeberg" },
- { value: "disable", name: "Disable" },
- ]}
- />
+
+
+
- {
- _options["redirectOnlyInIncognito"] = e.target.checked
- options.set(_options)
- }}
- />
+
+
+ {
+ _options.redirectOnlyInIncognito = e.target.checked
+ options.set(_options)
+ }}
+ />
+
-
+
+
+
+
diff --git a/src/pages/options_src/Services/Instances.svelte b/src/pages/options_src/Services/Instances.svelte
index 892e395b..e62d410d 100644
--- a/src/pages/options_src/Services/Instances.svelte
+++ b/src/pages/options_src/Services/Instances.svelte
@@ -63,10 +63,10 @@
console.log("pinging...", instance)
pingCache[instance] = { color: "lightblue", value: "pinging..." }
const time = await utils.ping(instance)
- pingCache[instance] = processTime(time)
+ pingCache[instance] = colorTime(time)
}
}
- function processTime(time) {
+ function colorTime(time) {
let value
let color
if (time < 5000) {
@@ -225,6 +225,7 @@
a {
color: var(--text);
text-decoration: none;
+ word-wrap: anywhere;
}
a:hover {
diff --git a/src/pages/options_src/Services/RedirectType.svelte b/src/pages/options_src/Services/RedirectType.svelte
index 7f7a2843..11044080 100644
--- a/src/pages/options_src/Services/RedirectType.svelte
+++ b/src/pages/options_src/Services/RedirectType.svelte
@@ -1,12 +1,11 @@
- {
- serviceOptions.redirectType = e.target.options[e.target.options.selectedIndex].value
- options.set(_options)
- }}
- {values}
-/>
+
+
+
{#if serviceConf.frontends[frontendName].desktopApp && serviceOptions.redirectType != "main_frame"}
diff --git a/src/pages/options_src/Services/Services.svelte b/src/pages/options_src/Services/Services.svelte
index cb1efacb..9c4e6c97 100644
--- a/src/pages/options_src/Services/Services.svelte
+++ b/src/pages/options_src/Services/Services.svelte
@@ -1,6 +1,4 @@
diff --git a/src/pages/stylesheets/styles.css b/src/pages/stylesheets/styles.css
deleted file mode 100644
index 9e8fedb3..00000000
--- a/src/pages/stylesheets/styles.css
+++ /dev/null
@@ -1,88 +0,0 @@
-@font-face {
- font-family: "Inter";
- src: url("Inter-VariableFont_slnt,wght.ttf");
- font-weight: normal;
- font-style: normal;
-}
-
-@font-face {
- font-family: "Vazirmatn";
- src: url("Vazirmatn-VariableFont_wght.ttf");
- font-weight: normal;
- font-style: normal;
-}
-
-/*
-
-@media (max-width: 1250px) {
- body.option {
- flex-direction: column;
- width: 95vw;
- align-items: center;
- padding: 40px 0px;
- }
-
- section.links {
- flex-direction: row;
- width: 95vw;
- padding: 0 55px;
- }
-
- section.block-option {
- width: 95vw;
- }
-
- div.checklist div x {
- overflow: hidden;
- }
-}
-
-html.mobile img,
-html.mobile svg {
- margin-right: 10px;
- height: 30px;
- width: 30px;
- color: var(--text);
-}
-
-html.mobile div.block {
- padding: 0 15px;
- justify-content: space-between;
- display: flex;
- align-items: center;
- margin-top: 20px;
- margin-bottom: 20px;
-}
-
-html.mobile div.block input[type="checkbox"] {
- width: 58px;
- height: 30px;
-}
-
-html.mobile div.block input[type="checkbox"]::before {
- width: 24px;
- height: 24px;
- top: 3px;
- left: 3.5px;
-}
-
-html.mobile div.block input[type="checkbox"]:checked::before {
- left: 30px;
-}
-
-html.mobile body.option {
- flex-direction: column;
- width: 100%;
- padding: 0;
- align-items: center;
-}
-
-html.mobile section.links {
- flex-direction: row;
- width: 100%;
- padding: 0 55px;
-}
-
-html.mobile section.block-option {
- width: 100%;
-} */
\ No newline at end of file