2020-05-03 07:36:12 -07:00
|
|
|
<template>
|
2020-05-24 17:43:55 -07:00
|
|
|
<Modal
|
|
|
|
:is-open="modalActivated"
|
|
|
|
class="settings-modal"
|
|
|
|
:class="{ peek: modalPeeked }"
|
|
|
|
:no-background="modalPeeked"
|
2020-05-03 07:36:12 -07:00
|
|
|
>
|
2020-05-26 13:58:55 -07:00
|
|
|
<div class="settings-modal-panel panel">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<span class="title">
|
|
|
|
{{ $t('settings.settings') }}
|
|
|
|
</span>
|
|
|
|
<transition name="fade">
|
2022-03-23 06:53:36 -07:00
|
|
|
<div v-if="currentSaveStateNotice">
|
|
|
|
<div
|
|
|
|
v-if="currentSaveStateNotice.error"
|
|
|
|
class="alert error"
|
|
|
|
@click.prevent
|
|
|
|
>
|
|
|
|
{{ $t('settings.saving_err') }}
|
|
|
|
</div>
|
2020-05-26 13:58:55 -07:00
|
|
|
|
2022-03-23 06:53:36 -07:00
|
|
|
<div
|
|
|
|
v-if="!currentSaveStateNotice.error"
|
|
|
|
class="alert transparent"
|
|
|
|
@click.prevent
|
|
|
|
>
|
|
|
|
{{ $t('settings.saving_ok') }}
|
|
|
|
</div>
|
2022-03-16 13:02:44 -07:00
|
|
|
</div>
|
2020-05-26 13:58:55 -07:00
|
|
|
</transition>
|
|
|
|
<button
|
2020-11-24 02:32:42 -08:00
|
|
|
class="btn button-default"
|
2021-03-08 09:53:30 -08:00
|
|
|
:title="$t('general.peek')"
|
2021-03-08 11:03:55 -08:00
|
|
|
@click="peekModal"
|
2020-05-26 13:58:55 -07:00
|
|
|
>
|
2021-03-08 09:53:30 -08:00
|
|
|
<FAIcon
|
|
|
|
:icon="['far', 'window-minimize']"
|
|
|
|
fixed-width
|
|
|
|
/>
|
2020-05-26 13:58:55 -07:00
|
|
|
</button>
|
|
|
|
<button
|
2020-11-24 02:32:42 -08:00
|
|
|
class="btn button-default"
|
2021-03-08 09:53:30 -08:00
|
|
|
:title="$t('general.close')"
|
2021-03-08 11:03:55 -08:00
|
|
|
@click="closeModal"
|
2020-05-26 13:58:55 -07:00
|
|
|
>
|
2021-03-08 09:53:30 -08:00
|
|
|
<FAIcon
|
|
|
|
icon="times"
|
|
|
|
fixed-width
|
|
|
|
/>
|
2020-05-26 13:58:55 -07:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2020-06-01 15:10:52 -07:00
|
|
|
<SettingsModalContent v-if="modalOpenedOnce" />
|
2020-05-26 13:58:55 -07:00
|
|
|
</div>
|
2022-02-22 13:31:40 -08:00
|
|
|
<div class="panel-footer settings-footer">
|
2021-03-08 09:53:30 -08:00
|
|
|
<Popover
|
|
|
|
class="export"
|
|
|
|
trigger="click"
|
|
|
|
placement="top"
|
|
|
|
:offset="{ y: 5, x: 5 }"
|
|
|
|
:bound-to="{ x: 'container' }"
|
|
|
|
remove-padding
|
2021-03-08 11:03:55 -08:00
|
|
|
>
|
2021-04-07 12:42:34 -07:00
|
|
|
<template v-slot:trigger>
|
|
|
|
<button
|
|
|
|
class="btn button-default"
|
|
|
|
:title="$t('general.close')"
|
|
|
|
>
|
|
|
|
<span>{{ $t("settings.file_export_import.backup_restore") }}</span>
|
2022-03-23 07:15:05 -07:00
|
|
|
{{ ' ' }}
|
2021-04-07 12:42:34 -07:00
|
|
|
<FAIcon
|
|
|
|
icon="chevron-down"
|
|
|
|
/>
|
|
|
|
</button>
|
|
|
|
</template>
|
2021-05-31 04:08:12 -07:00
|
|
|
<template v-slot:content="{close}">
|
2021-03-08 09:53:30 -08:00
|
|
|
<div class="dropdown-menu">
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="backup"
|
|
|
|
@click="close"
|
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
icon="file-download"
|
|
|
|
fixed-width
|
2021-03-08 11:00:43 -08:00
|
|
|
/><span>{{ $t("settings.file_export_import.backup_settings") }}</span>
|
2021-03-08 09:53:30 -08:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="backupWithTheme"
|
|
|
|
@click="close"
|
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
icon="file-download"
|
|
|
|
fixed-width
|
2021-03-08 11:00:43 -08:00
|
|
|
/><span>{{ $t("settings.file_export_import.backup_settings_theme") }}</span>
|
2021-03-08 09:53:30 -08:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="restore"
|
|
|
|
@click="close"
|
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
icon="file-upload"
|
|
|
|
fixed-width
|
2021-03-08 11:00:43 -08:00
|
|
|
/><span>{{ $t("settings.file_export_import.restore_settings") }}</span>
|
2021-03-08 09:53:30 -08:00
|
|
|
</button>
|
|
|
|
</div>
|
2021-04-07 12:42:34 -07:00
|
|
|
</template>
|
2021-03-08 09:53:30 -08:00
|
|
|
</Popover>
|
2022-02-22 13:31:40 -08:00
|
|
|
|
2022-03-29 05:35:18 -07:00
|
|
|
<Checkbox
|
|
|
|
:model-value="!!expertLevel"
|
|
|
|
@update:modelValue="expertLevel = Number($event)"
|
|
|
|
>
|
2022-02-28 08:23:32 -08:00
|
|
|
{{ $t("settings.expert_mode") }}
|
2022-02-22 13:31:40 -08:00
|
|
|
</Checkbox>
|
2022-03-27 02:58:28 -07:00
|
|
|
<span
|
2022-03-29 01:57:54 -07:00
|
|
|
id="unscrolled-content"
|
2022-03-29 05:35:18 -07:00
|
|
|
class="extra-content"
|
2022-03-24 15:01:20 -07:00
|
|
|
/>
|
2021-03-08 09:53:30 -08:00
|
|
|
</div>
|
2020-05-26 13:58:55 -07:00
|
|
|
</div>
|
2020-05-24 17:43:55 -07:00
|
|
|
</Modal>
|
2020-05-03 07:36:12 -07:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./settings_modal.js"></script>
|
|
|
|
|
|
|
|
<style src="./settings_modal.scss" lang="scss"></style>
|