-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch command usage in GitHub Pages deployment action (Some patching …
…still required for PWA)
- Loading branch information
Showing
22 changed files
with
125 additions
and
62 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
This file was deleted.
Oops, something went wrong.
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,54 @@ | ||
<!DOCTYPE html> | ||
<html lang="%LANG_ISO_CODE%"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta httpEquiv="X-UA-Compatible" content="IE=edge"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/> | ||
<link rel="manifest" href="/manifest.json"/> | ||
<title>%WEB_TITLE%</title> | ||
<!-- Workbox Script for PWA Support --> | ||
<script> | ||
if("serviceWorker" in navigator) { | ||
window.addEventListener("load", () => { | ||
navigator.serviceWorker | ||
.register("/sw.js") | ||
.then(registration => { | ||
console.log("Service Worker registered with scope:", registration.scope); | ||
}) | ||
.catch(error => { | ||
console.error("Service Worker registration failed:", error); | ||
}); | ||
}); | ||
} | ||
</script> | ||
<!-- The `react-native-web` recommended style reset: https://necolas.github.io/react-native-web/docs/setup/#root-element --> | ||
<style id="expo-reset"> | ||
/* These styles make the body full-height */ | ||
html, | ||
body { | ||
height: 100%; | ||
} | ||
|
||
/* These styles disable body scrolling if you are using <ScrollView> */ | ||
body { | ||
overflow: hidden; | ||
} | ||
|
||
/* These styles make the root element full-height */ | ||
#root { | ||
display: flex; | ||
height: 100%; | ||
flex: 1; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<!-- Use static rendering with Expo Router to support running without JavaScript. --> | ||
<noscript> | ||
You need to enable JavaScript to run this app. | ||
</noscript> | ||
<!-- The root element for your Expo app. --> | ||
<div id="root"></div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"background_color": "#FFFFFF", | ||
"description": "Team4159 CardinalBotics Sign-In App", | ||
"display": "standalone", | ||
"lang": "en-US", | ||
"name": "CardinalHours", | ||
"scope": "/ReactNativeCardinalBoticsApp/", | ||
"short_name": "CardinalHours", | ||
"start_url": "/ReactNativeCardinalBoticsApp/", | ||
"theme_color": "#FFFFFF", | ||
"orientation": "portrait", | ||
"related_applications": [ | ||
{ | ||
"platform": "play", | ||
"url": "https://play.google.com/store/apps/details?id=com.team4159.cardinalboticsapp", | ||
"id": "com.team4159.cardinalboticsapp" | ||
} | ||
], | ||
"prefer_related_applications": true, | ||
"icons": [ | ||
{ | ||
"src": "/pwa-icons/chrome-icon/chrome-icon-144.png", | ||
"sizes": "144x144", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/pwa-icons/chrome-icon/chrome-icon-192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/pwa-icons/chrome-icon/chrome-icon-512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/pwa-icons/adaptable-icon/adaptable-icon-144.png", | ||
"sizes": "144x144", | ||
"type": "image/png", | ||
"purpose": "maskable" | ||
}, | ||
{ | ||
"src": "/pwa-icons/adaptable-icon/adaptable-icon-192.png", | ||
"sizes": "192x192", | ||
"type": "image/png", | ||
"purpose": "maskable" | ||
}, | ||
{ | ||
"src": "/pwa-icons/adaptable-icon/adaptable-icon-512.png", | ||
"sizes": "512x512", | ||
"type": "image/png", | ||
"purpose": "maskable" | ||
} | ||
] | ||
} |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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,11 @@ | ||
module.exports = { | ||
globDirectory: 'web-build/', | ||
globPatterns: [ | ||
'**/*.{js,html,png,ico,json}' | ||
], | ||
swDest: 'web-build/sw.js', | ||
ignoreURLParametersMatching: [ | ||
/^utm_/, | ||
/^fbclid$/ | ||
] | ||
}; |