ThemeLibrary: Update URL
This commit is contained in:
parent
ec593d21f7
commit
33e8bf448a
4 changed files with 7 additions and 7 deletions
|
|
@ -397,8 +397,8 @@ function ThemesTab() {
|
|||
|
||||
async function changeThemeLibraryURLs() {
|
||||
settings.themeLinks = settings.themeLinks.map(link => {
|
||||
if (link.startsWith("https://themes-delta.vercel.app/api")) {
|
||||
return link.replace("https://themes-delta.vercel.app/api", "https://discord-themes.com/api");
|
||||
if (link.startsWith("https://discord-themes.com/api")) {
|
||||
return link.replace("https://discord-themes.com/api", "https://themes.equicord.org/api");
|
||||
}
|
||||
return link;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import { ThemeCard } from "./ThemeCard";
|
|||
|
||||
const InputStyles = findByPropsLazy("inputWrapper", "inputError", "error");
|
||||
|
||||
export const apiUrl = "https://discord-themes.com/api";
|
||||
export const apiUrl = "https://themes.equicord.org/api";
|
||||
export const logger = new Logger("ThemeLibrary", "#e5c890");
|
||||
|
||||
export async function fetchAllThemes(): Promise<Theme[]> {
|
||||
|
|
@ -278,8 +278,8 @@ function SubmitThemes() {
|
|||
<p>
|
||||
This tab was replaced in favour of the new website:
|
||||
{" "}
|
||||
<a href="https://discord-themes.com" target="_blank" rel="noreferrer">
|
||||
discord-themes.com
|
||||
<a href="https://themes.equicord.org" target="_blank" rel="noreferrer">
|
||||
themes.equicord.org
|
||||
</a>
|
||||
</p>
|
||||
<p style={{
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export function getThemesDir(_: IpcMainInvokeEvent, dir: PathLike, theme: Theme)
|
|||
export async function downloadTheme(_: IpcMainInvokeEvent, dir: PathLike, theme: Theme) {
|
||||
if (!theme.content || !theme.name) return;
|
||||
const path = join(dir.toString(), `${theme.name}.theme.css`);
|
||||
const download = await fetch(`https://discord-themes.com/api/download/${theme.id}`);
|
||||
const download = await fetch(`https://themes.equicord.org/api/download/${theme.id}`);
|
||||
const content = await download.text();
|
||||
writeFileSync(path, content);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export async function authorizeUser(triggerModal: boolean = true) {
|
|||
{...props}
|
||||
scopes={["identify", "connections"]}
|
||||
responseType="code"
|
||||
redirectUri="https://discord-themes.com/api/user/auth"
|
||||
redirectUri="https://themes.equicord.org/api/user/auth"
|
||||
permissions={0n}
|
||||
clientId="1257819493422465235"
|
||||
cancelCompletesFlow={false}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue