Merge branch 'dev' into feat/appearance-updates
This commit is contained in:
84 files changed
+1805
-1470
No files matched your search
@@ -33,6 +33,9 @@ body:
|
|||||||
options:
|
options:
|
||||||
# The below comment is used to insert a new version with on-release.yml
|
# The below comment is used to insert a new version with on-release.yml
|
||||||
#NEXT_VERSION#
|
#NEXT_VERSION#
|
||||||
|
- 1.60.1-beta.1
|
||||||
|
- 1.60.0
|
||||||
|
- 1.59.3
|
||||||
- 1.59.2
|
- 1.59.2
|
||||||
- 1.59.1
|
- 1.59.1
|
||||||
- 1.59.0
|
- 1.59.0
|
||||||
|
|||||||
@@ -25,16 +25,16 @@ body:
|
|||||||
label: Public API available?
|
label: Public API available?
|
||||||
description: Is there a public API available, that we can consume in Homarr?
|
description: Is there a public API available, that we can consume in Homarr?
|
||||||
options:
|
options:
|
||||||
- Yes, available on a website
|
- "Yes, available on a website"
|
||||||
- Yes, available in the application itself
|
- "Yes, available in the application itself"
|
||||||
- No
|
- "No"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
attributes:
|
attributes:
|
||||||
label: Are you willing to contribute this yourself?
|
label: Are you willing to contribute this yourself?
|
||||||
options:
|
options:
|
||||||
- Yes
|
- "Yes"
|
||||||
- No
|
- "No"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -24,7 +24,7 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
label: Are you willing to contribute this yourself?
|
label: Are you willing to contribute this yourself?
|
||||||
options:
|
options:
|
||||||
- Yes
|
- "Yes"
|
||||||
- No
|
- "No"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }}
|
private-key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }}
|
||||||
app-id: ${{ secrets.RENOVATE_APPROVE_APP_ID }}
|
client-id: ${{ secrets.RENOVATE_APPROVE_APP_ID }}
|
||||||
permission-pull-requests: write # required to approve pull request
|
permission-pull-requests: write # required to approve pull request
|
||||||
|
|
||||||
- name: Install GitHub CLI
|
- name: Install GitHub CLI
|
||||||
|
|||||||
@@ -11,14 +11,10 @@ on:
|
|||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "${{ github.workflow }}-${{ github.ref }}"
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||||
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||||
|
|
||||||
# You can leverage Vercel Remote Caching with Turbo to speed up your builds
|
|
||||||
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
|
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: 3
|
FORCE_COLOR: 3
|
||||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
||||||
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
@@ -59,7 +55,7 @@ jobs:
|
|||||||
uses: ./tooling/github/setup
|
uses: ./tooling/github/setup
|
||||||
|
|
||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
run: turbo typecheck
|
run: pnpm typecheck
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.CROWDIN_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.CROWDIN_APP_PRIVATE_KEY }}
|
||||||
app-id: ${{ secrets.CROWDIN_APP_ID }}
|
client-id: ${{ secrets.CROWDIN_APP_ID }}
|
||||||
permission-contents: write # required to commit to crowdin branch
|
permission-contents: write # required to commit to crowdin branch
|
||||||
permission-pull-requests: write # required to create pull request
|
permission-pull-requests: write # required to create pull request
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,104 @@
|
|||||||
|
name: "[Deployment] Beta Release"
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
send-notifications:
|
||||||
|
type: boolean
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
|
description: Send notifications
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
create-and-merge-pr:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 2
|
||||||
|
steps:
|
||||||
|
- name: Discord notification
|
||||||
|
if: ${{ github.event.inputs.send-notifications }}
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
|
with:
|
||||||
|
args: "Beta release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Get Next Version
|
||||||
|
id: semver
|
||||||
|
uses: ietf-tools/semver-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
branch: next
|
||||||
|
- name: Create pull request
|
||||||
|
id: create-pull-request
|
||||||
|
run: 'gh pr create --title "chore(release): release ${{ steps.semver.outputs.next }}-beta" --body "Detected change to be ``${{ steps.semver.outputs.bump }}``<br/>Bump version from ``${{ steps.semver.outputs.current }}`` to ``${{ steps.semver.outputs.next }}-beta``" --base beta --head next --label automerge'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
- name: Discord notification
|
||||||
|
if: ${{ github.event.inputs.send-notifications }}
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
|
with:
|
||||||
|
args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }}-beta (new behaviour: ${{ steps.semver.outputs.bump }})"
|
||||||
|
- name: Obtain token
|
||||||
|
id: obtainApprovalToken
|
||||||
|
uses: actions/create-github-app-token@v3
|
||||||
|
with:
|
||||||
|
private-key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }}
|
||||||
|
client-id: ${{ secrets.RENOVATE_APPROVE_APP_ID }}
|
||||||
|
permission-pull-requests: write
|
||||||
|
- name: Approve PR
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ steps.obtainApprovalToken.outputs.token }}
|
||||||
|
run: |
|
||||||
|
gh pr review --approve --body "Automatically approved by GitHub Action"
|
||||||
|
- name: Obtain token
|
||||||
|
id: obtainMergeToken
|
||||||
|
uses: actions/create-github-app-token@v3
|
||||||
|
with:
|
||||||
|
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
||||||
|
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
||||||
|
permission-contents: write # write to beta branch (due to merge)
|
||||||
|
permission-pull-requests: write # merge pull request
|
||||||
|
- id: automerge
|
||||||
|
if: ${{ steps.semver.outputs.bump != 'major' }}
|
||||||
|
name: automerge
|
||||||
|
uses: "pascalgn/automerge-action@v0.16.4"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ steps.obtainMergeToken.outputs.token }}
|
||||||
|
MERGE_METHOD: merge # we prefer merge commits for merging to beta
|
||||||
|
MERGE_COMMIT_MESSAGE: "chore(release): release ${{ steps.semver.outputs.next }}-beta"
|
||||||
|
MERGE_DELETE_BRANCH: false # never set to true!
|
||||||
|
PULL_REQUEST: "${{ steps.create-pull-request.outputs.pr_number }}"
|
||||||
|
MERGE_RETRIES: 20 # 20 retries * MERGE_RETRY_SLEEP until step fails
|
||||||
|
MERGE_RETRY_SLEEP: 10000 # 10 seconds * MERGE_RETRIES until step fails
|
||||||
|
MERGE_REQUIRED_APPROVALS: 0 # do not require approvals
|
||||||
|
|
||||||
|
- name: Merged Discord notification
|
||||||
|
if: ${{ steps.automerge.outputs.mergeResult == 'merged' && github.event.inputs.send-notifications }}
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
|
with:
|
||||||
|
args: "Merged PR ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}-beta"
|
||||||
|
- name: Major Bump Discord notification
|
||||||
|
if: ${{ steps.semver.outputs.bump == 'major' && github.event.inputs.send-notifications }}
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
|
with:
|
||||||
|
args: "The release PR must be manually merged because the next version is a major version: ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}-beta"
|
||||||
|
- name: Discord Fail Notification
|
||||||
|
if: failure() && github.event.inputs.send-notifications
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
|
with:
|
||||||
|
args: "The beta release workflow [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) has failed"
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
||||||
app-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
||||||
permission-contents: write # required to commit package.json & changelog changes, merge them to dev and publish the release
|
permission-contents: write # required to commit package.json & changelog changes, merge them to dev and publish the release
|
||||||
|
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
@@ -234,7 +234,7 @@ jobs:
|
|||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
||||||
app-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
||||||
permission-contents: write # required to publish the release
|
permission-contents: write # required to publish the release
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
@@ -274,6 +274,6 @@ jobs:
|
|||||||
- name: Discord notification
|
- name: Discord notification
|
||||||
env:
|
env:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
uses: Ilshidur/action-discord@master
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
with:
|
with:
|
||||||
args: "Successfully deployed images for branch **${{ github.ref_name }}**. Tagged as **${{env.NEXT_VERSION}}**."
|
args: "Successfully deployed images for branch **${{ github.ref_name }}**. Tagged as **${{env.NEXT_VERSION}}**."
|
||||||
@@ -21,10 +21,10 @@ jobs:
|
|||||||
timeout-minutes: 2
|
timeout-minutes: 2
|
||||||
steps:
|
steps:
|
||||||
- name: Discord notification
|
- name: Discord notification
|
||||||
if: ${{ github.events.inputs.send-notifications }}
|
if: ${{ github.event.inputs.send-notifications }}
|
||||||
env:
|
env:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
uses: Ilshidur/action-discord@master
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
with:
|
with:
|
||||||
args: "Automatic release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
args: "Automatic release has been triggered: [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -38,14 +38,15 @@ jobs:
|
|||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
branch: dev
|
branch: dev
|
||||||
- name: Create pull request
|
- name: Create pull request
|
||||||
|
id: create-pull-request
|
||||||
run: 'gh pr create --title "chore(release): automatic release ${{ steps.semver.outputs.next }}" --body "**This is an automatic release**.<br/>Manual action may be required for major bumps.<br/>Detected change to be ``${{ steps.semver.outputs.bump }}``<br/>Bump version from ``${{ steps.semver.outputs.current }}`` to ``${{ steps.semver.outputs.next }}``" --base main --head dev --label automerge'
|
run: 'gh pr create --title "chore(release): automatic release ${{ steps.semver.outputs.next }}" --body "**This is an automatic release**.<br/>Manual action may be required for major bumps.<br/>Detected change to be ``${{ steps.semver.outputs.bump }}``<br/>Bump version from ``${{ steps.semver.outputs.current }}`` to ``${{ steps.semver.outputs.next }}``" --base main --head dev --label automerge'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
- name: Discord notification
|
- name: Discord notification
|
||||||
if: ${{ github.events.inputs.send-notifications }}
|
if: ${{ github.event.inputs.send-notifications }}
|
||||||
env:
|
env:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
uses: Ilshidur/action-discord@master
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
with:
|
with:
|
||||||
args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }} (new behaviour: ${{ steps.semver.outputs.bump }})"
|
args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }} (new behaviour: ${{ steps.semver.outputs.bump }})"
|
||||||
- name: Obtain token
|
- name: Obtain token
|
||||||
@@ -53,7 +54,7 @@ jobs:
|
|||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }}
|
private-key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }}
|
||||||
app-id: ${{ secrets.RENOVATE_APPROVE_APP_ID }}
|
client-id: ${{ secrets.RENOVATE_APPROVE_APP_ID }}
|
||||||
permission-pull-requests: write
|
permission-pull-requests: write
|
||||||
- name: Approve PR
|
- name: Approve PR
|
||||||
env:
|
env:
|
||||||
@@ -65,7 +66,7 @@ jobs:
|
|||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
||||||
app-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
||||||
permission-contents: write # write to main branch (due to merge)
|
permission-contents: write # write to main branch (due to merge)
|
||||||
permission-pull-requests: write # merge pull request
|
permission-pull-requests: write # merge pull request
|
||||||
- id: automerge
|
- id: automerge
|
||||||
@@ -74,7 +75,7 @@ jobs:
|
|||||||
uses: "pascalgn/automerge-action@v0.16.4"
|
uses: "pascalgn/automerge-action@v0.16.4"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ steps.obtainMergeToken.outputs.token }}
|
GITHUB_TOKEN: ${{ steps.obtainMergeToken.outputs.token }}
|
||||||
MERGE_METHOD: merge # we prefer merge commits for merging to master
|
MERGE_METHOD: merge # we prefer merge commits for merging to main
|
||||||
MERGE_COMMIT_MESSAGE: "chore(release): automatic release ${{ steps.semver.outputs.next }}"
|
MERGE_COMMIT_MESSAGE: "chore(release): automatic release ${{ steps.semver.outputs.next }}"
|
||||||
MERGE_DELETE_BRANCH: false # never set to true!
|
MERGE_DELETE_BRANCH: false # never set to true!
|
||||||
PULL_REQUEST: "${{ steps.create-pull-request.outputs.pr_number }}"
|
PULL_REQUEST: "${{ steps.create-pull-request.outputs.pr_number }}"
|
||||||
@@ -83,23 +84,23 @@ jobs:
|
|||||||
MERGE_REQUIRED_APPROVALS: 0 # do not require approvals
|
MERGE_REQUIRED_APPROVALS: 0 # do not require approvals
|
||||||
|
|
||||||
- name: Merged Discord notification
|
- name: Merged Discord notification
|
||||||
if: ${{ steps.automerge.outputs.mergeResult == 'merged' && github.events.inputs.send-notifications }}
|
if: ${{ steps.automerge.outputs.mergeResult == 'merged' && github.event.inputs.send-notifications }}
|
||||||
env:
|
env:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
uses: Ilshidur/action-discord@master
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
with:
|
with:
|
||||||
args: "Merged PR ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}"
|
args: "Merged PR ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}"
|
||||||
- name: Major Bump Discord notification
|
- name: Major Bump Discord notification
|
||||||
if: ${{ steps.semver.outputs.bump == 'major' && github.events.inputs.send-notifications }}
|
if: ${{ steps.semver.outputs.bump == 'major' && github.event.inputs.send-notifications }}
|
||||||
env:
|
env:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
uses: Ilshidur/action-discord@master
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
with:
|
with:
|
||||||
args: "The release PR must be manually merged because the next version is a major version: ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}"
|
args: "The release PR must be manually merged because the next version is a major version: ${{ steps.create-pull-request.outputs.url }} for release ${{ steps.semver.outputs.next }}"
|
||||||
- name: Discord Fail Notification
|
- name: Discord Fail Notification
|
||||||
if: failure() && github.events.inputs.send-notifications
|
if: failure() && github.event.inputs.send-notifications
|
||||||
env:
|
env:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
uses: Ilshidur/action-discord@master
|
uses: Ilshidur/action-discord@0.4.0
|
||||||
with:
|
with:
|
||||||
args: "The automatic release workflow [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) has failed"
|
args: "The automatic release workflow [run ${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) has failed"
|
||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.HOMARR_DOCS_RELEASE_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.HOMARR_DOCS_RELEASE_APP_PRIVATE_KEY }}
|
||||||
app-id: ${{ vars.HOMARR_DOCS_RELEASE_APP_ID }}
|
client-id: ${{ vars.HOMARR_DOCS_RELEASE_APP_ID }}
|
||||||
owner: homarr-labs
|
owner: homarr-labs
|
||||||
repositories: |
|
repositories: |
|
||||||
documentation
|
documentation
|
||||||
@@ -48,7 +48,7 @@ jobs:
|
|||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
||||||
app-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
client-id: ${{ secrets.RENOVATE_MERGE_APP_ID }}
|
||||||
permission-contents: write # required to commit to branch
|
permission-contents: write # required to commit to branch
|
||||||
permission-pull-requests: write # required to create pr & enable automerge
|
permission-pull-requests: write # required to create pr & enable automerge
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY }}
|
private-key: ${{ secrets.HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY }}
|
||||||
app-id: ${{ vars.HOMARR_UPDATE_CONTRIBUTORS_APP_ID }}
|
client-id: ${{ vars.HOMARR_UPDATE_CONTRIBUTORS_APP_ID }}
|
||||||
permission-contents: write # required to commit to branch
|
permission-contents: write # required to commit to branch
|
||||||
permission-pull-requests: write # required to create pr & enable automerge
|
permission-pull-requests: write # required to create pr & enable automerge
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY }}
|
private-key: ${{ secrets.HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY }}
|
||||||
app-id: ${{ vars.HOMARR_UPDATE_CONTRIBUTORS_APP_ID }}
|
client-id: ${{ vars.HOMARR_UPDATE_CONTRIBUTORS_APP_ID }}
|
||||||
permission-contents: write # required to commit to branch
|
permission-contents: write # required to commit to branch
|
||||||
permission-pull-requests: write # required to create pr & enable automerge
|
permission-pull-requests: write # required to create pr & enable automerge
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|||||||
@@ -1,3 +1,45 @@
|
|||||||
|
## [1.60.0](https://github.com/homarr-labs/homarr/compare/v1.59.3...v1.60.0) (2026-05-01)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **about:** add opencollective contributors ([#5481](https://github.com/homarr-labs/homarr/issues/5481)) ([3d202d4](https://github.com/homarr-labs/homarr/commit/3d202d409febf33d0218b589c979744c84f87407))
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* migrate from node-cron to croner ([#5407](https://github.com/homarr-labs/homarr/issues/5407)) ([e8edc20](https://github.com/homarr-labs/homarr/commit/e8edc203b6c862141668b043ef4232c22b8fae24))
|
||||||
|
* **openapi:** openapi document empty ([#5579](https://github.com/homarr-labs/homarr/issues/5579)) ([ce8e330](https://github.com/homarr-labs/homarr/commit/ce8e330c82bc0be9f299f3071a1e80daafc5f789))
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* **icons:** updater takes 10 seconds to run with high cpu usage ([#5608](https://github.com/homarr-labs/homarr/issues/5608)) ([ed6680b](https://github.com/homarr-labs/homarr/commit/ed6680ba6a42864185818eb8d90b2303846c1761))
|
||||||
|
|
||||||
|
## [1.60.0](https://github.com/homarr-labs/homarr/compare/v1.59.3...v1.60.0) (2026-05-01)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **about:** add opencollective contributors ([#5481](https://github.com/homarr-labs/homarr/issues/5481)) ([3d202d4](https://github.com/homarr-labs/homarr/commit/3d202d409febf33d0218b589c979744c84f87407))
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* migrate from node-cron to croner ([#5407](https://github.com/homarr-labs/homarr/issues/5407)) ([e8edc20](https://github.com/homarr-labs/homarr/commit/e8edc203b6c862141668b043ef4232c22b8fae24))
|
||||||
|
* **openapi:** openapi document empty ([#5579](https://github.com/homarr-labs/homarr/issues/5579)) ([ce8e330](https://github.com/homarr-labs/homarr/commit/ce8e330c82bc0be9f299f3071a1e80daafc5f789))
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* **icons:** updater takes 10 seconds to run with high cpu usage ([#5608](https://github.com/homarr-labs/homarr/issues/5608)) ([ed6680b](https://github.com/homarr-labs/homarr/commit/ed6680ba6a42864185818eb8d90b2303846c1761))
|
||||||
|
|
||||||
|
## [1.59.3](https://github.com/homarr-labs/homarr/compare/v1.59.2...v1.59.3) (2026-04-24)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **deps:** update dependency better-sqlite3 to ^12.9.0 ([#5531](https://github.com/homarr-labs/homarr/issues/5531)) ([7852f1d](https://github.com/homarr-labs/homarr/commit/7852f1d987d40707ae13494f9c934a563581f97f))
|
||||||
|
|
||||||
|
## [1.59.3](https://github.com/homarr-labs/homarr/compare/v1.59.2...v1.59.3) (2026-04-24)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **deps:** update dependency better-sqlite3 to ^12.9.0 ([#5531](https://github.com/homarr-labs/homarr/issues/5531)) ([7852f1d](https://github.com/homarr-labs/homarr/commit/7852f1d987d40707ae13494f9c934a563581f97f))
|
||||||
|
|
||||||
## [1.59.2](https://github.com/homarr-labs/homarr/compare/v1.59.1...v1.59.2) (2026-04-17)
|
## [1.59.2](https://github.com/homarr-labs/homarr/compare/v1.59.1...v1.59.2) (2026-04-17)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -25,7 +25,14 @@ import {
|
|||||||
Title,
|
Title,
|
||||||
UnstyledButton,
|
UnstyledButton,
|
||||||
} from "@mantine/core";
|
} from "@mantine/core";
|
||||||
import { IconKeyboard, IconLanguage, IconLibrary, IconPackage, IconUsers } from "@tabler/icons-react";
|
import {
|
||||||
|
IconKeyboard,
|
||||||
|
IconLanguage,
|
||||||
|
IconLibrary,
|
||||||
|
IconMoneybagHeart,
|
||||||
|
IconPackage,
|
||||||
|
IconUsers,
|
||||||
|
} from "@tabler/icons-react";
|
||||||
|
|
||||||
import { capitalize, objectEntries } from "@homarr/common";
|
import { capitalize, objectEntries } from "@homarr/common";
|
||||||
import { hotkeys } from "@homarr/definitions";
|
import { hotkeys } from "@homarr/definitions";
|
||||||
@@ -37,6 +44,7 @@ import { createMetaTitle } from "~/metadata";
|
|||||||
import type { PackageJsonDependencies } from "~/versions/package-reader";
|
import type { PackageJsonDependencies } from "~/versions/package-reader";
|
||||||
import { getPackageVersion } from "~/versions/package-reader";
|
import { getPackageVersion } from "~/versions/package-reader";
|
||||||
import type githubContributorsJson from "../../../../../../../static-data/contributors.json";
|
import type githubContributorsJson from "../../../../../../../static-data/contributors.json";
|
||||||
|
import type openCollectiveContributorsJson from "../../../../../../../static-data/opencollective-contributors.json";
|
||||||
import type crowdinContributorsJson from "../../../../../../../static-data/translators.json";
|
import type crowdinContributorsJson from "../../../../../../../static-data/translators.json";
|
||||||
import classes from "./about.module.css";
|
import classes from "./about.module.css";
|
||||||
|
|
||||||
@@ -71,6 +79,10 @@ export default async function AboutPage() {
|
|||||||
res.json(),
|
res.json(),
|
||||||
)) as typeof crowdinContributorsJson;
|
)) as typeof crowdinContributorsJson;
|
||||||
|
|
||||||
|
const openCollectiveContributors = (await fetch(`${baseServerUrl}/api/about/contributors/opencollective`).then(
|
||||||
|
(res) => res.json(),
|
||||||
|
)) as typeof openCollectiveContributorsJson;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<DynamicBreadcrumb />
|
<DynamicBreadcrumb />
|
||||||
@@ -136,6 +148,30 @@ export default async function AboutPage() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
</AccordionPanel>
|
</AccordionPanel>
|
||||||
</AccordionItem>
|
</AccordionItem>
|
||||||
|
<AccordionItem value="sponsors">
|
||||||
|
<AccordionControl icon={<IconMoneybagHeart size="1rem" />}>
|
||||||
|
<Stack gap={0}>
|
||||||
|
<Text>{t("accordion.sponsors.title")}</Text>
|
||||||
|
<Text size="sm" c="dimmed">
|
||||||
|
{t("accordion.sponsors.subtitle", {
|
||||||
|
count: String(openCollectiveContributors.length),
|
||||||
|
})}
|
||||||
|
</Text>
|
||||||
|
</Stack>
|
||||||
|
</AccordionControl>
|
||||||
|
<AccordionPanel>
|
||||||
|
<Flex wrap="wrap" gap="xs">
|
||||||
|
{openCollectiveContributors.map((sponsor) => (
|
||||||
|
<GenericContributorLinkCard
|
||||||
|
key={sponsor.slug}
|
||||||
|
link={`https://opencollective.com/${sponsor.slug}`}
|
||||||
|
image={sponsor.imageUrl}
|
||||||
|
name={sponsor.name}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</Flex>
|
||||||
|
</AccordionPanel>
|
||||||
|
</AccordionItem>
|
||||||
<AccordionItem value="libraries">
|
<AccordionItem value="libraries">
|
||||||
<AccordionControl icon={<IconLibrary size="1rem" />}>
|
<AccordionControl icon={<IconLibrary size="1rem" />}>
|
||||||
<Stack gap={0}>
|
<Stack gap={0}>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { headers } from "next/headers";
|
|||||||
import { notFound } from "next/navigation";
|
import { notFound } from "next/navigation";
|
||||||
import { Stack, Tabs, TabsList, TabsPanel, TabsTab } from "@mantine/core";
|
import { Stack, Tabs, TabsList, TabsPanel, TabsTab } from "@mantine/core";
|
||||||
|
|
||||||
import { openApiDocument } from "@homarr/api";
|
import { openApiDocument } from "@homarr/api/open-api";
|
||||||
import { api } from "@homarr/api/server";
|
import { api } from "@homarr/api/server";
|
||||||
import { auth } from "@homarr/auth/next";
|
import { auth } from "@homarr/auth/next";
|
||||||
import { extractBaseUrlFromHeaders } from "@homarr/common";
|
import { extractBaseUrlFromHeaders } from "@homarr/common";
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@ export const FirstDayOfWeek = ({ user }: FirstDayOfWeekProps) => {
|
|||||||
},
|
},
|
||||||
onSuccess(_, variables) {
|
onSuccess(_, variables) {
|
||||||
form.setInitialValues({
|
form.setInitialValues({
|
||||||
firstDayOfWeek: variables.firstDayOfWeek,
|
firstDayOfWeek: variables.firstDayOfWeek as DayOfWeek,
|
||||||
});
|
});
|
||||||
showSuccessNotification({
|
showSuccessNotification({
|
||||||
message: t("user.action.changeFirstDayOfWeek.notification.success.message"),
|
message: t("user.action.changeFirstDayOfWeek.notification.success.message"),
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ import type { NextRequest } from "next/server";
|
|||||||
import { userAgent } from "next/server";
|
import { userAgent } from "next/server";
|
||||||
import { createOpenApiFetchHandler } from "trpc-to-openapi";
|
import { createOpenApiFetchHandler } from "trpc-to-openapi";
|
||||||
|
|
||||||
import { appRouter, createTRPCContext } from "@homarr/api";
|
import { createTRPCContext } from "@homarr/api";
|
||||||
|
import { openApiRouter } from "@homarr/api/open-api";
|
||||||
import { API_KEY_HEADER_NAME, getSessionFromApiKeyAsync } from "@homarr/auth/api-key";
|
import { API_KEY_HEADER_NAME, getSessionFromApiKeyAsync } from "@homarr/auth/api-key";
|
||||||
import { ipAddressFromHeaders } from "@homarr/common/server";
|
import { ipAddressFromHeaders } from "@homarr/common/server";
|
||||||
import { createLogger } from "@homarr/core/infrastructure/logs";
|
import { createLogger } from "@homarr/core/infrastructure/logs";
|
||||||
@@ -30,7 +31,7 @@ const handlerAsync = async (req: NextRequest) => {
|
|||||||
return createOpenApiFetchHandler({
|
return createOpenApiFetchHandler({
|
||||||
req,
|
req,
|
||||||
endpoint: "/",
|
endpoint: "/",
|
||||||
router: appRouter,
|
router: openApiRouter,
|
||||||
createContext: () => createTRPCContext({ session, headers: req.headers }),
|
createContext: () => createTRPCContext({ session, headers: req.headers }),
|
||||||
onError({ error, path, type }) {
|
onError({ error, path, type }) {
|
||||||
logger.error(new ErrorWithMetadata("tRPC Error occured", { path, type }, { cause: error }));
|
logger.error(new ErrorWithMetadata("tRPC Error occured", { path, type }, { cause: error }));
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import { NextResponse } from "next/server";
|
||||||
|
|
||||||
|
import openCollectiveContributors from "../../../../../../../../static-data/opencollective-contributors.json";
|
||||||
|
|
||||||
|
export const GET = () => {
|
||||||
|
return NextResponse.json(openCollectiveContributors);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const dynamic = "force-static";
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { NextResponse } from "next/server";
|
import { NextResponse } from "next/server";
|
||||||
|
|
||||||
import { openApiDocument } from "@homarr/api";
|
import { openApiDocument } from "@homarr/api/open-api";
|
||||||
import { extractBaseUrlFromHeaders } from "@homarr/common";
|
import { extractBaseUrlFromHeaders } from "@homarr/common";
|
||||||
|
|
||||||
export function GET(request: Request) {
|
export function GET(request: Request) {
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
"@homarr/server-settings": "workspace:^0.1.0",
|
"@homarr/server-settings": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"@homarr/widgets": "workspace:^0.1.0",
|
"@homarr/widgets": "workspace:^0.1.0",
|
||||||
|
"croner": "catalog:",
|
||||||
"dayjs": "catalog:",
|
"dayjs": "catalog:",
|
||||||
"dotenv": "catalog:",
|
"dotenv": "catalog:",
|
||||||
"fastify": "catalog:",
|
"fastify": "catalog:",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { schedule, validate as validateCron } from "node-cron";
|
import { Cron } from "croner";
|
||||||
|
|
||||||
import { createLogger } from "@homarr/core/infrastructure/logs";
|
import { createLogger } from "@homarr/core/infrastructure/logs";
|
||||||
import type { IJobManager } from "@homarr/cron-job-api";
|
import type { IJobManager } from "@homarr/cron-job-api";
|
||||||
@@ -21,28 +21,31 @@ export class JobManager implements IJobManager {
|
|||||||
public async triggerAsync(name: JobGroupKeys): Promise<void> {
|
public async triggerAsync(name: JobGroupKeys): Promise<void> {
|
||||||
await this.jobGroup.runManuallyAsync(name);
|
await this.jobGroup.runManuallyAsync(name);
|
||||||
}
|
}
|
||||||
public async stopAsync(name: JobGroupKeys): Promise<void> {
|
public stop(name: JobGroupKeys): void {
|
||||||
await this.jobGroup.stopAsync(name);
|
this.jobGroup.stop(name);
|
||||||
}
|
}
|
||||||
public async updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void> {
|
public async updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void> {
|
||||||
logger.info("Updating cron job interval", { name, expression: cron });
|
logger.info("Updating cron job interval", { name, expression: cron });
|
||||||
const job = this.jobGroup.getJobRegistry().get(name);
|
const job = this.jobGroup.getJobRegistry().get(name);
|
||||||
if (!job) throw new Error(`Job ${name} not found`);
|
if (!job) throw new Error(`Job ${name} not found`);
|
||||||
if (!validateCron(cron)) {
|
|
||||||
throw new Error(`Invalid cron expression: ${cron}`);
|
|
||||||
}
|
|
||||||
if (job.preventCustomInterval && cron !== job.cronExpression) {
|
if (job.preventCustomInterval && cron !== job.cronExpression) {
|
||||||
throw new Error(`Custom cron expressions are not allowed for job ${name}`);
|
throw new Error(`Custom cron expressions are not allowed for job ${name}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.updateConfigurationAsync(name, { cronExpression: cron });
|
const updatedConfig = await this.updateConfigurationAsync(name, { cronExpression: cron });
|
||||||
await this.jobGroup.getTask(name)?.destroy();
|
this.jobGroup.getTask(name)?.stop();
|
||||||
|
|
||||||
this.jobGroup.setTask(
|
this.jobGroup.setTask(
|
||||||
name,
|
name,
|
||||||
schedule(cron, () => void job.executeAsync(), {
|
new Cron(
|
||||||
name,
|
cron,
|
||||||
}),
|
{
|
||||||
|
name,
|
||||||
|
timezone: job.timezone,
|
||||||
|
paused: !updatedConfig.isEnabled,
|
||||||
|
},
|
||||||
|
() => void job.executeAsync(),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
logger.info("Cron job interval updated", { name, expression: cron });
|
logger.info("Cron job interval updated", { name, expression: cron });
|
||||||
}
|
}
|
||||||
@@ -52,7 +55,7 @@ export class JobManager implements IJobManager {
|
|||||||
if (!job) throw new Error(`Job ${name} not found`);
|
if (!job) throw new Error(`Job ${name} not found`);
|
||||||
|
|
||||||
await this.updateConfigurationAsync(name, { isEnabled: false });
|
await this.updateConfigurationAsync(name, { isEnabled: false });
|
||||||
await this.jobGroup.stopAsync(name);
|
this.jobGroup.stop(name);
|
||||||
logger.info("Cron job disabled", { name });
|
logger.info("Cron job disabled", { name });
|
||||||
}
|
}
|
||||||
public async enableAsync(name: JobGroupKeys): Promise<void> {
|
public async enableAsync(name: JobGroupKeys): Promise<void> {
|
||||||
@@ -86,21 +89,27 @@ export class JobManager implements IJobManager {
|
|||||||
name,
|
name,
|
||||||
configuration: JSON.stringify(configuration),
|
configuration: JSON.stringify(configuration),
|
||||||
});
|
});
|
||||||
return;
|
return {
|
||||||
|
name,
|
||||||
|
cronExpression: configuration.cronExpression ?? existingConfig.cronExpression,
|
||||||
|
isEnabled: configuration.isEnabled ?? existingConfig.isEnabled,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const job = this.jobGroup.getJobRegistry().get(name);
|
const job = this.jobGroup.getJobRegistry().get(name);
|
||||||
if (!job) throw new Error(`Job ${name} not found`);
|
if (!job) throw new Error(`Job ${name} not found`);
|
||||||
|
|
||||||
await this.db.insert(cronJobConfigurations).values({
|
const updatedConfig = {
|
||||||
name,
|
name,
|
||||||
cronExpression: configuration.cronExpression ?? job.cronExpression,
|
cronExpression: configuration.cronExpression ?? job.cronExpression,
|
||||||
isEnabled: configuration.isEnabled ?? true,
|
isEnabled: configuration.isEnabled ?? true,
|
||||||
});
|
};
|
||||||
|
await this.db.insert(cronJobConfigurations).values(updatedConfig);
|
||||||
logger.debug("Cron job configuration updated", {
|
logger.debug("Cron job configuration updated", {
|
||||||
name,
|
name,
|
||||||
configuration: JSON.stringify(configuration),
|
configuration: JSON.stringify(configuration),
|
||||||
});
|
});
|
||||||
|
return updatedConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getAllAsync(): Promise<
|
public async getAllAsync(): Promise<
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
"name": "homarr-prebuilt-debian",
|
"name": "homarr-prebuilt-debian",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"better-sqlite3": "^12.8.0"
|
"better-sqlite3": "^12.9.0"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.33.0",
|
"packageManager": "pnpm@10.33.2",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.15.0",
|
"node": ">=24.15.0",
|
||||||
"pnpm": ">=10.33.0"
|
"pnpm": ">=10.33.2"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
|
|||||||
+5
-5
@@ -9,16 +9,16 @@ importers:
|
|||||||
.:
|
.:
|
||||||
dependencies:
|
dependencies:
|
||||||
better-sqlite3:
|
better-sqlite3:
|
||||||
specifier: ^12.8.0
|
specifier: ^12.9.0
|
||||||
version: 12.8.0
|
version: 12.9.0
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
base64-js@1.5.1:
|
base64-js@1.5.1:
|
||||||
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
|
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
|
||||||
|
|
||||||
better-sqlite3@12.8.0:
|
better-sqlite3@12.9.0:
|
||||||
resolution: {integrity: sha512-RxD2Vd96sQDjQr20kdP+F+dK/1OUNiVOl200vKBZY8u0vTwysfolF6Hq+3ZK2+h8My9YvZhHsF+RSGZW2VYrPQ==}
|
resolution: {integrity: sha512-wqUv4Gm3toFpHDQmaKD4QhZm3g1DjUBI0yzS4UBl6lElUmXFYdTQmmEDpAFa5o8FiFiymURypEnfVHzILKaxqQ==}
|
||||||
engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x}
|
engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x}
|
||||||
|
|
||||||
bindings@1.5.0:
|
bindings@1.5.0:
|
||||||
@@ -148,7 +148,7 @@ snapshots:
|
|||||||
|
|
||||||
base64-js@1.5.1: {}
|
base64-js@1.5.1: {}
|
||||||
|
|
||||||
better-sqlite3@12.8.0:
|
better-sqlite3@12.9.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
bindings: 1.5.0
|
bindings: 1.5.0
|
||||||
prebuild-install: 7.1.3
|
prebuild-install: 7.1.3
|
||||||
|
|||||||
+6
-6
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homarr",
|
"name": "homarr",
|
||||||
"version": "1.59.2",
|
"version": "1.60.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "cross-env CI=true turbo build",
|
"build": "cross-env CI=true turbo build",
|
||||||
@@ -59,10 +59,10 @@
|
|||||||
"vite-tsconfig-paths": "catalog:",
|
"vite-tsconfig-paths": "catalog:",
|
||||||
"vitest": "catalog:"
|
"vitest": "catalog:"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.33.0",
|
"packageManager": "pnpm@10.33.2",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.15.0",
|
"node": ">=24.15.0",
|
||||||
"pnpm": ">=10.33.0"
|
"pnpm": ">=10.33.2"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
@@ -79,12 +79,12 @@
|
|||||||
"overrides": {
|
"overrides": {
|
||||||
"@babel/helpers@<7.26.10": ">=7.29.2",
|
"@babel/helpers@<7.26.10": ">=7.29.2",
|
||||||
"@babel/runtime@<7.26.10": ">=7.29.2",
|
"@babel/runtime@<7.26.10": ">=7.29.2",
|
||||||
"axios@>=1.0.0 <1.8.2": ">=1.15.0",
|
"axios@>=1.0.0 <1.8.2": ">=1.15.2",
|
||||||
"brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.5",
|
"brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.5",
|
||||||
"brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.5",
|
"brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.5",
|
||||||
"esbuild@<=0.24.2": ">=0.28.0",
|
"esbuild@<=0.24.2": ">=0.28.0",
|
||||||
"form-data@>=4.0.0 <4.0.4": ">=4.0.5",
|
"form-data@>=4.0.0 <4.0.4": ">=4.0.5",
|
||||||
"hono@<4.6.5": ">=4.12.14",
|
"hono@<4.6.5": ">=4.12.15",
|
||||||
"linkifyjs@<4.3.2": ">=4.3.2",
|
"linkifyjs@<4.3.2": ">=4.3.2",
|
||||||
"nanoid@>=4.0.0 <5.0.9": ">=5.1.9",
|
"nanoid@>=4.0.0 <5.0.9": ">=5.1.9",
|
||||||
"prismjs@<1.30.0": ">=1.30.0",
|
"prismjs@<1.30.0": ">=1.30.0",
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
"tar-fs@>=3.0.0 <3.0.9": ">=3.1.2",
|
"tar-fs@>=3.0.0 <3.0.9": ">=3.1.2",
|
||||||
"tar-fs@>=2.0.0 <2.1.3": ">=3.1.2",
|
"tar-fs@>=2.0.0 <2.1.3": ">=3.1.2",
|
||||||
"tmp@<=0.2.3": ">=0.2.5",
|
"tmp@<=0.2.3": ">=0.2.5",
|
||||||
"vite@>=5.0.0 <=5.4.18": ">=8.0.8"
|
"vite@>=5.0.0 <=5.4.18": ">=8.0.10"
|
||||||
},
|
},
|
||||||
"patchedDependencies": {
|
"patchedDependencies": {
|
||||||
"@types/node-unifi": "patches/@types__node-unifi.patch",
|
"@types/node-unifi": "patches/@types__node-unifi.patch",
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
"./client": "./src/client.ts",
|
"./client": "./src/client.ts",
|
||||||
"./server": "./src/server.ts",
|
"./server": "./src/server.ts",
|
||||||
"./websocket": "./src/websocket.ts",
|
"./websocket": "./src/websocket.ts",
|
||||||
"./shared": "./src/shared.ts"
|
"./shared": "./src/shared.ts",
|
||||||
|
"./open-api": "./src/open-api.ts"
|
||||||
},
|
},
|
||||||
"main": "./index.ts",
|
"main": "./index.ts",
|
||||||
"types": "./index.ts",
|
"types": "./index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import type { inferRouterInputs, inferRouterOutputs } from "@trpc/server";
|
import type { inferRouterInputs, inferRouterOutputs } from "@trpc/server";
|
||||||
|
|
||||||
import { openApiDocument } from "./open-api";
|
|
||||||
import type { AppRouter } from "./root";
|
import type { AppRouter } from "./root";
|
||||||
import { appRouter } from "./root";
|
import { appRouter } from "./root";
|
||||||
import { createCallerFactory, createTRPCContext } from "./trpc";
|
import { createCallerFactory, createTRPCContext } from "./trpc";
|
||||||
@@ -30,5 +29,5 @@ type RouterInputs = inferRouterInputs<AppRouter>;
|
|||||||
**/
|
**/
|
||||||
type RouterOutputs = inferRouterOutputs<AppRouter>;
|
type RouterOutputs = inferRouterOutputs<AppRouter>;
|
||||||
|
|
||||||
export { createTRPCContext, appRouter, createCaller, openApiDocument };
|
export { createTRPCContext, appRouter, createCaller };
|
||||||
export type { AppRouter, RouterInputs, RouterOutputs };
|
export type { AppRouter, RouterInputs, RouterOutputs };
|
||||||
@@ -2,10 +2,21 @@ import { generateOpenApiDocument } from "trpc-to-openapi";
|
|||||||
|
|
||||||
import { API_KEY_HEADER_NAME } from "@homarr/auth/api-key";
|
import { API_KEY_HEADER_NAME } from "@homarr/auth/api-key";
|
||||||
|
|
||||||
import { appRouter } from "./root";
|
import { appRouter } from "./router/app";
|
||||||
|
import { infoRouter } from "./router/info";
|
||||||
|
import { inviteRouter } from "./router/invite";
|
||||||
|
import { userRouter } from "./router/user";
|
||||||
|
import { createTRPCRouter } from "./trpc";
|
||||||
|
|
||||||
|
export const openApiRouter = createTRPCRouter({
|
||||||
|
appRouter,
|
||||||
|
infoRouter,
|
||||||
|
inviteRouter,
|
||||||
|
userRouter,
|
||||||
|
});
|
||||||
|
|
||||||
export const openApiDocument = (base: string) =>
|
export const openApiDocument = (base: string) =>
|
||||||
generateOpenApiDocument(appRouter, {
|
generateOpenApiDocument(openApiRouter, {
|
||||||
title: "Homarr API documentation",
|
title: "Homarr API documentation",
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
baseUrl: base,
|
baseUrl: base,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { observable } from "@trpc/server/observable";
|
|||||||
import z from "zod/v4";
|
import z from "zod/v4";
|
||||||
|
|
||||||
import { createLogger } from "@homarr/core/infrastructure/logs";
|
import { createLogger } from "@homarr/core/infrastructure/logs";
|
||||||
import { cronExpressionSchema, jobGroupKeys, jobNameSchema } from "@homarr/cron-job-api";
|
import { jobGroupKeys, jobNameSchema } from "@homarr/cron-job-api";
|
||||||
import { cronJobApi } from "@homarr/cron-job-api/client";
|
import { cronJobApi } from "@homarr/cron-job-api/client";
|
||||||
import type { TaskStatus } from "@homarr/cron-job-status";
|
import type { TaskStatus } from "@homarr/cron-job-status";
|
||||||
import { createCronJobStatusChannel } from "@homarr/cron-job-status";
|
import { createCronJobStatusChannel } from "@homarr/cron-job-status";
|
||||||
@@ -35,7 +35,7 @@ export const cronJobsRouter = createTRPCRouter({
|
|||||||
.input(
|
.input(
|
||||||
z.object({
|
z.object({
|
||||||
name: jobNameSchema,
|
name: jobNameSchema,
|
||||||
cron: cronExpressionSchema,
|
cron: z.string(),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.mutation(async ({ input }) => {
|
.mutation(async ({ input }) => {
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ export const userRouter = createTRPCRouter({
|
|||||||
const queryResult = (await trx.delete(schema.invites).where(inviteWhere)) as
|
const queryResult = (await trx.delete(schema.invites).where(inviteWhere)) as
|
||||||
| QueryResult
|
| QueryResult
|
||||||
| MySqlRawQueryResult;
|
| MySqlRawQueryResult;
|
||||||
let count = 0;
|
let count: number;
|
||||||
if (Array.isArray(queryResult)) {
|
if (Array.isArray(queryResult)) {
|
||||||
count = queryResult[0].affectedRows;
|
count = queryResult[0].affectedRows;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -41,6 +41,10 @@ export class Stopwatch {
|
|||||||
return dayjs().millisecond(this.startTime).fromNow(true);
|
return dayjs().millisecond(this.startTime).fromNow(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getElapsedInFormattedMilliseconds() {
|
||||||
|
return `${this.getElapsedInMilliseconds().toFixed(0)}ms`;
|
||||||
|
}
|
||||||
|
|
||||||
getElapsedInMilliseconds() {
|
getElapsedInMilliseconds() {
|
||||||
return performance.now() - this.startTime;
|
return performance.now() - this.startTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
"@trpc/client": "catalog:",
|
"@trpc/client": "catalog:",
|
||||||
"@trpc/server": "catalog:",
|
"@trpc/server": "catalog:",
|
||||||
"@trpc/tanstack-react-query": "catalog:",
|
"@trpc/tanstack-react-query": "catalog:",
|
||||||
"node-cron": "catalog:",
|
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"zod": "catalog:"
|
"zod": "catalog:"
|
||||||
},
|
},
|
||||||
@@ -40,7 +39,6 @@
|
|||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/node-cron": "catalog:",
|
|
||||||
"@types/react": "catalog:",
|
"@types/react": "catalog:",
|
||||||
"eslint": "catalog:",
|
"eslint": "catalog:",
|
||||||
"typescript": "catalog:"
|
"typescript": "catalog:"
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { initTRPC, TRPCError } from "@trpc/server";
|
import { initTRPC, TRPCError } from "@trpc/server";
|
||||||
import { validate } from "node-cron";
|
|
||||||
import { z } from "zod/v4";
|
import { z } from "zod/v4";
|
||||||
|
|
||||||
import type { JobGroupKeys } from "@homarr/cron-jobs";
|
import type { JobGroupKeys } from "@homarr/cron-jobs";
|
||||||
@@ -13,7 +12,7 @@ export const jobNameSchema = z.enum(jobGroup.getKeys());
|
|||||||
export interface IJobManager {
|
export interface IJobManager {
|
||||||
startAsync(name: JobGroupKeys): Promise<void>;
|
startAsync(name: JobGroupKeys): Promise<void>;
|
||||||
triggerAsync(name: JobGroupKeys): Promise<void>;
|
triggerAsync(name: JobGroupKeys): Promise<void>;
|
||||||
stopAsync(name: JobGroupKeys): Promise<void>;
|
stop(name: JobGroupKeys): void;
|
||||||
updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void>;
|
updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void>;
|
||||||
disableAsync(name: JobGroupKeys): Promise<void>;
|
disableAsync(name: JobGroupKeys): Promise<void>;
|
||||||
enableAsync(name: JobGroupKeys): Promise<void>;
|
enableAsync(name: JobGroupKeys): Promise<void>;
|
||||||
@@ -52,10 +51,6 @@ const apiKeyProcedure = t.procedure.use(({ ctx, next }) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export const cronExpressionSchema = z.string().refine((expression) => validate(expression), {
|
|
||||||
error: "Invalid cron expression",
|
|
||||||
});
|
|
||||||
|
|
||||||
export const jobRouter = createTrpcRouter({
|
export const jobRouter = createTrpcRouter({
|
||||||
start: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
start: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
||||||
await ctx.manager.startAsync(input);
|
await ctx.manager.startAsync(input);
|
||||||
@@ -63,14 +58,14 @@ export const jobRouter = createTrpcRouter({
|
|||||||
trigger: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
trigger: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
||||||
await ctx.manager.triggerAsync(input);
|
await ctx.manager.triggerAsync(input);
|
||||||
}),
|
}),
|
||||||
stop: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
stop: apiKeyProcedure.input(jobNameSchema).mutation(({ input, ctx }) => {
|
||||||
await ctx.manager.stopAsync(input);
|
ctx.manager.stop(input);
|
||||||
}),
|
}),
|
||||||
updateInterval: apiKeyProcedure
|
updateInterval: apiKeyProcedure
|
||||||
.input(
|
.input(
|
||||||
z.object({
|
z.object({
|
||||||
name: jobNameSchema,
|
name: jobNameSchema,
|
||||||
cron: cronExpressionSchema,
|
cron: z.string(),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.mutation(async ({ input, ctx }) => {
|
.mutation(async ({ input, ctx }) => {
|
||||||
|
|||||||
@@ -27,13 +27,12 @@
|
|||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"@homarr/core": "workspace:^",
|
"@homarr/core": "workspace:^",
|
||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
"node-cron": "catalog:"
|
"croner": "catalog:"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/node-cron": "catalog:",
|
|
||||||
"eslint": "catalog:",
|
"eslint": "catalog:",
|
||||||
"typescript": "catalog:"
|
"typescript": "catalog:"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createTask, validate } from "node-cron";
|
import { Cron } from "croner";
|
||||||
|
|
||||||
import { Stopwatch } from "@homarr/common";
|
import { Stopwatch } from "@homarr/common";
|
||||||
import type { MaybePromise } from "@homarr/common/types";
|
import type { MaybePromise } from "@homarr/common/types";
|
||||||
@@ -83,10 +83,15 @@ const createCallback = <TAllowedNames extends string, TName extends TAllowedName
|
|||||||
? defaultCronExpression
|
? defaultCronExpression
|
||||||
: (configuration?.cronExpression ?? defaultCronExpression);
|
: (configuration?.cronExpression ?? defaultCronExpression);
|
||||||
|
|
||||||
const scheduledTask = createTask(cronExpression, () => void catchingCallbackAsync(), {
|
const scheduledTask = new Cron(
|
||||||
name,
|
cronExpression,
|
||||||
timezone: creatorOptions.timezone,
|
{
|
||||||
});
|
name,
|
||||||
|
timezone: creatorOptions.timezone,
|
||||||
|
paused: true,
|
||||||
|
},
|
||||||
|
() => void catchingCallbackAsync(),
|
||||||
|
);
|
||||||
creatorOptions.logger.logDebug("The scheduled task for cron job was created", {
|
creatorOptions.logger.logDebug("The scheduled task for cron job was created", {
|
||||||
name,
|
name,
|
||||||
cronExpression: defaultCronExpression,
|
cronExpression: defaultCronExpression,
|
||||||
@@ -116,6 +121,7 @@ const createCallback = <TAllowedNames extends string, TName extends TAllowedName
|
|||||||
},
|
},
|
||||||
preventManualExecution: options.preventManualExecution ?? false,
|
preventManualExecution: options.preventManualExecution ?? false,
|
||||||
preventCustomInterval: options.preventCustomInterval ?? false,
|
preventCustomInterval: options.preventCustomInterval ?? false,
|
||||||
|
timezone: creatorOptions.timezone,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -132,13 +138,6 @@ export const createCronJobCreator = <TAllowedNames extends string = string>(
|
|||||||
defaultCronExpression: TExpression,
|
defaultCronExpression: TExpression,
|
||||||
options: CreateCronJobOptions = { runOnStart: false },
|
options: CreateCronJobOptions = { runOnStart: false },
|
||||||
) => {
|
) => {
|
||||||
creatorOptions.logger.logDebug("Validating cron expression for cron job", {
|
|
||||||
name,
|
|
||||||
cronExpression: defaultCronExpression,
|
|
||||||
});
|
|
||||||
if (!validate(defaultCronExpression)) {
|
|
||||||
throw new Error(`Invalid cron expression '${defaultCronExpression}' for job '${name}'`);
|
|
||||||
}
|
|
||||||
creatorOptions.logger.logDebug("Cron job expression for cron job is valid", {
|
creatorOptions.logger.logDebug("Cron job expression for cron job is valid", {
|
||||||
name,
|
name,
|
||||||
cronExpression: defaultCronExpression,
|
cronExpression: defaultCronExpression,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { ScheduledTask } from "node-cron";
|
import type { Cron } from "croner";
|
||||||
|
|
||||||
import { objectEntries, objectKeys } from "@homarr/common";
|
import { objectEntries, objectKeys } from "@homarr/common";
|
||||||
import { db } from "@homarr/db";
|
import { db } from "@homarr/db";
|
||||||
@@ -34,7 +34,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const tasks = new Map<string, ScheduledTask>();
|
const tasks = new Map<string, Cron>();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
initializeAsync: async () => {
|
initializeAsync: async () => {
|
||||||
@@ -62,7 +62,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
|
|||||||
name: job.name,
|
name: job.name,
|
||||||
});
|
});
|
||||||
await job.onStartAsync();
|
await job.onStartAsync();
|
||||||
await tasks.get(name as string)?.start();
|
tasks.get(name as string)?.resume();
|
||||||
},
|
},
|
||||||
startAllAsync: async () => {
|
startAllAsync: async () => {
|
||||||
for (const job of jobRegistry.values()) {
|
for (const job of jobRegistry.values()) {
|
||||||
@@ -74,7 +74,7 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
|
|||||||
name: job.name,
|
name: job.name,
|
||||||
});
|
});
|
||||||
await job.onStartAsync();
|
await job.onStartAsync();
|
||||||
await tasks.get(job.name)?.start();
|
tasks.get(job.name)?.resume();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
runManuallyAsync: async (name: keyof TJobs) => {
|
runManuallyAsync: async (name: keyof TJobs) => {
|
||||||
@@ -87,23 +87,23 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
|
|||||||
options.logger.logInfo("Running schedule cron job manually.", {
|
options.logger.logInfo("Running schedule cron job manually.", {
|
||||||
name: job.name,
|
name: job.name,
|
||||||
});
|
});
|
||||||
await tasks.get(name as string)?.execute();
|
await tasks.get(name as string)?.trigger();
|
||||||
},
|
},
|
||||||
stopAsync: async (name: keyof TJobs) => {
|
stop: (name: keyof TJobs) => {
|
||||||
const job = jobRegistry.get(name as string);
|
const job = jobRegistry.get(name as string);
|
||||||
if (!job) return;
|
if (!job) return;
|
||||||
|
|
||||||
options.logger.logInfo("Stopping schedule of cron job.", {
|
options.logger.logInfo("Stopping schedule of cron job.", {
|
||||||
name: job.name,
|
name: job.name,
|
||||||
});
|
});
|
||||||
await tasks.get(name as string)?.stop();
|
tasks.get(name as string)?.pause();
|
||||||
},
|
},
|
||||||
stopAllAsync: async () => {
|
stopAll: () => {
|
||||||
for (const job of jobRegistry.values()) {
|
for (const job of jobRegistry.values()) {
|
||||||
options.logger.logInfo("Stopping schedule of cron job.", {
|
options.logger.logInfo("Stopping schedule of cron job.", {
|
||||||
name: job.name,
|
name: job.name,
|
||||||
});
|
});
|
||||||
await tasks.get(job.name)?.stop();
|
tasks.get(job.name)?.pause();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getJobRegistry() {
|
getJobRegistry() {
|
||||||
@@ -112,8 +112,8 @@ export const createJobGroupCreator = <TAllowedNames extends string = string>(
|
|||||||
getTask(name: keyof TJobs) {
|
getTask(name: keyof TJobs) {
|
||||||
return tasks.get(name as string) ?? null;
|
return tasks.get(name as string) ?? null;
|
||||||
},
|
},
|
||||||
setTask(name: keyof TJobs, task: ScheduledTask) {
|
setTask(name: keyof TJobs, cron: Cron) {
|
||||||
tasks.set(name as string, task);
|
tasks.set(name as string, cron);
|
||||||
},
|
},
|
||||||
getKeys() {
|
getKeys() {
|
||||||
return objectKeys(jobs);
|
return objectKeys(jobs);
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
|
import type { MySqlRawQueryResult } from "drizzle-orm/mysql2";
|
||||||
|
import type { QueryResult } from "pg";
|
||||||
|
|
||||||
import { createId, splitToNChunks, Stopwatch } from "@homarr/common";
|
import { createId, splitToNChunks, Stopwatch } from "@homarr/common";
|
||||||
import { env } from "@homarr/common/env";
|
import { env } from "@homarr/common/env";
|
||||||
import { createLogger } from "@homarr/core/infrastructure/logs";
|
import { createLogger } from "@homarr/core/infrastructure/logs";
|
||||||
import { EVERY_WEEK } from "@homarr/cron-jobs-core/expressions";
|
import { EVERY_WEEK } from "@homarr/cron-jobs-core/expressions";
|
||||||
import type { InferInsertModel } from "@homarr/db";
|
import type { InferInsertModel } from "@homarr/db";
|
||||||
import { db, handleTransactionsAsync, inArray, sql } from "@homarr/db";
|
import { and, db, eq, handleTransactionsAsync, inArray, notInArray, or } from "@homarr/db";
|
||||||
import { iconRepositories, icons } from "@homarr/db/schema";
|
import { iconRepositories, icons } from "@homarr/db/schema";
|
||||||
import { fetchIconsAsync } from "@homarr/icons";
|
import { fetchIconsAsync } from "@homarr/icons";
|
||||||
|
|
||||||
@@ -26,7 +29,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
|||||||
logger.info("Fetched icons from repositories", {
|
logger.info("Fetched icons from repositories", {
|
||||||
repositoryCount: repositoryIconGroups.length,
|
repositoryCount: repositoryIconGroups.length,
|
||||||
iconCount: countIcons,
|
iconCount: countIcons,
|
||||||
duration: stopWatch.getElapsedInHumanWords(),
|
duration: stopWatch.getElapsedInFormattedMilliseconds(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const databaseIconRepositories = await db.query.iconRepositories.findMany({
|
const databaseIconRepositories = await db.query.iconRepositories.findMany({
|
||||||
@@ -35,7 +38,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const skippedChecksums: `${string}.${string}`[] = [];
|
const skippedChecksums = new Map<string, string[]>();
|
||||||
let countDeleted = 0;
|
let countDeleted = 0;
|
||||||
let countInserted = 0;
|
let countInserted = 0;
|
||||||
|
|
||||||
@@ -50,6 +53,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
|||||||
if (!repositoryIconGroup.success) {
|
if (!repositoryIconGroup.success) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
const localSkippedChecksums: string[] = [];
|
||||||
|
|
||||||
const repositoryInDb = databaseIconRepositories.find(
|
const repositoryInDb = databaseIconRepositories.find(
|
||||||
(dbIconGroup) => dbIconGroup.slug === repositoryIconGroup.slug,
|
(dbIconGroup) => dbIconGroup.slug === repositoryIconGroup.slug,
|
||||||
@@ -66,7 +70,7 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
|||||||
|
|
||||||
for (const icon of repositoryIconGroup.icons) {
|
for (const icon of repositoryIconGroup.icons) {
|
||||||
if (dbIconsInRepository.some((dbIcon) => dbIcon.checksum === icon.checksum)) {
|
if (dbIconsInRepository.some((dbIcon) => dbIcon.checksum === icon.checksum)) {
|
||||||
skippedChecksums.push(`${iconRepositoryId}.${icon.checksum}`);
|
localSkippedChecksums.push(icon.checksum);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,38 +83,28 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
|||||||
});
|
});
|
||||||
countInserted++;
|
countInserted++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const deadIcons = allDbIcons.filter(
|
skippedChecksums.set(iconRepositoryId, localSkippedChecksums);
|
||||||
(icon) => !skippedChecksums.includes(`${icon.iconRepositoryId}.${icon.checksum}`),
|
}
|
||||||
);
|
|
||||||
|
|
||||||
const deadIconRepositories = databaseIconRepositories.filter(
|
const deadIconRepositories = databaseIconRepositories.filter(
|
||||||
(iconRepository) => !repositoryIconGroups.some((group) => group.slug === iconRepository.slug),
|
(iconRepository) => !repositoryIconGroups.some((group) => group.slug === iconRepository.slug),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const deadIconsFilter = or(
|
||||||
|
...[...skippedChecksums.entries()].map(([iconRepositoryId, checksums]) =>
|
||||||
|
and(eq(icons.iconRepositoryId, iconRepositoryId), notInArray(icons.checksum, checksums)),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
await handleTransactionsAsync(db, {
|
await handleTransactionsAsync(db, {
|
||||||
async handleAsync(db, schema) {
|
async handleAsync(db, schema) {
|
||||||
await db.transaction(async (transaction) => {
|
await db.transaction(async (transaction) => {
|
||||||
if (newIconRepositories.length >= 1) {
|
const result = (await transaction.delete(schema.icons).where(deadIconsFilter)) as
|
||||||
await transaction.insert(schema.iconRepositories).values(newIconRepositories);
|
| MySqlRawQueryResult
|
||||||
}
|
| QueryResult;
|
||||||
|
|
||||||
if (newIcons.length >= 1) {
|
countDeleted += Array.isArray(result) ? result[0].affectedRows : (result.rowCount ?? 0);
|
||||||
// We only insert 5000 icons at a time to avoid SQLite limitations
|
|
||||||
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
|
|
||||||
await transaction.insert(schema.icons).values(chunck);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (deadIcons.length >= 1) {
|
|
||||||
await transaction.delete(schema.icons).where(
|
|
||||||
inArray(
|
|
||||||
// Combine iconRepositoryId and checksum to allow same icons on different repositories
|
|
||||||
sql`concat(${icons.iconRepositoryId}, '.', ${icons.checksum})`,
|
|
||||||
deadIcons.map((icon) => `${icon.iconRepositoryId}.${icon.checksum}`),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (deadIconRepositories.length >= 1) {
|
if (deadIconRepositories.length >= 1) {
|
||||||
await transaction.delete(schema.iconRepositories).where(
|
await transaction.delete(schema.iconRepositories).where(
|
||||||
@@ -121,33 +115,22 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
countDeleted += deadIcons.length;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleSync() {
|
|
||||||
db.transaction((transaction) => {
|
|
||||||
if (newIconRepositories.length >= 1) {
|
if (newIconRepositories.length >= 1) {
|
||||||
transaction.insert(iconRepositories).values(newIconRepositories).run();
|
await transaction.insert(schema.iconRepositories).values(newIconRepositories);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newIcons.length >= 1) {
|
if (newIcons.length >= 1) {
|
||||||
// We only insert 5000 icons at a time to avoid SQLite limitations
|
// We only insert 5000 icons at a time to avoid SQLite limitations
|
||||||
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
|
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
|
||||||
transaction.insert(icons).values(chunck).run();
|
await transaction.insert(schema.icons).values(chunck);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (deadIcons.length >= 1) {
|
});
|
||||||
transaction
|
},
|
||||||
.delete(icons)
|
handleSync() {
|
||||||
.where(
|
db.transaction((transaction) => {
|
||||||
inArray(
|
const result = transaction.delete(icons).where(deadIconsFilter).run();
|
||||||
// Combine iconRepositoryId and checksum to allow same icons on different repositories
|
countDeleted += result.changes;
|
||||||
sql`concat(${icons.iconRepositoryId}, '.', ${icons.checksum})`,
|
|
||||||
deadIcons.map((icon) => `${icon.iconRepositoryId}.${icon.checksum}`),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.run();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (deadIconRepositories.length >= 1) {
|
if (deadIconRepositories.length >= 1) {
|
||||||
transaction
|
transaction
|
||||||
@@ -161,13 +144,22 @@ export const iconsUpdaterJob = createCronJob("iconsUpdater", EVERY_WEEK, {
|
|||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
countDeleted += deadIcons.length;
|
if (newIconRepositories.length >= 1) {
|
||||||
|
transaction.insert(iconRepositories).values(newIconRepositories).run();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (newIcons.length >= 1) {
|
||||||
|
// We only insert 5000 icons at a time to avoid SQLite limitations
|
||||||
|
for (const chunck of splitToNChunks(newIcons, Math.ceil(newIcons.length / 5000))) {
|
||||||
|
transaction.insert(icons).values(chunck).run();
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
logger.info("Updated icons in database", {
|
logger.info("Updated icons in database", {
|
||||||
duration: stopWatch.getElapsedInHumanWords(),
|
duration: stopWatch.getElapsedInFormattedMilliseconds(),
|
||||||
added: countInserted,
|
added: countInserted,
|
||||||
deleted: countDeleted,
|
deleted: countDeleted,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
"push:sqlite": "pnpm with-env drizzle-kit push --config ./configs/sqlite.config.ts",
|
"push:sqlite": "pnpm with-env drizzle-kit push --config ./configs/sqlite.config.ts",
|
||||||
"seed": "pnpm with-env tsx ./migrations/run-seed.ts",
|
"seed": "pnpm with-env tsx ./migrations/run-seed.ts",
|
||||||
"studio": "pnpm with-env drizzle-kit studio --config ./configs/sqlite.config.ts",
|
"studio": "pnpm with-env drizzle-kit studio --config ./configs/sqlite.config.ts",
|
||||||
|
"studio:mysql": "pnpm with-env drizzle-kit studio --config ./configs/mysql.config.ts",
|
||||||
|
"studio:postgresql": "pnpm with-env drizzle-kit studio --config ./configs/postgresql.config.ts",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"with-env": "dotenv -e ../../.env --"
|
"with-env": "dotenv -e ../../.env --"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export class AnchorIntegration extends Integration {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
let errorBody: string | null = null;
|
let errorBody: string | null;
|
||||||
try {
|
try {
|
||||||
errorBody = await response.text();
|
errorBody = await response.text();
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -1614,22 +1614,22 @@
|
|||||||
"label": ""
|
"label": ""
|
||||||
},
|
},
|
||||||
"showTitle": {
|
"showTitle": {
|
||||||
"label": ""
|
"label": "显示标题"
|
||||||
},
|
},
|
||||||
"showUpdatedAt": {
|
"showUpdatedAt": {
|
||||||
"label": ""
|
"label": "显示最近更新"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"empty": "",
|
"empty": "选择要显示的笔记",
|
||||||
"emptyContent": "",
|
"emptyContent": "此笔记没有内容",
|
||||||
"notFound": "",
|
"notFound": "未找到笔记",
|
||||||
"noNotes": "",
|
"noNotes": "",
|
||||||
"integrationRequired": "",
|
"integrationRequired": "",
|
||||||
"updatedAt": "",
|
"updatedAt": "更新时间:{date}",
|
||||||
"untitled": "",
|
"untitled": "未命名",
|
||||||
"edit": "",
|
"edit": "编辑",
|
||||||
"save": "",
|
"save": "保存",
|
||||||
"cancel": "",
|
"cancel": "取消",
|
||||||
"readOnlyViewer": "",
|
"readOnlyViewer": "",
|
||||||
"saveForbidden": "",
|
"saveForbidden": "",
|
||||||
"saveFailed": ""
|
"saveFailed": ""
|
||||||
@@ -1901,7 +1901,7 @@
|
|||||||
"label": "显示内存信息"
|
"label": "显示内存信息"
|
||||||
},
|
},
|
||||||
"gpu": {
|
"gpu": {
|
||||||
"label": ""
|
"label": "显示 GPU 信息"
|
||||||
},
|
},
|
||||||
"showUptime": {
|
"showUptime": {
|
||||||
"label": "显示运行时间"
|
"label": "显示运行时间"
|
||||||
@@ -2200,15 +2200,15 @@
|
|||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"showPhotos": {
|
"showPhotos": {
|
||||||
"label": "",
|
"label": "显示图片",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"showVideos": {
|
"showVideos": {
|
||||||
"label": "",
|
"label": "显示视频",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"showStorage": {
|
"showStorage": {
|
||||||
"label": "",
|
"label": "显示存储",
|
||||||
"description": ""
|
"description": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2229,7 +2229,7 @@
|
|||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"showPhotoInfo": {
|
"showPhotoInfo": {
|
||||||
"label": "",
|
"label": "显示图片信息",
|
||||||
"description": ""
|
"description": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2783,17 +2783,17 @@
|
|||||||
"recentResults": "",
|
"recentResults": "",
|
||||||
"recentResultsSpeed": "",
|
"recentResultsSpeed": "",
|
||||||
"recentResultsPing": "",
|
"recentResultsPing": "",
|
||||||
"download": "",
|
"download": "下载",
|
||||||
"upload": "",
|
"upload": "上传",
|
||||||
"ping": "",
|
"ping": "Ping",
|
||||||
"status": "",
|
"status": "状态",
|
||||||
"avgDownload": "",
|
"avgDownload": "平均下载",
|
||||||
"avgUpload": "",
|
"avgUpload": "平均上传",
|
||||||
"avgPing": "",
|
"avgPing": "平均Ping",
|
||||||
"healthy": "",
|
"healthy": "",
|
||||||
"unhealthy": "",
|
"unhealthy": "",
|
||||||
"ok": "",
|
"ok": "",
|
||||||
"fail": "",
|
"fail": "失败",
|
||||||
"noSectionsEnabled": "",
|
"noSectionsEnabled": "",
|
||||||
"error": {
|
"error": {
|
||||||
"internalServerError": ""
|
"internalServerError": ""
|
||||||
@@ -2812,7 +2812,7 @@
|
|||||||
"option": {
|
"option": {
|
||||||
"cpu": "CPU",
|
"cpu": "CPU",
|
||||||
"memory": "内存",
|
"memory": "内存",
|
||||||
"gpu": "",
|
"gpu": "GPU",
|
||||||
"network": "网络"
|
"network": "网络"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2829,7 +2829,7 @@
|
|||||||
"card": {
|
"card": {
|
||||||
"cpu": "CPU",
|
"cpu": "CPU",
|
||||||
"memory": "内存",
|
"memory": "内存",
|
||||||
"gpu": "",
|
"gpu": "GPU",
|
||||||
"network": "网络",
|
"network": "网络",
|
||||||
"up": "上传",
|
"up": "上传",
|
||||||
"down": "下载"
|
"down": "下载"
|
||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "翻译人员",
|
"title": "翻译人员",
|
||||||
"subtitle": "在许多语言中,有{count}人贡献了翻译"
|
"subtitle": "在许多语言中,有{count}人贡献了翻译"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "相关的库",
|
"title": "相关的库",
|
||||||
"subtitle": "{count} 用于 Homarr 代码中"
|
"subtitle": "{count} 用于 Homarr 代码中"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "crwdns1884:0crwdne1884:0",
|
"title": "crwdns1884:0crwdne1884:0",
|
||||||
"subtitle": "crwdns1886:0{count}crwdne1886:0"
|
"subtitle": "crwdns1886:0{count}crwdne1886:0"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "crwdns4100:0crwdne4100:0",
|
||||||
|
"subtitle": "crwdns4102:0{count}crwdne4102:0"
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "crwdns1888:0crwdne1888:0",
|
"title": "crwdns1888:0crwdne1888:0",
|
||||||
"subtitle": "crwdns1890:0{count}crwdne1890:0"
|
"subtitle": "crwdns1890:0{count}crwdne1890:0"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Překladatelé",
|
"title": "Překladatelé",
|
||||||
"subtitle": "{count} přispívá překladem do mnoha jazyků"
|
"subtitle": "{count} přispívá překladem do mnoha jazyků"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Oversættere",
|
"title": "Oversættere",
|
||||||
"subtitle": "{count} bidragende oversættere på mange sprog"
|
"subtitle": "{count} bidragende oversættere på mange sprog"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Biblioteker",
|
"title": "Biblioteker",
|
||||||
"subtitle": "{count} brugt i koden for Homarr"
|
"subtitle": "{count} brugt i koden for Homarr"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Übersetzer",
|
"title": "Übersetzer",
|
||||||
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
|
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Bibliotheken",
|
"title": "Bibliotheken",
|
||||||
"subtitle": "{count} im Code von Homarr verwendet"
|
"subtitle": "{count} im Code von Homarr verwendet"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Übersetzer",
|
"title": "Übersetzer",
|
||||||
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
|
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Bibliotheken",
|
"title": "Bibliotheken",
|
||||||
"subtitle": "{count} im Code von Homarr verwendet"
|
"subtitle": "{count} im Code von Homarr verwendet"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -1607,32 +1607,32 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"anchorNote": {
|
"anchorNote": {
|
||||||
"name": "",
|
"name": "Anchor Note",
|
||||||
"description": "",
|
"description": "Displays a selected note from Anchor",
|
||||||
"option": {
|
"option": {
|
||||||
"noteId": {
|
"noteId": {
|
||||||
"label": ""
|
"label": "Note"
|
||||||
},
|
},
|
||||||
"showTitle": {
|
"showTitle": {
|
||||||
"label": ""
|
"label": "Show title"
|
||||||
},
|
},
|
||||||
"showUpdatedAt": {
|
"showUpdatedAt": {
|
||||||
"label": ""
|
"label": "Show last updated"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"empty": "",
|
"empty": "Select a note to display",
|
||||||
"emptyContent": "",
|
"emptyContent": "This note has no content",
|
||||||
"notFound": "",
|
"notFound": "Note not found",
|
||||||
"noNotes": "",
|
"noNotes": "No notes found",
|
||||||
"integrationRequired": "",
|
"integrationRequired": "Select an Anchor integration first",
|
||||||
"updatedAt": "",
|
"updatedAt": "Updated {date}",
|
||||||
"untitled": "",
|
"untitled": "Untitled",
|
||||||
"edit": "",
|
"edit": "Edit",
|
||||||
"save": "",
|
"save": "Save",
|
||||||
"cancel": "",
|
"cancel": "Cancel",
|
||||||
"readOnlyViewer": "",
|
"readOnlyViewer": "You have viewer access to this note. Editing is disabled.",
|
||||||
"saveForbidden": "",
|
"saveForbidden": "You do not have permission to edit this note.",
|
||||||
"saveFailed": ""
|
"saveFailed": "Failed to save this note. Please try again."
|
||||||
},
|
},
|
||||||
"iframe": {
|
"iframe": {
|
||||||
"name": "iFrame",
|
"name": "iFrame",
|
||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3792,6 +3792,10 @@
|
|||||||
"title": "Translators",
|
"title": "Translators",
|
||||||
"subtitle": "{count} contributing translations in many languages"
|
"subtitle": "{count} contributing translations in many languages"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "Sponsors",
|
||||||
|
"subtitle": "{count} supporting the project financially"
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Libraries",
|
"title": "Libraries",
|
||||||
"subtitle": "{count} used in the Code of Homarr"
|
"subtitle": "{count} used in the Code of Homarr"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Traductores",
|
"title": "Traductores",
|
||||||
"subtitle": "{count} contribuyendo con las traducciones en muchos idiomas"
|
"subtitle": "{count} contribuyendo con las traducciones en muchos idiomas"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Librerías",
|
"title": "Librerías",
|
||||||
"subtitle": "{count} usadas en el Código de Homarr"
|
"subtitle": "{count} usadas en el Código de Homarr"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Traducteurs",
|
"title": "Traducteurs",
|
||||||
"subtitle": "{count} ont contribué à des traductions dans de nombreuses langues"
|
"subtitle": "{count} ont contribué à des traductions dans de nombreuses langues"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Bibliothèques",
|
"title": "Bibliothèques",
|
||||||
"subtitle": "{count} utilisés dans le Code d'Homarr"
|
"subtitle": "{count} utilisés dans le Code d'Homarr"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "מתרגמים",
|
"title": "מתרגמים",
|
||||||
"subtitle": "{count} תורמים בתרגום לשפות שונות"
|
"subtitle": "{count} תורמים בתרגום לשפות שונות"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "ספריות",
|
"title": "ספריות",
|
||||||
"subtitle": "{count} בשימוש בקוד של Homarr"
|
"subtitle": "{count} בשימוש בקוד של Homarr"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Traduttori",
|
"title": "Traduttori",
|
||||||
"subtitle": "{count} contribuendo alle traduzioni in molte lingue"
|
"subtitle": "{count} contribuendo alle traduzioni in molte lingue"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "Sponsor",
|
||||||
|
"subtitle": "{count} sostengono il progetto finanziariamente"
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Librerie",
|
"title": "Librerie",
|
||||||
"subtitle": "{count} utilizzato nel Codice di Homarr"
|
"subtitle": "{count} utilizzato nel Codice di Homarr"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "翻訳者",
|
"title": "翻訳者",
|
||||||
"subtitle": "{count} の多くの言語で翻訳を行っている"
|
"subtitle": "{count} の多くの言語で翻訳を行っている"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "ライブラリ",
|
"title": "ライブラリ",
|
||||||
"subtitle": "{count} 個が Homarr のコードで使用されています"
|
"subtitle": "{count} 個が Homarr のコードで使用されています"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Vertalers",
|
"title": "Vertalers",
|
||||||
"subtitle": "{count} bijdragen aan vertalingen in vele talen"
|
"subtitle": "{count} bijdragen aan vertalingen in vele talen"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Bibliotheken",
|
"title": "Bibliotheken",
|
||||||
"subtitle": "{count} gebruikt in de code van Homarr"
|
"subtitle": "{count} gebruikt in de code van Homarr"
|
||||||
|
|||||||
@@ -1526,13 +1526,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"timetable": {
|
"timetable": {
|
||||||
"name": "",
|
"name": "Timeplan",
|
||||||
"description": "",
|
"description": "Viser avgangstid for en stasjon",
|
||||||
"title": "",
|
"title": "Avganger {station}",
|
||||||
"noStation": "",
|
"noStation": "Ingen stasjon valgt",
|
||||||
"option": {
|
"option": {
|
||||||
"station": {
|
"station": {
|
||||||
"label": ""
|
"label": "Stasjon"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1607,32 +1607,32 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"anchorNote": {
|
"anchorNote": {
|
||||||
"name": "",
|
"name": "Ankermerknad",
|
||||||
"description": "",
|
"description": "Viser et valgt notat fra anker",
|
||||||
"option": {
|
"option": {
|
||||||
"noteId": {
|
"noteId": {
|
||||||
"label": ""
|
"label": "Notat"
|
||||||
},
|
},
|
||||||
"showTitle": {
|
"showTitle": {
|
||||||
"label": ""
|
"label": "Vis tittel"
|
||||||
},
|
},
|
||||||
"showUpdatedAt": {
|
"showUpdatedAt": {
|
||||||
"label": ""
|
"label": "Vis sist oppdatert"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"empty": "",
|
"empty": "Velg et notat som skal vises",
|
||||||
"emptyContent": "",
|
"emptyContent": "Dette notatet har ikke innhold",
|
||||||
"notFound": "",
|
"notFound": "Notat ikke funnet",
|
||||||
"noNotes": "",
|
"noNotes": "Fant ingen notater",
|
||||||
"integrationRequired": "",
|
"integrationRequired": "Velg en ankerintegrasjon først",
|
||||||
"updatedAt": "",
|
"updatedAt": "Oppdatert {date}",
|
||||||
"untitled": "",
|
"untitled": "Uten navn",
|
||||||
"edit": "",
|
"edit": "Rediger",
|
||||||
"save": "",
|
"save": "Lagre",
|
||||||
"cancel": "",
|
"cancel": "Avbryt",
|
||||||
"readOnlyViewer": "",
|
"readOnlyViewer": "Du har seertilgang til dette notatet. Redigering er deaktivert.",
|
||||||
"saveForbidden": "",
|
"saveForbidden": "Du har ikke tillatelse til å redigere dette notatet.",
|
||||||
"saveFailed": ""
|
"saveFailed": "Kunne ikke lagre dette notatet. Prøv på nytt."
|
||||||
},
|
},
|
||||||
"iframe": {
|
"iframe": {
|
||||||
"name": "iFrame",
|
"name": "iFrame",
|
||||||
@@ -1666,7 +1666,7 @@
|
|||||||
"label": "Tillat geolokalisering"
|
"label": "Tillat geolokalisering"
|
||||||
},
|
},
|
||||||
"allowModals": {
|
"allowModals": {
|
||||||
"label": ""
|
"label": "Tillat modaler"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
@@ -1901,7 +1901,7 @@
|
|||||||
"label": "Vis minneinfo"
|
"label": "Vis minneinfo"
|
||||||
},
|
},
|
||||||
"gpu": {
|
"gpu": {
|
||||||
"label": ""
|
"label": "Vis CPU-info"
|
||||||
},
|
},
|
||||||
"showUptime": {
|
"showUptime": {
|
||||||
"label": "Vis oppetid"
|
"label": "Vis oppetid"
|
||||||
@@ -2042,58 +2042,58 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tracearr": {
|
"tracearr": {
|
||||||
"name": "",
|
"name": "Tracearr",
|
||||||
"description": "",
|
"description": "Forbedret medieserverovervåking med detaljert strøm- og transkodingsdata",
|
||||||
"option": {
|
"option": {
|
||||||
"showStreams": {
|
"showStreams": {
|
||||||
"label": ""
|
"label": "Vis aktive strømmer"
|
||||||
},
|
},
|
||||||
"showStats": {
|
"showStats": {
|
||||||
"label": ""
|
"label": "Vis statistikksammendrag"
|
||||||
},
|
},
|
||||||
"showRecentActivity": {
|
"showRecentActivity": {
|
||||||
"label": ""
|
"label": "Vis nylig aktivitet"
|
||||||
},
|
},
|
||||||
"showViolations": {
|
"showViolations": {
|
||||||
"label": ""
|
"label": "Vis brudd"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stats": {
|
"stats": {
|
||||||
"activeStreams": "",
|
"activeStreams": "Aktive strømmninger",
|
||||||
"totalUsers": "",
|
"totalUsers": "Totalt antall brukere",
|
||||||
"transcodes": "",
|
"transcodes": "Transkoder",
|
||||||
"bandwidth": ""
|
"bandwidth": "Båndbredde"
|
||||||
},
|
},
|
||||||
"streams": {
|
"streams": {
|
||||||
"empty": "",
|
"empty": "Ingen aktive strømminger",
|
||||||
"user": "",
|
"user": "Bruker",
|
||||||
"media": "",
|
"media": "Media",
|
||||||
"state": "",
|
"state": "Tilstand",
|
||||||
"quality": "",
|
"quality": "Kvalitet",
|
||||||
"device": "",
|
"device": "Enhet",
|
||||||
"progress": "",
|
"progress": "Fremgang",
|
||||||
"videoDecision": {
|
"videoDecision": {
|
||||||
"directPlay": "",
|
"directPlay": "Direkte avspilling",
|
||||||
"transcode": "",
|
"transcode": "Transkode",
|
||||||
"directStream": ""
|
"directStream": "Direktestrøm"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"recentActivity": {
|
"recentActivity": {
|
||||||
"title": "",
|
"title": "Nylig aktivitet",
|
||||||
"empty": "",
|
"empty": "Ingen nylig aktivitet",
|
||||||
"watched": "",
|
"watched": "Sett",
|
||||||
"partial": ""
|
"partial": "Delvis"
|
||||||
},
|
},
|
||||||
"violations": {
|
"violations": {
|
||||||
"title": "",
|
"title": "Brudd",
|
||||||
"empty": "",
|
"empty": "Ingen nylige brudd",
|
||||||
"rule": "",
|
"rule": "Regel",
|
||||||
"user": ""
|
"user": "Bruker"
|
||||||
},
|
},
|
||||||
"noSectionsEnabled": "",
|
"noSectionsEnabled": "Ingen seksjoner aktivert",
|
||||||
"error": {
|
"error": {
|
||||||
"noIntegration": "",
|
"noIntegration": "Ingen Tracearr-integrasjon konfigurert",
|
||||||
"internalServerError": ""
|
"internalServerError": "Kunne ikke hente Tracearr data"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -2546,7 +2546,7 @@
|
|||||||
"label": "Skjul beskrivelse"
|
"label": "Skjul beskrivelse"
|
||||||
},
|
},
|
||||||
"showPosterImage": {
|
"showPosterImage": {
|
||||||
"label": ""
|
"label": "Vis plakatbilde"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2761,42 +2761,42 @@
|
|||||||
"option": {}
|
"option": {}
|
||||||
},
|
},
|
||||||
"speedtestTracker": {
|
"speedtestTracker": {
|
||||||
"name": "",
|
"name": "Speedtest tracker",
|
||||||
"description": "",
|
"description": "Viser hastighetstesten i fra din Speedtest Tracker-instans.",
|
||||||
"option": {
|
"option": {
|
||||||
"showLatestResult": {
|
"showLatestResult": {
|
||||||
"label": ""
|
"label": "Vis siste resultat"
|
||||||
},
|
},
|
||||||
"showStats": {
|
"showStats": {
|
||||||
"label": ""
|
"label": "Vis gjennomsnitt"
|
||||||
},
|
},
|
||||||
"showRecentResults": {
|
"showRecentResults": {
|
||||||
"label": ""
|
"label": "Vis nylige resultater"
|
||||||
},
|
},
|
||||||
"showPingGraph": {
|
"showPingGraph": {
|
||||||
"label": ""
|
"label": "Vis ping-graf"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latestResult": "",
|
"latestResult": "Siste resultat",
|
||||||
"averages": "",
|
"averages": "Gjennomsnitt",
|
||||||
"tests": "",
|
"tests": "{count} tester",
|
||||||
"recentResults": "",
|
"recentResults": "Nylige resultater",
|
||||||
"recentResultsSpeed": "",
|
"recentResultsSpeed": "Hastighet",
|
||||||
"recentResultsPing": "",
|
"recentResultsPing": "Ping",
|
||||||
"download": "",
|
"download": "Nedlasting",
|
||||||
"upload": "",
|
"upload": "Opplastning",
|
||||||
"ping": "",
|
"ping": "Ping",
|
||||||
"status": "",
|
"status": "Status",
|
||||||
"avgDownload": "",
|
"avgDownload": "Snitt nedlasting",
|
||||||
"avgUpload": "",
|
"avgUpload": "Snitt opplasting",
|
||||||
"avgPing": "",
|
"avgPing": "Snitt ping",
|
||||||
"healthy": "",
|
"healthy": "Frisk",
|
||||||
"unhealthy": "",
|
"unhealthy": "Usunn",
|
||||||
"ok": "",
|
"ok": "OK",
|
||||||
"fail": "",
|
"fail": "Feil",
|
||||||
"noSectionsEnabled": "",
|
"noSectionsEnabled": "Aktiver minst ett avsnitt i widgetalternativer.",
|
||||||
"error": {
|
"error": {
|
||||||
"internalServerError": ""
|
"internalServerError": "Kunne ikke hente hastighetsteste data"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systemResources": {
|
"systemResources": {
|
||||||
@@ -2812,7 +2812,7 @@
|
|||||||
"option": {
|
"option": {
|
||||||
"cpu": "CPU",
|
"cpu": "CPU",
|
||||||
"memory": "Minne",
|
"memory": "Minne",
|
||||||
"gpu": "",
|
"gpu": "GPU",
|
||||||
"network": "Nettverk"
|
"network": "Nettverk"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2829,7 +2829,7 @@
|
|||||||
"card": {
|
"card": {
|
||||||
"cpu": "CPU",
|
"cpu": "CPU",
|
||||||
"memory": "Minne",
|
"memory": "Minne",
|
||||||
"gpu": "",
|
"gpu": "GPU",
|
||||||
"network": "NETT",
|
"network": "NETT",
|
||||||
"up": "OPP",
|
"up": "OPP",
|
||||||
"down": "NED"
|
"down": "NED"
|
||||||
@@ -3595,7 +3595,7 @@
|
|||||||
"label": "Minecraft serverstatus"
|
"label": "Minecraft serverstatus"
|
||||||
},
|
},
|
||||||
"timetable": {
|
"timetable": {
|
||||||
"label": ""
|
"label": "Timeplan"
|
||||||
},
|
},
|
||||||
"iconsUpdater": {
|
"iconsUpdater": {
|
||||||
"label": "Ikon oppdatering"
|
"label": "Ikon oppdatering"
|
||||||
@@ -3667,7 +3667,7 @@
|
|||||||
"label": "Vær"
|
"label": "Vær"
|
||||||
},
|
},
|
||||||
"tracearr": {
|
"tracearr": {
|
||||||
"label": ""
|
"label": "Tracearr"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"interval": {
|
"interval": {
|
||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Oversettere",
|
"title": "Oversettere",
|
||||||
"subtitle": "{count} bidrar med oversettelser på mange språk"
|
"subtitle": "{count} bidrar med oversettelser på mange språk"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "Sponsorer",
|
||||||
|
"subtitle": "{count} støtter prosjektet økonomisk"
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Biblioteker",
|
"title": "Biblioteker",
|
||||||
"subtitle": "{count} brukt i koden til Homarr"
|
"subtitle": "{count} brukt i koden til Homarr"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Tłumacze",
|
"title": "Tłumacze",
|
||||||
"subtitle": "{count} współtworzy tłumaczenia w wielu językach"
|
"subtitle": "{count} współtworzy tłumaczenia w wielu językach"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Biblioteki",
|
"title": "Biblioteki",
|
||||||
"subtitle": "{count} używanych w kodzie Homarr"
|
"subtitle": "{count} używanych w kodzie Homarr"
|
||||||
|
|||||||
@@ -164,7 +164,7 @@
|
|||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
"login": {
|
"login": {
|
||||||
"label": "“Login”",
|
"label": "Login",
|
||||||
"labelWith": "Iniciar sessão com {provider}",
|
"labelWith": "Iniciar sessão com {provider}",
|
||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Tradutores",
|
"title": "Tradutores",
|
||||||
"subtitle": "{count} traduções contribuídas em vários idiomas"
|
"subtitle": "{count} traduções contribuídas em vários idiomas"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "Apoiadores",
|
||||||
|
"subtitle": "{count} apoiando o projeto financeiramente"
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Bibliotecas",
|
"title": "Bibliotecas",
|
||||||
"subtitle": "{count} usadas no código do Homarr"
|
"subtitle": "{count} usadas no código do Homarr"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Переводчики",
|
"title": "Переводчики",
|
||||||
"subtitle": "{count} помогают с переводами на разные языки"
|
"subtitle": "{count} помогают с переводами на разные языки"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Библиотеки",
|
"title": "Библиотеки",
|
||||||
"subtitle": "{count} используются в коде Homarr"
|
"subtitle": "{count} используются в коде Homarr"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Prekladatelia",
|
"title": "Prekladatelia",
|
||||||
"subtitle": "{count} prispievanie prekladmi do mnohých jazykov"
|
"subtitle": "{count} prispievanie prekladmi do mnohých jazykov"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Knižnice",
|
"title": "Knižnice",
|
||||||
"subtitle": "{count} používané v Homarrskom kódexe"
|
"subtitle": "{count} používané v Homarrskom kódexe"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Översättare",
|
"title": "Översättare",
|
||||||
"subtitle": "{count} bidrar med översättningar på flera olika språk"
|
"subtitle": "{count} bidrar med översättningar på flera olika språk"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Çevirmenler",
|
"title": "Çevirmenler",
|
||||||
"subtitle": "Birçok kişi Homarr'ın {count} dile çevrilmesine katkı sağlıyor"
|
"subtitle": "Birçok kişi Homarr'ın {count} dile çevrilmesine katkı sağlıyor"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Kütüphaneler",
|
"title": "Kütüphaneler",
|
||||||
"subtitle": "Homarr kodlamasında {count} kütüphane kullanılıyor"
|
"subtitle": "Homarr kodlamasında {count} kütüphane kullanılıyor"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "Перекладачі",
|
"title": "Перекладачі",
|
||||||
"subtitle": "{count} - стільки людей допомагають перекладати багатьма мовами"
|
"subtitle": "{count} - стільки людей допомагають перекладати багатьма мовами"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "Бібліотеки",
|
"title": "Бібліотеки",
|
||||||
"subtitle": "{count} - стільки бібліотек використано в коді Homarr"
|
"subtitle": "{count} - стільки бібліотек використано в коді Homarr"
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"subtitle": ""
|
"subtitle": ""
|
||||||
|
|||||||
@@ -3790,6 +3790,10 @@
|
|||||||
"title": "翻譯人員",
|
"title": "翻譯人員",
|
||||||
"subtitle": "{count} 翻譯了許多語言"
|
"subtitle": "{count} 翻譯了許多語言"
|
||||||
},
|
},
|
||||||
|
"sponsors": {
|
||||||
|
"title": "",
|
||||||
|
"subtitle": ""
|
||||||
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "資料庫",
|
"title": "資料庫",
|
||||||
"subtitle": "{count} 於 Homarr 待碼中使用"
|
"subtitle": "{count} 於 Homarr 待碼中使用"
|
||||||
|
|||||||
@@ -138,14 +138,10 @@ export const userChangeColorSchemeSchema = z.object({
|
|||||||
|
|
||||||
export const userFirstDayOfWeekSchema = z.object({
|
export const userFirstDayOfWeekSchema = z.object({
|
||||||
firstDayOfWeek: z
|
firstDayOfWeek: z
|
||||||
.custom<DayOfWeek>((value) => z.number().min(0).max(6).safeParse(value).success)
|
.number()
|
||||||
.meta({
|
.min(0)
|
||||||
override: {
|
.max(6)
|
||||||
type: "integer",
|
.transform((value) => value as DayOfWeek),
|
||||||
minimum: 0,
|
|
||||||
maximum: 6,
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const userPingIconsEnabledSchema = z.object({
|
export const userPingIconsEnabledSchema = z.object({
|
||||||
|
|||||||
Generated
+1056
-1064
File diff suppressed because it is too large.
Load diff
+45
-45
@@ -2,11 +2,6 @@ packages:
|
|||||||
- apps/*
|
- apps/*
|
||||||
- packages/*
|
- packages/*
|
||||||
- tooling/*
|
- tooling/*
|
||||||
minimumReleaseAge: 4320
|
|
||||||
minimumReleaseAgeExclude:
|
|
||||||
- next
|
|
||||||
- "@next/*"
|
|
||||||
catalogMode: strict
|
|
||||||
catalog:
|
catalog:
|
||||||
"@auth/core": ^0.41.2
|
"@auth/core": ^0.41.2
|
||||||
"@auth/drizzle-adapter": ^1.11.2
|
"@auth/drizzle-adapter": ^1.11.2
|
||||||
@@ -18,6 +13,7 @@ catalog:
|
|||||||
"@dnd-kit/sortable": ^10.0.0
|
"@dnd-kit/sortable": ^10.0.0
|
||||||
"@dnd-kit/utilities": ^3.2.2
|
"@dnd-kit/utilities": ^3.2.2
|
||||||
"@drizzle-team/brocli": ^0.12.0
|
"@drizzle-team/brocli": ^0.12.0
|
||||||
|
'@eslint/js': 10.0.1
|
||||||
"@extractus/feed-extractor": 7.1.7
|
"@extractus/feed-extractor": 7.1.7
|
||||||
"@gitbeaker/rest": ^43.8.0
|
"@gitbeaker/rest": ^43.8.0
|
||||||
"@homarr/gridstack": ^1.12.0
|
"@homarr/gridstack": ^1.12.0
|
||||||
@@ -49,33 +45,33 @@ catalog:
|
|||||||
"@semantic-release/release-notes-generator": ^14.1.0
|
"@semantic-release/release-notes-generator": ^14.1.0
|
||||||
"@t3-oss/env-nextjs": ^0.13.11
|
"@t3-oss/env-nextjs": ^0.13.11
|
||||||
"@tabler/icons-react": ^3.41.1
|
"@tabler/icons-react": ^3.41.1
|
||||||
"@tanstack/react-query": ^5.99.1
|
"@tanstack/react-query": ^5.100.6
|
||||||
"@tanstack/react-query-devtools": ^5.99.1
|
"@tanstack/react-query-devtools": ^5.100.6
|
||||||
"@tanstack/react-query-next-experimental": ^5.99.1
|
"@tanstack/react-query-next-experimental": ^5.100.6
|
||||||
"@testcontainers/mysql": ^11.14.0
|
"@testcontainers/mysql": ^11.14.0
|
||||||
"@testcontainers/postgresql": ^11.14.0
|
"@testcontainers/postgresql": ^11.14.0
|
||||||
"@testcontainers/redis": ^11.14.0
|
"@testcontainers/redis": ^11.14.0
|
||||||
"@tiptap/extension-color": 3.22.4
|
"@tiptap/extension-color": 3.22.5
|
||||||
"@tiptap/extension-highlight": 3.22.4
|
"@tiptap/extension-highlight": 3.22.5
|
||||||
"@tiptap/extension-image": 3.22.4
|
"@tiptap/extension-image": 3.22.5
|
||||||
"@tiptap/extension-link": ^3.22.4
|
"@tiptap/extension-link": ^3.22.5
|
||||||
"@tiptap/extension-placeholder": ^3.22.4
|
"@tiptap/extension-placeholder": ^3.22.5
|
||||||
"@tiptap/extension-table": 3.22.4
|
"@tiptap/extension-table": 3.22.5
|
||||||
"@tiptap/extension-table-cell": 3.22.4
|
"@tiptap/extension-table-cell": 3.22.5
|
||||||
"@tiptap/extension-table-header": 3.22.4
|
"@tiptap/extension-table-header": 3.22.5
|
||||||
"@tiptap/extension-table-row": 3.22.4
|
"@tiptap/extension-table-row": 3.22.5
|
||||||
"@tiptap/extension-task-item": 3.22.4
|
"@tiptap/extension-task-item": 3.22.5
|
||||||
"@tiptap/extension-task-list": 3.22.4
|
"@tiptap/extension-task-list": 3.22.5
|
||||||
"@tiptap/extension-text-align": 3.22.4
|
"@tiptap/extension-text-align": 3.22.5
|
||||||
"@tiptap/extension-text-style": 3.22.4
|
"@tiptap/extension-text-style": 3.22.5
|
||||||
"@tiptap/extension-underline": 3.22.4
|
"@tiptap/extension-underline": 3.22.5
|
||||||
"@tiptap/react": ^3.22.4
|
"@tiptap/react": ^3.22.5
|
||||||
"@tiptap/starter-kit": ^3.22.4
|
"@tiptap/starter-kit": ^3.22.5
|
||||||
"@trpc/client": ^11.16.0
|
"@trpc/client": ^11.17.0
|
||||||
"@trpc/next": ^11.16.0
|
"@trpc/next": ^11.17.0
|
||||||
"@trpc/react-query": ^11.16.0
|
"@trpc/react-query": ^11.17.0
|
||||||
"@trpc/server": ^11.16.0
|
"@trpc/server": ^11.17.0
|
||||||
"@trpc/tanstack-react-query": ^11.16.0
|
"@trpc/tanstack-react-query": ^11.17.0
|
||||||
"@turbo/gen": ^2.9.6
|
"@turbo/gen": ^2.9.6
|
||||||
"@types/adm-zip": 0.5.8
|
"@types/adm-zip": 0.5.8
|
||||||
"@types/bcrypt": 6.0.0
|
"@types/bcrypt": 6.0.0
|
||||||
@@ -86,7 +82,6 @@ catalog:
|
|||||||
"@types/css-modules": ^1.0.5
|
"@types/css-modules": ^1.0.5
|
||||||
"@types/dockerode": ^4.0.1
|
"@types/dockerode": ^4.0.1
|
||||||
"@types/node": ^24.12.2
|
"@types/node": ^24.12.2
|
||||||
"@types/node-cron": ^3.0.11
|
|
||||||
"@types/node-unifi": ^2.5.1
|
"@types/node-unifi": ^2.5.1
|
||||||
"@types/pg": ^8.20.0
|
"@types/pg": ^8.20.0
|
||||||
"@types/prismjs": ^1.26.6
|
"@types/prismjs": ^1.26.6
|
||||||
@@ -98,60 +93,60 @@ catalog:
|
|||||||
"@types/xml2js": ^0.4.14
|
"@types/xml2js": ^0.4.14
|
||||||
"@umami/node": ^0.4.0
|
"@umami/node": ^0.4.0
|
||||||
"@vitejs/plugin-react": ^5.2.0
|
"@vitejs/plugin-react": ^5.2.0
|
||||||
"@vitest/coverage-v8": ^4.1.4
|
"@vitest/coverage-v8": ^4.1.5
|
||||||
"@vitest/ui": ^4.1.4
|
"@vitest/ui": ^4.1.5
|
||||||
"@xterm/addon-canvas": ^0.7.0
|
"@xterm/addon-canvas": ^0.7.0
|
||||||
"@xterm/addon-fit": 0.11.0
|
"@xterm/addon-fit": 0.11.0
|
||||||
"@xterm/xterm": ^6.0.0
|
"@xterm/xterm": ^6.0.0
|
||||||
adm-zip: 0.5.17
|
adm-zip: 0.5.17
|
||||||
babel-plugin-react-compiler: ^1.0.0
|
babel-plugin-react-compiler: ^1.0.0
|
||||||
bcrypt: ^6.0.0
|
bcrypt: ^6.0.0
|
||||||
better-sqlite3: ^12.8.0
|
better-sqlite3: ^12.9.0
|
||||||
chroma-js: ^3.2.0
|
chroma-js: ^3.2.0
|
||||||
clsx: ^2.1.1
|
clsx: ^2.1.1
|
||||||
concurrently: ^9.2.1
|
concurrently: ^9.2.1
|
||||||
conventional-changelog-conventionalcommits: ^9.3.1
|
conventional-changelog-conventionalcommits: ^9.3.1
|
||||||
cookie: 1.1.1
|
cookie: 1.1.1
|
||||||
cookies: ^0.9.1
|
cookies: ^0.9.1
|
||||||
|
croner: 10.0.1
|
||||||
cross-env: ^10.1.0
|
cross-env: ^10.1.0
|
||||||
crypto-js: ^4.2.0
|
crypto-js: ^4.2.0
|
||||||
dayjs: ^1.11.20
|
dayjs: ^1.11.20
|
||||||
deepmerge: 4.3.1
|
deepmerge: 4.3.1
|
||||||
dns-caching: ^0.2.9
|
dns-caching: ^0.2.9
|
||||||
dockerode: ^4.0.10
|
dockerode: ^5.0.0
|
||||||
dotenv: ^17.4.2
|
dotenv: ^17.4.2
|
||||||
dotenv-cli: ^11.0.0
|
dotenv-cli: ^11.0.0
|
||||||
drizzle-kit: ^0.31.10
|
drizzle-kit: ^0.31.10
|
||||||
drizzle-orm: ^0.45.2
|
drizzle-orm: ^0.45.2
|
||||||
drizzle-zod: ^0.8.3
|
drizzle-zod: ^0.8.3
|
||||||
esbuild: ^0.28.0
|
esbuild: ^0.28.0
|
||||||
eslint: ^9.39.4
|
eslint: ^10.2.1
|
||||||
eslint-config-prettier: ^10.1.8
|
eslint-config-prettier: ^10.1.8
|
||||||
eslint-config-turbo: ^2.9.6
|
eslint-config-turbo: ^2.9.6
|
||||||
eslint-plugin-import: ^2.32.0
|
eslint-plugin-import: ^2.32.0
|
||||||
eslint-plugin-jsx-a11y: ^6.10.2
|
eslint-plugin-jsx-a11y: ^6.10.2
|
||||||
eslint-plugin-react: ^7.37.5
|
eslint-plugin-react: ^7.37.5
|
||||||
eslint-plugin-react-hooks: ^6.1.1
|
eslint-plugin-react-hooks: ^6.1.1
|
||||||
fast-xml-parser: ^5.7.1
|
fast-xml-parser: ^5.7.2
|
||||||
fastify: ^5.8.4
|
fastify: ^5.8.5
|
||||||
flag-icons: ^7.5.0
|
flag-icons: ^7.5.0
|
||||||
glob: ^13.0.6
|
glob: ^13.0.6
|
||||||
ical.js: ^2.2.1
|
ical.js: ^2.2.1
|
||||||
ioredis: 5.10.1
|
ioredis: 5.10.1
|
||||||
isomorphic-dompurify: ^3.9.0
|
isomorphic-dompurify: ^3.11.0
|
||||||
jotai: ^2.19.1
|
jotai: ^2.19.1
|
||||||
jsdom: ^29.0.2
|
jsdom: ^29.1.0
|
||||||
json5: ^2.2.3
|
json5: ^2.2.3
|
||||||
ldapts: 8.1.7
|
ldapts: 8.1.7
|
||||||
lodash.clonedeep: ^4.5.0
|
lodash.clonedeep: ^4.5.0
|
||||||
mantine-form-zod-resolver: ^1.3.0
|
mantine-form-zod-resolver: ^1.3.0
|
||||||
mantine-react-table: 2.0.0-beta.9
|
mantine-react-table: 2.0.0-beta.9
|
||||||
maria2: ^0.4.1
|
maria2: ^0.4.1
|
||||||
mysql2: 3.22.1
|
mysql2: 3.22.3
|
||||||
next: 16.2.4
|
next: 16.2.4
|
||||||
next-auth: 5.0.0-beta.31
|
next-auth: 5.0.0-beta.31
|
||||||
next-intl: 4.9.1
|
next-intl: 4.11.0
|
||||||
node-cron: ^4.2.1
|
|
||||||
node-loader: ^2.1.0
|
node-loader: ^2.1.0
|
||||||
octokit: ^5.0.5
|
octokit: ^5.0.5
|
||||||
pg: ^8.20.0
|
pg: ^8.20.0
|
||||||
@@ -172,11 +167,11 @@ catalog:
|
|||||||
semver-parser: ^4.1.8
|
semver-parser: ^4.1.8
|
||||||
superjson: 2.2.6
|
superjson: 2.2.6
|
||||||
svgson: ^5.3.1
|
svgson: ^5.3.1
|
||||||
swagger-ui-react: ^5.32.4
|
swagger-ui-react: ^5.32.5
|
||||||
testcontainers: ^11.14.0
|
testcontainers: ^11.14.0
|
||||||
timezones-ical-library: ^2.1.3
|
timezones-ical-library: ^2.1.3
|
||||||
trpc-to-openapi: ^3.2.0
|
trpc-to-openapi: ^3.2.0
|
||||||
tsdav: ^2.1.8
|
tsdav: ^2.2.0
|
||||||
tsx: 4.20.4
|
tsx: 4.20.4
|
||||||
turbo: ^2.9.6
|
turbo: ^2.9.6
|
||||||
typescript: ^5.9.3
|
typescript: ^5.9.3
|
||||||
@@ -185,7 +180,7 @@ catalog:
|
|||||||
use-deep-compare-effect: ^1.8.1
|
use-deep-compare-effect: ^1.8.1
|
||||||
video.js: ^8.23.7
|
video.js: ^8.23.7
|
||||||
vite-tsconfig-paths: ^6.1.1
|
vite-tsconfig-paths: ^6.1.1
|
||||||
vitest: ^4.1.4
|
vitest: ^4.1.5
|
||||||
winston: 3.19.0
|
winston: 3.19.0
|
||||||
ws: ^8.20.0
|
ws: ^8.20.0
|
||||||
xml2js: ^0.6.2
|
xml2js: ^0.6.2
|
||||||
@@ -193,3 +188,8 @@ catalog:
|
|||||||
zod: ^4.3.6
|
zod: ^4.3.6
|
||||||
zod-form-data: ^3.0.1
|
zod-form-data: ^3.0.1
|
||||||
zod-validation-error: ^5.0.0
|
zod-validation-error: ^5.0.0
|
||||||
|
catalogMode: strict
|
||||||
|
minimumReleaseAge: 4320
|
||||||
|
minimumReleaseAgeExclude:
|
||||||
|
- next
|
||||||
|
- "@next/*"
|
||||||
@@ -1,14 +1,12 @@
|
|||||||
import fs from "fs/promises";
|
import fs from "fs/promises";
|
||||||
|
|
||||||
const sources = {
|
const sources = {
|
||||||
crowdin: [
|
crowdin: [{ projectId: 534422 }, { projectId: 742587 }],
|
||||||
{ projectId: 534422 },
|
|
||||||
{ projectId: 742587 },
|
|
||||||
],
|
|
||||||
github: [
|
github: [
|
||||||
{ slug: "ajnart", repository: "homarr" },
|
{ slug: "ajnart", repository: "homarr" },
|
||||||
{ slug: "homarr-labs", repository: "homarr" },
|
{ slug: "homarr-labs", repository: "homarr" },
|
||||||
],
|
],
|
||||||
|
opencollective: [{ slug: "homarr" }],
|
||||||
};
|
};
|
||||||
|
|
||||||
const env = {
|
const env = {
|
||||||
@@ -47,11 +45,55 @@ const fetchCrowdinMembers = async (projectId) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const response = await fetch(url, options);
|
const response = await fetch(url, options);
|
||||||
const data = await response.json();
|
const result = await response.json();
|
||||||
|
|
||||||
return data.data.flatMap((data) => data.data).map(contributor => ({
|
return result.data
|
||||||
username: contributor.username,
|
.flatMap(({ data }) => data)
|
||||||
avatarUrl: contributor.avatarUrl,
|
.map((contributor) => ({
|
||||||
|
username: contributor.username,
|
||||||
|
avatarUrl: contributor.avatarUrl,
|
||||||
|
}));
|
||||||
|
};
|
||||||
|
|
||||||
|
const fetchOpenCollectiveContributors = async (slug) => {
|
||||||
|
const query = `
|
||||||
|
query($slug: String!) {
|
||||||
|
account(slug: $slug) {
|
||||||
|
... on Organization {
|
||||||
|
members(role: [BACKER]) {
|
||||||
|
nodes {
|
||||||
|
role
|
||||||
|
account {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
slug
|
||||||
|
imageUrl
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const response = await fetch("https://api.opencollective.com/graphql/v2", {
|
||||||
|
method: "POST",
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
body: JSON.stringify({
|
||||||
|
query,
|
||||||
|
variables: { slug },
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
||||||
|
const result = await response.json();
|
||||||
|
const members = result.data?.account?.members?.nodes || [];
|
||||||
|
return members.map((member) => ({
|
||||||
|
id: member.account.id,
|
||||||
|
name: member.account.name,
|
||||||
|
slug: member.account.slug,
|
||||||
|
imageUrl: member.account.imageUrl,
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -61,6 +103,7 @@ const distinctBy = (callback) => (value, index, self) => {
|
|||||||
|
|
||||||
const githubContributors = [];
|
const githubContributors = [];
|
||||||
const crowdinContributors = [];
|
const crowdinContributors = [];
|
||||||
|
const opencollectiveContributors = [];
|
||||||
|
|
||||||
for (const { repository, slug } of sources.github) {
|
for (const { repository, slug } of sources.github) {
|
||||||
githubContributors.push(...(await fetchGithubContributors(slug, repository)));
|
githubContributors.push(...(await fetchGithubContributors(slug, repository)));
|
||||||
@@ -77,3 +120,14 @@ for (const { projectId } of sources.crowdin) {
|
|||||||
}
|
}
|
||||||
const distinctCrowdinContributors = crowdinContributors.filter(distinctBy((contributor) => contributor.username));
|
const distinctCrowdinContributors = crowdinContributors.filter(distinctBy((contributor) => contributor.username));
|
||||||
await fs.writeFile("./static-data/translators.json", JSON.stringify(distinctCrowdinContributors));
|
await fs.writeFile("./static-data/translators.json", JSON.stringify(distinctCrowdinContributors));
|
||||||
|
|
||||||
|
for (const { slug } of sources.opencollective) {
|
||||||
|
opencollectiveContributors.push(...(await fetchOpenCollectiveContributors(slug)));
|
||||||
|
}
|
||||||
|
const distinctOpenCollectiveContributors = opencollectiveContributors.filter(
|
||||||
|
distinctBy((contributor) => contributor.slug),
|
||||||
|
);
|
||||||
|
await fs.writeFile(
|
||||||
|
"./static-data/opencollective-contributors.json",
|
||||||
|
JSON.stringify(distinctOpenCollectiveContributors),
|
||||||
|
);
|
||||||
@@ -1 +1 @@
|
|||||||
[{"login":"ajnart","avatar_url":"https://avatars.githubusercontent.com/u/49837342?v=4"},{"login":"manuel-rw","avatar_url":"https://avatars.githubusercontent.com/u/30572287?v=4"},{"login":"Meierschlumpf","avatar_url":"https://avatars.githubusercontent.com/u/63781622?v=4"},{"login":"SeDemal","avatar_url":"https://avatars.githubusercontent.com/u/26098587?v=4"},{"login":"lammersbjorn","avatar_url":"https://avatars.githubusercontent.com/u/71191962?v=4"},{"login":"LarveyOfficial","avatar_url":"https://avatars.githubusercontent.com/u/39219859?v=4"},{"login":"c00ldude1oo","avatar_url":"https://avatars.githubusercontent.com/u/15677803?v=4"},{"login":"InterN0te","avatar_url":"https://avatars.githubusercontent.com/u/10882916?v=4"},{"login":"Aimsucks","avatar_url":"https://avatars.githubusercontent.com/u/1828486?v=4"},{"login":"JannesV","avatar_url":"https://avatars.githubusercontent.com/u/5984244?v=4"},{"login":"MauriceNino","avatar_url":"https://avatars.githubusercontent.com/u/18658092?v=4"},{"login":"hillaliy","avatar_url":"https://avatars.githubusercontent.com/u/950010?v=4"},{"login":"Skeeww","avatar_url":"https://avatars.githubusercontent.com/u/9639992?v=4"},{"login":"RichyHBM","avatar_url":"https://avatars.githubusercontent.com/u/5472275?v=4"},{"login":"Bonfire","avatar_url":"https://avatars.githubusercontent.com/u/5704760?v=4"},{"login":"wieli99","avatar_url":"https://avatars.githubusercontent.com/u/46794825?v=4"},{"login":"ishaanparlikar","avatar_url":"https://avatars.githubusercontent.com/u/43013132?v=4"},{"login":"Zareix","avatar_url":"https://avatars.githubusercontent.com/u/29818713?v=4"},{"login":"tuggan","avatar_url":"https://avatars.githubusercontent.com/u/4325608?v=4"},{"login":"Spillebulle","avatar_url":"https://avatars.githubusercontent.com/u/46653946?v=4"},{"login":"tancak","avatar_url":"https://avatars.githubusercontent.com/u/11760749?v=4"},{"login":"spkesDE","avatar_url":"https://avatars.githubusercontent.com/u/1682314?v=4"},{"login":"j3lte","avatar_url":"https://avatars.githubusercontent.com/u/2557568?v=4"},{"login":"dslatt","avatar_url":"https://avatars.githubusercontent.com/u/5211001?v=4"},{"login":"Malong11-007","avatar_url":"https://avatars.githubusercontent.com/u/40298510?v=4"},{"login":"StefanB7","avatar_url":"https://avatars.githubusercontent.com/u/22056509?v=4"},{"login":"souravghosh01","avatar_url":"https://avatars.githubusercontent.com/u/37548139?v=4"},{"login":"SR3u","avatar_url":"https://avatars.githubusercontent.com/u/2380522?v=4"},{"login":"Rikpat","avatar_url":"https://avatars.githubusercontent.com/u/33869814?v=4"},{"login":"NormanJS","avatar_url":"https://avatars.githubusercontent.com/u/83409549?v=4"},{"login":"No-Maines-Land","avatar_url":"https://avatars.githubusercontent.com/u/20687725?v=4"},{"login":"stark1tty","avatar_url":"https://avatars.githubusercontent.com/u/69326376?v=4"},{"login":"Momcilo42","avatar_url":"https://avatars.githubusercontent.com/u/10118137?v=4"},{"login":"marius-arch","avatar_url":"https://avatars.githubusercontent.com/u/72494359?v=4"},{"login":"Lumilias","avatar_url":"https://avatars.githubusercontent.com/u/10852161?v=4"},{"login":"Havock94","avatar_url":"https://avatars.githubusercontent.com/u/7635248?v=4"},{"login":"Lollyde","avatar_url":"https://avatars.githubusercontent.com/u/11347524?v=4"},{"login":"krishnamuppaneni","avatar_url":"https://avatars.githubusercontent.com/u/4703366?v=4"},{"login":"devtobi","avatar_url":"https://avatars.githubusercontent.com/u/28538704?v=4"},{"login":"TyxTang","avatar_url":"https://avatars.githubusercontent.com/u/90897955?v=4"},{"login":"alotlikebeans","avatar_url":"https://avatars.githubusercontent.com/u/19630511?v=4"},{"login":"WillyJL","avatar_url":"https://avatars.githubusercontent.com/u/49810075?v=4"},{"login":"anonysoul","avatar_url":"https://avatars.githubusercontent.com/u/105715150?v=4"},{"login":"cospeedster","avatar_url":"https://avatars.githubusercontent.com/u/52749645?v=4"},{"login":"diederbert","avatar_url":"https://avatars.githubusercontent.com/u/162878798?v=4"},{"login":"digdilem","avatar_url":"https://avatars.githubusercontent.com/u/4052275?v=4"},{"login":"dinghino","avatar_url":"https://avatars.githubusercontent.com/u/14729459?v=4"},{"login":"gfomichev","avatar_url":"https://avatars.githubusercontent.com/u/1596146?v=4"},{"login":"gnattu","avatar_url":"https://avatars.githubusercontent.com/u/12995396?v=4"},{"login":"tuxpizza","avatar_url":"https://avatars.githubusercontent.com/u/84710786?v=4"},{"login":"xmarkurion","avatar_url":"https://avatars.githubusercontent.com/u/46654687?v=4"},{"login":"huanga","avatar_url":"https://avatars.githubusercontent.com/u/732970?v=4"},{"login":"taos15","avatar_url":"https://avatars.githubusercontent.com/u/122130728?v=4"},{"login":"arghyadipchak","avatar_url":"https://avatars.githubusercontent.com/u/32430374?v=4"},{"login":"AuthorShin","avatar_url":"https://avatars.githubusercontent.com/u/4959043?v=4"},{"login":"benniblot","avatar_url":"https://avatars.githubusercontent.com/uLine truncated
|
[{"login":"ajnart","avatar_url":"https://avatars.githubusercontent.com/u/49837342?v=4"},{"login":"manuel-rw","avatar_url":"https://avatars.githubusercontent.com/u/30572287?v=4"},{"login":"Meierschlumpf","avatar_url":"https://avatars.githubusercontent.com/u/63781622?v=4"},{"login":"SeDemal","avatar_url":"https://avatars.githubusercontent.com/u/26098587?v=4"},{"login":"lammersbjorn","avatar_url":"https://avatars.githubusercontent.com/u/71191962?v=4"},{"login":"LarveyOfficial","avatar_url":"https://avatars.githubusercontent.com/u/39219859?v=4"},{"login":"c00ldude1oo","avatar_url":"https://avatars.githubusercontent.com/u/15677803?v=4"},{"login":"InterN0te","avatar_url":"https://avatars.githubusercontent.com/u/10882916?v=4"},{"login":"Aimsucks","avatar_url":"https://avatars.githubusercontent.com/u/1828486?v=4"},{"login":"JannesV","avatar_url":"https://avatars.githubusercontent.com/u/5984244?v=4"},{"login":"MauriceNino","avatar_url":"https://avatars.githubusercontent.com/u/18658092?v=4"},{"login":"hillaliy","avatar_url":"https://avatars.githubusercontent.com/u/950010?v=4"},{"login":"Skeeww","avatar_url":"https://avatars.githubusercontent.com/u/9639992?v=4"},{"login":"RichyHBM","avatar_url":"https://avatars.githubusercontent.com/u/5472275?v=4"},{"login":"Bonfire","avatar_url":"https://avatars.githubusercontent.com/u/5704760?v=4"},{"login":"wieli99","avatar_url":"https://avatars.githubusercontent.com/u/46794825?v=4"},{"login":"ishaanparlikar","avatar_url":"https://avatars.githubusercontent.com/u/43013132?v=4"},{"login":"Zareix","avatar_url":"https://avatars.githubusercontent.com/u/29818713?v=4"},{"login":"tuggan","avatar_url":"https://avatars.githubusercontent.com/u/4325608?v=4"},{"login":"Spillebulle","avatar_url":"https://avatars.githubusercontent.com/u/46653946?v=4"},{"login":"spkesDE","avatar_url":"https://avatars.githubusercontent.com/u/1682314?v=4"},{"login":"j3lte","avatar_url":"https://avatars.githubusercontent.com/u/2557568?v=4"},{"login":"dslatt","avatar_url":"https://avatars.githubusercontent.com/u/5211001?v=4"},{"login":"Malong11-007","avatar_url":"https://avatars.githubusercontent.com/u/40298510?v=4"},{"login":"StefanB7","avatar_url":"https://avatars.githubusercontent.com/u/22056509?v=4"},{"login":"souravghosh01","avatar_url":"https://avatars.githubusercontent.com/u/37548139?v=4"},{"login":"SR3u","avatar_url":"https://avatars.githubusercontent.com/u/2380522?v=4"},{"login":"Rikpat","avatar_url":"https://avatars.githubusercontent.com/u/33869814?v=4"},{"login":"NormanJS","avatar_url":"https://avatars.githubusercontent.com/u/83409549?v=4"},{"login":"No-Maines-Land","avatar_url":"https://avatars.githubusercontent.com/u/20687725?v=4"},{"login":"stark1tty","avatar_url":"https://avatars.githubusercontent.com/u/69326376?v=4"},{"login":"Momcilo42","avatar_url":"https://avatars.githubusercontent.com/u/10118137?v=4"},{"login":"marius-arch","avatar_url":"https://avatars.githubusercontent.com/u/72494359?v=4"},{"login":"Lumilias","avatar_url":"https://avatars.githubusercontent.com/u/10852161?v=4"},{"login":"Havock94","avatar_url":"https://avatars.githubusercontent.com/u/7635248?v=4"},{"login":"Lollyde","avatar_url":"https://avatars.githubusercontent.com/u/11347524?v=4"},{"login":"krishnamuppaneni","avatar_url":"https://avatars.githubusercontent.com/u/4703366?v=4"},{"login":"devtobi","avatar_url":"https://avatars.githubusercontent.com/u/28538704?v=4"},{"login":"TyxTang","avatar_url":"https://avatars.githubusercontent.com/u/90897955?v=4"},{"login":"alotlikebeans","avatar_url":"https://avatars.githubusercontent.com/u/19630511?v=4"},{"login":"WillyJL","avatar_url":"https://avatars.githubusercontent.com/u/49810075?v=4"},{"login":"anonysoul","avatar_url":"https://avatars.githubusercontent.com/u/105715150?v=4"},{"login":"cospeedster","avatar_url":"https://avatars.githubusercontent.com/u/52749645?v=4"},{"login":"diederbert","avatar_url":"https://avatars.githubusercontent.com/u/162878798?v=4"},{"login":"digdilem","avatar_url":"https://avatars.githubusercontent.com/u/4052275?v=4"},{"login":"dinghino","avatar_url":"https://avatars.githubusercontent.com/u/14729459?v=4"},{"login":"gfomichev","avatar_url":"https://avatars.githubusercontent.com/u/1596146?v=4"},{"login":"gnattu","avatar_url":"https://avatars.githubusercontent.com/u/12995396?v=4"},{"login":"tuxpizza","avatar_url":"https://avatars.githubusercontent.com/u/84710786?v=4"},{"login":"xmarkurion","avatar_url":"https://avatars.githubusercontent.com/u/46654687?v=4"},{"login":"huanga","avatar_url":"https://avatars.githubusercontent.com/u/732970?v=4"},{"login":"taos15","avatar_url":"https://avatars.githubusercontent.com/u/122130728?v=4"},{"login":"arghyadipchak","avatar_url":"https://avatars.githubusercontent.com/u/32430374?v=4"},{"login":"AuthorShin","avatar_url":"https://avatars.githubusercontent.com/u/4959043?v=4"},{"login":"benniblot","avatar_url":"https://avatars.githubusercontent.com/u/47495914?v=4"},{"login":"bebsworthy","avatar_url":"https://avatars.githubusercontent.cLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
[{"id":"zaxon793-jy8gpl0v-d89pbrkd-emwl5v04","name":"Mike","slug":"guest-5da646e8","imageUrl":"https://images.opencollective.com/guest-5da646e8/avatar.png"},{"id":"ywz9j4av-god8pgwg-db36mr35-nxklb0e7","name":"Guest","slug":"guest-554ec68f","imageUrl":"https://images.opencollective.com/guest-554ec68f/avatar.png"},{"id":"mlo94zn7-x08dpo09-xlxpewga-3vjbrky5","name":"Robert Hermann","slug":"robert-hermann","imageUrl":"https://images.opencollective.com/robert-hermann/avatar.png"},{"id":"zaxon793-jy8gpl0n-8r3pbrkd-emwl5v04","name":"Sebastian Raubuch","slug":"sebastian-raubuch","imageUrl":"https://images.opencollective.com/sebastian-raubuch/avatar.png"},{"id":"nmlo94zn-7x08dpod-ykm6ewga-3vjbrky5","name":"Didier LUTHI","slug":"didier-luthi","imageUrl":"https://images.opencollective.com/didier-luthi/avatar.png"},{"id":"vedj9wro-z3a56dgk-z3z67blg-8x4m0ykn","name":"Guest","slug":"guest-b1459a68","imageUrl":"https://images.opencollective.com/guest-b1459a68/avatar.png"},{"id":"gm9bnk80-437xqry4-8vepvzeo-ljdayw5r","name":"Mohister","slug":"mohister","imageUrl":"https://images.opencollective.com/mohister/1d8a592/avatar.png"},{"id":"vrgbk357-l4x96e70-m0apomew-a0jdyzn8","name":"sidens","slug":"sidens","imageUrl":"https://images.opencollective.com/sidens/avatar.png"},{"id":"mlo94zn7-x08dpo0d-l7epewga-3vjbrky5","name":"Chris","slug":"guest-937065bb","imageUrl":"https://images.opencollective.com/guest-937065bb/avatar.png"},{"id":"k9mbw7y4-8r3zq3ol-7zlq0ej5-lavnodgx","name":"Nick W","slug":"guest-7501840a","imageUrl":"https://images.opencollective.com/guest-7501840a/avatar.png"},{"id":"e0adkjrv-8xwm69o8-5al67z5n-4l93bgoy","name":"Jeppedy","slug":"guest-ab78e46a","imageUrl":"https://images.opencollective.com/guest-ab78e46a/avatar.png"},{"id":"a47byg9n-xozdp8xo-jgm6mjlv-03rek5w8","name":"naru","slug":"guest-02fd264a","imageUrl":"https://images.opencollective.com/guest-02fd264a/avatar.png"},{"id":"3k0exgzn-m8yj64g3-ll865wao-9r7b4dlv","name":"Jared Hocutt","slug":"jared-hocutt","imageUrl":"https://images.opencollective.com/jared-hocutt/avatar.png"},{"id":"eng0kzdy-vor4pz8l-exopbma8-37xlw95j","name":"Incognito","slug":"user-e63f4a5b","imageUrl":"https://images.opencollective.com/user-e63f4a5b/avatar.png"},{"id":"8k03reyd-5agmq50v-8vyplbwo-z7j4nxv9","name":"dazi","slug":"guest-11663a46","imageUrl":"https://images.opencollective.com/guest-11663a46/avatar.png"},{"id":"vedj9wro-z3a56dgd-zwl67blg-8x4m0ykn","name":"ZoopaMario","slug":"zoopamario","imageUrl":"https://images.opencollective.com/zoopamario/bea900d/avatar.png"},{"id":"a47byg9n-xozdp8xe-xmb6mjlv-03rek5w8","name":"FlamebergUA","slug":"guest-a59fd500","imageUrl":"https://images.opencollective.com/guest-a59fd500/avatar.png"},{"id":"8k03reyd-5agmq50y-kzoplbwo-z7j4nxv9","name":"StLCards","slug":"guest-e1de33dc","imageUrl":"https://images.opencollective.com/guest-e1de33dc/avatar.png"},{"id":"ejoxl3az-45w9pa54-dk46y870-mgkbrvdn","name":"Varadha","slug":"guest-6f68eed9","imageUrl":"https://images.opencollective.com/guest-6f68eed9/avatar.png"},{"id":"jrkx5lmn-v904qjl0-3oz68bwa-7zdygoe3","name":"Guest","slug":"guest-6da419b5","imageUrl":"https://images.opencollective.com/guest-6da419b5/avatar.png"},{"id":"mywxoz34-09rl6k3z-lmlqvenb-dj7gk85a","name":"Guest","slug":"guest-122d7e0a","imageUrl":"https://images.opencollective.com/guest-122d7e0a/avatar.png"},{"id":"3z8arxve-ymko60vm-3eaqgl5n-bj9w704d","name":"Ricardo","slug":"ricardo34","imageUrl":"https://images.opencollective.com/ricardo34/avatar.png"},{"id":"e0adkjrv-8xwm69or-reo67z5n-4l93bgoy","name":"GoM","slug":"guest-3944feab","imageUrl":"https://images.opencollective.com/guest-3944feab/avatar.png"},{"id":"gm9bnk80-437xqrnr-r5o6vzeo-ljdayw5r","name":"Brent Maxwell","slug":"brentmaxwell","imageUrl":"https://images.opencollective.com/brentmaxwell/avatar.png"},{"id":"gnxdwzj3-le5mpwzd-ll0py8rv-bko04a97","name":"Eric G","slug":"guest-478270f1","imageUrl":"https://images.opencollective.com/guest-478270f1/avatar.png"},{"id":"v349mrwg-z75lpyjo-ez8pa08d-jeybknox","name":"ninja","slug":"guest-0bb6ba36","imageUrl":"https://images.opencollective.com/guest-0bb6ba36/avatar.png"},{"id":"ywz9j4av-god8pgw0-53y6mr35-nxklb0e7","name":"s11","slug":"guest-6e9a2588","imageUrl":"https://images.opencollective.com/guest-6e9a2588/avatar.png"},{"id":"mlo94zn7-x08dpo30-v73pewga-3vjbrky5","name":"Incognito","slug":"user-cbad11af","imageUrl":"https://images.opencollective.com/user-cbad11af/avatar.png"},{"id":"v349mrwg-z75lpy7l-yzgpa08d-jeybknox","name":"Ronald Simmons","slug":"ronald-simmons","imageUrl":"https://images.opencollective.com/ronald-simmons/avatar.png"},{"id":"7ywz9j4a-vgod8pgl-me9qmr35-nxklb0e7","name":"Joel","slug":"guest-3376ab02","imageUrl":"https://images.opencollective.com/guest-3376ab02/avatar.png"},{"id":"v349mrwg-z75lpyjw-kxzpa08d-jeybknox","name":"Gokay Yamankurt","slug":"gokay-yamankurt","imageUrl":"https://images.opencollective.com/gokay-yamankurt/avatar.png"},{"id":"v349mrwg-z75lpyjv-59rpa08d-jeybknox","name":"Rhiz3K","slug":"rhiz3k","imagLine truncated
|
||||||
@@ -1 +1 @@
|
|||||||
[{"username":"carlchina","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/6697/medium/d22bbe7797bbeb30dbdc73a5648d329a_default.png"},{"username":"zielmann","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/7795/medium/ad22b8b8d5eb33e4154d53a454c862fd_default.png"},{"username":"Thalyn","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12494028/medium/5faf5acc945a874ed116c4567edaa09f_default.png"},{"username":"magnushj","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12503488/medium/68f32e33ea7b891960055c9f831f7344_default.png"},{"username":"almontegil","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12580457/medium/f4136cacbdfdb4c28ae7f85dc5f840db_default.png"},{"username":"andibing","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12664938/medium/b8be63e4dcb2e791ced1ffc9e3a049a5.jpg"},{"username":"gronare","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12680911/medium/c6eb14d1504156f34a158e507f73aa3d_default.png"},{"username":"SmartPhoneLover","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12701640/medium/ec95486662ec875cda080e778c3ff702.jpg"},{"username":"marcelotk_15","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12773227/medium/ecf6bea16ab0c873c131df2154ee9718_default.png"},{"username":"S3OD177","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13051544/medium/11dd990837f61f7e8f7d36b041a7fddb_default.png"},{"username":"marcg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13153301/medium/ebcf60fbf27deb148ec40a659566c6ff_default.png"},{"username":"BeersTeddy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13185230/medium/2f1f4e1effe74a23422b195cbefb2a95_default.png"},{"username":"jamesmcmahon0","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13245578/medium/586aa873b4abddbd9abc6f3de99ab70e.jpeg"},{"username":"b1nar10","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13286752/medium/249b02e3368752cb175446082015737c_default.png"},{"username":"vannCN","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13330448/medium/9b8a9ee3611e51e951e22d5fd4eb7d8d.jpg"},{"username":"binswm","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13343482/medium/45dde0e6097b9b72705d2eba9dbbc276_default.png"},{"username":"SkewRam","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13496556/medium/188f5c2deb7938eda51eb786cc4539ca.jpeg"},{"username":"raphcatarino","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13547726/medium/b003511e67df13a4b4b5689488fa8099.jpg"},{"username":"shillos5","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13600557/medium/b17650b2b84f829d54fa548c44c1ab27.jpeg"},{"username":"wolong98","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13641407/medium/f4634edc58c7857a357e5293543c15cf.jpg"},{"username":"spair0039","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14012333/medium/72430e96027c09c19141cac38eae4617.png"},{"username":"MajorMarcin","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14072183/medium/0a197e64bb92b6ea94cecbb607512c45.jpg"},{"username":"KosmoMoustache","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14103535/medium/51c438cdd9f86e8811c75f4869de479c.png"},{"username":"Soochaehwa","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14118689/medium/496a1ce63111547bf455a1e0a7ac75f1_default.png"},{"username":"garryfield","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14187035/medium/520c964706676045f6eeec1b08edc880.jpg"},{"username":"droidenko","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14444264/medium/4aa3a8e824f72bc9e5ec0d8de307095e.jpeg"},{"username":"maathis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14489950/medium/6eeddf13a757ee35f78f1763f94d95e1.jpeg"},{"username":"bukvam","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14546502/medium/a819dc40a13c57395a17dc46e847d3ce.jpg"},{"username":"gm.cinalli","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14670666/medium/2d466a0fdbda40764526be86c97c0ab4.jpeg"},{"username":"antoine2tt","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14722148/medium/f88d926900862dd59007ea4b3419cb9d.png"},{"username":"cretzen","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14799754/medium/3ba5c1805ec20c000d5810c07985afe9.jpg"},{"username":"ktKongTong","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14817246/medium/97cfc3c028dbdaf85ebd1102da71e58c.jpeg"},{"username":"marinkaberg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14861042/medium/2d5c4e62613f03082f3e645fa92efd59.jpeg"},{"username":"djismgaming","avatarUrl":"httpsLine truncated
|
[{"username":"carlchina","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/6697/medium/d22bbe7797bbeb30dbdc73a5648d329a_default.png"},{"username":"zielmann","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/7795/medium/ad22b8b8d5eb33e4154d53a454c862fd_default.png"},{"username":"Thalyn","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12494028/medium/5faf5acc945a874ed116c4567edaa09f_default.png"},{"username":"magnushj","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12503488/medium/68f32e33ea7b891960055c9f831f7344_default.png"},{"username":"almontegil","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12580457/medium/f4136cacbdfdb4c28ae7f85dc5f840db_default.png"},{"username":"andibing","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12664938/medium/b8be63e4dcb2e791ced1ffc9e3a049a5.jpg"},{"username":"gronare","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12680911/medium/c6eb14d1504156f34a158e507f73aa3d_default.png"},{"username":"SmartPhoneLover","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12701640/medium/ec95486662ec875cda080e778c3ff702.jpg"},{"username":"marcelotk_15","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12773227/medium/ecf6bea16ab0c873c131df2154ee9718_default.png"},{"username":"S3OD177","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13051544/medium/11dd990837f61f7e8f7d36b041a7fddb_default.png"},{"username":"marcg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13153301/medium/ebcf60fbf27deb148ec40a659566c6ff_default.png"},{"username":"BeersTeddy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13185230/medium/2f1f4e1effe74a23422b195cbefb2a95_default.png"},{"username":"jamesmcmahon0","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13245578/medium/586aa873b4abddbd9abc6f3de99ab70e.jpeg"},{"username":"b1nar10","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13286752/medium/249b02e3368752cb175446082015737c_default.png"},{"username":"vannCN","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13330448/medium/9b8a9ee3611e51e951e22d5fd4eb7d8d.jpg"},{"username":"binswm","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13343482/medium/45dde0e6097b9b72705d2eba9dbbc276_default.png"},{"username":"SkewRam","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13496556/medium/188f5c2deb7938eda51eb786cc4539ca.jpeg"},{"username":"raphcatarino","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13547726/medium/b003511e67df13a4b4b5689488fa8099.jpg"},{"username":"shillos5","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13600557/medium/b17650b2b84f829d54fa548c44c1ab27.jpeg"},{"username":"wolong98","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13641407/medium/f4634edc58c7857a357e5293543c15cf.jpg"},{"username":"spair0039","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14012333/medium/72430e96027c09c19141cac38eae4617.png"},{"username":"MajorMarcin","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14072183/medium/0a197e64bb92b6ea94cecbb607512c45.jpg"},{"username":"KosmoMoustache","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14103535/medium/51c438cdd9f86e8811c75f4869de479c.png"},{"username":"Soochaehwa","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14118689/medium/496a1ce63111547bf455a1e0a7ac75f1_default.png"},{"username":"garryfield","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14187035/medium/520c964706676045f6eeec1b08edc880.jpg"},{"username":"droidenko","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14444264/medium/4aa3a8e824f72bc9e5ec0d8de307095e.jpeg"},{"username":"maathis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14489950/medium/6eeddf13a757ee35f78f1763f94d95e1.jpeg"},{"username":"bukvam","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14546502/medium/a819dc40a13c57395a17dc46e847d3ce.jpg"},{"username":"gm.cinalli","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14670666/medium/2d466a0fdbda40764526be86c97c0ab4.jpeg"},{"username":"antoine2tt","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14722148/medium/f88d926900862dd59007ea4b3419cb9d.png"},{"username":"cretzen","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14799754/medium/3ba5c1805ec20c000d5810c07985afe9.jpg"},{"username":"ktKongTong","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14817246/medium/97cfc3c028dbdaf85ebd1102da71e58c.jpeg"},{"username":"marinkaberg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14861042/medium/2d5c4e62613f03082f3e645fa92efd59.jpeg"},{"username":"djismgaming","avatarUrl":"httpsLine truncated
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
/// <reference types="./types.d.ts" />
|
|
||||||
|
|
||||||
import eslint from "@eslint/js";
|
import eslint from "@eslint/js";
|
||||||
import importPlugin from "eslint-plugin-import";
|
import importPlugin from "eslint-plugin-import";
|
||||||
|
import { defineConfig } from "eslint/config";
|
||||||
import tseslint from "typescript-eslint";
|
import tseslint from "typescript-eslint";
|
||||||
|
|
||||||
export default tseslint.config(
|
export default defineConfig(
|
||||||
{
|
{
|
||||||
// Globally ignored files
|
// Globally ignored files
|
||||||
ignores: ["**/*.config.js", "**/*.cjs", "**/lang/*.d.json.ts"],
|
ignores: ["**/*.config.js", "**/*.cjs", "**/lang/*.d.json.ts"],
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
"typescript-eslint": "catalog:"
|
"typescript-eslint": "catalog:"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@eslint/js": "catalog:",
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "catalog:",
|
"eslint": "catalog:",
|
||||||
|
|||||||
Vendored
+2
@@ -1,3 +1,5 @@
|
|||||||
|
/// <reference types="./types.d.ts" />
|
||||||
|
|
||||||
import reactPlugin from "eslint-plugin-react";
|
import reactPlugin from "eslint-plugin-react";
|
||||||
import hooksPlugin from "eslint-plugin-react-hooks";
|
import hooksPlugin from "eslint-plugin-react-hooks";
|
||||||
|
|
||||||
|
|||||||
Vendored
-45
@@ -1,38 +1,3 @@
|
|||||||
/**
|
|
||||||
* Since the ecosystem hasn't fully migrated to ESLint's new FlatConfig system yet,
|
|
||||||
* we "need" to type some of the plugins manually :(
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare module "@eslint/js" {
|
|
||||||
// Why the hell doesn't eslint themselves export their types?
|
|
||||||
import type { Linter } from "eslint";
|
|
||||||
|
|
||||||
export const configs: {
|
|
||||||
readonly recommended: { readonly rules: Readonly<Linter.RulesRecord> };
|
|
||||||
readonly all: { readonly rules: Readonly<Linter.RulesRecord> };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module "eslint-plugin-import" {
|
|
||||||
import type { Linter, Rule } from "eslint";
|
|
||||||
|
|
||||||
export const configs: {
|
|
||||||
recommended: { rules: Linter.RulesRecord };
|
|
||||||
};
|
|
||||||
export const rules: Record<string, Rule.RuleModule>;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module "eslint-plugin-react" {
|
|
||||||
import type { Linter, Rule } from "eslint";
|
|
||||||
|
|
||||||
export const configs: {
|
|
||||||
recommended: { rules: Linter.RulesRecord };
|
|
||||||
all: { rules: Linter.RulesRecord };
|
|
||||||
"jsx-runtime": { rules: Linter.RulesRecord };
|
|
||||||
};
|
|
||||||
export const rules: Record<string, Rule.RuleModule>;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module "eslint-plugin-react-hooks" {
|
declare module "eslint-plugin-react-hooks" {
|
||||||
import type { Linter, Rule } from "eslint";
|
import type { Linter, Rule } from "eslint";
|
||||||
|
|
||||||
@@ -46,13 +11,3 @@ declare module "eslint-plugin-react-hooks" {
|
|||||||
};
|
};
|
||||||
export const rules: Record<string, Rule.RuleModule>;
|
export const rules: Record<string, Rule.RuleModule>;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module "@next/eslint-plugin-next" {
|
|
||||||
import type { Linter, Rule } from "eslint";
|
|
||||||
|
|
||||||
export const configs: {
|
|
||||||
recommended: { rules: Linter.RulesRecord };
|
|
||||||
"core-web-vitals": { rules: Linter.RulesRecord };
|
|
||||||
};
|
|
||||||
export const rules: Record<string, Rule.RuleModule>;
|
|
||||||
}
|
|
||||||
@@ -10,8 +10,5 @@ runs:
|
|||||||
node-version: 24.15.0
|
node-version: 24.15.0
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
|
||||||
- shell: bash
|
|
||||||
run: pnpm add -g turbo
|
|
||||||
|
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
Reference in new issue
Block a user