[fix] compile error and mobile context menu
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "RisuAI",
|
"productName": "RisuAI",
|
||||||
"version": "1.15.2"
|
"version": "1.15.3"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
"targets": "all"
|
"targets": "all"
|
||||||
},
|
},
|
||||||
"security": {
|
"security": {
|
||||||
"csp": ""
|
"csp": null
|
||||||
},
|
},
|
||||||
"updater": {
|
"updater": {
|
||||||
"active": false
|
"active": false
|
||||||
|
|||||||
@@ -277,6 +277,13 @@
|
|||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const preventAll = (e:Event) => {
|
||||||
|
e.preventDefault()
|
||||||
|
e.stopPropagation()
|
||||||
|
e.stopImmediatePropagation()
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
onDestroy(unsub);
|
onDestroy(unsub);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -313,6 +320,7 @@
|
|||||||
on:dragover={avatarDragOver}
|
on:dragover={avatarDragOver}
|
||||||
on:drop={(e) => {avatarDrop({index:ind}, e)}}
|
on:drop={(e) => {avatarDrop({index:ind}, e)}}
|
||||||
on:dragenter|preventDefault
|
on:dragenter|preventDefault
|
||||||
|
on:contextmenu={preventAll}
|
||||||
>
|
>
|
||||||
<SidebarIndicator
|
<SidebarIndicator
|
||||||
isActive={char.type === 'normal' && $selectedCharID === char.index && sideBarMode !== 1}
|
isActive={char.type === 'normal' && $selectedCharID === char.index && sideBarMode !== 1}
|
||||||
@@ -381,6 +389,7 @@
|
|||||||
on:dragover={avatarDragOver}
|
on:dragover={avatarDragOver}
|
||||||
on:drop={(e) => {if(char.type === 'folder'){avatarDrop({index: ind, folder:char.id}, e)}}}
|
on:drop={(e) => {if(char.type === 'folder'){avatarDrop({index: ind, folder:char.id}, e)}}}
|
||||||
on:dragenter|preventDefault
|
on:dragenter|preventDefault
|
||||||
|
on:contextmenu={preventAll}
|
||||||
>
|
>
|
||||||
<SidebarIndicator
|
<SidebarIndicator
|
||||||
isActive={$selectedCharID === char2.index && sideBarMode !== 1}
|
isActive={$selectedCharID === char2.index && sideBarMode !== 1}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { cloneDeep } from 'lodash';
|
|||||||
|
|
||||||
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 = '1.15.2'
|
export let appVer = '1.15.3'
|
||||||
|
|
||||||
|
|
||||||
export function setDatabase(data:Database){
|
export function setDatabase(data:Database){
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":"1.15.2"}
|
{"version":"1.15.3"}
|
||||||
Reference in New Issue
Block a user