Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3dc382145c | ||
|
|
48ef8eb6c0 | ||
|
|
e9142c0dbc |
No files matched your search
@@ -12,6 +12,10 @@ AUTH_SECRET="supersecret"
|
|||||||
# or starting the project without any (which will show a randomly generated one).
|
# or starting the project without any (which will show a randomly generated one).
|
||||||
SECRET_ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000
|
SECRET_ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000
|
||||||
|
|
||||||
|
# Cron job API key is generated every time the container starts as it is required for communication between nextjs-api and tasks-api
|
||||||
|
# export CRON_JOB_API_KEY=$(openssl rand -base64 32)
|
||||||
|
# CRON_JOB_API_KEY="your-generated-api-key"
|
||||||
|
|
||||||
LOG_LEVEL='info'
|
LOG_LEVEL='info'
|
||||||
|
|
||||||
# This is how you can use the sqlite driver:
|
# This is how you can use the sqlite driver:
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ 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.61.0
|
|
||||||
- 1.60.1-beta.1
|
- 1.60.1-beta.1
|
||||||
- 1.60.0
|
- 1.60.0
|
||||||
- 1.59.3
|
- 1.59.3
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- beta
|
- beta
|
||||||
- next
|
|
||||||
- dev
|
- dev
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -35,7 +34,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
env:
|
env:
|
||||||
SKIP_RELEASE: ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'dev' || github.ref_name == 'next' }}
|
SKIP_RELEASE: ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'dev' }}
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.read-semver.outputs.version || steps.version-fallback.outputs.version }}
|
version: ${{ steps.read-semver.outputs.version || steps.version-fallback.outputs.version }}
|
||||||
git_ref: ${{ steps.read-git-ref.outputs.ref || github.ref }}
|
git_ref: ${{ steps.read-git-ref.outputs.ref || github.ref }}
|
||||||
@@ -55,7 +54,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
private-key: ${{ secrets.RENOVATE_MERGE_PRIVATE_KEY }}
|
||||||
client-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 / next 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
|
||||||
if: env.SKIP_RELEASE == 'false'
|
if: env.SKIP_RELEASE == 'false'
|
||||||
@@ -67,7 +66,7 @@ jobs:
|
|||||||
if: env.SKIP_RELEASE == 'false'
|
if: env.SKIP_RELEASE == 'false'
|
||||||
with:
|
with:
|
||||||
node-version: 24.15.0
|
node-version: 24.15.0
|
||||||
package-manager-cache: false
|
cache: "pnpm"
|
||||||
- run: npm i -g pnpm
|
- run: npm i -g pnpm
|
||||||
if: env.SKIP_RELEASE == 'false'
|
if: env.SKIP_RELEASE == 'false'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -96,21 +95,20 @@ jobs:
|
|||||||
id: read-git-ref
|
id: read-git-ref
|
||||||
run: |
|
run: |
|
||||||
echo "ref=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
|
echo "ref=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
|
||||||
- name: Update dev / next branch
|
- name: Update dev branch
|
||||||
if: env.SKIP_RELEASE == 'false'
|
if: env.SKIP_RELEASE == 'false'
|
||||||
continue-on-error: true # Prevent pipeline from failing when merge fails
|
continue-on-error: true # Prevent pipeline from failing when merge fails
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
||||||
UPSTREAM_BRANCH: ${{ github.ref_name == 'main' && 'dev' || 'next' }}
|
|
||||||
run: |
|
run: |
|
||||||
git config user.name "Releases Homarr"
|
git config user.name "Releases Homarr"
|
||||||
git config user.email "175486441+homarr-releases[bot]@users.noreply.github.com"
|
git config user.email "175486441+homarr-releases[bot]@users.noreply.github.com"
|
||||||
git remote set-url origin https://x-access-token:${{ steps.obtainToken.outputs.token }}@github.com/${{ github.repository }}.git
|
git remote set-url origin https://x-access-token:${{ steps.obtainToken.outputs.token }}@github.com/${{ github.repository }}.git
|
||||||
git fetch origin ${{ env.UPSTREAM_BRANCH }}
|
git fetch origin dev
|
||||||
git checkout ${{ env.UPSTREAM_BRANCH }}
|
git checkout dev
|
||||||
git pull origin ${{ env.UPSTREAM_BRANCH }}
|
git pull origin dev
|
||||||
git rebase ${{ github.ref_name }}
|
git rebase ${{ github.ref_name }}
|
||||||
git push origin ${{ env.UPSTREAM_BRANCH }}
|
git push origin dev
|
||||||
build-amd64:
|
build-amd64:
|
||||||
name: Build docker image for amd64
|
name: Build docker image for amd64
|
||||||
needs: release
|
needs: release
|
||||||
|
|||||||
+3841
-3854
File diff suppressed because it is too large.
Load diff
+3
-1
@@ -30,7 +30,7 @@ VOLUME /appdata
|
|||||||
|
|
||||||
# Enable homarr cli
|
# Enable homarr cli
|
||||||
COPY --from=builder /app/packages/cli/cli.cjs /app/apps/cli/cli.cjs
|
COPY --from=builder /app/packages/cli/cli.cjs /app/apps/cli/cli.cjs
|
||||||
RUN echo $'#!/bin/bash\ncd /app/apps/cli && node ./cli.cjs "$@"' > /usr/bin/homarr
|
RUN echo $'#!/bin/bash\nexport DISABLE_REDIS_LOGS=true\ncd /app/apps/cli && exec node ./cli.cjs "$@"' > /usr/bin/homarr
|
||||||
RUN chmod +x /usr/bin/homarr
|
RUN chmod +x /usr/bin/homarr
|
||||||
|
|
||||||
# Don't run production as root
|
# Don't run production as root
|
||||||
@@ -43,6 +43,8 @@ RUN mkdir -p /var/cache/nginx && \
|
|||||||
COPY --from=builder /app/apps/nextjs/next.config.ts .
|
COPY --from=builder /app/apps/nextjs/next.config.ts .
|
||||||
COPY --from=builder /app/apps/nextjs/package.json .
|
COPY --from=builder /app/apps/nextjs/package.json .
|
||||||
|
|
||||||
|
COPY --from=builder /app/apps/tasks/tasks.cjs ./apps/tasks/tasks.cjs
|
||||||
|
COPY --from=builder /app/apps/websocket/wssServer.cjs ./apps/websocket/wssServer.cjs
|
||||||
COPY --from=builder /app/node_modules/better-sqlite3/build/Release/better_sqlite3.node /app/build/better_sqlite3.node
|
COPY --from=builder /app/node_modules/better-sqlite3/build/Release/better_sqlite3.node /app/build/better_sqlite3.node
|
||||||
|
|
||||||
COPY --from=builder /app/packages/db/migrations ./db/migrations
|
COPY --from=builder /app/packages/db/migrations ./db/migrations
|
||||||
|
|||||||
@@ -32,8 +32,6 @@ const nextConfig: NextConfig = {
|
|||||||
experimental: {
|
experimental: {
|
||||||
optimizePackageImports: ["@mantine/core", "@mantine/hooks", "@tabler/icons-react"],
|
optimizePackageImports: ["@mantine/core", "@mantine/hooks", "@tabler/icons-react"],
|
||||||
turbopackFileSystemCacheForDev: true,
|
turbopackFileSystemCacheForDev: true,
|
||||||
preloadEntriesOnStart: false,
|
|
||||||
webpackMemoryOptimizations: true,
|
|
||||||
},
|
},
|
||||||
transpilePackages: ["@homarr/ui", "@homarr/notifications", "@homarr/modals", "@homarr/spotlight", "@homarr/widgets"],
|
transpilePackages: ["@homarr/ui", "@homarr/notifications", "@homarr/modals", "@homarr/spotlight", "@homarr/widgets"],
|
||||||
images: {
|
images: {
|
||||||
|
|||||||
@@ -44,11 +44,9 @@
|
|||||||
"@homarr/server-settings": "workspace:^0.1.0",
|
"@homarr/server-settings": "workspace:^0.1.0",
|
||||||
"@homarr/settings": "workspace:^0.1.0",
|
"@homarr/settings": "workspace:^0.1.0",
|
||||||
"@homarr/spotlight": "workspace:^0.1.0",
|
"@homarr/spotlight": "workspace:^0.1.0",
|
||||||
"@homarr/tasks": "workspace:^0.1.0",
|
|
||||||
"@homarr/translation": "workspace:^0.1.0",
|
"@homarr/translation": "workspace:^0.1.0",
|
||||||
"@homarr/ui": "workspace:^0.1.0",
|
"@homarr/ui": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"@homarr/websocket": "workspace:^0.1.0",
|
|
||||||
"@homarr/widgets": "workspace:^0.1.0",
|
"@homarr/widgets": "workspace:^0.1.0",
|
||||||
"@mantine/colors-generator": "catalog:",
|
"@mantine/colors-generator": "catalog:",
|
||||||
"@mantine/core": "catalog:",
|
"@mantine/core": "catalog:",
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
export async function register() {
|
|
||||||
if (process.env.NEXT_RUNTIME === "nodejs") {
|
|
||||||
await import("@homarr/tasks");
|
|
||||||
await import("@homarr/websocket");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -5,11 +5,12 @@
|
|||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/main.ts"
|
".": "./src/index.ts"
|
||||||
},
|
},
|
||||||
"main": "./src/main.ts",
|
"main": "./src/main.ts",
|
||||||
"types": "./src/main.ts",
|
"types": "./src/main.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "esbuild src/main.ts --bundle --platform=node --loader:.scss=text --external:*.node --external:@opentelemetry/api --external:deasync --external:bcrypt --outfile=tasks.cjs",
|
||||||
"clean": "rm -rf .turbo node_modules",
|
"clean": "rm -rf .turbo node_modules",
|
||||||
"dev": "pnpm with-env tsx ./src/main.ts",
|
"dev": "pnpm with-env tsx ./src/main.ts",
|
||||||
"format": "prettier --check . --ignore-path ../../.gitignore",
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||||
@@ -23,6 +24,7 @@
|
|||||||
"@homarr/auth": "workspace:^0.1.0",
|
"@homarr/auth": "workspace:^0.1.0",
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"@homarr/core": "workspace:^",
|
"@homarr/core": "workspace:^",
|
||||||
|
"@homarr/cron-job-api": "workspace:^0.1.0",
|
||||||
"@homarr/cron-jobs": "workspace:^0.1.0",
|
"@homarr/cron-jobs": "workspace:^0.1.0",
|
||||||
"@homarr/cron-jobs-core": "workspace:^0.1.0",
|
"@homarr/cron-jobs-core": "workspace:^0.1.0",
|
||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Cron } from "croner";
|
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 { jobGroup as cronJobGroup, JobGroupKeys } from "@homarr/cron-jobs";
|
import type { jobGroup as cronJobGroup, JobGroupKeys } from "@homarr/cron-jobs";
|
||||||
import type { Database, InferInsertModel } from "@homarr/db";
|
import type { Database, InferInsertModel } from "@homarr/db";
|
||||||
import { eq } from "@homarr/db";
|
import { eq } from "@homarr/db";
|
||||||
@@ -8,7 +9,7 @@ import { cronJobConfigurations } from "@homarr/db/schema";
|
|||||||
|
|
||||||
const logger = createLogger({ module: "jobManager" });
|
const logger = createLogger({ module: "jobManager" });
|
||||||
|
|
||||||
export class JobManager {
|
export class JobManager implements IJobManager {
|
||||||
constructor(
|
constructor(
|
||||||
private db: Database,
|
private db: Database,
|
||||||
private jobGroup: typeof cronJobGroup,
|
private jobGroup: typeof cronJobGroup,
|
||||||
+41
-1
@@ -1,12 +1,52 @@
|
|||||||
// This import has to be the first import in the file so that the agent is overridden before any other modules are imported.
|
// This import has to be the first import in the file so that the agent is overridden before any other modules are imported.
|
||||||
import "./overrides";
|
import "./overrides";
|
||||||
|
|
||||||
import { jobGroup } from "@homarr/cron-jobs";
|
import type { FastifyTRPCPluginOptions } from "@trpc/server/adapters/fastify";
|
||||||
|
import { fastifyTRPCPlugin } from "@trpc/server/adapters/fastify";
|
||||||
|
import fastify from "fastify";
|
||||||
|
|
||||||
|
import { createLogger } from "@homarr/core/infrastructure/logs";
|
||||||
|
import { ErrorWithMetadata } from "@homarr/core/infrastructure/logs/error";
|
||||||
|
import type { JobRouter } from "@homarr/cron-job-api";
|
||||||
|
import { jobRouter } from "@homarr/cron-job-api";
|
||||||
|
import { CRON_JOB_API_KEY_HEADER, CRON_JOB_API_PATH, CRON_JOB_API_PORT } from "@homarr/cron-job-api/constants";
|
||||||
|
import { jobGroup } from "@homarr/cron-jobs";
|
||||||
|
import { db } from "@homarr/db";
|
||||||
|
|
||||||
|
import { JobManager } from "./job-manager";
|
||||||
import { onStartAsync } from "./on-start";
|
import { onStartAsync } from "./on-start";
|
||||||
|
|
||||||
|
const logger = createLogger({ module: "tasksMain" });
|
||||||
|
|
||||||
|
const server = fastify({
|
||||||
|
maxParamLength: 5000,
|
||||||
|
});
|
||||||
|
server.register(fastifyTRPCPlugin, {
|
||||||
|
prefix: CRON_JOB_API_PATH,
|
||||||
|
trpcOptions: {
|
||||||
|
router: jobRouter,
|
||||||
|
createContext: ({ req }) => ({
|
||||||
|
manager: new JobManager(db, jobGroup),
|
||||||
|
apiKey: req.headers[CRON_JOB_API_KEY_HEADER] as string | undefined,
|
||||||
|
}),
|
||||||
|
onError({ path, error }) {
|
||||||
|
logger.error(new ErrorWithMetadata("Error in tasks tRPC handler", { path }, { cause: error }));
|
||||||
|
},
|
||||||
|
} satisfies FastifyTRPCPluginOptions<JobRouter>["trpcOptions"],
|
||||||
|
});
|
||||||
|
|
||||||
void (async () => {
|
void (async () => {
|
||||||
await onStartAsync();
|
await onStartAsync();
|
||||||
await jobGroup.initializeAsync();
|
await jobGroup.initializeAsync();
|
||||||
await jobGroup.startAllAsync();
|
await jobGroup.startAllAsync();
|
||||||
|
|
||||||
|
try {
|
||||||
|
await server.listen({ port: CRON_JOB_API_PORT });
|
||||||
|
logger.info("Tasks web server started successfully", { port: CRON_JOB_API_PORT });
|
||||||
|
} catch (err) {
|
||||||
|
logger.error(
|
||||||
|
new ErrorWithMetadata("Failed to start tasks web server", { port: CRON_JOB_API_PORT }, { cause: err }),
|
||||||
|
);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
@@ -4,12 +4,10 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
|
||||||
".": "./src/main.ts"
|
|
||||||
},
|
|
||||||
"main": "./src/main.ts",
|
"main": "./src/main.ts",
|
||||||
"types": "./src/main.ts",
|
"types": "./src/main.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "esbuild src/main.ts --bundle --platform=node --outfile=wssServer.cjs --external:bcrypt --external:@opentelemetry/api --external:deasync --external:cpu-features --loader:.html=text --loader:.scss=text --loader:.node=text",
|
||||||
"clean": "rm -rf .turbo node_modules",
|
"clean": "rm -rf .turbo node_modules",
|
||||||
"dev": "pnpm with-env tsx ./src/main.ts",
|
"dev": "pnpm with-env tsx ./src/main.ts",
|
||||||
"format": "prettier --check . --ignore-path ../../.gitignore",
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"better-sqlite3": "^12.9.0"
|
"better-sqlite3": "^12.9.0"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.33.4",
|
"packageManager": "pnpm@10.33.2",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.15.0",
|
"node": ">=24.15.0",
|
||||||
"pnpm": ">=10.33.4"
|
"pnpm": ">=10.33.2"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
|
|||||||
+9
-9
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homarr",
|
"name": "homarr",
|
||||||
"version": "1.61.1-beta.1",
|
"version": "1.61.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "cross-env CI=true turbo build",
|
"build": "cross-env CI=true turbo build",
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
"db:migration:sqlite:run": "pnpm -F db migration:sqlite:run",
|
"db:migration:sqlite:run": "pnpm -F db migration:sqlite:run",
|
||||||
"db:push": "pnpm -F db push:sqlite",
|
"db:push": "pnpm -F db push:sqlite",
|
||||||
"db:studio": "pnpm -F db studio",
|
"db:studio": "pnpm -F db studio",
|
||||||
"dev": "pnpm -F nextjs dev",
|
"dev": "turbo dev --parallel",
|
||||||
"docker:dev": "docker compose -f ./development/development.docker-compose.yml up",
|
"docker:dev": "docker compose -f ./development/development.docker-compose.yml up",
|
||||||
"format": "turbo format --continue -- --cache --cache-location node_modules/.cache/.prettiercache",
|
"format": "turbo format --continue -- --cache --cache-location node_modules/.cache/.prettiercache",
|
||||||
"format:fix": "turbo format --continue -- --write --cache --cache-location node_modules/.cache/.prettiercache",
|
"format:fix": "turbo format --continue -- --write --cache --cache-location node_modules/.cache/.prettiercache",
|
||||||
@@ -59,10 +59,10 @@
|
|||||||
"vite-tsconfig-paths": "catalog:",
|
"vite-tsconfig-paths": "catalog:",
|
||||||
"vitest": "catalog:"
|
"vitest": "catalog:"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.33.4",
|
"packageManager": "pnpm@10.33.2",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24.15.0",
|
"node": ">=24.15.0",
|
||||||
"pnpm": ">=10.33.4"
|
"pnpm": ">=10.33.2"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
@@ -80,8 +80,8 @@
|
|||||||
"@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.16.0",
|
"axios@>=1.0.0 <1.8.2": ">=1.16.0",
|
||||||
"brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.6",
|
"brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.5",
|
||||||
"brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.6",
|
"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.16",
|
"hono@<4.6.5": ">=4.12.16",
|
||||||
@@ -89,13 +89,13 @@
|
|||||||
"nanoid@>=4.0.0 <5.0.9": ">=5.1.11",
|
"nanoid@>=4.0.0 <5.0.9": ">=5.1.11",
|
||||||
"prismjs@<1.30.0": ">=1.30.0",
|
"prismjs@<1.30.0": ">=1.30.0",
|
||||||
"proxmox-api>undici": "7.24.6",
|
"proxmox-api>undici": "7.24.6",
|
||||||
"react-is": "^19.2.6",
|
"react-is": "^19.2.5",
|
||||||
"rollup@>=4.0.0 <4.22.4": ">=4.60.3",
|
"rollup@>=4.0.0 <4.22.4": ">=4.60.2",
|
||||||
"sha.js@<=2.4.11": ">=2.4.12",
|
"sha.js@<=2.4.11": ">=2.4.12",
|
||||||
"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.11"
|
"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",
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
"@homarr/auth": "workspace:^0.1.0",
|
"@homarr/auth": "workspace:^0.1.0",
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"@homarr/core": "workspace:^0.1.0",
|
"@homarr/core": "workspace:^0.1.0",
|
||||||
|
"@homarr/cron-job-api": "workspace:^0.1.0",
|
||||||
"@homarr/cron-job-status": "workspace:^0.1.0",
|
"@homarr/cron-job-status": "workspace:^0.1.0",
|
||||||
"@homarr/cron-jobs": "workspace:^0.1.0",
|
"@homarr/cron-jobs": "workspace:^0.1.0",
|
||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
|
|||||||
@@ -2,36 +2,33 @@ 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 { jobGroupKeys, jobNameSchema } from "@homarr/cron-job-api";
|
||||||
|
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";
|
||||||
import { jobGroup } from "@homarr/cron-jobs";
|
|
||||||
import { JobManager } from "@homarr/cron-jobs/job-manager";
|
|
||||||
|
|
||||||
import { createTRPCRouter, permissionRequiredProcedure } from "../trpc";
|
import { createTRPCRouter, permissionRequiredProcedure } from "../trpc";
|
||||||
|
|
||||||
const jobGroupKeys = jobGroup.getKeys();
|
|
||||||
const jobNameSchema = z.enum(jobGroup.getKeys());
|
|
||||||
|
|
||||||
const logger = createLogger({ module: "cronJobsRouter" });
|
const logger = createLogger({ module: "cronJobsRouter" });
|
||||||
|
|
||||||
export const cronJobsRouter = createTRPCRouter({
|
export const cronJobsRouter = createTRPCRouter({
|
||||||
triggerJob: permissionRequiredProcedure
|
triggerJob: permissionRequiredProcedure
|
||||||
.requiresPermission("admin")
|
.requiresPermission("admin")
|
||||||
.input(jobNameSchema)
|
.input(jobNameSchema)
|
||||||
.mutation(async ({ input, ctx }) => {
|
.mutation(async ({ input }) => {
|
||||||
await new JobManager(ctx.db, jobGroup).triggerAsync(input);
|
await cronJobApi.trigger.mutate(input);
|
||||||
}),
|
}),
|
||||||
startJob: permissionRequiredProcedure
|
startJob: permissionRequiredProcedure
|
||||||
.requiresPermission("admin")
|
.requiresPermission("admin")
|
||||||
.input(jobNameSchema)
|
.input(jobNameSchema)
|
||||||
.mutation(async ({ input, ctx }) => {
|
.mutation(async ({ input }) => {
|
||||||
await new JobManager(ctx.db, jobGroup).startAsync(input);
|
await cronJobApi.start.mutate(input);
|
||||||
}),
|
}),
|
||||||
stopJob: permissionRequiredProcedure
|
stopJob: permissionRequiredProcedure
|
||||||
.requiresPermission("admin")
|
.requiresPermission("admin")
|
||||||
.input(jobNameSchema)
|
.input(jobNameSchema)
|
||||||
.mutation(({ input, ctx }) => {
|
.mutation(async ({ input }) => {
|
||||||
new JobManager(ctx.db, jobGroup).stop(input);
|
await cronJobApi.stop.mutate(input);
|
||||||
}),
|
}),
|
||||||
updateJobInterval: permissionRequiredProcedure
|
updateJobInterval: permissionRequiredProcedure
|
||||||
.requiresPermission("admin")
|
.requiresPermission("admin")
|
||||||
@@ -41,23 +38,23 @@ export const cronJobsRouter = createTRPCRouter({
|
|||||||
cron: z.string(),
|
cron: z.string(),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.mutation(async ({ input, ctx }) => {
|
.mutation(async ({ input }) => {
|
||||||
await new JobManager(ctx.db, jobGroup).updateIntervalAsync(input.name, input.cron);
|
await cronJobApi.updateInterval.mutate(input);
|
||||||
}),
|
}),
|
||||||
disableJob: permissionRequiredProcedure
|
disableJob: permissionRequiredProcedure
|
||||||
.requiresPermission("admin")
|
.requiresPermission("admin")
|
||||||
.input(jobNameSchema)
|
.input(jobNameSchema)
|
||||||
.mutation(async ({ input, ctx }) => {
|
.mutation(async ({ input }) => {
|
||||||
await new JobManager(ctx.db, jobGroup).disableAsync(input);
|
await cronJobApi.disable.mutate(input);
|
||||||
}),
|
}),
|
||||||
enableJob: permissionRequiredProcedure
|
enableJob: permissionRequiredProcedure
|
||||||
.requiresPermission("admin")
|
.requiresPermission("admin")
|
||||||
.input(jobNameSchema)
|
.input(jobNameSchema)
|
||||||
.mutation(async ({ input, ctx }) => {
|
.mutation(async ({ input }) => {
|
||||||
await new JobManager(ctx.db, jobGroup).enableAsync(input);
|
await cronJobApi.enable.mutate(input);
|
||||||
}),
|
}),
|
||||||
getJobs: permissionRequiredProcedure.requiresPermission("admin").query(async ({ ctx }) => {
|
getJobs: permissionRequiredProcedure.requiresPermission("admin").query(async () => {
|
||||||
return await new JobManager(ctx.db, jobGroup).getAllAsync();
|
return await cronJobApi.getAll.query();
|
||||||
}),
|
}),
|
||||||
subscribeToStatusUpdates: permissionRequiredProcedure.requiresPermission("admin").subscription(() => {
|
subscribeToStatusUpdates: permissionRequiredProcedure.requiresPermission("admin").subscription(() => {
|
||||||
return observable<TaskStatus>((emit) => {
|
return observable<TaskStatus>((emit) => {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "esbuild src/index.ts --bundle --platform=node --outfile=cli.cjs --external:bcrypt --external:cpu-features --loader:.html=text --loader:.node=text",
|
"build": "esbuild src/index.ts --bundle --platform=node --outfile=cli.cjs --external:bcrypt --external:cpu-features --external:better-sqlite3 --external:mysql2 --external:pg --loader:.html=text --loader:.node=text",
|
||||||
"clean": "rm -rf .turbo node_modules",
|
"clean": "rm -rf .turbo node_modules",
|
||||||
"format": "prettier --check . --ignore-path ../../.gitignore",
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||||
"lint": "eslint",
|
"lint": "eslint",
|
||||||
@@ -25,12 +25,16 @@
|
|||||||
},
|
},
|
||||||
"prettier": "@homarr/prettier-config",
|
"prettier": "@homarr/prettier-config",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@drizzle-team/brocli": "catalog:",
|
|
||||||
"@homarr/auth": "workspace:^0.1.0",
|
"@homarr/auth": "workspace:^0.1.0",
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
|
"@homarr/core": "workspace:^0.1.0",
|
||||||
"@homarr/db": "workspace:^0.1.0",
|
"@homarr/db": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"dotenv": "catalog:"
|
"better-sqlite3": "catalog:",
|
||||||
|
"dotenv": "catalog:",
|
||||||
|
"drizzle-orm": "catalog:",
|
||||||
|
"mysql2": "catalog:",
|
||||||
|
"pg": "catalog:"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
|
|||||||
@@ -0,0 +1,127 @@
|
|||||||
|
import Database from "better-sqlite3";
|
||||||
|
import { drizzle as drizzleSqlite } from "drizzle-orm/better-sqlite3";
|
||||||
|
import { drizzle as drizzleMysql } from "drizzle-orm/mysql2";
|
||||||
|
import { drizzle as drizzlePostgres } from "drizzle-orm/node-postgres";
|
||||||
|
import mysql from "mysql2";
|
||||||
|
import type { Pool as MysqlPool } from "mysql2";
|
||||||
|
import { Pool as PostgresPool } from "pg";
|
||||||
|
|
||||||
|
import { DB_CASING } from "@homarr/core/infrastructure/db/constants";
|
||||||
|
import { dbEnv } from "@homarr/core/infrastructure/db/env";
|
||||||
|
import { schema } from "@homarr/db/schema";
|
||||||
|
|
||||||
|
const CONNECT_TIMEOUT_MS = 10_000;
|
||||||
|
|
||||||
|
const dbConfig = {
|
||||||
|
schema,
|
||||||
|
casing: DB_CASING,
|
||||||
|
};
|
||||||
|
|
||||||
|
export type CliDatabase = ReturnType<typeof drizzleSqlite<typeof schema>>;
|
||||||
|
|
||||||
|
type CliConnection =
|
||||||
|
| { driver: "better-sqlite3"; raw: Database.Database; db: CliDatabase }
|
||||||
|
| { driver: "mysql2"; raw: MysqlPool; db: CliDatabase }
|
||||||
|
| { driver: "node-postgres"; raw: PostgresPool; db: CliDatabase };
|
||||||
|
|
||||||
|
let connection: CliConnection | null = null;
|
||||||
|
|
||||||
|
const createMysqlPool = () => {
|
||||||
|
const poolOptions = {
|
||||||
|
maxIdle: 0,
|
||||||
|
idleTimeout: 60000,
|
||||||
|
enableKeepAlive: true,
|
||||||
|
connectTimeout: CONNECT_TIMEOUT_MS,
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!dbEnv.HOST) {
|
||||||
|
return mysql.createPool({ ...poolOptions, uri: dbEnv.URL });
|
||||||
|
}
|
||||||
|
|
||||||
|
return mysql.createPool({
|
||||||
|
...poolOptions,
|
||||||
|
host: dbEnv.HOST,
|
||||||
|
port: dbEnv.PORT,
|
||||||
|
database: dbEnv.NAME,
|
||||||
|
user: dbEnv.USER,
|
||||||
|
password: dbEnv.PASSWORD,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const createPostgresPool = () => {
|
||||||
|
const poolOptions = {
|
||||||
|
max: 1,
|
||||||
|
idleTimeoutMillis: 60000,
|
||||||
|
connectionTimeoutMillis: CONNECT_TIMEOUT_MS,
|
||||||
|
allowExitOnIdle: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!dbEnv.HOST) {
|
||||||
|
return new PostgresPool({
|
||||||
|
...poolOptions,
|
||||||
|
connectionString: dbEnv.URL,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return new PostgresPool({
|
||||||
|
...poolOptions,
|
||||||
|
host: dbEnv.HOST,
|
||||||
|
port: dbEnv.PORT,
|
||||||
|
database: dbEnv.NAME,
|
||||||
|
user: dbEnv.USER,
|
||||||
|
password: dbEnv.PASSWORD,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const connectionFactories = {
|
||||||
|
"better-sqlite3": (): CliConnection => {
|
||||||
|
const raw = new Database(dbEnv.URL);
|
||||||
|
const db = drizzleSqlite(raw, dbConfig);
|
||||||
|
return { driver: "better-sqlite3", raw, db };
|
||||||
|
},
|
||||||
|
mysql2: (): CliConnection => {
|
||||||
|
const raw = createMysqlPool();
|
||||||
|
const db = drizzleMysql(raw, { ...dbConfig, mode: "default" }) as unknown as CliDatabase;
|
||||||
|
return { driver: "mysql2", raw, db };
|
||||||
|
},
|
||||||
|
"node-postgres": (): CliConnection => {
|
||||||
|
const raw = createPostgresPool();
|
||||||
|
const db = drizzlePostgres({ ...dbConfig, client: raw }) as unknown as CliDatabase;
|
||||||
|
return { driver: "node-postgres", raw, db };
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const closeHandlers: Record<CliConnection["driver"], (entry: CliConnection) => Promise<void>> = {
|
||||||
|
"better-sqlite3": async (entry) => {
|
||||||
|
(entry as Extract<CliConnection, { driver: "better-sqlite3" }>).raw.close();
|
||||||
|
},
|
||||||
|
mysql2: (entry) => {
|
||||||
|
const pool = (entry as Extract<CliConnection, { driver: "mysql2" }>).raw;
|
||||||
|
return new Promise<void>((resolve, reject) => {
|
||||||
|
pool.end((err) => (err ? reject(err) : resolve()));
|
||||||
|
});
|
||||||
|
},
|
||||||
|
"node-postgres": async (entry) => {
|
||||||
|
await (entry as Extract<CliConnection, { driver: "node-postgres" }>).raw.end();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getCliDb = (): CliDatabase => {
|
||||||
|
if (connection) {
|
||||||
|
return connection.db;
|
||||||
|
}
|
||||||
|
|
||||||
|
const driver = dbEnv.DRIVER ?? "better-sqlite3";
|
||||||
|
connection = connectionFactories[driver]();
|
||||||
|
return connection.db;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const closeCliDbAsync = async (): Promise<void> => {
|
||||||
|
if (!connection) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const current = connection;
|
||||||
|
connection = null;
|
||||||
|
await closeHandlers[current.driver](current);
|
||||||
|
};
|
||||||
@@ -1,36 +1,35 @@
|
|||||||
import { command } from "@drizzle-team/brocli";
|
import { eq } from "drizzle-orm";
|
||||||
|
|
||||||
import { db, eq } from "@homarr/db";
|
import { getCliDb } from "../cli-db";
|
||||||
|
import { requireCredentialsProvider } from "../errors";
|
||||||
import { users } from "@homarr/db/schema";
|
import { users } from "@homarr/db/schema";
|
||||||
|
|
||||||
export const fixUsernames = command({
|
export async function fixUsernamesHandler(): Promise<number> {
|
||||||
name: "fix-usernames",
|
requireCredentialsProvider();
|
||||||
desc: "Changes all credentials usernames to lowercase",
|
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
const db = getCliDb();
|
||||||
handler: async () => {
|
const credentialUsers = await db.query.users.findMany({
|
||||||
if (!process.env.AUTH_PROVIDERS?.toLowerCase().includes("credentials")) {
|
where: eq(users.provider, "credentials"),
|
||||||
console.error("Credentials provider is not enabled");
|
});
|
||||||
return;
|
|
||||||
|
for (const user of credentialUsers) {
|
||||||
|
if (!user.name) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (user.name === user.name.toLowerCase()) {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const credentialUsers = await db.query.users.findMany({
|
await db
|
||||||
where: eq(users.provider, "credentials"),
|
.update(users)
|
||||||
});
|
.set({
|
||||||
|
name: user.name.toLowerCase(),
|
||||||
|
})
|
||||||
|
.where(eq(users.id, user.id));
|
||||||
|
|
||||||
for (const user of credentialUsers) {
|
console.log(`Changed username from ${user.name} to ${user.name.toLowerCase()}`);
|
||||||
if (!user.name) continue;
|
}
|
||||||
if (user.name === user.name.toLowerCase()) continue;
|
|
||||||
|
|
||||||
await db
|
console.log("All usernames have been fixed");
|
||||||
.update(users)
|
return 0;
|
||||||
.set({
|
}
|
||||||
name: user.name.toLowerCase(),
|
|
||||||
})
|
|
||||||
.where(eq(users.id, user.id));
|
|
||||||
|
|
||||||
console.log(`Changed username from ${user.name} to ${user.name.toLowerCase()}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("All usernames have been fixed");
|
|
||||||
},
|
|
||||||
});
|
|
||||||
@@ -1,39 +1,50 @@
|
|||||||
import { command, string } from "@drizzle-team/brocli";
|
import { parseArgs } from "node:util";
|
||||||
|
|
||||||
import { db, eq } from "@homarr/db";
|
import { eq } from "drizzle-orm";
|
||||||
|
|
||||||
|
import type { CliDatabase } from "../cli-db";
|
||||||
|
import { getCliDb } from "../cli-db";
|
||||||
|
import { CliError } from "../errors";
|
||||||
import { integrations } from "@homarr/db/schema";
|
import { integrations } from "@homarr/db/schema";
|
||||||
|
|
||||||
export const integrationsDelete = command({
|
const integrationLookup: Record<
|
||||||
name: "delete",
|
"id" | "name",
|
||||||
desc: "Delete an integration by id or name",
|
(db: CliDatabase, value: string) => Promise<{ id: string; name: string } | undefined>
|
||||||
options: {
|
> = {
|
||||||
id: string("id").alias("i").desc("ID of the integration"),
|
id: (db, value) =>
|
||||||
name: string("name").alias("n").desc("Name of the integration"),
|
db.query.integrations.findFirst({
|
||||||
},
|
where: eq(integrations.id, value),
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
}),
|
||||||
handler: async (options) => {
|
name: (db, value) =>
|
||||||
if (!options.id && !options.name) {
|
db.query.integrations.findFirst({
|
||||||
console.error("Either --id or --name must be provided");
|
where: eq(integrations.name, value),
|
||||||
return;
|
}),
|
||||||
}
|
};
|
||||||
|
|
||||||
let entry;
|
export async function integrationsDeleteHandler(args: string[]): Promise<number> {
|
||||||
if (options.id) {
|
const { values } = parseArgs({
|
||||||
entry = await db.query.integrations.findFirst({
|
args,
|
||||||
where: eq(integrations.id, options.id),
|
options: {
|
||||||
});
|
id: { type: "string", short: "i" },
|
||||||
} else if (options.name) {
|
name: { type: "string", short: "n" },
|
||||||
entry = await db.query.integrations.findFirst({
|
},
|
||||||
where: eq(integrations.name, options.name),
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!entry) {
|
const lookupKey = values.id ? "id" : values.name ? "name" : null;
|
||||||
console.error("Integration not found");
|
const lookupValue = values.id ?? values.name;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
await db.delete(integrations).where(eq(integrations.id, entry.id));
|
if (!lookupKey || !lookupValue) {
|
||||||
console.log(`Integration ${entry.name} (${entry.id}) deleted`);
|
throw new CliError("Either --id or --name must be provided", 2);
|
||||||
},
|
}
|
||||||
});
|
|
||||||
|
const db = getCliDb();
|
||||||
|
const entry = await integrationLookup[lookupKey](db, lookupValue);
|
||||||
|
|
||||||
|
if (!entry) {
|
||||||
|
throw new CliError("Integration not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
await db.delete(integrations).where(eq(integrations.id, entry.id));
|
||||||
|
console.log(`Integration ${entry.name} (${entry.id}) deleted`);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -1,21 +1,35 @@
|
|||||||
import { command } from "@drizzle-team/brocli";
|
import { parseArgs } from "node:util";
|
||||||
|
|
||||||
import { db } from "@homarr/db";
|
import { getCliDb } from "../cli-db";
|
||||||
|
import { printTable } from "../utils";
|
||||||
|
|
||||||
export const integrationsList = command({
|
export async function integrationsListHandler(args: string[] = []): Promise<number> {
|
||||||
name: "list",
|
const { values } = parseArgs({
|
||||||
desc: "List all integrations (id and name)",
|
args,
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
options: {
|
||||||
handler: async () => {
|
json: { type: "boolean", default: false },
|
||||||
const all = await db.query.integrations.findMany();
|
},
|
||||||
if (all.length === 0) {
|
strict: false,
|
||||||
console.log("No integrations found");
|
});
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("ID\t\t\t\tName");
|
const db = getCliDb();
|
||||||
for (const i of all) {
|
const all = await db.query.integrations.findMany();
|
||||||
console.log(`${i.id}\t${i.name}`);
|
|
||||||
}
|
if (values.json) {
|
||||||
},
|
const output = all.map((i) => ({ id: i.id, name: i.name, kind: i.kind, url: i.url }));
|
||||||
});
|
console.log(JSON.stringify(output, null, 2));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (all.length === 0) {
|
||||||
|
console.log("No integrations found");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
printTable(
|
||||||
|
["ID", "Name", "Kind", "URL"],
|
||||||
|
all.map((i) => [i.id, i.name, i.kind, i.url]),
|
||||||
|
);
|
||||||
|
console.log(`\n${all.length} integration(s) total`);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
import { command } from "@drizzle-team/brocli";
|
|
||||||
|
|
||||||
import { integrationsDelete } from "./integrations-delete";
|
|
||||||
import { integrationsList } from "./integrations-list";
|
|
||||||
|
|
||||||
export const integrationsRoot = command({
|
|
||||||
name: "integrations",
|
|
||||||
desc: "Group of commands to manage integrations",
|
|
||||||
subcommands: [integrationsList, integrationsDelete],
|
|
||||||
});
|
|
||||||
@@ -1,94 +1,98 @@
|
|||||||
import { command, string } from "@drizzle-team/brocli";
|
import { parseArgs } from "node:util";
|
||||||
|
|
||||||
import { hashPasswordAsync } from "@homarr/auth";
|
import { hashPasswordAsync } from "@homarr/auth/security";
|
||||||
import { createId } from "@homarr/common";
|
import { createId } from "@homarr/common";
|
||||||
import { generateSecureRandomToken } from "@homarr/common/server";
|
import { generateSecureRandomToken } from "../utils";
|
||||||
import { and, count, db, eq } from "@homarr/db";
|
import { and, count, eq, max } from "drizzle-orm";
|
||||||
import { getMaxGroupPositionAsync } from "@homarr/db/queries";
|
|
||||||
|
import { getCliDb } from "../cli-db";
|
||||||
|
import { CliError, requireCredentialsProvider } from "../errors";
|
||||||
import { groupMembers, groupPermissions, groups, users } from "@homarr/db/schema";
|
import { groupMembers, groupPermissions, groups, users } from "@homarr/db/schema";
|
||||||
import { usernameSchema } from "@homarr/validation/user";
|
import { usernameSchema } from "@homarr/validation/user";
|
||||||
|
|
||||||
export const recreateAdmin = command({
|
export async function recreateAdminHandler(args: string[]): Promise<number> {
|
||||||
name: "recreate-admin",
|
requireCredentialsProvider();
|
||||||
desc: "Recreate credentials admin user if none exists anymore",
|
|
||||||
options: {
|
|
||||||
username: string("username").required().alias("u").desc("Name of the admin"),
|
|
||||||
},
|
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
|
||||||
handler: async (options) => {
|
|
||||||
if (!process.env.AUTH_PROVIDERS?.toLowerCase().includes("credentials")) {
|
|
||||||
console.error("Credentials provider is not enabled");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const result = await usernameSchema.safeParseAsync(options.username);
|
const { values } = parseArgs({
|
||||||
|
args,
|
||||||
|
options: {
|
||||||
|
username: { type: "string", short: "u" },
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
if (!result.success) {
|
if (!values.username) {
|
||||||
console.error("Invalid username:");
|
throw new CliError("Missing required option: --username / -u", 2);
|
||||||
console.error(result.error.issues.map((error) => `- ${error.message}`).join("\n"));
|
}
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const totalCount = await db
|
const result = await usernameSchema.safeParseAsync(values.username);
|
||||||
.select({
|
if (!result.success) {
|
||||||
count: count(),
|
const messages = result.error.issues.map((issue) => `- ${issue.message}`).join("\n");
|
||||||
})
|
throw new CliError(`Invalid username:\n${messages}`, 2);
|
||||||
.from(groupPermissions)
|
}
|
||||||
.leftJoin(groupMembers, eq(groupMembers.groupId, groupPermissions.groupId))
|
|
||||||
.leftJoin(users, eq(users.id, groupMembers.userId))
|
|
||||||
.where(and(eq(groupPermissions.permission, "admin"), eq(users.provider, "credentials")))
|
|
||||||
.then((rows) => rows.at(0)?.count ?? 0);
|
|
||||||
|
|
||||||
if (totalCount > 0) {
|
const db = getCliDb();
|
||||||
console.error("Credentials admin user exists");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const existingUser = await db.query.users.findFirst({
|
const totalCount = await db
|
||||||
where: eq(users.name, result.data),
|
.select({
|
||||||
});
|
count: count(),
|
||||||
|
})
|
||||||
|
.from(groupPermissions)
|
||||||
|
.leftJoin(groupMembers, eq(groupMembers.groupId, groupPermissions.groupId))
|
||||||
|
.leftJoin(users, eq(users.id, groupMembers.userId))
|
||||||
|
.where(and(eq(groupPermissions.permission, "admin"), eq(users.provider, "credentials")))
|
||||||
|
.then((rows: { count: number }[]) => rows.at(0)?.count ?? 0);
|
||||||
|
|
||||||
if (existingUser) {
|
if (totalCount > 0) {
|
||||||
console.error("User with this name already exists");
|
throw new CliError("Credentials admin user exists");
|
||||||
return;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const temporaryGroupId = createId();
|
const existingUser = await db.query.users.findFirst({
|
||||||
|
where: eq(users.name, result.data),
|
||||||
|
});
|
||||||
|
|
||||||
const maxPosition = await getMaxGroupPositionAsync(db);
|
if (existingUser) {
|
||||||
await db.insert(groups).values({
|
throw new CliError("User with this name already exists");
|
||||||
id: temporaryGroupId,
|
}
|
||||||
name: temporaryGroupId,
|
|
||||||
position: maxPosition + 1,
|
|
||||||
});
|
|
||||||
|
|
||||||
await db.insert(groupPermissions).values({
|
const temporaryGroupId = createId();
|
||||||
groupId: temporaryGroupId,
|
const maxPosition = await db
|
||||||
permission: "admin",
|
.select({ value: max(groups.position) })
|
||||||
});
|
.from(groups)
|
||||||
|
.then((result: { value: number | null }[]) => result[0]?.value ?? 1);
|
||||||
|
|
||||||
const password = generateSecureRandomToken(24);
|
await db.insert(groups).values({
|
||||||
const hashedPassword = await hashPasswordAsync(password);
|
id: temporaryGroupId,
|
||||||
|
name: temporaryGroupId,
|
||||||
|
position: maxPosition + 1,
|
||||||
|
});
|
||||||
|
|
||||||
const userId = createId();
|
await db.insert(groupPermissions).values({
|
||||||
await db.insert(users).values({
|
groupId: temporaryGroupId,
|
||||||
id: userId,
|
permission: "admin",
|
||||||
name: result.data,
|
});
|
||||||
provider: "credentials",
|
|
||||||
password: hashedPassword,
|
|
||||||
});
|
|
||||||
|
|
||||||
await db.insert(groupMembers).values({
|
const password = generateSecureRandomToken(24);
|
||||||
groupId: temporaryGroupId,
|
const hashedPassword = await hashPasswordAsync(password);
|
||||||
userId,
|
const userId = createId();
|
||||||
});
|
|
||||||
|
|
||||||
console.log(
|
await db.insert(users).values({
|
||||||
"We created a new admin user for you. Please keep in mind, that the admin group of it has a temporary name. You should change it to something more meaningful.",
|
id: userId,
|
||||||
);
|
name: result.data,
|
||||||
console.log(`\tUsername: ${result.data}`);
|
provider: "credentials",
|
||||||
console.log(`\tPassword: ${password}`);
|
password: hashedPassword,
|
||||||
console.log(`\tGroup: ${temporaryGroupId}`);
|
});
|
||||||
console.log(""); // Empty line for better readability
|
|
||||||
},
|
await db.insert(groupMembers).values({
|
||||||
});
|
groupId: temporaryGroupId,
|
||||||
|
userId,
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
"We created a new admin user for you. Please keep in mind, that the admin group of it has a temporary name. You should change it to something more meaningful.",
|
||||||
|
);
|
||||||
|
console.log(`\tUsername: ${result.data}`);
|
||||||
|
console.log(`\tPassword: ${password}`);
|
||||||
|
console.log(`\tGroup: ${temporaryGroupId}`);
|
||||||
|
console.log("");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -1,46 +1,48 @@
|
|||||||
import { command, string } from "@drizzle-team/brocli";
|
import { parseArgs } from "node:util";
|
||||||
|
|
||||||
import { hashPasswordAsync } from "@homarr/auth";
|
import { hashPasswordAsync } from "@homarr/auth/security";
|
||||||
import { generateSecureRandomToken } from "@homarr/common/server";
|
import { generateSecureRandomToken } from "../utils";
|
||||||
import { and, db, eq } from "@homarr/db";
|
import { and, eq } from "drizzle-orm";
|
||||||
|
|
||||||
|
import { getCliDb } from "../cli-db";
|
||||||
|
import { CliError, requireCredentialsProvider } from "../errors";
|
||||||
import { sessions, users } from "@homarr/db/schema";
|
import { sessions, users } from "@homarr/db/schema";
|
||||||
|
|
||||||
export const resetPassword = command({
|
export async function resetPasswordHandler(args: string[]): Promise<number> {
|
||||||
name: "reset-password",
|
requireCredentialsProvider();
|
||||||
desc: "Reset password for a user",
|
|
||||||
options: {
|
|
||||||
username: string("username").required().alias("u").desc("Name of the user"),
|
|
||||||
},
|
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
|
||||||
handler: async (options) => {
|
|
||||||
if (!process.env.AUTH_PROVIDERS?.toLowerCase().includes("credentials")) {
|
|
||||||
console.error("Credentials provider is not enabled");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const user = await db.query.users.findFirst({
|
const { values } = parseArgs({
|
||||||
where: and(eq(users.name, options.username), eq(users.provider, "credentials")),
|
args,
|
||||||
});
|
options: {
|
||||||
|
username: { type: "string", short: "u" },
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
if (!user?.password) {
|
if (!values.username) {
|
||||||
console.error(`User ${options.username} not found`);
|
throw new CliError("Missing required option: --username / -u", 2);
|
||||||
return;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Generates a new password with 48 characters
|
const db = getCliDb();
|
||||||
const newPassword = generateSecureRandomToken(24);
|
const user = await db.query.users.findFirst({
|
||||||
|
where: and(eq(users.name, values.username), eq(users.provider, "credentials")),
|
||||||
|
});
|
||||||
|
|
||||||
await db
|
if (!user?.password) {
|
||||||
.update(users)
|
throw new CliError(`User ${values.username} not found`);
|
||||||
.set({
|
}
|
||||||
password: await hashPasswordAsync(newPassword),
|
|
||||||
})
|
|
||||||
.where(eq(users.id, user.id));
|
|
||||||
|
|
||||||
await db.delete(sessions).where(eq(sessions.userId, user.id));
|
const newPassword = generateSecureRandomToken(24);
|
||||||
console.log(`All sessions for user ${options.username} have been deleted`);
|
|
||||||
|
|
||||||
console.log("You can now login with the new password");
|
await db
|
||||||
console.log(`New password for user ${options.username}: ${newPassword}`);
|
.update(users)
|
||||||
},
|
.set({
|
||||||
});
|
password: await hashPasswordAsync(newPassword),
|
||||||
|
})
|
||||||
|
.where(eq(users.id, user.id));
|
||||||
|
|
||||||
|
await db.delete(sessions).where(eq(sessions.userId, user.id));
|
||||||
|
console.log(`All sessions for user ${values.username} have been deleted`);
|
||||||
|
console.log("You can now login with the new password");
|
||||||
|
console.log(`New password for user ${values.username}: ${newPassword}`);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -1,39 +1,47 @@
|
|||||||
import { command, string } from "@drizzle-team/brocli";
|
import { parseArgs } from "node:util";
|
||||||
|
|
||||||
import { db, eq } from "@homarr/db";
|
import { eq } from "drizzle-orm";
|
||||||
|
|
||||||
|
import type { CliDatabase } from "../cli-db";
|
||||||
|
import { getCliDb } from "../cli-db";
|
||||||
|
import { CliError } from "../errors";
|
||||||
import { users } from "@homarr/db/schema";
|
import { users } from "@homarr/db/schema";
|
||||||
|
|
||||||
export const usersDelete = command({
|
const userLookup: Record<"id" | "username", (db: CliDatabase, value: string) => Promise<{ id: string; name: string | null } | undefined>> = {
|
||||||
name: "delete",
|
id: (db, value) =>
|
||||||
desc: "Delete a user by id or username",
|
db.query.users.findFirst({
|
||||||
options: {
|
where: eq(users.id, value),
|
||||||
id: string("id").alias("i").desc("ID of the user"),
|
}),
|
||||||
username: string("username").alias("u").desc("Name of the user"),
|
username: (db, value) =>
|
||||||
},
|
db.query.users.findFirst({
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
where: eq(users.name, value),
|
||||||
handler: async (options) => {
|
}),
|
||||||
if (!options.id && !options.username) {
|
};
|
||||||
console.error("Either --id or --username must be provided");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let user;
|
export async function usersDeleteHandler(args: string[]): Promise<number> {
|
||||||
if (options.id) {
|
const { values } = parseArgs({
|
||||||
user = await db.query.users.findFirst({
|
args,
|
||||||
where: eq(users.id, options.id),
|
options: {
|
||||||
});
|
id: { type: "string", short: "i" },
|
||||||
} else if (options.username) {
|
username: { type: "string", short: "u" },
|
||||||
user = await db.query.users.findFirst({
|
},
|
||||||
where: eq(users.name, options.username),
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!user) {
|
const lookupKey = values.id ? "id" : values.username ? "username" : null;
|
||||||
console.error("User not found");
|
const lookupValue = values.id ?? values.username;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
await db.delete(users).where(eq(users.id, user.id));
|
if (!lookupKey || !lookupValue) {
|
||||||
console.log(`User ${user.name ?? user.id} (${user.id}) deleted`);
|
throw new CliError("Either --id or --username must be provided", 2);
|
||||||
},
|
}
|
||||||
});
|
|
||||||
|
const db = getCliDb();
|
||||||
|
const user = await userLookup[lookupKey](db, lookupValue);
|
||||||
|
|
||||||
|
if (!user) {
|
||||||
|
throw new CliError("User not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
await db.delete(users).where(eq(users.id, user.id));
|
||||||
|
console.log(`User ${user.name ?? user.id} (${user.id}) deleted`);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -1,22 +1,35 @@
|
|||||||
import { command } from "@drizzle-team/brocli";
|
import { parseArgs } from "node:util";
|
||||||
|
|
||||||
import { db } from "@homarr/db";
|
import { getCliDb } from "../cli-db";
|
||||||
|
import { printTable } from "../utils";
|
||||||
|
|
||||||
export const usersList = command({
|
export async function usersListHandler(args: string[] = []): Promise<number> {
|
||||||
name: "list",
|
const { values } = parseArgs({
|
||||||
desc: "List all users (id, username, email)",
|
args,
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
options: {
|
||||||
handler: async () => {
|
json: { type: "boolean", default: false },
|
||||||
const allUsers = await db.query.users.findMany();
|
},
|
||||||
|
strict: false,
|
||||||
|
});
|
||||||
|
|
||||||
if (allUsers.length === 0) {
|
const db = getCliDb();
|
||||||
console.log("No users found");
|
const allUsers = await db.query.users.findMany();
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("ID\t\t\t\tUsername\tEmail");
|
if (values.json) {
|
||||||
for (const user of allUsers) {
|
const output = allUsers.map((u) => ({ id: u.id, name: u.name, email: u.email, provider: u.provider }));
|
||||||
console.log(`${user.id}\t${user.name ?? ""}\t${user.email ?? ""}`);
|
console.log(JSON.stringify(output, null, 2));
|
||||||
}
|
return 0;
|
||||||
},
|
}
|
||||||
});
|
|
||||||
|
if (allUsers.length === 0) {
|
||||||
|
console.log("No users found");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
printTable(
|
||||||
|
["ID", "Username", "Email", "Provider"],
|
||||||
|
allUsers.map((u) => [u.id, u.name ?? "", u.email ?? "", u.provider]),
|
||||||
|
);
|
||||||
|
console.log(`\n${allUsers.length} user(s) total`);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -1,50 +1,66 @@
|
|||||||
import { command, string } from "@drizzle-team/brocli";
|
import { parseArgs } from "node:util";
|
||||||
|
|
||||||
import { hashPasswordAsync } from "@homarr/auth";
|
import { hashPasswordAsync } from "@homarr/auth/security";
|
||||||
import { db, eq } from "@homarr/db";
|
import { eq } from "drizzle-orm";
|
||||||
|
|
||||||
|
import type { CliDatabase } from "../cli-db";
|
||||||
|
import { getCliDb } from "../cli-db";
|
||||||
|
import { CliError, requireCredentialsProvider } from "../errors";
|
||||||
import { sessions, users } from "@homarr/db/schema";
|
import { sessions, users } from "@homarr/db/schema";
|
||||||
|
|
||||||
export const usersUpdatePassword = command({
|
const userLookup: Record<
|
||||||
name: "update-password",
|
"id" | "username",
|
||||||
desc: "Update the password for a user (credentials provider only)",
|
(db: CliDatabase, value: string) => Promise<{ id: string; name: string | null; password: string | null } | undefined>
|
||||||
options: {
|
> = {
|
||||||
id: string("id").alias("i").desc("ID of the user"),
|
id: (db, value) =>
|
||||||
username: string("username").alias("u").desc("Name of the user"),
|
db.query.users.findFirst({
|
||||||
password: string("password").alias("p").required().desc("New password"),
|
where: eq(users.id, value),
|
||||||
},
|
}),
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
username: (db, value) =>
|
||||||
handler: async (options) => {
|
db.query.users.findFirst({
|
||||||
if (!process.env.AUTH_PROVIDERS?.toLowerCase().includes("credentials")) {
|
where: eq(users.name, value),
|
||||||
console.error("Credentials provider is not enabled");
|
}),
|
||||||
return;
|
};
|
||||||
}
|
|
||||||
|
|
||||||
if (!options.id && !options.username) {
|
export async function usersUpdatePasswordHandler(args: string[]): Promise<number> {
|
||||||
console.error("Either --id or --username must be provided");
|
requireCredentialsProvider();
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const user = await db.query.users.findFirst({
|
const { values } = parseArgs({
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
args,
|
||||||
where: options.id ? eq(users.id, options.id) : eq(users.name, options.username!),
|
options: {
|
||||||
});
|
id: { type: "string", short: "i" },
|
||||||
|
username: { type: "string", short: "u" },
|
||||||
|
password: { type: "string", short: "p" },
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
if (!user?.password) {
|
const lookupKey = values.id ? "id" : values.username ? "username" : null;
|
||||||
console.error("User not found or has no credentials record");
|
const lookupValue = values.id ?? values.username;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
await db
|
if (!lookupKey || !lookupValue) {
|
||||||
.update(users)
|
throw new CliError("Either --id or --username must be provided", 2);
|
||||||
.set({
|
}
|
||||||
password: await hashPasswordAsync(options.password),
|
|
||||||
})
|
|
||||||
.where(eq(users.id, user.id));
|
|
||||||
|
|
||||||
// invalidate existing sessions
|
if (!values.password) {
|
||||||
await db.delete(sessions).where(eq(sessions.userId, user.id));
|
throw new CliError("Missing required option: --password / -p", 2);
|
||||||
console.log(`All sessions for user ${user.name ?? user.id} have been deleted`);
|
}
|
||||||
|
|
||||||
console.log("Password updated successfully");
|
const db = getCliDb();
|
||||||
},
|
const user = await userLookup[lookupKey](db, lookupValue);
|
||||||
});
|
|
||||||
|
if (!user?.password) {
|
||||||
|
throw new CliError("User not found or has no credentials record");
|
||||||
|
}
|
||||||
|
|
||||||
|
await db
|
||||||
|
.update(users)
|
||||||
|
.set({
|
||||||
|
password: await hashPasswordAsync(values.password),
|
||||||
|
})
|
||||||
|
.where(eq(users.id, user.id));
|
||||||
|
|
||||||
|
await db.delete(sessions).where(eq(sessions.userId, user.id));
|
||||||
|
console.log(`All sessions for user ${user.name ?? user.id} have been deleted`);
|
||||||
|
console.log("Password updated successfully");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
import { command } from "@drizzle-team/brocli";
|
|
||||||
|
|
||||||
import { usersDelete } from "./users-delete";
|
|
||||||
import { usersList } from "./users-list";
|
|
||||||
import { usersUpdatePassword } from "./users-update-password";
|
|
||||||
|
|
||||||
export const usersRoot = command({
|
|
||||||
name: "users",
|
|
||||||
desc: "Group of commands to manage users",
|
|
||||||
subcommands: [usersList, usersDelete, usersUpdatePassword],
|
|
||||||
});
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
export class CliError extends Error {
|
||||||
|
constructor(
|
||||||
|
message: string,
|
||||||
|
readonly exitCode: 1 | 2 = 1,
|
||||||
|
) {
|
||||||
|
super(message);
|
||||||
|
this.name = "CliError";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const requireCredentialsProvider = () => {
|
||||||
|
const enabled = process.env.AUTH_PROVIDERS?.toLowerCase().includes("credentials") ?? false;
|
||||||
|
if (!enabled) {
|
||||||
|
throw new CliError("Credentials provider is not enabled");
|
||||||
|
}
|
||||||
|
};
|
||||||
+38
-11
@@ -1,14 +1,41 @@
|
|||||||
import { run } from "@drizzle-team/brocli";
|
import { closeCliDbAsync } from "./cli-db";
|
||||||
|
import { CliError } from "./errors";
|
||||||
|
import { runCliAsync } from "./router";
|
||||||
|
|
||||||
import { fixUsernames } from "./commands/fix-usernames";
|
const mainAsync = async (): Promise<number> => {
|
||||||
import { integrationsRoot } from "./commands/integrations";
|
const argv = process.argv.slice(2);
|
||||||
import { recreateAdmin } from "./commands/recreate-admin";
|
const start = performance.now();
|
||||||
import { resetPassword } from "./commands/reset-password";
|
|
||||||
import { usersRoot } from "./commands/users";
|
|
||||||
|
|
||||||
const commands = [usersRoot, integrationsRoot, resetPassword, fixUsernames, recreateAdmin];
|
try {
|
||||||
|
const code = await runCliAsync(argv);
|
||||||
|
if (code === 0) {
|
||||||
|
const elapsed = Math.round(performance.now() - start);
|
||||||
|
console.error(`\nDone in ${elapsed}ms`);
|
||||||
|
}
|
||||||
|
return code;
|
||||||
|
} catch (error) {
|
||||||
|
if (error instanceof CliError) {
|
||||||
|
console.error(error.message);
|
||||||
|
return error.exitCode;
|
||||||
|
}
|
||||||
|
|
||||||
void run(commands, {
|
if (error instanceof TypeError && error.message.startsWith("Unknown option")) {
|
||||||
name: "homarr-cli",
|
console.error(error.message);
|
||||||
version: "1.0.0",
|
return 2;
|
||||||
});
|
}
|
||||||
|
|
||||||
|
console.error(error instanceof Error ? error.message : error);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
mainAsync()
|
||||||
|
.then(async (code) => {
|
||||||
|
await closeCliDbAsync();
|
||||||
|
process.exit(code);
|
||||||
|
})
|
||||||
|
.catch(async (error) => {
|
||||||
|
console.error(error instanceof Error ? error.message : error);
|
||||||
|
await closeCliDbAsync();
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
@@ -0,0 +1,167 @@
|
|||||||
|
import { fixUsernamesHandler } from "./commands/fix-usernames";
|
||||||
|
import { integrationsDeleteHandler } from "./commands/integrations-delete";
|
||||||
|
import { integrationsListHandler } from "./commands/integrations-list";
|
||||||
|
import { recreateAdminHandler } from "./commands/recreate-admin";
|
||||||
|
import { resetPasswordHandler } from "./commands/reset-password";
|
||||||
|
import { usersDeleteHandler } from "./commands/users-delete";
|
||||||
|
import { usersListHandler } from "./commands/users-list";
|
||||||
|
import { usersUpdatePasswordHandler } from "./commands/users-update-password";
|
||||||
|
import { CliError } from "./errors";
|
||||||
|
|
||||||
|
const VERSION = "1.0.0";
|
||||||
|
|
||||||
|
type CommandHandler = (args: string[]) => Promise<number>;
|
||||||
|
|
||||||
|
interface CommandDef {
|
||||||
|
handler: CommandHandler;
|
||||||
|
desc: string;
|
||||||
|
usage: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
type CommandGroup = Record<string, CommandDef>;
|
||||||
|
|
||||||
|
const topLevelCommands: Record<string, CommandDef> = {
|
||||||
|
"reset-password": {
|
||||||
|
handler: resetPasswordHandler,
|
||||||
|
desc: "Reset password for a credentials user",
|
||||||
|
usage: "homarr reset-password -u <username>",
|
||||||
|
},
|
||||||
|
"fix-usernames": {
|
||||||
|
handler: (args) => fixUsernamesHandler(),
|
||||||
|
desc: "Lowercase all credentials usernames",
|
||||||
|
usage: "homarr fix-usernames",
|
||||||
|
},
|
||||||
|
"recreate-admin": {
|
||||||
|
handler: recreateAdminHandler,
|
||||||
|
desc: "Create credentials admin if none exists",
|
||||||
|
usage: "homarr recreate-admin -u <username>",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const commandGroups: Record<string, CommandGroup> = {
|
||||||
|
users: {
|
||||||
|
list: {
|
||||||
|
handler: (args) => usersListHandler(args),
|
||||||
|
desc: "List all users",
|
||||||
|
usage: "homarr users list [--json]",
|
||||||
|
},
|
||||||
|
delete: {
|
||||||
|
handler: usersDeleteHandler,
|
||||||
|
desc: "Delete a user by id or username",
|
||||||
|
usage: "homarr users delete --id <id> | --username <name>",
|
||||||
|
},
|
||||||
|
"update-password": {
|
||||||
|
handler: usersUpdatePasswordHandler,
|
||||||
|
desc: "Set password for a credentials user",
|
||||||
|
usage: "homarr users update-password (--id <id> | --username <name>) --password <pw>",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
integrations: {
|
||||||
|
list: {
|
||||||
|
handler: (args) => integrationsListHandler(args),
|
||||||
|
desc: "List all integrations",
|
||||||
|
usage: "homarr integrations list [--json]",
|
||||||
|
},
|
||||||
|
delete: {
|
||||||
|
handler: integrationsDeleteHandler,
|
||||||
|
desc: "Delete an integration by id or name",
|
||||||
|
usage: "homarr integrations delete --id <id> | --name <name>",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const HELP_TEXT = `homarr-cli ${VERSION}
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
homarr <command> [options]
|
||||||
|
|
||||||
|
Commands:
|
||||||
|
reset-password Reset password for a credentials user
|
||||||
|
recreate-admin Create credentials admin if none exists
|
||||||
|
fix-usernames Lowercase all credentials usernames
|
||||||
|
users list List all users
|
||||||
|
users delete Delete a user by id or username
|
||||||
|
users update-password Set password for a credentials user
|
||||||
|
integrations list List all integrations
|
||||||
|
integrations delete Delete an integration by id or name
|
||||||
|
|
||||||
|
Global Options:
|
||||||
|
-h, --help Show help (use after a command for command-specific help)
|
||||||
|
-v, --version Show CLI version
|
||||||
|
`;
|
||||||
|
|
||||||
|
const printHelp = () => {
|
||||||
|
console.log(HELP_TEXT);
|
||||||
|
};
|
||||||
|
|
||||||
|
const printCommandHelp = (def: CommandDef) => {
|
||||||
|
console.log(`${def.desc}\n`);
|
||||||
|
console.log(`Usage:\n ${def.usage}\n`);
|
||||||
|
};
|
||||||
|
|
||||||
|
const resolveHandler = (argv: string[]): { handler: CommandHandler; args: string[] } => {
|
||||||
|
const [command, subcommand, ...rest] = argv;
|
||||||
|
|
||||||
|
if (!command) {
|
||||||
|
throw new CliError("Missing command", 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
const group = commandGroups[command];
|
||||||
|
if (group) {
|
||||||
|
if (!subcommand || subcommand === "--help" || subcommand === "-h") {
|
||||||
|
const subcommands = Object.entries(group)
|
||||||
|
.map(([name, def]) => ` ${name.padEnd(18)} ${def.desc}`)
|
||||||
|
.join("\n");
|
||||||
|
console.log(`Usage:\n homarr ${command} <subcommand> [options]\n\nSubcommands:\n${subcommands}\n`);
|
||||||
|
return { handler: async () => subcommand ? 0 : 2, args: [] };
|
||||||
|
}
|
||||||
|
|
||||||
|
const def = group[subcommand];
|
||||||
|
if (!def) {
|
||||||
|
throw new CliError(`Unknown subcommand "${subcommand}" for "${command}"`, 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hasFlag(rest, "--help", "-h")) {
|
||||||
|
printCommandHelp(def);
|
||||||
|
return { handler: async () => 0, args: [] };
|
||||||
|
}
|
||||||
|
|
||||||
|
return { handler: def.handler, args: rest };
|
||||||
|
}
|
||||||
|
|
||||||
|
const def = topLevelCommands[command];
|
||||||
|
if (!def) {
|
||||||
|
throw new CliError(`Unknown command "${command}"`, 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
const args = argv.slice(1);
|
||||||
|
if (hasFlag(args, "--help", "-h")) {
|
||||||
|
printCommandHelp(def);
|
||||||
|
return { handler: async () => 0, args: [] };
|
||||||
|
}
|
||||||
|
|
||||||
|
return { handler: def.handler, args };
|
||||||
|
};
|
||||||
|
|
||||||
|
const hasFlag = (argv: string[], flag: string, short: string) =>
|
||||||
|
argv.some((arg) => arg === flag || arg === short);
|
||||||
|
|
||||||
|
export const runCliAsync = async (argv: string[]): Promise<number> => {
|
||||||
|
if (hasFlag(argv, "--help", "-h") && argv.length === 1) {
|
||||||
|
printHelp();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hasFlag(argv, "--version", "-v")) {
|
||||||
|
console.log(VERSION);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (argv.length === 0) {
|
||||||
|
printHelp();
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { handler, args } = resolveHandler(argv);
|
||||||
|
return handler(args);
|
||||||
|
};
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import { randomBytes } from "node:crypto";
|
||||||
|
|
||||||
|
export const generateSecureRandomToken = (size: number) => randomBytes(size).toString("hex");
|
||||||
|
|
||||||
|
export const printTable = (headers: string[], rows: string[][]) => {
|
||||||
|
const widths = headers.map((h, i) =>
|
||||||
|
Math.max(h.length, ...rows.map((r) => (r[i] ?? "").length)),
|
||||||
|
);
|
||||||
|
|
||||||
|
const formatRow = (cells: string[]) =>
|
||||||
|
cells.map((cell, i) => cell.padEnd(widths[i]!)).join(" ");
|
||||||
|
|
||||||
|
console.log(formatRow(headers));
|
||||||
|
console.log(widths.map((w) => "─".repeat(w)).join(" "));
|
||||||
|
for (const row of rows) {
|
||||||
|
console.log(formatRow(row));
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
"./infrastructure/db": "./src/infrastructure/db/index.ts",
|
"./infrastructure/db": "./src/infrastructure/db/index.ts",
|
||||||
"./infrastructure/db/env": "./src/infrastructure/db/env.ts",
|
"./infrastructure/db/env": "./src/infrastructure/db/env.ts",
|
||||||
"./infrastructure/db/constants": "./src/infrastructure/db/constants.ts",
|
"./infrastructure/db/constants": "./src/infrastructure/db/constants.ts",
|
||||||
|
"./infrastructure/db/mapping": "./src/infrastructure/db/mapping.ts",
|
||||||
"./infrastructure/certificates": "./src/infrastructure/certificates/index.ts",
|
"./infrastructure/certificates": "./src/infrastructure/certificates/index.ts",
|
||||||
"./infrastructure/certificates/hostnames/db/sqlite": "./src/infrastructure/certificates/hostnames/db/sqlite.ts",
|
"./infrastructure/certificates/hostnames/db/sqlite": "./src/infrastructure/certificates/hostnames/db/sqlite.ts",
|
||||||
"./infrastructure/certificates/hostnames/db/mysql": "./src/infrastructure/certificates/hostnames/db/mysql.ts",
|
"./infrastructure/certificates/hostnames/db/mysql": "./src/infrastructure/certificates/hostnames/db/mysql.ts",
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import baseConfig from "@homarr/eslint-config/base";
|
||||||
|
|
||||||
|
/** @type {import('typescript-eslint').Config} */
|
||||||
|
export default [
|
||||||
|
{
|
||||||
|
ignores: [],
|
||||||
|
},
|
||||||
|
...baseConfig,
|
||||||
|
];
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"name": "@homarr/cron-job-api",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
".": "./src/index.ts",
|
||||||
|
"./env": "./src/env.ts",
|
||||||
|
"./constants": "./src/constants.ts",
|
||||||
|
"./client": "./src/client.ts"
|
||||||
|
},
|
||||||
|
"typesVersions": {
|
||||||
|
"*": {
|
||||||
|
"*": [
|
||||||
|
"src/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rm -rf .turbo node_modules",
|
||||||
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||||
|
"lint": "eslint",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
|
},
|
||||||
|
"prettier": "@homarr/prettier-config",
|
||||||
|
"dependencies": {
|
||||||
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
|
"@homarr/core": "workspace:^0.1.0",
|
||||||
|
"@homarr/cron-jobs": "workspace:^0.1.0",
|
||||||
|
"@tanstack/react-query": "catalog:",
|
||||||
|
"@trpc/client": "catalog:",
|
||||||
|
"@trpc/server": "catalog:",
|
||||||
|
"@trpc/tanstack-react-query": "catalog:",
|
||||||
|
"react": "catalog:",
|
||||||
|
"zod": "catalog:"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
|
"@types/react": "catalog:",
|
||||||
|
"eslint": "catalog:",
|
||||||
|
"typescript": "catalog:"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import { createTRPCClient, httpLink } from "@trpc/client";
|
||||||
|
|
||||||
|
import type { JobRouter } from ".";
|
||||||
|
import { CRON_JOB_API_KEY_HEADER, CRON_JOB_API_PATH, CRON_JOB_API_PORT } from "./constants";
|
||||||
|
import { env } from "./env";
|
||||||
|
|
||||||
|
export const cronJobApi = createTRPCClient<JobRouter>({
|
||||||
|
links: [
|
||||||
|
httpLink({
|
||||||
|
url: `${getBaseUrl()}${CRON_JOB_API_PATH}`,
|
||||||
|
headers: {
|
||||||
|
[CRON_JOB_API_KEY_HEADER]: env.CRON_JOB_API_KEY,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
|
function getBaseUrl() {
|
||||||
|
return `http://localhost:${CRON_JOB_API_PORT}`;
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export const CRON_JOB_API_PORT = 3002;
|
||||||
|
export const CRON_JOB_API_PATH = "/trpc";
|
||||||
|
export const CRON_JOB_API_KEY_HEADER = "cron-job-api-key";
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import { z } from "zod/v4";
|
||||||
|
|
||||||
|
import { env as commonEnv } from "@homarr/common/env";
|
||||||
|
import { createEnv } from "@homarr/core/infrastructure/env";
|
||||||
|
|
||||||
|
export const env = createEnv({
|
||||||
|
server: {
|
||||||
|
CRON_JOB_API_KEY: commonEnv.NODE_ENV === "development" ? z.string().default("test") : z.string(),
|
||||||
|
},
|
||||||
|
experimental__runtimeEnv: process.env,
|
||||||
|
});
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
import { initTRPC, TRPCError } from "@trpc/server";
|
||||||
|
import { z } from "zod/v4";
|
||||||
|
|
||||||
|
import type { JobGroupKeys } from "@homarr/cron-jobs";
|
||||||
|
import { jobGroup } from "@homarr/cron-jobs";
|
||||||
|
|
||||||
|
import { env } from "./env";
|
||||||
|
|
||||||
|
export const jobGroupKeys = jobGroup.getKeys();
|
||||||
|
export const jobNameSchema = z.enum(jobGroup.getKeys());
|
||||||
|
|
||||||
|
export interface IJobManager {
|
||||||
|
startAsync(name: JobGroupKeys): Promise<void>;
|
||||||
|
triggerAsync(name: JobGroupKeys): Promise<void>;
|
||||||
|
stop(name: JobGroupKeys): void;
|
||||||
|
updateIntervalAsync(name: JobGroupKeys, cron: string): Promise<void>;
|
||||||
|
disableAsync(name: JobGroupKeys): Promise<void>;
|
||||||
|
enableAsync(name: JobGroupKeys): Promise<void>;
|
||||||
|
getAllAsync(): Promise<
|
||||||
|
{
|
||||||
|
name: JobGroupKeys;
|
||||||
|
cron: string;
|
||||||
|
preventManualExecution: boolean;
|
||||||
|
preventCustomInterval: boolean;
|
||||||
|
isEnabled: boolean;
|
||||||
|
}[]
|
||||||
|
>;
|
||||||
|
}
|
||||||
|
|
||||||
|
const t = initTRPC
|
||||||
|
.context<{
|
||||||
|
manager: IJobManager;
|
||||||
|
apiKey?: string;
|
||||||
|
}>()
|
||||||
|
.create();
|
||||||
|
|
||||||
|
const createTrpcRouter = t.router;
|
||||||
|
const apiKeyProcedure = t.procedure.use(({ ctx, next }) => {
|
||||||
|
if (ctx.apiKey !== env.CRON_JOB_API_KEY) {
|
||||||
|
throw new TRPCError({
|
||||||
|
code: "FORBIDDEN",
|
||||||
|
message: "Missing or invalid API key",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return next({
|
||||||
|
ctx: {
|
||||||
|
...ctx,
|
||||||
|
apiKey: undefined, // Clear the API key after checking
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
export const jobRouter = createTrpcRouter({
|
||||||
|
start: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
||||||
|
await ctx.manager.startAsync(input);
|
||||||
|
}),
|
||||||
|
trigger: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
||||||
|
await ctx.manager.triggerAsync(input);
|
||||||
|
}),
|
||||||
|
stop: apiKeyProcedure.input(jobNameSchema).mutation(({ input, ctx }) => {
|
||||||
|
ctx.manager.stop(input);
|
||||||
|
}),
|
||||||
|
updateInterval: apiKeyProcedure
|
||||||
|
.input(
|
||||||
|
z.object({
|
||||||
|
name: jobNameSchema,
|
||||||
|
cron: z.string(),
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
.mutation(async ({ input, ctx }) => {
|
||||||
|
await ctx.manager.updateIntervalAsync(input.name, input.cron);
|
||||||
|
}),
|
||||||
|
disable: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
||||||
|
await ctx.manager.disableAsync(input);
|
||||||
|
}),
|
||||||
|
enable: apiKeyProcedure.input(jobNameSchema).mutation(async ({ input, ctx }) => {
|
||||||
|
await ctx.manager.enableAsync(input);
|
||||||
|
}),
|
||||||
|
getAll: apiKeyProcedure.query(({ ctx }) => {
|
||||||
|
return ctx.manager.getAllAsync();
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
||||||
|
export type JobRouter = typeof jobRouter;
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"extends": "@homarr/tsconfig/base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||||
|
},
|
||||||
|
"include": ["*.ts", "src"],
|
||||||
|
"exclude": ["node_modules"]
|
||||||
|
}
|
||||||
@@ -5,8 +5,7 @@
|
|||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./index.ts",
|
".": "./index.ts"
|
||||||
"./job-manager": "./src/job-manager.ts"
|
|
||||||
},
|
},
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
"*": {
|
"*": {
|
||||||
@@ -39,8 +38,7 @@
|
|||||||
"@homarr/server-settings": "workspace:^0.1.0",
|
"@homarr/server-settings": "workspace:^0.1.0",
|
||||||
"@homarr/translation": "workspace:^0.1.0",
|
"@homarr/translation": "workspace:^0.1.0",
|
||||||
"@homarr/validation": "workspace:^0.1.0",
|
"@homarr/validation": "workspace:^0.1.0",
|
||||||
"semver-parser": "catalog:",
|
"semver-parser": "catalog:"
|
||||||
"zod": "catalog:"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
|
|||||||
@@ -28,45 +28,34 @@ import { updateCheckerJob } from "./jobs/update-checker";
|
|||||||
import { weatherJob } from "./jobs/weather";
|
import { weatherJob } from "./jobs/weather";
|
||||||
import { createCronJobGroup } from "./lib";
|
import { createCronJobGroup } from "./lib";
|
||||||
|
|
||||||
const getJobGroup = () => {
|
export const jobGroup = createCronJobGroup({
|
||||||
return createCronJobGroup({
|
analytics: analyticsJob,
|
||||||
analytics: analyticsJob,
|
iconsUpdater: iconsUpdaterJob,
|
||||||
iconsUpdater: iconsUpdaterJob,
|
ping: pingJob,
|
||||||
ping: pingJob,
|
smartHomeEntityState: smartHomeEntityStateJob,
|
||||||
smartHomeEntityState: smartHomeEntityStateJob,
|
mediaServer: mediaServerJob,
|
||||||
mediaServer: mediaServerJob,
|
mediaOrganizer: mediaOrganizerJob,
|
||||||
mediaOrganizer: mediaOrganizerJob,
|
downloads: downloadsJob,
|
||||||
downloads: downloadsJob,
|
dnsHole: dnsHoleJob,
|
||||||
dnsHole: dnsHoleJob,
|
mediaRequestStats: mediaRequestStatsJob,
|
||||||
mediaRequestStats: mediaRequestStatsJob,
|
mediaRequestList: mediaRequestListJob,
|
||||||
mediaRequestList: mediaRequestListJob,
|
rssFeeds: rssFeedsJob,
|
||||||
rssFeeds: rssFeedsJob,
|
indexerManager: indexerManagerJob,
|
||||||
indexerManager: indexerManagerJob,
|
healthMonitoring: healthMonitoringJob,
|
||||||
healthMonitoring: healthMonitoringJob,
|
updateChecker: updateCheckerJob,
|
||||||
updateChecker: updateCheckerJob,
|
mediaTranscoding: mediaTranscodingJob,
|
||||||
mediaTranscoding: mediaTranscodingJob,
|
minecraftServerStatus: minecraftServerStatusJob,
|
||||||
minecraftServerStatus: minecraftServerStatusJob,
|
dockerContainers: dockerContainersJob,
|
||||||
dockerContainers: dockerContainersJob,
|
networkController: networkControllerJob,
|
||||||
networkController: networkControllerJob,
|
firewallCpu: firewallCpuJob,
|
||||||
firewallCpu: firewallCpuJob,
|
firewallMemory: firewallMemoryJob,
|
||||||
firewallMemory: firewallMemoryJob,
|
firewallVersion: firewallVersionJob,
|
||||||
firewallVersion: firewallVersionJob,
|
firewallInterfaces: firewallInterfacesJob,
|
||||||
firewallInterfaces: firewallInterfacesJob,
|
refreshNotifications: refreshNotificationsJob,
|
||||||
refreshNotifications: refreshNotificationsJob,
|
weather: weatherJob,
|
||||||
weather: weatherJob,
|
timetable: timetableJob,
|
||||||
timetable: timetableJob,
|
tracearr: tracearrJob,
|
||||||
tracearr: tracearrJob,
|
umamiActiveVisitors: umamiActiveVisitorsJob,
|
||||||
umamiActiveVisitors: umamiActiveVisitorsJob,
|
});
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
// Add global type augmentation for homarr
|
|
||||||
declare global {
|
|
||||||
var cronJobs: ReturnType<typeof getJobGroup> | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
global.cronJobs ??= getJobGroup();
|
|
||||||
|
|
||||||
export const jobGroup = global.cronJobs;
|
|
||||||
|
|
||||||
export type JobGroupKeys = ReturnType<(typeof jobGroup)["getKeys"]>[number];
|
export type JobGroupKeys = ReturnType<(typeof jobGroup)["getKeys"]>[number];
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { InferSelectModel } from "drizzle-orm";
|
import type { InferSelectModel } from "drizzle-orm";
|
||||||
|
|
||||||
import { createSchema } from "@homarr/core/infrastructure/db";
|
import { createDbMapping as createSchema } from "@homarr/core/infrastructure/db/mapping";
|
||||||
|
|
||||||
import * as mysqlSchema from "./mysql";
|
import * as mysqlSchema from "./mysql";
|
||||||
import * as pgSchema from "./postgresql";
|
import * as pgSchema from "./postgresql";
|
||||||
|
|||||||
@@ -93,7 +93,6 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/tags/roles"
|
| "/docs/tags/roles"
|
||||||
| "/docs/tags/search"
|
| "/docs/tags/search"
|
||||||
| "/docs/tags/search-engines"
|
| "/docs/tags/search-engines"
|
||||||
| "/docs/tags/secrets"
|
|
||||||
| "/docs/tags/security"
|
| "/docs/tags/security"
|
||||||
| "/docs/tags/self-signed"
|
| "/docs/tags/self-signed"
|
||||||
| "/docs/tags/seo"
|
| "/docs/tags/seo"
|
||||||
@@ -199,7 +198,6 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/integrations/tracearr"
|
| "/docs/integrations/tracearr"
|
||||||
| "/docs/integrations/transmission"
|
| "/docs/integrations/transmission"
|
||||||
| "/docs/integrations/truenas"
|
| "/docs/integrations/truenas"
|
||||||
| "/docs/integrations/umami"
|
|
||||||
| "/docs/integrations/unifi-controller"
|
| "/docs/integrations/unifi-controller"
|
||||||
| "/docs/integrations/unraid"
|
| "/docs/integrations/unraid"
|
||||||
| "/docs/management/api"
|
| "/docs/management/api"
|
||||||
@@ -246,7 +244,6 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/widgets/system-resources"
|
| "/docs/widgets/system-resources"
|
||||||
| "/docs/widgets/timetable"
|
| "/docs/widgets/timetable"
|
||||||
| "/docs/widgets/tracearr"
|
| "/docs/widgets/tracearr"
|
||||||
| "/docs/widgets/umami"
|
|
||||||
| "/docs/widgets/video"
|
| "/docs/widgets/video"
|
||||||
| "/docs/widgets/weather"
|
| "/docs/widgets/weather"
|
||||||
| ""
|
| ""
|
||||||
|
|||||||
@@ -376,6 +376,7 @@ export const integrationDefs = {
|
|||||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/umami.svg",
|
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/umami.svg",
|
||||||
category: ["analytics"],
|
category: ["analytics"],
|
||||||
defaultUrl: "https://api.umami.is/v1",
|
defaultUrl: "https://api.umami.is/v1",
|
||||||
|
// @ts-expect-error - docs page will be created when integration is merged
|
||||||
documentationUrl: createDocumentationLink("/docs/integrations/umami"),
|
documentationUrl: createDocumentationLink("/docs/integrations/umami"),
|
||||||
},
|
},
|
||||||
// This integration only returns mock data, it is used during development (but can also be used in production by directly going to the create page)
|
// This integration only returns mock data, it is used during development (but can also be used in production by directly going to the create page)
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": ""
|
"label": ""
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -159,7 +159,7 @@
|
|||||||
"label": "在新标签页中打开搜索结果"
|
"label": "在新标签页中打开搜索结果"
|
||||||
},
|
},
|
||||||
"ddgBangs": {
|
"ddgBangs": {
|
||||||
"label": "启用 DuckDuckGo bangs"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
@@ -252,10 +252,10 @@
|
|||||||
"changeDdgBangs": {
|
"changeDdgBangs": {
|
||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
"message": "DuckDuckGo bangs 切换成功"
|
"message": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"message": "无法切换 DuckDuckGo bangs"
|
"message": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1093,7 +1093,7 @@
|
|||||||
},
|
},
|
||||||
"colorScheme": {
|
"colorScheme": {
|
||||||
"options": {
|
"options": {
|
||||||
"auto": "自动",
|
"auto": "",
|
||||||
"light": "日间",
|
"light": "日间",
|
||||||
"dark": "暗黑"
|
"dark": "暗黑"
|
||||||
}
|
}
|
||||||
@@ -1540,13 +1540,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"timetable": {
|
"timetable": {
|
||||||
"name": "时刻表",
|
"name": "",
|
||||||
"description": "显示车站的出发时间",
|
"description": "",
|
||||||
"title": "出发时间 {station}",
|
"title": "",
|
||||||
"noStation": "未选择车站",
|
"noStation": "",
|
||||||
"option": {
|
"option": {
|
||||||
"station": {
|
"station": {
|
||||||
"label": "车站"
|
"label": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1621,11 +1621,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"anchorNote": {
|
"anchorNote": {
|
||||||
"name": "锚点笔记",
|
"name": "",
|
||||||
"description": "显示来自锚点的所选笔记",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"noteId": {
|
"noteId": {
|
||||||
"label": "笔记"
|
"label": ""
|
||||||
},
|
},
|
||||||
"showTitle": {
|
"showTitle": {
|
||||||
"label": "显示标题"
|
"label": "显示标题"
|
||||||
@@ -1637,16 +1637,16 @@
|
|||||||
"empty": "选择要显示的笔记",
|
"empty": "选择要显示的笔记",
|
||||||
"emptyContent": "此笔记没有内容",
|
"emptyContent": "此笔记没有内容",
|
||||||
"notFound": "未找到笔记",
|
"notFound": "未找到笔记",
|
||||||
"noNotes": "未找到笔记",
|
"noNotes": "",
|
||||||
"integrationRequired": "请先选择锚点集成",
|
"integrationRequired": "",
|
||||||
"updatedAt": "更新时间:{date}",
|
"updatedAt": "更新时间:{date}",
|
||||||
"untitled": "未命名",
|
"untitled": "未命名",
|
||||||
"edit": "编辑",
|
"edit": "编辑",
|
||||||
"save": "保存",
|
"save": "保存",
|
||||||
"cancel": "取消",
|
"cancel": "取消",
|
||||||
"readOnlyViewer": "您对该笔记只有查看权限,编辑已禁用。",
|
"readOnlyViewer": "",
|
||||||
"saveForbidden": "您没有编辑此笔记的权限。",
|
"saveForbidden": "",
|
||||||
"saveFailed": "保存此笔记失败,请重试。"
|
"saveFailed": ""
|
||||||
},
|
},
|
||||||
"iframe": {
|
"iframe": {
|
||||||
"name": "iFrame",
|
"name": "iFrame",
|
||||||
@@ -1680,7 +1680,7 @@
|
|||||||
"label": "允许地理位置"
|
"label": "允许地理位置"
|
||||||
},
|
},
|
||||||
"allowModals": {
|
"allowModals": {
|
||||||
"label": "允许弹窗"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
@@ -2056,156 +2056,156 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tracearr": {
|
"tracearr": {
|
||||||
"name": "Tracearr",
|
"name": "",
|
||||||
"description": "增强型媒体服务器监控,提供详细的流与转码数据",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"showStreams": {
|
"showStreams": {
|
||||||
"label": "显示活跃流"
|
"label": ""
|
||||||
},
|
},
|
||||||
"showStats": {
|
"showStats": {
|
||||||
"label": "显示统计摘要"
|
"label": ""
|
||||||
},
|
},
|
||||||
"showRecentActivity": {
|
"showRecentActivity": {
|
||||||
"label": "显示近期活动"
|
"label": ""
|
||||||
},
|
},
|
||||||
"showViolations": {
|
"showViolations": {
|
||||||
"label": "显示违规记录"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stats": {
|
"stats": {
|
||||||
"activeStreams": "活跃流",
|
"activeStreams": "",
|
||||||
"totalUsers": "总用户数",
|
"totalUsers": "",
|
||||||
"transcodes": "转码数",
|
"transcodes": "",
|
||||||
"bandwidth": "带宽"
|
"bandwidth": ""
|
||||||
},
|
},
|
||||||
"streams": {
|
"streams": {
|
||||||
"empty": "无活跃流",
|
"empty": "",
|
||||||
"user": "用户",
|
"user": "",
|
||||||
"media": "媒体",
|
"media": "",
|
||||||
"state": "状态",
|
"state": "",
|
||||||
"quality": "画质",
|
"quality": "",
|
||||||
"device": "设备",
|
"device": "",
|
||||||
"progress": "进度",
|
"progress": "",
|
||||||
"videoDecision": {
|
"videoDecision": {
|
||||||
"directPlay": "直接播放",
|
"directPlay": "",
|
||||||
"transcode": "转码",
|
"transcode": "",
|
||||||
"directStream": "直接串流"
|
"directStream": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"recentActivity": {
|
"recentActivity": {
|
||||||
"title": "近期活动",
|
"title": "",
|
||||||
"empty": "暂无近期活动",
|
"empty": "",
|
||||||
"watched": "已观看",
|
"watched": "",
|
||||||
"partial": "部分观看"
|
"partial": ""
|
||||||
},
|
},
|
||||||
"violations": {
|
"violations": {
|
||||||
"title": "违规记录",
|
"title": "",
|
||||||
"empty": "暂无近期违规",
|
"empty": "",
|
||||||
"rule": "规则",
|
"rule": "",
|
||||||
"user": "用户"
|
"user": ""
|
||||||
},
|
},
|
||||||
"noSectionsEnabled": "未启用任何分区",
|
"noSectionsEnabled": "",
|
||||||
"error": {
|
"error": {
|
||||||
"noIntegration": "未配置 Tracearr 集成",
|
"noIntegration": "",
|
||||||
"internalServerError": "获取 Tracearr 数据失败"
|
"internalServerError": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"umami": {
|
"umami": {
|
||||||
"name": "Umami 分析",
|
"name": "",
|
||||||
"description": "显示来自 Umami 分析实例的访客统计",
|
"description": "",
|
||||||
"visitors": "访客",
|
"visitors": "",
|
||||||
"active": "活跃",
|
"active": "",
|
||||||
"pageviews": "浏览量",
|
"pageviews": "",
|
||||||
"visits": "访问数",
|
"visits": "",
|
||||||
"bounceRate": "跳出率",
|
"bounceRate": "",
|
||||||
"avgDuration": "平均",
|
"avgDuration": "",
|
||||||
"option": {
|
"option": {
|
||||||
"websiteId": {
|
"websiteId": {
|
||||||
"label": "网站",
|
"label": "",
|
||||||
"description": "选择您的 Umami 实例所追踪的网站",
|
"description": "",
|
||||||
"placeholder": "选择一个网站",
|
"placeholder": "",
|
||||||
"loading": "正在加载网站……",
|
"loading": "",
|
||||||
"noWebsites": "未找到网站",
|
"noWebsites": "",
|
||||||
"configureIntegrationFirst": "请先添加 Umami 集成"
|
"configureIntegrationFirst": ""
|
||||||
},
|
},
|
||||||
"timeFrame": {
|
"timeFrame": {
|
||||||
"label": "时间范围",
|
"label": "",
|
||||||
"description": "用于展示访客数据的时间段",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"today": "今天",
|
"today": "",
|
||||||
"24h": "过去 24 小时",
|
"24h": "",
|
||||||
"7d": "过去 7 天",
|
"7d": "",
|
||||||
"30d": "过去 30 天",
|
"30d": "",
|
||||||
"month": "本月",
|
"month": "",
|
||||||
"lastMonth": "上月"
|
"lastMonth": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eventName": {
|
"eventName": {
|
||||||
"label": "事件",
|
"label": "",
|
||||||
"description": "显示特定事件的总发生次数",
|
"description": "",
|
||||||
"placeholder": "选择一个事件",
|
"placeholder": "",
|
||||||
"loading": "正在加载事件……",
|
"loading": "",
|
||||||
"noEvents": "未找到事件",
|
"noEvents": "",
|
||||||
"none": "无事件",
|
"none": "",
|
||||||
"configureWebsiteFirst": "请先选择网站以加载事件"
|
"configureWebsiteFirst": ""
|
||||||
},
|
},
|
||||||
"chartType": {
|
"chartType": {
|
||||||
"label": "图表类型",
|
"label": "",
|
||||||
"description": "图表的显示样式",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"bar": "条形图",
|
"bar": "",
|
||||||
"sparkline": "迷你趋势图"
|
"sparkline": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chartStyle": {
|
"chartStyle": {
|
||||||
"label": "图表样式",
|
"label": "",
|
||||||
"description": "如何在图表中显示事件序列",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"grouped": "并排",
|
"grouped": "",
|
||||||
"overlay": "叠加(子集)"
|
"overlay": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"viewMode": {
|
"viewMode": {
|
||||||
"label": "视图",
|
"label": "",
|
||||||
"description": "组件主体中要显示的内容",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"chart": "图表",
|
"chart": "",
|
||||||
"events": "事件图表",
|
"events": "",
|
||||||
"topPages": "热门页面",
|
"topPages": "",
|
||||||
"topReferrers": "热门来源"
|
"topReferrers": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eventNames": {
|
"eventNames": {
|
||||||
"label": "事件",
|
"label": "",
|
||||||
"description": "选择一个或多个要图表化的事件",
|
"description": "",
|
||||||
"placeholder": "选择事件……",
|
"placeholder": "",
|
||||||
"loading": "正在加载事件……",
|
"loading": "",
|
||||||
"noEvents": "未找到事件",
|
"noEvents": "",
|
||||||
"configureWebsiteFirst": "请先选择网站以加载事件"
|
"configureWebsiteFirst": ""
|
||||||
},
|
},
|
||||||
"topCount": {
|
"topCount": {
|
||||||
"label": "显示数量",
|
"label": "",
|
||||||
"description": "要显示的热门项目数量(最大 500)"
|
"description": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"event": {
|
"event": {
|
||||||
"occurrences": "事件",
|
"occurrences": "",
|
||||||
"label": "事件"
|
"label": ""
|
||||||
},
|
},
|
||||||
"topPages": {
|
"topPages": {
|
||||||
"direct": "直接"
|
"direct": ""
|
||||||
},
|
},
|
||||||
"topReferrers": {
|
"topReferrers": {
|
||||||
"direct": "直接"
|
"direct": ""
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"selectPrompt": "选择要图表化的事件"
|
"selectPrompt": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"noIntegration": "未配置 Umami 集成",
|
"noIntegration": "",
|
||||||
"noWebsite": "未配置网站",
|
"noWebsite": "",
|
||||||
"noData": "无可用数据",
|
"noData": "",
|
||||||
"internalServerError": "获取 Umami 数据失败"
|
"internalServerError": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -2304,50 +2304,50 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"immich-serverStats": {
|
"immich-serverStats": {
|
||||||
"name": "Immich 服务器统计",
|
"name": "",
|
||||||
"description": "有关您的 Immich 实例的信息",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"showUsers": {
|
"showUsers": {
|
||||||
"label": "显示用户",
|
"label": "",
|
||||||
"description": "显示实例上的用户数量"
|
"description": ""
|
||||||
},
|
},
|
||||||
"showPhotos": {
|
"showPhotos": {
|
||||||
"label": "显示图片",
|
"label": "显示图片",
|
||||||
"description": "显示实例上的照片数量"
|
"description": ""
|
||||||
},
|
},
|
||||||
"showVideos": {
|
"showVideos": {
|
||||||
"label": "显示视频",
|
"label": "显示视频",
|
||||||
"description": "显示实例上的视频数量"
|
"description": ""
|
||||||
},
|
},
|
||||||
"showStorage": {
|
"showStorage": {
|
||||||
"label": "显示存储",
|
"label": "显示存储",
|
||||||
"description": "显示已使用的总存储空间"
|
"description": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"users": "用户",
|
"users": "",
|
||||||
"photos": "照片",
|
"photos": "",
|
||||||
"videos": "视频",
|
"videos": "",
|
||||||
"storage": "已用存储"
|
"storage": ""
|
||||||
},
|
},
|
||||||
"immich-albumCarousel": {
|
"immich-albumCarousel": {
|
||||||
"name": "Immich 相册",
|
"name": "",
|
||||||
"option": {
|
"option": {
|
||||||
"albumId": {
|
"albumId": {
|
||||||
"label": "相册ID",
|
"label": "",
|
||||||
"description": "这是一个唯一标识符,用于指向您的 Immich 相册。您可以通过打开相册并从 URL 中复制那段唯一字符串来找到该 ID,例如:'a21aca09-9f05-47dc-b1a1-7b53c547226e'"
|
"description": ""
|
||||||
},
|
},
|
||||||
"rotationIntervalSeconds": {
|
"rotationIntervalSeconds": {
|
||||||
"label": "间隔(秒)",
|
"label": "",
|
||||||
"description": "每 X 秒切换一次相册中的图片。最小为 1,最大不得超过 3600。"
|
"description": ""
|
||||||
},
|
},
|
||||||
"showPhotoInfo": {
|
"showPhotoInfo": {
|
||||||
"label": "显示图片信息",
|
"label": "显示图片信息",
|
||||||
"description": "在幻灯片底部显示图片日期和当前索引"
|
"description": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Immich 相册图片幻灯片",
|
"description": "",
|
||||||
"noAlbumSelected": "未选择相册,请编辑组件并选择一个相册",
|
"noAlbumSelected": "",
|
||||||
"noPhotos": "此相册中没有照片"
|
"noPhotos": ""
|
||||||
},
|
},
|
||||||
"downloads": {
|
"downloads": {
|
||||||
"name": "下载客户端",
|
"name": "下载客户端",
|
||||||
@@ -2658,7 +2658,7 @@
|
|||||||
"label": "隐藏描述"
|
"label": "隐藏描述"
|
||||||
},
|
},
|
||||||
"showPosterImage": {
|
"showPosterImage": {
|
||||||
"label": "显示封面图"
|
"label": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2873,28 +2873,28 @@
|
|||||||
"option": {}
|
"option": {}
|
||||||
},
|
},
|
||||||
"speedtestTracker": {
|
"speedtestTracker": {
|
||||||
"name": "网速测试追踪器",
|
"name": "",
|
||||||
"description": "显示 网速测试追踪器 实例中的测速结果。",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"showLatestResult": {
|
"showLatestResult": {
|
||||||
"label": "显示最新结果"
|
"label": ""
|
||||||
},
|
},
|
||||||
"showStats": {
|
"showStats": {
|
||||||
"label": "显示平均值"
|
"label": ""
|
||||||
},
|
},
|
||||||
"showRecentResults": {
|
"showRecentResults": {
|
||||||
"label": "显示近期结果"
|
"label": ""
|
||||||
},
|
},
|
||||||
"showPingGraph": {
|
"showPingGraph": {
|
||||||
"label": "显示 Ping 图表"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latestResult": "最新结果",
|
"latestResult": "",
|
||||||
"averages": "平均值",
|
"averages": "",
|
||||||
"tests": "{count}次测试",
|
"tests": "",
|
||||||
"recentResults": "近期结果",
|
"recentResults": "",
|
||||||
"recentResultsSpeed": "速度",
|
"recentResultsSpeed": "",
|
||||||
"recentResultsPing": "Ping",
|
"recentResultsPing": "",
|
||||||
"download": "下载",
|
"download": "下载",
|
||||||
"upload": "上传",
|
"upload": "上传",
|
||||||
"ping": "Ping",
|
"ping": "Ping",
|
||||||
@@ -2902,13 +2902,13 @@
|
|||||||
"avgDownload": "平均下载",
|
"avgDownload": "平均下载",
|
||||||
"avgUpload": "平均上传",
|
"avgUpload": "平均上传",
|
||||||
"avgPing": "平均Ping",
|
"avgPing": "平均Ping",
|
||||||
"healthy": "健康",
|
"healthy": "",
|
||||||
"unhealthy": "不健康",
|
"unhealthy": "",
|
||||||
"ok": "正常",
|
"ok": "",
|
||||||
"fail": "失败",
|
"fail": "失败",
|
||||||
"noSectionsEnabled": "请在组件选项中至少启用一个模块。",
|
"noSectionsEnabled": "",
|
||||||
"error": {
|
"error": {
|
||||||
"internalServerError": "获取测速数据失败"
|
"internalServerError": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systemResources": {
|
"systemResources": {
|
||||||
@@ -3680,7 +3680,7 @@
|
|||||||
"defaultColorScheme": {
|
"defaultColorScheme": {
|
||||||
"label": "默认配色方案",
|
"label": "默认配色方案",
|
||||||
"options": {
|
"options": {
|
||||||
"auto": "自动",
|
"auto": "",
|
||||||
"light": "日间",
|
"light": "日间",
|
||||||
"dark": "暗黑"
|
"dark": "暗黑"
|
||||||
}
|
}
|
||||||
@@ -3708,7 +3708,7 @@
|
|||||||
"label": "Minecraft 服务状态"
|
"label": "Minecraft 服务状态"
|
||||||
},
|
},
|
||||||
"timetable": {
|
"timetable": {
|
||||||
"label": "时刻表"
|
"label": ""
|
||||||
},
|
},
|
||||||
"iconsUpdater": {
|
"iconsUpdater": {
|
||||||
"label": "图标更新"
|
"label": "图标更新"
|
||||||
@@ -3780,10 +3780,10 @@
|
|||||||
"label": "天气"
|
"label": "天气"
|
||||||
},
|
},
|
||||||
"tracearr": {
|
"tracearr": {
|
||||||
"label": "Tracearr"
|
"label": ""
|
||||||
},
|
},
|
||||||
"umamiActiveVisitors": {
|
"umamiActiveVisitors": {
|
||||||
"label": "Umami 活跃访客"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"interval": {
|
"interval": {
|
||||||
@@ -3907,8 +3907,8 @@
|
|||||||
"subtitle": "在许多语言中,有{count}人贡献了翻译"
|
"subtitle": "在许多语言中,有{count}人贡献了翻译"
|
||||||
},
|
},
|
||||||
"sponsors": {
|
"sponsors": {
|
||||||
"title": "赞助商",
|
"title": "",
|
||||||
"subtitle": "{count}人通过财务方式支持该项目"
|
"subtitle": ""
|
||||||
},
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"title": "相关的库",
|
"title": "相关的库",
|
||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "端口"
|
"label": "端口"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": "宿主机"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
@@ -4499,7 +4496,7 @@
|
|||||||
"title": "全局命令",
|
"title": "全局命令",
|
||||||
"option": {
|
"option": {
|
||||||
"colorScheme": {
|
"colorScheme": {
|
||||||
"auto": "切换外观模式",
|
"auto": "",
|
||||||
"light": "切换到日间模式",
|
"light": "切换到日间模式",
|
||||||
"dark": "切换到暗黑模式"
|
"dark": "切换到暗黑模式"
|
||||||
},
|
},
|
||||||
@@ -4551,13 +4548,13 @@
|
|||||||
"group": {
|
"group": {
|
||||||
"searchEngine": {
|
"searchEngine": {
|
||||||
"title": "搜索引擎",
|
"title": "搜索引擎",
|
||||||
"tipDdgBangs": "提示:你也可以在此使用任何 DuckDuckGo Bangs,例如 !something",
|
"tipDdgBangs": "",
|
||||||
"bang": {
|
"bang": {
|
||||||
"searchWithQuery": "使用“‘’{query}”搜索“{label}”",
|
"searchWithQuery": "",
|
||||||
"pressEnterToOpen": "按 Enter 键打开",
|
"pressEnterToOpen": "",
|
||||||
"engineSelected": "已选择{label}({bang})",
|
"engineSelected": "",
|
||||||
"typeQueryToContinue": "输入搜索查询以继续",
|
"typeQueryToContinue": "",
|
||||||
"emptyBangHint": "输入 bang,例如 !yt,然后按空格键进行选择"
|
"emptyBangHint": ""
|
||||||
},
|
},
|
||||||
"children": {
|
"children": {
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "crwdns1920:0crwdne1920:0"
|
"label": "crwdns1920:0crwdne1920:0"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": "crwdns4249:0crwdne4249:0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Porty"
|
"label": "Porty"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Porte"
|
"label": "Porte"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": ""
|
"label": ""
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Ports"
|
"label": "Ports"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Θύρες"
|
"label": "Θύρες"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": ""
|
"label": ""
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Puertos"
|
"label": "Puertos"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": ""
|
"label": ""
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Ports"
|
"label": "Ports"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "יציאות"
|
"label": "יציאות"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Portovi"
|
"label": "Portovi"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -159,7 +159,7 @@
|
|||||||
"label": "Nyissa meg a keresési eredményeket új ablakban"
|
"label": "Nyissa meg a keresési eredményeket új ablakban"
|
||||||
},
|
},
|
||||||
"ddgBangs": {
|
"ddgBangs": {
|
||||||
"label": "DuckDuckGo parancsok engedélyezése"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
@@ -252,10 +252,10 @@
|
|||||||
"changeDdgBangs": {
|
"changeDdgBangs": {
|
||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
"message": "DuckDuckGo parancsok sikeresen bekapcsolódott"
|
"message": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"message": "DuckDuckGo parancsokkat nem sikerült bekapcsolni"
|
"message": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1093,7 +1093,7 @@
|
|||||||
},
|
},
|
||||||
"colorScheme": {
|
"colorScheme": {
|
||||||
"options": {
|
"options": {
|
||||||
"auto": "Automatikus",
|
"auto": "",
|
||||||
"light": "Világos",
|
"light": "Világos",
|
||||||
"dark": "Sötét"
|
"dark": "Sötét"
|
||||||
}
|
}
|
||||||
@@ -2111,101 +2111,101 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"umami": {
|
"umami": {
|
||||||
"name": "Umami Analitika",
|
"name": "",
|
||||||
"description": "Umami elemzési rendszeréből származó látogatói statisztikák megjelenítése",
|
"description": "",
|
||||||
"visitors": "látogatók",
|
"visitors": "",
|
||||||
"active": "aktív",
|
"active": "",
|
||||||
"pageviews": "oldalletöltések",
|
"pageviews": "",
|
||||||
"visits": "látogatások",
|
"visits": "",
|
||||||
"bounceRate": "visszapattan",
|
"bounceRate": "",
|
||||||
"avgDuration": "átl",
|
"avgDuration": "",
|
||||||
"option": {
|
"option": {
|
||||||
"websiteId": {
|
"websiteId": {
|
||||||
"label": "Honlap",
|
"label": "",
|
||||||
"description": "Válasszon ki egy olyan webhelyet, amelyet az Ön Umami-példánya követ",
|
"description": "",
|
||||||
"placeholder": "Válasszon ki egy weboldalt",
|
"placeholder": "",
|
||||||
"loading": "Weboldalak betöltése...",
|
"loading": "",
|
||||||
"noWebsites": "Nem található weboldal",
|
"noWebsites": "",
|
||||||
"configureIntegrationFirst": "Először csatlakoztassa az Umami integrációt"
|
"configureIntegrationFirst": ""
|
||||||
},
|
},
|
||||||
"timeFrame": {
|
"timeFrame": {
|
||||||
"label": "Időkeret",
|
"label": "",
|
||||||
"description": "Látogatói adatok megjelenítésének időtartama",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"today": "Ma",
|
"today": "",
|
||||||
"24h": "Elmúlt 24 óra",
|
"24h": "",
|
||||||
"7d": "Elmúlt 7 nap",
|
"7d": "",
|
||||||
"30d": "Elmúlt 30 nap",
|
"30d": "",
|
||||||
"month": "Ez a hónap",
|
"month": "",
|
||||||
"lastMonth": "Előző hónap"
|
"lastMonth": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eventName": {
|
"eventName": {
|
||||||
"label": "Esemény",
|
"label": "",
|
||||||
"description": "Egy adott esemény összes előfordulásának megjelenítése",
|
"description": "",
|
||||||
"placeholder": "Válasszon ki egy eseményt",
|
"placeholder": "",
|
||||||
"loading": "Események betöltése...",
|
"loading": "",
|
||||||
"noEvents": "Nem található esemény",
|
"noEvents": "",
|
||||||
"none": "Nincs esemény",
|
"none": "",
|
||||||
"configureWebsiteFirst": "Először válasszon ki egy weboldalt az események betöltéséhez"
|
"configureWebsiteFirst": ""
|
||||||
},
|
},
|
||||||
"chartType": {
|
"chartType": {
|
||||||
"label": "Diagramtípus",
|
"label": "",
|
||||||
"description": "A diagram megjelenítési stílusa",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"bar": "Oszlopdiagram",
|
"bar": "",
|
||||||
"sparkline": "Mikrodiagram"
|
"sparkline": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chartStyle": {
|
"chartStyle": {
|
||||||
"label": "Diagramstílus",
|
"label": "",
|
||||||
"description": "Hogyan jeleníthetjük meg az eseménysorozatot a diagramon",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"grouped": "Egymás mellett",
|
"grouped": "",
|
||||||
"overlay": "Átfedés (részhalmaz)"
|
"overlay": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"viewMode": {
|
"viewMode": {
|
||||||
"label": "Megtekintés",
|
"label": "",
|
||||||
"description": "Mit jelenítsen meg a widget törzse",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"chart": "Ábra",
|
"chart": "",
|
||||||
"events": "Eseménynaptár",
|
"events": "",
|
||||||
"topPages": "Legnépszerűbb oldalak",
|
"topPages": "",
|
||||||
"topReferrers": "Legjobb hivatkozások"
|
"topReferrers": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eventNames": {
|
"eventNames": {
|
||||||
"label": "Események",
|
"label": "",
|
||||||
"description": "Válasszon ki egy vagy több eseményt a grafikonhoz",
|
"description": "",
|
||||||
"placeholder": "Események kiválasztása...",
|
"placeholder": "",
|
||||||
"loading": "Események betöltése...",
|
"loading": "",
|
||||||
"noEvents": "Nem található esemény",
|
"noEvents": "",
|
||||||
"configureWebsiteFirst": "Először válasszon ki egy weboldalt az események betöltéséhez"
|
"configureWebsiteFirst": ""
|
||||||
},
|
},
|
||||||
"topCount": {
|
"topCount": {
|
||||||
"label": "Items to show",
|
"label": "",
|
||||||
"description": "Megjelenítendő legnépszerűbb elemek száma (max. 500)"
|
"description": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"event": {
|
"event": {
|
||||||
"occurrences": "események",
|
"occurrences": "",
|
||||||
"label": "események"
|
"label": ""
|
||||||
},
|
},
|
||||||
"topPages": {
|
"topPages": {
|
||||||
"direct": "Közvetlen"
|
"direct": ""
|
||||||
},
|
},
|
||||||
"topReferrers": {
|
"topReferrers": {
|
||||||
"direct": "Közvetlen"
|
"direct": ""
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"selectPrompt": "Válassza ki a grafikonra felveendő eseményeket"
|
"selectPrompt": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"noIntegration": "Nincs beállítva az Umami-integráció",
|
"noIntegration": "",
|
||||||
"noWebsite": "Nincs beállított webhely",
|
"noWebsite": "",
|
||||||
"noData": "Nincs elérhető adat",
|
"noData": "",
|
||||||
"internalServerError": "Umami-adatok letöltése nem sikerült"
|
"internalServerError": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -2745,15 +2745,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"importForm": {
|
"importForm": {
|
||||||
"title": "Importálás a Docker-ből"
|
"title": ""
|
||||||
},
|
},
|
||||||
"example": {
|
"example": {
|
||||||
"label": "Példa"
|
"label": ""
|
||||||
},
|
},
|
||||||
"invalid": "A tároló meghatározása érvénytelen, kérjük, ellenőrizze az értékeket",
|
"invalid": "",
|
||||||
"noProvider": {
|
"noProvider": {
|
||||||
"label": "Nincs Szolgáltató",
|
"label": "",
|
||||||
"tooltip": "A szolgáltató adatai nem értelmezhetők; kérjük, az importálás után állítsa be azokat manuálisan"
|
"tooltip": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2826,34 +2826,34 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"integrationsDisconnected": "Nincs elérhető adat, az összes integráció le van választva",
|
"integrationsDisconnected": "",
|
||||||
"unknownContentOption": "A hálózati állapot-widget ismeretlen tartalmi beállítása: "
|
"unknownContentOption": ""
|
||||||
},
|
},
|
||||||
"name": "Hálózat állapota",
|
"name": "",
|
||||||
"description": "A hálózathoz csatlakozó eszközök megjelenítése"
|
"description": ""
|
||||||
},
|
},
|
||||||
"networkController": {
|
"networkController": {
|
||||||
"error": {
|
"error": {
|
||||||
"internalServerError": "A hálózati vezérlő összefoglalójának letöltése nem sikerült"
|
"internalServerError": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"firewall": {
|
"firewall": {
|
||||||
"name": "Tűzfal-felügyelet",
|
"name": "",
|
||||||
"description": "Megjeleníti a tűzfalak összefoglalóját",
|
"description": "",
|
||||||
"tab": {
|
"tab": {
|
||||||
"system": "Rendszer",
|
"system": "",
|
||||||
"interfaces": "Interfészek"
|
"interfaces": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"internalServerError": "Nem sikerült adatokat lekérni a tűzfalról"
|
"internalServerError": ""
|
||||||
},
|
},
|
||||||
"option": {
|
"option": {
|
||||||
"interfaces": "Megjelenítendő hálózati interfészek"
|
"interfaces": ""
|
||||||
},
|
},
|
||||||
"widget": {
|
"widget": {
|
||||||
"fwname": "Név",
|
"fwname": "",
|
||||||
"version": "Verzió",
|
"version": "",
|
||||||
"versiontitle": "Verziók",
|
"versiontitle": "",
|
||||||
"cputitle": "CPU használat",
|
"cputitle": "CPU használat",
|
||||||
"memorytitle": "Memória használat",
|
"memorytitle": "Memória használat",
|
||||||
"cpu": "CPU",
|
"cpu": "CPU",
|
||||||
@@ -2942,63 +2942,63 @@
|
|||||||
"cpu": "CPU",
|
"cpu": "CPU",
|
||||||
"memory": "RAM",
|
"memory": "RAM",
|
||||||
"gpu": "GPU",
|
"gpu": "GPU",
|
||||||
"network": "NET",
|
"network": "",
|
||||||
"up": "FÖNN",
|
"up": "",
|
||||||
"down": "LENN"
|
"down": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systemDisks": {
|
"systemDisks": {
|
||||||
"name": "Rendszer lemezek",
|
"name": "",
|
||||||
"description": "A rendszer lemezhasználata",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"showTemperatureIfAvailable": {
|
"showTemperatureIfAvailable": {
|
||||||
"label": "Ha elérhető, mutassa a hőmérsékletet"
|
"label": ""
|
||||||
},
|
},
|
||||||
"displayMode": {
|
"displayMode": {
|
||||||
"label": "Megjelenítési mód",
|
"label": "",
|
||||||
"option": {
|
"option": {
|
||||||
"percentage": {
|
"percentage": {
|
||||||
"label": "Százalék (pl: 76%)"
|
"label": ""
|
||||||
},
|
},
|
||||||
"absolute": {
|
"absolute": {
|
||||||
"label": "Abszolút értékek (pl. 800 Gb / 1 Tb)"
|
"label": ""
|
||||||
},
|
},
|
||||||
"free": {
|
"free": {
|
||||||
"label": "A szabad hely aránya (pl. 24% szabad)"
|
"label": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"showBackgroundBar": {
|
"showBackgroundBar": {
|
||||||
"label": "Háttérhasználati sáv megjelenítése"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"unhealthy": "Hibás"
|
"unhealthy": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"widgetPreview": {
|
"widgetPreview": {
|
||||||
"toggle": {
|
"toggle": {
|
||||||
"enabled": "Szerkesztési mód engedélyezve",
|
"enabled": "",
|
||||||
"disabled": "Szerkesztési mód tiltva"
|
"disabled": ""
|
||||||
},
|
},
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
"title": "Dimenzió váltása"
|
"title": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"board": {
|
"board": {
|
||||||
"action": {
|
"action": {
|
||||||
"duplicate": {
|
"duplicate": {
|
||||||
"title": "Tábla duplikálása",
|
"title": "",
|
||||||
"message": "Ezzel a {name} tábla teljes tartalmával együtt duplikálódik. Ha a widgetek olyan integrációkra hivatkoznak, amelyek használata nem engedélyezett, azok eltávolításra kerülnek.",
|
"message": "",
|
||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
"title": "Tábla duplikálva",
|
"title": "",
|
||||||
"message": "A tábla sikeresen duplikálódott"
|
"message": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"title": "Nem lehet duplikálni a táblát",
|
"title": "",
|
||||||
"message": "Nem tudtam duplikálni a táblát"
|
"message": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -3006,44 +3006,44 @@
|
|||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
"title": "A módosítások sikeresen alkalmazva",
|
"title": "A módosítások sikeresen alkalmazva",
|
||||||
"message": "A tábla sikeresen elmentve"
|
"message": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"title": "Nem sikerült alkalmazni a változtatásokat",
|
"title": "Nem sikerült alkalmazni a változtatásokat",
|
||||||
"message": "A táblát nem sikerült elmenteni"
|
"message": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"confirmLeave": {
|
"confirmLeave": {
|
||||||
"title": "Mentetlen változtatások",
|
"title": "",
|
||||||
"message": "Nem mentett változtatásai vannak, biztosan el akarja hagyni az oldalt?"
|
"message": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oldImport": {
|
"oldImport": {
|
||||||
"label": "Importálás a homarr 1.0.0 előtti verzióból",
|
"label": "",
|
||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
"title": "Sikeres importálás",
|
"title": "",
|
||||||
"message": "A tábla sikeresen importálva"
|
"message": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"title": "Importálás nem sikerült",
|
"title": "",
|
||||||
"message": "Táblát nem sikerült importálni; további részletekért nézd meg a naplófájlokat"
|
"message": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"file": {
|
"file": {
|
||||||
"label": "JSON fájl kiválasztása",
|
"label": "",
|
||||||
"invalidError": "Érvénytelen konfigurációs fájl"
|
"invalidError": ""
|
||||||
},
|
},
|
||||||
"apps": {
|
"apps": {
|
||||||
"label": "Alkalmazások",
|
"label": "Alkalmazások",
|
||||||
"avoidDuplicates": {
|
"avoidDuplicates": {
|
||||||
"label": "Kerülje az ismétlődéseket",
|
"label": "",
|
||||||
"description": "Nem veszi figyelembe azokat az alkalmazásokat, amelyeknél már létezik azonos href-vel rendelkező alkalmazás"
|
"description": ""
|
||||||
},
|
},
|
||||||
"onlyImportApps": {
|
"onlyImportApps": {
|
||||||
"label": "Csak alkalmazások importálása",
|
"label": "",
|
||||||
"description": "Csak az alkalmazásokat adja hozzá, a táblát manuálisan kell újra létrehozni"
|
"description": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
@@ -3272,15 +3272,15 @@
|
|||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"private": {
|
"private": {
|
||||||
"title": "Nyilvános tábla készítése",
|
"title": "",
|
||||||
"description": "Biztosan nyilvánossá szeretnéd tenni ezt a fórumot? Ezzel a fórum mindenki számára elérhetővé válik."
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"label": "Törölje ezt a táblát",
|
"label": "",
|
||||||
"description": "",
|
"description": "",
|
||||||
"button": "Törölje ezt a táblát",
|
"button": "",
|
||||||
"confirm": {
|
"confirm": {
|
||||||
"title": "Tábla törlése",
|
"title": "Tábla törlése",
|
||||||
"description": ""
|
"description": ""
|
||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Portok"
|
"label": "Portok"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -159,7 +159,7 @@
|
|||||||
"label": "Apri risultati di ricerca in una nuova scheda"
|
"label": "Apri risultati di ricerca in una nuova scheda"
|
||||||
},
|
},
|
||||||
"ddgBangs": {
|
"ddgBangs": {
|
||||||
"label": "Abilita bangs DuckDuckGo"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
@@ -252,10 +252,10 @@
|
|||||||
"changeDdgBangs": {
|
"changeDdgBangs": {
|
||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
"message": "DuckDuckGo bangs attivato con successo"
|
"message": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"message": "Impossibile attivare i bangs DuckDuckGo"
|
"message": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1093,7 +1093,7 @@
|
|||||||
},
|
},
|
||||||
"colorScheme": {
|
"colorScheme": {
|
||||||
"options": {
|
"options": {
|
||||||
"auto": "Automatico",
|
"auto": "",
|
||||||
"light": "Chiaro",
|
"light": "Chiaro",
|
||||||
"dark": "Scuro"
|
"dark": "Scuro"
|
||||||
}
|
}
|
||||||
@@ -2111,101 +2111,101 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"umami": {
|
"umami": {
|
||||||
"name": "Umami Analytics",
|
"name": "",
|
||||||
"description": "Visualizza le statistiche dei visitatori dall'istanza Umami analytics",
|
"description": "",
|
||||||
"visitors": "visitatori",
|
"visitors": "",
|
||||||
"active": "attivo",
|
"active": "",
|
||||||
"pageviews": "pagine viste",
|
"pageviews": "",
|
||||||
"visits": "visite",
|
"visits": "",
|
||||||
"bounceRate": "rimbalzo",
|
"bounceRate": "",
|
||||||
"avgDuration": "media",
|
"avgDuration": "",
|
||||||
"option": {
|
"option": {
|
||||||
"websiteId": {
|
"websiteId": {
|
||||||
"label": "Sito web",
|
"label": "",
|
||||||
"description": "Seleziona un sito web tracciato dalla tua istanza di Umami",
|
"description": "",
|
||||||
"placeholder": "Seleziona un sito web",
|
"placeholder": "",
|
||||||
"loading": "Caricamento siti web...",
|
"loading": "",
|
||||||
"noWebsites": "Nessun sito web trovato",
|
"noWebsites": "",
|
||||||
"configureIntegrationFirst": "Connetti prima un'integrazione Umami"
|
"configureIntegrationFirst": ""
|
||||||
},
|
},
|
||||||
"timeFrame": {
|
"timeFrame": {
|
||||||
"label": "Intervallo di tempo",
|
"label": "",
|
||||||
"description": "Il periodo di tempo per visualizzare i dati dei visitatori per",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"today": "Oggi",
|
"today": "",
|
||||||
"24h": "Ultime 24 ore",
|
"24h": "",
|
||||||
"7d": "Ultimi 7 giorni",
|
"7d": "",
|
||||||
"30d": "Ultimi 30 giorni",
|
"30d": "",
|
||||||
"month": "Questo mese",
|
"month": "",
|
||||||
"lastMonth": "Mese precedente"
|
"lastMonth": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eventName": {
|
"eventName": {
|
||||||
"label": "Evento",
|
"label": "",
|
||||||
"description": "Mostra le occorrenze totali di un evento specifico",
|
"description": "",
|
||||||
"placeholder": "Seleziona un evento",
|
"placeholder": "",
|
||||||
"loading": "Caricamento eventi...",
|
"loading": "",
|
||||||
"noEvents": "Nessun evento trovato",
|
"noEvents": "",
|
||||||
"none": "Nessun evento",
|
"none": "",
|
||||||
"configureWebsiteFirst": "Seleziona un sito web prima di caricare gli eventi"
|
"configureWebsiteFirst": ""
|
||||||
},
|
},
|
||||||
"chartType": {
|
"chartType": {
|
||||||
"label": "Tipo di grafico",
|
"label": "",
|
||||||
"description": "Stile di visualizzazione del grafico",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"bar": "Grafico a barre",
|
"bar": "",
|
||||||
"sparkline": "Grafico a linee compatto"
|
"sparkline": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chartStyle": {
|
"chartStyle": {
|
||||||
"label": "Stile del grafico",
|
"label": "",
|
||||||
"description": "Come visualizzare la serie di eventi nel grafico",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"grouped": "Affiancati",
|
"grouped": "",
|
||||||
"overlay": "Sovrapponi (subset)"
|
"overlay": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"viewMode": {
|
"viewMode": {
|
||||||
"label": "Vista",
|
"label": "",
|
||||||
"description": "Cosa mostrare nel corpo del widget",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"chart": "Grafico",
|
"chart": "",
|
||||||
"events": "Grafico degli eventi",
|
"events": "",
|
||||||
"topPages": "Pagine più visitate",
|
"topPages": "",
|
||||||
"topReferrers": "Referrer principali"
|
"topReferrers": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eventNames": {
|
"eventNames": {
|
||||||
"label": "Eventi",
|
"label": "",
|
||||||
"description": "Scegli uno o più eventi per il grafico",
|
"description": "",
|
||||||
"placeholder": "Seleziona eventi...",
|
"placeholder": "",
|
||||||
"loading": "Caricamento eventi...",
|
"loading": "",
|
||||||
"noEvents": "Nessun evento trovato",
|
"noEvents": "",
|
||||||
"configureWebsiteFirst": "Seleziona prima un sito web per caricare gli eventi"
|
"configureWebsiteFirst": ""
|
||||||
},
|
},
|
||||||
"topCount": {
|
"topCount": {
|
||||||
"label": "Elementi da mostrare",
|
"label": "",
|
||||||
"description": "Numero di elementi principali da visualizzare (max 500)"
|
"description": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"event": {
|
"event": {
|
||||||
"occurrences": "eventi",
|
"occurrences": "",
|
||||||
"label": "eventi"
|
"label": ""
|
||||||
},
|
},
|
||||||
"topPages": {
|
"topPages": {
|
||||||
"direct": "Diretto"
|
"direct": ""
|
||||||
},
|
},
|
||||||
"topReferrers": {
|
"topReferrers": {
|
||||||
"direct": "Diretto"
|
"direct": ""
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"selectPrompt": "Seleziona gli eventi per il grafico"
|
"selectPrompt": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"noIntegration": "Nessuna integrazione di Umami configurata",
|
"noIntegration": "",
|
||||||
"noWebsite": "Nessun sito web configurato",
|
"noWebsite": "",
|
||||||
"noData": "Nessun dato disponibile",
|
"noData": "",
|
||||||
"internalServerError": "Recupero dati Umami fallito"
|
"internalServerError": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -3680,7 +3680,7 @@
|
|||||||
"defaultColorScheme": {
|
"defaultColorScheme": {
|
||||||
"label": "Schema colore predefinito",
|
"label": "Schema colore predefinito",
|
||||||
"options": {
|
"options": {
|
||||||
"auto": "Automatico",
|
"auto": "",
|
||||||
"light": "Chiaro",
|
"light": "Chiaro",
|
||||||
"dark": "Scuro"
|
"dark": "Scuro"
|
||||||
}
|
}
|
||||||
@@ -3783,7 +3783,7 @@
|
|||||||
"label": "Tracearr"
|
"label": "Tracearr"
|
||||||
},
|
},
|
||||||
"umamiActiveVisitors": {
|
"umamiActiveVisitors": {
|
||||||
"label": "Visitatori Attivi Umami"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"interval": {
|
"interval": {
|
||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Porte"
|
"label": "Porte"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": "Host"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
@@ -4499,7 +4496,7 @@
|
|||||||
"title": "Comandi generali",
|
"title": "Comandi generali",
|
||||||
"option": {
|
"option": {
|
||||||
"colorScheme": {
|
"colorScheme": {
|
||||||
"auto": "Attiva/Disattiva modalità aspetto",
|
"auto": "",
|
||||||
"light": "Passa al tema chiaro",
|
"light": "Passa al tema chiaro",
|
||||||
"dark": "Passa al tema scuro"
|
"dark": "Passa al tema scuro"
|
||||||
},
|
},
|
||||||
@@ -4551,13 +4548,13 @@
|
|||||||
"group": {
|
"group": {
|
||||||
"searchEngine": {
|
"searchEngine": {
|
||||||
"title": "Motori di ricerca",
|
"title": "Motori di ricerca",
|
||||||
"tipDdgBangs": "Suggerimento: puoi usare anche i bang di DuckDuckGo, ad esempio !qualcosa",
|
"tipDdgBangs": "",
|
||||||
"bang": {
|
"bang": {
|
||||||
"searchWithQuery": "Cerca \"{query}\" con {label}",
|
"searchWithQuery": "",
|
||||||
"pressEnterToOpen": "Premere Invio per aprire",
|
"pressEnterToOpen": "",
|
||||||
"engineSelected": "{label} selezionato (!{bang})",
|
"engineSelected": "",
|
||||||
"typeQueryToContinue": "Digita la tua query di ricerca per continuare",
|
"typeQueryToContinue": "",
|
||||||
"emptyBangHint": "Digita un bang, ad es. !yt, poi premi Spazio per selezionare"
|
"emptyBangHint": ""
|
||||||
},
|
},
|
||||||
"children": {
|
"children": {
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "ポート"
|
"label": "ポート"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "포트"
|
"label": "포트"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Prievadai"
|
"label": "Prievadai"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": ""
|
"label": ""
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Poorten"
|
"label": "Poorten"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -159,7 +159,7 @@
|
|||||||
"label": "Åpne søkeresultater i ny fane"
|
"label": "Åpne søkeresultater i ny fane"
|
||||||
},
|
},
|
||||||
"ddgBangs": {
|
"ddgBangs": {
|
||||||
"label": "Aktiver DuckDuckGo bangs"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
@@ -252,10 +252,10 @@
|
|||||||
"changeDdgBangs": {
|
"changeDdgBangs": {
|
||||||
"notification": {
|
"notification": {
|
||||||
"success": {
|
"success": {
|
||||||
"message": "DuckDuckGo bangs er endret vellykket"
|
"message": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"message": "Kan ikke slå av/på DuckDuckGo bangs"
|
"message": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1093,7 +1093,7 @@
|
|||||||
},
|
},
|
||||||
"colorScheme": {
|
"colorScheme": {
|
||||||
"options": {
|
"options": {
|
||||||
"auto": "Auto",
|
"auto": "",
|
||||||
"light": "Lys",
|
"light": "Lys",
|
||||||
"dark": "Mørk"
|
"dark": "Mørk"
|
||||||
}
|
}
|
||||||
@@ -2111,101 +2111,101 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"umami": {
|
"umami": {
|
||||||
"name": "Umami Analytics",
|
"name": "",
|
||||||
"description": "Vise besøkende statistikk fra din Umami-analyseinstans",
|
"description": "",
|
||||||
"visitors": "besøkende",
|
"visitors": "",
|
||||||
"active": "aktiv",
|
"active": "",
|
||||||
"pageviews": "sidevisninger",
|
"pageviews": "",
|
||||||
"visits": "besøk",
|
"visits": "",
|
||||||
"bounceRate": "tilbakesende",
|
"bounceRate": "",
|
||||||
"avgDuration": "gjennomsnitt",
|
"avgDuration": "",
|
||||||
"option": {
|
"option": {
|
||||||
"websiteId": {
|
"websiteId": {
|
||||||
"label": "Nettsted",
|
"label": "",
|
||||||
"description": "Velg et nettsted som spores av Umami-instansen din",
|
"description": "",
|
||||||
"placeholder": "Velg en nettside",
|
"placeholder": "",
|
||||||
"loading": "Laster inn nettsteder...",
|
"loading": "",
|
||||||
"noWebsites": "Ingen nettsteder ble funnet",
|
"noWebsites": "",
|
||||||
"configureIntegrationFirst": "Koble til en Umami integrasjon først"
|
"configureIntegrationFirst": ""
|
||||||
},
|
},
|
||||||
"timeFrame": {
|
"timeFrame": {
|
||||||
"label": "Tidsramme",
|
"label": "",
|
||||||
"description": "Tidsperiode som skal vise besøkende data for",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"today": "I dag",
|
"today": "",
|
||||||
"24h": "Siste 24 timer",
|
"24h": "",
|
||||||
"7d": "Siste 7 dager",
|
"7d": "",
|
||||||
"30d": "Siste 30 dager",
|
"30d": "",
|
||||||
"month": "Denne måneden",
|
"month": "",
|
||||||
"lastMonth": "Siste måned"
|
"lastMonth": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eventName": {
|
"eventName": {
|
||||||
"label": "Hendelse",
|
"label": "",
|
||||||
"description": "Vis totale forekomster av en bestemt hendelse",
|
"description": "",
|
||||||
"placeholder": "Velg en hendelse",
|
"placeholder": "",
|
||||||
"loading": "Laster inn hendelser...",
|
"loading": "",
|
||||||
"noEvents": "Ingen hendelser funnet",
|
"noEvents": "",
|
||||||
"none": "Ingen hendelser",
|
"none": "",
|
||||||
"configureWebsiteFirst": "Velg en nettside først for å laste inn hendelser"
|
"configureWebsiteFirst": ""
|
||||||
},
|
},
|
||||||
"chartType": {
|
"chartType": {
|
||||||
"label": "Diagramtype",
|
"label": "",
|
||||||
"description": "Vis stil for diagrammet",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"bar": "Søylediagram",
|
"bar": "",
|
||||||
"sparkline": "Minigraf"
|
"sparkline": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chartStyle": {
|
"chartStyle": {
|
||||||
"label": "Diagramtype",
|
"label": "",
|
||||||
"description": "Hvordan vise hendelsesserier i diagrammet",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"grouped": "Side om side",
|
"grouped": "",
|
||||||
"overlay": "Overlegg (delmengde)"
|
"overlay": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"viewMode": {
|
"viewMode": {
|
||||||
"label": "Visning",
|
"label": "",
|
||||||
"description": "Hva skal vises i widgetkroppen",
|
"description": "",
|
||||||
"option": {
|
"option": {
|
||||||
"chart": "Diagram",
|
"chart": "",
|
||||||
"events": "Hendelser diagram",
|
"events": "",
|
||||||
"topPages": "Toppsider",
|
"topPages": "",
|
||||||
"topReferrers": "Topp referenter"
|
"topReferrers": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eventNames": {
|
"eventNames": {
|
||||||
"label": "Hendelser",
|
"label": "",
|
||||||
"description": "Velg ett eller flere hendelser i diagrammet",
|
"description": "",
|
||||||
"placeholder": "Velg en hendelse...",
|
"placeholder": "",
|
||||||
"loading": "Laster inn hendelser...",
|
"loading": "",
|
||||||
"noEvents": "Ingen hendelser funnet",
|
"noEvents": "",
|
||||||
"configureWebsiteFirst": "Velg en nettside først for å laste inn hendelser"
|
"configureWebsiteFirst": ""
|
||||||
},
|
},
|
||||||
"topCount": {
|
"topCount": {
|
||||||
"label": "Gjenstander å vise",
|
"label": "",
|
||||||
"description": "Antall oppføringer som skal vises (maks 500)"
|
"description": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"event": {
|
"event": {
|
||||||
"occurrences": "hendelser",
|
"occurrences": "",
|
||||||
"label": "hendelser"
|
"label": ""
|
||||||
},
|
},
|
||||||
"topPages": {
|
"topPages": {
|
||||||
"direct": "Direkte"
|
"direct": ""
|
||||||
},
|
},
|
||||||
"topReferrers": {
|
"topReferrers": {
|
||||||
"direct": "Direkte"
|
"direct": ""
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"selectPrompt": "Velg hendelser for å diagram"
|
"selectPrompt": ""
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"noIntegration": "Ingen Umami integrasjon konfigurert",
|
"noIntegration": "",
|
||||||
"noWebsite": "Ingen nettsted konfigurert",
|
"noWebsite": "",
|
||||||
"noData": "Ingen data tilgjengelig",
|
"noData": "",
|
||||||
"internalServerError": "Kunne ikke hente Umami data"
|
"internalServerError": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
@@ -3680,7 +3680,7 @@
|
|||||||
"defaultColorScheme": {
|
"defaultColorScheme": {
|
||||||
"label": "Standard fargetema",
|
"label": "Standard fargetema",
|
||||||
"options": {
|
"options": {
|
||||||
"auto": "Auto",
|
"auto": "",
|
||||||
"light": "Lys",
|
"light": "Lys",
|
||||||
"dark": "Mørk"
|
"dark": "Mørk"
|
||||||
}
|
}
|
||||||
@@ -3783,7 +3783,7 @@
|
|||||||
"label": "Tracearr"
|
"label": "Tracearr"
|
||||||
},
|
},
|
||||||
"umamiActiveVisitors": {
|
"umamiActiveVisitors": {
|
||||||
"label": "Umami Aktive Besøkende"
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"interval": {
|
"interval": {
|
||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Porter"
|
"label": "Porter"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": "Vert"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
@@ -4499,7 +4496,7 @@
|
|||||||
"title": "Globale kommandoer",
|
"title": "Globale kommandoer",
|
||||||
"option": {
|
"option": {
|
||||||
"colorScheme": {
|
"colorScheme": {
|
||||||
"auto": "Bytt visningsmodus",
|
"auto": "",
|
||||||
"light": "Bytt til lys modus",
|
"light": "Bytt til lys modus",
|
||||||
"dark": "Bytt til mørk modus"
|
"dark": "Bytt til mørk modus"
|
||||||
},
|
},
|
||||||
@@ -4551,13 +4548,13 @@
|
|||||||
"group": {
|
"group": {
|
||||||
"searchEngine": {
|
"searchEngine": {
|
||||||
"title": "Søkemotorer",
|
"title": "Søkemotorer",
|
||||||
"tipDdgBangs": "Tips: Du kan også bruke DuckDuckGo-bangs her, f.eks. !something",
|
"tipDdgBangs": "",
|
||||||
"bang": {
|
"bang": {
|
||||||
"searchWithQuery": "Søk etter \"{query}\" med {label}",
|
"searchWithQuery": "",
|
||||||
"pressEnterToOpen": "Trykk på Enter for å åpne",
|
"pressEnterToOpen": "",
|
||||||
"engineSelected": "{label} valgt (!{bang})",
|
"engineSelected": "",
|
||||||
"typeQueryToContinue": "Skriv inn søkeordet for å fortsette",
|
"typeQueryToContinue": "",
|
||||||
"emptyBangHint": "Skriv inn en bang, f.eks. !yt, og trykk deretter på mellomrom for å velge"
|
"emptyBangHint": ""
|
||||||
},
|
},
|
||||||
"children": {
|
"children": {
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Porty"
|
"label": "Porty"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Portas"
|
"label": "Portas"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": ""
|
"label": ""
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Porturi"
|
"label": "Porturi"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Порты"
|
"label": "Порты"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Porty"
|
"label": "Porty"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Vrata"
|
"label": "Vrata"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Portar"
|
"label": "Portar"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Bağlantı noktaları"
|
"label": "Bağlantı noktaları"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Порти"
|
"label": "Порти"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "Cổng"
|
"label": "Cổng"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -3970,9 +3970,6 @@
|
|||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"label": "端口"
|
"label": "端口"
|
||||||
},
|
|
||||||
"host": {
|
|
||||||
"label": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ const columnsRatios: Record<keyof ExtendedDownloadClientItem, number> = {
|
|||||||
id: 1,
|
id: 1,
|
||||||
index: 1,
|
index: 1,
|
||||||
integration: 1,
|
integration: 1,
|
||||||
name: 8,
|
name: 16,
|
||||||
progress: 4,
|
progress: 6,
|
||||||
ratio: 2,
|
ratio: 2,
|
||||||
received: 3,
|
received: 3,
|
||||||
sent: 3,
|
sent: 3,
|
||||||
|
|||||||
Generated
+1842
-1397
File diff suppressed because it is too large.
Load diff
+31
-31
@@ -34,45 +34,45 @@ catalog:
|
|||||||
"@mantine/spotlight": ^8.3.18
|
"@mantine/spotlight": ^8.3.18
|
||||||
"@mantine/tiptap": ^8.3.18
|
"@mantine/tiptap": ^8.3.18
|
||||||
"@million/lint": 1.0.14
|
"@million/lint": 1.0.14
|
||||||
"@next/eslint-plugin-next": 16.2.6
|
"@next/eslint-plugin-next": 16.2.4
|
||||||
"@octokit/auth-app": ^8.2.0
|
"@octokit/auth-app": ^8.2.0
|
||||||
"@paralleldrive/cuid2": ^3.3.0
|
"@paralleldrive/cuid2": ^3.3.0
|
||||||
"@semantic-release/changelog": ^6.0.3
|
"@semantic-release/changelog": ^6.0.3
|
||||||
"@semantic-release/commit-analyzer": ^13.0.1
|
"@semantic-release/commit-analyzer": ^13.0.1
|
||||||
"@semantic-release/git": ^10.0.1
|
"@semantic-release/git": ^10.0.1
|
||||||
"@semantic-release/github": ^12.0.8
|
"@semantic-release/github": ^12.0.6
|
||||||
"@semantic-release/npm": ^13.1.5
|
"@semantic-release/npm": ^13.1.5
|
||||||
"@semantic-release/release-notes-generator": ^14.1.1
|
"@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.44.0
|
"@tabler/icons-react": ^3.41.1
|
||||||
"@tanstack/react-query": ^5.100.9
|
"@tanstack/react-query": ^5.100.9
|
||||||
"@tanstack/react-query-devtools": ^5.100.9
|
"@tanstack/react-query-devtools": ^5.100.9
|
||||||
"@tanstack/react-query-next-experimental": ^5.100.9
|
"@tanstack/react-query-next-experimental": ^5.100.9
|
||||||
"@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.23.1
|
"@tiptap/extension-color": 3.22.5
|
||||||
"@tiptap/extension-highlight": 3.23.1
|
"@tiptap/extension-highlight": 3.22.5
|
||||||
"@tiptap/extension-image": 3.23.1
|
"@tiptap/extension-image": 3.22.5
|
||||||
"@tiptap/extension-link": ^3.23.1
|
"@tiptap/extension-link": ^3.22.5
|
||||||
"@tiptap/extension-placeholder": ^3.23.1
|
"@tiptap/extension-placeholder": ^3.22.5
|
||||||
"@tiptap/extension-table": 3.23.1
|
"@tiptap/extension-table": 3.22.5
|
||||||
"@tiptap/extension-table-cell": 3.23.1
|
"@tiptap/extension-table-cell": 3.22.5
|
||||||
"@tiptap/extension-table-header": 3.23.1
|
"@tiptap/extension-table-header": 3.22.5
|
||||||
"@tiptap/extension-table-row": 3.23.1
|
"@tiptap/extension-table-row": 3.22.5
|
||||||
"@tiptap/extension-task-item": 3.23.1
|
"@tiptap/extension-task-item": 3.22.5
|
||||||
"@tiptap/extension-task-list": 3.23.1
|
"@tiptap/extension-task-list": 3.22.5
|
||||||
"@tiptap/extension-text-align": 3.23.1
|
"@tiptap/extension-text-align": 3.22.5
|
||||||
"@tiptap/extension-text-style": 3.23.1
|
"@tiptap/extension-text-style": 3.22.5
|
||||||
"@tiptap/extension-underline": 3.23.1
|
"@tiptap/extension-underline": 3.22.5
|
||||||
"@tiptap/react": ^3.23.1
|
"@tiptap/react": ^3.22.5
|
||||||
"@tiptap/starter-kit": ^3.23.1
|
"@tiptap/starter-kit": ^3.22.5
|
||||||
"@trpc/client": ^11.17.0
|
"@trpc/client": ^11.17.0
|
||||||
"@trpc/next": ^11.17.0
|
"@trpc/next": ^11.17.0
|
||||||
"@trpc/react-query": ^11.17.0
|
"@trpc/react-query": ^11.17.0
|
||||||
"@trpc/server": ^11.17.0
|
"@trpc/server": ^11.17.0
|
||||||
"@trpc/tanstack-react-query": ^11.17.0
|
"@trpc/tanstack-react-query": ^11.17.0
|
||||||
"@turbo/gen": ^2.9.12
|
"@turbo/gen": ^2.9.8
|
||||||
"@types/adm-zip": 0.5.8
|
"@types/adm-zip": 0.5.8
|
||||||
"@types/bcrypt": 6.0.0
|
"@types/bcrypt": 6.0.0
|
||||||
"@types/better-sqlite3": 7.6.13
|
"@types/better-sqlite3": 7.6.13
|
||||||
@@ -81,7 +81,7 @@ catalog:
|
|||||||
"@types/crypto-js": ^4.2.2
|
"@types/crypto-js": ^4.2.2
|
||||||
"@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.3
|
"@types/node": ^24.12.2
|
||||||
"@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
|
||||||
@@ -123,19 +123,19 @@ catalog:
|
|||||||
esbuild: ^0.28.0
|
esbuild: ^0.28.0
|
||||||
eslint: ^10.3.0
|
eslint: ^10.3.0
|
||||||
eslint-config-prettier: ^10.1.8
|
eslint-config-prettier: ^10.1.8
|
||||||
eslint-config-turbo: ^2.9.12
|
eslint-config-turbo: ^2.9.8
|
||||||
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.3
|
fast-xml-parser: ^5.7.2
|
||||||
fastify: ^5.8.5
|
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.12.0
|
isomorphic-dompurify: ^3.12.0
|
||||||
jotai: ^2.20.0
|
jotai: ^2.19.1
|
||||||
jsdom: ^29.1.1
|
jsdom: ^29.1.1
|
||||||
json5: ^2.2.3
|
json5: ^2.2.3
|
||||||
ldapts: 8.1.7
|
ldapts: 8.1.7
|
||||||
@@ -144,9 +144,9 @@ catalog:
|
|||||||
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.3
|
mysql2: 3.22.3
|
||||||
next: 16.2.6
|
next: 16.2.4
|
||||||
next-auth: 5.0.0-beta.31
|
next-auth: 5.0.0-beta.31
|
||||||
next-intl: 4.11.1
|
next-intl: 4.11.0
|
||||||
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
|
||||||
@@ -155,8 +155,8 @@ catalog:
|
|||||||
prettier-plugin-packagejson: ^3.0.2
|
prettier-plugin-packagejson: ^3.0.2
|
||||||
prismjs: ^1.30.0
|
prismjs: ^1.30.0
|
||||||
proxmox-api: 1.1.1
|
proxmox-api: 1.1.1
|
||||||
react: 19.2.6
|
react: 19.2.5
|
||||||
react-dom: 19.2.6
|
react-dom: 19.2.5
|
||||||
react-error-boundary: ^6.1.1
|
react-error-boundary: ^6.1.1
|
||||||
react-markdown: ^10.1.0
|
react-markdown: ^10.1.0
|
||||||
react-quill-new: ^3.8.3
|
react-quill-new: ^3.8.3
|
||||||
@@ -171,9 +171,9 @@ catalog:
|
|||||||
testcontainers: ^11.14.0
|
testcontainers: ^11.14.0
|
||||||
timezones-ical-library: ^2.2.0
|
timezones-ical-library: ^2.2.0
|
||||||
trpc-to-openapi: ^3.2.0
|
trpc-to-openapi: ^3.2.0
|
||||||
tsdav: ^2.2.1
|
tsdav: ^2.2.0
|
||||||
tsx: 4.20.4
|
tsx: 4.20.4
|
||||||
turbo: ^2.9.12
|
turbo: ^2.9.8
|
||||||
typescript: ^5.9.3
|
typescript: ^5.9.3
|
||||||
typescript-eslint: ^8.58.2
|
typescript-eslint: ^8.58.2
|
||||||
undici: 7.24.6
|
undici: 7.24.6
|
||||||
|
|||||||
+11
-1
@@ -16,6 +16,8 @@ fi
|
|||||||
|
|
||||||
# Auth secret is generated every time the container starts as it is required, but not used because we don't need JWTs or Mail hashing
|
# Auth secret is generated every time the container starts as it is required, but not used because we don't need JWTs or Mail hashing
|
||||||
export AUTH_SECRET=$(openssl rand -base64 32)
|
export AUTH_SECRET=$(openssl rand -base64 32)
|
||||||
|
# Cron job API key is generated every time the container starts as it is required for communication between nextjs-api and tasks-api
|
||||||
|
export CRON_JOB_API_KEY=$(openssl rand -base64 32)
|
||||||
|
|
||||||
# Start nginx proxy
|
# Start nginx proxy
|
||||||
# 1. Replace the HOSTNAME in the nginx template file
|
# 1. Replace the HOSTNAME in the nginx template file
|
||||||
@@ -36,13 +38,21 @@ else
|
|||||||
REDIS_PID=$!
|
REDIS_PID=$!
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
node apps/tasks/tasks.cjs &
|
||||||
|
TASKS_PID=$!
|
||||||
|
|
||||||
|
node apps/websocket/wssServer.cjs &
|
||||||
|
WSS_PID=$!
|
||||||
|
|
||||||
node apps/nextjs/server.js &
|
node apps/nextjs/server.js &
|
||||||
NEXTJS_PID=$!
|
NEXTJS_PID=$!
|
||||||
|
|
||||||
# Function to handle SIGTERM and shut down services
|
# Function to handle SIGTERM and shut down services
|
||||||
terminate() {
|
terminate() {
|
||||||
echo "Received SIGTERM. Shutting down..."
|
echo "Received SIGTERM. Shutting down..."
|
||||||
kill -TERM $NGINX_PID $NEXTJS_PID 2>/dev/null
|
kill -TERM $NGINX_PID $TASKS_PID $WSS_PID $NEXTJS_PID 2>/dev/null
|
||||||
wait
|
wait
|
||||||
# kill redis-server last because of logging of other services and only if $REDIS_PID is set
|
# kill redis-server last because of logging of other services and only if $REDIS_PID is set
|
||||||
if [ -n "$REDIS_PID" ]; then
|
if [ -n "$REDIS_PID" ]; then
|
||||||
|
|||||||
@@ -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":"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
|
[{"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
|
||||||
Reference in new issue
Block a user