Skip to content

Commit

Permalink
add firebase deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kubo550 committed May 5, 2024
1 parent c20989c commit 8194f14
Show file tree
Hide file tree
Showing 6 changed files with 159 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
registerSW.js,1714900052119,5b6445b5215737c53ef0d379c151d57de165a056de2d1c5812ed614f158ebcbd
sw.js,1714900053139,2ff110103557437dc01ca9a1823966eb4c3e518119cc46700b29908c26c5abbd
404.html,1714900051777,b6abfbdc894d37c260154e281499dc6415bb6ad76b32f01ef94dee93aa897ac4
template.csv,1714900051779,c7eed6d13141fe54b37dbf295435507dffb62ee71aba1ddfd2b226738f5b1389
manifest.webmanifest,1714900052118,06d7df44bcca07823b4fe3f067bf54be4c60e08c969d526eaa260e6f65e227a0
index.html,1714900052119,f0fbb7bef68ce699bd3eebf51e9c9ceccb0869a9244c5363e06494711b5a7161
favicon.ico,1714900051777,7a1a72943a1b2d7ed41d75574715a454ac9bfb21b636100c59ccd713ca3e86e1
workbox-4b7ad3f1.js,1714900053139,20371b4c0dd9bdd53a320414e4f75f2140d112bef9fe082d8f0534a51109ac4e
template-image.png,1714900051779,e255e7c85e1b63b5694a6dc4d5e42f5a58552a55fab72169d7df36e0004ce42c
icons/512.png,1714900051778,4230c6aaf0e4f5afa2c850f496a06cdb675dfc3b9a5a4bb047bb308af4ff0381
assets/materialdesignicons-webfont-31010194.woff2,1714900052118,15e0bd79641701d1fec5d018a4fe87bb9db6325a3e10752748e3adb034fa2cbd
assets/materialdesignicons-webfont-28c8f97f.woff,1714900052119,c8caf89d8f3b0f7469fd8153b64df5d45a70c33f2cdfaef10a1dd63d36fb8ccd
assets/index-c0c9562d.js,1714900052119,75b5bd3e7374e6949e96f41b3022840a63a9cfd39bd487312308637fa190711b
assets/materialdesignicons-webfont-be825c12.ttf,1714900052119,d47f8405007ddb7e8364e7752ff79c2859a3597ef33151df55cc262ec530c11c
assets/materialdesignicons-webfont-5159a347.eot,1714900052119,33bb9a9f9578044211abb3c9da0cb305fae215366216174ed632e4594bff495f
assets/index-ef5846dc.css,1714900052119,476dc23544984a51ee6828b6bad8950c74771f636894adc5afa6af3e9f63f6c4
6 changes: 6 additions & 0 deletions .firebase/hosting.cHVibGlj.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
404.html,1714899737172,b6abfbdc894d37c260154e281499dc6415bb6ad76b32f01ef94dee93aa897ac4
template.csv,1706300310790,c7eed6d13141fe54b37dbf295435507dffb62ee71aba1ddfd2b226738f5b1389
index.html,1714899737466,fbabc8903cf600668ac2fc097d2e3b9f13eaf4465607316329d612071708ef94
favicon.ico,1706300310789,7a1a72943a1b2d7ed41d75574715a454ac9bfb21b636100c59ccd713ca3e86e1
template-image.png,1706300310790,e255e7c85e1b63b5694a6dc4d5e42f5a58552a55fab72169d7df36e0004ce42c
icons/512.png,1714852545927,4230c6aaf0e4f5afa2c850f496a06cdb675dfc3b9a5a4bb047bb308af4ff0381
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "notefy-bae5d"
}
}
10 changes: 10 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
33 changes: 33 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Not Found</title>

<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; }
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
@media (max-width: 600px) {
body, #message { margin-top: 0; background: white; box-shadow: none; }
body { border-top: 16px solid #ffa100; }
}
</style>
</head>
<body>
<div id="message">
<h2>404</h2>
<h1>Page Not Found</h1>
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
<h3>Why am I seeing this?</h3>
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p>
</div>
</body>
</html>
89 changes: 89 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to Firebase Hosting</title>

<!-- update the version number as needed -->
<script defer src="/__/firebase/10.11.1/firebase-app-compat.js"></script>
<!-- include only the Firebase features as you need -->
<script defer src="/__/firebase/10.11.1/firebase-auth-compat.js"></script>
<script defer src="/__/firebase/10.11.1/firebase-database-compat.js"></script>
<script defer src="/__/firebase/10.11.1/firebase-firestore-compat.js"></script>
<script defer src="/__/firebase/10.11.1/firebase-functions-compat.js"></script>
<script defer src="/__/firebase/10.11.1/firebase-messaging-compat.js"></script>
<script defer src="/__/firebase/10.11.1/firebase-storage-compat.js"></script>
<script defer src="/__/firebase/10.11.1/firebase-analytics-compat.js"></script>
<script defer src="/__/firebase/10.11.1/firebase-remote-config-compat.js"></script>
<script defer src="/__/firebase/10.11.1/firebase-performance-compat.js"></script>
<!--
initialize the SDK after all desired features are loaded, set useEmulator to false
to avoid connecting the SDK to running emulators.
-->
<script defer src="/__/firebase/init.js?useEmulator=true"></script>

<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px; border-radius: 3px; }
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
@media (max-width: 600px) {
body, #message { margin-top: 0; background: white; box-shadow: none; }
body { border-top: 16px solid #ffa100; }
}
</style>
</head>
<body>
<div id="message">
<h2>Welcome</h2>
<h1>Firebase Hosting Setup Complete</h1>
<p>You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!</p>
<a target="_blank" href="https://firebase.google.com/docs/hosting/">Open Hosting Documentation</a>
</div>
<p id="load">Firebase SDK Loading&hellip;</p>

<script>
document.addEventListener('DOMContentLoaded', function() {
const loadEl = document.querySelector('#load');
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
// // The Firebase SDK is initialized and available here!
//
// firebase.auth().onAuthStateChanged(user => { });
// firebase.database().ref('/path/to/ref').on('value', snapshot => { });
// firebase.firestore().doc('/foo/bar').get().then(() => { });
// firebase.functions().httpsCallable('yourFunction')().then(() => { });
// firebase.messaging().requestPermission().then(() => { });
// firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
// firebase.analytics(); // call to activate
// firebase.analytics().logEvent('tutorial_completed');
// firebase.performance(); // call to activate
//
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥

try {
let app = firebase.app();
let features = [
'auth',
'database',
'firestore',
'functions',
'messaging',
'storage',
'analytics',
'remoteConfig',
'performance',
].filter(feature => typeof app[feature] === 'function');
loadEl.textContent = `Firebase SDK loaded with ${features.join(', ')}`;
} catch (e) {
console.error(e);
loadEl.textContent = 'Error loading the Firebase SDK, check the console.';
}
});
</script>
</body>
</html>

0 comments on commit 8194f14

Please sign in to comment.