From 633b7a224339bdec21169740fc3077442d66d6db Mon Sep 17 00:00:00 2001 From: ACTCD <101378590+ACTCD@users.noreply.github.com> Date: Tue, 16 Jul 2024 07:54:28 +0800 Subject: [PATCH 1/4] feat: add ios app webview dynamic type support --- src/app/App.svelte | 68 +++++++++++++-------------- src/app/app.css | 30 ++++++++++++ xcode/App-Shared/ViewController.swift | 2 +- 3 files changed, 63 insertions(+), 37 deletions(-) diff --git a/src/app/App.svelte b/src/app/App.svelte index ea20d80c..7d4c50c6 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -31,33 +31,36 @@ +
+ {#if import.meta.env.GIT_TAG && import.meta.env.GIT_COMMIT} + + {import.meta.env.GIT_TAG} + + ( + {import.meta.env.GIT_COMMIT.slice(0, 7)} + ) + {:else} + {version} + {build} + {/if} +
+

- You can turn on the Userscripts iOS Safari extension in Settings. + You can turn on the Userscripts iOS Safari extension in Settings or Safari, + then use the extension in Safari. +
- Read the docs. + Read online documentation

+ From fee7589e02a0982a70ed9c9b8fe9fd45853c9cfb Mon Sep 17 00:00:00 2001 From: ACTCD <101378590+ACTCD@users.noreply.github.com> Date: Wed, 17 Jul 2024 03:38:07 +0800 Subject: [PATCH 3/4] refactor: completely re-layout the entire page --- src/app/App.svelte | 145 +++++++++++++++++++++++---------------------- 1 file changed, 74 insertions(+), 71 deletions(-) diff --git a/src/app/App.svelte b/src/app/App.svelte index ccd6efb1..7c17951c 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -2,6 +2,8 @@ import icon from "./img/icon.png"; import logo from "./img/logo.svg?raw"; + const baseUrl = "https://github.com/quoid/userscripts"; + let version = "v0.0.0"; let build = "(0)"; let directory = "init"; @@ -27,96 +29,106 @@
- Userscripts App Icon -
From 3e747b04324233118a4bff45482886143e01288e Mon Sep 17 00:00:00 2001 From: ACTCD <101378590+ACTCD@users.noreply.github.com> Date: Wed, 17 Jul 2024 04:12:19 +0800 Subject: [PATCH 4/4] fix: correct the strings of the links --- src/app/App.svelte | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/App.svelte b/src/app/App.svelte index 7c17951c..47d4f995 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -35,10 +35,10 @@
{#if import.meta.env.GIT_TAG && import.meta.env.GIT_COMMIT} - + {import.meta.env.GIT_TAG} - ( + ( {import.meta.env.GIT_COMMIT.slice(0, 7)} ) {:else} @@ -53,7 +53,7 @@ Safari, then use the extension in Safari. Please refer to the "Usage" section in the README of this version.

@@ -69,12 +69,12 @@