This commit is contained in:
parent
a57c97e1a1
commit
40eef0fa04
13 changed files with 109 additions and 109 deletions
|
@ -14,27 +14,27 @@
|
|||
*/
|
||||
|
||||
import * as uhr from './index';
|
||||
import {Layout_de} from './layout/layout-de';
|
||||
import {Layout_de_CH} from './layout/layout-de_ch';
|
||||
import {Layout_de_CH_genau} from './layout/layout-de_ch_genau';
|
||||
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';
|
||||
import {LayoutDe} from './layout/layout-de';
|
||||
import {LayoutDeCh} from './layout/layout-de_ch';
|
||||
import {LayoutDeChGenau} from './layout/layout-de_ch_genau';
|
||||
import {LayoutDk} from './layout/layout-dk';
|
||||
import {LayoutEn} from './layout/layout-en';
|
||||
import {LayoutEs} from './layout/layout-es';
|
||||
import {LayoutFr} from './layout/layout-fr';
|
||||
import {LayoutIt} from './layout/layout-it';
|
||||
import {LayoutNl} from './layout/layout-nl';
|
||||
import {LayoutPt} 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;
|
||||
a = LayoutDeCh;
|
||||
a = LayoutDeChGenau;
|
||||
a = LayoutDe;
|
||||
a = LayoutDk;
|
||||
a = LayoutEn;
|
||||
a = LayoutEs;
|
||||
a = LayoutFr;
|
||||
a = LayoutIt;
|
||||
a = LayoutNl;
|
||||
a = LayoutPt;
|
||||
|
|
22
src/index.ts
22
src/index.ts
|
@ -49,38 +49,38 @@ const widgetPrototype: WidgetPrototype = {
|
|||
mode: 'normal'
|
||||
},
|
||||
start: function (): void {
|
||||
this.__fritteli_uhr_instance.start();
|
||||
this._fritteliUhrInstance.start();
|
||||
},
|
||||
stop: function (): void {
|
||||
this.__fritteli_uhr_instance.stop();
|
||||
this._fritteliUhrInstance.stop();
|
||||
},
|
||||
toggle: function (): void {
|
||||
this.__fritteli_uhr_instance.toggle();
|
||||
this._fritteliUhrInstance.toggle();
|
||||
},
|
||||
language: function (key: string): void {
|
||||
this.__fritteli_uhr_instance.setLayout(key);
|
||||
this._fritteliUhrInstance.setLayout(key);
|
||||
},
|
||||
theme: function (styleClass: string): void {
|
||||
this.__fritteli_uhr_instance.setTheme(styleClass);
|
||||
this._fritteliUhrInstance.setTheme(styleClass);
|
||||
},
|
||||
time: function (time: Date): void {
|
||||
this.__fritteli_uhr_instance.setTime(time);
|
||||
this._fritteliUhrInstance.setTime(time);
|
||||
},
|
||||
mode: function (mode: string): void {
|
||||
this.__fritteli_uhr_instance.setMode(mode);
|
||||
this._fritteliUhrInstance.setMode(mode);
|
||||
},
|
||||
width: function (width: string): void {
|
||||
this.__fritteli_uhr_instance.setWidth(width);
|
||||
this._fritteliUhrInstance.setWidth(width);
|
||||
},
|
||||
// constructor method
|
||||
_create: function (): void {
|
||||
this.__fritteli_uhr_instance = new Uhr(this);
|
||||
this._fritteliUhrInstance = new Uhr(this);
|
||||
},
|
||||
// destructor method
|
||||
_destroy: function (): void {
|
||||
this.__fritteli_uhr_instance.destroy();
|
||||
this._fritteliUhrInstance.destroy();
|
||||
},
|
||||
__fritteli_uhr_instance: null
|
||||
_fritteliUhrInstance: null
|
||||
};
|
||||
$.widget('fritteli.uhr', widgetPrototype);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
import {Layout, WordDefinition} from '../domain/layout';
|
||||
|
||||
const es_ist: WordDefinition = {1: [1, 2, 4, 5, 6]};
|
||||
const esIst: WordDefinition = {1: [1, 2, 4, 5, 6]};
|
||||
const uhr: WordDefinition = {10: [9, 10, 11]};
|
||||
const nach: WordDefinition = {4: [8, 9, 10, 11]};
|
||||
const vor: WordDefinition = {4: [1, 2, 3]};
|
||||
|
@ -26,7 +26,7 @@ const viertel: WordDefinition = {3: [5, 6, 7, 8, 9, 10, 11]};
|
|||
const zwanzig: WordDefinition = {2: [5, 6, 7, 8, 9, 10, 11]};
|
||||
const dreiviertel: WordDefinition = {3: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]};
|
||||
|
||||
export const Layout_de: Layout = {
|
||||
export const LayoutDe: Layout = {
|
||||
code: 'de',
|
||||
hours: {
|
||||
'0,12': {9: [7, 8, 9, 10, 11]},
|
||||
|
@ -68,7 +68,7 @@ export const Layout_de: Layout = {
|
|||
'50,51,52,53,54': [zehn, vor],
|
||||
'55,56,57,58,59': [fuenf, vor]
|
||||
},
|
||||
permanent: es_ist,
|
||||
permanent: esIst,
|
||||
prettyName: 'Deutsch',
|
||||
version: 2
|
||||
};
|
||||
|
@ -86,4 +86,4 @@ declare namespace $ {
|
|||
const fritteli: Fritteli.Fritteli;
|
||||
}
|
||||
|
||||
$.fritteli.uhr.register(Layout_de);
|
||||
$.fritteli.uhr.register(LayoutDe);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
import {Layout, WordDefinition} from '../domain/layout';
|
||||
|
||||
const es_isch: WordDefinition = {1: [1, 2, 4, 5, 6, 7]};
|
||||
const esIsch: WordDefinition = {1: [1, 2, 4, 5, 6, 7]};
|
||||
const ab: WordDefinition = {4: [1, 2]};
|
||||
const vor: WordDefinition = {3: [9, 10, 11]};
|
||||
const haubi: WordDefinition = {4: [4, 5, 6, 7, 8]};
|
||||
|
@ -24,7 +24,7 @@ const zae: WordDefinition = {2: [9, 10, 11]};
|
|||
const viertu: WordDefinition = {2: [1, 2, 3, 4, 5, 6]};
|
||||
const zwaenzg: WordDefinition = {3: [1, 2, 3, 4, 5, 6]};
|
||||
|
||||
export const Layout_de_CH: Layout = {
|
||||
export const LayoutDeCh: Layout = {
|
||||
code: 'de_CH',
|
||||
hours: {
|
||||
'0,12': {10: [1, 2, 3, 4, 5, 6]},
|
||||
|
@ -65,7 +65,7 @@ export const Layout_de_CH: Layout = {
|
|||
'50,51,52,53,54': [zae, vor],
|
||||
'55,56,57,58,59': [fuef, vor]
|
||||
},
|
||||
permanent: es_isch,
|
||||
permanent: esIsch,
|
||||
prettyName: 'Bärndütsch',
|
||||
version: 2
|
||||
};
|
||||
|
@ -83,4 +83,4 @@ declare namespace $ {
|
|||
const fritteli: Fritteli.Fritteli;
|
||||
}
|
||||
|
||||
$.fritteli.uhr.register(Layout_de_CH);
|
||||
$.fritteli.uhr.register(LayoutDeCh);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
import {Layout, WordDefinition} from '../domain/layout';
|
||||
|
||||
const es_isch: WordDefinition = {1: [1, 2, 4, 5, 6, 7]};
|
||||
const esIsch: WordDefinition = {1: [1, 2, 4, 5, 6, 7]};
|
||||
const genau: WordDefinition = {3: [7, 8, 9, 10, 11]};
|
||||
const ab: WordDefinition = {4: [4, 5]};
|
||||
const vor: WordDefinition = {4: [1, 2, 3]};
|
||||
|
@ -25,7 +25,7 @@ const zae: WordDefinition = {2: [9, 10, 11]};
|
|||
const viertu: WordDefinition = {2: [1, 2, 3, 4, 5, 6]};
|
||||
const zwaenzg: WordDefinition = {3: [1, 2, 3, 4, 5, 6]};
|
||||
|
||||
export const Layout_de_CH_genau: Layout = {
|
||||
export const LayoutDeChGenau: Layout = {
|
||||
code: 'de_CH_genau',
|
||||
hours: {
|
||||
'0,12': {10: [1, 2, 3, 4, 5, 6]},
|
||||
|
@ -67,7 +67,7 @@ export const Layout_de_CH_genau: Layout = {
|
|||
'50,51,52,53,54': [zae, vor],
|
||||
'55,56,57,58,59': [fuef, vor]
|
||||
},
|
||||
permanent: es_isch,
|
||||
permanent: esIsch,
|
||||
prettyName: 'Bärndütsch (genau)',
|
||||
version: 2
|
||||
};
|
||||
|
@ -85,4 +85,4 @@ declare namespace $ {
|
|||
const fritteli: Fritteli.Fritteli;
|
||||
}
|
||||
|
||||
$.fritteli.uhr.register(Layout_de_CH_genau);
|
||||
$.fritteli.uhr.register(LayoutDeChGenau);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
import {Layout, WordDefinition} from '../domain/layout';
|
||||
|
||||
const klokken_er: WordDefinition = {1: [1, 2, 3, 4, 5, 6, 7, 9, 10]};
|
||||
const klokkenEr: WordDefinition = {1: [1, 2, 3, 4, 5, 6, 7, 9, 10]};
|
||||
const minutter: WordDefinition = {4: [4, 5, 6, 7, 8, 9, 10, 11]};
|
||||
const i: WordDefinition = {5: [8]};
|
||||
const over: WordDefinition = {5: [4, 5, 6, 7]};
|
||||
|
@ -25,7 +25,7 @@ const kvart: WordDefinition = {3: [4, 5, 6, 7, 8]};
|
|||
const tyve: WordDefinition = {2: [4, 5, 6, 7]};
|
||||
const halv: WordDefinition = {6: [8, 9, 10, 11]};
|
||||
|
||||
export const Layout_dk: Layout = {
|
||||
export const LayoutDk: Layout = {
|
||||
code: 'dk',
|
||||
hours: {
|
||||
'0,12': {10: [8, 9, 10, 11]},
|
||||
|
@ -66,7 +66,7 @@ export const Layout_dk: Layout = {
|
|||
'50,51,52,53,54': [ti, minutter, i],
|
||||
'55,56,57,58,59': [fem, minutter, i]
|
||||
},
|
||||
permanent: klokken_er,
|
||||
permanent: klokkenEr,
|
||||
prettyName: 'Dansk',
|
||||
version: 2
|
||||
};
|
||||
|
@ -84,4 +84,4 @@ declare namespace $ {
|
|||
const fritteli: Fritteli.Fritteli;
|
||||
}
|
||||
|
||||
$.fritteli.uhr.register(Layout_dk);
|
||||
$.fritteli.uhr.register(LayoutDk);
|
||||
|
|
|
@ -15,18 +15,18 @@
|
|||
|
||||
import {Layout, WordDefinition} from '../domain/layout';
|
||||
|
||||
const it_is: WordDefinition = {1: [1, 2, 4, 5]};
|
||||
const itIs: WordDefinition = {1: [1, 2, 4, 5]};
|
||||
const half: WordDefinition = {4: [1, 2, 3, 4]};
|
||||
const to: WordDefinition = {4: [10, 11]};
|
||||
const past: WordDefinition = {5: [1, 2, 3, 4]};
|
||||
const o_clock: WordDefinition = {10: [5, 6, 7, 8, 9, 10, 11]};
|
||||
const oClock: WordDefinition = {10: [5, 6, 7, 8, 9, 10, 11]};
|
||||
const five: WordDefinition = {3: [7, 8, 9, 10]};
|
||||
const ten: WordDefinition = {4: [6, 7, 8]};
|
||||
const a_quarter: WordDefinition = {2: [1, 3, 4, 5, 6, 7, 8, 9]};
|
||||
const aQuarter: WordDefinition = {2: [1, 3, 4, 5, 6, 7, 8, 9]};
|
||||
const twenty: WordDefinition = {3: [1, 2, 3, 4, 5, 6]};
|
||||
const twentyfive: WordDefinition = {3: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]};
|
||||
|
||||
export const Layout_en: Layout = {
|
||||
export const LayoutEn: Layout = {
|
||||
code: 'en',
|
||||
getHour: (time: Date): number => {
|
||||
const hour = time.getHours();
|
||||
|
@ -63,20 +63,20 @@ export const Layout_en: Layout = {
|
|||
'TENSO\'CLOCK'
|
||||
],
|
||||
minutes: {
|
||||
'0,1,2,3,4': o_clock,
|
||||
'0,1,2,3,4': oClock,
|
||||
'5,6,7,8,9': [five, past],
|
||||
'10,11,12,13,14': [ten, past],
|
||||
'15,16,17,18,19': [a_quarter, past],
|
||||
'15,16,17,18,19': [aQuarter, past],
|
||||
'20,21,22,23,24': [twenty, past],
|
||||
'25,26,27,28,29': [twentyfive, past],
|
||||
'30,31,32,33,34': [half, past],
|
||||
'35,36,37,38,39': [twentyfive, to],
|
||||
'40,41,42,43,44': [twenty, to],
|
||||
'45,46,47,48,49': [a_quarter, to],
|
||||
'45,46,47,48,49': [aQuarter, to],
|
||||
'50,51,52,53,54': [ten, to],
|
||||
'55,56,57,58,59': [five, to]
|
||||
},
|
||||
permanent: it_is,
|
||||
permanent: itIs,
|
||||
prettyName: 'English',
|
||||
version: 2
|
||||
};
|
||||
|
@ -94,4 +94,4 @@ declare namespace $ {
|
|||
const fritteli: Fritteli.Fritteli;
|
||||
}
|
||||
|
||||
$.fritteli.uhr.register(Layout_en);
|
||||
$.fritteli.uhr.register(LayoutEn);
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
|
||||
import {Layout, WordDefinition} from '../domain/layout';
|
||||
|
||||
const es_la: WordDefinition = {1: [1, 2, 6, 7]};
|
||||
const son_las: WordDefinition = {1: [2, 3, 4, 6, 7, 8]};
|
||||
const esLa: WordDefinition = {1: [1, 2, 6, 7]};
|
||||
const sonLas: WordDefinition = {1: [2, 3, 4, 6, 7, 8]};
|
||||
const y: WordDefinition = {7: [6]};
|
||||
const menos: WordDefinition = {7: [7, 8, 9, 10, 11]};
|
||||
const media: WordDefinition = {10: [1, 2, 3, 4, 5]};
|
||||
|
@ -26,7 +26,7 @@ const cuarto: WordDefinition = {10: [6, 7, 8, 9, 10, 11]};
|
|||
const veinte: WordDefinition = {8: [2, 3, 4, 5, 6, 7]};
|
||||
const veinticinco: WordDefinition = {9: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]};
|
||||
|
||||
export const Layout_es: Layout = {
|
||||
export const LayoutEs: Layout = {
|
||||
code: 'es',
|
||||
getHour: (time: Date): number => {
|
||||
const hour = time.getHours();
|
||||
|
@ -37,18 +37,18 @@ export const Layout_es: Layout = {
|
|||
},
|
||||
|
||||
hours: {
|
||||
'0,12': [son_las, {7: [1, 2, 3, 4]}],
|
||||
'1,13': [es_la, {1: [9, 10, 11]}],
|
||||
'2,14': [son_las, {2: [1, 2, 3]}],
|
||||
'3,15': [son_las, {2: [5, 6, 7, 8]}],
|
||||
'4,16': [son_las, {3: [1, 2, 3, 4, 5, 6]}],
|
||||
'5,17': [son_las, {3: [7, 8, 9, 10, 11]}],
|
||||
'6,18': [son_las, {4: [1, 2, 3, 4]}],
|
||||
'7,19': [son_las, {4: [6, 7, 8, 9, 10]}],
|
||||
'8,20': [son_las, {5: [1, 2, 3, 4]}],
|
||||
'9,21': [son_las, {5: [5, 6, 7, 8, 9]}],
|
||||
'10,22': [son_las, {6: [3, 4, 5, 6]}],
|
||||
'11,23': [son_las, {6: [8, 9, 10, 11]}]
|
||||
'0,12': [sonLas, {7: [1, 2, 3, 4]}],
|
||||
'1,13': [esLa, {1: [9, 10, 11]}],
|
||||
'2,14': [sonLas, {2: [1, 2, 3]}],
|
||||
'3,15': [sonLas, {2: [5, 6, 7, 8]}],
|
||||
'4,16': [sonLas, {3: [1, 2, 3, 4, 5, 6]}],
|
||||
'5,17': [sonLas, {3: [7, 8, 9, 10, 11]}],
|
||||
'6,18': [sonLas, {4: [1, 2, 3, 4]}],
|
||||
'7,19': [sonLas, {4: [6, 7, 8, 9, 10]}],
|
||||
'8,20': [sonLas, {5: [1, 2, 3, 4]}],
|
||||
'9,21': [sonLas, {5: [5, 6, 7, 8, 9]}],
|
||||
'10,22': [sonLas, {6: [3, 4, 5, 6]}],
|
||||
'11,23': [sonLas, {6: [8, 9, 10, 11]}]
|
||||
},
|
||||
letters: [
|
||||
'ESONELASUNA',
|
||||
|
@ -93,4 +93,4 @@ declare namespace $ {
|
|||
const fritteli: Fritteli.Fritteli;
|
||||
}
|
||||
|
||||
$.fritteli.uhr.register(Layout_es);
|
||||
$.fritteli.uhr.register(LayoutEs);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
import {Layout, WordDefinition} from '../domain/layout';
|
||||
|
||||
const il_est: WordDefinition = {1: [1, 2, 4, 5, 6]};
|
||||
const ilEst: WordDefinition = {1: [1, 2, 4, 5, 6]};
|
||||
const et: WordDefinition = {8: [1, 2]};
|
||||
const moins: WordDefinition = {7: [1, 2, 3, 4, 5]};
|
||||
const demie: WordDefinition = {10: [4, 5, 6, 7, 8]};
|
||||
|
@ -27,7 +27,7 @@ const quart: WordDefinition = {8: [4, 5, 6, 7, 8]};
|
|||
const vingt: WordDefinition = {9: [1, 2, 3, 4, 5]};
|
||||
const vingtcinq: WordDefinition = {9: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]};
|
||||
|
||||
export const Layout_fr: Layout = {
|
||||
export const LayoutFr: Layout = {
|
||||
code: 'fr',
|
||||
getHour: (time: Date): number => {
|
||||
const hour = time.getHours();
|
||||
|
@ -109,7 +109,7 @@ export const Layout_fr: Layout = {
|
|||
'50,51,52,53,54': [moins, dix],
|
||||
'55,56,57,58,59': [moins, cinq]
|
||||
},
|
||||
permanent: il_est,
|
||||
permanent: ilEst,
|
||||
prettyName: 'Français',
|
||||
version: 2
|
||||
};
|
||||
|
@ -127,4 +127,4 @@ declare namespace $ {
|
|||
const fritteli: Fritteli.Fritteli;
|
||||
}
|
||||
|
||||
$.fritteli.uhr.register(Layout_fr);
|
||||
$.fritteli.uhr.register(LayoutFr);
|
||||
|
|
|
@ -15,18 +15,18 @@
|
|||
|
||||
import {Layout, WordDefinition} from '../domain/layout';
|
||||
|
||||
const sono_le: WordDefinition = {1: [1, 2, 3, 4, 6, 7]};
|
||||
const e_l: WordDefinition = {2: [1, 3, 4]};
|
||||
const sonoLe: WordDefinition = {1: [1, 2, 3, 4, 6, 7]};
|
||||
const eL: WordDefinition = {2: [1, 3, 4]};
|
||||
const e: WordDefinition = {8: [1]};
|
||||
const meno: WordDefinition = {7: [8, 9, 10, 11]};
|
||||
const mezza: WordDefinition = {10: [7, 8, 9, 10, 11]};
|
||||
const cinque: WordDefinition = {9: [6, 7, 8, 9, 10, 11]};
|
||||
const dieci: WordDefinition = {10: [1, 2, 3, 4, 5]};
|
||||
const un_quarto: WordDefinition = {8: [3, 4, 6, 7, 8, 9, 10, 11]};
|
||||
const unQuarto: WordDefinition = {8: [3, 4, 6, 7, 8, 9, 10, 11]};
|
||||
const venti: WordDefinition = {9: [1, 2, 3, 4, 5]};
|
||||
const venticinque: WordDefinition = {9: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]};
|
||||
|
||||
export const Layout_it: Layout = {
|
||||
export const LayoutIt: Layout = {
|
||||
code: 'it',
|
||||
getHour: (time: Date): number => {
|
||||
const hour = time.getHours();
|
||||
|
@ -36,18 +36,18 @@ export const Layout_it: Layout = {
|
|||
return hour;
|
||||
},
|
||||
hours: {
|
||||
'0,12': [sono_le, {5: [1, 2, 3, 4, 5, 6]}],
|
||||
'1,13': [e_l, {2: [5, 6, 7]}],
|
||||
'2,14': [sono_le, {2: [9, 10, 11]}],
|
||||
'3,15': [sono_le, {3: [1, 2, 3]}],
|
||||
'4,16': [sono_le, {6: [1, 2, 3, 4, 5, 6, 7]}],
|
||||
'5,17': [sono_le, {7: [1, 2, 3, 4, 5, 6]}],
|
||||
'6,18': [sono_le, {6: [9, 10, 11]}],
|
||||
'7,19': [sono_le, {5: [7, 8, 9, 10, 11]}],
|
||||
'8,20': [sono_le, {3: [4, 5, 6, 7]}],
|
||||
'9,21': [sono_le, {3: [8, 9, 10, 11]}],
|
||||
'10,22': [sono_le, {4: [1, 2, 3, 4, 5]}],
|
||||
'11,23': [sono_le, {4: [6, 7, 8, 9, 10, 11]}]
|
||||
'0,12': [sonoLe, {5: [1, 2, 3, 4, 5, 6]}],
|
||||
'1,13': [eL, {2: [5, 6, 7]}],
|
||||
'2,14': [sonoLe, {2: [9, 10, 11]}],
|
||||
'3,15': [sonoLe, {3: [1, 2, 3]}],
|
||||
'4,16': [sonoLe, {6: [1, 2, 3, 4, 5, 6, 7]}],
|
||||
'5,17': [sonoLe, {7: [1, 2, 3, 4, 5, 6]}],
|
||||
'6,18': [sonoLe, {6: [9, 10, 11]}],
|
||||
'7,19': [sonoLe, {5: [7, 8, 9, 10, 11]}],
|
||||
'8,20': [sonoLe, {3: [4, 5, 6, 7]}],
|
||||
'9,21': [sonoLe, {3: [8, 9, 10, 11]}],
|
||||
'10,22': [sonoLe, {4: [1, 2, 3, 4, 5]}],
|
||||
'11,23': [sonoLe, {4: [6, 7, 8, 9, 10, 11]}]
|
||||
},
|
||||
letters: [
|
||||
'SONORLEBORE',
|
||||
|
@ -64,13 +64,13 @@ export const Layout_it: Layout = {
|
|||
minutes: {
|
||||
'5,6,7,8,9': [e, cinque],
|
||||
'10,11,12,13,14': [e, dieci],
|
||||
'15,16,17,18,19': [e, un_quarto],
|
||||
'15,16,17,18,19': [e, unQuarto],
|
||||
'20,21,22,23,24': [e, venti],
|
||||
'25,26,27,28,29': [e, venticinque],
|
||||
'30,31,32,33,34': [e, mezza],
|
||||
'35,36,37,38,39': [meno, venticinque],
|
||||
'40,41,42,43,44': [meno, venti],
|
||||
'45,46,47,48,49': [meno, un_quarto],
|
||||
'45,46,47,48,49': [meno, unQuarto],
|
||||
'50,51,52,53,54': [meno, dieci],
|
||||
'55,56,57,58,59': [meno, cinque]
|
||||
},
|
||||
|
@ -92,4 +92,4 @@ declare namespace $ {
|
|||
const fritteli: Fritteli.Fritteli;
|
||||
}
|
||||
|
||||
$.fritteli.uhr.register(Layout_it);
|
||||
$.fritteli.uhr.register(LayoutIt);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
import {Layout, WordDefinition} from '../domain/layout';
|
||||
|
||||
const het_is: WordDefinition = {1: [1, 2, 3, 5, 6]};
|
||||
const hetIs: WordDefinition = {1: [1, 2, 3, 5, 6]};
|
||||
const over1: WordDefinition = {3: [1, 2, 3, 4]};
|
||||
const voor1: WordDefinition = {2: [8, 9, 10, 11]};
|
||||
const over2: WordDefinition = {4: [8, 9, 10, 11]};
|
||||
|
@ -26,7 +26,7 @@ const tien: WordDefinition = {2: [1, 2, 3, 4]};
|
|||
const kwart: WordDefinition = {3: [7, 8, 9, 10, 11]};
|
||||
const uur: WordDefinition = {10: [9, 10, 11]};
|
||||
|
||||
export const Layout_nl: Layout = {
|
||||
export const LayoutNl: Layout = {
|
||||
code: 'nl',
|
||||
getHour: (time: Date): number => {
|
||||
const hour = time.getHours();
|
||||
|
@ -75,7 +75,7 @@ export const Layout_nl: Layout = {
|
|||
'50,51,52,53,54': [tien, voor1],
|
||||
'55,56,57,58,59': [vijf, voor1]
|
||||
},
|
||||
permanent: het_is,
|
||||
permanent: hetIs,
|
||||
prettyName: 'Nederlands',
|
||||
version: 2
|
||||
};
|
||||
|
@ -93,4 +93,4 @@ declare namespace $ {
|
|||
const fritteli: Fritteli.Fritteli;
|
||||
}
|
||||
|
||||
$.fritteli.uhr.register(Layout_nl);
|
||||
$.fritteli.uhr.register(LayoutNl);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
import {Layout, WordDefinition} from '../domain/layout';
|
||||
|
||||
const e_: WordDefinition = {1: [1]};
|
||||
const e: WordDefinition = {1: [1]};
|
||||
const sao: WordDefinition = {1: [2, 3, 4]};
|
||||
const e1: WordDefinition = {7: [8]};
|
||||
const e2: WordDefinition = {10: [5]};
|
||||
|
@ -23,10 +23,10 @@ const menos: WordDefinition = {7: [7, 8, 9, 10, 11]};
|
|||
const meia: WordDefinition = {8: [8, 9, 10, 11]};
|
||||
const cinco: WordDefinition = {10: [7, 8, 9, 10, 11]};
|
||||
const dez: WordDefinition = {10: [1, 2, 3]};
|
||||
const um_quarto: WordDefinition = {9: [1, 2, 4, 5, 6, 7, 8, 9]};
|
||||
const umQuarto: WordDefinition = {9: [1, 2, 4, 5, 6, 7, 8, 9]};
|
||||
const vinte: WordDefinition = {8: [1, 2, 3, 4, 5]};
|
||||
|
||||
export const Layout_pt: Layout = {
|
||||
export const LayoutPt: Layout = {
|
||||
code: 'pt',
|
||||
getHour: (time: Date): number => {
|
||||
const hour = time.getHours();
|
||||
|
@ -36,9 +36,9 @@ export const Layout_pt: Layout = {
|
|||
return hour;
|
||||
},
|
||||
hours: {
|
||||
'0': [e_, {'6': [2, 3, 4, 5, 7, 8, 9, 10, 11]}],
|
||||
'12': [e_, {'2': [1, 2, 3, 4, 6, 7, 8]}],
|
||||
'1,13': [e_, {'1': [5, 6, 7]}],
|
||||
'0': [e, {'6': [2, 3, 4, 5, 7, 8, 9, 10, 11]}],
|
||||
'12': [e, {'2': [1, 2, 3, 4, 6, 7, 8]}],
|
||||
'1,13': [e, {'1': [5, 6, 7]}],
|
||||
'2,14': [sao, {'3': [1, 2, 3, 4]}],
|
||||
'3,15': [sao, {'1': [8, 9, 10, 11]}],
|
||||
'4,16': [sao, {'4': [1, 2, 3, 4, 5, 6]}],
|
||||
|
@ -65,13 +65,13 @@ export const Layout_pt: Layout = {
|
|||
minutes: {
|
||||
'5,6,7,8,9': [e1, cinco],
|
||||
'10,11,12,13,14': [e1, dez],
|
||||
'15,16,17,18,19': [e1, um_quarto],
|
||||
'15,16,17,18,19': [e1, umQuarto],
|
||||
'20,21,22,23,24': [e1, vinte],
|
||||
'25,26,27,28,29': [e1, vinte, e2, cinco],
|
||||
'30,31,32,33,34': [e1, meia],
|
||||
'35,36,37,38,39': [menos, vinte, e2, cinco],
|
||||
'40,41,42,43,44': [menos, vinte],
|
||||
'45,46,47,48,49': [menos, um_quarto],
|
||||
'45,46,47,48,49': [menos, umQuarto],
|
||||
'50,51,52,53,54': [menos, dez],
|
||||
'55,56,57,58,59': [menos, cinco]
|
||||
},
|
||||
|
@ -93,4 +93,4 @@ declare namespace $ {
|
|||
const fritteli: Fritteli.Fritteli;
|
||||
}
|
||||
|
||||
$.fritteli.uhr.register(Layout_pt);
|
||||
$.fritteli.uhr.register(LayoutPt);
|
||||
|
|
|
@ -28,5 +28,5 @@ export interface WidgetPrototype {
|
|||
width: (width: string) => void;
|
||||
_create: () => void;
|
||||
_destroy: () => void;
|
||||
__fritteli_uhr_instance: Uhr;
|
||||
_fritteliUhrInstance: Uhr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue