Update imports in GithubStars.svelte and MainMenu.svelte
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { MailIcon, MaximizeIcon, WalletIcon } from "lucide-svelte";
|
import { HomeIcon, MailIcon, MaximizeIcon, WalletIcon } from "lucide-svelte";
|
||||||
import { isTauri, openURL, toggleFullscreen } from "src/ts/storage/globalApi";
|
import { isTauri, openURL, toggleFullscreen } from "src/ts/storage/globalApi";
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@@ -17,6 +17,11 @@
|
|||||||
<img src="/icon/github-mark-white.svg" width="24" alt="github" />
|
<img src="/icon/github-mark-white.svg" width="24" alt="github" />
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
|
<button class="text-textcolor" on:click={() => {
|
||||||
|
openURL("https://risuai.net/")
|
||||||
|
}}>
|
||||||
|
<HomeIcon size={24} />
|
||||||
|
</button>
|
||||||
<button class="text-textcolor" on:click={() => {
|
<button class="text-textcolor" on:click={() => {
|
||||||
openURL("https://www.patreon.com/RisuAI")
|
openURL("https://www.patreon.com/RisuAI")
|
||||||
}}>
|
}}>
|
||||||
|
|||||||
@@ -31,35 +31,34 @@
|
|||||||
Update
|
Update
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="bg-darkbg rounded-md p-6 flex flex-col transition-shadow overflow-y-hidden shadow-inner"
|
{#if patchNodeHidden}
|
||||||
class:border={patch.version !== $DataBase.lastPatchNoteCheckVersion}
|
<div class="bg-darkbg rounded-md p-2 flex flex-col transition-shadow overflow-y-hidden shadow-inner text-sm"
|
||||||
class:border-red-500={patch.version !== $DataBase.lastPatchNoteCheckVersion}
|
class:text-textcolor2={patch.version === $DataBase.lastPatchNoteCheckVersion}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
patchNodeHidden = false
|
patchNodeHidden = false
|
||||||
$DataBase.lastPatchNoteCheckVersion = patch.version
|
$DataBase.lastPatchNoteCheckVersion = patch.version
|
||||||
}}
|
}}
|
||||||
class:max-h-40={patchNodeHidden}>
|
>
|
||||||
|
Update {patch.version} patch notes are available. Click to view.
|
||||||
|
</div>
|
||||||
|
{:else}
|
||||||
|
<div class="bg-darkbg rounded-md p-6 flex flex-col transition-shadow overflow-y-hidden shadow-inner"
|
||||||
|
class:border={patch.version !== $DataBase.lastPatchNoteCheckVersion}
|
||||||
|
class:border-red-500={patch.version !== $DataBase.lastPatchNoteCheckVersion}
|
||||||
|
on:click={() => {
|
||||||
|
patchNodeHidden = true
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div class="prose prose-invert">
|
<div class="prose prose-invert">
|
||||||
{@html parseMarkdownSafe(patch.content)}
|
{@html parseMarkdownSafe(patch.content)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
<div class="w-full flex p-4 flex-col text-textcolor max-w-4xl">
|
<div class="w-full flex p-4 flex-col text-textcolor max-w-4xl">
|
||||||
{#if !$OpenRealmStore}
|
{#if !$OpenRealmStore}
|
||||||
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
|
|
||||||
<button class="bg-darkbg rounded-md p-6 flex flex-col transition-shadow hover:ring-1" on:click={() => {
|
|
||||||
openURL("https://github.com/kwaroran/RisuAI/wiki")
|
|
||||||
}}>
|
|
||||||
<h1 class="text-2xl font-bold text-start">{language.officialWiki}</h1>
|
|
||||||
<span class="mt-2 text-textcolor2 text-start">{language.officialWikiDesc}</span>
|
|
||||||
</button>
|
|
||||||
<button class="bg-darkbg rounded-md p-6 flex flex-col transition-shadow hover:ring-1" on:click={() => {openURL("https://discord.gg/JzP8tB9ZK8")}}>
|
|
||||||
<h1 class="text-2xl font-bold text-start">{language.officialDiscord}</h1>
|
|
||||||
<span class="mt-2 text-textcolor2 text-start">{language.officialDiscordDesc}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="mt-4 mb-4 w-full border-t border-t-selected"></div>
|
<div class="mt-4 mb-4 w-full border-t border-t-selected"></div>
|
||||||
<h1 class="text-2xl font-bold">Recently Uploaded<button class="text-base font-medium float-right p-1 bg-darkbg rounded-md hover:ring" on:click={() => {
|
<h1 class="text-2xl font-bold">Recently Uploaded<button class="text-base font-medium float-right p-1 bg-darkbg rounded-md hover:ring" on:click={() => {
|
||||||
$OpenRealmStore = true
|
$OpenRealmStore = true
|
||||||
|
|||||||
Reference in New Issue
Block a user