Skip to content

Commit 7163585

Browse files
committed
Initial Adaptation
1 parent 50ec1d9 commit 7163585

Some content is hidden

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

80 files changed

+11500
-0
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
insert_final_newline = true

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

.eslintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": ["./node_modules/gts/","next/core-web-vitals"],
3+
"rules": {
4+
"n/no-unsupported-features/node-builtins": ["error", {
5+
"version": ">=23.0.0",
6+
"allowExperimental": true,
7+
"ignores": []
8+
}]}
9+
}

.flowbite-react/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class-list.json
2+
pid

.flowbite-react/config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://unpkg.com/flowbite-react/schema.json",
3+
"components": [],
4+
"dark": true,
5+
"prefix": "",
6+
"path": "src/components",
7+
"tsx": true,
8+
"rsc": true
9+
}

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.pdf filter=lfs diff=lfs merge=lfs -text
2+
*.png filter=lfs diff=lfs merge=lfs -text
3+
*.jpg filter=lfs diff=lfs merge=lfs -text

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
target-branch: "development/main"
11+
schedule:
12+
interval: "monthly"

.github/workflows/build.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Sample workflow for building and deploying a Next.js site to GitHub Pages
2+
#
3+
# To get started with Next.js see: https://nextjs.org/docs/getting-started
4+
#
5+
name: Check NextJs build
6+
7+
on:
8+
# Runs on pushes targeting the default branch
9+
push:
10+
branches: ["development/main", 'development/**', dependabot/**]
11+
12+
# Runs on any open or reopened pull request
13+
pull_request:
14+
types: [opened, reopened]
15+
16+
# Allows you to run this workflow manually from the Actions tab
17+
workflow_dispatch:
18+
19+
env:
20+
API_KEY: ${{ secrets.API_KEY }}
21+
22+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
23+
permissions:
24+
contents: read
25+
pages: write
26+
id-token: write
27+
28+
jobs:
29+
# Build job
30+
build:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
- name: Detect package manager
36+
id: detect-package-manager
37+
run: |
38+
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
39+
echo "manager=yarn" >> $GITHUB_OUTPUT
40+
echo "command=install" >> $GITHUB_OUTPUT
41+
echo "runner=yarn" >> $GITHUB_OUTPUT
42+
exit 0
43+
elif [ -f "${{ github.workspace }}/package.json" ]; then
44+
echo "manager=npm" >> $GITHUB_OUTPUT
45+
echo "command=ci" >> $GITHUB_OUTPUT
46+
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
47+
exit 0
48+
else
49+
echo "Unable to determine package manager" >&2
50+
exit 1
51+
fi
52+
- name: Enable Corepack before setting up Node
53+
run: corepack enable
54+
- name: Setup Node
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: "20"
58+
cache: ${{ steps.detect-package-manager.outputs.manager }}
59+
- name: Get yarn cache directory path
60+
id: yarn-cache-dir-path
61+
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
62+
- name: Restore cache
63+
id: yarn-cache
64+
uses: actions/cache@v4
65+
with:
66+
path: |
67+
.next/cache
68+
${{ steps.yarn-cache-dir-path.outputs.dir }}
69+
# Generate a new cache whenever packages or source files change.
70+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
71+
# If source files changed but packages didn't, rebuild from a prior cache.
72+
restore-keys: |
73+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
74+
- name: Install dependencies
75+
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
76+
- name: Build with Next.js
77+
run: npm run build

.github/workflows/publish.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Sample workflow for building and deploying a Next.js site to GitHub Pages
2+
#
3+
# To get started with Next.js see: https://nextjs.org/docs/getting-started
4+
#
5+
name: Deploy Next.js site to Pages
6+
7+
on:
8+
# Runs on pushes targeting the default branch
9+
push:
10+
branches: ["main"]
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16+
permissions:
17+
contents: read
18+
pages: write
19+
id-token: write
20+
21+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23+
concurrency:
24+
group: "pages"
25+
cancel-in-progress: false
26+
27+
jobs:
28+
# Build job
29+
build:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
with:
35+
lfs: true
36+
- name: Detect package manager
37+
id: detect-package-manager
38+
run: |
39+
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
40+
echo "manager=yarn" >> $GITHUB_OUTPUT
41+
echo "command=install" >> $GITHUB_OUTPUT
42+
echo "runner=yarn" >> $GITHUB_OUTPUT
43+
exit 0
44+
elif [ -f "${{ github.workspace }}/package.json" ]; then
45+
echo "manager=npm" >> $GITHUB_OUTPUT
46+
echo "command=ci" >> $GITHUB_OUTPUT
47+
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
48+
exit 0
49+
else
50+
echo "Unable to determine package manager"
51+
exit 1
52+
fi
53+
- name: Enable Corepack before setting up Node
54+
run: corepack enable
55+
- name: Setup Node
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version: "20"
59+
cache: ${{ steps.detect-package-manager.outputs.manager }}
60+
- name: Setup Pages
61+
uses: actions/configure-pages@v5
62+
#with:
63+
# Automatically inject basePath in your Next.js configuration file and disable
64+
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
65+
#
66+
# You may remove this line if you want to manage the configuration yourself.
67+
# static_site_generator: next
68+
- name: Get yarn cache directory path
69+
id: yarn-cache-dir-path
70+
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
71+
- name: Restore cache
72+
uses: actions/cache@v4
73+
with:
74+
path: |
75+
.next/cache
76+
${{ steps.yarn-cache-dir-path.outputs.dir }}
77+
# Generate a new cache whenever packages or source files change.
78+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
79+
# If source files changed but packages didn't, rebuild from a prior cache.
80+
restore-keys: |
81+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
82+
- name: Install dependencies
83+
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
84+
- name: Build with Next.js
85+
run: ${{ steps.detect-package-manager.outputs.runner }} next build
86+
- name: Upload artifact
87+
uses: actions/upload-pages-artifact@v3
88+
with:
89+
path: ./out
90+
91+
# Deployment job
92+
deploy:
93+
environment:
94+
name: github-pages
95+
url: ${{ steps.deployment.outputs.page_url }}
96+
runs-on: ubuntu-latest
97+
needs: build
98+
steps:
99+
- name: Deploy to GitHub Pages
100+
id: deployment
101+
uses: actions/deploy-pages@v4

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
...require('gts/.prettierrc.json')
3+
}

0 commit comments

Comments
 (0)