Skip to content

Commit c8f1aa4

Browse files
committed
rm duplicate modules
1 parent 2ee0a4b commit c8f1aa4

File tree

41 files changed

+296
-317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+296
-317
lines changed

src/content-handlers/iiif/BaseConfig.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export type DialogueContent = {
208208
close: string;
209209
};
210210

211-
type Dialogue = ModuleConfig & {
211+
export type Dialogue = ModuleConfig & {
212212
options?: DialogueOptions;
213213
content: DialogueContent;
214214
};
@@ -434,6 +434,7 @@ export type BaseConfig = {
434434
helpDialogue: HelpDialogue;
435435
leftPanel: LeftPanel;
436436
loginDialogue: LoginDialogue;
437+
mobileFooterPanel: FooterPanel;
437438
moreInfoRightPanel: MoreInfoRightPanel;
438439
restrictedDialogue: RestrictedDialogue;
439440
settingsDialogue: SettingsDialogue;

src/content-handlers/iiif/extensions/uv-aleph-extension/config/Config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ type AlephSettingsDialogue = ModuleConfig & {
6868
};
6969

7070
type Modules = {
71-
alephLeftPanel: AlephLeftPanel;
72-
alephCenterPanel: AlephCenterPanel;
71+
leftPanel: AlephLeftPanel;
72+
centerPanel: AlephCenterPanel;
7373
downloadDialogue: AlephDownloadDialogue;
7474
shareDialogue: AlephShareDialogue;
7575
settingsDialogue: AlephSettingsDialogue;

src/content-handlers/iiif/extensions/uv-aleph-extension/config/config.json

+28-26
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,6 @@
4747
},
4848
"modules": {
4949
"leftPanel": {
50-
"options": {
51-
"expandFullEnabled": false,
52-
"panelAnimationDuration": 250,
53-
"panelCollapsedWidth": 30,
54-
"panelExpandedWidth": 255,
55-
"panelOpen": false
56-
},
57-
"content": {
58-
"collapse": "$collapse",
59-
"collapseFull": "$collapseFull",
60-
"expand": "$expandContents",
61-
"expandFull": "$expandGallery"
62-
}
63-
},
64-
"alephLeftPanel": {
6550
"options": {
6651
"consoleTabEnabled": true,
6752
"graphTabEnabled": true,
@@ -192,17 +177,6 @@
192177
}
193178
},
194179
"centerPanel": {
195-
"options": {
196-
"titleEnabled": true,
197-
"subtitleEnabled": true,
198-
"mostSpecificRequiredStatement": true,
199-
"requiredStatementEnabled": true
200-
},
201-
"content": {
202-
"attribution": "$attribution"
203-
}
204-
},
205-
"alephCenterPanel": {
206180
"options": {
207181
"titleEnabled": true,
208182
"subtitleEnabled": true,
@@ -323,6 +297,34 @@
323297
"cancel": "$cancel",
324298
"close": "$close"
325299
}
300+
},
301+
"mobileFooterPanel": {
302+
"options": {
303+
"bookmarkEnabled": false,
304+
"downloadEnabled": true,
305+
"embedEnabled": false,
306+
"feedbackEnabled": false,
307+
"fullscreenEnabled": true,
308+
"minimiseButtons": true,
309+
"moreInfoEnabled": true,
310+
"openEnabled": false,
311+
"printEnabled": false,
312+
"shareEnabled": true
313+
},
314+
"content": {
315+
"rotateRight": "$rotateRight",
316+
"moreInfo": "$moreInfo",
317+
"zoomIn": "$zoomIn",
318+
"zoomOut": "$zoomOut",
319+
"bookmark": "$add_to_bookmarks",
320+
"download": "$download",
321+
"embed": "$embed",
322+
"exitFullScreen": "$exitFullScreen",
323+
"feedback": "$feedback",
324+
"fullScreen": "$fullScreen",
325+
"open": "$open",
326+
"share": "$share"
327+
}
326328
}
327329
},
328330
"localisation": {

src/content-handlers/iiif/extensions/uv-av-extension/config/Config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type AVSettingsDialogue = ModuleConfig & {
6161
};
6262

6363
type Modules = {
64-
avCenterPanel: AVCenterPanel;
64+
centerPanel: AVCenterPanel;
6565
downloadDialogue: AVDownloadDialogue;
6666
shareDialogue: AVShareDialogue;
6767
settingsDialogue: AVSettingsDialogue;

src/content-handlers/iiif/extensions/uv-av-extension/config/config.json

+28-26
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,6 @@
4747
},
4848
"modules": {
4949
"leftPanel": {
50-
"options": {
51-
"expandFullEnabled": false,
52-
"panelAnimationDuration": 250,
53-
"panelCollapsedWidth": 30,
54-
"panelExpandedWidth": 255,
55-
"panelOpen": false
56-
},
57-
"content": {
58-
"collapse": "$collapse",
59-
"collapseFull": "$collapseFull",
60-
"expand": "$expandContents",
61-
"expandFull": "$expandGallery"
62-
}
63-
},
64-
"contentLeftPanel": {
6550
"options": {
6651
"autoExpandTreeEnabled": true,
6752
"autoExpandTreeIfFewerThan": 20,
@@ -218,17 +203,6 @@
218203
}
219204
},
220205
"centerPanel": {
221-
"options": {
222-
"titleEnabled": true,
223-
"subtitleEnabled": true,
224-
"mostSpecificRequiredStatement": true,
225-
"requiredStatementEnabled": true
226-
},
227-
"content": {
228-
"attribution": "$attribution"
229-
}
230-
},
231-
"avCenterPanel": {
232206
"options": {
233207
"autoPlay": false,
234208
"includeParentInTitleEnabled": false,
@@ -366,6 +340,34 @@
366340
"cancel": "$cancel",
367341
"close": "$close"
368342
}
343+
},
344+
"mobileFooterPanel": {
345+
"options": {
346+
"bookmarkEnabled": false,
347+
"downloadEnabled": true,
348+
"embedEnabled": false,
349+
"feedbackEnabled": false,
350+
"fullscreenEnabled": true,
351+
"minimiseButtons": true,
352+
"moreInfoEnabled": true,
353+
"openEnabled": false,
354+
"printEnabled": false,
355+
"shareEnabled": true
356+
},
357+
"content": {
358+
"rotateRight": "$rotateRight",
359+
"moreInfo": "$moreInfo",
360+
"zoomIn": "$zoomIn",
361+
"zoomOut": "$zoomOut",
362+
"bookmark": "$add_to_bookmarks",
363+
"download": "$download",
364+
"embed": "$embed",
365+
"exitFullScreen": "$exitFullScreen",
366+
"feedback": "$feedback",
367+
"fullScreen": "$fullScreen",
368+
"open": "$open",
369+
"share": "$share"
370+
}
369371
}
370372
},
371373
"localisation": {

src/content-handlers/iiif/extensions/uv-default-extension/config/Config.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import {
1111
ShareDialogueOptions,
1212
} from "@/content-handlers/iiif/BaseConfig";
1313

14-
type FileLinkCenterPanelOptions = CenterPanelOptions & {};
14+
type DefaultCenterPanelOptions = CenterPanelOptions & {};
1515

16-
type FileLinkCenterPanelContent = CenterPanelContent & {};
16+
type DefaultCenterPanelContent = CenterPanelContent & {};
1717

18-
type FileLinkCenterPanel = {
19-
options: FileLinkCenterPanelOptions;
20-
content: FileLinkCenterPanelContent;
18+
type DefaultCenterPanel = {
19+
options: DefaultCenterPanelOptions;
20+
content: DefaultCenterPanelContent;
2121
};
2222

2323
type DefaultDownloadDialogueOptions = DownloadDialogueOptions & {};
@@ -48,7 +48,7 @@ type DefaultSettingsDialogue = ModuleConfig & {
4848
};
4949

5050
type Modules = {
51-
fileLinkCenterPanel: FileLinkCenterPanel;
51+
centerPanel: DefaultCenterPanel;
5252
downloadDialogue: DefaultDownloadDialogue;
5353
shareDialogue: DefaultShareDialogue;
5454
settingsDialogue: DefaultSettingsDialogue;

src/content-handlers/iiif/extensions/uv-default-extension/config/config.json

+29-27
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,6 @@
4646
"zoomToSearchResultEnabled": true
4747
},
4848
"modules": {
49-
"leftPanel": {
50-
"options": {
51-
"expandFullEnabled": false,
52-
"panelAnimationDuration": 250,
53-
"panelCollapsedWidth": 30,
54-
"panelExpandedWidth": 255,
55-
"panelOpen": false
56-
},
57-
"content": {
58-
"collapse": "$collapse",
59-
"collapseFull": "$collapseFull",
60-
"expand": "$expandContents",
61-
"expandFull": "$expandGallery"
62-
}
63-
},
6449
"shareDialogue": {
6550
"options": {
6651
"embedEnabled": true,
@@ -96,17 +81,6 @@
9681
"attribution": "$attribution"
9782
}
9883
},
99-
"fileLinkCenterPanel": {
100-
"options": {
101-
"titleEnabled": true,
102-
"subtitleEnabled": true,
103-
"mostSpecificRequiredStatement": true,
104-
"requiredStatementEnabled": true
105-
},
106-
"content": {
107-
"attribution": "$attribution"
108-
}
109-
},
11084
"footerPanel": {
11185
"options": {
11286
"bookmarkEnabled": false,
@@ -218,7 +192,7 @@
218192
"title": "$moreInformation"
219193
}
220194
},
221-
"resourcesLeftPanel": {
195+
"leftPanel": {
222196
"options": {
223197
"expandFullEnabled": false,
224198
"panelAnimationDuration": 250,
@@ -322,6 +296,34 @@
322296
"title": "$settings",
323297
"website": "$uvWebsite"
324298
}
299+
},
300+
"mobileFooterPanel": {
301+
"options": {
302+
"bookmarkEnabled": false,
303+
"downloadEnabled": true,
304+
"embedEnabled": false,
305+
"feedbackEnabled": false,
306+
"fullscreenEnabled": true,
307+
"minimiseButtons": true,
308+
"moreInfoEnabled": true,
309+
"openEnabled": false,
310+
"printEnabled": false,
311+
"shareEnabled": true
312+
},
313+
"content": {
314+
"rotateRight": "$rotateRight",
315+
"moreInfo": "$moreInfo",
316+
"zoomIn": "$zoomIn",
317+
"zoomOut": "$zoomOut",
318+
"bookmark": "$add_to_bookmarks",
319+
"download": "$download",
320+
"embed": "$embed",
321+
"exitFullScreen": "$exitFullScreen",
322+
"feedback": "$feedback",
323+
"fullScreen": "$fullScreen",
324+
"open": "$open",
325+
"share": "$share"
326+
}
325327
}
326328
},
327329
"localisation": {

src/content-handlers/iiif/extensions/uv-ebook-extension/config/Config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ type EbookSettingsDialogue = ModuleConfig & {
6969
};
7070

7171
type Modules = {
72-
ebookLeftPanel: EbookLeftPanel;
73-
ebookCenterPanel: EbookCenterPanel;
72+
leftPanel: EbookLeftPanel;
73+
centerPanel: EbookCenterPanel;
7474
downloadDialogue: EbookDownloadDialogue;
7575
shareDialogue: EbookShareDialogue;
7676
settingsDialogue: EbookSettingsDialogue;

src/content-handlers/iiif/extensions/uv-ebook-extension/config/config.json

+28-26
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,6 @@
4747
},
4848
"modules": {
4949
"leftPanel": {
50-
"options": {
51-
"expandFullEnabled": false,
52-
"panelAnimationDuration": 250,
53-
"panelCollapsedWidth": 30,
54-
"panelExpandedWidth": 255,
55-
"panelOpen": false
56-
},
57-
"content": {
58-
"collapse": "$collapse",
59-
"collapseFull": "$collapseFull",
60-
"expand": "$expandContents",
61-
"expandFull": "$expandGallery"
62-
}
63-
},
64-
"ebookLeftPanel": {
6550
"options": {
6651
"expandFullEnabled": false,
6752
"panelAnimationDuration": 250,
@@ -198,17 +183,6 @@
198183
"attribution": "$attribution"
199184
}
200185
},
201-
"ebookCenterPanel": {
202-
"options": {
203-
"titleEnabled": true,
204-
"subtitleEnabled": true,
205-
"mostSpecificRequiredStatement": true,
206-
"requiredStatementEnabled": true
207-
},
208-
"content": {
209-
"attribution": "$attribution"
210-
}
211-
},
212186
"settingsDialogue": {
213187
"options": {
214188
"topCloseButtonEnabled": false
@@ -318,6 +292,34 @@
318292
"cancel": "$cancel",
319293
"close": "$close"
320294
}
295+
},
296+
"mobileFooterPanel": {
297+
"options": {
298+
"bookmarkEnabled": false,
299+
"downloadEnabled": true,
300+
"embedEnabled": false,
301+
"feedbackEnabled": false,
302+
"fullscreenEnabled": true,
303+
"minimiseButtons": true,
304+
"moreInfoEnabled": true,
305+
"openEnabled": false,
306+
"printEnabled": false,
307+
"shareEnabled": true
308+
},
309+
"content": {
310+
"rotateRight": "$rotateRight",
311+
"moreInfo": "$moreInfo",
312+
"zoomIn": "$zoomIn",
313+
"zoomOut": "$zoomOut",
314+
"bookmark": "$add_to_bookmarks",
315+
"download": "$download",
316+
"embed": "$embed",
317+
"exitFullScreen": "$exitFullScreen",
318+
"feedback": "$feedback",
319+
"fullScreen": "$fullScreen",
320+
"open": "$open",
321+
"share": "$share"
322+
}
321323
}
322324
},
323325
"localisation": {

src/content-handlers/iiif/extensions/uv-mediaelement-extension/config/Config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type MediaElementSettingsDialogue = ModuleConfig & {
5151
};
5252

5353
type Modules = {
54-
mediaelementCenterPanel: MediaElementCenterPanel;
54+
centerPanel: MediaElementCenterPanel;
5555
downloadDialogue: MediaElementDownloadDialogue;
5656
shareDialogue: MediaElementShareDialogue;
5757
settingsDialogue: MediaElementSettingsDialogue;

0 commit comments

Comments
 (0)