mirror of https://github.com/keeweb/keeweb.git
settings general pages
This commit is contained in:
parent
839afdda36
commit
aa11e1a65e
|
@ -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);
|
||||
};
|
|
@ -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);
|
||||
};
|
|
@ -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);
|
||||
};
|
|
@ -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);
|
||||
};
|
|
@ -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);
|
||||
};
|
|
@ -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);
|
||||
};
|
|
@ -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);
|
||||
};
|
|
@ -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);
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
import { FunctionComponent } from 'preact';
|
||||
|
||||
export const SettingsGeneralAdvancedView: FunctionComponent = () => {
|
||||
return <></>;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
import { FunctionComponent } from 'preact';
|
||||
|
||||
export const SettingsGeneralAppearanceView: FunctionComponent = () => {
|
||||
return <></>;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
import { FunctionComponent } from 'preact';
|
||||
|
||||
export const SettingsGeneralAuditView: FunctionComponent = () => {
|
||||
return <></>;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
import { FunctionComponent } from 'preact';
|
||||
|
||||
export const SettingsGeneralFunctionView: FunctionComponent = () => {
|
||||
return <></>;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
import { FunctionComponent } from 'preact';
|
||||
|
||||
export const SettingsGeneralLockView: FunctionComponent = () => {
|
||||
return <></>;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
import { FunctionComponent } from 'preact';
|
||||
|
||||
export const SettingsGeneralStorageView: FunctionComponent = () => {
|
||||
return <></>;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
import { FunctionComponent } from 'preact';
|
||||
|
||||
export const SettingsGeneralUpdateView: FunctionComponent = () => {
|
||||
return <></>;
|
||||
};
|
|
@ -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>
|
||||
);
|
||||
};
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue