Skip to content

Commit

Permalink
Merge pull request #11 from Service-Soft/dev
Browse files Browse the repository at this point in the history
Release 16.0.0
  • Loading branch information
tim-fabian committed Aug 15, 2023
2 parents 9fe0bae + ef13634 commit 0e0b400
Show file tree
Hide file tree
Showing 13 changed files with 8,398 additions and 20,272 deletions.
14 changes: 7 additions & 7 deletions api/api.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable no-console */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @cspell/spellchecker */
import * as bodyParser from 'body-parser';
import * as cors from 'cors';
import * as express from 'express';
import { Application } from 'express';
import * as SECRETS from './secrets.json';
// import {readAllLessons} from './read-all-lessons.route';
// import {addPushSubscriber} from './add-push-subscriber.route';
// import {sendNewsletter} from './send-newsletter.route';
import * as bodyParser from 'body-parser';
import * as webpush from 'web-push';
import { sendNotification } from './send-notification.route';
import { addPushSubscription } from './add-push-subscriber.route';
import { PUSH_SUBSCRIPTIONS } from './in-memory-db';
import * as cors from 'cors';
import { SECRETS } from './secrets';
import { sendNotification } from './send-notification.route';

webpush.setVapidDetails(
`mailto:${SECRETS.email}`,
Expand Down
26,289 changes: 7,699 additions & 18,590 deletions package-lock.json

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,52 +28,52 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^15.1.1",
"@angular/cdk": "^15.1.1",
"@angular/common": "^15.1.1",
"@angular/compiler": "^15.1.1",
"@angular/core": "^15.1.1",
"@angular/forms": "^15.1.1",
"@angular/material": "^15.1.1",
"@angular/platform-browser": "^15.1.1",
"@angular/platform-browser-dynamic": "^15.1.1",
"@angular/router": "^15.1.1",
"@angular/service-worker": "^15.1.1",
"@angular/animations": "^16.2.0",
"@angular/cdk": "^16.2.0",
"@angular/common": "^16.2.0",
"@angular/compiler": "^16.2.0",
"@angular/core": "^16.2.0",
"@angular/forms": "^16.2.0",
"@angular/material": "^16.2.0",
"@angular/platform-browser": "^16.2.0",
"@angular/platform-browser-dynamic": "^16.2.0",
"@angular/router": "^16.2.0",
"@angular/service-worker": "^16.2.0",
"cors": "^2.8.5",
"dompurify": "^2.4.3",
"dompurify": "^3.0.5",
"lodash": "^4.17.21",
"ngx-material-navigation": "^15.0.0",
"rxjs": "~7.8.0",
"tslib": "^2.4.1",
"ngx-material-navigation": "^16.0.0",
"rxjs": "~7.8.1",
"tslib": "^2.6.1",
"uuid": "^9.0.0",
"web-push": "^3.5.0",
"zone.js": "~0.12.0"
"web-push": "^3.6.4",
"zone.js": "~0.13.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "^15.1.2",
"@angular/cli": "~15.1.2",
"@angular/compiler-cli": "^15.1.1",
"@types/dompurify": "^2.4.0",
"@types/jasmine": "~4.3.1",
"@types/lodash": "^4.14.191",
"@types/uuid": "^9.0.0",
"@angular-devkit/build-angular": "^16.2.0",
"@angular/cli": "~16.2.0",
"@angular/compiler-cli": "^16.2.0",
"@types/dompurify": "^3.0.2",
"@types/jasmine": "~4.3.5",
"@types/lodash": "^4.14.197",
"@types/uuid": "^9.0.2",
"@types/web-push": "^3.3.2",
"concurrently": "^7.6.0",
"eslint-config-service-soft": "^1.0.8",
"concurrently": "^8.2.0",
"eslint-config-service-soft": "^1.1.0",
"http-server": "^14.1.1",
"jasmine-core": "~4.5.0",
"karma": "~6.4.1",
"karma-chrome-launcher": "~3.1.1",
"karma-coverage": "~2.2.0",
"jasmine-core": "~5.1.0",
"karma": "~6.4.2",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.1",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"karma-jasmine-html-reporter": "~2.1.0",
"ncp": "^2.0.0",
"ng-packagr": "^15.1.1",
"nodemon": "^2.0.20",
"ng-packagr": "^16.2.0",
"nodemon": "^3.0.1",
"npm-run-all": "^4.1.5",
"rimraf": "^4.1.1",
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"typescript": "~4.8.3",
"typescript": "~5.1.6",
"wait-on": "^7.0.1"
}
}
5 changes: 3 additions & 2 deletions projects/ngx-pwa-showcase/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable jsdoc/require-jsdoc */
import { AfterContentChecked, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { FooterRow, NavbarRow } from 'ngx-material-navigation';
import { navbarRows } from './navigation.data';
import { OfflineService } from './services/offline.service';
import { UpdateService } from './services/update.service';
Expand All @@ -11,8 +12,8 @@ import { UpdateService } from './services/update.service';
})
export class AppComponent implements OnInit, AfterContentChecked {

navbarRows = navbarRows;
footerRows = [];
navbarRows: NavbarRow[] = navbarRows;
footerRows: FooterRow[] = [];

@ViewChild('footer', { read: ElementRef })
footer?: ElementRef<HTMLElement>;
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-pwa-showcase/src/app/navigation.data.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { NavbarRow } from 'ngx-material-navigation';
import { NavElementTypes, NavbarRow } from 'ngx-material-navigation';

export const navbarRows: NavbarRow[] = [
{
elements: [
{
type: 'titleWithInternalLink',
type: NavElementTypes.TITLE_WITH_INTERNAL_LINK,
title: 'Home',
link: {
route: '/'
Expand Down
16 changes: 8 additions & 8 deletions projects/ngx-pwa-showcase/src/app/pages/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ <h1>Home</h1>

<hr>

<button mat-raised-button (click)="offlineService.isOffline = !offlineService.isOffline">Toggle Offline</button>
<button type="button" mat-raised-button (click)="offlineService.isOffline = !offlineService.isOffline">Toggle Offline</button>

<button style="margin-left: 20px;" mat-raised-button (click)="sendPostRequest()">POST</button>
<button style="margin-left: 20px;" mat-raised-button (click)="sendPatchRequest()">PATCH</button>
<button style="margin-left: 20px;" mat-raised-button (click)="sendDeleteRequest()">DELETE</button>
<button type="button" style="margin-left: 20px;" mat-raised-button (click)="sendPostRequest()">POST</button>
<button type="button" style="margin-left: 20px;" mat-raised-button (click)="sendPatchRequest()">PATCH</button>
<button type="button" style="margin-left: 20px;" mat-raised-button (click)="sendDeleteRequest()">DELETE</button>

<hr>

<button mat-raised-button (click)="notificationService.askForNotificationPermission()">Ask for Push Notification</button>
<button type="button" mat-raised-button (click)="notificationService.askForNotificationPermission()">Ask for Push Notification</button>

<button mat-raised-button style="margin-left: 20px;" (click)="sendPushNotification()">Send push notification</button>
<button type="button" mat-raised-button style="margin-left: 20px;" (click)="sendPushNotification()">Send push notification</button>

<hr>

<button mat-raised-button (click)="updateService.checkForUpdates()">Manually check for updates</button>
<button type="button" mat-raised-button (click)="updateService.checkForUpdates()">Manually check for updates</button>

<button mat-raised-button style="margin-left: 20px;" (click)="openVersionReadyDialog()">Open Version Ready Dialog</button>
<button type="button" mat-raised-button style="margin-left: 20px;" (click)="openVersionReadyDialog()">Open Version Ready Dialog</button>
Loading

0 comments on commit 0e0b400

Please sign in to comment.