-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 77c4369
Showing
64 changed files
with
2,556 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# APPS SETTINGS | ||
NEXT_PUBLIC_APP_HOST = | ||
|
||
# GOOGLE VERIFICATION SETTINGS | ||
NEXT_PUBLIC_GOOGLE_VERIFICATION = | ||
|
||
# POSTHOG SETTINGS | ||
NEXT_PUBLIC_POSTHOG_KEY = | ||
NEXT_PUBLIC_POSTHOG_HOST = | ||
NEXT_PUBLIC_POSTHOG_UI_HOST = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": ["next/core-web-vitals", "next/typescript", "prettier"], | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"react/no-unescaped-entities": "off", | ||
"react-hooks/exhaustive-deps": "off", | ||
"@next/next/no-img-element": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
github: [nyomansunima] | ||
ko_fi: nyomansunima | ||
patreon: | ||
open_collective: | ||
tidelift: | ||
community_bridge: | ||
liberapay: | ||
issuehunt: | ||
otechie: | ||
lfx_crowdfunding: | ||
custom: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help me improve to better one | ||
title: 'Bug: ' | ||
labels: ':bug: bug' | ||
assignees: nyomansunima | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
|
||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
|
||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: 'Feature: ' | ||
labels: ':broccoli: feature' | ||
assignees: nyomansunima | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
# Maintain the github action dependencies | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' | ||
labels: | ||
- 'dependencies' | ||
|
||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
commit-message: | ||
prefix: 'npm' | ||
include: 'scope' | ||
labels: | ||
- 'dependencies' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
## What type of PR is this? (check all applicable) | ||
|
||
- [ ] 🚜Refactor | ||
- [ ] ✅ Feature | ||
- [ ] 🐛 Bug Fix | ||
- [ ] 🚀 Optimization | ||
- [ ] 📝 Documentation Update | ||
|
||
## Description | ||
|
||
## Related Tickets & Documents | ||
|
||
- Related Issue # | ||
- Closes # | ||
- Fixed # | ||
|
||
## QA Instructions, Screenshots, Recordings | ||
|
||
_Please replace this line with instructions on how to test your changes, a note | ||
on the devices and browsers this has been tested on, as well as any relevant | ||
images for UI changes._ | ||
|
||
### Chechlist | ||
|
||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] New and existing unit tests pass locally with my changes | ||
- [ ] Any dependent changes have been merged and published in downstream modules | ||
|
||
## Added/updated tests? | ||
|
||
- [ ] 👍 Yes | ||
- [ ] 🙅♀️ No, and this is why: _please replace this line with details on why tests | ||
have not been included_ | ||
- [ ] ☝️ I need help with writing tests | ||
|
||
## Documentation Update Needs ? | ||
|
||
- [ ] 📝 Readme | ||
- [ ] 🚀 Changelog | ||
- [ ] 🥰 Contributing | ||
- [ ] 🙅♀️ No, Docs Already Update | ||
|
||
## Are there any post deployment tasks we need to perform? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# This GitHub Actions workflow runs two jobs: | ||
# | ||
# 1. `lint`: Checks the code for linting issues using the Bun runtime. | ||
# 2. `format`: Formats the code using the Bun runtime. | ||
# | ||
# The workflow checks out the code, sets up the Bun environment, and then runs the | ||
# respective linting and formatting commands. | ||
|
||
name: Beautify Code | ||
|
||
on: ['push', 'pull_request'] | ||
|
||
jobs: | ||
lint: | ||
name: Lint Code | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Bun Environment | ||
uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install dependencies | ||
run: bun install | ||
|
||
- name: Lint the code | ||
run: bun run lint | ||
|
||
format: | ||
name: Format Code | ||
runs-on: ubuntu-latest | ||
needs: lint | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Bun Environment | ||
uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install dependencies | ||
run: bun install | ||
|
||
- name: Format the code | ||
run: bun run format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Check the web performace using | ||
# lighthouse ci | ||
# allow to show the page result for seo, performace, compatibility | ||
# | ||
# ******** NOTE ********* | ||
# Lighthouse only check your web result and platform | ||
|
||
name: Lighthouse | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: ['Release & Publish'] | ||
types: | ||
- completed | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['main'] | ||
|
||
jobs: | ||
lighthouse: | ||
name: Lighthouse Testing the web on Node ${{matrix.node}} | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Audit URLs using Lighthouse | ||
uses: treosh/lighthouse-ci-action@v12 | ||
with: | ||
urls: | | ||
https://brookcodetheme.vercel.app | ||
uploadArtifacts: true | ||
temporaryPublicStorage: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Deploy the web application | ||
# into the vercel as production | ||
# | ||
# ***** NOTE ****** | ||
# This deployment need to setup some secrets | ||
|
||
name: Release & Publish | ||
|
||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_WEB_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEB_PROJECT_ID }} | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
name: 'Release ${{ github.ref_name }}' | ||
generate_release_notes: true | ||
draft: false | ||
prerelease: false | ||
|
||
publish: | ||
name: Publish Website | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Bun Environment | ||
uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install Vercel CLI | ||
run: bun add --global vercel@latest | ||
|
||
- name: Pull Vercel Environment Information | ||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Build Project Artifacts | ||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Deploy Project Artifacts to Vercel | ||
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
generate-changelog: | ||
name: Generate Changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Update changelog | ||
uses: BobAnkh/[email protected] | ||
with: | ||
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
COMMIT_MESSAGE: '🔖 docs(CHANGELOG): update release notes' | ||
TYPE: 'feat:Feature,fix:Bug Fixes,docs:Documentation,refactor:Refactor,perf:Performance Improvements' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
node_modules | ||
.pnp | ||
.pnp.* | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/versions | ||
|
||
# testing | ||
coverage | ||
|
||
# next.js | ||
.next/ | ||
out/ | ||
|
||
# production | ||
build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# env files (can opt-in for committing if needed) | ||
.env | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"endOfLine": "auto" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"typescript.preferences.autoImportFileExcludePatterns": ["@radix-ui/*"] | ||
} |
Oops, something went wrong.