chore(release): automatic release v0.1.0
This commit is contained in:
@@ -37,17 +37,17 @@
|
||||
"@homarr/ui": "workspace:^0.1.0",
|
||||
"@homarr/validation": "workspace:^0.1.0",
|
||||
"@homarr/widgets": "workspace:^0.1.0",
|
||||
"@mantine/colors-generator": "^7.13.5",
|
||||
"@mantine/core": "^7.13.5",
|
||||
"@mantine/hooks": "^7.13.5",
|
||||
"@mantine/modals": "^7.13.5",
|
||||
"@mantine/tiptap": "^7.13.5",
|
||||
"@million/lint": "1.0.11",
|
||||
"@mantine/colors-generator": "^7.14.0",
|
||||
"@mantine/core": "^7.14.0",
|
||||
"@mantine/hooks": "^7.14.0",
|
||||
"@mantine/modals": "^7.14.0",
|
||||
"@mantine/tiptap": "^7.14.0",
|
||||
"@million/lint": "1.0.12",
|
||||
"@t3-oss/env-nextjs": "^0.11.1",
|
||||
"@tabler/icons-react": "^3.21.0",
|
||||
"@tanstack/react-query": "^5.59.20",
|
||||
"@tanstack/react-query-devtools": "^5.59.20",
|
||||
"@tanstack/react-query-next-experimental": "5.59.20",
|
||||
"@tabler/icons-react": "^3.22.0",
|
||||
"@tanstack/react-query": "^5.60.5",
|
||||
"@tanstack/react-query-devtools": "^5.60.5",
|
||||
"@tanstack/react-query-next-experimental": "5.60.5",
|
||||
"@trpc/client": "next",
|
||||
"@trpc/next": "next",
|
||||
"@trpc/react-query": "next",
|
||||
@@ -61,16 +61,16 @@
|
||||
"dotenv": "^16.4.5",
|
||||
"flag-icons": "^7.2.3",
|
||||
"glob": "^11.0.0",
|
||||
"jotai": "^2.10.1",
|
||||
"jotai": "^2.10.2",
|
||||
"mantine-react-table": "2.0.0-beta.7",
|
||||
"next": "^14.2.17",
|
||||
"next": "^14.2.18",
|
||||
"postcss-preset-mantine": "^1.17.0",
|
||||
"prismjs": "^1.29.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-error-boundary": "^4.1.2",
|
||||
"react-simple-code-editor": "^0.14.1",
|
||||
"sass": "^1.80.6",
|
||||
"sass": "^1.81.0",
|
||||
"superjson": "2.2.1",
|
||||
"swagger-ui-react": "^5.18.2",
|
||||
"use-deep-compare-effect": "^1.8.1"
|
||||
@@ -87,7 +87,7 @@
|
||||
"@types/swagger-ui-react": "^4.18.3",
|
||||
"concurrently": "^9.1.0",
|
||||
"eslint": "^9.14.0",
|
||||
"node-loader": "^2.0.0",
|
||||
"node-loader": "^2.1.0",
|
||||
"prettier": "^3.3.3",
|
||||
"typescript": "^5.6.3"
|
||||
}
|
||||
|
||||
@@ -21,8 +21,17 @@ import { clientApi } from "@homarr/api/client";
|
||||
|
||||
import { env } from "~/env.mjs";
|
||||
|
||||
const getWebSocketProtocol = () => {
|
||||
// window is not defined on server side
|
||||
if (typeof window === "undefined") {
|
||||
return "ws";
|
||||
}
|
||||
|
||||
return window.location.protocol === "https:" ? "wss" : "ws";
|
||||
};
|
||||
|
||||
const constructWebsocketUrl = () => {
|
||||
const fallback = "ws://localhost:3001/websockets";
|
||||
const fallback = `${getWebSocketProtocol()}://localhost:3001/websockets`;
|
||||
if (typeof window === "undefined") {
|
||||
return fallback;
|
||||
}
|
||||
@@ -31,7 +40,7 @@ const constructWebsocketUrl = () => {
|
||||
return fallback;
|
||||
}
|
||||
|
||||
return `ws://${window.location.hostname}:${window.location.port}/websockets`;
|
||||
return `${getWebSocketProtocol()}://${window.location.hostname}:${window.location.port}/websockets`;
|
||||
};
|
||||
|
||||
const wsClient = createWSClient({
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"dayjs": "^1.11.13",
|
||||
"dotenv": "^16.4.5",
|
||||
"superjson": "2.2.1",
|
||||
"undici": "6.20.1"
|
||||
"undici": "6.21.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||
|
||||
14
package.json
14
package.json
@@ -28,20 +28,20 @@
|
||||
"prettier": "@homarr/prettier-config",
|
||||
"devDependencies": {
|
||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||
"@turbo/gen": "^2.2.3",
|
||||
"@turbo/gen": "^2.3.0",
|
||||
"@vitejs/plugin-react": "^4.3.3",
|
||||
"@vitest/coverage-v8": "^2.1.4",
|
||||
"@vitest/ui": "^2.1.4",
|
||||
"@vitest/coverage-v8": "^2.1.5",
|
||||
"@vitest/ui": "^2.1.5",
|
||||
"cross-env": "^7.0.3",
|
||||
"jsdom": "^25.0.1",
|
||||
"prettier": "^3.3.3",
|
||||
"testcontainers": "^10.14.0",
|
||||
"turbo": "^2.2.3",
|
||||
"turbo": "^2.3.0",
|
||||
"typescript": "^5.6.3",
|
||||
"vite-tsconfig-paths": "^5.1.0",
|
||||
"vitest": "^2.1.4"
|
||||
"vite-tsconfig-paths": "^5.1.2",
|
||||
"vitest": "^2.1.5"
|
||||
},
|
||||
"packageManager": "pnpm@9.12.3",
|
||||
"packageManager": "pnpm@9.13.2",
|
||||
"engines": {
|
||||
"node": ">=22.11.0"
|
||||
},
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
"@trpc/react-query": "next",
|
||||
"@trpc/server": "next",
|
||||
"dockerode": "^4.0.2",
|
||||
"next": "^14.2.17",
|
||||
"next": "^14.2.18",
|
||||
"react": "^18.3.1",
|
||||
"superjson": "2.2.1",
|
||||
"trpc-swagger": "^1.2.6"
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"bcrypt": "^5.1.1",
|
||||
"cookies": "^0.9.1",
|
||||
"ldapts": "7.2.1",
|
||||
"next": "^14.2.17",
|
||||
"next": "^14.2.18",
|
||||
"next-auth": "5.0.0-beta.25",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
|
||||
@@ -27,9 +27,9 @@
|
||||
"dependencies": {
|
||||
"@homarr/log": "workspace:^0.1.0",
|
||||
"dayjs": "^1.11.13",
|
||||
"next": "^14.2.17",
|
||||
"next": "^14.2.18",
|
||||
"react": "^18.3.1",
|
||||
"tldts": "^6.1.59"
|
||||
"tldts": "^6.1.61"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
"@testcontainers/mysql": "^10.14.0",
|
||||
"better-sqlite3": "^11.5.0",
|
||||
"dotenv": "^16.4.5",
|
||||
"drizzle-kit": "^0.28.0",
|
||||
"drizzle-orm": "^0.36.1",
|
||||
"drizzle-kit": "^0.28.1",
|
||||
"drizzle-orm": "^0.36.3",
|
||||
"mysql2": "3.11.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"dependencies": {
|
||||
"@homarr/translation": "workspace:^0.1.0",
|
||||
"@homarr/validation": "workspace:^0.1.0",
|
||||
"@mantine/form": "^7.13.5"
|
||||
"@mantine/form": "^7.14.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"dependencies": {
|
||||
"@ctrl/deluge": "^6.1.0",
|
||||
"@ctrl/qbittorrent": "^9.0.1",
|
||||
"@ctrl/transmission": "^7.0.0",
|
||||
"@ctrl/transmission": "^7.1.0",
|
||||
"@homarr/common": "workspace:^0.1.0",
|
||||
"@homarr/db": "workspace:^0.1.0",
|
||||
"@homarr/definitions": "workspace:^0.1.0",
|
||||
|
||||
@@ -2,119 +2,35 @@ import { z } from "@homarr/validation";
|
||||
|
||||
export const queueSchema = z.object({
|
||||
queue: z.object({
|
||||
status: z.string(),
|
||||
speedlimit: z.string(),
|
||||
speedlimit_abs: z.string(),
|
||||
paused: z.boolean(),
|
||||
noofslots_total: z.number(),
|
||||
noofslots: z.number(),
|
||||
limit: z.number(),
|
||||
start: z.number(),
|
||||
timeleft: z.string(),
|
||||
speed: z.string(),
|
||||
kbpersec: z.string(),
|
||||
size: z.string(),
|
||||
sizeleft: z.string(),
|
||||
mb: z.string(),
|
||||
mbleft: z.string(),
|
||||
slots: z.array(
|
||||
z.object({
|
||||
status: z.string(),
|
||||
index: z.number(),
|
||||
password: z.string(),
|
||||
avg_age: z.string(),
|
||||
script: z.string(),
|
||||
has_rating: z.boolean().optional(),
|
||||
mb: z.string(),
|
||||
mbleft: z.string(),
|
||||
mbmissing: z.string(),
|
||||
size: z.string(),
|
||||
sizeleft: z.string(),
|
||||
filename: z.string(),
|
||||
labels: z.array(z.string().or(z.null())).or(z.null()).optional(),
|
||||
priority: z
|
||||
.number()
|
||||
.or(z.string())
|
||||
.transform((priority) => (typeof priority === "number" ? priority : parseInt(priority))),
|
||||
cat: z.string(),
|
||||
timeleft: z.string(),
|
||||
percentage: z.string(),
|
||||
nzo_id: z.string(),
|
||||
unpackopts: z.string(),
|
||||
}),
|
||||
),
|
||||
categories: z.array(z.string()).or(z.null()).optional(),
|
||||
scripts: z.array(z.string()).or(z.null()).optional(),
|
||||
diskspace1: z.string(),
|
||||
diskspace2: z.string(),
|
||||
diskspacetotal1: z.string(),
|
||||
diskspacetotal2: z.string(),
|
||||
diskspace1_norm: z.string(),
|
||||
diskspace2_norm: z.string(),
|
||||
have_warnings: z.string(),
|
||||
pause_int: z.string(),
|
||||
loadavg: z.string().optional(),
|
||||
left_quota: z.string(),
|
||||
version: z.string(),
|
||||
finish: z.number(),
|
||||
cache_art: z.string(),
|
||||
cache_size: z.string(),
|
||||
finishaction: z.null().optional(),
|
||||
paused_all: z.boolean(),
|
||||
quota: z.string(),
|
||||
have_quota: z.boolean(),
|
||||
queue_details: z.string().optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const historySchema = z.object({
|
||||
history: z.object({
|
||||
noofslots: z.number(),
|
||||
day_size: z.string(),
|
||||
week_size: z.string(),
|
||||
month_size: z.string(),
|
||||
total_size: z.string(),
|
||||
last_history_update: z.number(),
|
||||
slots: z.array(
|
||||
z.object({
|
||||
action_line: z.string(),
|
||||
series: z.string().or(z.null()).optional(),
|
||||
script_log: z.string().optional(),
|
||||
meta: z.null().optional(),
|
||||
fail_message: z.string(),
|
||||
loaded: z.boolean(),
|
||||
id: z.number().optional(),
|
||||
size: z.string(),
|
||||
category: z.string(),
|
||||
pp: z.string(),
|
||||
retry: z.number(),
|
||||
script: z.string(),
|
||||
nzb_name: z.string(),
|
||||
download_time: z.number(),
|
||||
storage: z.string(),
|
||||
has_rating: z.boolean().optional(),
|
||||
status: z.string(),
|
||||
script_line: z.string(),
|
||||
completed: z.number(),
|
||||
nzo_id: z.string(),
|
||||
downloaded: z.number(),
|
||||
report: z.string(),
|
||||
password: z.string().or(z.null()).optional(),
|
||||
path: z.string(),
|
||||
postproc_time: z.number(),
|
||||
name: z.string(),
|
||||
url: z.string().or(z.null()).optional(),
|
||||
md5sum: z.string(),
|
||||
bytes: z.number(),
|
||||
url_info: z.string(),
|
||||
stage_log: z
|
||||
.array(
|
||||
z.object({
|
||||
name: z.string(),
|
||||
actions: z.array(z.string()).or(z.null()).optional(),
|
||||
}),
|
||||
)
|
||||
.optional(),
|
||||
}),
|
||||
),
|
||||
}),
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"dependencies": {
|
||||
"ioredis": "5.4.1",
|
||||
"superjson": "2.2.1",
|
||||
"winston": "3.16.0"
|
||||
"winston": "3.17.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
"@homarr/translation": "workspace:^0.1.0",
|
||||
"@homarr/ui": "workspace:^0.1.0",
|
||||
"@homarr/validation": "workspace:^0.1.0",
|
||||
"@mantine/core": "^7.13.5",
|
||||
"@tabler/icons-react": "^3.21.0",
|
||||
"@mantine/core": "^7.14.0",
|
||||
"@tabler/icons-react": "^3.22.0",
|
||||
"dayjs": "^1.11.13",
|
||||
"next": "^14.2.17",
|
||||
"next": "^14.2.18",
|
||||
"react": "^18.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
"dependencies": {
|
||||
"@homarr/translation": "workspace:^0.1.0",
|
||||
"@homarr/ui": "workspace:^0.1.0",
|
||||
"@mantine/core": "^7.13.5",
|
||||
"@mantine/hooks": "^7.13.5",
|
||||
"@mantine/core": "^7.14.0",
|
||||
"@mantine/hooks": "^7.14.0",
|
||||
"react": "^18.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
"prettier": "@homarr/prettier-config",
|
||||
"dependencies": {
|
||||
"@homarr/ui": "workspace:^0.1.0",
|
||||
"@mantine/notifications": "^7.13.5",
|
||||
"@tabler/icons-react": "^3.21.0"
|
||||
"@mantine/notifications": "^7.14.0",
|
||||
"@tabler/icons-react": "^3.22.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||
|
||||
@@ -31,12 +31,12 @@
|
||||
"@homarr/modals-collection": "workspace:^0.1.0",
|
||||
"@homarr/translation": "workspace:^0.1.0",
|
||||
"@homarr/ui": "workspace:^0.1.0",
|
||||
"@mantine/core": "^7.13.5",
|
||||
"@mantine/hooks": "^7.13.5",
|
||||
"@mantine/spotlight": "^7.13.5",
|
||||
"@tabler/icons-react": "^3.21.0",
|
||||
"jotai": "^2.10.1",
|
||||
"next": "^14.2.17",
|
||||
"@mantine/core": "^7.14.0",
|
||||
"@mantine/hooks": "^7.14.0",
|
||||
"@mantine/spotlight": "^7.14.0",
|
||||
"@tabler/icons-react": "^3.22.0",
|
||||
"jotai": "^2.10.2",
|
||||
"next": "^14.2.18",
|
||||
"react": "^18.3.1",
|
||||
"use-deep-compare-effect": "^1.8.1"
|
||||
},
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
IconUsersGroup,
|
||||
} from "@tabler/icons-react";
|
||||
|
||||
import { useSession } from "@homarr/auth/client";
|
||||
import { useModalAction } from "@homarr/modals";
|
||||
import { AddBoardModal, AddGroupModal, ImportBoardModal, InviteCreateModal } from "@homarr/modals-collection";
|
||||
import { useScopedI18n } from "@homarr/translation/client";
|
||||
@@ -56,6 +57,7 @@ export const commandMode = {
|
||||
useOptions() {
|
||||
const tOption = useScopedI18n("search.mode.command.group.globalCommand.option");
|
||||
const { colorScheme } = useMantineColorScheme();
|
||||
const { data: session } = useSession();
|
||||
|
||||
const commands: (Command & { hidden?: boolean })[] = [
|
||||
{
|
||||
@@ -91,6 +93,7 @@ export const commandMode = {
|
||||
},
|
||||
};
|
||||
},
|
||||
hidden: !session?.user.permissions.includes("board-create"),
|
||||
},
|
||||
{
|
||||
commandKey: "importBoard",
|
||||
@@ -106,6 +109,7 @@ export const commandMode = {
|
||||
},
|
||||
};
|
||||
},
|
||||
hidden: !session?.user.permissions.includes("board-create"),
|
||||
},
|
||||
{
|
||||
commandKey: "newApp",
|
||||
@@ -118,12 +122,14 @@ export const commandMode = {
|
||||
icon: IconPlug,
|
||||
name: tOption("newIntegration.label"),
|
||||
useInteraction: interaction.children(newIntegrationChildrenOptions),
|
||||
hidden: !session?.user.permissions.includes("integration-create"),
|
||||
},
|
||||
{
|
||||
commandKey: "newUser",
|
||||
icon: IconUserPlus,
|
||||
name: tOption("newUser.label"),
|
||||
useInteraction: interaction.link(() => ({ href: "/manage/users/new" })),
|
||||
hidden: !session?.user.permissions.includes("admin"),
|
||||
},
|
||||
{
|
||||
commandKey: "newInvite",
|
||||
@@ -139,6 +145,7 @@ export const commandMode = {
|
||||
},
|
||||
};
|
||||
},
|
||||
hidden: !session?.user.permissions.includes("admin"),
|
||||
},
|
||||
{
|
||||
commandKey: "newGroup",
|
||||
@@ -154,6 +161,7 @@ export const commandMode = {
|
||||
},
|
||||
};
|
||||
},
|
||||
hidden: !session?.user.permissions.includes("admin"),
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
"dayjs": "^1.11.13",
|
||||
"deepmerge": "4.3.1",
|
||||
"mantine-react-table": "2.0.0-beta.7",
|
||||
"next": "^14.2.17",
|
||||
"next-intl": "3.25.0",
|
||||
"next": "^14.2.18",
|
||||
"next-intl": "3.25.1",
|
||||
"react": "^18.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -28,12 +28,12 @@
|
||||
"@homarr/log": "workspace:^0.1.0",
|
||||
"@homarr/translation": "workspace:^0.1.0",
|
||||
"@homarr/validation": "workspace:^0.1.0",
|
||||
"@mantine/core": "^7.13.5",
|
||||
"@mantine/dates": "^7.13.5",
|
||||
"@mantine/hooks": "^7.13.5",
|
||||
"@tabler/icons-react": "^3.21.0",
|
||||
"@mantine/core": "^7.14.0",
|
||||
"@mantine/dates": "^7.14.0",
|
||||
"@mantine/hooks": "^7.14.0",
|
||||
"@tabler/icons-react": "^3.22.0",
|
||||
"mantine-react-table": "2.0.0-beta.7",
|
||||
"next": "^14.2.17",
|
||||
"next": "^14.2.18",
|
||||
"react": "^18.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -40,9 +40,9 @@
|
||||
"@homarr/translation": "workspace:^0.1.0",
|
||||
"@homarr/ui": "workspace:^0.1.0",
|
||||
"@homarr/validation": "workspace:^0.1.0",
|
||||
"@mantine/core": "^7.13.5",
|
||||
"@mantine/hooks": "^7.13.5",
|
||||
"@tabler/icons-react": "^3.21.0",
|
||||
"@mantine/core": "^7.14.0",
|
||||
"@mantine/hooks": "^7.14.0",
|
||||
"@tabler/icons-react": "^3.22.0",
|
||||
"@tiptap/extension-color": "2.9.1",
|
||||
"@tiptap/extension-highlight": "2.9.1",
|
||||
"@tiptap/extension-image": "2.9.1",
|
||||
@@ -61,7 +61,7 @@
|
||||
"clsx": "^2.1.1",
|
||||
"dayjs": "^1.11.13",
|
||||
"mantine-react-table": "2.0.0-beta.7",
|
||||
"next": "^14.2.17",
|
||||
"next": "^14.2.18",
|
||||
"react": "^18.3.1",
|
||||
"video.js": "^8.19.1"
|
||||
},
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
import {
|
||||
ActionIcon,
|
||||
Box,
|
||||
Button,
|
||||
ColorPicker,
|
||||
ColorSwatch,
|
||||
@@ -65,12 +66,12 @@ import type { TablerIcon } from "@homarr/ui";
|
||||
import type { WidgetComponentProps } from "../definition";
|
||||
|
||||
const iconProps = {
|
||||
size: "1.25rem",
|
||||
size: "5cqmin",
|
||||
stroke: 1.5,
|
||||
};
|
||||
|
||||
const controlIconProps = {
|
||||
size: "1rem",
|
||||
size: "5cqmin",
|
||||
stroke: 1.5,
|
||||
};
|
||||
|
||||
@@ -232,7 +233,7 @@ export function Notebook({ options, isEditMode, boardId, itemId }: WidgetCompone
|
||||
}, [setIsEditing, handleEditToggleCallback]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Box>
|
||||
<RichTextEditor
|
||||
p={0}
|
||||
mt={0}
|
||||
@@ -394,7 +395,7 @@ export function Notebook({ options, isEditMode, boardId, itemId }: WidgetCompone
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
1932
pnpm-lock.yaml
generated
1932
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -16,14 +16,14 @@
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@next/eslint-plugin-next": "^14.2.17",
|
||||
"@next/eslint-plugin-next": "^14.2.18",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-config-turbo": "^2.2.3",
|
||||
"eslint-config-turbo": "^2.3.0",
|
||||
"eslint-plugin-import": "^2.31.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
"eslint-plugin-react": "^7.37.2",
|
||||
"eslint-plugin-react-hooks": "^5.0.0",
|
||||
"typescript-eslint": "^8.13.0"
|
||||
"typescript-eslint": "^8.14.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||
|
||||
Reference in New Issue
Block a user