Skip to content

Commit

Permalink
revert #c8f1aa40c5d7f7858de3f8f5ba2a8e8546a45e53
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Jan 24, 2024
1 parent d74e34d commit b96fa78
Show file tree
Hide file tree
Showing 41 changed files with 317 additions and 296 deletions.
3 changes: 1 addition & 2 deletions 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;
};

export type Dialogue = ModuleConfig & {
type Dialogue = ModuleConfig & {
options?: DialogueOptions;
content: DialogueContent;
};
Expand Down Expand Up @@ -434,7 +434,6 @@ 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 @@ -72,8 +72,8 @@ type AlephSettingsDialogue = ModuleConfig & {
};

type Modules = {
leftPanel: AlephLeftPanel;
centerPanel: AlephCenterPanel;
alephLeftPanel: AlephLeftPanel;
alephCenterPanel: AlephCenterPanel;
downloadDialogue: AlephDownloadDialogue;
shareDialogue: AlephShareDialogue;
settingsDialogue: AlephSettingsDialogue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@
},
"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 @@ -177,6 +192,17 @@
}
},
"centerPanel": {
"options": {
"titleEnabled": true,
"subtitleEnabled": true,
"mostSpecificRequiredStatement": true,
"requiredStatementEnabled": true
},
"content": {
"attribution": "$attribution"
}
},
"alephCenterPanel": {
"options": {
"titleEnabled": true,
"subtitleEnabled": true,
Expand Down Expand Up @@ -297,34 +323,6 @@
"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 @@ -71,7 +71,7 @@ type AVSettingsDialogue = ModuleConfig & {
};

type Modules = {
centerPanel: AVCenterPanel;
avCenterPanel: AVCenterPanel;
downloadDialogue: AVDownloadDialogue;
shareDialogue: AVShareDialogue;
settingsDialogue: AVSettingsDialogue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@
},
"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 @@ -203,6 +218,17 @@
}
},
"centerPanel": {
"options": {
"titleEnabled": true,
"subtitleEnabled": true,
"mostSpecificRequiredStatement": true,
"requiredStatementEnabled": true
},
"content": {
"attribution": "$attribution"
}
},
"avCenterPanel": {
"options": {
"autoPlay": false,
"includeParentInTitleEnabled": false,
Expand Down Expand Up @@ -340,34 +366,6 @@
"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 DefaultCenterPanelOptions = CenterPanelOptions & {};
type FileLinkCenterPanelOptions = CenterPanelOptions & {};

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

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

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

type Modules = {
centerPanel: DefaultCenterPanel;
fileLinkCenterPanel: FileLinkCenterPanel;
downloadDialogue: DefaultDownloadDialogue;
shareDialogue: DefaultShareDialogue;
settingsDialogue: DefaultSettingsDialogue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,21 @@
"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 @@ -81,6 +96,17 @@
"attribution": "$attribution"
}
},
"fileLinkCenterPanel": {
"options": {
"titleEnabled": true,
"subtitleEnabled": true,
"mostSpecificRequiredStatement": true,
"requiredStatementEnabled": true
},
"content": {
"attribution": "$attribution"
}
},
"footerPanel": {
"options": {
"bookmarkEnabled": false,
Expand Down Expand Up @@ -192,7 +218,7 @@
"title": "$moreInformation"
}
},
"leftPanel": {
"resourcesLeftPanel": {
"options": {
"expandFullEnabled": false,
"panelAnimationDuration": 250,
Expand Down Expand Up @@ -296,34 +322,6 @@
"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 @@ -63,8 +63,8 @@ type EbookSettingsDialogue = ModuleConfig & {
};

type Modules = {
leftPanel: EbookLeftPanel;
centerPanel: EbookCenterPanel;
ebookLeftPanel: EbookLeftPanel;
ebookCenterPanel: EbookCenterPanel;
downloadDialogue: EbookDownloadDialogue;
shareDialogue: EbookShareDialogue;
settingsDialogue: EbookSettingsDialogue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@
},
"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 @@ -183,6 +198,17 @@
"attribution": "$attribution"
}
},
"ebookCenterPanel": {
"options": {
"titleEnabled": true,
"subtitleEnabled": true,
"mostSpecificRequiredStatement": true,
"requiredStatementEnabled": true
},
"content": {
"attribution": "$attribution"
}
},
"settingsDialogue": {
"options": {
"topCloseButtonEnabled": false
Expand Down Expand Up @@ -292,34 +318,6 @@
"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 = {
centerPanel: MediaElementCenterPanel;
mediaelementCenterPanel: MediaElementCenterPanel;
downloadDialogue: MediaElementDownloadDialogue;
shareDialogue: MediaElementShareDialogue;
settingsDialogue: MediaElementSettingsDialogue;
Expand Down
Loading

0 comments on commit b96fa78

Please sign in to comment.