Skip to content

Commit

Permalink
Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ralscha committed May 21, 2023
1 parent 528016f commit 7a24fc5
Show file tree
Hide file tree
Showing 354 changed files with 9,775 additions and 1,818 deletions.
12 changes: 6 additions & 6 deletions background-sync/client/.browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# 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
Chrome >=79
ChromeAndroid >=79
Firefox >=70
Edge >=79
Safari >=14
iOS >=14
19 changes: 10 additions & 9 deletions background-sync/client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-class-suffix": [
"error",
{
Expand All @@ -28,14 +36,6 @@
"prefix": "app",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
]
}
},
Expand All @@ -44,7 +44,8 @@
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {}
}
Expand Down
3 changes: 2 additions & 1 deletion background-sync/client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.angular/cache
/node_modules
.idea/
dist/
/.angular/cache
.DS_Store
4 changes: 1 addition & 3 deletions background-sync/client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"outputPath": "dist/app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
"zone.js"
],
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down
47 changes: 24 additions & 23 deletions background-sync/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@
},
"private": true,
"dependencies": {
"@angular/common": "15.2.8",
"@angular/compiler": "15.2.8",
"@angular/core": "15.2.8",
"@angular/forms": "15.2.8",
"@angular/platform-browser": "15.2.8",
"@angular/platform-browser-dynamic": "15.2.8",
"@angular/router": "15.2.8",
"@ionic/angular": "6.7.4",
"@angular/common": "16.0.2",
"@angular/compiler": "16.0.2",
"@angular/core": "16.0.2",
"@angular/forms": "16.0.2",
"@angular/platform-browser": "16.0.2",
"@angular/platform-browser-dynamic": "16.0.2",
"@angular/router": "16.0.2",
"@ionic/angular": "7.0.7",
"ionicons": "7.1.0",
"@types/uuid": "9.0.1",
"dexie": "3.2.3",
"rxjs": "7.8.1",
"tslib": "2.5.0",
"tslib": "2.5.2",
"uuid": "9.0.0",
"workbox-core": "6.5.4",
"workbox-precaching": "6.5.4",
Expand All @@ -36,24 +37,24 @@
"zone.js": "0.13.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "15.2.7",
"@angular-eslint/builder": "15.2.1",
"@angular-eslint/eslint-plugin": "15.2.1",
"@angular-eslint/eslint-plugin-template": "15.2.1",
"@angular-eslint/schematics": "15.2.1",
"@angular-eslint/template-parser": "15.2.1",
"@angular/cli": "15.2.7",
"@angular/compiler-cli": "15.2.8",
"@angular-devkit/build-angular": "16.0.2",
"@angular-eslint/builder": "16.0.2",
"@angular-eslint/eslint-plugin": "16.0.2",
"@angular-eslint/eslint-plugin-template": "16.0.2",
"@angular-eslint/schematics": "16.0.2",
"@angular-eslint/template-parser": "16.0.2",
"@angular/cli": "16.0.2",
"@angular/compiler-cli": "16.0.2",
"@ionic/angular-toolkit": "9.0.0",
"@typescript-eslint/eslint-plugin": "5.59.1",
"@typescript-eslint/parser": "5.59.1",
"eslint": "8.39.0",
"@typescript-eslint/eslint-plugin": "5.59.6",
"@typescript-eslint/parser": "5.59.6",
"eslint": "8.41.0",
"local-web-server": "5.3.0",
"npm-run-all": "4.1.5",
"rimraf": "5.0.0",
"rimraf": "5.0.1",
"ts-loader": "9.4.2",
"typescript": "4.9.5",
"webpack-cli": "5.0.2",
"typescript": "5.0.4",
"webpack-cli": "5.1.1",
"workbox-cli": "6.5.4"
}
}
2 changes: 1 addition & 1 deletion background-sync/client/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const routes: Routes = [

@NgModule({
imports: [
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules, useHash: true })
RouterModule.forRoot(routes, {preloadingStrategy: PreloadAllModules, useHash: true})
],
exports: [RouterModule]
})
Expand Down
14 changes: 8 additions & 6 deletions background-sync/client/src/app/pages/edit/edit.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@

<ion-content class="ion-padding">
<form #f="ngForm" (ngSubmit)="save(f)">
<ion-list>
<ion-list lines="none">
<ion-item>
<ion-label position="stacked">Subject *</ion-label>
<ion-input #subject="ngModel" [ngModel]="todo?.subject" name="subject" [required]="true" ></ion-input>
<ion-input #subject="ngModel" [ngModel]="todo?.subject" [required]="true" errorText="Subject is required"
label="Subject" labelPlacement="stacked" name="subject"></ion-input>
</ion-item>

