Remove vencord plugin until Error.stack is properly proxied in UV. Make better use of the Link component I made
This commit is contained in:
parent
eb94275c94
commit
c9843beae5
9 changed files with 39 additions and 59 deletions
|
|
@ -1,10 +0,0 @@
|
||||||
// async function applyCSS() {
|
|
||||||
// let vencordCSS = await fetch("https://raw.githubusercontent.com/Vencord/builds/main/browser.css")
|
|
||||||
// let cssLink = document.createElement("style");
|
|
||||||
|
|
||||||
// cssLink.innerHTML = await vencordCSS.text();
|
|
||||||
// document.head.appendChild(cssLink)
|
|
||||||
// }
|
|
||||||
// applyCSS();
|
|
||||||
|
|
||||||
// document.head.appendChild(document.createElement("script")).src = "https://raw.githubusercontent.com/Vencord/builds/main/browser.js";
|
|
||||||
11
public/sw.js
11
public/sw.js
|
|
@ -1,19 +1,11 @@
|
||||||
importScripts("/uv/uv.bundle.js", "/uv.config.js", "/workerware/workerware.js");
|
importScripts("/uv/uv.bundle.js", "/uv.config.js", "/workerware/workerware.js");
|
||||||
importScripts( __uv$config.sw);
|
importScripts( __uv$config.sw);
|
||||||
|
importScripts("/marketplace/scriptInjector/index.js")
|
||||||
|
|
||||||
const ww = new WorkerWare({
|
const ww = new WorkerWare({
|
||||||
debug: false,
|
debug: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
self.__uv$config.inject = [{
|
|
||||||
host: "discord.com",
|
|
||||||
html: `
|
|
||||||
<script src="https://raw.githubusercontent.com/Vencord/builds/main/browser.js"></script>
|
|
||||||
<link rel="stylesheet" href="https://raw.githubusercontent.com/Vencord/builds/main/browser.css">
|
|
||||||
`,
|
|
||||||
injectTo: "head",
|
|
||||||
}];
|
|
||||||
|
|
||||||
|
|
||||||
function loadExtensionScripts() {
|
function loadExtensionScripts() {
|
||||||
try {
|
try {
|
||||||
|
|
@ -27,7 +19,6 @@ function loadExtensionScripts() {
|
||||||
extensions.forEach((extension) => {
|
extensions.forEach((extension) => {
|
||||||
if (extension.type != "serviceWorker") return;
|
if (extension.type != "serviceWorker") return;
|
||||||
// Loads the function to be added as a middleware into global scope.
|
// Loads the function to be added as a middleware into global scope.
|
||||||
// The function defined should NOT immediately execute any function.
|
|
||||||
eval(atob(extension.scriptCopy));
|
eval(atob(extension.scriptCopy));
|
||||||
ww.use({
|
ww.use({
|
||||||
function: self[extension.entryNamespace][extension.entryFunc],
|
function: self[extension.entryNamespace][extension.entryFunc],
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
import Link from "@components/UI/Link.astro";
|
||||||
import { i18n } from "@i18n/utils";
|
import { i18n } from "@i18n/utils";
|
||||||
const t = i18n.inferLangUseTranslations(Astro.url);
|
const t = i18n.inferLangUseTranslations(Astro.url);
|
||||||
---
|
---
|
||||||
|
|
@ -6,27 +7,25 @@ const t = i18n.inferLangUseTranslations(Astro.url);
|
||||||
<div class="settings-container">
|
<div class="settings-container">
|
||||||
<div class="credits-container">
|
<div class="credits-container">
|
||||||
<p class="credit-item">
|
<p class="credit-item">
|
||||||
{t("ultraviolet")} - <a target="_blank" rel="noreferrer noopener" href="https://titaniumnetwork.org/">Titanium Network</a>
|
{t("ultraviolet")} - <Link href="https://titaniumnetwork.org/" newTab>Titanium Network</Link>
|
||||||
</p>
|
</p>
|
||||||
<p class="credit-item">
|
<p class="credit-item">
|
||||||
{t("settings.credits.japaneseTranslations")} - <a target="_blank" rel="noreferrer noopener" href="https://wearr.dev">wearr</a>
|
{t("settings.credits.japaneseTranslations")} - <Link href="https://wearr.dev" newTab>wearr</Link>
|
||||||
</p>
|
</p>
|
||||||
<p class="credit-item">
|
<p class="credit-item">
|
||||||
{t("settings.credits.mochaandmacchiatothemes")} - <a target="_blank" rel="noreferrer noopener" href="https://github.com/catppuccin/catppuccin">Catppuccin</a>
|
{t("settings.credits.mochaandmacchiatothemes")} - <Link href="https://github.com/catppuccin/catppuccin" newTab>Catppuccin</Link>
|
||||||
</p>
|
</p>
|
||||||
<p class="credit-item">
|
<p class="credit-item">
|
||||||
Rosé Pine Theme - <a target="_blank" rel="noreferrer noopener" href="https://rosepinetheme.com/">Rosé Pine</a>
|
Wisp Server - <Link newTab href="https://github.com/MercuryWorkshop/wisp-server-node">Mercury Workshop</Link>
|
||||||
|
</p>
|
||||||
|
<p class="credit-item">
|
||||||
|
Rosé Pine Theme - <Link href="https://rosepinetheme.com/" newTab>Rosé Pine</Link>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.credit-item {
|
.credit-item {
|
||||||
color: var(--text-color);
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
.credit-item > a {
|
|
||||||
color: var(--text-color);
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,14 @@ const t = i18n.inferLangUseTranslations(Astro.url);
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-madeby">
|
<div class="footer-madeby">
|
||||||
<Link href="https://wearr.dev" newTab content={t("footer.madeWithLove")} />
|
<Link href="https://wearr.dev" newTab>{t("footer.madeWithLove")}</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-bottom">
|
<div class="footer-bottom">
|
||||||
<div class="footer-left">
|
<div class="footer-left">
|
||||||
<div class="footer-links">
|
<div class="footer-links">
|
||||||
<Link href="https://discord.gg/unblock" newTab content="Join the discord!" />
|
<Link href="https://discord.gg/unblock" newTab>Join the discord!</Link>
|
||||||
<Link href="https://titaniumnetwork.org" newTab content={t("footer.poweredBy")} />
|
<Link href="https://titaniumnetwork.org" newTab>{t("footer.poweredBy")}</Link>
|
||||||
|
|
||||||
<div class="footer-copyright">
|
<div class="footer-copyright">
|
||||||
<p>© {t("footer.aluProject")} 2024</p>
|
<p>© {t("footer.aluProject")} 2024</p>
|
||||||
|
|
@ -31,9 +31,9 @@ const t = i18n.inferLangUseTranslations(Astro.url);
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-right">
|
<div class="footer-right">
|
||||||
<div class="footer-links">
|
<div class="footer-links">
|
||||||
<Link href="/privacy" content="Privacy" />
|
<Link href="/privacy">Privacy</Link>
|
||||||
<Link href="/terms" content="Terms" />
|
<Link href="/terms">Terms</Link>
|
||||||
<Link href="https://wearr.dev/contact" content="Contact" />
|
<Link href="https://wearr.dev/contact" newTab>Contact</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -29,16 +29,18 @@ const t = i18n.useTranslations(lang);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding-inline: 40px;
|
padding-inline: 2.5rem;
|
||||||
height: 70px;
|
height: 4.25rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 1.05rem;
|
border-bottom-left-radius: 0.5rem;
|
||||||
list-style-type: none;
|
border-bottom-right-radius: 0.5rem;
|
||||||
border: none;
|
box-shadow: -2px 5px 10px 0 var(--accent-color);
|
||||||
z-index: 10;
|
}
|
||||||
border-bottom-left-radius: 5px;
|
|
||||||
border-bottom-right-radius: 5px;
|
@media (max-width: 425px) {
|
||||||
box-shadow: -2px 5px 10px 0px var(--accent-color);
|
.title-background {
|
||||||
|
padding-inline: 1.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.left,
|
.left,
|
||||||
|
|
@ -55,6 +57,12 @@ const t = i18n.useTranslations(lang);
|
||||||
transition: 250ms ease-in-out;
|
transition: 250ms ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 470px) {
|
||||||
|
.header-item {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.header-item:hover {
|
.header-item:hover {
|
||||||
color: var(--text-color-accent);
|
color: var(--text-color-accent);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,12 @@ interface LinkProps {
|
||||||
content: string;
|
content: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { href, newTab, content } = Astro.props as LinkProps;
|
const { href, newTab } = Astro.props as LinkProps;
|
||||||
const target = newTab ? "_blank" : "_self";
|
const target = newTab ? "_blank" : "_self";
|
||||||
const rel = newTab ? "noopener noreferrer" : "";
|
const rel = newTab ? "noopener noreferrer" : "";
|
||||||
---
|
---
|
||||||
|
|
||||||
<a href={href} target={target} rel={rel}>{content}</a>
|
<a href={href} target={target} rel={rel}><slot/></a>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
a {
|
a {
|
||||||
|
|
|
||||||
|
|
@ -9,15 +9,6 @@
|
||||||
"entryNamespace": "adblockExt",
|
"entryNamespace": "adblockExt",
|
||||||
"entryFunc": "filterRequest"
|
"entryFunc": "filterRequest"
|
||||||
},
|
},
|
||||||
"dev.wearr.vencord": {
|
|
||||||
"title": "Vencord",
|
|
||||||
"description": "Vencord is the cutest client mod for Discord, it's incredibly user friendly and easy to use",
|
|
||||||
"version": "DevBuild 80b493d",
|
|
||||||
"image": "/marketplace/vencord/vencord.png",
|
|
||||||
"script": "/marketplace/vencord/vencord.js",
|
|
||||||
"pages": ["discord.com"],
|
|
||||||
"type": "page"
|
|
||||||
},
|
|
||||||
"dev.wearr.oled-theme": {
|
"dev.wearr.oled-theme": {
|
||||||
"title": "OLED Theme",
|
"title": "OLED Theme",
|
||||||
"description": "A beautiful OLED theme for Alu.",
|
"description": "A beautiful OLED theme for Alu.",
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ export function getStaticPaths() {
|
||||||
<h2>{t("faq.contributeToAlu")}</h2>
|
<h2>{t("faq.contributeToAlu")}</h2>
|
||||||
<p>
|
<p>
|
||||||
{t("faq.contributeToAlu.answer.segment1")}
|
{t("faq.contributeToAlu.answer.segment1")}
|
||||||
<Link href="https://www.patreon.com/wearr" newTab content={t("faq.contributeToAlu.answer.patreonLinkText")} />
|
<Link href="https://www.patreon.com/wearr" newTab>{t("faq.contributeToAlu.answer.patreonLinkText")}</Link>
|
||||||
{t("faq.contributeToAlu.answer.segment2")}
|
{t("faq.contributeToAlu.answer.segment2")}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -409,7 +409,7 @@ export function getStaticPaths() {
|
||||||
#current-content {
|
#current-content {
|
||||||
transition: opacity 250ms ease-in-out;
|
transition: opacity 250ms ease-in-out;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
height: 400px;
|
height: 700px;
|
||||||
}
|
}
|
||||||
.settings-container {
|
.settings-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -419,6 +419,7 @@ export function getStaticPaths() {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
row-gap: 5px;
|
row-gap: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-setting-header {
|
.content-setting-header {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
@ -477,7 +478,7 @@ export function getStaticPaths() {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
border-radius: 48px;
|
border-radius: 15px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
@ -492,7 +493,7 @@ export function getStaticPaths() {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
position: relative;
|
position: relative;
|
||||||
gap: 25px;
|
gap: 40px;
|
||||||
}
|
}
|
||||||
@media (max-width: 1116px) {
|
@media (max-width: 1116px) {
|
||||||
.popup {
|
.popup {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue