Compare commits

...

29 Commits

Author SHA1 Message Date
seriousm4x 8f5528584d gh-action: replace $ with quotes for private_key 2023-10-03 19:51:32 +02:00
seriousm4x b6029e1759 Revert "gh-action: replace $ with quotes for env vars"
This reverts commit 2457a6036b.
2023-10-03 19:50:36 +02:00
seriousm4x 2457a6036b gh-action: replace $ with quotes for env vars 2023-10-03 19:47:49 +02:00
seriousm4x 2639d61777 Revert "gh-action: use filepath for private_key"
This reverts commit 909702c668.
2023-10-03 19:45:25 +02:00
seriousm4x 909702c668 gh-action: use filepath for private_key 2023-10-03 19:40:00 +02:00
seriousm4x ef32a485d4 gh-action: fix env AUR_KEY 2023-10-03 17:06:21 +02:00
seriousm4x e8e64dff05 gh-action: only test if backend files changed 2023-10-03 16:45:46 +02:00
seriousm4x b32d569ee1 gh-action: auto-choose runner 2023-10-03 16:41:53 +02:00
seriousm4x 02367b5936 gh-action: add needs check-runner 2023-10-03 16:29:15 +02:00
seriousm4x 7be53745d5 gh-action: add quotes 2023-10-03 16:20:35 +02:00
seriousm4x b430d37cd1 gh-action: test auto-choose runner 2023-10-03 16:03:22 +02:00
seriousm4x 8316eae637 feat: add arch aur package 2023-10-03 15:35:47 +02:00
seriousm4x ef08c05adc go mod tidy 2023-10-03 15:31:09 +02:00
seriousm4x c593c98b33 goreleaser ignore beta tags
https://github.com/orgs/goreleaser/discussions/4336#discussioncomment-7160162
2023-10-03 13:45:53 +02:00
seriousm4x 166140173d update deps 2023-10-03 13:44:59 +02:00
seriousm4x b34c9e9463 goreleaser git ignore beta tags 2023-10-03 13:15:11 +02:00
seriousm4x 297574c189 readme: add i18n support 2023-10-03 13:14:03 +02:00
seriousm4x f2bd222009 import correct base locales 2023-10-03 12:45:42 +02:00
dependabot[bot] b065fc308f npm-dep: bump @typescript-eslint/eslint-plugin in /frontend
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.7.3 to 6.7.4.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.4/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 10:15:32 +00:00
dependabot[bot] 26a2ae7f7e npm-dep: bump @typescript-eslint/parser from 6.7.3 to 6.7.4 in /frontend
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.7.3 to 6.7.4.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.4/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 10:14:07 +00:00
seriousm4x ee1403a7b6 inherit lang variations from base language 2023-10-03 12:12:39 +02:00
seriousm4x 3590f6618d feat: i18n add portuguese
Added pt-PT language
2023-10-03 11:46:26 +02:00
seriousm4x c79dc2342e add date-fns import for pt 2023-10-03 11:43:48 +02:00
dependabot[bot] 11c4410786 npm-dep: bump daisyui from 3.8.2 to 3.8.3 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 3.8.2 to 3.8.3.
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v3.8.2...v3.8.3)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 09:28:49 +00:00
seriousm4x 6dc6f6f2ea revert changelog structure 2023-10-02 21:51:07 +02:00
seriousm4x fe63b4d439 Update Crowdin configuration file 2023-10-02 21:49:34 +02:00
seriousm4x 2a72aa94da Update Crowdin configuration file 2023-10-02 21:48:12 +02:00
MadTiago 32914fa871 Replaced double to single quote 2023-10-02 04:28:43 +01:00
MadTiago e2ba2b45e6 Added pt-PT language 2023-10-02 04:22:13 +01:00
22 changed files with 1068 additions and 759 deletions
+21 -4
View File
@@ -1,18 +1,35 @@
name: go test
on: [push]
on:
push:
paths: backend/**
jobs:
build:
check-runner:
runs-on: ubuntu-latest
outputs:
runner-label: ${{ steps.set-runner.outputs.runner-label }}
steps:
- name: Set runner
id: set-runner
run: |
runners=$(curl -s -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.REPO_ACCESS_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/actions/runners")
available=$(echo "$runners" | jq '.runners[] | select(.status == "online" and .busy == false and .labels[] .name == "self-hosted")')
if [ -n "$available" ]; then
echo "runner-label=self-hosted" >> "$GITHUB_OUTPUT"
else
echo "runner-label=ubuntu-latest" >> "$GITHUB_OUTPUT"
fi
build:
needs: check-runner
runs-on: ${{ needs.check-runner.outputs.runner-label }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ">=1.21"
- name: Test
run: |
cd backend
+23 -3
View File
@@ -7,8 +7,25 @@ on:
workflow_dispatch:
jobs:
goreleaser:
check-runner:
runs-on: ubuntu-latest
outputs:
runner-label: ${{ steps.set-runner.outputs.runner-label }}
steps:
- name: Set runner
id: set-runner
run: |
runners=$(curl -s -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.REPO_ACCESS_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/actions/runners")
available=$(echo "$runners" | jq '.runners[] | select(.status == "online" and .busy == false and .labels[] .name == "self-hosted")')
if [ -n "$available" ]; then
echo "runner-label=self-hosted" >> "$GITHUB_OUTPUT"
else
echo "runner-label=ubuntu-latest" >> "$GITHUB_OUTPUT"
fi
goreleaser:
needs: check-runner
runs-on: ${{ needs.check-runner.outputs.runner-label }}
steps:
# pull code
- name: Checkout
@@ -46,10 +63,13 @@ jobs:
workdir: backend
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
docker:
needs: goreleaser
runs-on: ubuntu-latest
needs:
- goreleaser
- check-runner
runs-on: ${{ needs.check-runner.outputs.runner-label }}
steps:
# pull code
- name: Check Out Repo
+1
View File
@@ -20,6 +20,7 @@
- 🔌 Ping Any Port You Choose
- 🔍 Discover Devices with Network Scanning (nmap required)
- 👤 Secured User Management
- 🌐 i18n support for [these](https://github.com/seriousm4x/UpSnap/tree/master/frontend/src/lib/i18n) languages
- 🎨 29 Themes
- 🐳 [Docker images](https://github.com/seriousm4x/UpSnap/pkgs/container/upsnap) for amd64, arm64, arm/v7, arm/v6
- 🏠 Self-Hostable, No Cloud Bullshit!
Regular → Executable
+30 -5
View File
@@ -42,14 +42,39 @@ changelog:
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Others
order: 2
- title: "Go dependencies"
regexp: '^.*?go-dep(\([[:word:]]+\))??!?:.+$'
order: 997
order: 3
- title: "Npm dependencies"
regexp: '^.*?npm-dep(\([[:word:]]+\))??!?:.+$'
order: 998
order: 4
- title: "Github Actions"
regexp: '^.*?gh-action(\([[:word:]]+\))??!?:.+$'
order: 999
order: 5
- title: Others
order: 2
git:
ignore_tags:
- "{{ if not .Prerelease}}beta{{ end }}"
aurs:
- name: upsnap-bin
homepage: https://github.com/seriousm4x/UpSnap
description: "A simple wake on lan web app written with SvelteKit, Go and PocketBase."
maintainers:
- "SeriousM4x <maxi at quoss dot org>"
license: "MIT"
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/upsnap-bin.git"
package: |-
# bin
install -Dm755 "./upsnap" "${pkgdir}/usr/bin/upsnap"
sudo setcap cap_net_raw=+ep "${pkgdir}/usr/bin/upsnap"
skip_upload: auto
depends:
- sudo
- libcap
optdepends:
- "nmap: to scan for network devices"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
+7 -7
View File
@@ -16,13 +16,13 @@ require (
require (
github.com/AlecAivazis/survey/v2 v2.3.7 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/aws/aws-sdk-go v1.45.19 // indirect
github.com/aws/aws-sdk-go v1.45.20 // indirect
github.com/aws/aws-sdk-go-v2 v1.21.0 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 // indirect
github.com/aws/aws-sdk-go-v2/config v1.18.42 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.13.40 // indirect
github.com/aws/aws-sdk-go-v2/config v1.18.43 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.13.41 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11 // indirect
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.87 // indirect
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.88 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43 // indirect
@@ -32,9 +32,9 @@ require (
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.35 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.15.4 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.14.1 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.15.0 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.22.0 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.23.0 // indirect
github.com/aws/smithy-go v1.14.2 // indirect
github.com/disintegration/imaging v1.6.2 // indirect
github.com/domodwyer/mailyak/v3 v3.6.2 // indirect
@@ -82,7 +82,7 @@ require (
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.143.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect
google.golang.org/grpc v1.58.2 // indirect
google.golang.org/protobuf v1.31.0 // indirect
lukechampine.com/uint128 v1.3.0 // indirect
+18 -44
View File
@@ -17,34 +17,24 @@ github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDe
github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg=
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
github.com/aws/aws-sdk-go v1.45.14 h1:/IPMEh9oelbK7506fdMHkbV9mq4a6f5aeiy9OT0PRKw=
github.com/aws/aws-sdk-go v1.45.14/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go v1.45.19 h1:+4yXWhldhCVXWFOQRF99ZTJ92t4DtoHROZIbN7Ujk/U=
github.com/aws/aws-sdk-go v1.45.19/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go v1.45.20 h1:U/wLZEwqVB6o2XlcJ7um8kczx+A1X2MgO2y4wdKDQTs=
github.com/aws/aws-sdk-go v1.45.20/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go-v2 v1.21.0 h1:gMT0IW+03wtYJhRqTVYn0wLzwdnK9sRMcxmtfGzRdJc=
github.com/aws/aws-sdk-go-v2 v1.21.0/go.mod h1:/RfNgGmRxI+iFOB1OeJUyxiU+9s88k3pfHvDagGEp0M=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 h1:OPLEkmhXf6xFPiz0bLeDArZIDx1NNS4oJyG4nv3Gct0=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13/go.mod h1:gpAbvyDGQFozTEmlTFO8XcQKHzubdq0LzRyJpG6MiXM=
github.com/aws/aws-sdk-go-v2/config v1.18.41 h1:Go7z97YDsBJVNAaL7pDPKB6LeHEsAkHmFe+CeK30fUQ=
github.com/aws/aws-sdk-go-v2/config v1.18.41/go.mod h1:+yR45+A0LIMKT8bWOKo90Hy9rSrovEmEKoPKLmmVec8=
github.com/aws/aws-sdk-go-v2/config v1.18.42 h1:28jHROB27xZwU0CB88giDSjz7M1Sba3olb5JBGwina8=
github.com/aws/aws-sdk-go-v2/config v1.18.42/go.mod h1:4AZM3nMMxwlG+eZlxvBKqwVbkDLlnN2a4UGTL6HjaZI=
github.com/aws/aws-sdk-go-v2/credentials v1.13.39 h1:UnwBXDIHKDaejSXaRzKR57IdGCizk+z1DEhnsFpus7Q=
github.com/aws/aws-sdk-go-v2/credentials v1.13.39/go.mod h1:OJ9P239A90TnglJEF3qofKiNeEM6PCV/m+aNGV5WC24=
github.com/aws/aws-sdk-go-v2/credentials v1.13.40 h1:s8yOkDh+5b1jUDhMBtngF6zKWLDs84chUk2Vk0c38Og=
github.com/aws/aws-sdk-go-v2/credentials v1.13.40/go.mod h1:VtEHVAAqDWASwdOqj/1huyT6uHbs5s8FUHfDQdky/Rs=
github.com/aws/aws-sdk-go-v2/config v1.18.43 h1:IgdUtTRvUDC6eiJBqU6vh7bHFNAEBjQ8S+qJ7zVhDOs=
github.com/aws/aws-sdk-go-v2/config v1.18.43/go.mod h1:NiFev8qlgg8MPzw3fO/EwzMZeZwlJEKGwfpjRPA9Nvw=
github.com/aws/aws-sdk-go-v2/credentials v1.13.41 h1:dgbKq1tamtboYAKSXWbqL0lKO9rmEzEhbZFh9JQW/Bg=
github.com/aws/aws-sdk-go-v2/credentials v1.13.41/go.mod h1:cc3Fn7DkKbJalPtQnudHGZZ8ml9+hwtbc1CJONsYYqk=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11 h1:uDZJF1hu0EVT/4bogChk8DyjSF6fof6uL/0Y26Ma7Fg=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11/go.mod h1:TEPP4tENqBGO99KwVpV9MlOX4NSrSLP8u3KRy2CDwA8=
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.85 h1:PH1OSkrdY8X+ENBz8ZhgWhR/975S05gcFPM4PxpAFrI=
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.85/go.mod h1:4X3OaVfB/ZjZsB9eHpFLnNT00sw+ZE81kQ2E9FysTaU=
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.87 h1:e20ZrsgDPUXqg8+rZVuPwNSp6yniUN2Yr2tzFZ+Yvl0=
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.87/go.mod h1:0i0TAT6W+5i48QTlDU2KmY6U2hBZeY/LCP0wktya2oc=
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.88 h1:AxcMcV1uTY15jysvTiXC6Mgpb5nU1rnqH0PmgJ7ig80=
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.88/go.mod h1:C6Kvpm4g92So11JEAHMK0trT6EEEe5g5uG5JrneR6zQ=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41 h1:22dGT7PneFMx4+b3pz7lMTRyN8ZKH7M2cW4GP9yUS2g=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41/go.mod h1:CrObHAuPneJBlfEJ5T3szXOUkLEThaGfvnhTf33buas=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35 h1:SijA0mgjV8E+8G45ltVHs0fvKpTj8xmZJ3VwhGKtUSI=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35/go.mod h1:SJC1nEVVva1g3pHAIdCp7QsRIkMmLAgoDquQ9Rr8kYw=
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.42 h1:GPUcE/Yq7Ur8YSUk6lVkoIMWnJNO0HT18GUzCWCgCI0=
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.42/go.mod h1:rzfdUlfA+jdgLDmPKjd3Chq9V7LVLYo1Nz++Wb91aRo=
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43 h1:g+qlObJH4Kn4n21g69DjspU0hKTjWtq7naZ9OLCv0ew=
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43/go.mod h1:rzfdUlfA+jdgLDmPKjd3Chq9V7LVLYo1Nz++Wb91aRo=
github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.4 h1:6lJvvkQ9HmbHZ4h/IEwclwv2mrTW8Uq1SOB/kXy0mfw=
@@ -57,20 +47,14 @@ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.35 h1:CdzPW9kKi
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.35/go.mod h1:QGF2Rs33W5MaN9gYdEQOBBFPLwTZkEhRwI33f7KIG0o=
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.15.4 h1:v0jkRigbSD6uOdwcaUQmgEwG1BkPfAPDqaeNt/29ghg=
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.15.4/go.mod h1:LhTyt8J04LL+9cIt7pYJ5lbS/U98ZmXovLOR/4LUsk8=
github.com/aws/aws-sdk-go-v2/service/s3 v1.39.0 h1:VZ2WMkKLio5tVjYfThcy5+pb6YHGd6B6egq75FfM6hU=
github.com/aws/aws-sdk-go-v2/service/s3 v1.39.0/go.mod h1:rDGMZA7f4pbmTtPOk5v5UM2lmX6UAbRnMDJeDvnH7AM=
github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0 h1:wl5dxN1NONhTDQD9uaEvNsDRX29cBmGED/nl0jkWlt4=
github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0/go.mod h1:rDGMZA7f4pbmTtPOk5v5UM2lmX6UAbRnMDJeDvnH7AM=
github.com/aws/aws-sdk-go-v2/service/sso v1.14.0 h1:AR/hlTsCyk1CwlyKnPFvIMvnONydRjDDRT9OGb0i+/g=
github.com/aws/aws-sdk-go-v2/service/sso v1.14.0/go.mod h1:fIAwKQKBFu90pBxx07BFOMJLpRUGu8VOzLJakeY+0K4=
github.com/aws/aws-sdk-go-v2/service/sso v1.14.1 h1:YkNzx1RLS0F5qdf9v1Q8Cuv9NXCL2TkosOxhzlUPV64=
github.com/aws/aws-sdk-go-v2/service/sso v1.14.1/go.mod h1:fIAwKQKBFu90pBxx07BFOMJLpRUGu8VOzLJakeY+0K4=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.0 h1:UniOmlPJelksyP5dGjfRoFTmLDy4/o0HH1lK2Op7zC8=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.0/go.mod h1:yygr8ACQRY2PrEcy3xsUI357stq2AxnFM6DIsR9lij4=
github.com/aws/aws-sdk-go-v2/service/sso v1.15.0 h1:vuGK1vHNP9zx0PfOrtPumbwR2af0ATQ1Z2H6p75AgRQ=
github.com/aws/aws-sdk-go-v2/service/sso v1.15.0/go.mod h1:fIAwKQKBFu90pBxx07BFOMJLpRUGu8VOzLJakeY+0K4=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1 h1:8lKOidPkmSmfUtiTgtdXWgaKItCZ/g75/jEk6Ql6GsA=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1/go.mod h1:yygr8ACQRY2PrEcy3xsUI357stq2AxnFM6DIsR9lij4=
github.com/aws/aws-sdk-go-v2/service/sts v1.22.0 h1:s4bioTgjSFRwOoyEFzAVCmFmoowBgjTR8gkrF/sQ4wk=
github.com/aws/aws-sdk-go-v2/service/sts v1.22.0/go.mod h1:VC7JDqsqiwXukYEDjoHh9U0fOJtNWh04FPQz4ct4GGU=
github.com/aws/aws-sdk-go-v2/service/sts v1.23.0 h1:pyvfUqkNLMipdKNAtu7OVbRxUrR2BMaKccIPpk/Hkak=
github.com/aws/aws-sdk-go-v2/service/sts v1.23.0/go.mod h1:VC7JDqsqiwXukYEDjoHh9U0fOJtNWh04FPQz4ct4GGU=
github.com/aws/smithy-go v1.14.2 h1:MJU9hqBGbvWZdApzpvoF2WAIJDbtjK2NDJSiJP7HblQ=
github.com/aws/smithy-go v1.14.2/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
@@ -154,9 +138,8 @@ github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4=
github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/wire v0.5.0 h1:I7ELFeVBr3yfPIcc8+MWvrjk+3VjbcSzoXm3JVa+jD8=
github.com/google/wire v0.5.0/go.mod h1:ngWDr9Qvq3yZA10YrxfyGELY/AFWGVpy9c1LTRi1EoU=
github.com/googleapis/enterprise-certificate-proxy v0.2.5 h1:UR4rDjcgpgEnqpIEvkiqTYKBCKLNmlge2eVjoZfySzM=
github.com/googleapis/enterprise-certificate-proxy v0.2.5/go.mod h1:RxW0N9901Cko1VOCW3SXCpWP+mlIEkk2tP7jnHy9a3w=
github.com/googleapis/enterprise-certificate-proxy v0.3.1 h1:SBWmZhjUDRorQxrN0nwzf+AHBxnbFjViHQS4P0yVpmQ=
github.com/googleapis/enterprise-certificate-proxy v0.3.1/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0=
github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas=
github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU=
github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog=
@@ -207,8 +190,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pocketbase/dbx v1.10.1 h1:cw+vsyfCJD8YObOVeqb93YErnlxwYMkNZ4rwN0G0AaA=
github.com/pocketbase/dbx v1.10.1/go.mod h1:xXRCIAKTHMgUCyCKZm55pUOdvFziJjQfXaWKhu2vhMs=
github.com/pocketbase/pocketbase v0.18.8 h1:wUqCVwYiur+gpBW0t2sy1N20GccvbpGeB7NWFZqsXHY=
github.com/pocketbase/pocketbase v0.18.8/go.mod h1:NleGwCSD6YakOS2nkFhTOu2c11LaqEaYDWwLjjn4Eds=
github.com/pocketbase/pocketbase v0.18.9 h1:1i0Lg/vlXJe7DGgHqwIRGBxkpGgZ+0z9m3HNVumb/FM=
github.com/pocketbase/pocketbase v0.18.9/go.mod h1:uXjdxN7w0gpVISqbFvX9xXhg9YhRoQ4hYlKEe27yTJ8=
github.com/prometheus-community/pro-bing v0.3.0 h1:SFT6gHqXwbItEDJhTkzPWVqU6CLEtqEfNAPp47RUON4=
@@ -339,8 +320,6 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk=
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=
google.golang.org/api v0.142.0 h1:mf+7EJ94fi5ZcnpPy+m0Yv2dkz8bKm+UL0snTCuwXlY=
google.golang.org/api v0.142.0/go.mod h1:zJAN5o6HRqR7O+9qJUFOWrZkYE66RH+efPBdTLA4xBA=
google.golang.org/api v0.143.0 h1:o8cekTkqhywkbZT6p1UHJPZ9+9uuCAJs/KYomxZB8fA=
google.golang.org/api v0.143.0/go.mod h1:FoX9DO9hT7DLNn97OuoZAGSDuNAXdJRuGK98rSUgurk=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
@@ -351,13 +330,12 @@ google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJ
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
google.golang.org/genproto v0.0.0-20230913181813-007df8e322eb h1:XFBgcDwm7irdHTbz4Zk2h7Mh+eis4nfJEFQFYzJzuIA=
google.golang.org/genproto v0.0.0-20230913181813-007df8e322eb/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4=
google.golang.org/genproto/googleapis/api v0.0.0-20230803162519-f966b187b2e5 h1:nIgk/EEq3/YlnmVVXVnm14rC2oxgs1o0ong4sD/rd44=
google.golang.org/genproto/googleapis/api v0.0.0-20230803162519-f966b187b2e5/go.mod h1:5DZzOUPCLYL3mNkQ0ms0F3EuUNZ7py1Bqeq6sxzI7/Q=
google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13 h1:vlzZttNJGVqTsRFU9AmdnrcO1Znh8Ew9kCD//yjigk0=
google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:CCviP9RmpZ1mxVr8MUjCnSiY09IbAXZxhLE6EhHIdPU=
google.golang.org/genproto/googleapis/api v0.0.0-20230913181813-007df8e322eb h1:lK0oleSc7IQsUxO3U5TjL9DWlsxpEBemh+zpB7IqhWI=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 h1:N3bU/SQDCDyD6R528GJ/PwW9KjYcJA3dgyH+MovAkIM=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:KSqppvjFjtoCI+KGd4PELB0qLNxdJHRGqRI09mB6pQA=
google.golang.org/genproto/googleapis/api v0.0.0-20230913181813-007df8e322eb/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk=
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 h1:6GQBEOdGkX6MMTLT9V+TjtIRZCw9VPD5Z+yHY9wMgS0=
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97/go.mod h1:v7nGkzlmW8P3n/bKmWBn2WpBjpOEx8Q6gMueudAmKfY=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
@@ -401,14 +379,10 @@ modernc.org/libc v1.24.1 h1:uvJSeCKL/AgzBo2yYIPPTy82v21KgGnizcGYfBHaNuM=
modernc.org/libc v1.24.1/go.mod h1:FmfO1RLrU3MHJfyi9eYYmZBfi/R+tqZ6+hQ3yQQUkak=
modernc.org/mathutil v1.6.0 h1:fRe9+AmYlaej+64JsEEhoWuAYBkOtQiMEU7n/XgfYi4=
modernc.org/mathutil v1.6.0/go.mod h1:Ui5Q9q1TR2gFm0AQRqQUaBWFLAhQpCwNcuhBOSedWPo=
modernc.org/memory v1.7.1 h1:9J+2/GKTlV503mk3yv8QJ6oEpRCUrRy0ad8TXEPoV8M=
modernc.org/memory v1.7.1/go.mod h1:NO4NVCQy0N7ln+T9ngWqOQfi7ley4vpwvARR+Hjw95E=
modernc.org/memory v1.7.2 h1:Klh90S215mmH8c9gO98QxQFsY+W451E8AnzjoE2ee1E=
modernc.org/memory v1.7.2/go.mod h1:NO4NVCQy0N7ln+T9ngWqOQfi7ley4vpwvARR+Hjw95E=
modernc.org/opt v0.1.3 h1:3XOZf2yznlhC+ibLltsDGzABUGVx8J6pnFMS3E4dcq4=
modernc.org/opt v0.1.3/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0=
modernc.org/sqlite v1.25.0 h1:AFweiwPNd/b3BoKnBOfFm+Y260guGMF+0UFk0savqeA=
modernc.org/sqlite v1.25.0/go.mod h1:FL3pVXie73rg3Rii6V/u5BoHlSoyeZeIgKZEgHARyCU=
modernc.org/sqlite v1.26.0 h1:SocQdLRSYlA8W99V8YH0NES75thx19d9sB/aFc4R8Lw=
modernc.org/sqlite v1.26.0/go.mod h1:FL3pVXie73rg3Rii6V/u5BoHlSoyeZeIgKZEgHARyCU=
modernc.org/strutil v1.2.0 h1:agBi9dp1I+eOnxXeiZawM8F4LawKv4NzGWSaLfyeNZA=
+3
View File
@@ -0,0 +1,3 @@
files:
- source: /frontend/src/lib/i18n/*/index.ts
translation: /frontend/src/lib/i18n/%locale%/index.ts
+3 -3
View File
@@ -17,10 +17,10 @@
"devDependencies": {
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.25.1",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"autoprefixer": "^10.4.16",
"daisyui": "^3.8.2",
"daisyui": "^3.8.3",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte": "^2.33.2",
+54 -54
View File
@@ -38,17 +38,17 @@ devDependencies:
specifier: ^1.25.1
version: 1.25.1(svelte@4.2.1)(vite@4.4.9)
'@typescript-eslint/eslint-plugin':
specifier: ^6.7.3
version: 6.7.3(@typescript-eslint/parser@6.7.3)(eslint@8.50.0)(typescript@5.2.2)
specifier: ^6.7.4
version: 6.7.4(@typescript-eslint/parser@6.7.4)(eslint@8.50.0)(typescript@5.2.2)
'@typescript-eslint/parser':
specifier: ^6.7.3
version: 6.7.3(eslint@8.50.0)(typescript@5.2.2)
specifier: ^6.7.4
version: 6.7.4(eslint@8.50.0)(typescript@5.2.2)
autoprefixer:
specifier: ^10.4.16
version: 10.4.16(postcss@8.4.31)
daisyui:
specifier: ^3.8.2
version: 3.8.2
specifier: ^3.8.3
version: 3.8.3
eslint:
specifier: ^8.50.0
version: 8.50.0
@@ -403,10 +403,10 @@ packages:
eslint-visitor-keys: 3.4.3
dev: true
/@eslint-community/regexpp@4.9.0:
/@eslint-community/regexpp@4.9.1:
resolution:
{
integrity: sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ==
integrity: sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==
}
engines: { node: ^12.0.0 || ^14.0.0 || >=16.0.0 }
dev: true
@@ -691,10 +691,10 @@ packages:
}
dev: true
/@typescript-eslint/eslint-plugin@6.7.3(@typescript-eslint/parser@6.7.3)(eslint@8.50.0)(typescript@5.2.2):
/@typescript-eslint/eslint-plugin@6.7.4(@typescript-eslint/parser@6.7.4)(eslint@8.50.0)(typescript@5.2.2):
resolution:
{
integrity: sha512-vntq452UHNltxsaaN+L9WyuMch8bMd9CqJ3zhzTPXXidwbf5mqqKCVXEuvRZUqLJSTLeWE65lQwyXsRGnXkCTA==
integrity: sha512-DAbgDXwtX+pDkAHwiGhqP3zWUGpW49B7eqmgpPtg+BKJXwdct79ut9+ifqOFPJGClGKSHXn2PTBatCnldJRUoA==
}
engines: { node: ^16.0.0 || >=18.0.0 }
peerDependencies:
@@ -705,12 +705,12 @@ packages:
typescript:
optional: true
dependencies:
'@eslint-community/regexpp': 4.9.0
'@typescript-eslint/parser': 6.7.3(eslint@8.50.0)(typescript@5.2.2)
'@typescript-eslint/scope-manager': 6.7.3
'@typescript-eslint/type-utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2)
'@typescript-eslint/utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2)
'@typescript-eslint/visitor-keys': 6.7.3
'@eslint-community/regexpp': 4.9.1
'@typescript-eslint/parser': 6.7.4(eslint@8.50.0)(typescript@5.2.2)
'@typescript-eslint/scope-manager': 6.7.4
'@typescript-eslint/type-utils': 6.7.4(eslint@8.50.0)(typescript@5.2.2)
'@typescript-eslint/utils': 6.7.4(eslint@8.50.0)(typescript@5.2.2)
'@typescript-eslint/visitor-keys': 6.7.4
debug: 4.3.4
eslint: 8.50.0
graphemer: 1.4.0
@@ -723,10 +723,10 @@ packages:
- supports-color
dev: true
/@typescript-eslint/parser@6.7.3(eslint@8.50.0)(typescript@5.2.2):
/@typescript-eslint/parser@6.7.4(eslint@8.50.0)(typescript@5.2.2):
resolution:
{
integrity: sha512-TlutE+iep2o7R8Lf+yoer3zU6/0EAUc8QIBB3GYBc1KGz4c4TRm83xwXUZVPlZ6YCLss4r77jbu6j3sendJoiQ==
integrity: sha512-I5zVZFY+cw4IMZUeNCU7Sh2PO5O57F7Lr0uyhgCJmhN/BuTlnc55KxPonR4+EM3GBdfiCyGZye6DgMjtubQkmA==
}
engines: { node: ^16.0.0 || >=18.0.0 }
peerDependencies:
@@ -736,10 +736,10 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/scope-manager': 6.7.3
'@typescript-eslint/types': 6.7.3
'@typescript-eslint/typescript-estree': 6.7.3(typescript@5.2.2)
'@typescript-eslint/visitor-keys': 6.7.3
'@typescript-eslint/scope-manager': 6.7.4
'@typescript-eslint/types': 6.7.4
'@typescript-eslint/typescript-estree': 6.7.4(typescript@5.2.2)
'@typescript-eslint/visitor-keys': 6.7.4
debug: 4.3.4
eslint: 8.50.0
typescript: 5.2.2
@@ -747,21 +747,21 @@ packages:
- supports-color
dev: true
/@typescript-eslint/scope-manager@6.7.3:
/@typescript-eslint/scope-manager@6.7.4:
resolution:
{
integrity: sha512-wOlo0QnEou9cHO2TdkJmzF7DFGvAKEnB82PuPNHpT8ZKKaZu6Bm63ugOTn9fXNJtvuDPanBc78lGUGGytJoVzQ==
integrity: sha512-SdGqSLUPTXAXi7c3Ob7peAGVnmMoGzZ361VswK2Mqf8UOYcODiYvs8rs5ILqEdfvX1lE7wEZbLyELCW+Yrql1A==
}
engines: { node: ^16.0.0 || >=18.0.0 }
dependencies:
'@typescript-eslint/types': 6.7.3
'@typescript-eslint/visitor-keys': 6.7.3
'@typescript-eslint/types': 6.7.4
'@typescript-eslint/visitor-keys': 6.7.4
dev: true
/@typescript-eslint/type-utils@6.7.3(eslint@8.50.0)(typescript@5.2.2):
/@typescript-eslint/type-utils@6.7.4(eslint@8.50.0)(typescript@5.2.2):
resolution:
{
integrity: sha512-Fc68K0aTDrKIBvLnKTZ5Pf3MXK495YErrbHb1R6aTpfK5OdSFj0rVN7ib6Tx6ePrZ2gsjLqr0s98NG7l96KSQw==
integrity: sha512-n+g3zi1QzpcAdHFP9KQF+rEFxMb2KxtnJGID3teA/nxKHOVi3ylKovaqEzGBbVY2pBttU6z85gp0D00ufLzViQ==
}
engines: { node: ^16.0.0 || >=18.0.0 }
peerDependencies:
@@ -771,8 +771,8 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/typescript-estree': 6.7.3(typescript@5.2.2)
'@typescript-eslint/utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2)
'@typescript-eslint/typescript-estree': 6.7.4(typescript@5.2.2)
'@typescript-eslint/utils': 6.7.4(eslint@8.50.0)(typescript@5.2.2)
debug: 4.3.4
eslint: 8.50.0
ts-api-utils: 1.0.3(typescript@5.2.2)
@@ -781,18 +781,18 @@ packages:
- supports-color
dev: true
/@typescript-eslint/types@6.7.3:
/@typescript-eslint/types@6.7.4:
resolution:
{
integrity: sha512-4g+de6roB2NFcfkZb439tigpAMnvEIg3rIjWQ+EM7IBaYt/CdJt6em9BJ4h4UpdgaBWdmx2iWsafHTrqmgIPNw==
integrity: sha512-o9XWK2FLW6eSS/0r/tgjAGsYasLAnOWg7hvZ/dGYSSNjCh+49k5ocPN8OmG5aZcSJ8pclSOyVKP2x03Sj+RrCA==
}
engines: { node: ^16.0.0 || >=18.0.0 }
dev: true
/@typescript-eslint/typescript-estree@6.7.3(typescript@5.2.2):
/@typescript-eslint/typescript-estree@6.7.4(typescript@5.2.2):
resolution:
{
integrity: sha512-YLQ3tJoS4VxLFYHTw21oe1/vIZPRqAO91z6Uv0Ss2BKm/Ag7/RVQBcXTGcXhgJMdA4U+HrKuY5gWlJlvoaKZ5g==
integrity: sha512-ty8b5qHKatlNYd9vmpHooQz3Vki3gG+3PchmtsA4TgrZBKWHNjWfkQid7K7xQogBqqc7/BhGazxMD5vr6Ha+iQ==
}
engines: { node: ^16.0.0 || >=18.0.0 }
peerDependencies:
@@ -801,8 +801,8 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/types': 6.7.3
'@typescript-eslint/visitor-keys': 6.7.3
'@typescript-eslint/types': 6.7.4
'@typescript-eslint/visitor-keys': 6.7.4
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
@@ -813,10 +813,10 @@ packages:
- supports-color
dev: true
/@typescript-eslint/utils@6.7.3(eslint@8.50.0)(typescript@5.2.2):
/@typescript-eslint/utils@6.7.4(eslint@8.50.0)(typescript@5.2.2):
resolution:
{
integrity: sha512-vzLkVder21GpWRrmSR9JxGZ5+ibIUSudXlW52qeKpzUEQhRSmyZiVDDj3crAth7+5tmN1ulvgKaCU2f/bPRCzg==
integrity: sha512-PRQAs+HUn85Qdk+khAxsVV+oULy3VkbH3hQ8hxLRJXWBEd7iI+GbQxH5SEUSH7kbEoTp6oT1bOwyga24ELALTA==
}
engines: { node: ^16.0.0 || >=18.0.0 }
peerDependencies:
@@ -825,9 +825,9 @@ packages:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.50.0)
'@types/json-schema': 7.0.13
'@types/semver': 7.5.3
'@typescript-eslint/scope-manager': 6.7.3
'@typescript-eslint/types': 6.7.3
'@typescript-eslint/typescript-estree': 6.7.3(typescript@5.2.2)
'@typescript-eslint/scope-manager': 6.7.4
'@typescript-eslint/types': 6.7.4
'@typescript-eslint/typescript-estree': 6.7.4(typescript@5.2.2)
eslint: 8.50.0
semver: 7.5.4
transitivePeerDependencies:
@@ -835,14 +835,14 @@ packages:
- typescript
dev: true
/@typescript-eslint/visitor-keys@6.7.3:
/@typescript-eslint/visitor-keys@6.7.4:
resolution:
{
integrity: sha512-HEVXkU9IB+nk9o63CeICMHxFWbHWr3E1mpilIQBe9+7L/lH97rleFLVtYsfnWB+JVMaiFnEaxvknvmIzX+CqVg==
integrity: sha512-pOW37DUhlTZbvph50x5zZCkFn3xzwkGtNoJHzIM3svpiSkJzwOYr/kVBaXmf+RAQiUDs1AHEZVNPg6UJCJpwRA==
}
engines: { node: ^16.0.0 || >=18.0.0 }
dependencies:
'@typescript-eslint/types': 6.7.3
'@typescript-eslint/types': 6.7.4
eslint-visitor-keys: 3.4.3
dev: true
@@ -990,7 +990,7 @@ packages:
postcss: ^8.1.0
dependencies:
browserslist: 4.22.1
caniuse-lite: 1.0.30001541
caniuse-lite: 1.0.30001543
fraction.js: 4.3.6
normalize-range: 0.1.2
picocolors: 1.0.0
@@ -1055,8 +1055,8 @@ packages:
engines: { node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7 }
hasBin: true
dependencies:
caniuse-lite: 1.0.30001541
electron-to-chromium: 1.4.537
caniuse-lite: 1.0.30001543
electron-to-chromium: 1.4.539
node-releases: 2.0.13
update-browserslist-db: 1.0.13(browserslist@4.22.1)
dev: true
@@ -1094,10 +1094,10 @@ packages:
engines: { node: '>= 6' }
dev: true
/caniuse-lite@1.0.30001541:
/caniuse-lite@1.0.30001543:
resolution:
{
integrity: sha512-bLOsqxDgTqUBkzxbNlSBt8annkDpQB9NdzdTbO2ooJ+eC/IQcvDspDc058g84ejCelF7vHUx57KIOjEecOHXaw==
integrity: sha512-qxdO8KPWPQ+Zk6bvNpPeQIOH47qZSYdFZd6dXQzb2KzhnSXju4Kd7H1PkSJx6NICSMgo/IhRZRhhfPTHYpJUCA==
}
dev: true
@@ -1271,10 +1271,10 @@ packages:
hasBin: true
dev: true
/daisyui@3.8.2:
/daisyui@3.8.3:
resolution:
{
integrity: sha512-Dxq4AzYPfUOhrqqs1wdKLE4GUVGc3mJf8asdY7AHoI5QVBgqItU3fsd1idpHDnOJNdaTHmZGo0jvQtXr5IOejw==
integrity: sha512-64QuR6niTv58E5YyAVBkoXQGngp04jt6XOcKGxnq1C/7r5ZE3bDuOSc4ktT7CPacTRjl5cCeNYY13VxLpZP+7A==
}
engines: { node: '>=16.9.0' }
dependencies:
@@ -1407,10 +1407,10 @@ packages:
esutils: 2.0.3
dev: true
/electron-to-chromium@1.4.537:
/electron-to-chromium@1.4.539:
resolution:
{
integrity: sha512-W1+g9qs9hviII0HAwOdehGYkr+zt7KKdmCcJcjH0mYg6oL8+ioT3Skjmt7BLoAQqXhjf40AXd+HlR4oAWMlXjA==
integrity: sha512-wRmWJ8F7rgmINuI32S6r2SLrw/h/bJQsDSvBiq9GBfvc2Lh73qTOwn73r3Cf67mjVgFGJYcYtmERzySa5jIWlg==
}
dev: true
@@ -1630,7 +1630,7 @@ packages:
hasBin: true
dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.50.0)
'@eslint-community/regexpp': 4.9.0
'@eslint-community/regexpp': 4.9.1
'@eslint/eslintrc': 2.1.2
'@eslint/js': 8.50.0
'@humanwhocodes/config-array': 0.11.11
@@ -63,12 +63,15 @@
$: if ($locale !== undefined) {
(async () => {
switch ($locale) {
case 'de':
case 'de' || 'de-DE':
dateFnsLocale = (await import('date-fns/locale/de/index.js')).default;
break;
case 'en-US':
case 'en' || 'en-US':
dateFnsLocale = (await import('date-fns/locale/en-US/index.js')).default;
break;
case 'pt' || 'pt-PT':
dateFnsLocale = (await import('date-fns/locale/pt/index.js')).default;
break;
}
})();
}
+8
View File
@@ -0,0 +1,8 @@
import de from '../de';
import type { Translation } from '../i18n-types';
const de_DE = {
...(de as unknown as Translation)
} satisfies Translation;
export default de_DE;
+2 -2
View File
@@ -1,8 +1,8 @@
import en_US from '../en-US';
import en from '../en';
import type { Translation } from '../i18n-types';
const de = {
...(en_US as unknown as Translation),
...(en as unknown as Translation),
home: {
page_title: 'Home',
order_groups: 'Gruppen',
+4 -206
View File
@@ -1,210 +1,8 @@
import type { BaseTranslation } from '../i18n-types';
import en from '../en';
import type { Translation } from '../i18n-types';
const en_US = {
home: {
page_title: 'Home',
order_groups: 'Groups',
order_name: 'Name',
order_ip: 'IP',
order_tooltip: 'Order',
no_devices: 'No devices here.',
add_first_device: 'Add your first device',
grant_permissions:
'Please ask the admin to grant you permissions to existing devices or to create new ones.'
},
account: {
page_title: 'Account',
account_type_admin: 'Admin',
account_type_user: 'User',
avatar_title: 'Avatar',
language_title: 'Language',
language_option_auto: 'Automatic',
change_password_title: 'Change password',
change_password_body: 'After the password has been changed, you will need to log in again.',
change_password_label: 'Old password',
change_password_new: 'New password',
change_password_confirm: 'Confirm password'
},
device: {
page_title: 'New device',
tabs: ['Manual', 'Network Scan'],
card_btn_more: 'More',
card_btn_more_edit: 'Edit',
card_btn_more_sleep: 'Sleep',
card_btn_more_reboot: 'Reboot',
card_tooltip_wake_cron: 'Wake cron',
card_tooltip_shutdown_cron: 'Shutdown cron',
card_tooltip_wake_password: 'Wake password',
card_tooltip_last_status_change: 'Last status change',
card_password: 'Password',
card_nic_tooltip_pending: 'Pending',
card_nic_tooltip_shutdown: 'Shut down',
card_nic_tooltip_shutdown_no_cmd: 'No shutdown command set',
card_nic_tooltip_shutdown_no_permission: 'No permission to shut down this device',
card_nic_tooltip_power: 'Power on',
card_nic_tooltip_power_no_permission: 'No permission to power on this device',
general: 'General',
general_name: 'Name',
general_name_placeholder: 'Device name',
general_ip: 'IP',
general_mac: 'Mac',
general_netmask: 'Netmask',
general_required_field: 'required field',
ports: 'Ports',
ports_desc: 'UpSnap can also check if given ports are open.',
ports_add_new: 'Add new port',
ports_name: 'Name',
ports_number: 'Number',
link: 'Link',
link_desc:
'Makes your device name a clickable link, perfect for linking a dashboard for example.',
wake: 'Wake',
wake_desc: 'You can power this device using a scheduled cron job.',
wake_cron: 'Wake cron',
wake_cron_enable: 'Enable wake cron',
sol: 'Sleep-On-LAN',
sol_desc1:
'You can put computers to sleep using the <a class="link" href="https://github.com/SR-G/sleep-on-lan" target="_blank">Sleep-On-LAN</a> tool. Sleep-On-LAN (SOL) is an external tool/daemon that operates on the PCs you want to put to sleep, providing a REST endpoint. For instructions on setting up Sleep-On-LAN, please refer to the <a href="https://github.com/SR-G/sleep-on-lan#usage" class="link" target="_blank">Usage</a> section.',
sol_desc2:
'SOL is configured to send requests over HTTP instead of UDP to enable authorization and make requests more reliable.',
sol_desc3:
'Therefore, please ensure that you include <span class="badge">HTTP:&lt;YOURPORT&gt;</span> in the <span class="badge">Listeners</span> section of the <a href="https://github.com/SR-G/sleep-on-lan#configuration" class="link" target="_blank">SOL configuration</a>.',
sol_enable: 'Enable Sleep-On-LAN',
sol_port: 'SOL Port',
sol_authorization: 'Authorization',
sol_user: 'SOL User',
sol_password: 'SOL Password',
shutdown: 'Shutdown',
shutdown_desc:
'This <strong>shell command</strong> will run inside your container (if you use docker) or on your host (if you use the binary). To verify that works you can run the command inside the container or on your host shell first. Common commands are <span class="badge">net rpc</span> for windows, <span class="badge">sshpass</span> for linux or <span class="badge">curl</span> in general to make web requests.',
shutdown_examples: 'Examples:',
shutdown_examples_windows: 'Shutdown remote windows machine:',
shutdown_examples_linux: 'Shutdown remote linux machine:',
shutdown_cmd: 'Shutdown command',
shutdown_cron_desc:
'Just like setting a cron to wake the device, you can also schedule a cron job to shut down this device.',
shutdown_cron: 'Shutdown cron',
shutdown_cron_enable: 'Enable shutdown cron',
password: 'Password',
password_desc:
'Some network cards have the option to set a password for magic packets, also called <span class="badge">SecureON</span>. Password can only be 0, 4 or 6 characters in length.',
groups: 'Groups',
groups_desc: 'You can add devices to a group to have them sorted by group on the dashboard.',
groups_placeholder: "e.g. 'Basement' or 'Office'",
network_scan_range_saved: 'Scan range saved',
network_scan_desc:
"Automatically scan your network for devices. For this to work, you need to run UpSnap as root/admin and have nmap installed and available in your $PATH (For docker users, thats already the case and you don't need to do anything). Scanning might take some seconds.",
network_scan_ip_range: 'IP range',
network_scan_no_range: 'No scan range',
network_scan_unsaved_changes: 'Unsaved changes',
network_scan_running: 'Scan running',
network_scan: 'Scan',
network_scan_ip: 'IP:',
network_scan_mac: 'Mac:',
network_scan_mac_vendor: 'Mac vendor:',
network_scan_netmask: 'Netmask:',
network_scan_add_all: 'Add all devices',
network_scan_replace_netmask: 'Replace netmask for all devices?',
network_scan_new_netmask: 'New netmask',
network_scan_include_unknown: 'Include devices where name is "Unknown"'
},
login: {
welcome: 'Welcome',
email_label: 'Email or Username:',
password_label: 'Password:',
btn_more: 'More',
menu_title_auth_providers: 'Other Auth Providers',
btn_login: 'Login'
},
settings: {
page_title: 'Settings',
ping_interval_title: 'Ping interval',
ping_interval_desc1:
'Sets the interval in which the devices are pinged. Leave blank to use default value of <span class="badge">@every 3s</span>.',
ping_interval_desc2:
'Learn more about the correct syntax for cron on <a class="link" href="https://en.wikipedia.org/wiki/Cron" target="_blank">Wikipedia</a> or refer to the <a class="link" href="https://pkg.go.dev/github.com/robfig/cron/v3" target="_blank">package documentation</a>.',
lazy_ping_title: 'Lazy ping',
lazy_ping_desc:
"When lazy ping is turned on, UpSnap will only ping devices if there is an active user visiting the website. If it's turned off, UpSnap will always ping devices.",
lazy_ping_enable: 'Enable',
website_title_title: 'Website title',
website_title_desc: 'Sets the title of the website and in the browser tab.',
icon_title: 'Icon',
icon_desc: 'Set a custom favicon. Supported file types are:',
upsnap_version: 'UpSnap version'
},
users: {
page_title: 'Users',
allow_create_devices: 'Allow {username} to create new devices and edit device groups',
device_permissions: 'Device permissions',
create_new_device: 'Create new device',
read: 'Read',
update: 'Update',
delete: 'Delete',
power: 'Power',
toggle: 'Toggle',
confirm_delete_title: 'Confirm delete',
confirm_delete_desc: 'Are you sure you want to delete {username}?',
create_new_user: 'Create new user',
username: 'Username',
password: 'Password',
password_confirm: 'Password confirm',
required_field: 'required field'
},
buttons: {
save: 'Save',
delete: 'Delete',
change: 'Change',
reset: 'Reset',
cancle: 'Cancle',
add: 'Add'
},
welcome: {
step1_page_title: 'Welcome to UpSnap 🥳',
step1_setup_desc: 'Please complete the following steps to finish the setup.',
step1_setup_btn_next: 'Next',
step2_page_title: 'Create an admin account',
step2_label_email: 'Email:',
step2_label_password: 'Password:',
step2_label_min_chars: 'min. 10 characters',
step2_label_password_confirm: 'Password confirm:',
step2_btn_create: 'Create',
step3_page_title: 'You are all set! 🎉',
step3_page_desc: 'Go ahead and add some devices to your dashboard.',
step3_btn_done: 'Lets go!',
not_expected_title: "I didn't expect you here! 🧐",
not_expected_desc: 'You are already done with the setup! Nothing to do.',
not_expected_back: 'Take me back',
progress_step1: 'Welcome',
progress_step2: 'Create account',
progress_step3: 'Done'
},
toasts: {
admin_saved: 'Admin saved',
user_saved: 'User saved',
user_created: 'User {username} created',
user_deleted: 'User {username} deleted',
settings_saved: 'Saved settings',
password_changed: 'Password changed. Please login again.',
passwords_missmatch: "Passwords don't match",
permissions_created: 'Permissions for {username} created',
permissions_deleted: 'Permissions for {username} deleted',
permissions_updated: 'Permissions for {username} updated',
permissions_updated_personal: 'Your permissions have been updated',
no_permission: "You don't have permission to visit {url}",
device_created: 'Created {device}',
devices_created_multiple: 'Created {count|int} devices',
device_updated: 'Updated {device}',
device_deleted: 'Deleted {device}',
group_created: 'Created group {group}',
group_deleted: 'Deleted group {group}'
},
navbar: {
theme: 'Theme',
new: 'New',
edit_account: 'Edit account',
logout: 'Logout'
}
} satisfies BaseTranslation;
...(en as unknown as Translation)
} satisfies Translation;
export default en_US;
+210
View File
@@ -0,0 +1,210 @@
import type { BaseTranslation } from '../i18n-types';
const en = {
home: {
page_title: 'Home',
order_groups: 'Groups',
order_name: 'Name',
order_ip: 'IP',
order_tooltip: 'Order',
no_devices: 'No devices here.',
add_first_device: 'Add your first device',
grant_permissions:
'Please ask the admin to grant you permissions to existing devices or to create new ones.'
},
account: {
page_title: 'Account',
account_type_admin: 'Admin',
account_type_user: 'User',
avatar_title: 'Avatar',
language_title: 'Language',
language_option_auto: 'Automatic',
change_password_title: 'Change password',
change_password_body: 'After the password has been changed, you will need to log in again.',
change_password_label: 'Old password',
change_password_new: 'New password',
change_password_confirm: 'Confirm password'
},
device: {
page_title: 'New device',
tabs: ['Manual', 'Network Scan'],
card_btn_more: 'More',
card_btn_more_edit: 'Edit',
card_btn_more_sleep: 'Sleep',
card_btn_more_reboot: 'Reboot',
card_tooltip_wake_cron: 'Wake cron',
card_tooltip_shutdown_cron: 'Shutdown cron',
card_tooltip_wake_password: 'Wake password',
card_tooltip_last_status_change: 'Last status change',
card_password: 'Password',
card_nic_tooltip_pending: 'Pending',
card_nic_tooltip_shutdown: 'Shut down',
card_nic_tooltip_shutdown_no_cmd: 'No shutdown command set',
card_nic_tooltip_shutdown_no_permission: 'No permission to shut down this device',
card_nic_tooltip_power: 'Power on',
card_nic_tooltip_power_no_permission: 'No permission to power on this device',
general: 'General',
general_name: 'Name',
general_name_placeholder: 'Device name',
general_ip: 'IP',
general_mac: 'Mac',
general_netmask: 'Netmask',
general_required_field: 'required field',
ports: 'Ports',
ports_desc: 'UpSnap can also check if given ports are open.',
ports_add_new: 'Add new port',
ports_name: 'Name',
ports_number: 'Number',
link: 'Link',
link_desc:
'Makes your device name a clickable link, perfect for linking a dashboard for example.',
wake: 'Wake',
wake_desc: 'You can power this device using a scheduled cron job.',
wake_cron: 'Wake cron',
wake_cron_enable: 'Enable wake cron',
sol: 'Sleep-On-LAN',
sol_desc1:
'You can put computers to sleep using the <a class="link" href="https://github.com/SR-G/sleep-on-lan" target="_blank">Sleep-On-LAN</a> tool. Sleep-On-LAN (SOL) is an external tool/daemon that operates on the PCs you want to put to sleep, providing a REST endpoint. For instructions on setting up Sleep-On-LAN, please refer to the <a href="https://github.com/SR-G/sleep-on-lan#usage" class="link" target="_blank">Usage</a> section.',
sol_desc2:
'SOL is configured to send requests over HTTP instead of UDP to enable authorization and make requests more reliable.',
sol_desc3:
'Therefore, please ensure that you include <span class="badge">HTTP:&lt;YOURPORT&gt;</span> in the <span class="badge">Listeners</span> section of the <a href="https://github.com/SR-G/sleep-on-lan#configuration" class="link" target="_blank">SOL configuration</a>.',
sol_enable: 'Enable Sleep-On-LAN',
sol_port: 'SOL Port',
sol_authorization: 'Authorization',
sol_user: 'SOL User',
sol_password: 'SOL Password',
shutdown: 'Shutdown',
shutdown_desc:
'This <strong>shell command</strong> will run inside your container (if you use docker) or on your host (if you use the binary). To verify that works you can run the command inside the container or on your host shell first. Common commands are <span class="badge">net rpc</span> for windows, <span class="badge">sshpass</span> for linux or <span class="badge">curl</span> in general to make web requests.',
shutdown_examples: 'Examples:',
shutdown_examples_windows: 'Shutdown remote windows machine:',
shutdown_examples_linux: 'Shutdown remote linux machine:',
shutdown_cmd: 'Shutdown command',
shutdown_cron_desc:
'Just like setting a cron to wake the device, you can also schedule a cron job to shut down this device.',
shutdown_cron: 'Shutdown cron',
shutdown_cron_enable: 'Enable shutdown cron',
password: 'Password',
password_desc:
'Some network cards have the option to set a password for magic packets, also called <span class="badge">SecureON</span>. Password can only be 0, 4 or 6 characters in length.',
groups: 'Groups',
groups_desc: 'You can add devices to a group to have them sorted by group on the dashboard.',
groups_placeholder: "e.g. 'Basement' or 'Office'",
network_scan_range_saved: 'Scan range saved',
network_scan_desc:
"Automatically scan your network for devices. For this to work, you need to run UpSnap as root/admin and have nmap installed and available in your $PATH (For docker users, thats already the case and you don't need to do anything). Scanning might take some seconds.",
network_scan_ip_range: 'IP range',
network_scan_no_range: 'No scan range',
network_scan_unsaved_changes: 'Unsaved changes',
network_scan_running: 'Scan running',
network_scan: 'Scan',
network_scan_ip: 'IP:',
network_scan_mac: 'Mac:',
network_scan_mac_vendor: 'Mac vendor:',
network_scan_netmask: 'Netmask:',
network_scan_add_all: 'Add all devices',
network_scan_replace_netmask: 'Replace netmask for all devices?',
network_scan_new_netmask: 'New netmask',
network_scan_include_unknown: 'Include devices where name is "Unknown"'
},
login: {
welcome: 'Welcome',
email_label: 'Email or Username:',
password_label: 'Password:',
btn_more: 'More',
menu_title_auth_providers: 'Other Auth Providers',
btn_login: 'Login'
},
settings: {
page_title: 'Settings',
ping_interval_title: 'Ping interval',
ping_interval_desc1:
'Sets the interval in which the devices are pinged. Leave blank to use default value of <span class="badge">@every 3s</span>.',
ping_interval_desc2:
'Learn more about the correct syntax for cron on <a class="link" href="https://en.wikipedia.org/wiki/Cron" target="_blank">Wikipedia</a> or refer to the <a class="link" href="https://pkg.go.dev/github.com/robfig/cron/v3" target="_blank">package documentation</a>.',
lazy_ping_title: 'Lazy ping',
lazy_ping_desc:
"When lazy ping is turned on, UpSnap will only ping devices if there is an active user visiting the website. If it's turned off, UpSnap will always ping devices.",
lazy_ping_enable: 'Enable',
website_title_title: 'Website title',
website_title_desc: 'Sets the title of the website and in the browser tab.',
icon_title: 'Icon',
icon_desc: 'Set a custom favicon. Supported file types are:',
upsnap_version: 'UpSnap version'
},
users: {
page_title: 'Users',
allow_create_devices: 'Allow {username} to create new devices and edit device groups',
device_permissions: 'Device permissions',
create_new_device: 'Create new device',
read: 'Read',
update: 'Update',
delete: 'Delete',
power: 'Power',
toggle: 'Toggle',
confirm_delete_title: 'Confirm delete',
confirm_delete_desc: 'Are you sure you want to delete {username}?',
create_new_user: 'Create new user',
username: 'Username',
password: 'Password',
password_confirm: 'Password confirm',
required_field: 'required field'
},
buttons: {
save: 'Save',
delete: 'Delete',
change: 'Change',
reset: 'Reset',
cancle: 'Cancle',
add: 'Add'
},
welcome: {
step1_page_title: 'Welcome to UpSnap 🥳',
step1_setup_desc: 'Please complete the following steps to finish the setup.',
step1_setup_btn_next: 'Next',
step2_page_title: 'Create an admin account',
step2_label_email: 'Email:',
step2_label_password: 'Password:',
step2_label_min_chars: 'min. 10 characters',
step2_label_password_confirm: 'Password confirm:',
step2_btn_create: 'Create',
step3_page_title: 'You are all set! 🎉',
step3_page_desc: 'Go ahead and add some devices to your dashboard.',
step3_btn_done: 'Lets go!',
not_expected_title: "I didn't expect you here! 🧐",
not_expected_desc: 'You are already done with the setup! Nothing to do.',
not_expected_back: 'Take me back',
progress_step1: 'Welcome',
progress_step2: 'Create account',
progress_step3: 'Done'
},
toasts: {
admin_saved: 'Admin saved',
user_saved: 'User saved',
user_created: 'User {username} created',
user_deleted: 'User {username} deleted',
settings_saved: 'Saved settings',
password_changed: 'Password changed. Please login again.',
passwords_missmatch: "Passwords don't match",
permissions_created: 'Permissions for {username} created',
permissions_deleted: 'Permissions for {username} deleted',
permissions_updated: 'Permissions for {username} updated',
permissions_updated_personal: 'Your permissions have been updated',
no_permission: "You don't have permission to visit {url}",
device_created: 'Created {device}',
devices_created_multiple: 'Created {count|int} devices',
device_updated: 'Updated {device}',
device_deleted: 'Deleted {device}',
group_created: 'Created group {group}',
group_deleted: 'Deleted group {group}'
},
navbar: {
theme: 'Theme',
new: 'New',
edit_account: 'Edit account',
logout: 'Logout'
}
} satisfies BaseTranslation;
export default en;
+11 -6
View File
@@ -1,12 +1,17 @@
// This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten.
/* eslint-disable */
import { initI18nSvelte } from 'typesafe-i18n/svelte'
import type { Formatters, Locales, TranslationFunctions, Translations } from './i18n-types'
import { loadedFormatters, loadedLocales } from './i18n-util'
import { initI18nSvelte } from 'typesafe-i18n/svelte';
import type { Formatters, Locales, TranslationFunctions, Translations } from './i18n-types';
import { loadedFormatters, loadedLocales } from './i18n-util';
const { locale, LL, setLocale } = initI18nSvelte<Locales, Translations, TranslationFunctions, Formatters>(loadedLocales, loadedFormatters)
const { locale, LL, setLocale } = initI18nSvelte<
Locales,
Translations,
TranslationFunctions,
Formatters
>(loadedLocales, loadedFormatters);
export { locale, LL, setLocale }
export { locale, LL, setLocale };
export default LL
export default LL;
File diff suppressed because it is too large Load Diff
+15 -11
View File
@@ -1,27 +1,31 @@
// This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten.
/* eslint-disable */
import { initFormatters } from './formatters'
import type { Locales, Translations } from './i18n-types'
import { loadedFormatters, loadedLocales, locales } from './i18n-util'
import { initFormatters } from './formatters';
import type { Locales, Translations } from './i18n-types';
import { loadedFormatters, loadedLocales, locales } from './i18n-util';
const localeTranslationLoaders = {
de: () => import('./de'),
'de-DE': () => import('./de-DE'),
en: () => import('./en'),
'en-US': () => import('./en-US'),
}
pt: () => import('./pt'),
'pt-PT': () => import('./pt-PT')
};
const updateDictionary = (locale: Locales, dictionary: Partial<Translations>): Translations =>
loadedLocales[locale] = { ...loadedLocales[locale], ...dictionary }
(loadedLocales[locale] = { ...loadedLocales[locale], ...dictionary });
export const importLocaleAsync = async (locale: Locales): Promise<Translations> =>
(await localeTranslationLoaders[locale]()).default as unknown as Translations
(await localeTranslationLoaders[locale]()).default as unknown as Translations;
export const loadLocaleAsync = async (locale: Locales): Promise<void> => {
updateDictionary(locale, await importLocaleAsync(locale))
loadFormatters(locale)
}
updateDictionary(locale, await importLocaleAsync(locale));
loadFormatters(locale);
};
export const loadAllLocalesAsync = (): Promise<void[]> => Promise.all(locales.map(loadLocaleAsync))
export const loadAllLocalesAsync = (): Promise<void[]> => Promise.all(locales.map(loadLocaleAsync));
export const loadFormatters = (locale: Locales): void =>
void (loadedFormatters[locale] = initFormatters(locale))
void (loadedFormatters[locale] = initFormatters(locale));
+20 -12
View File
@@ -1,26 +1,34 @@
// This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten.
/* eslint-disable */
import { initFormatters } from './formatters'
import type { Locales, Translations } from './i18n-types'
import { loadedFormatters, loadedLocales, locales } from './i18n-util'
import { initFormatters } from './formatters';
import type { Locales, Translations } from './i18n-types';
import { loadedFormatters, loadedLocales, locales } from './i18n-util';
import de from './de'
import en_US from './en-US'
import de from './de';
import de_DE from './de-DE';
import en from './en';
import en_US from './en-US';
import pt from './pt';
import pt_PT from './pt-PT';
const localeTranslations = {
de,
'de-DE': de_DE,
en,
'en-US': en_US,
}
pt,
'pt-PT': pt_PT
};
export const loadLocale = (locale: Locales): void => {
if (loadedLocales[locale]) return
if (loadedLocales[locale]) return;
loadedLocales[locale] = localeTranslations[locale] as unknown as Translations
loadFormatters(locale)
}
loadedLocales[locale] = localeTranslations[locale] as unknown as Translations;
loadFormatters(locale);
};
export const loadAllLocales = (): void => locales.forEach(loadLocale)
export const loadAllLocales = (): void => locales.forEach(loadLocale);
export const loadFormatters = (locale: Locales): void =>
void (loadedFormatters[locale] = initFormatters(locale))
void (loadedFormatters[locale] = initFormatters(locale));
+25 -19
View File
@@ -1,38 +1,44 @@
// This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten.
/* eslint-disable */
import { i18n as initI18n, i18nObject as initI18nObject, i18nString as initI18nString } from 'typesafe-i18n'
import type { LocaleDetector } from 'typesafe-i18n/detectors'
import type { LocaleTranslationFunctions, TranslateByString } from 'typesafe-i18n'
import { detectLocale as detectLocaleFn } from 'typesafe-i18n/detectors'
import { initExtendDictionary } from 'typesafe-i18n/utils'
import type { Formatters, Locales, Translations, TranslationFunctions } from './i18n-types'
import {
i18n as initI18n,
i18nObject as initI18nObject,
i18nString as initI18nString
} from 'typesafe-i18n';
import type { LocaleDetector } from 'typesafe-i18n/detectors';
import type { LocaleTranslationFunctions, TranslateByString } from 'typesafe-i18n';
import { detectLocale as detectLocaleFn } from 'typesafe-i18n/detectors';
import { initExtendDictionary } from 'typesafe-i18n/utils';
import type { Formatters, Locales, Translations, TranslationFunctions } from './i18n-types';
export const baseLocale: Locales = 'en-US'
export const baseLocale: Locales = 'en-US';
export const locales: Locales[] = [
'de',
'en-US'
]
export const locales: Locales[] = ['de', 'de-DE', 'en', 'en-US', 'pt', 'pt-PT'];
export const isLocale = (locale: string): locale is Locales => locales.includes(locale as Locales)
export const isLocale = (locale: string): locale is Locales => locales.includes(locale as Locales);
export const loadedLocales: Record<Locales, Translations> = {} as Record<Locales, Translations>
export const loadedLocales: Record<Locales, Translations> = {} as Record<Locales, Translations>;
export const loadedFormatters: Record<Locales, Formatters> = {} as Record<Locales, Formatters>
export const loadedFormatters: Record<Locales, Formatters> = {} as Record<Locales, Formatters>;
export const extendDictionary = initExtendDictionary<Translations>()
export const extendDictionary = initExtendDictionary<Translations>();
export const i18nString = (locale: Locales): TranslateByString => initI18nString<Locales, Formatters>(locale, loadedFormatters[locale])
export const i18nString = (locale: Locales): TranslateByString =>
initI18nString<Locales, Formatters>(locale, loadedFormatters[locale]);
export const i18nObject = (locale: Locales): TranslationFunctions =>
initI18nObject<Locales, Translations, TranslationFunctions, Formatters>(
locale,
loadedLocales[locale],
loadedFormatters[locale]
)
);
export const i18n = (): LocaleTranslationFunctions<Locales, Translations, TranslationFunctions> =>
initI18n<Locales, Translations, TranslationFunctions, Formatters>(loadedLocales, loadedFormatters)
initI18n<Locales, Translations, TranslationFunctions, Formatters>(
loadedLocales,
loadedFormatters
);
export const detectLocale = (...detectors: LocaleDetector[]): Locales => detectLocaleFn<Locales>(baseLocale, locales, ...detectors)
export const detectLocale = (...detectors: LocaleDetector[]): Locales =>
detectLocaleFn<Locales>(baseLocale, locales, ...detectors);
+8
View File
@@ -0,0 +1,8 @@
import pt from '../pt';
import type { Translation } from '../i18n-types';
const pt_PT = {
...(pt as unknown as Translation)
} satisfies Translation;
export default pt_PT;
+213
View File
@@ -0,0 +1,213 @@
import en from '../en';
import type { Translation } from '../i18n-types';
const pt = {
...(en as unknown as Translation),
home: {
page_title: 'Início',
order_groups: 'Grupos',
order_name: 'Nome',
order_ip: 'IP',
order_tooltip: 'Ordem',
no_devices: 'Sem dispositivos.',
add_first_device: 'Adicione o seu primeiro dispositivo',
grant_permissions:
'Peça ao administrador para alterar as suas permissões para dispositivos existentes ou para criar novos.'
},
account: {
page_title: 'Conta',
account_type_admin: 'Admin',
account_type_user: 'Utilizador',
avatar_title: 'Avatar',
language_title: 'Idioma',
language_option_auto: 'Automático',
change_password_title: 'Alterar password',
change_password_body: 'Terá de voltar a entrar após alterar a sua password.',
change_password_label: 'Antiga password',
change_password_new: 'Nova password',
change_password_confirm: 'Confirmar password'
},
device: {
page_title: 'Novo dispositivo',
tabs: ['Manual', 'Pesquisa de rede'],
card_btn_more: 'Mais',
card_btn_more_edit: 'Editar',
card_btn_more_sleep: 'Suspender',
card_btn_more_reboot: 'Reiniciar',
card_tooltip_wake_cron: 'Wake cron',
card_tooltip_shutdown_cron: 'Shutdown cron',
card_tooltip_wake_password: 'Wake password',
card_tooltip_last_status_change: 'Última alteração de estado',
card_password: 'Password',
card_nic_tooltip_pending: 'Pendente',
card_nic_tooltip_shutdown: 'Desligar',
card_nic_tooltip_shutdown_no_cmd: 'Comando para desligar não está definido',
card_nic_tooltip_shutdown_no_permission: 'Não tem permissão para desligar este dispositivo',
card_nic_tooltip_power: 'Ligar',
card_nic_tooltip_power_no_permission: 'Não tem permissão para ligar este dispositivo',
general: 'Geral',
general_name: 'Nome',
general_name_placeholder: 'Nome do dispositivo',
general_ip: 'IP',
general_mac: 'Mac',
general_netmask: 'Máscara de rede',
general_required_field: 'campo obrigatório',
ports: 'Portos',
ports_desc: 'UpSnap pode verificar se certos portos estão abertos.',
ports_add_new: 'Adicionar novo porto',
ports_name: 'Nome',
ports_number: 'Número',
link: 'Link',
link_desc:
'Permite que o nome do seu dispositivo seja um link. Perfeito para dashboard, por exemplo.',
wake: 'Ligar',
wake_desc: 'Poderá ligar este dispositivo através dum cron job agendado.',
wake_cron: 'Wake cron',
wake_cron_enable: 'Ativar wake cron',
sol: 'Sleep-On-LAN',
sol_desc1:
'Poderá suspender o seu dispositivo usando a ferramenta <a class="link" href="https://github.com/SR-G/sleep-on-lan" target="_blank">Sleep-On-LAN</a>. Sleep-On-LAN (SOL) é uma ferramenta externa que terá de ser executada no dispositivo que quer suspender, facilitando um REST endpoint. Para instruções em como configurar Sleep-On-LAN, veja a secção <a href="https://github.com/SR-G/sleep-on-lan#usage" class="link" target="_blank">Usage</a>.',
sol_desc2:
'SOL envia pedidos através de HTTP em vez de UDP para permitir autenticação e tornar os pedidos mais seguros.',
sol_desc3:
'Portanto, tenha a certeza que inclui <span class="badge">HTTP:&lt;SEU_PORTO&gt;</span> na secção <span class="badge">Listeners</span> de <a href="https://github.com/SR-G/sleep-on-lan#configuration" class="link" target="_blank">configuração SOL</a>.',
sol_enable: 'Ativar Sleep-On-LAN',
sol_port: 'Porto SOL',
sol_authorization: 'Autenticação',
sol_user: 'Utilizador SOL',
sol_password: 'Password SOL',
shutdown: 'Desligar',
shutdown_desc:
'Este <strong>comando shell</strong> irá correr dentro do teu container (no caso de usar docker) ou no seu host (na versão standalone). Para verificar que funciona, pode executar o comando primeiro no seu container/host. Comandos comuns são <span class="badge">net rpc</span> para windows, <span class="badge">sshpass</span> para linux ou <span class="badge">curl</span> em geral para enviar pedidos web.',
shutdown_examples: 'Exemplos:',
shutdown_examples_windows: 'Desligar dispositivo windows remoto:',
shutdown_examples_linux: 'Desligar dispositivo linux remoto:',
shutdown_cmd: 'Comando para desligar',
shutdown_cron_desc:
'Assim como pode ter um cron job para ligar o seu dispositivo, pode também usar para desligar.',
shutdown_cron: 'Shutdown cron',
shutdown_cron_enable: 'Ativar shutdown cron',
password: 'Password',
password_desc:
'Alguns adaptadores de rede têm a opção de definir uma password para magic packets, também conhecido como <span class="badge">SecureON</span>. A password só poderá conter 0, 4 ou 6 caracteres.',
groups: 'Grupos',
groups_desc: 'Pode adicionar dispositivos a grupos para ordenar na dashboard.',
groups_placeholder: "e.g. 'Cave' ou 'Escritório'",
network_scan_range_saved: 'Intervalo de pesquisa guardado',
network_scan_desc:
'Procurar automaticamente na sua rede por dispositivos. Terá de executar o UpSnap como root/admin e ter o nmap instalado e disponível no seu $PATH (No caso de usar docker, não tem de fazer nada). Poderá demorar alguns segundos.',
network_scan_ip_range: 'Intervalo IP',
network_scan_no_range: 'Sem intervalo de IP',
network_scan_unsaved_changes: 'Alterações por guardar',
network_scan_running: 'Pesquisa em curso',
network_scan: 'Pesquisar',
network_scan_ip: 'IP:',
network_scan_mac: 'Mac:',
network_scan_mac_vendor: 'Fornecedor Mac:',
network_scan_netmask: 'Máscara de rede:',
network_scan_add_all: 'Adicionar todos os dispositivos',
network_scan_replace_netmask: 'Substituir máscara de rede para todos os dispositivos?',
network_scan_new_netmask: 'Nova máscara de rede',
network_scan_include_unknown: 'Incluir dispositivos em que o nome é "Unknown"'
},
login: {
welcome: 'Bem-vindo',
email_label: 'Email ou Utilizador:',
password_label: 'Password:',
btn_more: 'Mais',
menu_title_auth_providers: 'Outros provedores de autenticação',
btn_login: 'Entrar'
},
settings: {
page_title: 'Definições',
ping_interval_title: 'Intervalo ping',
ping_interval_desc1:
'Define o intervalo em que o ping é executado. Deixe em branco para usar o valor por defeito de <span class="badge">@every 3s</span>.',
ping_interval_desc2:
'Poderá ver a sintaxe correta para cron em <a class="link" href="https://en.wikipedia.org/wiki/Cron" target="_blank">Wikipedia</a> ou em <a class="link" href="https://pkg.go.dev/github.com/robfig/cron/v3" target="_blank">documentação cron</a>.',
lazy_ping_title: 'Lazy ping',
lazy_ping_desc:
'Quando o lazy ping está activo, o UpSnap irá apenas executar o ping se existir um utilizador ativo no website. Se desligado, o UpSnap irá executar sempre o ping.',
lazy_ping_enable: 'Activar',
website_title_title: 'Título do website',
website_title_desc: 'Define o título do website.',
icon_title: 'Ícone',
icon_desc: 'Define um favicon personalizado. Tipos de ficheiros suportados são:',
upsnap_version: 'Versão UpSnap'
},
users: {
page_title: 'Utilizadores',
allow_create_devices:
'Permitir a {username} adicionar novos dispositivos e editar grupos de dispositivos',
device_permissions: 'Permissões de dispositivos',
create_new_device: 'Adicionar dispositivo',
read: 'Ver',
update: 'Editar',
delete: 'Apagar',
power: 'Ligar/desligar',
toggle: 'Alternar',
confirm_delete_title: 'Confirmar',
confirm_delete_desc: 'Tem a certeza que quer apagar {username}?',
create_new_user: 'Criar novo utilizador',
username: 'Utilizador',
password: 'Password',
password_confirm: 'Confirmar password',
required_field: 'campo obrigatório'
},
buttons: {
save: 'Guardar',
delete: 'Apagar',
change: 'Alterar',
reset: 'Repor',
cancle: 'Cancelar',
add: 'Adicionar'
},
welcome: {
step1_page_title: 'Bem-vindo ao UpSnap 🥳',
step1_setup_desc: 'Complete os próximos passos para terminar a configuração.',
step1_setup_btn_next: 'Seguinte',
step2_page_title: 'Criar conta de administrador',
step2_label_email: 'Email:',
step2_label_password: 'Password:',
step2_label_min_chars: 'min. 10 caracteres',
step2_label_password_confirm: 'Confirmar password:',
step2_btn_create: 'Criar',
step3_page_title: 'Concluído! 🎉',
step3_page_desc: 'Adicione alguns dispositivos à sua dashboard.',
step3_btn_done: 'Vamos!',
not_expected_title: 'Não esperava ver aqui alguém! 🧐',
not_expected_desc: 'A configuração está concluída. Nada a fazer aqui.',
not_expected_back: 'Voltar',
progress_step1: 'Bem-vindo',
progress_step2: 'Criar conta',
progress_step3: 'Concluído'
},
toasts: {
admin_saved: 'Administrador atualizado',
user_saved: 'Utilizador atualizado',
user_created: 'Utilizador {username} criado',
user_deleted: 'Utilizador {username} apagado',
settings_saved: 'Definições guardadas',
password_changed: 'Password alterada. Terá de entrar novamente.',
passwords_missmatch: 'As passwords não correspondem',
permissions_created: 'Permissões criadas para {username}',
permissions_deleted: 'Permissões apagadas para {username}',
permissions_updated: 'Permissões atualizadas para {username}',
permissions_updated_personal: 'As suas permissões foram atualizadas',
no_permission: 'Não tem permissão para visitar {url}',
device_created: 'Adicionado dispositivo {device}',
devices_created_multiple: 'Adicionados {count|int} dispositivos',
device_updated: '{device} atualizado',
device_deleted: '{device} apagado',
group_created: 'Grupo {group} criado',
group_deleted: 'Grupo {group} apagado'
},
navbar: {
theme: 'Tema',
new: 'Novo',
edit_account: 'Editar conta',
logout: 'Sair'
}
} satisfies Translation;
export default pt;
+5 -1
View File
@@ -15,8 +15,12 @@
// locales
const languageEmojis = {
en: '🇺🇸',
'en-US': '🇺🇸',
de: '🇩🇪'
de: '🇩🇪',
'de-DE': '🇩🇪',
pt: '🇵🇹',
'pt-PT': '🇵🇹'
};
let localStorageLang: Locales | 'auto' = 'auto';
let selectedLanguage: Locales | 'auto' = localStorageLang;