Skip to content

Commit 27240fe

Browse files
author
acornie
committed
feat:second/portfolio
0 parents  commit 27240fe

File tree

301 files changed

+23244
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+23244
-0
lines changed

.env.example

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
BUNDLE_ANALYZER=false
2+
SITE_URL=https://aulianza.id
3+
4+
# Blog
5+
BLOG_API_URL=
6+
7+
# OpenAI
8+
OPENAI_API_KEY=
9+
10+
# DEV.to
11+
DEVTO_KEY=
12+
13+
# Spotify
14+
SPOTIFY_CLIENT_ID=
15+
SPOTIFY_CLIENT_SECRET=
16+
SPOTIFY_REFRESH_TOKEN=
17+
18+
# WakaTime
19+
WAKATIME_API_KEY=
20+
21+
# GitHub
22+
GITHUB_READ_USER_TOKEN_PERSONAL=
23+
GITHUB_READ_USER_TOKEN_WORK=
24+
25+
# Prisma Database
26+
DATABASE_URL='postgres://USER:PASSWORD@HOST:5432/postgres'
27+
28+
# Contact Form
29+
CONTACT_FORM_API_KEY=
30+
31+
# Firebase
32+
NEXT_PUBLIC_FIREBASE_API_KEY=
33+
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
34+
NEXT_PUBLIC_FIREBASE_DB_URL=
35+
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
36+
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=
37+
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
38+
NEXT_PUBLIC_FIREBASE_APP_ID=
39+
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=
40+
NEXT_PUBLIC_FIREBASE_CHAT_DB=
41+
42+
# Next-Auth SSO
43+
NEXTAUTH_URL=http://localhost:3000
44+
GOOGLE_CLIENT_ID=
45+
GOOGLE_CLIENT_SECRET=
46+
GITHUB_ID=
47+
GITHUB_SECRET=

