Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase branch #230

Closed
wants to merge 375 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
375 commits
Select commit Hold shift + click to select a range
3bf1e50
Splitting dependencies into separate docker layers (better caching) (…
tankerkiller125 Jul 21, 2024
e051352
chore: update openapi documentation (#148)
tankerkiller125 Jul 27, 2024
2ab2766
Fix small typo in label discussion thread URL
victorhooi Jul 27, 2024
1386499
Merge pull request #149 from victorhooi/patch-1
katosdev Jul 27, 2024
6001bf9
Merge branch 'main' into label-report-prefill
strass Jul 30, 2024
1221952
Document search tips, cleanup documentation (#152)
blessedbiped Jul 31, 2024
0bcb155
Fixes to the Tools page (#154)
rpavlik Aug 2, 2024
fef026e
Merge branch 'main' into label-report-prefill
strass Aug 2, 2024
3540ce4
feat: adding initial i18n support
tankerkiller125 Aug 4, 2024
236c257
feat: adding initial i18n support (#155)
tankerkiller125 Aug 4, 2024
0d51558
chore: more translations
tankerkiller125 Aug 4, 2024
9f7b76b
chore: minor tweak
tankerkiller125 Aug 4, 2024
4dacf98
Merge branch 'refs/heads/mk/i18n'
tankerkiller125 Aug 4, 2024
9ec3dd4
Added translation using Weblate (Chinese (Simplified))
weblate Aug 4, 2024
0055160
chore: delete unneeded translation file
tankerkiller125 Aug 4, 2024
fdbfa0e
refactor: better translation formatting
tankerkiller125 Aug 4, 2024
e000484
fix: bad translation
tankerkiller125 Aug 4, 2024
a0cdb23
chore: translate components
tankerkiller125 Aug 4, 2024
791f843
Deleted translation using Weblate (Chinese (Simplified))
Aug 4, 2024
d0784a7
Added translation using Weblate (Dutch)
weblate Aug 4, 2024
6d869fd
Translated using Weblate (Dutch)
weblate Aug 4, 2024
f31528c
Added translation using Weblate (English (Pirate))
weblate Aug 4, 2024
76312d6
Added translation using Weblate (Italian)
weblate Aug 4, 2024
81d9fb0
chore: add translations to contributions sections
tankerkiller125 Aug 4, 2024
41a7e73
Merge remote-tracking branch 'origin/main'
tankerkiller125 Aug 4, 2024
1891903
Translated using Weblate (English (Pirate))
weblate Aug 4, 2024
3882085
Added translation using Weblate (German)
weblate Aug 4, 2024
be216ff
Translated using Weblate (German)
weblate Aug 5, 2024
fc2e89c
Added translation using Weblate (French)
weblate Aug 5, 2024
7570a04
Added translation using Weblate (Turkish)
weblate Aug 5, 2024
1f15e74
changed companyname and url to sysadminsmedia.com (#158)
101br03k Aug 5, 2024
9c572e7
Translated using Weblate (French)
weblate Aug 5, 2024
8d93a3f
Translated using Weblate (German)
weblate Aug 6, 2024
1f77fad
fix: i18n ICU loading failure due to original auto-loading.
tankerkiller125 Aug 8, 2024
52a621e
fix: use the browser default language
tankerkiller125 Aug 8, 2024
2f4a0dd
fix: #146 add version info to every page
tankerkiller125 Aug 8, 2024
95ba827
Translated using Weblate (Dutch)
weblate Aug 8, 2024
7442cb0
Translated using Weblate (French)
weblate Aug 9, 2024
d4bb8de
Added translation using Weblate (Swedish)
weblate Aug 10, 2024
2be2beb
Translated using Weblate (Swedish)
weblate Aug 10, 2024
b4481fc
Translated using Weblate (German)
weblate Aug 11, 2024
28edce9
chore: Finish profile page translations
tankerkiller125 Aug 11, 2024
c702050
Merge remote-tracking branch 'origin/main'
tankerkiller125 Aug 11, 2024
8051956
Deleted translation using Weblate (English (Pirate))
tankerkiller125 Aug 11, 2024
94e8aee
Translated using Weblate (French)
weblate Aug 11, 2024
2bfb028
Translated using Weblate (Dutch)
weblate Aug 11, 2024
0a4c5fb
chore: translate items page
tankerkiller125 Aug 11, 2024
e9d2702
Merge remote-tracking branch 'origin/main'
tankerkiller125 Aug 11, 2024
fac52ca
chore: alphabetize english JSON
tankerkiller125 Aug 11, 2024
5928678
Update translation files
weblate Aug 11, 2024
c6542de
Translated using Weblate (Swedish)
weblate Aug 11, 2024
d08dafd
Merge branch 'main' into label-report-prefill
strass Aug 12, 2024
2a80d34
Translated using Weblate (Swedish)
weblate Aug 12, 2024
b6c2650
Translated using Weblate (Swedish)
weblate Aug 12, 2024
695b6d6
Added translation using Weblate (Chinese (Traditional))
weblate Aug 13, 2024
fc95d2c
Translated using Weblate (Chinese (Traditional))
weblate Aug 13, 2024
639f795
[LANGUAGE UPDATE] Frontend translations for Italian and German (#170)
lukasitaly Aug 14, 2024
a6bdade
Merge branch 'main' into label-report-prefill
strass Aug 15, 2024
43676ab
Translated using Weblate (French)
weblate Aug 15, 2024
39163f3
Translated using Weblate (French)
weblate Aug 16, 2024
8058743
Merge branch 'main' into label-report-prefill
strass Aug 20, 2024
f0a3780
Added translation using Weblate (Spanish)
weblate Aug 22, 2024
0348da3
Translated using Weblate (Spanish)
weblate Aug 22, 2024
40cbccf
Translated using Weblate (Spanish)
weblate Aug 22, 2024
7891af3
Translated using Weblate (Spanish)
weblate Aug 22, 2024
050f22f
Translated using Weblate (Spanish)
weblate Aug 22, 2024
66882d6
Translated using Weblate (Spanish)
weblate Aug 22, 2024
cffe57b
Added translation using Weblate (Russian)
weblate Aug 24, 2024
fe880cc
Translated using Weblate (Russian)
weblate Aug 24, 2024
33ee208
Translated using Weblate (Russian)
weblate Aug 24, 2024
b56b5d2
Translated using Weblate (Russian)
weblate Aug 25, 2024
1688773
adding email validator (#178)
RomuloGatto Aug 25, 2024
f22bce7
Translated using Weblate (Russian)
weblate Aug 28, 2024
593da25
fix: CSV export not including item notes (#180)
LarssonOliver Aug 28, 2024
7647ea9
added the ability to add a photo in the item creation modal (#173)
cjmielke Aug 29, 2024
7114f26
Translated using Weblate (French)
weblate Aug 29, 2024
52a44da
Translated using Weblate (French)
weblate Aug 29, 2024
0dacc97
Translated using Weblate (French)
weblate Aug 30, 2024
9f7a119
Translated using Weblate (Russian)
weblate Aug 31, 2024
c2d0cce
Translated using Weblate (Turkish)
weblate Aug 31, 2024
ea57981
Translated using Weblate (Turkish)
weblate Aug 31, 2024
d72437d
Update config.mts
tankerkiller125 Sep 1, 2024
7baf58a
Translated using Weblate (Turkish)
weblate Sep 1, 2024
3e6f4b3
Added translation using Weblate (Chinese (Simplified))
weblate Sep 1, 2024
5497a10
Translated using Weblate (Chinese (Simplified))
weblate Sep 1, 2024
7b14694
Translated using Weblate (Chinese (Simplified))
weblate Sep 1, 2024
6051e1f
Translated using Weblate (Chinese (Simplified))
weblate Sep 1, 2024
760cc8e
Translated using Weblate (Chinese (Simplified))
weblate Sep 1, 2024
1601e52
Translated using Weblate (Chinese (Simplified))
weblate Sep 1, 2024
3a949ae
Translated using Weblate (Chinese (Simplified))
weblate Sep 1, 2024
343e56b
Translated using Weblate (Chinese (Simplified))
weblate Sep 1, 2024
3c273b3
Translated using Weblate (Chinese (Simplified))
weblate Sep 1, 2024
85e5c7e
Translated using Weblate (Chinese (Simplified))
weblate Sep 1, 2024
dbe77ea
Translated using Weblate (Chinese (Simplified))
weblate Sep 2, 2024
184be32
Merge branch 'main' into label-report-prefill
strass Sep 2, 2024
229d4db
fix: types
tankerkiller125 Sep 3, 2024
09358aa
Translated using Weblate (Chinese (Traditional))
weblate Sep 3, 2024
02c0453
Translated using Weblate (French)
weblate Sep 4, 2024
b06d670
Added translation using Weblate (Slovenian)
weblate Sep 5, 2024
4ef7529
Translated using Weblate (Slovenian)
weblate Sep 5, 2024
526799c
Added translation using Weblate (Catalan)
weblate Sep 5, 2024
c3628e3
Translated using Weblate (French)
weblate Sep 5, 2024
67c5006
fix: styles on home page (#193)
tonyaellie Sep 5, 2024
1e81b4b
feat: improve loading state for creation and fix types for adding ima…
tonyaellie Sep 5, 2024
0ab95fb
feat: compare filter values on a unique field instead of by reference…
tonyaellie Sep 5, 2024
7c855cf
fix: regional languages not matching correctly
tankerkiller125 Sep 5, 2024
0946310
Added translation using Weblate (Polish)
weblate Sep 5, 2024
80d5682
Translated using Weblate (German)
weblate Sep 5, 2024
d0b9f74
Translated using Weblate (Polish)
weblate Sep 5, 2024
c0e2aa5
Merge pull request #197
tonyaellie Sep 5, 2024
25c7652
Merge pull request #185
tonyaellie Sep 5, 2024
6b59838
Translated using Weblate (Polish)
weblate Sep 6, 2024
25d7204
Added translation using Weblate (Hungarian)
weblate Sep 6, 2024
15925de
feat: add eslint-plugin-tailwindcss (#199)
tonyaellie Sep 6, 2024
ffb538e
Translated using Weblate (Hungarian)
weblate Sep 7, 2024
a6aafeb
fix: compare all browser languages with available offerings.
tankerkiller125 Sep 7, 2024
ec9cdb3
Merge remote-tracking branch 'origin/main'
tankerkiller125 Sep 7, 2024
209bb29
refactor: cleaned up translation matching
tankerkiller125 Sep 7, 2024
42c01ad
feat: translate tools page
tankerkiller125 Sep 7, 2024
c428a22
docs: add screenshot of home screen
tankerkiller125 Sep 7, 2024
2fee607
feat: allow the hiding of the header (#202)
tankerkiller125 Sep 7, 2024
489deda
Update README.md
tankerkiller125 Sep 7, 2024
baf8912
Added translation using Weblate (Portuguese (Brazil))
weblate Sep 7, 2024
adb4b52
Fix Registration Disabled button in login page (#203)
edward-shen Sep 8, 2024
f113de1
docs: add demo link to doc site
tankerkiller125 Sep 8, 2024
cf2edc8
fix: Use region specific chinese (instead of simplified vs traditional)
tankerkiller125 Sep 8, 2024
b37cf24
feat: user selectable language
tankerkiller125 Sep 8, 2024
5de649d
feat: update PNPM dependencies
tankerkiller125 Sep 8, 2024
93f13b1
chore: update go dependencies
tankerkiller125 Sep 8, 2024
dafc6aa
update links (#206)
tonyaellie Sep 9, 2024
fb62f51
feat: refresh search on include archived change (#208)
tonyaellie Sep 9, 2024
b18f0c7
feat: make ItemViewTable headers customisable
tonyaellie Sep 9, 2024
19c6d4d
Translated using Weblate (Chinese (Simplified))
weblate Sep 10, 2024
9e3f82f
fix: action should run at midnight for nightly builds
tankerkiller125 Sep 10, 2024
784cc40
Translated using Weblate (German)
weblate Sep 11, 2024
073aade
feat: show item is archived in more places (#210)
tonyaellie Sep 11, 2024
404791a
Translated using Weblate (French)
weblate Sep 12, 2024
8ef1b8b
docs: add installation page
Gabrinator Sep 13, 2024
a6e4929
docs: update navigation
Gabrinator Sep 13, 2024
f8482b1
docs: fix typo in index.md
Gabrinator Sep 13, 2024
88dc943
docs: added Configure Homebox Page
Gabrinator Sep 13, 2024
5fc7b3e
docs: update quick-stard.md
Gabrinator Sep 13, 2024
6800c21
Merge pull request #221 from Gabrinator/update-docs
katosdev Sep 13, 2024
405d0c7
Merge pull request #212 from tonyaellie/make-ItemViewTable-headers-cu…
katosdev Sep 13, 2024
214b16a
chore: update go dependencies
tankerkiller125 Sep 14, 2024
969ef19
Translated using Weblate (Russian)
weblate Sep 14, 2024
d1a57e3
fix: ignore localhost in docs as dead link
tankerkiller125 Sep 15, 2024
3da3025
chore: Update translation contribution documentation.
tankerkiller125 Sep 15, 2024
0c8ce36
refactor: move english menu to separate file.
tankerkiller125 Sep 15, 2024
d63d6e9
refactor: add doc head metadata
tankerkiller125 Sep 15, 2024
6fa37cb
Translated using Weblate (Chinese (Simplified))
weblate Sep 16, 2024
62e6b08
Translated using Weblate (Chinese (Simplified))
weblate Sep 16, 2024
d88b04b
Translated using Weblate (Chinese (Simplified))
weblate Sep 16, 2024
9275d2d
Translated using Weblate (Dutch)
weblate Sep 16, 2024
3f3ca34
Translated using Weblate (Dutch)
weblate Sep 16, 2024
de16f09
Translated using Weblate (Dutch)
weblate Sep 16, 2024
6866dc7
Translated using Weblate (Dutch)
weblate Sep 16, 2024
5c09953
Translated using Weblate (Dutch)
weblate Sep 16, 2024
8e27373
Translated using Weblate (Spanish)
weblate Sep 16, 2024
6a0ebb7
Translated using Weblate (Spanish)
weblate Sep 16, 2024
4b24653
Better issue templates
tankerkiller125 Sep 16, 2024
64ceffe
show add photo button on mobile (#229)
tonyaellie Sep 16, 2024
f3f7097
only accept common image formats (#227)
mcarbonne Sep 17, 2024
1b53a52
Translated using Weblate (Spanish)
weblate Sep 17, 2024
d159908
feat: add char counts
tonyaellie Sep 17, 2024
983dedf
Translated using Weblate (German)
weblate Sep 18, 2024
9297ac5
Translated using Weblate (Portuguese (Portugal))
weblate Sep 18, 2024
0c6be05
Translated using Weblate (Portuguese (Portugal))
weblate Sep 18, 2024
e94f436
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
cf78039
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
7e9bd7f
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
6348aea
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
0a1667e
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
5f27f5d
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
9e66bf0
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
9de5cf8
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
f6690dc
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
2af0cfe
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
47600ad
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
8a7af9a
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
28b79be
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
7d8534f
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
edbb4b9
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
aa30fba
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
d9fa7a8
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
19adc6a
Translated using Weblate (Hungarian)
weblate Sep 18, 2024
c0b8814
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
f3116e4
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
a5d4e4f
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
c903a9d
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
8b0684a
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
7c4c373
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
a20f94b
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
7a7d002
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
bac6212
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
269c5ea
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
4bf7f3e
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
26a99b6
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
22937dd
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
0d92d27
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
4cf0b0a
Translated using Weblate (Portuguese (Brazil))
weblate Sep 18, 2024
52ebff7
Translated using Weblate (Portuguese (Brazil))
weblate Sep 19, 2024
ca33d49
fix: prevent DatePicker from being hidden when overflow is hidden on …
tonyaellie Sep 20, 2024
85b54c4
Translated using Weblate (Italian)
weblate Sep 22, 2024
24deb46
Translated using Weblate (Russian)
weblate Sep 22, 2024
666903e
Translated using Weblate (Russian)
weblate Sep 22, 2024
bdb3b5d
Translated using Weblate (Italian)
weblate Sep 22, 2024
81d57d4
Translated using Weblate (Italian)
weblate Sep 22, 2024
c16269b
Translated using Weblate (Italian)
weblate Sep 22, 2024
e32a104
Translated using Weblate (Italian)
weblate Sep 22, 2024
ffd59d5
Translated using Weblate (Italian)
weblate Sep 22, 2024
e85b1a4
fix: prevent submit modal when trying to create location with no name…
filp Sep 23, 2024
791d390
docs: add Organizing Your Items page (#236)
Gabrinator Sep 23, 2024
897f384
fix: redirect back to locations list after deleting location (#240)
filp Sep 23, 2024
a85c42b
Implement maintenance view (#235)
mcarbonne Sep 23, 2024
5bee3dd
Translated using Weblate (German)
weblate Sep 23, 2024
55a9355
fix "task go:all" (#238)
mcarbonne Sep 23, 2024
4e260c5
feat: Fix, add, tweak various empty states across the app (#241)
filp Sep 24, 2024
1fc9843
Translated using Weblate (English)
weblate Sep 25, 2024
bd60c36
Translated using Weblate (Hungarian)
weblate Sep 25, 2024
d9b05e8
Translated using Weblate (Hungarian)
weblate Sep 26, 2024
cabaa07
fix close & download buttons when viewing a picture attachment (#239)
mcarbonne Sep 26, 2024
17ecfa2
maintenances: add new actions
mcarbonne Sep 22, 2024
ca85d4b
simplify/factorize backend for maintenance
mcarbonne Sep 22, 2024
dc88406
rework frontend for maintenances (factorize)
mcarbonne Sep 22, 2024
68ee701
fix: action buttons cropped on mobile devices
mcarbonne Sep 22, 2024
2ea9ed0
keep only basic actions (duplicate and mark as done)
mcarbonne Sep 22, 2024
b500f6b
minor fix
mcarbonne Sep 22, 2024
5aa389b
always show duplicate action
mcarbonne Sep 23, 2024
ba48a61
minor fixes (style)
mcarbonne Sep 23, 2024
ff874ac
fix: wrong return type
mcarbonne Sep 23, 2024
4fea927
Translated using Weblate (German)
weblate Sep 28, 2024
dc23a1a
Translated using Weblate (German)
weblate Sep 28, 2024
02a34ed
Merge pull request #246 from mcarbonne/feat_maintenance_complete_and_…
katosdev Sep 28, 2024
4a0039c
Merge branch 'main' into add-char-counts-with-max-to-lots-of-inputs
tonyaellie Sep 28, 2024
1de3ecd
Merge pull request #234 from tonyaellie/add-char-counts-with-max-to-l…
katosdev Sep 28, 2024
4af6bf2
Translated using Weblate (German)
weblate Sep 28, 2024
ba8f32c
Translated using Weblate (Slovenian)
weblate Sep 30, 2024
e0d86ce
Translated using Weblate (Slovenian)
weblate Sep 30, 2024
2eb4214
Merge pull request #137 from strass/label-report-prefill
katosdev Sep 30, 2024
eed967e
Translated using Weblate (Hungarian)
weblate Sep 30, 2024
a8eab72
Translated using Weblate (Catalan)
weblate Oct 1, 2024
059bc5f
Translated using Weblate (Chinese (Simplified))
weblate Oct 1, 2024
49f52ca
Translated using Weblate (Portuguese (Brazil))
weblate Oct 1, 2024
ab48f55
Translated using Weblate (Portuguese (Brazil))
weblate Oct 2, 2024
8656610
fix: #181 MultiSelect can now be cleared manually.
tankerkiller125 Oct 4, 2024
a3d5485
fix: #147 notifier now shows previous input value
tankerkiller125 Oct 4, 2024
da8cc19
fix: #204 sets inline form inputs to use properties correctly, number…
tankerkiller125 Oct 4, 2024
9d3f3cf
fix: #232 wrap text fields for from and to fields for sold and purcha…
tankerkiller125 Oct 4, 2024
055f021
chore: update nuxt
tankerkiller125 Oct 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
"features": {
"golang": "1.21"
"ghcr.io/devcontainers/features/go:1": "1.21"
}
}
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: [hay-kot]
github: [tankerkiller125,katosdev]
17 changes: 16 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name: "Bug Report"
description: "Submit a bug report for the current release"
labels: ["bug"]
labels: ["🕷️ bug"]
projects: ["sysadminsmedia/2"]
body:
- type: checkboxes
id: checks
Expand All @@ -19,6 +20,8 @@ body:
required: true
- label: I already read the docs and didn't find an answer.
required: true
- label: I can replicate the issue inside the Demo install.
required: true
- type: input
id: homebox-version
attributes:
Expand Down Expand Up @@ -54,6 +57,18 @@ body:
- Other
validations:
required: true
- type: dropdown
id: arch
attributes:
label: OS Architechture
description: What type of processor are you running on.
multiple: true
options:
- x86_64 (AMD, Intel)
- ARM64
- ARM/v7
validations:
required: true
- type: textarea
id: os-details
attributes:
Expand Down
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name: "Feature Request"
description: "Submit a feature request for the current release"
labels: ["feature-request"]
labels: ["⬆️ enhancement"]
projects: ["sysadminsmedia/2"]
body:
- type: textarea
id: problem-statement
Expand Down
16 changes: 1 addition & 15 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,4 @@ _(fill-in or delete this section)_

<!--
Describe how you tested this change.
-->

## Release Notes

_(REQUIRED)_
<!--
If this PR makes user facing changes, please describe them here. This
description will be copied into the release notes/changelog, whenever the
next version is released. Keep this section short, and focus on high level
changes.
Put your text between the block. To omit notes, use NONE within the block.
-->

```release-note
```
-->
65 changes: 65 additions & 0 deletions .github/scripts/update_currencies.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import requests
import json
import os

def fetch_currencies():
try:
response = requests.get('https://restcountries.com/v3.1/all')
response.raise_for_status()
except requests.exceptions.Timeout:
print("Request to the API timed out.")
return []
except requests.exceptions.RequestException as e:
print(f"An error occurred while making the request: {e}")
return []

try:
countries = response.json()
except json.JSONDecodeError:
print("Failed to decode JSON from the response.")
return []

currencies_list = []
for country in countries:
country_name = country.get('name', {}).get('common')
country_currencies = country.get('currencies', {})
for currency_code, currency_info in country_currencies.items():
symbol = currency_info.get('symbol', '')
currencies_list.append({
'code': currency_code,
'local': country_name,
'symbol': symbol,
'name': currency_info.get('name')
})

return currencies_list

def save_currencies(currencies, file_path):
try:
os.makedirs(os.path.dirname(file_path), exist_ok=True)
with open(file_path, 'w', encoding='utf-8') as f:
json.dump(currencies, f, ensure_ascii=False, indent=4)
except IOError as e:
print(f"An error occurred while writing to the file: {e}")

def load_existing_currencies(file_path):
try:
with open(file_path, 'r', encoding='utf-8') as f:
return json.load(f)
except (IOError, json.JSONDecodeError):
return [] # Return an empty list if file doesn't exist or is invalid

def main():
save_path = 'backend/internal/core/currencies/currencies.json'

existing_currencies = load_existing_currencies(save_path)
new_currencies = fetch_currencies()

if new_currencies == existing_currencies:
print("Currencies up-to-date with API, skipping commit.")
else:
save_currencies(new_currencies, save_path)
print("Currencies updated and saved.")

if __name__ == "__main__":
main()
47 changes: 47 additions & 0 deletions .github/workflows/binaries-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish Release Binaries

on:
push:
tags: [ 'v*.*.*' ]

jobs:
# backend-tests:
# name: "Backend Server Tests"
# uses: sysadminsmedia/homebox/.github/workflows/partial-backend.yaml@main

# frontend-tests:
# name: "Frontend and End-to-End Tests"
# uses: sysadminsmedia/homebox/.github/workflows/partial-frontend.yaml@main

goreleaser:
name: goreleaser
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5

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

- name: Build Frontend and Copy to Backend
working-directory: frontend
run: |
pnpm install --shamefully-hoist
pnpm run build
cp -r ./.output/public ../backend/app/api/static/

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
workdir: "backend"
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108 changes: 108 additions & 0 deletions .github/workflows/docker-publish-rootless.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Docker publish rootless

on:
schedule:
- cron: '00 0 * * *'
push:
branches: [ "main" ]
paths:
- 'backend/**'
- 'frontend/**'
- 'Dockerfile'
- 'Dockerfile.rootless'
- '.dockerignore'
- '.github/workflows'
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
paths:
- 'backend/**'
- 'frontend/**'
- 'Dockerfile'
- 'Dockerfile.rootless'
- '.dockerignore'
- '.github/workflows'


env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}


jobs:
build-rootless:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
attestations: write
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/[email protected] # v3.0.0

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/[email protected] # v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: metadata
uses: docker/[email protected] # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=schedule,pattern=nightly
flavor: |
suffix=-rootless,onlatest=true

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/[email protected] # v5.0.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
VERSION=${{ github.ref_name }}
COMMIT=${{ github.sha }}

- name: Attest
uses: actions/attest-build-provenance@v1
id: attest
if: ${{ github.event_name != 'pull_request' }}
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.build-and-push.outputs.digest }}
push-to-registry: true
Loading
Loading