Skip to content

Commit

Permalink
Ft/points (#23)
Browse files Browse the repository at this point in the history
* feat: merge points ft

* refactor: Refactor import statements

* feat: Add PointsPopover component

* feat: Add component to Header and MenuSlide

* feat: use lowercase address

* refactor: Update leaderboard page layout

* fix: Add environment variables to .env.local at build
  • Loading branch information
FazioNico authored Dec 26, 2023
1 parent c609764 commit abb30dc
Show file tree
Hide file tree
Showing 25 changed files with 4,228 additions and 1,071 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
echo NEXT_PUBLIC_APP_VERSION=${{ steps.extract_version.outputs.version }} >> .env.local
echo NEXT_PUBLIC_APP_BUILD_DATE=${{ steps.version.outputs.builddate }} >> .env.local
echo NEXT_PUBLIC_APP_IS_PROD=true >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_APIKEY=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_APIKEY }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_AUTHDOMAIN=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_AUTHDOMAIN }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_PROJECTID=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_PROJECTID }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_STORAGEBUCKET=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_STORAGEBUCKET }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_MESSAGINGSENDERID=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_MESSAGINGSENDERID }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_APPID=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_APPID }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_DATABASEURL=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_DATABASEURL }} >> .env.local
npm ci && npm run build
env:
CI: false
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ jobs:
echo NEXT_PUBLIC_APP_VERSION=${{ steps.extract_version.outputs.version }} >> .env.local
echo NEXT_PUBLIC_APP_BUILD_DATE=${{ steps.version.outputs.builddate }} >> .env.local
echo NEXT_PUBLIC_APP_IS_PROD=true >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_APIKEY=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_APIKEY }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_AUTHDOMAIN=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_AUTHDOMAIN }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_PROJECTID=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_PROJECTID }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_STORAGEBUCKET=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_STORAGEBUCKET }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_MESSAGINGSENDERID=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_MESSAGINGSENDERID }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_APPID=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_APPID }} >> .env.local
echo NEXT_PUBLIC_APP_FIREBASE_DATABASEURL=${{ secrets.NEXT_PUBLIC_APP_FIREBASE_DATABASEURL }} >> .env.local
npm ci && npm run build
env:
CI: false
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ yarn-error.log*
*.cache
.next

press-paper
rfp
.firebase/
24 changes: 24 additions & 0 deletions firebase.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getDatabase } from "firebase/database";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: process.env.NEXT_PUBLIC_APP_FIREBASE_APIKEY,
authDomain: process.env.NEXT_PUBLIC_APP_FIREBASE_AUTHDOMAIN,
projectId: process.env.NEXT_PUBLIC_APP_FIREBASE_PROJECTID,
storageBucket: process.env.NEXT_PUBLIC_APP_FIREBASE_STORAGEBUCKET,
messagingSenderId: process.env.APP_FIREBASE_MESSAGINGSENDERID,
appId: process.env.NEXT_PUBLIC_APP_FIREBASE_APPID,
databaseURL: process.env.NEXT_PUBLIC_APP_FIREBASE_DATABASEURL,
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);

// Initialize Realtime Database and get a reference to the service
const database = getDatabase(app);

export { database }
Loading

0 comments on commit abb30dc

Please sign in to comment.