settings general pages

This commit is contained in:
antelle 2021-07-03 21:55:11 +02:00
parent 839afdda36
commit aa11e1a65e
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
18 changed files with 452 additions and 344 deletions

View File

@ -0,0 +1,6 @@
import { FunctionComponent, h } from 'preact';
import { SettingsGeneralAdvancedView } from 'views/settings/general/settings-general-advanced-view';
export const SettingsGeneralAdvanced: FunctionComponent = () => {
return h(SettingsGeneralAdvancedView, null);
};

View File

@ -0,0 +1,6 @@
import { FunctionComponent, h } from 'preact';
import { SettingsGeneralAppearanceView } from 'views/settings/general/settings-general-appearance-view';
export const SettingsGeneralAppearance: FunctionComponent = () => {
return h(SettingsGeneralAppearanceView, null);
};

View File

@ -0,0 +1,6 @@
import { FunctionComponent, h } from 'preact';
import { SettingsGeneralAuditView } from 'views/settings/general/settings-general-audit-view';
export const SettingsGeneralAudit: FunctionComponent = () => {
return h(SettingsGeneralAuditView, null);
};

View File

@ -0,0 +1,6 @@
import { FunctionComponent, h } from 'preact';
import { SettingsGeneralFunctionView } from 'views/settings/general/settings-general-function-view';
export const SettingsGeneralFunction: FunctionComponent = () => {
return h(SettingsGeneralFunctionView, null);
};

View File

@ -0,0 +1,6 @@
import { FunctionComponent, h } from 'preact';
import { SettingsGeneralLockView } from 'views/settings/general/settings-general-lock-view';
export const SettingsGeneralLock: FunctionComponent = () => {
return h(SettingsGeneralLockView, null);
};

View File

@ -0,0 +1,6 @@
import { FunctionComponent, h } from 'preact';
import { SettingsGeneralStorageView } from 'views/settings/general/settings-general-storage-view';
export const SettingsGeneralStorage: FunctionComponent = () => {
return h(SettingsGeneralStorageView, null);
};

View File

@ -0,0 +1,6 @@
import { FunctionComponent, h } from 'preact';
import { SettingsGeneralUpdateView } from 'views/settings/general/settings-general-update-view';
export const SettingsGeneralUpdate: FunctionComponent = () => {
return h(SettingsGeneralUpdateView, null);
};

View File

@ -0,0 +1,6 @@
import { FunctionComponent, h } from 'preact';
import { SettingsGeneralView } from 'views/settings/settings-general-view';
export const SettingsGeneral: FunctionComponent = () => {
return h(SettingsGeneralView, null);
};

View File

@ -0,0 +1,5 @@
import { FunctionComponent } from 'preact';
export const SettingsGeneralAdvancedView: FunctionComponent = () => {
return <></>;
};

View File

@ -0,0 +1,5 @@
import { FunctionComponent } from 'preact';
export const SettingsGeneralAppearanceView: FunctionComponent = () => {
return <></>;
};

View File

@ -0,0 +1,5 @@
import { FunctionComponent } from 'preact';
export const SettingsGeneralAuditView: FunctionComponent = () => {
return <></>;
};

View File

@ -0,0 +1,5 @@
import { FunctionComponent } from 'preact';
export const SettingsGeneralFunctionView: FunctionComponent = () => {
return <></>;
};

View File

@ -0,0 +1,5 @@
import { FunctionComponent } from 'preact';
export const SettingsGeneralLockView: FunctionComponent = () => {
return <></>;
};

View File

@ -0,0 +1,5 @@
import { FunctionComponent } from 'preact';
export const SettingsGeneralStorageView: FunctionComponent = () => {
return <></>;
};

View File

@ -0,0 +1,5 @@
import { FunctionComponent } from 'preact';
export const SettingsGeneralUpdateView: FunctionComponent = () => {
return <></>;
};

View File

@ -0,0 +1,27 @@
import { FunctionComponent } from 'preact';
import { Locale } from 'util/locale';
import { SettingsGeneralUpdate } from 'ui/settings/general/settings-general-update';
import { SettingsGeneralAppearance } from 'ui/settings/general/settings-general-appearance';
import { SettingsGeneralFunction } from 'ui/settings/general/settings-general-function';
import { SettingsGeneralAudit } from 'ui/settings/general/settings-general-audit';
import { SettingsGeneralLock } from 'ui/settings/general/settings-general-lock';
import { SettingsGeneralStorage } from 'ui/settings/general/settings-general-storage';
import { SettingsGeneralAdvanced } from 'ui/settings/general/settings-general-advanced';
export const SettingsGeneralView: FunctionComponent = () => {
return (
<div class="settings__content">
<h1 id="top">
<i class="fa fa-cog settings__head-icon" /> {Locale.setGenTitle}
</h1>
<SettingsGeneralUpdate />
<SettingsGeneralAppearance />
<SettingsGeneralFunction />
<SettingsGeneralAudit />
<SettingsGeneralLock />
<SettingsGeneralStorage />
<SettingsGeneralAdvanced />
</div>
);
};

View File

@ -2,6 +2,7 @@ import { FunctionComponent } from 'preact';
import { SettingsPage } from 'models/workspace';
import { Scrollable } from 'views/components/scrollable';
import { Locale } from 'util/locale';
import { SettingsGeneral } from 'ui/settings/settings-general';
import { SettingsAbout } from 'ui/settings/settings-about';
import { SettingsHelp } from 'ui/settings/settings-help';
@ -17,6 +18,7 @@ export const SettingsView: FunctionComponent<{
{Locale.retToApp} <i class="fa fa-arrow-circle-left settings__back-button-post" />
</div>
<Scrollable>
{page === 'general' ? <SettingsGeneral /> : null}
{page === 'about' ? <SettingsAbout /> : null}
{page === 'help' ? <SettingsHelp /> : null}
</Scrollable>

View File

@ -1,6 +1,3 @@
<div class="settings__content">
<h1 id="top"><i class="fa fa-cog settings__head-icon"></i> {{res 'setGenTitle'}}</h1>
{{#if updateWaitingReload}}
<h2 class="action-color">{{res 'setGenUpdate'}}</h2>
<div>{{res 'setGenNewVersion'}}. <a href="{{releaseNotesLink}}" target="_blank">{{res 'setGenReleaseNotes'}}</a></div>
@ -346,4 +343,3 @@
{{/if}}
<button class="btn-silent settings__general-show-logs-link">{{res 'setGenShowAppLogs'}}</button>
</div>
</div>