-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
61 lines (52 loc) · 2.25 KB
/
main.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
const Craft = {};
import { Bootstrap } from './src/Craft/Core/Bootstrap.js';
import { Route } from './src/Craft/Core/Route.js';
import { Router } from './src/Craft/Core/Router.js';
import { HashRouter } from './src/Craft/Core/HashRouter.js';
import { PathRouter } from './src/Craft/Core/PathRouter.js';
import { Context } from './src/Craft/Core/Context.js';
import { Defaults } from './src/Craft/Core/Defaults.js';
import { ComponentStack } from './src/Craft/Core/ComponentStack.js';
import { KeyboardManager } from './src/Craft/Core/KeyboardManager.js';
import { NotificationCenter } from './src/Craft/Core/NotificationCenter.js';
import { Component } from './src/Craft/Core/Component.js';
import { StickComponent } from './src/Craft/Core/StickComponent.js';
import { Transition } from './src/Craft/Core/Transition.js';
import { Gesture } from './src/Craft/Core/Gesture.js';
Craft.Core = {
Bootstrap : Bootstrap,
Context : Context,
Defaults : Defaults,
ComponentStack : ComponentStack,
KeyboardManager : KeyboardManager,
NotificationCenter : NotificationCenter,
Component : Component,
StickComponent : StickComponent,
Transition : Transition,
Gesture : Gesture,
Route : Route,
Router : Router,
HashRouter : HashRouter,
PathRouter : PathRouter
};
import { View } from './src/Craft/UI/View.js';
import { BlockView } from './src/Craft/UI/BlockView.js';
import { InlineBlockView } from './src/Craft/UI/InlineBlockView.js';
import { DefaultViewController } from './src/Craft/UI/DefaultViewController.js';
import { DefaultRootViewController } from './src/Craft/UI/DefaultRootViewController.js';
import { ModalViewController } from './src/Craft/UI/ModalViewController.js';
import { Device } from './src/Craft/UI/Device.js';
Craft.UI = {
View : View,
BlockView : BlockView,
InlineBlockView : InlineBlockView,
DefaultViewController : DefaultViewController,
DefaultRootViewController : DefaultRootViewController,
ModalViewController : ModalViewController,
Device : Device
};
Craft.Widget = {}; // placeholder
Craft.usePackage = function(packages){
packages.inject(Craft);
};
export default Craft;