.eslintrc.js

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
plugins: ['@typescript-eslint', 'simple-import-sort', 'unused-imports'],
8+
extends: [
9+
'eslint:recommended',
10+
'next',
11+
'next/core-web-vitals',
12+
'plugin:@typescript-eslint/recommended',
13+
'prettier',
14+
],
15+
rules: {
16+
'no-unused-vars': 'off',
17+
'no-console': 'warn',
18+
'@typescript-eslint/explicit-module-boundary-types': 'off',
19+
'react/no-unescaped-entities': 'off',
20+
21+
'react/display-name': 'off',
22+
'react/jsx-curly-brace-presence': [
23+
'warn',
24+
{ props: 'never', children: 'never' },
25+
],
26+
'@typescript-eslint/no-unused-vars': 'off',
27+
'unused-imports/no-unused-imports': 'warn',
28+
'unused-imports/no-unused-vars': [
29+
'warn',
30+
{
31+
vars: 'all',
32+
varsIgnorePattern: '^_',
33+
args: 'after-used',
34+
argsIgnorePattern: '^_',
35+
},
36+
],
37+
'simple-import-sort/exports': 'warn',
38+
'simple-import-sort/imports': [
39+
'warn',
40+
{
41+
groups: [
42+
['^@?\\w', '^\\u0000'],
43+
['^.+\\.s?css$'],
44+
['^@/libs', '^@/hooks'],
45+
['^@/data'],
46+
['^@/components', '^@/container'],
47+
['^@/store'],
48+
['^@/'],
49+
[
50+
'^\\./?$',
51+
'^\\.(?!/?$)',
52+
'^\\.\\./?$',
53+
'^\\.\\.(?!/?$)',
54+
'^\\.\\./\\.\\./?$',
55+
'^\\.\\./\\.\\.(?!/?$)',
56+
'^\\.\\./\\.\\./\\.\\./?$',
57+
'^\\.\\./\\.\\./\\.\\.(?!/?$)',
58+
],
59+
['^@/types'],
60+
['^'],
61+
],
62+
},
63+
],
64+
},
65+
globals: {
66+
React: true,
67+
JSX: true,
68+
},
69+
};

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: aulianza
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/pull_request_template.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Description
2+
3+
[//]: # 'Provide a detailed description of the changes made in this pull request'
4+
5+
## Related Issue
6+
7+
[//]: # 'If your pull request is related to an issue, reference it here using the syntax: "Fixes #123"'
8+
9+
## Proposed Changes
10+
11+
[//]: # 'List the changes made in this pull request, along with any additional information that may be helpful for reviewers'
12+
13+
## Checklist
14+
15+
Please make sure that your pull request meets the following requirements:
16+
17+
- [ ] The code follows the project's coding style guidelines.
18+
- [ ] The code compiles and runs without any errors.
19+
- [ ] The code has been tested for the proposed changes and functions as expected.
20+
- [ ] All existing tests pass successfully.
21+
- [ ] New tests have been added to cover the changes (if applicable).
22+
- [ ] Documentation has been updated (if applicable).
23+
24+
## Screenshots (if applicable)
25+
26+
[//]: # 'Include any relevant screenshots or GIFs to demonstrate the changes made'
27+
28+
## Additional Notes
29+
30+
[//]: # 'Add any additional notes or context that may be relevant to the reviewers'

.github/workflows/lint.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# https://github.com/kentcdodds/kentcdodds.com/blob/main/.github/workflows/deployment.yml
2+
name: Code Check
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request: {}
8+
9+
concurrency:
10+
group: ${{ github.job }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
lint:
15+
name: ⬣ ESLint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: ⬇️ Checkout repo
19+
uses: actions/checkout@v4
20+
21+
- name: ⎔ Setup node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
26+
- name: 📥 Download deps
27+
uses: bahmutov/npm-install@v1
28+
29+
- name: 🔬 Lint
30+
run: yarn lint
31+
32+
typecheck:
33+
name: ʦ TypeScript
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: ⬇️ Checkout repo
37+
uses: actions/checkout@v4
38+
39+
- name: ⎔ Setup node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 20
43+
44+
- name: 📥 Download deps
45+
uses: bahmutov/npm-install@v1
46+
47+
- name: 🔎 Type check
48+
run: yarn typecheck
49+
50+
prettier:
51+
name: 💅 Prettier
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: ⬇️ Checkout repo
55+
uses: actions/checkout@v4
56+
57+
- name: ⎔ Setup node
58+
uses: actions/setup-node@v4
59+
with:
60+
node-version: 20
61+
62+
- name: 📥 Download deps
63+
uses: bahmutov/npm-install@v1
64+
65+
- name: 💅 Prettier check
66+
run: yarn format:check
67+
68+
test:
69+
name: 🃏 Test
70+
runs-on: ubuntu-latest
71+
steps:
72+
- name: ⬇️ Checkout repo
73+
uses: actions/checkout@v4
74+
75+
- name: ⎔ Setup node
76+
uses: actions/setup-node@v4
77+
with:
78+
node-version: 20
79+
80+
- name: 📥 Download deps
81+
uses: bahmutov/npm-install@v1
82+
83+
- name: 🃏 Run jest
84+
run: yarn test

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# dependencies
2+
/node_modules
3+
/.pnp
4+
.pnp.js
5+
6+
# testing
7+
/coverage
8+
9+
# next.js
10+
/.next/
11+
/out/
12+
13+
# production
14+
/build
15+
16+
# misc
17+
.DS_Store
18+
*.pem
19+
20+
# debug
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# local env files
26+
.env
27+
.env*.local
28+
29+
# vercel
30+
.vercel
31+
32+
# typescript
33+
*.tsbuildinfo
34+
next-env.d.ts

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

.husky/post-merge

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

.prettierignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# dependencies
2+
/node_modules
3+
/.pnp
4+
.pnp.js
5+
6+
# testing
7+
/coverage
8+
9+
# next.js
10+
/.next/
11+
/out/
12+
13+
# production
14+
/build
15+
16+
# misc
17+
.DS_Store
18+
*.pem
19+
20+
# debug
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# local env files
26+
.env*.local
27+
28+
# vercel
29+
.vercel
30+
31+
# typescript
32+
*.tsbuildinfo
33+
next-env.d.ts

0 commit comments

Comments
 (0)