Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sysadminsmedia/homebox
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.16.0
Choose a base ref
...
head repository: sysadminsmedia/homebox
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.17.0
Choose a head ref
Loading
Showing with 5,195 additions and 3,687 deletions.
  1. +5 −6 .github/scripts/update_currencies.py
  2. +25 −0 .github/workflows/clear-stale-docker-images.yml
  3. +0 −105 .github/workflows/docker-publish-arm.yaml
  4. +0 −104 .github/workflows/docker-publish-rootless-arm.yaml
  5. +131 −59 .github/workflows/docker-publish-rootless.yaml
  6. +127 −57 .github/workflows/docker-publish.yaml
  7. +5 −0 .github/workflows/partial-backend.yaml
  8. +1 −1 .gitignore
  9. +1 −1 .vscode/launch.json
  10. +7 −7 Dockerfile
  11. +21 −21 Dockerfile.rootless
  12. +4 −0 README.md
  13. +1 −2 Taskfile.yml
  14. +2 −1 backend/app/api/bgrunner.go
  15. +19 −17 backend/app/api/handlers/v1/controller.go
  16. +28 −28 backend/app/api/handlers/v1/v1_ctrl_actions.go
  17. +7 −7 backend/app/api/handlers/v1/v1_ctrl_assets.go
  18. +14 −16 backend/app/api/handlers/v1/v1_ctrl_auth.go
  19. +20 −20 backend/app/api/handlers/v1/v1_ctrl_group.go
  20. +82 −76 backend/app/api/handlers/v1/v1_ctrl_items.go
  21. +24 −23 backend/app/api/handlers/v1/v1_ctrl_items_attachments.go
  22. +34 −34 backend/app/api/handlers/v1/v1_ctrl_labels.go
  23. +43 −43 backend/app/api/handlers/v1/v1_ctrl_locations.go
  24. +2 −0 backend/app/api/handlers/v1/v1_ctrl_maint_entry.go
  25. +9 −7 backend/app/api/handlers/v1/v1_ctrl_maintenance.go
  26. +26 −27 backend/app/api/handlers/v1/v1_ctrl_notifiers.go
  27. +7 −7 backend/app/api/handlers/v1/v1_ctrl_qrcode.go
  28. +6 −6 backend/app/api/handlers/v1/v1_ctrl_reporting.go
  29. +26 −26 backend/app/api/handlers/v1/v1_ctrl_statistics.go
  30. +31 −31 backend/app/api/handlers/v1/v1_ctrl_user.go
  31. +21 −9 backend/app/api/main.go
  32. +60 −23 backend/app/api/static/docs/docs.go
  33. +60 −23 backend/app/api/static/docs/swagger.json
  34. +40 −15 backend/app/api/static/docs/swagger.yaml
  35. +1 −1 backend/app/tools/migrations/main.go
  36. +34 −31 backend/go.mod
  37. +82 −32 backend/go.sum
  38. +970 −970 backend/internal/core/currencies/currencies.json
  39. +1 −1 backend/internal/core/services/all.go
  40. +1 −1 backend/internal/core/services/main_test.go
  41. +57 −0 backend/internal/core/services/service_background.go
  42. +12 −1 backend/internal/data/ent/item.go
  43. +10 −0 backend/internal/data/ent/item/item.go
  44. +15 −0 backend/internal/data/ent/item/where.go
  45. +25 −0 backend/internal/data/ent/item_create.go
  46. +34 −0 backend/internal/data/ent/item_update.go
  47. +7 −6 backend/internal/data/ent/migrate/schema.go
  48. +55 −1 backend/internal/data/ent/mutation.go
  49. +12 −8 backend/internal/data/ent/runtime.go
  50. +2 −0 backend/internal/data/ent/schema/item.go
  51. +24 −0 backend/internal/data/migrations/migrations/20241226183416_sync_childs.sql
  52. +2 −1 backend/internal/data/migrations/migrations/atlas.sum
  53. +1 −1 backend/internal/data/repo/main_test.go
  54. +44 −17 backend/internal/data/repo/repo_items.go
  55. +3 −1 backend/internal/data/repo/repo_locations.go
  56. +23 −5 backend/internal/data/repo/repo_maintenance_entry.go
  57. +10 −2 backend/internal/data/repo/repo_maintenance_entry_test.go
  58. +1 −0 backend/internal/sys/config/conf.go
  59. +1 −1 backend/internal/sys/config/conf_database.go
  60. +60 −23 docs/docs/api/openapi-2.0.json
  61. +27 −25 docs/en/configure-homebox.md
  62. +8 −0 docs/en/tips-tricks.md
  63. +41 −0 frontend/components/App/OutdatedModal.vue
  64. +32 −19 frontend/components/Form/Multiselect.vue
  65. +35 −0 frontend/components/Form/Toggle.vue
  66. +31 −11 frontend/components/global/CopyText.vue
  67. +5 −1 frontend/composables/use-server-events.ts
  68. +22 −3 frontend/layouts/default.vue
  69. +68 −0 frontend/lib/api/__test__/user/items.test.ts
  70. +10 −0 frontend/lib/api/types/data-contracts.ts
  71. +7 −1 frontend/lib/datelib/datelib.test.ts
  72. +0 −56 frontend/lib/strings/index.test.ts
  73. +0 −14 frontend/lib/strings/index.ts
  74. +287 −0 frontend/locales/cs-CZ.json
  75. +207 −3 frontend/locales/da-DK.json
  76. +7 −1 frontend/locales/de.json
  77. +13 −0 frontend/locales/en.json
  78. +6 −0 frontend/locales/es.json
  79. +76 −9 frontend/locales/fr.json
  80. +6 −0 frontend/locales/it.json
  81. +37 −31 frontend/locales/nl.json
  82. +77 −36 frontend/locales/pl.json
  83. +6 −6 frontend/locales/pt-BR.json
  84. +25 −3 frontend/locales/sv.json
  85. +15 −7 frontend/nuxt.config.ts
  86. +8 −7 frontend/package.json
  87. +11 −1 frontend/pages/item/[id]/index.vue
  88. +68 −3 frontend/pages/item/[id]/index/edit.vue
  89. +2 −2 frontend/pages/location/[id].vue
  90. +26 −20 frontend/pages/reports/label-generator.vue
  91. +1,655 −1,522 frontend/pnpm-lock.yaml
  92. +1 −1 package.json
