-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✔ Fixed freeze when adding new action and media tab was open
- Fixed slide background showing when clear action was set - Fixed update popup in prerelease - Better shows loading - Fixed shows not loading when loading many - Fixed thumbnails not generating after failed attempts
- Loading branch information
Showing
14 changed files
with
175 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,23 @@ | ||
<script lang="ts"> | ||
import { dictionary, language } from "../../stores" | ||
import { dictionary, language } from "../../stores" | ||
export let id: string | ||
export let index: number = 0 | ||
export let lowercase: boolean = false | ||
// let pre = '', suf = ''; | ||
let category: string, key: string | ||
// if (id.includes('$:')) { | ||
// pre = id.slice(0, id.indexOf('$:')); | ||
// suf = id.slice(id.indexOf(':$') + 2, id.length); | ||
// id = id.slice(id.indexOf('$:') + 2, id.indexOf(':$')); | ||
// let category = id.slice(0, id.indexOf('.')); | ||
// let key = id.slice(id.indexOf('.') + 1, id.length); | ||
// } | ||
if (id.includes(".")) { | ||
category = id.slice(0, id.indexOf(".")).replace("$:", "") | ||
key = id.slice(id.indexOf(".") + 1, id.length).replace(":$", "") | ||
} | ||
export let id: string | ||
export let index: number = 0 | ||
export let lowercase: boolean = false | ||
let category: string, key: string | ||
if (id?.includes(".")) { | ||
category = id.slice(0, id.indexOf(".")).replace("$:", "") | ||
key = id.slice(id.indexOf(".") + 1, id.length).replace(":$", "") | ||
} | ||
</script> | ||
|
||
{#key language} | ||
{#if $dictionary[category]?.[key]?.includes("{}")} | ||
{$dictionary[category]?.[key].split("{}")[index] || `[${id}]`} | ||
{:else if lowercase} | ||
{$dictionary[category]?.[key].toLowerCase() || `[${id}]`} | ||
{:else} | ||
{$dictionary[category]?.[key] || `[${id}]`} | ||
{/if} | ||
{#if $dictionary[category]?.[key]?.includes("{}")} | ||
{$dictionary[category]?.[key].split("{}")[index] || `[${id}]`} | ||
{:else if lowercase} | ||
{$dictionary[category]?.[key].toLowerCase() || `[${id}]`} | ||
{:else} | ||
{$dictionary[category]?.[key] || `[${id}]`} | ||
{/if} | ||
{/key} | ||
<!-- {#if $dictionary[category]?.[key]} | ||
{pre}{$dictionary[category]?.[key]}{suf} | ||
{:else if id.includes('.')} | ||
{`${pre}[${id}]${suf}`} | ||
{:else} | ||
{id} | ||
{/if} --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.