File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,10 @@ export interface Framework7EventsClass<Events> {
43
43
export interface Framework7Parameters {
44
44
/** App root element. If you main app layout is not a direct child of the <body> then it is required to specify root element here. (default body) */
45
45
el ?: string ;
46
- /** App bundle id.. (default io.framework7.testapp) */
47
- id ?: string | 'io.framework7.testapp' ;
48
46
/** App name. Can be used by other components, e.g. as the default title for Dialog component.. (default Framework7) */
49
47
name ?: string ;
50
- /** App version. Can be used by other components.. (default 1.0.0) */
51
- version ?: string ;
52
48
/** App theme. Can be ios, md or auto. In case of auto it will use iOS theme for iOS devices and MD theme for all other devices.. (default 'auto') */
53
49
theme ?: string ;
54
- /** App language. Can be used by other components. By default equal to the current browser/webview language (i.e. navigator.language).. */
55
- language ?: string ;
56
50
/** Array with default routes to all views.. (default []) */
57
51
routes ?: Router . RouteParameters [ ] ;
58
52
/** Enables dark mode, can be `false` (disabled), `true` (enabled) or `auto` (based on system preferences) */
@@ -131,16 +125,10 @@ export interface Framework7Events {
131
125
}
132
126
133
127
interface Framework7 extends Framework7Class < Framework7Events > {
134
- /** App ID passed in parameters */
135
- id : string ;
136
128
/** App name passed in parameters */
137
129
name : string ;
138
- /** App version */
139
- version : string ;
140
130
/** App routes */
141
131
routes : Router . RouteParameters [ ] ;
142
- /** App language */
143
- language : string ;
144
132
/** App root HTML element */
145
133
el : HTMLElement ;
146
134
/** Dom7 instance with app root element */
Original file line number Diff line number Diff line change @@ -37,11 +37,8 @@ class Framework7 extends Framework7Class {
37
37
38
38
// Default
39
39
const defaults = {
40
- version : '1.0.0' ,
41
- id : 'io.framework7.myapp' ,
42
40
el : 'body' ,
43
41
theme : 'auto' ,
44
- language : w . navigator . language ,
45
42
routes : [ ] ,
46
43
name : 'Framework7' ,
47
44
lazyModulesPath : null ,
@@ -80,16 +77,10 @@ class Framework7 extends Framework7Class {
80
77
app . params = extend ( defaults , params ) ;
81
78
82
79
extend ( app , {
83
- // App Id
84
- id : app . params . id ,
85
80
// App Name
86
81
name : app . params . name ,
87
- // App version
88
- version : app . params . version ,
89
82
// Routes
90
83
routes : app . params . routes ,
91
- // Lang
92
- language : app . params . language ,
93
84
94
85
// Theme
95
86
theme : ( function getTheme ( ) {
You can’t perform that action at this time.
0 commit comments