-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ionic): update deps for angular 12 and cap 3
- Loading branch information
1 parent
f6b27e8
commit 1140acf
Showing
40 changed files
with
325 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/ionic-angular/src/schematics/application/_files/__dot__browserslistrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. | ||
# For additional information regarding the format and rule options, please see: | ||
# https://github.com/browserslist/browserslist#queries | ||
|
||
# For the full list of supported browsers by the Angular framework, please see: | ||
# https://angular.io/guide/browser-support | ||
|
||
# You can see what browsers were selected by your queries by running: | ||
# npx browserslist | ||
|
||
last 1 Chrome version | ||
last 1 Firefox version | ||
last 2 Edge major versions | ||
last 2 Safari major versions | ||
last 2 iOS major versions | ||
Firefox ESR | ||
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
packages/ionic-angular/src/schematics/application/_files/capacitor.config.json
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
packages/ionic-angular/src/schematics/application/_files/capacitor.config.ts__tmpl__
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { CapacitorConfig } from '@capacitor/cli'; | ||
|
||
const config: CapacitorConfig = { | ||
appId: 'io.ionic.starter', | ||
appName: '<%= utils.sanitize(appname) %>', | ||
webDir: 'www', | ||
bundledWebRuntime: false | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 4 additions & 26 deletions
30
packages/ionic-angular/src/schematics/application/_files/src/app/app.component.ts__tmpl__
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
import { Platform } from '@ionic/angular'; | ||
import { Plugins, StatusBarStyle } from '@capacitor/core'; | ||
const { StatusBar } = Plugins; | ||
import { SplashScreen } from '@ionic-native/splash-screen/ngx'; | ||
import { StatusBar as NgxStatusBar } from '@ionic-native/status-bar/ngx'; | ||
|
||
@Component({ | ||
selector: '<%= prefix %>-root', | ||
templateUrl: 'app.component.html' | ||
templateUrl: 'app.component.html', | ||
}) | ||
export class AppComponent { | ||
constructor( | ||
private platform: Platform, | ||
private splashScreen: SplashScreen, | ||
private statusBar: NgxStatusBar | ||
) { | ||
this.initializeApp(); | ||
} | ||
|
||
initializeApp() { | ||
this.platform.ready().then(() => { | ||
if (this.platform.is('capacitor')) { | ||
StatusBar.setStyle({ | ||
style: StatusBarStyle.Dark | ||
}); | ||
} else { | ||
this.statusBar.styleDefault(); | ||
this.splashScreen.hide(); | ||
} | ||
}); | ||
} | ||
constructor() {} | ||
} | ||
|
||
|
37 changes: 20 additions & 17 deletions
37
packages/ionic-angular/src/schematics/application/_files/src/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Ionic + Nx + xplat</title> | ||
|
||
<base href="/" /> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Ionic + Nx + xplat</title> | ||
|
||
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | ||
<meta name="format-detection" content="telephone=no" /> | ||
<meta name="msapplication-tap-highlight" content="no" /> | ||
<base href="/" /> | ||
|
||
<link rel="icon" type="image/png" href="assets/icon/favicon.png"> | ||
<meta name="color-scheme" content="light dark" /> | ||
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | ||
<meta name="format-detection" content="telephone=no" /> | ||
<meta name="msapplication-tap-highlight" content="no" /> | ||
|
||
<!-- add to homescreen for ios --> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
</head> | ||
<link rel="icon" type="image/png" href="assets/icon/favicon.png" /> | ||
|
||
<body> | ||
<<%= prefix %>-root></<%= prefix %>-root> | ||
</body> | ||
</html> | ||
<!-- add to homescreen for ios --> | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
</head> | ||
|
||
<body> | ||
<<%= prefix %>-root></<%= prefix %>-root> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 0 additions & 53 deletions
53
packages/ionic-angular/src/schematics/application/_files/tslint.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.