Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbistuer committed Jul 30, 2024
1 parent a0e1947 commit 42dc147
Show file tree
Hide file tree
Showing 20 changed files with 236 additions and 12 deletions.
24 changes: 24 additions & 0 deletions .firebase/hosting.d3d3.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
worker-basic.min.js,1722329792875,92b0fb398932d4bb9e11a003895aa4a08fff8e3c4faea2bc2615a51fd8e554cf
runtime.7c036373805a76a9.js,1722329792670,da78a6415d62fad6b7f963fda1100ae4826c6cd9509de5aabedde6940ab2981c
ngsw.json,1722329792874,574e39411a2ff88d6cbfd3a98bc748ff53396a4b435b7b6050e2cabb0436b000
safety-worker.js,1722329792875,92b0fb398932d4bb9e11a003895aa4a08fff8e3c4faea2bc2615a51fd8e554cf
index.html,1722329792870,0b5bce8d07d304db9067f87d3f519b99b94c6b0627143dacd969341905cc401a
styles.d2b228d0a7e34779.css,1722329792670,53670a260dd2f0dc9970d49172ce903ec4d14f199f488c798a8bcfc2b82a88b7
common.4e81f8a8b4d44b5c.js,1722329792670,6bd152aa70bcd46154e57783e3bb02831d222fe53630a2eb22ff3ba0befa4626
713.1db340ea554b548f.js,1722329792670,6a1484647bb9a9d4e40242a7e2b0c22c31151872c48469bf76f687ee5c5d14fc
710.320a96ad3e848892.js,1722329792670,a612a488b1dfe6d018db20f8a7d86ec99b9d374d7c9c65890eb150ce93129cc2
699.2aebcd5be8f69b5f.js,1722329792670,2298a2eff75568335f477b21088ab14f19484a2d47b1d09b80dad75cfe537167
687.2b58e33ad999b317.js,1722329792670,354da930ff87c4885b89d8ab2ffa708ec4a50f236a6bac02a1b21d020e8be222
polyfills.d2cb04749a7117ac.js,1722329792670,9456b785b1f03e0749b152acd40e1ed65667ab00eb345a5f7cef904bb208276c
676.373789979e91a82a.js,1722329792670,c6c8540d86c0dfaf15af4f8ee09f61251a1f33b6046ffd61b0b6820deec94014
631.468b35d3c0870199.js,1722329792670,de54baf852d37f9fca3f486b8984c5c80c5285e51ec8510cee5dcbf6336f0a06
499.dee85932469231d0.js,1722329792670,505b8b944b9d3d7a70c75d20c89330d6511e29b1dafd971cb2b3ffb5732fabda
338.12fcf3e57ead2a20.js,1722329792670,3dbf8b449c11ec5d8a0c45f5daa0d76fb004003ecf9a96f0daf7887c9ec37960
402.6bdae5c18a3fd79d.js,1722329792670,8b9f84d21afdd1135be9237f6ec4df0654fa0fef51d59ffd227cdc1a9e58ca3d
38.2f77b6b074ccfa0e.js,1722329792670,77fb471a59d62c17dd2b865e3b473f7137339cbd8f41a2219d9b6090f1c62235
179.9fa9a4cb4886d094.js,1722329792670,947dd4c4fe4d7f5e2e87a985ab966d13c80f2a0029e09d30f4d75d66fea60f91
assets/shapes.svg,1722329792833,3f7c9a03e1a043e4e38d3c3ed5b73ebfd142e92df9be7eabc89eace85937beff
assets/icon/favicon.png,1722329792833,e049fedb00300bbf667bbee209989fdeade70659e2e1c853bd23e8b69d094b7a
3rdpartylicenses.txt,1722329792670,a36e430e7cd6b920aeeeecc988dc90ff62c0fe687b447fcefb6540af75323d23
ngsw-worker.js,1722329792875,f3080f0c369baef8a672e297fffcc4437d9f31e82de41934a48870712d23ee4b
main.8191bcf9d3cafbd1.js,1722329792669,29977436eea95d30330fa0cec2753039191f7d1af12d4bd135c3eda3e2864682
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "testcifo02"
}
}
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_TESTCIFO02 }}
channelId: live
projectId: testcifo02
21 changes: 21 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
on: pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_TESTCIFO02 }}
projectId: testcifo02
4 changes: 3 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
}
],
"styles": ["src/global.scss", "src/theme/variables.scss"],
"scripts": []
"scripts": [],
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
},
"configurations": {
"production": {
Expand Down
36 changes: 36 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"hosting": {
"public": "www",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "/build/app/**",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000"
}
]
},
{
"source": "ngsw-worker.js",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
}
]
}
}
29 changes: 29 additions & 0 deletions ngsw-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.webmanifest",
"/*.css",
"/*.js"
]
}
},
{
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/**/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
]
}
}
]
}
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@angular/platform-browser": "^18.0.0",
"@angular/platform-browser-dynamic": "^18.0.0",
"@angular/router": "^18.0.0",
"@angular/service-worker": "^18.0.0",
"@capacitor/app": "6.0.0",
"@capacitor/core": "6.1.1",
"@capacitor/haptics": "6.0.0",
Expand Down Expand Up @@ -61,4 +62,4 @@
"typescript": "~5.4.0"
},
"description": "An Ionic project"
}
}
Binary file added public/icons/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-384x384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/icon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions public/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"name": "app",
"short_name": "app",
"theme_color": "#1976d2",
"background_color": "#fafafa",
"display": "standalone",
"scope": "./",
"start_url": "./",
"icons": [
{
"src": "assets/icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "assets/icons/icon-96x96.png",
"sizes": "96x96",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "assets/icons/icon-128x128.png",
"sizes": "128x128",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "assets/icons/icon-144x144.png",
"sizes": "144x144",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "assets/icons/icon-152x152.png",
"sizes": "152x152",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "assets/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "assets/icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "assets/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable any"
}
]
}
21 changes: 12 additions & 9 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,28 @@
<html lang="en">

<head>
<meta charset="utf-8" />
<meta charset="utf-8"/>
<title>Ionic App</title>

<base href="/" />
<base href="/"/>

<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" />
<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"/>

<link rel="icon" type="image/png" href="assets/icon/favicon.png" />
<link rel="icon" type="image/png" href="assets/icon/favicon.png"/>

<!-- 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" />
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<link rel="manifest" href="manifest.webmanifest">
<meta name="theme-color" content="#1976d2">
</head>

<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
</body>

</html>
7 changes: 6 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ import { IonicRouteStrategy, provideIonicAngular } from '@ionic/angular/standalo

import { routes } from './app/app.routes';
import { AppComponent } from './app/app.component';
import { isDevMode } from '@angular/core';
import { provideServiceWorker } from '@angular/service-worker';

bootstrapApplication(AppComponent, {
providers: [
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
provideIonicAngular(),
provideRouter(routes, withPreloading(PreloadAllModules)),
provideRouter(routes, withPreloading(PreloadAllModules)), provideServiceWorker('ngsw-worker.js', {
enabled: !isDevMode(),
registrationStrategy: 'registerWhenStable:30000'
}),
],
});

0 comments on commit 42dc147

Please sign in to comment.