Now, uhr.bundle.js contains it all, while uhr.js contains no layouts but
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
just the plain Uhr widget.
This commit is contained in:
parent
7bee939654
commit
fad4a2382a
43 changed files with 269 additions and 43 deletions
|
@ -18,6 +18,7 @@
|
||||||
"enforce-trailing-newline": true
|
"enforce-trailing-newline": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"sort-imports": "warn",
|
||||||
"member-ordering": [
|
"member-ordering": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
|
|
2
dist/lib/layout_de.js
vendored
Normal file
2
dist/lib/layout_de.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
var uhr=function(e){var t={};function r(n){if(t[n])return t[n].exports;var u=t[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)r.d(n,u,function(t){return e[t]}.bind(null,u));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}({4:function(e,t,r){"use strict";r.r(t),r.d(t,"Layout_de",function(){return l});var n={4:[8,9,10,11]},u={4:[1,2,3]},o={5:[1,2,3,4]},i={1:[8,9,10,11]},f={2:[1,2,3,4]},c={2:[5,6,7,8,9,10,11]},l={code:"de",hours:{"0,12":{9:[7,8,9,10,11]},"1,13":{6:[1,2,3,4]},"2,14":{6:[8,9,10,11]},"3,15":{7:[1,2,3,4]},"4,16":{7:[8,9,10,11]},"5,17":{5:[8,9,10,11]},"6,18":{8:[1,2,3,4,5]},"7,19":{9:[1,2,3,4,5,6]},"8,20":{8:[8,9,10,11]},"9,21":{10:[4,5,6,7]},"10,22":{10:[1,2,3,4]},"11,23":{5:[6,7,8]}},letters:["ESKISTAFÜNF","ZEHNZWANZIG","DREIVIERTEL","VORFUNKNACH","HALBAELFÜNF","EINSXAMZWEI","DREIPMJVIER","SECHSNLACHT","SIEBENZWÖLF","ZEHNEUNKUHR"],minutes:{"0,1,2,3,4":{10:[9,10,11]},"5,6,7,8,9":[i,n],"10,11,12,13,14":[f,n],"15,16,17,18,19":[{3:[5,6,7,8,9,10,11]},n],"20,21,22,23,24":[c,n],"25,26,27,28,29":[i,u,o],"30,31,32,33,34":o,"35,36,37,38,39":[i,n,o],"40,41,42,43,44":[c,u],"45,46,47,48,49":{3:[1,2,3,4,5,6,7,8,9,10,11]},"50,51,52,53,54":[f,u],"55,56,57,58,59":[i,u]},permanent:{1:[1,2,4,5,6]},prettyName:"Deutsch",version:2};$.fritteli.uhr.register(l)}});
|
||||||
|
//# sourceMappingURL=layout_de.js.map
|
1
dist/lib/layout_de.js.map
vendored
Normal file
1
dist/lib/layout_de.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/layout_de_ch.js
vendored
Normal file
2
dist/lib/layout_de_ch.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
var uhr=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=2)}({2:function(e,r,t){"use strict";t.r(r),t.d(r,"Layout_de_CH",function(){return a});var n={4:[1,2]},o={3:[9,10,11]},u={4:[4,5,6,7,8]},i={1:[9,10,11]},f={2:[9,10,11]},c={2:[1,2,3,4,5,6]},l={3:[1,2,3,4,5,6]},a={code:"de_CH",hours:{"0,12":{10:[1,2,3,4,5,6]},"1,13":{5:[1,2,3]},"2,14":{5:[4,5,6,7]},"3,15":{5:[9,10,11]},"4,16":{6:[1,2,3,4,5]},"5,17":{6:[6,7,8,9]},"6,18":{7:[1,2,3,4,5,6]},"7,19":{7:[7,8,9,10,11]},"8,20":{8:[1,2,3,4,5]},"9,21":{8:[6,7,8,9]},"10,22":{9:[1,2,3,4]},"11,23":{9:[8,9,10,11]}},letters:["ESKISCHAFÜF","VIERTUBFZÄÄ","ZWÄNZGSIVOR","ABOHAUBIEGE","EISZWÖISDRÜ","VIERIFÜFIQT","SÄCHSISIBNI","ACHTINÜNIEL","ZÄNIERBEUFI","ZWÖUFINAUHR"],minutes:{"5,6,7,8,9":[i,n],"10,11,12,13,14":[f,n],"15,16,17,18,19":[c,n],"20,21,22,23,24":[l,n],"25,26,27,28,29":[i,o,u],"30,31,32,33,34":u,"35,36,37,38,39":[i,n,u],"40,41,42,43,44":[l,o],"45,46,47,48,49":[c,o],"50,51,52,53,54":[f,o],"55,56,57,58,59":[i,o]},permanent:{1:[1,2,4,5,6,7]},prettyName:"Bärndütsch",version:2};$.fritteli.uhr.register(a)}});
|
||||||
|
//# sourceMappingURL=layout_de_ch.js.map
|
1
dist/lib/layout_de_ch.js.map
vendored
Normal file
1
dist/lib/layout_de_ch.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/layout_de_ch_genau.js
vendored
Normal file
2
dist/lib/layout_de_ch_genau.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
var uhr=function(e){var r={};function t(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var u in e)t.d(n,u,function(r){return e[r]}.bind(null,u));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=3)}({3:function(e,r,t){"use strict";t.r(r),t.d(r,"Layout_de_CH_genau",function(){return l});var n={4:[4,5]},u={4:[1,2,3]},o={4:[7,8,9,10,11]},i={1:[9,10,11]},f={2:[9,10,11]},a={2:[1,2,3,4,5,6]},c={3:[1,2,3,4,5,6]},l={code:"de_CH_genau",hours:{"0,12":{10:[1,2,3,4,5,6]},"1,13":{5:[1,2,3]},"2,14":{5:[4,5,6,7]},"3,15":{5:[9,10,11]},"4,16":{6:[1,2,3,4,5]},"5,17":{6:[6,7,8,9]},"6,18":{7:[1,2,3,4,5,6]},"7,19":{7:[7,8,9,10,11]},"8,20":{8:[1,2,3,4,5]},"9,21":{8:[6,7,8,9]},"10,22":{9:[1,2,3,4]},"11,23":{9:[8,9,10,11]}},letters:["ESKISCHAFÜF","VIERTUBFZÄÄ","ZWÄNZGGENAU","VORABOHAUBI","EISZWÖISDRÜ","VIERIFÜFIQT","SÄCHSISIBNI","ACHTINÜNIEL","ZÄNIERBEUFI","ZWÖUFINAUHR"],minutes:{0:{3:[7,8,9,10,11]},"5,6,7,8,9":[i,n],"10,11,12,13,14":[f,n],"15,16,17,18,19":[a,n],"20,21,22,23,24":[c,n],"25,26,27,28,29":[i,u,o],"30,31,32,33,34":o,"35,36,37,38,39":[i,n,o],"40,41,42,43,44":[c,u],"45,46,47,48,49":[a,u],"50,51,52,53,54":[f,u],"55,56,57,58,59":[i,u]},permanent:{1:[1,2,4,5,6,7]},prettyName:"Bärndütsch (genau)",version:2};$.fritteli.uhr.register(l)}});
|
||||||
|
//# sourceMappingURL=layout_de_ch_genau.js.map
|
1
dist/lib/layout_de_ch_genau.js.map
vendored
Normal file
1
dist/lib/layout_de_ch_genau.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/layout_dk.js
vendored
Normal file
2
dist/lib/layout_dk.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
var uhr=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=5)}({5:function(e,r,t){"use strict";t.r(r),t.d(r,"Layout_dk",function(){return d});var n={4:[4,5,6,7,8,9,10,11]},o={5:[8]},u={5:[4,5,6,7]},i={2:[1,2,3]},f={4:[1,2]},l={3:[4,5,6,7,8]},a={2:[4,5,6,7]},c={6:[8,9,10,11]},d={code:"dk",hours:{"0,12":{10:[8,9,10,11]},"1,13":{7:[1,2]},"2,14":{7:[3,4]},"3,15":{7:[5,6,7]},"4,16":{7:[8,9,10,11]},"5,17":{8:[1,2,3]},"6,18":{8:[4,5,6,7]},"7,19":{8:[9,10,11]},"8,20":{9:[1,2,3,4]},"9,21":{9:[6,7]},"10,22":{9:[10,11]},"11,23":{10:[1,2,3,4,5,6]}},letters:["KLOKKENVERO","FEMTYVESKLA","OJEKVARTVAT","TIAMINUTTER","VEMOVERILMF","MONALISHALV","ETTOTREFIRE","FEMSEKSRSYV","OTTERNIMETI","ELLEVEATOLV"],minutes:{"5,6,7,8,9":[i,n,u],"10,11,12,13,14":[f,n,u],"15,16,17,18,19":[l,u],"20,21,22,23,24":[a,n,u],"25,26,27,28,29":[i,n,o,c],"30,31,32,33,34":[c],"35,36,37,38,39":[i,n,u,c],"40,41,42,43,44":[a,n,o],"45,46,47,48,49":[l,o],"50,51,52,53,54":[f,n,o],"55,56,57,58,59":[i,n,o]},permanent:{1:[1,2,3,4,5,6,7,9,10]},prettyName:"Dansk",version:2};$.fritteli.uhr.register(d)}});
|
||||||
|
//# sourceMappingURL=layout_dk.js.map
|
1
dist/lib/layout_dk.js.map
vendored
Normal file
1
dist/lib/layout_dk.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/layout_en.js
vendored
Normal file
2
dist/lib/layout_en.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
var uhr=function(e){var t={};function r(n){if(t[n])return t[n].exports;var u=t[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)r.d(n,u,function(t){return e[t]}.bind(null,u));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}({6:function(e,t,r){"use strict";r.r(t),r.d(t,"Layout_en",function(){return a});var n={4:[10,11]},u={5:[1,2,3,4]},o={3:[7,8,9,10]},i={4:[6,7,8]},f={2:[1,3,4,5,6,7,8,9]},l={3:[1,2,3,4,5,6]},c={3:[1,2,3,4,5,6,7,8,9,10]},a={code:"en",getHour:function(e){var t=e.getHours();return e.getMinutes()>=35?(t+1)%24:t},hours:{"0,12":{9:[6,7,8,9,10,11]},"1,13":{6:[1,2,3]},"2,14":{7:[9,10,11]},"3,15":{6:[7,8,9,10,11]},"4,16":{7:[1,2,3,4]},"5,17":{7:[5,6,7,8]},"6,18":{6:[4,5,6]},"7,19":{9:[1,2,3,4,5]},"8,20":{8:[1,2,3,4,5]},"9,21":{5:[8,9,10,11]},"10,22":{10:[1,2,3]},"11,23":{8:[6,7,8,9,10,11]}},letters:["ITLISBFAMPM","ACQUARTERDC","TWENTYFIVEX","HALFBTENFTO","PASTERUNINE","ONESIXTHREE","FOURFIVETWO","EIGHTELEVEN","SEVENTWELVE","TENSO'CLOCK"],minutes:{"0,1,2,3,4":{10:[5,6,7,8,9,10,11]},"5,6,7,8,9":[o,u],"10,11,12,13,14":[i,u],"15,16,17,18,19":[f,u],"20,21,22,23,24":[l,u],"25,26,27,28,29":[c,u],"30,31,32,33,34":[{4:[1,2,3,4]},u],"35,36,37,38,39":[c,n],"40,41,42,43,44":[l,n],"45,46,47,48,49":[f,n],"50,51,52,53,54":[i,n],"55,56,57,58,59":[o,n]},permanent:{1:[1,2,4,5]},prettyName:"English",version:2};$.fritteli.uhr.register(a)}});
|
||||||
|
//# sourceMappingURL=layout_en.js.map
|
1
dist/lib/layout_en.js.map
vendored
Normal file
1
dist/lib/layout_en.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/layout_es.js
vendored
Normal file
2
dist/lib/layout_es.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
var uhr=function(e){var t={};function r(n){if(t[n])return t[n].exports;var u=t[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)r.d(n,u,function(t){return e[t]}.bind(null,u));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}({7:function(e,t,r){"use strict";r.r(t),r.d(t,"Layout_es",function(){return s});var n={1:[2,3,4,6,7,8]},u={7:[6]},o={7:[7,8,9,10,11]},i={9:[7,8,9,10,11]},f={8:[8,9,10,11]},l={10:[6,7,8,9,10,11]},a={8:[2,3,4,5,6,7]},c={9:[1,2,3,4,5,6,7,8,9,10,11]},s={code:"es",getHour:function(e){var t=e.getHours();return e.getMinutes()>=35?(t+1)%24:t},hours:{"0,12":[n,{7:[1,2,3,4]}],"1,13":[{1:[1,2,6,7]},{1:[9,10,11]}],"2,14":[n,{2:[1,2,3]}],"3,15":[n,{2:[5,6,7,8]}],"4,16":[n,{3:[1,2,3,4,5,6]}],"5,17":[n,{3:[7,8,9,10,11]}],"6,18":[n,{4:[1,2,3,4]}],"7,19":[n,{4:[6,7,8,9,10]}],"8,20":[n,{5:[1,2,3,4]}],"9,21":[n,{5:[5,6,7,8,9]}],"10,22":[n,{6:[3,4,5,6]}],"11,23":[n,{6:[8,9,10,11]}]},letters:["ESONELASUNA","DOSITRESORE","CUATROCINCO","SEISASIETEN","OCHONUEVEYO","LADIEZSONCE","DOCELYMENOS","OVEINTEDIEZ","VEINTICINCO","MEDIACUARTO"],minutes:{"5,6,7,8,9":[u,i],"10,11,12,13,14":[u,f],"15,16,17,18,19":[u,l],"20,21,22,23,24":[u,a],"25,26,27,28,29":[u,c],"30,31,32,33,34":[u,{10:[1,2,3,4,5]}],"35,36,37,38,39":[o,c],"40,41,42,43,44":[o,a],"45,46,47,48,49":[o,l],"50,51,52,53,54":[o,f],"55,56,57,58,59":[o,i]},permanent:null,prettyName:"Español",version:2};$.fritteli.uhr.register(s)}});
|
||||||
|
//# sourceMappingURL=layout_es.js.map
|
1
dist/lib/layout_es.js.map
vendored
Normal file
1
dist/lib/layout_es.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/layout_fr.js
vendored
Normal file
2
dist/lib/layout_fr.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
var uhr=function(e){var r={};function t(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var u in e)t.d(n,u,function(r){return e[r]}.bind(null,u));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=8)}({8:function(e,r,t){"use strict";t.r(r),t.d(r,"Layout_fr",function(){return s});var n={8:[1,2]},u={7:[1,2,3,4,5]},o={6:[6,7,8,9,10,11]},i={9:[7,8,9,10]},f={7:[9,10,11]},a={8:[4,5,6,7,8]},c={9:[1,2,3,4,5]},l={9:[1,2,3,4,5,6,7,8,9,10]},s={code:"fr",getHour:function(e){var r=e.getHours();return e.getMinutes()>=35?(r+1)%24:r},hours:{0:{5:[6,7,8,9,10,11]},"1,13":[{3:[5,6,7]},o],"2,14":[{1:[8,9,10,11]},o],"3,15":[{2:[7,8,9,10,11]},o],"4,16":[{2:[1,2,3,4,5,6]},o],"5,17":[{4:[8,9,10,11]},o],"6,18":[{4:[5,6,7]},o],"7,19":[{3:[8,9,10,11]},o],"8,20":[{4:[1,2,3,4]},o],"9,21":[{3:[1,2,3,4]},o],"10,22":[{5:[3,4,5]},o],"11,23":[{6:[1,2,3,4]},o],12:{5:[1,2,3,4]}},letters:["ILNESTODEUX","QUATRETROIS","NEUFUNESEPT","HUITSIXCINQ","MIDIXMINUIT","ONZERHEURES","MOINSOLEDIX","ETRQUARTPMD","VINGT-CINQU","ETSDEMIEPAM"],minutes:{"5,6,7,8,9":i,"10,11,12,13,14":f,"15,16,17,18,19":[n,a],"20,21,22,23,24":c,"25,26,27,28,29":l,"30,31,32,33,34":[n,{10:[4,5,6,7,8]}],"35,36,37,38,39":[u,l],"40,41,42,43,44":[u,c],"45,46,47,48,49":[u,{7:[7,8]},a],"50,51,52,53,54":[u,f],"55,56,57,58,59":[u,i]},permanent:{1:[1,2,4,5,6]},prettyName:"Français",version:2};$.fritteli.uhr.register(s)}});
|
||||||
|
//# sourceMappingURL=layout_fr.js.map
|
1
dist/lib/layout_fr.js.map
vendored
Normal file
1
dist/lib/layout_fr.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/layout_it.js
vendored
Normal file
2
dist/lib/layout_it.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
var uhr=function(e){var t={};function r(n){if(t[n])return t[n].exports;var u=t[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)r.d(n,u,function(t){return e[t]}.bind(null,u));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=9)}({9:function(e,t,r){"use strict";r.r(t),r.d(t,"Layout_it",function(){return s});var n={1:[1,2,3,4,6,7]},u={8:[1]},o={7:[8,9,10,11]},i={9:[6,7,8,9,10,11]},f={10:[1,2,3,4,5]},l={8:[3,4,6,7,8,9,10,11]},a={9:[1,2,3,4,5]},c={9:[1,2,3,4,5,6,7,8,9,10,11]},s={code:"it",getHour:function(e){var t=e.getHours();return e.getMinutes()>=35?(t+1)%24:t},hours:{"0,12":[n,{5:[1,2,3,4,5,6]}],"1,13":[{2:[1,3,4]},{2:[5,6,7]}],"2,14":[n,{2:[9,10,11]}],"3,15":[n,{3:[1,2,3]}],"4,16":[n,{6:[1,2,3,4,5,6,7]}],"5,17":[n,{7:[1,2,3,4,5,6]}],"6,18":[n,{6:[9,10,11]}],"7,19":[n,{5:[7,8,9,10,11]}],"8,20":[n,{3:[4,5,6,7]}],"9,21":[n,{3:[8,9,10,11]}],"10,22":[n,{4:[1,2,3,4,5]}],"11,23":[n,{4:[6,7,8,9,10,11]}]},letters:["SONORLEBORE","ÈRL'UNASDUE","TREOTTONOVE","DIECIUNDICI","DODICISETTE","QUATTROCSEI","CINQUEAMENO","ECUNOQUARTO","VENTICINQUE","DIECIPMEZZA"],minutes:{"5,6,7,8,9":[u,i],"10,11,12,13,14":[u,f],"15,16,17,18,19":[u,l],"20,21,22,23,24":[u,a],"25,26,27,28,29":[u,c],"30,31,32,33,34":[u,{10:[7,8,9,10,11]}],"35,36,37,38,39":[o,c],"40,41,42,43,44":[o,a],"45,46,47,48,49":[o,l],"50,51,52,53,54":[o,f],"55,56,57,58,59":[o,i]},permanent:null,prettyName:"Italiano",version:2};$.fritteli.uhr.register(s)}});
|
||||||
|
//# sourceMappingURL=layout_it.js.map
|
1
dist/lib/layout_it.js.map
vendored
Normal file
1
dist/lib/layout_it.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/layout_nl.js
vendored
Normal file
2
dist/lib/layout_nl.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
var uhr=function(e){var r={};function t(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var u in e)t.d(n,u,function(r){return e[r]}.bind(null,u));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=10)}({10:function(e,r,t){"use strict";t.r(r),t.d(r,"Layout_nl",function(){return a});var n={3:[1,2,3,4]},u={2:[8,9,10,11]},o={4:[1,2,3,4]},i={1:[8,9,10,11]},f={2:[1,2,3,4]},l={3:[7,8,9,10,11]},a={code:"nl",getHour:function(e){var r=e.getHours();return e.getMinutes()>=20?(r+1)%24:r},hours:{"0,12":{10:[1,2,3,4,5,6]},"1,13":{5:[8,9,10]},"2,14":{6:[1,2,3,4]},"3,15":{6:[8,9,10,11]},"4,16":{7:[1,2,3,4]},"5,17":{7:[5,6,7,8]},"6,18":{7:[9,10,11]},"7,19":{8:[1,2,3,4,5]},"8,20":{9:[1,2,3,4]},"9,21":{8:[7,8,9,10,11]},"10,22":{9:[5,6,7,8]},"11,23":{9:[9,10,11]}},letters:["HETKISAVIJF","TIENBTZVOOR","OVERMEKWART","HALFSPWOVER","VOORTHGEENS","TWEEPVCDRIE","VIERVIJFZES","ZEVENONEGEN","ACHTTIENELF","TWAALFBFUUR"],minutes:{"0,1,2,3,4":{10:[9,10,11]},"5,6,7,8,9":[i,n],"10,11,12,13,14":[f,n],"15,16,17,18,19":[l,{4:[8,9,10,11]}],"20,21,22,23,24":[f,u,o],"25,26,27,28,29":[i,u,o],"30,31,32,33,34":o,"35,36,37,38,39":[i,n,o],"40,41,42,43,44":[f,n,o],"45,46,47,48,49":[l,{5:[1,2,3,4]}],"50,51,52,53,54":[f,u],"55,56,57,58,59":[i,u]},permanent:{1:[1,2,3,5,6]},prettyName:"Nederlands",version:2};$.fritteli.uhr.register(a)}});
|
||||||
|
//# sourceMappingURL=layout_nl.js.map
|
1
dist/lib/layout_nl.js.map
vendored
Normal file
1
dist/lib/layout_nl.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/layout_pt.js
vendored
Normal file
2
dist/lib/layout_pt.js
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
var uhr=function(e){var t={};function r(n){if(t[n])return t[n].exports;var u=t[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)r.d(n,u,function(t){return e[t]}.bind(null,u));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=11)}({11:function(e,t,r){"use strict";r.r(t),r.d(t,"Layout_pt",function(){return p});var n={1:[1]},u={1:[2,3,4]},o={7:[8]},i={10:[5]},f={7:[7,8,9,10,11]},l={10:[7,8,9,10,11]},c={10:[1,2,3]},a={9:[1,2,4,5,6,7,8,9]},s={8:[1,2,3,4,5]},p={code:"pt",getHour:function(e){var t=e.getHours();return e.getMinutes()>=35?(t+1)%24:t},hours:{0:[n,{6:[2,3,4,5,7,8,9,10,11]}],12:[n,{2:[1,2,3,4,6,7,8]}],"1,13":[n,{1:[5,6,7]}],"2,14":[u,{3:[1,2,3,4]}],"3,15":[u,{1:[8,9,10,11]}],"4,16":[u,{4:[1,2,3,4,5,6]}],"5,17":[u,{5:[1,2,3,4,5]}],"6,18":[u,{3:[4,5,6,7]}],"7,19":[u,{3:[7,8,9,10]}],"8,20":[u,{5:[5,6,7,8]}],"9,21":[u,{4:[8,9,10,11]}],"10,22":[u,{2:[9,10,11]}],"11,23":[u,{5:[8,9,10,11]}]},letters:["ÉSÃOUMATRÊS","MEIOLDIADEZ","DUASEISETEY","QUATROHNOVE","CINCOITONZE","ZMEIALNOITE","HORASYMENOS","VINTECAMEIA","UMVQUARTOPM","DEZOEYCINCO"],minutes:{"5,6,7,8,9":[o,l],"10,11,12,13,14":[o,c],"15,16,17,18,19":[o,a],"20,21,22,23,24":[o,s],"25,26,27,28,29":[o,s,i,l],"30,31,32,33,34":[o,{8:[8,9,10,11]}],"35,36,37,38,39":[f,s,i,l],"40,41,42,43,44":[f,s],"45,46,47,48,49":[f,a],"50,51,52,53,54":[f,c],"55,56,57,58,59":[f,l]},permanent:null,prettyName:"Português",version:2};$.fritteli.uhr.register(p)}});
|
||||||
|
//# sourceMappingURL=layout_pt.js.map
|
1
dist/lib/layout_pt.js.map
vendored
Normal file
1
dist/lib/layout_pt.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/uhr.bundle.js
vendored
Normal file
2
dist/lib/uhr.bundle.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/lib/uhr.bundle.js.map
vendored
Normal file
1
dist/lib/uhr.bundle.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/lib/uhr.js
vendored
Normal file
2
dist/lib/uhr.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/lib/uhr.js.map
vendored
Normal file
1
dist/lib/uhr.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/uhr.js
vendored
2
dist/uhr.js
vendored
File diff suppressed because one or more lines are too long
1
dist/uhr.js.map
vendored
1
dist/uhr.js.map
vendored
File diff suppressed because one or more lines are too long
12
index.html
12
index.html
|
@ -46,7 +46,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30="
|
integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30="
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
|
||||||
<script type="text/javascript" src="dist/uhr.js"></script>
|
<script type="text/javascript" src="dist/lib/uhr.bundle.js"></script>
|
||||||
|
<!--<script type="text/javascript" src="dist/lib/layout_de_ch.js"></script>-->
|
||||||
|
<!--<script type="text/javascript" src="dist/lib/layout_de_ch_genau.js"></script>-->
|
||||||
|
<!--<script type="text/javascript" src="dist/lib/layout_de.js"></script>-->
|
||||||
|
<!--<script type="text/javascript" src="dist/lib/layout_dk.js"></script>-->
|
||||||
|
<!--<script type="text/javascript" src="dist/lib/layout_en.js"></script>-->
|
||||||
|
<!--<script type="text/javascript" src="dist/lib/layout_es.js"></script>-->
|
||||||
|
<!--<script type="text/javascript" src="dist/lib/layout_fr.js"></script>-->
|
||||||
|
<!--<script type="text/javascript" src="dist/lib/layout_it.js"></script>-->
|
||||||
|
<!--<script type="text/javascript" src="dist/lib/layout_nl.js"></script>-->
|
||||||
|
<!--<script type="text/javascript" src="dist/lib/layout_pt.js"></script>-->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function go(url) {
|
function go(url) {
|
||||||
window.location = url;
|
window.location = url;
|
||||||
|
|
|
@ -32,7 +32,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30="
|
integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30="
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
|
||||||
<script type="text/javascript" src="../dist/uhr.js"></script>
|
<script type="text/javascript" src="../dist/lib/uhr.bundle.js"></script>
|
||||||
|
<!--<script type="text/javascript" src="../dist/lib/layout_de_ch.js"></script>-->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function go(url) {
|
function go(url) {
|
||||||
window.location = url;
|
window.location = url;
|
||||||
|
|
40
src/bundle.ts
Normal file
40
src/bundle.ts
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
/*
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import * as uhr from './index';
|
||||||
|
import {Layout_de_CH} from './layout/layout-de_ch';
|
||||||
|
import {Layout_de_CH_genau} from './layout/layout-de_ch_genau';
|
||||||
|
import {Layout_de} from './layout/layout-de';
|
||||||
|
import {Layout_dk} from './layout/layout-dk';
|
||||||
|
import {Layout_en} from './layout/layout-en';
|
||||||
|
import {Layout_es} from './layout/layout-es';
|
||||||
|
import {Layout_fr} from './layout/layout-fr';
|
||||||
|
import {Layout_it} from './layout/layout-it';
|
||||||
|
import {Layout_nl} from './layout/layout-nl';
|
||||||
|
import {Layout_pt} from './layout/layout-pt';
|
||||||
|
|
||||||
|
// We just need to reference all required files at least once, so that the tree-shaker won't remove them from
|
||||||
|
// the bundle.
|
||||||
|
let a = uhr;
|
||||||
|
a = Layout_de_CH;
|
||||||
|
a = Layout_de_CH_genau;
|
||||||
|
a = Layout_de;
|
||||||
|
a = Layout_dk;
|
||||||
|
a = Layout_en;
|
||||||
|
a = Layout_es;
|
||||||
|
a = Layout_fr;
|
||||||
|
a = Layout_it;
|
||||||
|
a = Layout_nl;
|
||||||
|
a = Layout_pt;
|
|
@ -54,10 +54,11 @@ export class Globals {
|
||||||
static registerLayout(layout: Layout): void {
|
static registerLayout(layout: Layout): void {
|
||||||
const available = !Globals.layouts.some(element => {
|
const available = !Globals.layouts.some(element => {
|
||||||
if (layout.code === element.code) {
|
if (layout.code === element.code) {
|
||||||
console.error(
|
if (layout.prettyName !== element.prettyName) {
|
||||||
`Error: Language code '${layout.code}' cannot be registered for layout '${layout.prettyName}'
|
console.error(
|
||||||
because it is already registered for layout '${element.prettyName}'!`
|
`Error: Language code '${layout.code}' cannot be registered for layout '${layout.prettyName}' because it is already registered for layout '${element.prettyName}'!`
|
||||||
);
|
);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
22
src/index.ts
22
src/index.ts
|
@ -18,32 +18,10 @@ import {autodetectThemes} from './theme-autodetector';
|
||||||
import {Uhr} from './uhr';
|
import {Uhr} from './uhr';
|
||||||
import {WidgetPrototype} from './widget/widget-prototype';
|
import {WidgetPrototype} from './widget/widget-prototype';
|
||||||
import {Layout} from './domain/layout';
|
import {Layout} from './domain/layout';
|
||||||
import {Layout_de_CH} from './layout/layout-de_ch';
|
|
||||||
import {Layout_de_CH_genau} from './layout/layout-de_ch_genau';
|
|
||||||
import {Layout_de} from './layout/layout-de';
|
|
||||||
import {Layout_dk} from './layout/layout-dk';
|
|
||||||
import {Layout_en} from './layout/layout-en';
|
|
||||||
import {Layout_es} from './layout/layout-es';
|
|
||||||
import {Layout_fr} from './layout/layout-fr';
|
|
||||||
import {Layout_it} from './layout/layout-it';
|
|
||||||
import {Layout_nl} from './layout/layout-nl';
|
|
||||||
import {Layout_pt} from './layout/layout-pt';
|
|
||||||
|
|
||||||
// First things first: discover included themes and register them
|
// First things first: discover included themes and register them
|
||||||
autodetectThemes();
|
autodetectThemes();
|
||||||
|
|
||||||
// Now register some layouts
|
|
||||||
Globals.registerLayout(Layout_de_CH);
|
|
||||||
Globals.registerLayout(Layout_de_CH_genau);
|
|
||||||
Globals.registerLayout(Layout_de);
|
|
||||||
Globals.registerLayout(Layout_dk);
|
|
||||||
Globals.registerLayout(Layout_en);
|
|
||||||
Globals.registerLayout(Layout_es);
|
|
||||||
Globals.registerLayout(Layout_fr);
|
|
||||||
Globals.registerLayout(Layout_it);
|
|
||||||
Globals.registerLayout(Layout_nl);
|
|
||||||
Globals.registerLayout(Layout_pt);
|
|
||||||
|
|
||||||
$.widget('fritteli.uhr', {
|
$.widget('fritteli.uhr', {
|
||||||
options: {
|
options: {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
|
|
@ -72,3 +72,18 @@ export const Layout_de: Layout = {
|
||||||
prettyName: 'Deutsch',
|
prettyName: 'Deutsch',
|
||||||
version: 2
|
version: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.fritteli.uhr.register(Layout_de);
|
||||||
|
|
||||||
|
declare namespace $ {
|
||||||
|
const fritteli: Fritteli.Fritteli;
|
||||||
|
}
|
||||||
|
declare namespace Fritteli {
|
||||||
|
interface Fritteli {
|
||||||
|
uhr: Uhr;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uhr {
|
||||||
|
register: (layout: Layout) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -69,3 +69,18 @@ export const Layout_de_CH: Layout = {
|
||||||
prettyName: 'Bärndütsch',
|
prettyName: 'Bärndütsch',
|
||||||
version: 2
|
version: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.fritteli.uhr.register(Layout_de_CH);
|
||||||
|
|
||||||
|
declare namespace $ {
|
||||||
|
const fritteli: Fritteli.Fritteli;
|
||||||
|
}
|
||||||
|
declare namespace Fritteli {
|
||||||
|
interface Fritteli {
|
||||||
|
uhr: Uhr;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uhr {
|
||||||
|
register: (layout: Layout) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -71,3 +71,18 @@ export const Layout_de_CH_genau: Layout = {
|
||||||
prettyName: 'Bärndütsch (genau)',
|
prettyName: 'Bärndütsch (genau)',
|
||||||
version: 2
|
version: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.fritteli.uhr.register(Layout_de_CH_genau);
|
||||||
|
|
||||||
|
declare namespace $ {
|
||||||
|
const fritteli: Fritteli.Fritteli;
|
||||||
|
}
|
||||||
|
declare namespace Fritteli {
|
||||||
|
interface Fritteli {
|
||||||
|
uhr: Uhr;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uhr {
|
||||||
|
register: (layout: Layout) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -70,3 +70,18 @@ export const Layout_dk: Layout = {
|
||||||
prettyName: 'Dansk',
|
prettyName: 'Dansk',
|
||||||
version: 2
|
version: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.fritteli.uhr.register(Layout_dk);
|
||||||
|
|
||||||
|
declare namespace $ {
|
||||||
|
const fritteli: Fritteli.Fritteli;
|
||||||
|
}
|
||||||
|
declare namespace Fritteli {
|
||||||
|
interface Fritteli {
|
||||||
|
uhr: Uhr;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uhr {
|
||||||
|
register: (layout: Layout) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -80,3 +80,18 @@ export const Layout_en: Layout = {
|
||||||
prettyName: 'English',
|
prettyName: 'English',
|
||||||
version: 2
|
version: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.fritteli.uhr.register(Layout_en);
|
||||||
|
|
||||||
|
declare namespace $ {
|
||||||
|
const fritteli: Fritteli.Fritteli;
|
||||||
|
}
|
||||||
|
declare namespace Fritteli {
|
||||||
|
interface Fritteli {
|
||||||
|
uhr: Uhr;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uhr {
|
||||||
|
register: (layout: Layout) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -79,3 +79,18 @@ export const Layout_es: Layout = {
|
||||||
prettyName: 'Español',
|
prettyName: 'Español',
|
||||||
version: 2
|
version: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.fritteli.uhr.register(Layout_es);
|
||||||
|
|
||||||
|
declare namespace $ {
|
||||||
|
const fritteli: Fritteli.Fritteli;
|
||||||
|
}
|
||||||
|
declare namespace Fritteli {
|
||||||
|
interface Fritteli {
|
||||||
|
uhr: Uhr;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uhr {
|
||||||
|
register: (layout: Layout) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -113,3 +113,18 @@ export const Layout_fr: Layout = {
|
||||||
prettyName: 'Français',
|
prettyName: 'Français',
|
||||||
version: 2
|
version: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.fritteli.uhr.register(Layout_fr);
|
||||||
|
|
||||||
|
declare namespace $ {
|
||||||
|
const fritteli: Fritteli.Fritteli;
|
||||||
|
}
|
||||||
|
declare namespace Fritteli {
|
||||||
|
interface Fritteli {
|
||||||
|
uhr: Uhr;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uhr {
|
||||||
|
register: (layout: Layout) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -78,3 +78,18 @@ export const Layout_it: Layout = {
|
||||||
prettyName: 'Italiano',
|
prettyName: 'Italiano',
|
||||||
version: 2
|
version: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.fritteli.uhr.register(Layout_it);
|
||||||
|
|
||||||
|
declare namespace $ {
|
||||||
|
const fritteli: Fritteli.Fritteli;
|
||||||
|
}
|
||||||
|
declare namespace Fritteli {
|
||||||
|
interface Fritteli {
|
||||||
|
uhr: Uhr;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uhr {
|
||||||
|
register: (layout: Layout) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -79,3 +79,18 @@ export const Layout_nl: Layout = {
|
||||||
prettyName: 'Nederlands',
|
prettyName: 'Nederlands',
|
||||||
version: 2
|
version: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.fritteli.uhr.register(Layout_nl);
|
||||||
|
|
||||||
|
declare namespace $ {
|
||||||
|
const fritteli: Fritteli.Fritteli;
|
||||||
|
}
|
||||||
|
declare namespace Fritteli {
|
||||||
|
interface Fritteli {
|
||||||
|
uhr: Uhr;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uhr {
|
||||||
|
register: (layout: Layout) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -79,3 +79,18 @@ export const Layout_pt: Layout = {
|
||||||
prettyName: 'Português',
|
prettyName: 'Português',
|
||||||
version: 2
|
version: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.fritteli.uhr.register(Layout_pt);
|
||||||
|
|
||||||
|
declare namespace $ {
|
||||||
|
const fritteli: Fritteli.Fritteli;
|
||||||
|
}
|
||||||
|
declare namespace Fritteli {
|
||||||
|
interface Fritteli {
|
||||||
|
uhr: Uhr;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uhr {
|
||||||
|
register: (layout: Layout) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -4,6 +4,17 @@ const CleanWebpackPlugin = require('clean-webpack-plugin');
|
||||||
module.exports = (env, argv) => ({
|
module.exports = (env, argv) => ({
|
||||||
entry: {
|
entry: {
|
||||||
uhr: './src/index.ts',
|
uhr: './src/index.ts',
|
||||||
|
bundle: './src/bundle.ts',
|
||||||
|
layout_de: require.resolve('./src/layout/layout-de.ts'),
|
||||||
|
layout_de_ch: require.resolve('./src/layout/layout-de_ch.ts'),
|
||||||
|
layout_de_ch_genau: require.resolve('./src/layout/layout-de_ch_genau.ts'),
|
||||||
|
layout_dk: require.resolve('./src/layout/layout-dk.ts'),
|
||||||
|
layout_en: require.resolve('./src/layout/layout-en.ts'),
|
||||||
|
layout_es: require.resolve('./src/layout/layout-es.ts'),
|
||||||
|
layout_fr: require.resolve('./src/layout/layout-fr.ts'),
|
||||||
|
layout_it: require.resolve('./src/layout/layout-it.ts'),
|
||||||
|
layout_nl: require.resolve('./src/layout/layout-nl.ts'),
|
||||||
|
layout_pt: require.resolve('./src/layout/layout-pt.ts'),
|
||||||
style_main: require.resolve('./resources/styles/uhr.scss'),
|
style_main: require.resolve('./resources/styles/uhr.scss'),
|
||||||
style_black: require.resolve('./css/uhr-black.css'),
|
style_black: require.resolve('./css/uhr-black.css'),
|
||||||
style_blue: require.resolve('./css/uhr-blue.css'),
|
style_blue: require.resolve('./css/uhr-blue.css'),
|
||||||
|
@ -12,7 +23,6 @@ module.exports = (env, argv) => ({
|
||||||
style_red: require.resolve('./css/uhr-red.css'),
|
style_red: require.resolve('./css/uhr-red.css'),
|
||||||
style_white: require.resolve('./css/uhr-white.css'),
|
style_white: require.resolve('./css/uhr-white.css'),
|
||||||
style_yellow: require.resolve('./css/uhr-yellow.css')
|
style_yellow: require.resolve('./css/uhr-yellow.css')
|
||||||
|
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
@ -63,15 +73,6 @@ module.exports = (env, argv) => ({
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// test: /\.s?css$/,
|
|
||||||
// use: [
|
|
||||||
// // fallback to style-loader in development
|
|
||||||
// process.env.NODE_ENV !== 'production' ? 'style-loader' : MiniCssExtractPlugin.loader,
|
|
||||||
// 'css-loader',
|
|
||||||
// 'sass-loader'
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
test: /\.tsx?$/,
|
test: /\.tsx?$/,
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
|
@ -81,7 +82,7 @@ module.exports = (env, argv) => ({
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new CleanWebpackPlugin({
|
new CleanWebpackPlugin({
|
||||||
cleanAfterEveryBuildPatterns: ['**/*.deleteme'],
|
cleanAfterEveryBuildPatterns: ['deleteme/'],
|
||||||
protectWebpackAssets: false
|
protectWebpackAssets: false
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
@ -89,7 +90,18 @@ module.exports = (env, argv) => ({
|
||||||
extensions: ['.tsx', '.ts', '.js']
|
extensions: ['.tsx', '.ts', '.js']
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: (chunkData) => chunkData.chunk.name === 'uhr' ? 'uhr.js' : '[name].deleteme',
|
filename: (chunkData) => {
|
||||||
|
if (chunkData.chunk.name === 'uhr') {
|
||||||
|
return 'lib/uhr.js';
|
||||||
|
}
|
||||||
|
if (chunkData.chunk.name === 'bundle') {
|
||||||
|
return 'lib/uhr.bundle.js';
|
||||||
|
}
|
||||||
|
if (chunkData.chunk.name.startsWith('layout')) {
|
||||||
|
return 'lib/[name].js';
|
||||||
|
}
|
||||||
|
return 'deleteme/[name]';
|
||||||
|
},
|
||||||
library: 'uhr',
|
library: 'uhr',
|
||||||
path: path.resolve(__dirname, 'dist')
|
path: path.resolve(__dirname, 'dist')
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue