15 |
20 |
21 | {
22 | type === 'initPages' && (
23 |
24 | {l10n.t(LocalizationKey.loadingInitPages)}
25 |
26 |
27 | )
28 | }
29 |
30 | );
31 | };
--------------------------------------------------------------------------------
/src/constants/ExtensionState.ts:
--------------------------------------------------------------------------------
1 | export const ExtensionState = {
2 | PagesView: `frontMatter:Pages:ViewType`,
3 | SelectedFolder: `frontMatter:SelectedFolder`,
4 | Version: `frontMatter:Version`,
5 | SettingPromoted: `frontMatter:Settings:Promoted`,
6 | MoveTemplatesFolder: `frontMatter:Templates:Move`,
7 |
8 | Project: {
9 | current: `frontMatter:Project:current`
10 | },
11 |
12 | Dashboard: {
13 | Contents: {
14 | Sorting: `frontMatter:Dashboard:Contents:Sorting`
15 | },
16 | Media: {
17 | Sorting: `frontMatter:Dashboard:Media:Sorting`
18 | },
19 | Pages: {
20 | Cache: `frontMatter:Dashboard:Pages:Cache`,
21 | Index: `frontMatter:Dashboard:Pages:Index`
22 | }
23 | },
24 |
25 | Settings: {
26 | Extends: `frontMatter:Settings:Extends`
27 | },
28 |
29 | Updates: {
30 | v7_0_0: {
31 | dateFields: `frontMatter:Updates:v7.0.0:dateFields`
32 | }
33 | },
34 |
35 | Secrets: {
36 | Deepl: {
37 | ApiKey: `frontMatter:Secrets:DeeplApiKey`
38 | },
39 | Azure: {
40 | TranslatorKey: `frontMatter:Secrets:AzureTranslatorKey`,
41 | TranslatorRegion: `frontMatter:Secrets:AzureTranslatorRegion`
42 | }
43 | }
44 | };
45 |
--------------------------------------------------------------------------------
/src/dashboardWebView/components/Header/Tab.tsx:
--------------------------------------------------------------------------------
1 | import * as React from 'react';
2 | import { useLocation } from 'react-router-dom';
3 | import { NavigationType } from '../../models';
4 | import { cn } from '../../../utils/cn';
5 |
6 | export interface ITabProps {
7 | navigationType: NavigationType;
8 | onNavigate: (navigationType: NavigationType) => void;
9 | }
10 |
11 | export const Tab: React.FunctionComponent