Update to 1.23.2 (#156)
# PR Checklist - [X] Did you check if it works normally in all models? *ignore this when it dosen't uses models* - [X] Did you check if it works normally in all of web, local and node hosted versions? if it dosen't, did you blocked it in those versions? - [X] Did you added a type def? # Description
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"package": {
|
||||
"productName": "RisuAI",
|
||||
"version": "1.23.1"
|
||||
"version": "1.23.2"
|
||||
},
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
|
||||
@@ -31,6 +31,11 @@
|
||||
$DataBase.language='ko'
|
||||
step = 1
|
||||
}}>• 한국어</button>
|
||||
<button class="hover:text-green-500 transition-colors" on:click={() => {
|
||||
changeLanguage('cn')
|
||||
$DataBase.language='cn'
|
||||
step = 1
|
||||
}}>• 中文</button>
|
||||
</div>
|
||||
|
||||
{:else if step === 1}
|
||||
|
||||
@@ -14,7 +14,8 @@ import { changeLanguage, language } from "src/lang";
|
||||
langChanged = true
|
||||
}}>
|
||||
<option value="en" class="bg-darkbg appearance-none">English</option>
|
||||
<option value="ko" class="bg-darkbg appearance-none">Korean</option>
|
||||
<option value="ko" class="bg-darkbg appearance-none">한국어</option>
|
||||
<option value="cn" class="bg-darkbg appearance-none">中文</option>
|
||||
</select>
|
||||
{#if langChanged}
|
||||
<span class="bg-red-500 text-sm">Close the settings to take effect</span>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { downloadRisuHub, getRisuHub, hubURL } from "src/ts/characterCards";
|
||||
import { DownloadIcon, FlagIcon, MenuIcon, SearchIcon, XIcon } from "lucide-svelte";
|
||||
import { ArrowLeft, ArrowRight, DownloadIcon, FlagIcon, MenuIcon, SearchIcon, XIcon } from "lucide-svelte";
|
||||
import { alertConfirm, alertInput, alertNormal } from "src/ts/alert";
|
||||
|
||||
let openedData:null|{
|
||||
@@ -20,12 +20,15 @@
|
||||
tags: string[]
|
||||
}[] = []
|
||||
|
||||
let page = 0
|
||||
|
||||
let search = ''
|
||||
let menuOpen = false
|
||||
|
||||
async function getHub(){
|
||||
charas = await getRisuHub({
|
||||
search: search
|
||||
search: search,
|
||||
page: page
|
||||
})
|
||||
}
|
||||
|
||||
@@ -36,7 +39,10 @@
|
||||
<div class="w-full flex justify-center mt-4 mb-3">
|
||||
<div class="flex w-2xl max-w-full items-center">
|
||||
<input class="flex-grow text-xl pl-3 pr-3 rounded-lg bg-darkbg h-16 min-w-0" placeholder="Search" bind:value={search}>
|
||||
<button class="bg-darkbg h-14 w-14 min-w-14 rounded-lg ml-2 flex justify-center items-center hover:ring transition-shadow" on:click={getHub}>
|
||||
<button class="bg-darkbg h-14 w-14 min-w-14 rounded-lg ml-2 flex justify-center items-center hover:ring transition-shadow" on:click={() => {
|
||||
page = 0
|
||||
getHub()
|
||||
}}>
|
||||
<SearchIcon />
|
||||
</button>
|
||||
<button class="bg-darkbg h-14 w-14 min-w-14 rounded-lg ml-2 flex justify-center items-center hover:ring transition-shadow" on:click={() => {
|
||||
@@ -70,6 +76,25 @@
|
||||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
<div class="w-full flex justify-center">
|
||||
<div>
|
||||
<button class="bg-darkbg h-14 w-14 min-w-14 rounded-lg ml-2 flex justify-center items-center hover:ring transition-shadow" on:click={() => {
|
||||
if(page > 0){
|
||||
page -= 1
|
||||
}
|
||||
}}>
|
||||
<ArrowLeft />
|
||||
</button>
|
||||
<button class="bg-darkbg h-14 w-14 min-w-14 rounded-lg ml-2 flex justify-center items-center transition-shadow">
|
||||
<span>{page + 1}</span>
|
||||
</button>
|
||||
<button class="bg-darkbg h-14 w-14 min-w-14 rounded-lg ml-2 flex justify-center items-center hover:ring transition-shadow" on:click={() => {
|
||||
page += 1
|
||||
}}>
|
||||
<ArrowRight />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{#if openedData}
|
||||
|
||||
@@ -653,7 +653,8 @@ export async function shareRisuHub(char:character, arg:{
|
||||
}
|
||||
|
||||
export async function getRisuHub(arg?:{
|
||||
search?:string
|
||||
search?:string,
|
||||
page?:number
|
||||
}):Promise<{
|
||||
name:string
|
||||
desc: string
|
||||
|
||||
@@ -8,7 +8,7 @@ import { defaultAutoSuggestPrompt, defaultJailbreak, defaultMainPrompt } from '.
|
||||
|
||||
export const DataBase = writable({} as any as Database)
|
||||
export const loadedStore = writable(false)
|
||||
export let appVer = '1.23.1'
|
||||
export let appVer = '1.23.2'
|
||||
|
||||
export function setDatabase(data:Database){
|
||||
if(checkNullish(data.characters)){
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":"1.23.1"}
|
||||
{"version":"1.23.2"}
|
||||
Reference in New Issue
Block a user