Skip to content

Commit

Permalink
config types compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Nov 24, 2023
1 parent 820b914 commit ef4a732
Show file tree
Hide file tree
Showing 14 changed files with 302 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {
DownloadDialogueContent,
DownloadDialogueOptions,
ModuleConfig,
SettingsDialogueContent,
SettingsDialogueOptions,
ShareDialogueContent,
ShareDialogueOptions,
} from "@/content-handlers/iiif/BaseConfig";
Expand Down Expand Up @@ -56,9 +58,9 @@ type AlephShareDialogue = ModuleConfig & {
content: AlephShareDialogueContent;
};

type AlephSettingsDialogueOptions = ShareDialogueOptions & {};
type AlephSettingsDialogueOptions = SettingsDialogueOptions & {};

type AlephSettingsDialogueContent = ShareDialogueContent & {};
type AlephSettingsDialogueContent = SettingsDialogueContent & {};

type AlephSettingsDialogue = ModuleConfig & {
options: AlephSettingsDialogueOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@
}
},
"genericDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"close": "$close",
"emptyValue": "please enter a value.",
"invalidNumber": "Please enter a valid number.",
"noMatches": "No matches were found.",
Expand All @@ -136,7 +140,11 @@
}
},
"helpDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"close": "$close",
"text": "placeholder text",
"title": "Help"
}
Expand All @@ -157,11 +165,13 @@
"rtlLanguageCodes": "ar, ara, dv, div, he, heb, ur, urd",
"showAllLanguages": false,
"textLimit": 4,
"textLimitType": "lines"
"textLimitType": "lines",
"topCloseButtonEnabled": false
},
"content": {
"attribution": "$attribution",
"canvasHeader": "$aboutTheImage",
"close": "$close",
"collapse": "$collapseInformation",
"collapseFull": "$collapseGallery",
"copiedToClipboard": "$copiedToClipboard",
Expand Down Expand Up @@ -205,7 +215,11 @@
}
},
"settingsDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"close": "$close",
"locale": "Locale",
"navigatorEnabled": "Navigator Enabled",
"clickToZoomEnabled": "Mouse Click To Zoom",
Expand All @@ -218,37 +232,54 @@
},
"shareDialogue": {
"options": {
"embedEnabled": true,
"shareEnabled": true,
"embedTemplate": "<iframe src=\"{0}\" width=\"{1}\" height=\"{2}\" allowfullscreen frameborder=\"0\"></iframe>",
"instructionsEnabled": false,
"shareFrameEnabled": true,
"shareManifestsEnabled": true
"shareManifestsEnabled": true,
"topCloseButtonEnabled": false
},
"content": {
"close": "$close",
"customSize": "custom",
"embed": "Embed",
"embedInstructions": "To embed this item in your own website, copy and paste the code below.",
"height": "Height",
"iiif": "IIIF Manifest",
"share": "Share",
"shareInstructions": "To share this item, copy the URL below.",
"shareUrl": "$shareUrl",
"size": "Size:",
"width": "Width"
}
},
"authDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"cancel": "Cancel",
"confirm": "Confirm"
"cancel": "$cancel",
"close": "$close",
"confirm": "$confirm"
}
},
"clickThroughDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"viewTerms": "Read Full Terms and Conditions"
"close": "$close",
"viewTerms": "$viewTerms"
}
},
"downloadDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"allPages": "$allPages",
"close": "$close",
"currentViewAsJpg": "$currentViewAsJpg",
"currentViewAsJpgExplanation": "$openNewWindow",
"download": "$download",
Expand All @@ -257,6 +288,7 @@
"editSettings": "$editSettings",
"entireDocument": "$entireDocument",
"entireFileAsOriginal": "$entireFile",
"entireFileAsOriginalWithFormat": "$entireFileAsOriginalWithFormat",
"individualPages": "$individualPages",
"noneAvailable": "$noDownloadOptionsAvailable",
"pagingNote": "$pagingNote",
Expand Down Expand Up @@ -284,8 +316,12 @@
}
},
"restrictedDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"cancel": "Cancel"
"cancel": "$cancel",
"close": "$close"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {
DownloadDialogueContent,
DownloadDialogueOptions,
ModuleConfig,
SettingsDialogueContent,
SettingsDialogueOptions,
ShareDialogueContent,
ShareDialogueOptions,
} from "@/content-handlers/iiif/BaseConfig";
Expand Down Expand Up @@ -49,9 +51,9 @@ type AVShareDialogue = ModuleConfig & {
content: AVShareDialogueContent;
};

type AVSettingsDialogueOptions = ShareDialogueOptions & {};
type AVSettingsDialogueOptions = SettingsDialogueOptions & {};