11 changes: 5 additions & 6 deletions .github/scripts/update_currencies.py
Original file line number Diff line number Diff line change
@@ -4,11 +4,8 @@

def fetch_currencies():
try:
response = requests.get('https://restcountries.com/v3.1/all')
response = requests.get('https://restcountries.com/v3.1/all?fields=name,common,currencies')
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 []
@@ -35,10 +32,12 @@ def fetch_currencies():
return currencies_list

def save_currencies(currencies, file_path):
# Sort the list by the "local" field
sorted_currencies = sorted(currencies, key=lambda x: x['local'].lower() if x['local'] else "")
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)
json.dump(sorted_currencies, f, ensure_ascii=False, indent=4)
except IOError as e:
print(f"An error occurred while writing to the file: {e}")

@@ -62,4 +61,4 @@ def main():
print("Currencies updated and saved.")

if __name__ == "__main__":
main()
main()
25 changes: 25 additions & 0 deletions .github/workflows/clear-stale-docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Docker Cleanup

on:
schedule:
- cron: '00 0 * * *'
workflow_dispatch:

jobs:
delete-untagged-images:
name: Delete Untagged Images
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
dry-run: false
package: homebox
delete-ghost-images: true
delete-orphaned-images: true
delete-partial-images: true
delete-untagged: true
# Make sure to update this to include the latest major tags
exclude-tags: main,vnext,latest,0.*,1.*
older-than: 3 months
105 changes: 0 additions & 105 deletions .github/workflows/docker-publish-arm.yaml

This file was deleted.

104 changes: 0 additions & 104 deletions .github/workflows/docker-publish-rootless-arm.yaml

This file was deleted.

Loading