Skip to content

Commit

Permalink
Revert "release: 1.2.0 (#50)"
Browse files Browse the repository at this point in the history
This reverts commit d94253d.
  • Loading branch information
FazioNico authored Jun 25, 2024
1 parent d94253d commit b4025f3
Show file tree
Hide file tree
Showing 177 changed files with 7,114 additions and 18,257 deletions.
4 changes: 2 additions & 2 deletions .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"targets": {
"hexaonelabs": {
"hosting": {
"app-hexa-lite": [
"app-hexa-lite"
"hexa-lite": [
"hexa-lite"
]
}
}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
touch .env.local
echo NEXT_PUBLIC_APP_ONBOARD_APIKEY=${{ secrets.NEXT_PUBLIC_APP_ONBOARD_APIKEY }} >> .env.local
echo NEXT_PUBLIC_APP_ANKR_APIKEY=${{ secrets.NEXT_PUBLIC_APP_ANKR_APIKEY }} >> .env.local
echo NEXT_PUBLIC_APP_COINGECKO_APIKEY=${{ secrets.NEXT_PUBLIC_APP_COINGECKO_APIKEY }} >> .env.local
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
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
touch .env.local
echo NEXT_PUBLIC_APP_ONBOARD_APIKEY=${{ secrets.NEXT_PUBLIC_APP_ONBOARD_APIKEY }} >> .env.local
echo NEXT_PUBLIC_APP_ANKR_APIKEY=${{ secrets.NEXT_PUBLIC_APP_ANKR_APIKEY }} >> .env.local
echo NEXT_PUBLIC_APP_COINGECKO_APIKEY=${{ secrets.NEXT_PUBLIC_APP_COINGECKO_APIKEY }} >> .env.local
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
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ yarn-error.log*
press-paper
rfp
.firebase/
*.log
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Hexa Lite is frictionless, secure, and reliable for everyone to use and enjoy th
- [Ethers.js](https://docs.ethers.io/v5/)
- [Ankr](https://ankr.com/)
- [LiFi](https://li.fi/)
- [Magic](https://magic.link/)
- [Chain Link](https://chain.link/)
- [Lido](https://lido.fi/)
- [Aave](https://aave.com/)
Expand All @@ -58,7 +59,10 @@ Hexa Lite is a web-based platform that can be accessed from any device with a we
Hexa Lite is deployed automatically using Github Actions. The deployment process is triggered when a new push is made to the master branch. The deployment process is managed by [Firebase Hosting](https://firebase.google.com/docs/hosting) and the project is available on [IPFS](https://ipfs.io/) using [Fleek](https://fleek.co/).

## Environment Variables
Hexa Lite uses environment variables to store sensitive data and API keys. The environment variables are stored in a .env file at the root of the project. The .env file is not commited to the repository and is ignored by Git. The .env file must be created manually and the environment variables must be provided by the user. Checkout `./example.env` file for more information about the environment variables that are required.
Hexa Lite uses environment variables to store sensitive data and API keys. The environment variables are stored in a .env file at the root of the project. The .env file is not commited to the repository and is ignored by Git. The .env file must be created manually and the environment variables must be provided by the user. The .env file must contain the following environment variables:

- `REACT_APP_ONBOARD_APIKEY`: Onboard API key
- `REACT_APP_ANKR_APIKEY`: Ankr API key

## Contributing
Contributions are welcome and appreciated. To contribute to Hexa Lite, please fork the repository, create a new branch and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
Expand Down
58 changes: 0 additions & 58 deletions environment.d.ts
Original file line number Diff line number Diff line change
@@ -1,71 +1,13 @@
declare namespace NodeJS {
export interface ProcessEnv {
/**
* API Key for the Onboard API
* @deprecated
*/
readonly NEXT_PUBLIC_APP_ONBOARD_APIKEY: string;

/**
* API Key for the Ankr API
* @description Use this key to access the Ankr API
* to get user EVM Assets List
*/
readonly NEXT_PUBLIC_APP_ANKR_APIKEY: string;

/**
* APP Version
*/
readonly NEXT_PUBLIC_APP_VERSION: string;

/**
* APP Build Date
*/
readonly NEXT_PUBLIC_APP_BUILD_DATE: string;

/**
* APP Environment Production enabled
*/
readonly NEXT_PUBLIC_APP_IS_PROD: string;

/**
* APP Environment is Offline.
* @description This is used for development purposes.
* If this is enabled, the app will not make any API calls and
* will use the mock data instead.
*/
readonly NEXT_PUBLIC_APP_IS_LOCAL: string;

/**
* API Key for the Zerion API
* @description Use this key to access the Zerion API
* to get User EVM Wallet History transactions
*/
readonly NEXT_PUBLIC_APP_ZERION_APIKEY: string;

/**
* API Key for the Coingecko API
* @description Use this key to access the Coingecko API
* to get the latest token prices
*/
readonly NEXT_PUBLIC_APP_COINGECKO_APIKEY: string;

/**
* Enable/Disable Emulator for Firebase
*/
readonly NEXT_PUBLIC_ENABLE_EMULATORS: string;

/**
* FIREBASE Configurations for the Firebase SDK
* @description Following are the configurations required for the Firebase SDK
*/
readonly NEXT_PUBLIC_APP_FIREBASE_APIKEY: string;
readonly NEXT_PUBLIC_APP_FIREBASE_AUTHDOMAIN: string;
readonly NEXT_PUBLIC_APP_FIREBASE_PROJECTID: string;
readonly NEXT_PUBLIC_APP_FIREBASE_STORAGEBUCKET: string;
readonly NEXT_PUBLIC_APP_FIREBASE_MESSAGINGSENDERID: string;
readonly NEXT_PUBLIC_APP_FIREBASE_APPID: string;
readonly NEXT_PUBLIC_APP_FIREBASE_DATABASEURL: string;

}
}
18 changes: 0 additions & 18 deletions example.env

This file was deleted.

37 changes: 7 additions & 30 deletions firebase.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
// Import the functions you need from the SDKs you need
import { FirebaseApp, getApps, initializeApp } from "firebase/app";
import {
Auth,
browserPopupRedirectResolver,
indexedDBLocalPersistence,
initializeAuth,
browserLocalPersistence,
browserSessionPersistence,
getAuth,
connectAuthEmulator,
} from "firebase/auth";
import { Database, connectDatabaseEmulator, getDatabase } from "firebase/database";
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

Expand All @@ -25,23 +15,10 @@ const firebaseConfig = {
databaseURL: process.env.NEXT_PUBLIC_APP_FIREBASE_DATABASEURL,
};

let _app!: FirebaseApp;
let _auth!: Auth;
let _database!: Database;
// Initialize Firebase
const app = initializeApp(firebaseConfig);

if (!getApps().length) {
// Initialize Firebase
_app = initializeApp(firebaseConfig, 'hexa-lite');
// Initialize Realtime Database and get a reference to the service
_database = getDatabase(_app);
// Initialize Auth
_auth = getAuth(_app);
// Emulator setup
if (process.env.NEXT_PUBLIC_ENABLE_EMULATORS === 'true') {
connectDatabaseEmulator(_database, 'localhost', 9000);
connectAuthEmulator(_auth, 'http://127.0.0.1:9099');
}
}
// Initialize Realtime Database and get a reference to the service
const database = getDatabase(app);

export const database = _database;
export const auth = _auth;
export { database }
15 changes: 1 addition & 14 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"hosting": {
"target": "app-hexa-lite",
"target": "hexa-lite",
"public": "build",
"ignore": [
"firebase.json",
Expand All @@ -13,18 +13,5 @@
"destination": "/index.html"
}
]
},
"emulators": {
"auth": {
"port": 9099
},
"database": {
"port": 9000
},
"ui": {
"enabled": true,
"port": 9001
},
"singleProjectMode": true
}
}
4 changes: 0 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@ module.exports = {
'@lifi/wallet-management',
'@0xsquid/widget'
],
compiler: {
// Remove console logs only in production, excluding error logs
removeConsole: process.env.NODE_ENV === "production" ? { exclude: ["error"] } : false
}
}
Loading

0 comments on commit b4025f3

Please sign in to comment.