diff --git a/.firebase/hosting.cHVibGlj.cache b/.firebase/hosting.cHVibGlj.cache new file mode 100644 index 0000000..0a52f79 --- /dev/null +++ b/.firebase/hosting.cHVibGlj.cache @@ -0,0 +1,7 @@ +favicon.ico,1672327965581,b72f7455f00e4e58792d2bca892abb068e2213838c0316d6b7a0d6d16acd1955 +index.html,1673575609211,1392f82d93c910f55bb9912110418313a1d8cb298446c65511cc70b8c7781e0b +logo192.png,1672327965583,caff018b7f1e8fd481eb1c50d75b0ef236bcd5078b1d15c8bb348453fee30293 +manifest.json,1672327965584,341d52628782f8ac9290bbfc43298afccb47b7cbfcee146ae30cf0f46bc30900 +404.html,1673575516069,05cbc6f94d7a69ce2e29646eab13be2c884e61ba93e3094df5028866876d18b3 +robots.txt,1672327965585,391d14b3c2f8c9143a27a28c7399585142228d4d1bdbe2c87ac946de411fa9a2 +logo512.png,1672327965583,191fc21360b4ccfb1cda11a1efb97f489ed22672ca83f4064316802bbfdd750e diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..c0856a2 --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "indexsc-80164" + } +} diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml new file mode 100644 index 0000000..37ae855 --- /dev/null +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -0,0 +1,17 @@ +# 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 +jobs: + build_and_preview: + if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: npm ci && npm run build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_INDEXSC_80164 }}' + projectId: indexsc-80164 diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..93fb369 --- /dev/null +++ b/firebase.json @@ -0,0 +1,16 @@ +{ + "hosting": { + "public": "public", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + } +} diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..829eda8 --- /dev/null +++ b/public/404.html @@ -0,0 +1,33 @@ + + + + + + Page Not Found + + + + +
+

404

+

Page Not Found

+

The specified file was not found on this website. Please check the URL for mistakes and try again.

+

Why am I seeing this?

+

This page was generated by the Firebase Command-Line Interface. To modify it, edit the 404.html file in your project's configured public directory.

+
+ + diff --git a/public/index.html b/public/index.html index aa069f2..d763056 100644 --- a/public/index.html +++ b/public/index.html @@ -1,43 +1,89 @@ - + - - - - - - - - - + + + + + + + + + + + + - React App + + + - -
- + 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.'; + } + }); +