-
-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathConfig.ts
84 lines (67 loc) Β· 2.12 KB
/
Config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import {
BaseConfig,
CenterPanelContent,
CenterPanelOptions,
DownloadDialogueContent,
DownloadDialogueOptions,
ModuleConfig,
SettingsDialogueContent,
SettingsDialogueOptions,
ShareDialogueContent,
ShareDialogueOptions,
} from "@/content-handlers/iiif/BaseConfig";
import {
ExpandPanelContent,
ExpandPanelOptions,
} from "../../config/ExpandPanel";
type AlephLeftPanelOptions = ExpandPanelOptions & {
/** Determines if the console tab is enabled */
consoleTabEnabled: boolean;
/** Determines if the graph tab is enabled */
graphTabEnabled: boolean;
/** Determines if the settings tab is enabled */
settingsTabEnabled: boolean;
/** Determines if the source tab is enabled */
srcTabEnabled: boolean;
};
type AlephLeftPanelContent = ExpandPanelContent & {
title: string;
};
type AlephLeftPanel = {
options: AlephLeftPanelOptions;
content: AlephLeftPanelContent;
};
type AlephCenterPanelOptions = CenterPanelOptions & {};
type AlephCenterPanelContent = CenterPanelContent & {};
type AlephCenterPanel = {
options: AlephCenterPanelOptions;
content: AlephCenterPanelContent;
};
type AlephDownloadDialogueOptions = DownloadDialogueOptions & {};
type AlephDownloadDialogueContent = DownloadDialogueContent & {};
type AlephDownloadDialogue = ModuleConfig & {
options: AlephDownloadDialogueOptions;
content: AlephDownloadDialogueContent;
};
type AlephShareDialogueOptions = ShareDialogueOptions & {};
type AlephShareDialogueContent = ShareDialogueContent & {};
type AlephShareDialogue = ModuleConfig & {
options: AlephShareDialogueOptions;
content: AlephShareDialogueContent;
};
type AlephSettingsDialogueOptions = SettingsDialogueOptions & {};
type AlephSettingsDialogueContent = SettingsDialogueContent & {};
type AlephSettingsDialogue = ModuleConfig & {
options: AlephSettingsDialogueOptions;
content: AlephSettingsDialogueContent;
};
type Modules = {
leftPanel: AlephLeftPanel;
centerPanel: AlephCenterPanel;
downloadDialogue: AlephDownloadDialogue;
shareDialogue: AlephShareDialogue;
settingsDialogue: AlephSettingsDialogue;
};
export type Config = BaseConfig & {
modules: Modules;
};