type AVSettingsDialogueContent = ShareDialogueContent & {};
type AVSettingsDialogueContent = SettingsDialogueContent & {};

type AVSettingsDialogue = ModuleConfig & {
options: AVSettingsDialogueOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@
}
},
"genericDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"close": "$close",
"emptyValue": "$emptyValue",
"invalidNumber": "$invalidNumber",
"noMatches": "$noMatches",
Expand All @@ -162,7 +166,11 @@
}
},
"helpDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"close": "$close",
"text": "$placeholder_text",
"title": "$help"
}
Expand All @@ -183,11 +191,13 @@
"rtlLanguageCodes": "ar, ara, dv, div, he, heb, ur, urd",
"showAllLanguages": false,
"textLimit": 4,
"textLimitType": "lines"
"textLimitType": "lines",
"topCloseButtonEnabled": false
},
"content": {
"attribution": "$attribution",
"canvasHeader": "$aboutTheImage",
"close": "$close",
"collapse": "$collapseInformation",
"collapseFull": "$collapseGallery",
"copiedToClipboard": "$copiedToClipboard",
Expand Down Expand Up @@ -225,7 +235,15 @@
"posterImageRatio": 0.3,
"subtitleMetadataField": "contributor",
"titleEnabled": true,
"subtitleEnabled": true
"subtitleEnabled": true,
"mostSpecificRequiredStatement": true,
"requiredStatementEnabled": true,
"posterImageExpanded": false,
"hideMediaError": false,
"enableFastForward": true,
"enableFastRewind": true,
"limitToRange": false,
"autoAdvanceRanges": false
},
"content": {
"attribution": "$attribution",
Expand All @@ -240,7 +258,11 @@
}
},
"settingsDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"close": "$close",
"locale": "$locale",
"navigatorEnabled": "$navigatorEnabled",
"clickToZoomEnabled": "$clickToZoomEnabled",
Expand All @@ -253,12 +275,16 @@
},
"shareDialogue": {
"options": {
"embedEnabled": true,
"shareEnabled": true,
"embedTemplate": "<iframe src=\"{0}\" width=\"{1}\" height=\"{2}\" allowfullscreen frameborder=\"0\"></iframe>",
"instructionsEnabled": false,
"shareFrameEnabled": true,
"shareManifestsEnabled": true
"shareManifestsEnabled": true,
"topCloseButtonEnabled": false
},
"content": {
"close": "$close",
"customSize": "custom",
"embed": "Embed",
"embedInstructions": "To embed this item in your own website, copy and paste the code below.",
Expand All @@ -267,23 +293,36 @@
"share": "Share",
"shareInstructions": "To share this item, copy the URL below.",
"size": "Size:",
"width": "Width"
"width": "Width",
"shareUrl": "$shareUrl"
}
},
"authDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"cancel": "$cancel",
"close": "$close",
"confirm": "$confirm"
}
},
"clickThroughDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"close": "$close",
"viewTerms": "$viewTerms"
}
},
"downloadDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"allPages": "$allPages",
"close": "$close",
"currentViewAsJpg": "$currentViewAsJpg",
"currentViewAsJpgExplanation": "$openNewWindow",
"download": "$download",
Expand All @@ -292,6 +331,7 @@
"editSettings": "$editSettings",
"entireDocument": "$entireDocument",
"entireFileAsOriginal": "$entireFile",
"entireFileAsOriginalWithFormat": "$entireFileAsOriginalWithFormat",
"individualPages": "$individualPages",
"noneAvailable": "$noDownloadOptionsAvailable",
"pagingNote": "$pagingNote",
Expand Down Expand Up @@ -319,8 +359,12 @@
}
},
"restrictedDialogue": {
"options": {
"topCloseButtonEnabled": false
},
"content": {
"cancel": "$cancel"
"cancel": "$cancel",
"close": "$close"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {
DownloadDialogueContent,
DownloadDialogueOptions,
ModuleConfig,
SettingsDialogueContent,
SettingsDialogueOptions,
ShareDialogueContent,
ShareDialogueOptions,
} from "@/content-handlers/iiif/BaseConfig";
Expand Down Expand Up @@ -36,9 +38,9 @@ type DefaultShareDialogue = ModuleConfig & {
content: DefaultShareDialogueContent;
};

type DefaultSettingsDialogueOptions = ShareDialogueOptions & {};
type DefaultSettingsDialogueOptions = SettingsDialogueOptions & {};

type DefaultSettingsDialogueContent = ShareDialogueContent & {};
type DefaultSettingsDialogueContent = SettingsDialogueContent & {};

type DefaultSettingsDialogue = ModuleConfig & {
options: DefaultSettingsDialogueOptions;
Expand Down
Loading

0 comments on commit ef4a732

Please sign in to comment.