Skip to content

Commit c928a43

Browse files
committed
Merge branch 'main' into feat/tailscale
1 parent b6df4b9 commit c928a43

97 files changed

Lines changed: 8941 additions & 1766 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Bug Report
2+
description: Create a report to help us improve this project
3+
title: "[BUG]"
4+
labels: bug
5+
assignees:
6+
- steveiliop56
7+
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
Thanks for reporting a bug! Please provide detailed information below.
13+
14+
- type: textarea
15+
id: description
16+
attributes:
17+
label: Describe the Bug
18+
description: "A clear and concise description of what the bug is."
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
id: reproduce
24+
attributes:
25+
label: How to Reproduce
26+
description: Steps to reproduce the behavior.
27+
value: |
28+
1. Go to '...'
29+
2. Click on '....'
30+
3. Scroll down to '....'
31+
4. See error
32+
validations:
33+
required: false
34+
35+
- type: textarea
36+
id: expected
37+
attributes:
38+
label: Expected Behavior
39+
description: "A clear and concise description of what you expected to happen."
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
id: context
45+
attributes:
46+
label: "Additional Context"
47+
description: "If applicable add screenshots to help explain your problem."
48+
validations:
49+
required: false
50+
51+
- type: textarea
52+
id: logs
53+
attributes:
54+
label: "Logs"
55+
description: "Please include the Tinyauth logs, make sure to not include sensitive info."
56+
validations:
57+
required: false
58+
59+
- type: input
60+
id: os
61+
attributes:
62+
label: Operating System
63+
placeholder: "e.g. iOS, Android, Windows, Linux, etc"
64+
65+
- type: input
66+
id: browser
67+
attributes:
68+
label: Browser
69+
placeholder: "e.g. Chrome, Firefox, Safari, Edge, etc"
70+
71+
- type: input
72+
id: tinyauth
73+
attributes:
74+
label: Tinyauth Version
75+
placeholder: "e.g. v5.0.0"
76+
77+
- type: input
78+
id: docker
79+
attributes:
80+
label: Docker Version (if applicable)
81+
placeholder: "e.g. 27.3.1"
82+
83+
- type: checkboxes
84+
id: not-llm
85+
attributes:
86+
label: Human Written Confirmation
87+
options:
88+
- label: I confirm this issue was written by me and not generated by an LLM or AI assistant.
89+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Tinyauth Community Support on Discord
4+
url: https://discord.gg/eHzVaCzRRd
5+
about: Please ask and answer questions here.
6+
- name: Tinyauth Documentation
7+
url: https://tinyauth.app/docs/getting-started/
8+
about: Please check the documentation here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
title: "[FEATURE]"
4+
labels: enhancement
5+
assignees:
6+
- steveiliop56
7+
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
Thanks for suggesting a feature! Please provide detailed information below.
13+
14+
- type: textarea
15+
id: problem
16+
attributes:
17+
label: Is your feature request related to a problem? Please describe.
18+
description: "A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]"
19+
validations:
20+
required: false
21+
22+
- type: textarea
23+
id: solution
24+
attributes:
25+
label: Describe the solution you'd like.
26+
description: "A clear and concise description of what you want to happen."
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
id: alternatives
32+
attributes:
33+
label: Describe alternatives you've considered.
34+
description: "A clear and concise description of any alternative solutions or features you've considered."
35+
validations:
36+
required: false
37+
38+
- type: textarea
39+
id: context
40+
attributes:
41+
label: Additional context
42+
description: "Add any other context or screenshots about the feature request here."
43+
validations:
44+
required: false
45+
46+
- type: checkboxes
47+
id: not-llm
48+
attributes:
49+
label: Human Written Confirmation
50+
options:
51+
- label: I confirm this request was written by me and not generated by an LLM or AI assistant.
52+
required: true

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "bun"
3+
- package-ecosystem: "npm"
44
directory: "/frontend"
55
groups:
66
minor-patch:

.github/workflows/ci.yml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1717

18-
- name: Setup bun
19-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
20+
with:
21+
package_json_file: ./frontend/package.json
2022

2123
- name: Setup go
2224
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
@@ -26,28 +28,35 @@ jobs:
2628
- name: Go dependencies
2729
run: go mod download
2830

29-
- name: Install frontend dependencies
31+
- name: Setup sqlc
32+
uses: sqlc-dev/setup-sqlc@v4
33+
with:
34+
sqlc-version: "1.31.1"
35+
36+
- name: Check codegen is up to date
3037
run: |
31-
cd frontend
32-
bun install --frozen-lockfile
38+
sqlc generate
39+
go generate ./internal/repository/...
40+
git diff --exit-code -- internal/repository/
41+
git status --porcelain -- internal/repository/ | grep -q . && echo "untracked files in internal/repository/" && exit 1 || true
42+
43+
- name: Install frontend dependencies
44+
working-directory: ./frontend
45+
run: pnpm ci
3346

3447
- name: Set version
35-
run: |
36-
echo testing > internal/assets/version
48+
run: echo testing > internal/assets/version
3749

3850
- name: Lint frontend
39-
run: |
40-
cd frontend
41-
bun run lint
51+
working-directory: ./frontend
52+
run: pnpm run lint
4253

4354
- name: Build frontend
44-
run: |
45-
cd frontend
46-
bun run build
55+
working-directory: ./frontend
56+
run: pnpm run build
4757

4858
- name: Copy frontend
49-
run: |
50-
cp -r frontend/dist internal/assets/dist
59+
run: cp -r frontend/dist internal/assets/dist
5160

5261
- name: Run tests
5362
run: go test -coverprofile=coverage.txt -v ./...

.github/workflows/nightly.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,26 @@ jobs:
5959
with:
6060
ref: nightly
6161

62-
- name: Install bun
63-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
62+
- name: Setup pnpm
63+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
64+
with:
65+
package_json_file: ./frontend/package.json
6466

6567
- name: Install go
6668
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
6769
with:
6870
go-version: "^1.26.0"
6971

7072
- name: Install frontend dependencies
71-
run: |
72-
cd frontend
73-
bun install --frozen-lockfile
73+
working-directory: ./frontend
74+
run: pnpm ci
7475

7576
- name: Install backend dependencies
76-
run: |
77-
go mod download
77+
run: go mod download
7878

7979
- name: Build frontend
80-
run: |
81-
cd frontend
82-
bun run build
80+
working-directory: ./frontend
81+
run: pnpm run build
8382

8483
- name: Build
8584
run: |
@@ -105,27 +104,26 @@ jobs:
105104
with:
106105
ref: nightly
107106

108-
- name: Install bun
109-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
107+
- name: Setup pnpm
108+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
109+
with:
110+
package_json_file: ./frontend/package.json
110111

111112
- name: Install go
112113
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
113114
with:
114115
go-version: "^1.26.0"
115116

116117
- name: Install frontend dependencies
117-
run: |
118-
cd frontend
119-
bun install --frozen-lockfile
118+
working-directory: ./frontend
119+
run: pnpm ci
120120

121121
- name: Install backend dependencies
122-
run: |
123-
go mod download
122+
run: go mod download
124123

125124
- name: Build frontend
126-
run: |
127-
cd frontend
128-
bun run build
125+
working-directory: ./frontend
126+
run: pnpm run build
129127

130128
- name: Build
131129
run: |

0 commit comments

Comments
 (0)