File tree Expand file tree Collapse file tree 4 files changed +41
-5
lines changed Expand file tree Collapse file tree 4 files changed +41
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ sed -i "s~\${SHOW_CATALOG_NB_TAGS}~${SHOW_CATALOG_NB_TAGS}~" index.html
12
12
sed -i " s~\$ {HISTORY_CUSTOM_LABELS}~${HISTORY_CUSTOM_LABELS} ~" index.html
13
13
sed -i " s~\$ {USE_CONTROL_CACHE_HEADER}~${USE_CONTROL_CACHE_HEADER} ~" index.html
14
14
15
+ grep -o ' THEME[A-Z_]*' index.html | while read e; do
16
+ sed -i " s~\$ {$e }~$( printenv $e ) ~" index.html
17
+ done
18
+
15
19
if [ -z " ${DELETE_IMAGES} " ] || [ " ${DELETE_IMAGES} " = false ] ; then
16
20
sed -i " s/\$ {DELETE_IMAGES}/false/" index.html
17
21
else
Original file line number Diff line number Diff line change 26
26
show-catalog-nb-tags ="${SHOW_CATALOG_NB_TAGS} "
27
27
history-custom-labels ="${HISTORY_CUSTOM_LABELS} "
28
28
use-control-cache-header ="${USE_CONTROL_CACHE_HEADER} "
29
+ theme ="${THEME} "
30
+ theme-primary-text ="${THEME_PRIMARY_TEXT} "
31
+ theme-neutral-text ="${THEME_NEUTRAL_TEXT} "
32
+ theme-background ="${THEME_BACKGROUND} "
33
+ theme-hover-background ="${THEME_HOVER_BACKGROUND} "
34
+ theme-accent-text ="${THEME_ACCENT_TEXT} "
35
+ theme-header-text ="${THEME_HEADER_TEXT} "
36
+ theme-header-background ="${THEME_HEADER_BACKGROUND} "
37
+ theme-footer-text ="${THEME_FOOTER_TEXT} "
38
+ theme-footer-neutra-text ="${THEME_FOOTER_NEUTRAL_TEXT} "
39
+ theme-footer-background ="${THEME_FOOTER_BACKGROUND} "
29
40
> </ docker-registry-ui > < script src ="docker-registry-ui.js "> </ script > </ body > </ html >
Original file line number Diff line number Diff line change 1
- import { extname } from 'path' ;
1
+ import { extname } from 'path' ;
2
2
3
- const injectNode = ( svg ) => ( `
3
+ const injectNode = ( svg ) => `
4
4
export default function() {
5
5
return (new DOMParser().parseFromString(${ svg } , 'image/svg+xml'));
6
6
};
7
- ` ) ;
7
+ ` ;
8
8
9
9
/**
10
10
* @param options
@@ -13,7 +13,6 @@ export default function() {
13
13
* @param options.stringify - if true returns String, otherwise returns DOM Node
14
14
*/
15
15
export default function ( ) {
16
-
17
16
return {
18
17
name : 'import-svg' ,
19
18
transform : ( code , id ) => {
@@ -26,4 +25,4 @@ export default function () {
26
25
} ;
27
26
} ,
28
27
} ;
29
- } ;
28
+ }
Original file line number Diff line number Diff line change 47
47
show-catalog-nb-tags ="${SHOW_CATALOG_NB_TAGS} "
48
48
history-custom-labels ="${HISTORY_CUSTOM_LABELS} "
49
49
use-control-cache-header ="${USE_CONTROL_CACHE_HEADER} "
50
+ theme ="${THEME} "
51
+ theme-primary-text ="${THEME_PRIMARY_TEXT} "
52
+ theme-neutral-text ="${THEME_NEUTRAL_TEXT} "
53
+ theme-background ="${THEME_BACKGROUND} "
54
+ theme-hover-background ="${THEME_HOVER_BACKGROUND} "
55
+ theme-accent-text ="${THEME_ACCENT_TEXT} "
56
+ theme-header-text ="${THEME_HEADER_TEXT} "
57
+ theme-header-background ="${THEME_HEADER_BACKGROUND} "
58
+ theme-footer-text ="${THEME_FOOTER_TEXT} "
59
+ theme-footer-neutra-text ="${THEME_FOOTER_NEUTRAL_TEXT} "
60
+ theme-footer-background ="${THEME_FOOTER_BACKGROUND} "
50
61
>
51
62
</ docker-registry-ui >
52
63
<!-- endbuild -->
62
73
show-catalog-nb-tags ="true "
63
74
history-custom-labels ="first_custom_labels,second_custom_labels "
64
75
use-control-cache-header ="false "
76
+ theme ="auto "
77
+ theme-primary-text =""
78
+ theme-neutral-text =""
79
+ theme-background =""
80
+ theme-hover-background =""
81
+ theme-accent-text =""
82
+ theme-header-text =""
83
+ theme-header-background =""
84
+ theme-footer-text =""
85
+ theme-footer-neutra-text =""
86
+ theme-footer-background =""
65
87
>
66
88
</ docker-registry-ui >
67
89
<!-- endbuild -->
You can’t perform that action at this time.
0 commit comments