Skip to content

Commit

Permalink
feat(app): remove id, version, language app params and properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Mar 22, 2023
1 parent b22a720 commit da6e5ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
12 changes: 0 additions & 12 deletions src/core/components/app/app-class.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,10 @@ export interface Framework7EventsClass<Events> {
export interface Framework7Parameters {
/** 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) */
el?: string;
/** App bundle id.. (default io.framework7.testapp) */
id?: string | 'io.framework7.testapp';
/** App name. Can be used by other components, e.g. as the default title for Dialog component.. (default Framework7) */
name?: string;
/** App version. Can be used by other components.. (default 1.0.0) */
version?: string;
/** 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') */
theme?: string;
/** App language. Can be used by other components. By default equal to the current browser/webview language (i.e. navigator.language).. */
language?: string;
/** Array with default routes to all views.. (default []) */
routes?: Router.RouteParameters[];
/** Enables dark mode, can be `false` (disabled), `true` (enabled) or `auto` (based on system preferences) */
Expand Down Expand Up @@ -131,16 +125,10 @@ export interface Framework7Events {
}

interface Framework7 extends Framework7Class<Framework7Events> {
/** App ID passed in parameters */
id: string;
/** App name passed in parameters */
name: string;
/** App version */
version: string;
/** App routes */
routes: Router.RouteParameters[];
/** App language */
language: string;
/** App root HTML element */
el: HTMLElement;
/** Dom7 instance with app root element */
Expand Down
9 changes: 0 additions & 9 deletions src/core/components/app/app-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ class Framework7 extends Framework7Class {

// Default
const defaults = {
version: '1.0.0',
id: 'io.framework7.myapp',
el: 'body',
theme: 'auto',
language: w.navigator.language,
routes: [],
name: 'Framework7',
lazyModulesPath: null,
Expand Down Expand Up @@ -80,16 +77,10 @@ class Framework7 extends Framework7Class {
app.params = extend(defaults, params);

extend(app, {
// App Id
id: app.params.id,
// App Name
name: app.params.name,
// App version
version: app.params.version,
// Routes
routes: app.params.routes,
// Lang
language: app.params.language,

// Theme
theme: (function getTheme() {
Expand Down

0 comments on commit da6e5ae

Please sign in to comment.