-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-default.js
195 lines (190 loc) · 4.15 KB
/
config-default.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
import rokkaHelper from './src/rokkaHelper';
const glitchit = {
title: 'Glitch it',
url: function (icon, rokkaOrg) {
return `https://glitch.liip.to/?hash=${icon.short_hash}&org=${rokkaOrg}`;
},
};
const maxwidth = {
title: function (icon) {
if (icon.width > 1920) {
return 'Open with 1920px width';
}
if (icon.width > 728) {
return 'Open with 728px width';
}
return null;
},
url: function (icon, rokkaOrg) {
let width = 728;
if (icon.width > 1920) {
width = 1920;
}
return rokkaHelper.renderUrl(
icon,
rokkaOrg,
width,
null,
null,
'dynamic/resize-width-${width}-upscale-false'
);
},
};
export default {
rokkaOrg: '',
rokkaKey: '', //default key, only set, if you want people to be able to use the site without a key (or add a read only key)
orgOptions: {
chregus: {
deleteEnabled: true,
favoriteHideEnabled: true,
},
'migros-artikelabfrage': {
deleteEnabled: true,
downloads: {
original: {
title: 'Open original',
url: function (icon, rokkaOrg) {
return rokkaHelper.renderUrl(
icon,
rokkaOrg,
null,
null,
null,
'source'
);
},
},
maxwidth,
},
},
'gallery-demo': {
deleteEnabled: false,
favoriteHideEnabled: true,
downloads: {
maxwidth,
},
},
drupal20: {
deleteEnabled: true,
},
playground: {
deleteEnabled: true,
downloads: {
original: {
title: 'Open original',
url: function (icon, rokkaOrg) {
return rokkaHelper.renderUrl(
icon,
rokkaOrg,
null,
null,
null,
'source'
);
},
},
maxwidth,
glitchit,
},
},
liip: {
deleteEnabled: true,
downloads: {
original: {
title: 'Open original',
url: function (icon, rokkaOrg) {
return rokkaHelper.renderUrl(
icon,
rokkaOrg,
null,
null,
null,
'www_raw'
);
},
},
maxwidth,
glitchit,
},
},
'hwz-events': {
deleteEnabled: true,
favoriteHideEnabled: true,
},
'oomnium-dev': {
deleteEnabled: true,
},
'liip-pictures': {
deleteEnabled: true,
favoriteHideEnabled: true,
downloads: {
original: {
title: 'Download original',
url: function (icon, rokkaOrg) {
return rokkaHelper.renderUrl(
icon,
rokkaOrg,
null,
null,
null,
'raw/o-content_disposition-attachment'
);
},
},
maxwidth2: {
title: 'Download with 1920px width',
url: function (icon, rokkaOrg) {
return rokkaHelper.renderUrl(
icon,
rokkaOrg,
'1920',
null,
null,
'dynamic/resize-width-${width}-upscale-false/o-af-0-content_disposition-attachment'
);
},
},
maxwidth,
},
},
'liip-development': {
deleteEnabled: true,
downloads: {
original: {
title: 'Open original',
url: function (icon, rokkaOrg) {
return rokkaHelper.renderUrl(
icon,
rokkaOrg,
null,
null,
null,
'www_raw'
);
},
},
maxwidth,
glitchit,
},
},
'liip-images': {
downloads: {
original: {
title: 'Open original',
url: function (icon, rokkaOrg) {
return rokkaHelper.renderUrl(
icon,
rokkaOrg,
null,
null,
null,
'www_raw'
);
},
},
maxwidth,
glitchit,
},
},
},
};