Small regression in UVRegistrar, will fix soon.
This commit is contained in:
parent
4b62d9f894
commit
6859ab8380
7 changed files with 30 additions and 15 deletions
|
|
@ -20,7 +20,7 @@ const t = useTranslations(lang);
|
|||
</div>
|
||||
<div class="footer-bottom">
|
||||
<div class="footer-links">
|
||||
<a href="https://titaniumnetwork.org">Titanium Network</a>
|
||||
<a href="https://titaniumnetwork.org">{t("footer.poweredBy")}</a>
|
||||
</div>
|
||||
|
||||
<div class="footer-copyright">
|
||||
|
|
|
|||
|
|
@ -7,13 +7,16 @@ const t = useTranslations(lang);
|
|||
<div class="settings-container">
|
||||
<div class="credits-container">
|
||||
<p class="credit-item">
|
||||
{t("ultraviolet")} - <a href="https://titaniumnetwork.org/">Titanium Network</a>
|
||||
{t("ultraviolet")} - <a target="_blank" rel="noreferrer noopener" href="https://titaniumnetwork.org/">Titanium Network</a>
|
||||
</p>
|
||||
<p class="credit-item">
|
||||
{t("settings.credits.japaneseTranslations")} - <a href="https://wearr.dev">wearr</a>
|
||||
{t("settings.credits.japaneseTranslations")} - <a target="_blank" rel="noreferrer noopener" href="https://wearr.dev">wearr</a>
|
||||
</p>
|
||||
<p class="credit-item">
|
||||
{t("settings.credits.mochaandmacchiatothemes")} - <a href="">Catppuccin</a>
|
||||
{t("settings.credits.mochaandmacchiatothemes")} - <a target="_blank" rel="noreferrer noopener" href="https://github.com/catppuccin/catppuccin">Catppuccin</a>
|
||||
</p>
|
||||
<p class="credit-item">
|
||||
Rosé Pine Theme - <a target="_blank" rel="noreferrer noopener" href="https://rosepinetheme.com/">Rosé Pine</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,15 +1,23 @@
|
|||
<script src="/uv/uv.bundle.js" transition:persist is:inline></script>
|
||||
<script src="/uv.config.js" transition:persist is:inline></script>
|
||||
<script transition:persist defer>
|
||||
// This is a hack to make sure window.__uv$config is defined, because this means everything has been.
|
||||
if (window.__uv$config == undefined) window.location.reload();
|
||||
var form = document.querySelector("form");
|
||||
var input = document.querySelector("input");
|
||||
<script src="/uv/uv.bundle.js" transition:persist></script>
|
||||
<script src="/uv.config.js" transition:persist></script>
|
||||
<script transition:persist>
|
||||
let form = document.querySelector("form");
|
||||
let input = document.querySelector("input");
|
||||
window.navigator.serviceWorker.register("/sw.js", {
|
||||
scope: window.__uv$config.prefix,
|
||||
});
|
||||
if (form) {
|
||||
document.addEventListener("astro:after-swap", () => {
|
||||
form = document.querySelector("form");
|
||||
input = document.querySelector("input");
|
||||
if (form) {
|
||||
form.addEventListener("submit", formEventListener);
|
||||
}
|
||||
|
||||
form.addEventListener("submit", (event) => {
|
||||
});
|
||||
form.addEventListener("submit", formEventListener);
|
||||
|
||||
function formEventListener(event) {
|
||||
event.preventDefault();
|
||||
let loadingContent = document.getElementById("loading-content");
|
||||
loadingContent.style.opacity = 1;
|
||||
|
|
@ -46,7 +54,9 @@
|
|||
topBar.appendChild(urlText);
|
||||
document.body.appendChild(topBar);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function isUrl(val = "") {
|
||||
if (/^http(s?):\/\//.test(val) || (val.includes(".") && val.substr(0, 1) !== " ")) return true;
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
"footer.brand": "Alu",
|
||||
"footer.madeWithLove": "Made with ❤️ by wearr",
|
||||
"footer.poweredBy": "Powered by Ultraviolet",
|
||||
"footer.services": "Services",
|
||||
"footer.socials": "Socials",
|
||||
"footer.aluProject": "Alu Project",
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
"footer.brand": "アルー",
|
||||
"footer.madeWithLove": "wearrによる❤️で作られました",
|
||||
"footer.poweredBy": "「ウルトラバイオレット」による駆動",
|
||||
"footer.services": "サービス",
|
||||
"footer.socials": "ソーシャル",
|
||||
"footer.aluProject": "アループロジェクト",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import Footer from "../components/Footer.astro";
|
|||
import ThemeLoader from "../components/ThemeLoader.astro";
|
||||
import CloakLoader from "../components/CloakLoader.astro";
|
||||
import WelcomeLogging from "../components/WelcomeLogging.astro";
|
||||
import UVRegistrar from "../components/UVRegistrar.astro";
|
||||
|
||||
type Preload = {
|
||||
href: string;
|
||||
|
|
@ -47,6 +48,7 @@ const { title, optionalPreloads } = Astro.props;
|
|||
<Header />
|
||||
<slot transition:animate={"fade"} />
|
||||
<WelcomeLogging />
|
||||
<UVRegistrar />
|
||||
<Footer />
|
||||
<style is:global>
|
||||
* {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
import Layout from "../../layouts/Layout.astro";
|
||||
import UVRegistrar from "../../components/UVRegistrar.astro";
|
||||
|
||||
import { getLangFromUrl, useTranslations } from "../../i18n/utils";
|
||||
const lang = getLangFromUrl(Astro.url);
|
||||
|
|
@ -21,7 +20,6 @@ export function getStaticPaths() {
|
|||
<iframe title="proxy-iframe" id="proxy-frame"></iframe>
|
||||
</form>
|
||||
</div>
|
||||
<UVRegistrar />
|
||||
</Layout>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue