Skip to content

Commit

Permalink
rm duplicate modules
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Nov 24, 2023
1 parent 2ee0a4b commit c8f1aa4
Show file tree
Hide file tree
Showing 41 changed files with 296 additions and 317 deletions.
3 changes: 2 additions & 1 deletion src/content-handlers/iiif/BaseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export type DialogueContent = {
close: string;
};

type Dialogue = ModuleConfig & {
export type Dialogue = ModuleConfig & {
options?: DialogueOptions;
content: DialogueContent;
};
Expand Down Expand Up @@ -434,6 +434,7 @@ export type BaseConfig = {
helpDialogue: HelpDialogue;
leftPanel: LeftPanel;
loginDialogue: LoginDialogue;
mobileFooterPanel: FooterPanel;
moreInfoRightPanel: MoreInfoRightPanel;
restrictedDialogue: RestrictedDialogue;
settingsDialogue: SettingsDialogue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ type AlephSettingsDialogue = ModuleConfig & {
};

type Modules = {
alephLeftPanel: AlephLeftPanel;
alephCenterPanel: AlephCenterPanel;
leftPanel: AlephLeftPanel;
centerPanel: AlephCenterPanel;
downloadDialogue: AlephDownloadDialogue;
shareDialogue: AlephShareDialogue;
settingsDialogue: AlephSettingsDialogue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,6 @@
},
"modules": {
"leftPanel": {
"options": {
"expandFullEnabled": false,
"panelAnimationDuration": 250,
"panelCollapsedWidth": 30,
"panelExpandedWidth": 255,
"panelOpen": false
},
"content": {
"collapse": "$collapse",
"collapseFull": "$collapseFull",
"expand": "$expandContents",
"expandFull": "$expandGallery"
}
},
"alephLeftPanel": {
"options": {
"consoleTabEnabled": true,
"graphTabEnabled": true,
Expand Down Expand Up @@ -192,17 +177,6 @@
}
},
"centerPanel": {
"options": {
"titleEnabled": true,
"subtitleEnabled": true,
"mostSpecificRequiredStatement": true,
"requiredStatementEnabled": true
},
"content": {
"attribution": "$attribution"
}
},
"alephCenterPanel": {
"options": {
"titleEnabled": true,
"subtitleEnabled": true,
Expand Down Expand Up @@ -323,6 +297,34 @@
"cancel": "$cancel",
"close": "$close"
}
},
"mobileFooterPanel": {
"options": {
"bookmarkEnabled": false,
"downloadEnabled": true,
"embedEnabled": false,
"feedbackEnabled": false,
"fullscreenEnabled": true,
"minimiseButtons": true,
"moreInfoEnabled": true,
"openEnabled": false,
"printEnabled": false,
"shareEnabled": true
},
"content": {
"rotateRight": "$rotateRight",
"moreInfo": "$moreInfo",
"zoomIn": "$zoomIn",
"zoomOut": "$zoomOut",
"bookmark": "$add_to_bookmarks",
"download": "$download",
"embed": "$embed",
"exitFullScreen": "$exitFullScreen",
"feedback": "$feedback",
"fullScreen": "$fullScreen",
"open": "$open",
"share": "$share"
}
}
},
"localisation": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type AVSettingsDialogue = ModuleConfig & {
};

type Modules = {
avCenterPanel: AVCenterPanel;
centerPanel: AVCenterPanel;
downloadDialogue: AVDownloadDialogue;
shareDialogue: AVShareDialogue;
settingsDialogue: AVSettingsDialogue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,6 @@
},
"modules": {
"leftPanel": {
"options": {
"expandFullEnabled": false,
"panelAnimationDuration": 250,
"panelCollapsedWidth": 30,
"panelExpandedWidth": 255,
"panelOpen": false
},
"content": {
"collapse": "$collapse",
"collapseFull": "$collapseFull",
"expand": "$expandContents",
"expandFull": "$expandGallery"
}
},
"contentLeftPanel": {
"options": {
"autoExpandTreeEnabled": true,
"autoExpandTreeIfFewerThan": 20,
Expand Down Expand Up @@ -218,17 +203,6 @@
}
},
"centerPanel": {
"options": {
"titleEnabled": true,
"subtitleEnabled": true,
"mostSpecificRequiredStatement": true,
"requiredStatementEnabled": true
},
"content": {
"attribution": "$attribution"
}
},
"avCenterPanel": {
"options": {
"autoPlay": false,
"includeParentInTitleEnabled": false,
Expand Down Expand Up @@ -366,6 +340,34 @@
"cancel": "$cancel",
"close": "$close"
}
},
"mobileFooterPanel": {
"options": {
"bookmarkEnabled": false,
"downloadEnabled": true,
"embedEnabled": false,
"feedbackEnabled": false,
"fullscreenEnabled": true,
"minimiseButtons": true,
"moreInfoEnabled": true,
"openEnabled": false,
"printEnabled": false,
"shareEnabled": true
},
"content": {
"rotateRight": "$rotateRight",
"moreInfo": "$moreInfo",
"zoomIn": "$zoomIn",
"zoomOut": "$zoomOut",
"bookmark": "$add_to_bookmarks",
"download": "$download",
"embed": "$embed",
"exitFullScreen": "$exitFullScreen",
"feedback": "$feedback",
"fullScreen": "$fullScreen",
"open": "$open",
"share": "$share"
}
}
},
"localisation": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import {
ShareDialogueOptions,
} from "@/content-handlers/iiif/BaseConfig";

type FileLinkCenterPanelOptions = CenterPanelOptions & {};
type DefaultCenterPanelOptions = CenterPanelOptions & {};

type FileLinkCenterPanelContent = CenterPanelContent & {};
type DefaultCenterPanelContent = CenterPanelContent & {};

type FileLinkCenterPanel = {
options: FileLinkCenterPanelOptions;
content: FileLinkCenterPanelContent;
type DefaultCenterPanel = {
options: DefaultCenterPanelOptions;
content: DefaultCenterPanelContent;
};

type DefaultDownloadDialogueOptions = DownloadDialogueOptions & {};
Expand Down Expand Up @@ -48,7 +48,7 @@ type DefaultSettingsDialogue = ModuleConfig & {
};

type Modules = {
fileLinkCenterPanel: FileLinkCenterPanel;
centerPanel: DefaultCenterPanel;
downloadDialogue: DefaultDownloadDialogue;
shareDialogue: DefaultShareDialogue;
settingsDialogue: DefaultSettingsDialogue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,6 @@
"zoomToSearchResultEnabled": true
},
"modules": {
"leftPanel": {
"options": {
"expandFullEnabled": false,
"panelAnimationDuration": 250,
"panelCollapsedWidth": 30,
"panelExpandedWidth": 255,
"panelOpen": false
},
"content": {
"collapse": "$collapse",
"collapseFull": "$collapseFull",
"expand": "$expandContents",
"expandFull": "$expandGallery"
}
},
"shareDialogue": {
"options": {
"embedEnabled": true,
Expand Down Expand Up @@ -96,17 +81,6 @@
"attribution": "$attribution"
}
},
"fileLinkCenterPanel": {
"options": {
"titleEnabled": true,
"subtitleEnabled": true,
"mostSpecificRequiredStatement": true,
"requiredStatementEnabled": true
},
"content": {
"attribution": "$attribution"
}
},
"footerPanel": {
"options": {
"bookmarkEnabled": false,
Expand Down Expand Up @@ -218,7 +192,7 @@
"title": "$moreInformation"
}
},
"resourcesLeftPanel": {
"leftPanel": {
"options": {
"expandFullEnabled": false,
"panelAnimationDuration": 250,
Expand Down Expand Up @@ -322,6 +296,34 @@
"title": "$settings",
"website": "$uvWebsite"
}
},
"mobileFooterPanel": {
"options": {
"bookmarkEnabled": false,
"downloadEnabled": true,
"embedEnabled": false,
"feedbackEnabled": false,
"fullscreenEnabled": true,
"minimiseButtons": true,
"moreInfoEnabled": true,
"openEnabled": false,
"printEnabled": false,
"shareEnabled": true
},
"content": {
"rotateRight": "$rotateRight",
"moreInfo": "$moreInfo",
"zoomIn": "$zoomIn",
"zoomOut": "$zoomOut",
"bookmark": "$add_to_bookmarks",
"download": "$download",
"embed": "$embed",
"exitFullScreen": "$exitFullScreen",
"feedback": "$feedback",
"fullScreen": "$fullScreen",
"open": "$open",
"share": "$share"
}
}
},
"localisation": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ type EbookSettingsDialogue = ModuleConfig & {
};

type Modules = {
ebookLeftPanel: EbookLeftPanel;
ebookCenterPanel: EbookCenterPanel;
leftPanel: EbookLeftPanel;
centerPanel: EbookCenterPanel;
downloadDialogue: EbookDownloadDialogue;
shareDialogue: EbookShareDialogue;
settingsDialogue: EbookSettingsDialogue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,6 @@
},
"modules": {
"leftPanel": {
"options": {
"expandFullEnabled": false,
"panelAnimationDuration": 250,
"panelCollapsedWidth": 30,
"panelExpandedWidth": 255,
"panelOpen": false
},
"content": {
"collapse": "$collapse",
"collapseFull": "$collapseFull",
"expand": "$expandContents",
"expandFull": "$expandGallery"
}
},
"ebookLeftPanel": {
"options": {
"expandFullEnabled": false,
"panelAnimationDuration": 250,
Expand Down Expand Up @@ -198,17 +183,6 @@
"attribution": "$attribution"
}
},
"ebookCenterPanel": {
"options": {
"titleEnabled": true,
"subtitleEnabled": true,
"mostSpecificRequiredStatement": true,
"requiredStatementEnabled": true
},
"content": {
"attribution": "$attribution"
}
},
"settingsDialogue": {
"options": {
"topCloseButtonEnabled": false
Expand Down Expand Up @@ -318,6 +292,34 @@
"cancel": "$cancel",
"close": "$close"
}
},
"mobileFooterPanel": {
"options": {
"bookmarkEnabled": false,
"downloadEnabled": true,
"embedEnabled": false,
"feedbackEnabled": false,
"fullscreenEnabled": true,
"minimiseButtons": true,
"moreInfoEnabled": true,
"openEnabled": false,
"printEnabled": false,
"shareEnabled": true
},
"content": {
"rotateRight": "$rotateRight",
"moreInfo": "$moreInfo",
"zoomIn": "$zoomIn",
"zoomOut": "$zoomOut",
"bookmark": "$add_to_bookmarks",
"download": "$download",
"embed": "$embed",
"exitFullScreen": "$exitFullScreen",
"feedback": "$feedback",
"fullScreen": "$fullScreen",
"open": "$open",
"share": "$share"
}
}
},
"localisation": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type MediaElementSettingsDialogue = ModuleConfig & {
};

type Modules = {
mediaelementCenterPanel: MediaElementCenterPanel;
centerPanel: MediaElementCenterPanel;
downloadDialogue: MediaElementDownloadDialogue;
shareDialogue: MediaElementShareDialogue;
settingsDialogue: MediaElementSettingsDialogue;
Expand Down
Loading

0 comments on commit c8f1aa4

Please sign in to comment.