1
|
|
|
|
2
|
|
|
/* <!-- essential core */ |
3
|
|
|
import Siteapp from '../siteapp.core'; |
4
|
|
|
|
5
|
|
|
// Touch and Triggers previously were almost purely sede effect driven, |
6
|
|
|
// so no // need to add it to Siteapp, just init them. |
7
|
|
|
import { Keyboard } from '../util/siteapp.util.keyboard'; |
8
|
|
|
import { MediaQuery } from '../util/siteapp.util.mediaQuery'; |
9
|
|
|
import { Triggers } from '../util/siteapp.util.triggers'; |
10
|
|
|
|
11
|
|
|
Siteapp.prototype.Keyboard = Keyboard; |
12
|
|
|
Siteapp.prototype.MediaQuery = MediaQuery; |
13
|
|
|
Siteapp.prototype.Triggers = Triggers; |
14
|
|
|
|
15
|
|
|
Siteapp.Keyboard = Siteapp.prototype.Keyboard; |
16
|
|
|
Siteapp.MediaQuery = Siteapp.prototype.MediaQuery; |
17
|
|
|
Siteapp.Triggers = Siteapp.prototype.Triggers; |
18
|
|
|
|
19
|
|
|
//Extra Core Components: Storage/Module-Managment, Log, Debug |
20
|
|
|
import { Exception } from '../sys/siteapp.exception'; |
21
|
|
|
import { Debugger } from '../sys/siteapp.debug'; |
22
|
|
|
import { Log } from '../sys/siteapp.log'; |
23
|
|
|
|
24
|
|
|
Siteapp.prototype.Exception = Exception; |
25
|
|
|
Siteapp.prototype.Debugger = Debugger; |
26
|
|
|
Siteapp.prototype.Log = Log; |
27
|
|
|
|
28
|
|
|
Siteapp.Exception = Siteapp.prototype.Exception; |
29
|
|
|
Siteapp.Debugger = Siteapp.prototype.Debugger; |
30
|
|
|
Siteapp.Log = Siteapp.prototype.Log; |
31
|
|
|
|
32
|
|
|
/* essential core --> */ |
33
|
|
|
|
34
|
|
|
|
35
|
|
|
|
36
|
|
|
// attach application module manager classes |
37
|
|
|
import Module from '../module/siteapp.module'; |
38
|
|
|
import ModuleFactory from '../module/siteapp.moduleFactory'; |
39
|
|
|
import ModuleManager from '../module/siteapp.moduleManager'; |
40
|
|
|
|
41
|
|
|
Siteapp.prototype.Module = Module; |
42
|
|
|
Siteapp.Module = Module; |
43
|
|
|
Siteapp.prototype.ModuleFactory = ModuleFactory; |
44
|
|
|
Siteapp.ModuleFactory = ModuleFactory; |
45
|
|
|
Siteapp.prototype.ModuleManager = ModuleManager; |
46
|
|
|
Siteapp.ModuleManager = ModuleManager; |
47
|
|
|
|
48
|
|
|
// attach application storage manager classes |
49
|
|
|
import { StorageAdapter } from '../storage/siteapp.storageAdapter'; |
50
|
|
|
import { StorageManager } from '../storage/siteapp.storageManager'; |
51
|
|
|
|
52
|
|
|
Siteapp.prototype.StorageAdapter = StorageAdapter; |
53
|
|
|
Siteapp.StorageAdapter = StorageAdapter; |
54
|
|
|
Siteapp.prototype.StorageManager = StorageManager; |
55
|
|
|
Siteapp.StorageManager = StorageManager; |
56
|
|
|
|
57
|
|
|
// attach application UI manager classes |
58
|
|
|
import Ui from '../ui/siteapp.ui'; |
59
|
|
|
import Action from '../ui/siteapp.action'; |
60
|
|
|
import Screenlayer from '../ui/siteapp.screenlayer'; |
61
|
|
|
import Screenpanel from '../ui/siteapp.screenpanel'; |
62
|
|
|
import Paneladapter from '../ui/siteapp.paneladapter'; |
63
|
|
|
|
64
|
|
|
Siteapp.prototype.UiManager = Ui; |
65
|
|
|
Siteapp.UiManager = Ui; |
66
|
|
|
Siteapp.prototype.UiManager.Action = Action; |
67
|
|
|
Siteapp.UiManager.Action = Action; |
68
|
|
|
Siteapp.prototype.UiManager.Screenlayer = Screenlayer; |
69
|
|
|
Siteapp.UiManager.Screenlayer = Screenlayer; |
70
|
|
|
Siteapp.prototype.UiManager.Screenpanel = Screenpanel; |
71
|
|
|
Siteapp.UiManager.Screenpanel = Screenpanel; |
72
|
|
|
Siteapp.prototype.UiManager.Paneladapter = Paneladapter; |
73
|
|
|
Siteapp.UiManager.Paneladapter = Paneladapter; |
74
|
|
|
|
75
|
|
|
|
76
|
|
|
/* Foundation compatiblitiy mappings */ |
77
|
|
|
Siteapp.prototype.rtl = Siteapp.prototype.utilities.rtl; |
78
|
|
|
Siteapp.prototype.GetYoDigits = Siteapp.prototype.utilities.genUUID; |
79
|
|
|
Siteapp.prototype.transitionend = Siteapp.prototype.utilities.transitionend; |
80
|
|
|
Siteapp.rtl = Siteapp.prototype.utilities.rtl; |
81
|
|
|
Siteapp.GetYoDigits = Siteapp.prototype.utilities.genUUID; |
82
|
|
|
Siteapp.transitionend = Siteapp.prototype.utilities.transitionend; |
83
|
|
|
|
84
|
|
|
//'Foundation.Plugin' alias for 'Siteapp.Module' |
85
|
|
|
Siteapp.prototype.Plugin = Siteapp.Module; |
86
|
|
|
Siteapp.Plugin = Siteapp.Module; |
87
|
|
|
|
88
|
|
|
|
89
|
|
|
//finally, assign [Siteapp] class to global/window namespace |
90
|
|
|
window.Siteapp = Siteapp; |
91
|
|
|
|
92
|
|
|
|
93
|
|
|
export default Siteapp; |
94
|
|
|
|