-
Notifications
You must be signed in to change notification settings - Fork 0
/
wc-f7.js
65 lines (56 loc) · 1.89 KB
/
wc-f7.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
import $ from 'dom7'
// F7 Class
import Framework7 from './src/app-class'
// Import Helpers
import Request from 'framework7/utils/request'
import Utils from 'framework7/utils/utils'
import Support from 'framework7/utils/support'
import Device from 'framework7/utils/device'
// Core Modules
import DeviceModule from 'framework7/modules/device/device'
import SupportModule from 'framework7/modules/support/support'
import UtilsModule from 'framework7/modules/utils/utils'
import ResizeModule from 'framework7/modules/resize/resize'
import RequestModule from 'framework7/modules/request/request'
import TouchModule from 'framework7/modules/touch/touch'
import ClicksModule from 'framework7/modules/clicks/clicks'
import RouterModule from 'framework7/modules/router/router'
import HistoryModule from 'framework7/modules/history/history'
// Core Components
import Statusbar from 'framework7/components/statusbar/statusbar'
import View from 'framework7/components/view/view'
import Navbar from 'framework7/components/navbar/navbar'
import Toolbar from 'framework7/components/toolbar/toolbar'
import Subnavbar from 'framework7/components/subnavbar/subnavbar'
import TouchRipple from 'framework7/components/touch-ripple/touch-ripple'
import Modal from 'framework7/components/modal/modal'
import Router from 'framework7/modules/router/router-class'
import RouterComponentLoaderModule from './src/component-loader'
if ('es' !== 'es') {
if (typeof window !== 'undefined') {
// Dom7
if (!window.Dom7) window.Dom7 = $
}
}
// Install Core Modules & Components
Router.use([RouterComponentLoaderModule])
Framework7.use([
DeviceModule,
SupportModule,
UtilsModule,
ResizeModule,
RequestModule,
TouchModule,
ClicksModule,
RouterModule,
HistoryModule,
Statusbar,
View,
Navbar,
Toolbar,
Subnavbar,
TouchRipple,
Modal,
])
export { $ as Dom7, Request, Utils, Device, Support }
export default Framework7