0.6.6 update (#3)
This commit is contained in:
16
.github/workflows/github-actions-builder.yml
vendored
16
.github/workflows/github-actions-builder.yml
vendored
@@ -15,6 +15,10 @@ jobs:
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- id: set_var
|
||||
run: |
|
||||
content=`cat /version.json`
|
||||
echo "::set-output name=packageJson::$content"
|
||||
- uses: actions/checkout@v3
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v3
|
||||
@@ -42,8 +46,8 @@ jobs:
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
automatic_release_tag: "latest"
|
||||
tag_name: "${{ github.event.head_commit.message }}"
|
||||
name: "${{ github.event.head_commit.message }}"
|
||||
tag_name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||
name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
src-tauri/target/x86_64-unknown-linux-gnu/release/**/*.deb
|
||||
@@ -55,8 +59,8 @@ jobs:
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
automatic_release_tag: "latest"
|
||||
tag_name: "${{ github.event.head_commit.message }}"
|
||||
name: "${{ github.event.head_commit.message }}"
|
||||
tag_name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||
name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
src-tauri/target/x86_64-apple-darwin/release/bundle/macos/*.app
|
||||
@@ -68,8 +72,8 @@ jobs:
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
automatic_release_tag: "latest"
|
||||
tag_name: "${{ github.event.head_commit.message }}"
|
||||
name: "${{ github.event.head_commit.message }}"
|
||||
tag_name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||
name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
src-tauri/target/x86_64-pc-windows-msvc/release/**/*.msi
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"package": {
|
||||
"productName": "RisuAI",
|
||||
"version": "0.6.5"
|
||||
"version": "0.6.6"
|
||||
},
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
let subMenu = 0
|
||||
let subberMenu = 0
|
||||
|
||||
let emos:[string, string][] = []
|
||||
let tokens = {
|
||||
desc: 0,
|
||||
firstMsg: 0,
|
||||
@@ -119,13 +119,18 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
emos = currentChar.data.emotionImages
|
||||
})
|
||||
|
||||
|
||||
$: {
|
||||
if(database.characters[$selectedCharID].chaId === currentChar.data.chaId){
|
||||
database.characters[$selectedCharID] = currentChar.data
|
||||
}
|
||||
|
||||
else{
|
||||
loadTokenize(currentChar.data)
|
||||
}
|
||||
emos = currentChar.data.emotionImages
|
||||
DataBase.set(database)
|
||||
}
|
||||
|
||||
@@ -198,13 +203,13 @@
|
||||
{:else if subMenu === 1}
|
||||
<h2 class="mb-2 text-2xl font-bold mt-2">{language.characterDisplay}</h2>
|
||||
<span class="text-neutral-200 mt-2 mb-2">{currentChar.type !== 'group' ? language.charIcon : language.groupIcon}</span>
|
||||
<button on:click={() => {selectCharImg($selectedCharID)}}>
|
||||
<button on:click={async () => {await selectCharImg($selectedCharID);currentChar = currentChar}}>
|
||||
{#if currentChar.data.image === ''}
|
||||
<div class="rounded-md h-32 w-32 shadow-lg bg-gray-500 cursor-pointer hover:text-green-500" />
|
||||
{:else}
|
||||
{#await getCharImage(currentChar.data.image, 'css')}
|
||||
<div class="rounded-md h-32 w-32 shadow-lg bg-gray-500 cursor-pointer hover:text-green-500"></div>
|
||||
{:then im}
|
||||
{:then im}
|
||||
<div class="rounded-md h-32 w-32 shadow-lg bg-gray-500 cursor-pointer hover:text-green-500" style={im} />
|
||||
{/await}
|
||||
{/if}
|
||||
@@ -252,22 +257,23 @@
|
||||
<tr>
|
||||
<div class="text-gray-500">{language.noImages}</div>
|
||||
</tr>
|
||||
{:else}
|
||||
{#each emos as emo, i}
|
||||
<tr>
|
||||
{#await getCharImage(emo[1], 'plain')}
|
||||
<td class="font-medium truncate w-1/3"></td>
|
||||
{:then im}
|
||||
<td class="font-medium truncate w-1/3"><img src={im} alt="img" class="w-full"></td>
|
||||
{/await}
|
||||
<td class="font-medium truncate w-1/2">
|
||||
<input class="text-neutral-200 mt-2 mb-4 p-2 bg-transparent input-text text-xl focus:bg-selected" bind:value={currentChar.data.emotionImages[i][0]}>
|
||||
</td>
|
||||
<button class="font-medium cursor-pointer hover:text-green-500" on:click={() => {
|
||||
rmCharEmotion($selectedCharID,i)
|
||||
}}><TrashIcon /></button>
|
||||
</tr>
|
||||
{/each}
|
||||
{/if}
|
||||
{#each currentChar.data.emotionImages as emo, i}
|
||||
<tr>
|
||||
{#await getCharImage(emo[1], 'plain')}
|
||||
<td class="font-medium truncate w-1/3"></td>
|
||||
{:then im}
|
||||
<td class="font-medium truncate w-1/3"><img src={im} alt="img" class="w-full"></td>
|
||||
{/await}
|
||||
<td class="font-medium truncate w-1/2">
|
||||
<input class="text-neutral-200 mt-2 mb-4 p-2 bg-transparent input-text text-xl focus:bg-selected" bind:value={currentChar.data.emotionImages[i][0]}>
|
||||
</td>
|
||||
<button class="font-medium cursor-pointer hover:text-green-500" on:click={() => {
|
||||
rmCharEmotion($selectedCharID,i)
|
||||
}}><TrashIcon /></button>
|
||||
</tr>
|
||||
{/each}
|
||||
</table>
|
||||
|
||||
<div class="text-gray-500 hover:text-neutral-200 mt-2 flex">
|
||||
|
||||
@@ -6,7 +6,7 @@ import { saveImage as saveImageGlobal } from './globalApi';
|
||||
|
||||
export const DataBase = writable({} as any as Database)
|
||||
export const loadedStore = writable(false)
|
||||
export let appVer = '0.6.5'
|
||||
export let appVer = '0.6.6'
|
||||
|
||||
|
||||
export function setDatabase(data:Database){
|
||||
|
||||
@@ -67,6 +67,7 @@ export async function checkDriverInit() {
|
||||
}
|
||||
else{
|
||||
alertError(await res.text())
|
||||
location.search = ''
|
||||
}
|
||||
return true
|
||||
}
|
||||
@@ -74,6 +75,7 @@ export async function checkDriverInit() {
|
||||
return false
|
||||
}
|
||||
} catch (error) {
|
||||
location.search = ''
|
||||
console.error(error)
|
||||
alertError(`Backup Error: ${error}`)
|
||||
return false
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":"0.6.5"}
|
||||
{"version":"0.6.6"}
|
||||
|
||||
Reference in New Issue
Block a user