Skip to content

Commit

Permalink
worked on the profile button and the logout fuction
Browse files Browse the repository at this point in the history
  • Loading branch information
Codebox124 committed Nov 10, 2023
2 parents cc0566b + 34d9147 commit b9512e2
Show file tree
Hide file tree
Showing 59 changed files with 8,093 additions and 137 deletions.
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@ DATABASE_URL=

NEXT_PUBLIC_LH_API=
NEXT_PUBLIC_WEB_TOKEN=


NEXT_PUBLIC_PARTICLE_NETWORK_PROJECT_ID=
NEXT_PUBLIC_PARTICLE_NETWORK_CLIENT_KEY=
NEXT_PUBLIC_PARTICLE_NETWORK_APP_ID=


NEXT_PUBLIC_PAYMENT_CONTRACT_ADDRESS=
NEXT_PUBLIC_WALLET_CONTRACT_ADDRESS=

27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/0-task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Task
title: "task: "
description: Create a task for the project
labels: ['task']

body:
- type: markdown
attributes:
value: |
Here is the task!
- type: textarea
id: description
attributes:
label: Task description
description: A clear and concise description of the task
value: |
- [ ]
validations:
required: true

- type: input
attributes:
label: Related Issues
placeholder: |
Relates #21
validations:
required: false
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/10-proposal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Proposals
description: Submit a proposal for consideration
title: 'proposal: '
labels: ['proposal']


body:
- type: markdown
attributes:
value: |
## Proposals
Thanks for helping us improve! 🙏 Please follow the sections in the template and provide as much information.
- type: textarea
id: summary
attributes:
label: Summary
description: Briefly summarize the proposal.
validations:
required: true

- type: textarea
id: benefits
attributes:
label: Benefits
description: Explain the benefits and potential impact of implementing the proposal.
validations:
required: false

- type: textarea
id: implementation-plan
attributes:
label: Implementation Plan
description: Outline the steps or phases required to implement the proposal.
validations:
required: false

- type: textarea
id: additional-info
attributes:
label: Additional Information
description: Include any additional information or references that support the proposal.
validations:
required: false



47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Feature request
description: Suggest an idea for this project
title: 'feature-request:'
labels: ['enhancement','feature-request','feature']
assignees: ['Nasfame']

body:
- type: markdown
attributes:
value: |
## Feature Request
Thanks for helping us improve! 🙏 Please follow the sections in the template and provide as much information.
- type: input
attributes:
label: Related Issues
placeholder: |
Relates #21
validations:
required: false

- type: textarea
id: feature_request
attributes:
label: Summary
description: Briefly summarize the feature.
validations:
required: true

- type: textarea
id: implementation-plan
attributes:
label: Implementation Plan
description: Outline the steps or phases required to implement the feature.
validations:
required: false

- type: textarea
id: additional-info
attributes:
label: Additional Information
description: Include any additional information or references that support the proposal.
validations:
required: false



File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

<!--## Additional Information-->

To be reviewed by: @Nasfame
To be reviewed by: @Nasfame @techyNonso
File renamed without changes.
45 changes: 45 additions & 0 deletions .github/workflows/build[hardhat].yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Hardhat

on:
push:

pull_request:

workflow_dispatch:

defaults:
run:
shell: bash
working-directory: ./hardhat

env:
envfile: ${{secrets.ENVHardhat}}

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8.6.6

- uses: actions/setup-node@v3
with:
cache: "pnpm"
node-version: "20.9.0"
check-latest: true

- name: Write environment
run: |
echo $envfile > .env
sed -i 's/ /\n/g' .env
source .env
- name: Install dependencies
run: pnpm install

- name: Compile contracts
run: npx hardhat compile
File renamed without changes.
65 changes: 65 additions & 0 deletions .github/workflows/cross[hardhat].yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Cross Hardhat

on:
push:
branches:
- main
tags:

pull_request:
branches:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
working-directory: ./hardhat

env:
envfile: ${{secrets.ENVHardhat}}
MODE: test
NODE_ENV: testing

jobs:
build:
timeout-minutes: 10

strategy:
max-parallel: 2
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18, 19, 20]
architecture: [x64] #, arm64 ] # arm,

runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8.6.6

- uses: actions/setup-node@v3
with:
cache: "pnpm"
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
check-latest: true

- name: Write environment
run: |
echo $envfile > .env.tmp
sed 's/ /\n/g' .env.tmp > .env
- name: Install dependencies
run: pnpm install

- name: Build
run: npm run build
70 changes: 70 additions & 0 deletions .github/workflows/deploy-gcr[hardhat].yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Deploy Hardhat to GCR
on:
push:
branches:

tags:

workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
PUSH_TAG: ${{github.repository}}:latest
REPO: ${{github.repository}}

defaults:
run:
shell: bash
working-directory: ./hardhat

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
# base for tags
images: |
${{ env.REGISTRY }}/${{ github.repository }}/hardhat
tags: |
type=schedule
type=sha,format=short
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Evaluate all tags
run: |
echo meta tags
echo "${{ steps.meta.outputs.tags }}"
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels}}
github-token: ${{github.token}}
# platforms: linux/arm64,linux/amd64 TODO:
File renamed without changes.
38 changes: 38 additions & 0 deletions .github/workflows/docker[hardhat].yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Docker Hardhat
on:
push:
branches:
- main
tags:

pull_request:
branches:

merge_group:
types: [checks_requested]

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
envfile: ${{secrets.ENVHardhat}}
MODE: test
NODE_ENV: testing

defaults:
run:
shell: bash
working-directory: ./hardhat

jobs:
build-docker:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build Docker
run: docker build .
Loading

0 comments on commit b9512e2

Please sign in to comment.