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 }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
|
- id: set_var
|
||||||
|
run: |
|
||||||
|
content=`cat /version.json`
|
||||||
|
echo "::set-output name=packageJson::$content"
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: setup node
|
- name: setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
@@ -42,8 +46,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
automatic_release_tag: "latest"
|
automatic_release_tag: "latest"
|
||||||
tag_name: "${{ github.event.head_commit.message }}"
|
tag_name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||||
name: "${{ github.event.head_commit.message }}"
|
name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: |
|
files: |
|
||||||
src-tauri/target/x86_64-unknown-linux-gnu/release/**/*.deb
|
src-tauri/target/x86_64-unknown-linux-gnu/release/**/*.deb
|
||||||
@@ -55,8 +59,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
automatic_release_tag: "latest"
|
automatic_release_tag: "latest"
|
||||||
tag_name: "${{ github.event.head_commit.message }}"
|
tag_name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||||
name: "${{ github.event.head_commit.message }}"
|
name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: |
|
files: |
|
||||||
src-tauri/target/x86_64-apple-darwin/release/bundle/macos/*.app
|
src-tauri/target/x86_64-apple-darwin/release/bundle/macos/*.app
|
||||||
@@ -68,8 +72,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
automatic_release_tag: "latest"
|
automatic_release_tag: "latest"
|
||||||
tag_name: "${{ github.event.head_commit.message }}"
|
tag_name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||||
name: "${{ github.event.head_commit.message }}"
|
name: "${{fromJson(steps.set_var.outputs.packageJson).version}}"
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: |
|
files: |
|
||||||
src-tauri/target/x86_64-pc-windows-msvc/release/**/*.msi
|
src-tauri/target/x86_64-pc-windows-msvc/release/**/*.msi
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "RisuAI",
|
"productName": "RisuAI",
|
||||||
"version": "0.6.5"
|
"version": "0.6.6"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
let subMenu = 0
|
let subMenu = 0
|
||||||
let subberMenu = 0
|
let subberMenu = 0
|
||||||
|
let emos:[string, string][] = []
|
||||||
let tokens = {
|
let tokens = {
|
||||||
desc: 0,
|
desc: 0,
|
||||||
firstMsg: 0,
|
firstMsg: 0,
|
||||||
@@ -119,13 +119,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
emos = currentChar.data.emotionImages
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
if(database.characters[$selectedCharID].chaId === currentChar.data.chaId){
|
if(database.characters[$selectedCharID].chaId === currentChar.data.chaId){
|
||||||
database.characters[$selectedCharID] = currentChar.data
|
database.characters[$selectedCharID] = currentChar.data
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
loadTokenize(currentChar.data)
|
||||||
|
}
|
||||||
|
emos = currentChar.data.emotionImages
|
||||||
DataBase.set(database)
|
DataBase.set(database)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -198,13 +203,13 @@
|
|||||||
{:else if subMenu === 1}
|
{:else if subMenu === 1}
|
||||||
<h2 class="mb-2 text-2xl font-bold mt-2">{language.characterDisplay}</h2>
|
<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>
|
<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 === ''}
|
{#if currentChar.data.image === ''}
|
||||||
<div class="rounded-md h-32 w-32 shadow-lg bg-gray-500 cursor-pointer hover:text-green-500" />
|
<div class="rounded-md h-32 w-32 shadow-lg bg-gray-500 cursor-pointer hover:text-green-500" />
|
||||||
{:else}
|
{:else}
|
||||||
{#await getCharImage(currentChar.data.image, 'css')}
|
{#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>
|
<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} />
|
<div class="rounded-md h-32 w-32 shadow-lg bg-gray-500 cursor-pointer hover:text-green-500" style={im} />
|
||||||
{/await}
|
{/await}
|
||||||
{/if}
|
{/if}
|
||||||
@@ -252,22 +257,23 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<div class="text-gray-500">{language.noImages}</div>
|
<div class="text-gray-500">{language.noImages}</div>
|
||||||
</tr>
|
</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}
|
{/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>
|
</table>
|
||||||
|
|
||||||
<div class="text-gray-500 hover:text-neutral-200 mt-2 flex">
|
<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 DataBase = writable({} as any as Database)
|
||||||
export const loadedStore = writable(false)
|
export const loadedStore = writable(false)
|
||||||
export let appVer = '0.6.5'
|
export let appVer = '0.6.6'
|
||||||
|
|
||||||
|
|
||||||
export function setDatabase(data:Database){
|
export function setDatabase(data:Database){
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ export async function checkDriverInit() {
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alertError(await res.text())
|
alertError(await res.text())
|
||||||
|
location.search = ''
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
@@ -74,6 +75,7 @@ export async function checkDriverInit() {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
location.search = ''
|
||||||
console.error(error)
|
console.error(error)
|
||||||
alertError(`Backup Error: ${error}`)
|
alertError(`Backup Error: ${error}`)
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":"0.6.5"}
|
{"version":"0.6.6"}
|
||||||
|
|||||||
Reference in New Issue
Block a user