[feat] ignore google drive
This commit is contained in:
@@ -2,42 +2,47 @@
|
|||||||
import { language } from "src/lang";
|
import { language } from "src/lang";
|
||||||
import { alertConfirm } from "src/ts/alert";
|
import { alertConfirm } from "src/ts/alert";
|
||||||
import { checkDriver } from "src/ts/drive/drive";
|
import { checkDriver } from "src/ts/drive/drive";
|
||||||
|
import { DataBase } from "src/ts/storage/database";
|
||||||
import { isNodeServer, isTauri } from "src/ts/storage/globalApi";
|
import { isNodeServer, isTauri } from "src/ts/storage/globalApi";
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h2 class="mb-2 text-2xl font-bold mt-2">{language.files}</h2>
|
<h2 class="mb-2 text-2xl font-bold mt-2">{language.files}</h2>
|
||||||
<button
|
{#if !$DataBase.account?.useSync}
|
||||||
on:click={async () => {
|
|
||||||
if(await alertConfirm(language.backupConfirm)){
|
|
||||||
localStorage.setItem('backup', 'save')
|
|
||||||
if(isTauri || isNodeServer){
|
|
||||||
checkDriver('savetauri')
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
checkDriver('save')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
class="drop-shadow-lg p-3 border-borderc border-solid mt-2 flex justify-center items-center ml-2 mr-2 border-1 hover:bg-selected text-sm">
|
|
||||||
{language.savebackup}
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
if((await alertConfirm(language.backupLoadConfirm)) && (await alertConfirm(language.backupLoadConfirm2))){
|
if(await alertConfirm(language.backupConfirm)){
|
||||||
localStorage.setItem('backup', 'load')
|
localStorage.setItem('backup', 'save')
|
||||||
if(isTauri || isNodeServer){
|
if(isTauri || isNodeServer){
|
||||||
checkDriver('loadtauri')
|
checkDriver('savetauri')
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
checkDriver('save')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
}}
|
||||||
checkDriver('load')
|
class="drop-shadow-lg p-3 border-borderc border-solid mt-2 flex justify-center items-center ml-2 mr-2 border-1 hover:bg-selected text-sm">
|
||||||
|
{language.savebackup}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
on:click={async () => {
|
||||||
|
if((await alertConfirm(language.backupLoadConfirm)) && (await alertConfirm(language.backupLoadConfirm2))){
|
||||||
|
localStorage.setItem('backup', 'load')
|
||||||
|
if(isTauri || isNodeServer){
|
||||||
|
checkDriver('loadtauri')
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
checkDriver('load')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}}
|
||||||
}}
|
class="drop-shadow-lg p-3 border-borderc border-solid mt-2 flex justify-center items-center ml-2 mr-2 border-1 hover:bg-selected text-sm">
|
||||||
class="drop-shadow-lg p-3 border-borderc border-solid mt-2 flex justify-center items-center ml-2 mr-2 border-1 hover:bg-selected text-sm">
|
{language.loadbackup}
|
||||||
{language.loadbackup}
|
</button>
|
||||||
</button>
|
|
||||||
|
{/if}
|
||||||
|
|
||||||
<!-- <button
|
<!-- <button
|
||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user