<ion-item>
<ion-label position="stacked">Description</ion-label>
<ion-input [ngModel]="todo?.description" name="description"></ion-input>
<ion-input [ngModel]="todo?.description" errorText="Description is required"
label="Description" labelPlacement="stacked"
name="description"
></ion-input>
</ion-item>
</ion-list>
<ion-button [disabled]="!f.valid" expand="full" [size]="'default'" type="submit">Save</ion-button>
<ion-button [disabled]="!f.valid" [size]="'default'" expand="full" type="submit">Save</ion-button>
<div *ngIf="!subject.valid && subject.touched" class="errorMessage ion-margin-top">Please enter a Subject</div>
</form>
</ion-content>
2 changes: 1 addition & 1 deletion background-sync/client/src/app/pages/home/home.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</ion-title>
<ion-buttons slot="end">
<ion-button (click)="addTodo()">
<ion-icon name="add-outline" [size]="'large'"></ion-icon>
<ion-icon [size]="'large'" name="add-outline"></ion-icon>
</ion-button>
</ion-buttons>
</ion-toolbar>
Expand Down
55 changes: 55 additions & 0 deletions background-sync/client/src/polyfills.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
* file.
*
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
* automatically update themselves. This includes recent versions of Safari, Chrome (including
* Opera), Edge on the desktop, and iOS and Chrome on mobile.
*
* Learn more in https://angular.io/guide/browser-support
*/

/***************************************************************************************************
* BROWSER POLYFILLS
*/

/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
* because those flags need to be set before `zone.js` being loaded, and webpack
* will put import in the top of bundle, so user need to create a separate file
* in this directory (for example: zone-flags.ts), and put the following flags
* into that file, and then add the following code before importing zone.js.
* import './zone-flags';
*
* The flags allowed in zone-flags.ts are listed here.
*
* The following flags will work for all browsers.
*
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
*
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
* with the following flag, it will bypass `zone.js` patch for IE/Edge
*
* (window as any).__Zone_enable_cross_context_check = true;
*
*/

import './zone-flags';

/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js'; // Included with Angular CLI.


/***************************************************************************************************
* APPLICATION IMPORTS
*/
20 changes: 10 additions & 10 deletions background-sync/client/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
*/

/* Core CSS required for Ionic components to work properly */
@import '~@ionic/angular/css/core.css';
@import "@ionic/angular/css/core.css";

/* Basic CSS for apps built with Ionic */
@import '~@ionic/angular/css/normalize.css';
@import '~@ionic/angular/css/structure.css';
@import '~@ionic/angular/css/typography.css';
@import '~@ionic/angular/css/display.css';
@import "@ionic/angular/css/normalize.css";
@import "@ionic/angular/css/structure.css";
@import "@ionic/angular/css/typography.css";
@import '@ionic/angular/css/display.css';

/* Optional CSS utils that can be commented out */
@import '~@ionic/angular/css/padding.css';
@import '~@ionic/angular/css/float-elements.css';
@import '~@ionic/angular/css/text-alignment.css';
@import '~@ionic/angular/css/text-transformation.css';
@import '~@ionic/angular/css/flex-utils.css';
@import "@ionic/angular/css/padding.css";
@import "@ionic/angular/css/float-elements.css";
@import "@ionic/angular/css/text-alignment.css";
@import "@ionic/angular/css/text-transformation.css";
@import "@ionic/angular/css/flex-utils.css";
6 changes: 6 additions & 0 deletions background-sync/client/src/zone-flags.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Prevents Angular change detection from
* running with certain Web Component callbacks
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(window as any).__Zone_disable_customElements = true;
3 changes: 2 additions & 1 deletion background-sync/client/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": []
},
"files": [
"src/main.ts"
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
Expand Down
4 changes: 2 additions & 2 deletions background-sync/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"moduleResolution": "node",
"importHelpers": true,
"target": "ES2022",
"module": "ES2022",
"module": "ES2020",
"useDefineForClassFields": false,
"lib": [
"ES2022",
"es2018",
"dom"
]
},
Expand Down
12 changes: 6 additions & 6 deletions background-sync/clientng/.browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# 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
Chrome >=79
ChromeAndroid >=79
Firefox >=70
Edge >=79
Safari >=14
iOS >=14
19 changes: 10 additions & 9 deletions background-sync/clientng/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-class-suffix": [
"error",
{
Expand All @@ -28,14 +36,6 @@
"prefix": "app",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
]
}
},
Expand All @@ -44,7 +44,8 @@
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {}
}
Expand Down
3 changes: 2 additions & 1 deletion background-sync/clientng/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.angular/cache
/node_modules
.idea/
dist/
/.angular/cache
.DS_Store
4 changes: 1 addition & 3 deletions background-sync/clientng/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"outputPath": "dist/app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
"zone.js"
],
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down
Loading

0 comments on commit 7a24fc5

Please sign in to comment.