panel-linter-fix
Some checks failed
Deploy on push / deploy (push) Failing after 2m15s

This commit is contained in:
2025-08-18 20:23:25 +03:00
parent 1b48675b92
commit e13267a868
14 changed files with 188 additions and 145 deletions

View File

@@ -1,5 +1,5 @@
{ {
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json", "$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
"files": { "files": {
"includes": [ "includes": [
"**/*.tsx", "**/*.tsx",

176
package-lock.json generated
View File

@@ -1,14 +1,14 @@
{ {
"name": "publy-panel", "name": "publy-panel",
"version": "0.9.5", "version": "0.9.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "publy-panel", "name": "publy-panel",
"version": "0.9.5", "version": "0.9.7",
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^2.1.2", "@biomejs/biome": "^2.2.0",
"@graphql-codegen/cli": "^5.0.7", "@graphql-codegen/cli": "^5.0.7",
"@graphql-codegen/client-preset": "^4.8.3", "@graphql-codegen/client-preset": "^4.8.3",
"@graphql-codegen/typescript": "^4.1.6", "@graphql-codegen/typescript": "^4.1.6",
@@ -21,9 +21,9 @@
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
"lightningcss": "^1.30.1", "lightningcss": "^1.30.1",
"prismjs": "^1.30.0", "prismjs": "^1.30.0",
"solid-js": "^1.9.7", "solid-js": "^1.9.9",
"terser": "^5.43.0", "terser": "^5.43.0",
"typescript": "^5.8.3", "typescript": "^5.9.2",
"vite": "^7.1.2", "vite": "^7.1.2",
"vite-plugin-solid": "^2.11.7" "vite-plugin-solid": "^2.11.7"
} }
@@ -2059,9 +2059,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@rollup/rollup-android-arm-eabi": { "node_modules/@rollup/rollup-android-arm-eabi": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.46.3.tgz",
"integrity": "sha512-Zj3Hl6sN34xJtMv7Anwb5Gu01yujyE/cLBDB2gnHTAHaWS1Z38L7kuSG+oAh0giZMqG060f/YBStXtMH6FvPMA==", "integrity": "sha512-UmTdvXnLlqQNOCJnyksjPs1G4GqXNGW1LrzCe8+8QoaLhhDeTXYBgJ3k6x61WIhlHX2U+VzEJ55TtIjR/HTySA==",
"cpu": [ "cpu": [
"arm" "arm"
], ],
@@ -2073,9 +2073,9 @@
] ]
}, },
"node_modules/@rollup/rollup-android-arm64": { "node_modules/@rollup/rollup-android-arm64": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.46.3.tgz",
"integrity": "sha512-nTeCWY83kN64oQ5MGz3CgtPx8NSOhC5lWtsjTs+8JAJNLcP3QbLCtDDgUKQc/Ro/frpMq4SHUaHN6AMltcEoLQ==", "integrity": "sha512-8NoxqLpXm7VyeI0ocidh335D6OKT0UJ6fHdnIxf3+6oOerZZc+O7r+UhvROji6OspyPm+rrIdb1gTXtVIqn+Sg==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -2087,9 +2087,9 @@
] ]
}, },
"node_modules/@rollup/rollup-darwin-arm64": { "node_modules/@rollup/rollup-darwin-arm64": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.46.3.tgz",
"integrity": "sha512-HV7bW2Fb/F5KPdM/9bApunQh68YVDU8sO8BvcW9OngQVN3HHHkw99wFupuUJfGR9pYLLAjcAOA6iO+evsbBaPQ==", "integrity": "sha512-csnNavqZVs1+7/hUKtgjMECsNG2cdB8F7XBHP6FfQjqhjF8rzMzb3SLyy/1BG7YSfQ+bG75Ph7DyedbUqwq1rA==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -2101,9 +2101,9 @@
] ]
}, },
"node_modules/@rollup/rollup-darwin-x64": { "node_modules/@rollup/rollup-darwin-x64": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.46.3.tgz",
"integrity": "sha512-SSj8TlYV5nJixSsm/y3QXfhspSiLYP11zpfwp6G/YDXctf3Xkdnk4woJIF5VQe0of2OjzTt8EsxnJDCdHd2xMA==", "integrity": "sha512-r2MXNjbuYabSIX5yQqnT8SGSQ26XQc8fmp6UhlYJd95PZJkQD1u82fWP7HqvGUf33IsOC6qsiV+vcuD4SDP6iw==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -2115,9 +2115,9 @@
] ]
}, },
"node_modules/@rollup/rollup-freebsd-arm64": { "node_modules/@rollup/rollup-freebsd-arm64": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.46.3.tgz",
"integrity": "sha512-ZyrsG4TIT9xnOlLsSSi9w/X29tCbK1yegE49RYm3tu3wF1L/B6LVMqnEWyDB26d9Ecx9zrmXCiPmIabVuLmNSg==", "integrity": "sha512-uluObTmgPJDuJh9xqxyr7MV61Imq+0IvVsAlWyvxAaBSNzCcmZlhfYcRhCdMaCsy46ccZa7vtDDripgs9Jkqsw==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -2129,9 +2129,9 @@
] ]
}, },
"node_modules/@rollup/rollup-freebsd-x64": { "node_modules/@rollup/rollup-freebsd-x64": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.46.3.tgz",
"integrity": "sha512-pCgHFoOECwVCJ5GFq8+gR8SBKnMO+xe5UEqbemxBpCKYQddRQMgomv1104RnLSg7nNvgKy05sLsY51+OVRyiVw==", "integrity": "sha512-AVJXEq9RVHQnejdbFvh1eWEoobohUYN3nqJIPI4mNTMpsyYN01VvcAClxflyk2HIxvLpRcRggpX1m9hkXkpC/A==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -2143,9 +2143,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm-gnueabihf": { "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.46.3.tgz",
"integrity": "sha512-EtP8aquZ0xQg0ETFcxUbU71MZlHaw9MChwrQzatiE8U/bvi5uv/oChExXC4mWhjiqK7azGJBqU0tt5H123SzVA==", "integrity": "sha512-byyflM+huiwHlKi7VHLAYTKr67X199+V+mt1iRgJenAI594vcmGGddWlu6eHujmcdl6TqSNnvqaXJqZdnEWRGA==",
"cpu": [ "cpu": [
"arm" "arm"
], ],
@@ -2157,9 +2157,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm-musleabihf": { "node_modules/@rollup/rollup-linux-arm-musleabihf": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.46.3.tgz",
"integrity": "sha512-qO7F7U3u1nfxYRPM8HqFtLd+raev2K137dsV08q/LRKRLEc7RsiDWihUnrINdsWQxPR9jqZ8DIIZ1zJJAm5PjQ==", "integrity": "sha512-aLm3NMIjr4Y9LklrH5cu7yybBqoVCdr4Nvnm8WB7PKCn34fMCGypVNpGK0JQWdPAzR/FnoEoFtlRqZbBBLhVoQ==",
"cpu": [ "cpu": [
"arm" "arm"
], ],
@@ -2171,9 +2171,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm64-gnu": { "node_modules/@rollup/rollup-linux-arm64-gnu": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.46.3.tgz",
"integrity": "sha512-3dRaqLfcOXYsfvw5xMrxAk9Lb1f395gkoBYzSFcc/scgRFptRXL9DOaDpMiehf9CO8ZDRJW2z45b6fpU5nwjng==", "integrity": "sha512-VtilE6eznJRDIoFOzaagQodUksTEfLIsvXymS+UdJiSXrPW7Ai+WG4uapAc3F7Hgs791TwdGh4xyOzbuzIZrnw==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -2185,9 +2185,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-arm64-musl": { "node_modules/@rollup/rollup-linux-arm64-musl": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.46.3.tgz",
"integrity": "sha512-fhHFTutA7SM+IrR6lIfiHskxmpmPTJUXpWIsBXpeEwNgZzZZSg/q4i6FU4J8qOGyJ0TR+wXBwx/L7Ho9z0+uDg==", "integrity": "sha512-dG3JuS6+cRAL0GQ925Vppafi0qwZnkHdPeuZIxIPXqkCLP02l7ka+OCyBoDEv8S+nKHxfjvjW4OZ7hTdHkx8/w==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -2199,9 +2199,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-loongarch64-gnu": { "node_modules/@rollup/rollup-linux-loongarch64-gnu": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.46.3.tgz",
"integrity": "sha512-i7wfGFXu8x4+FRqPymzjD+Hyav8l95UIZ773j7J7zRYc3Xsxy2wIn4x+llpunexXe6laaO72iEjeeGyUFmjKeA==", "integrity": "sha512-iU8DxnxEKJptf8Vcx4XvAUdpkZfaz0KWfRrnIRrOndL0SvzEte+MTM7nDH4A2Now4FvTZ01yFAgj6TX/mZl8hQ==",
"cpu": [ "cpu": [
"loong64" "loong64"
], ],
@@ -2213,9 +2213,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-ppc64-gnu": { "node_modules/@rollup/rollup-linux-ppc64-gnu": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.46.3.tgz",
"integrity": "sha512-B/l0dFcHVUnqcGZWKcWBSV2PF01YUt0Rvlurci5P+neqY/yMKchGU8ullZvIv5e8Y1C6wOn+U03mrDylP5q9Yw==", "integrity": "sha512-VrQZp9tkk0yozJoQvQcqlWiqaPnLM6uY1qPYXvukKePb0fqaiQtOdMJSxNFUZFsGw5oA5vvVokjHrx8a9Qsz2A==",
"cpu": [ "cpu": [
"ppc64" "ppc64"
], ],
@@ -2227,9 +2227,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-riscv64-gnu": { "node_modules/@rollup/rollup-linux-riscv64-gnu": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.46.3.tgz",
"integrity": "sha512-32k4ENb5ygtkMwPMucAb8MtV8olkPT03oiTxJbgkJa7lJ7dZMr0GCFJlyvy+K8iq7F/iuOr41ZdUHaOiqyR3iQ==", "integrity": "sha512-uf2eucWSUb+M7b0poZ/08LsbcRgaDYL8NCGjUeFMwCWFwOuFcZ8D9ayPl25P3pl+D2FH45EbHdfyUesQ2Lt9wA==",
"cpu": [ "cpu": [
"riscv64" "riscv64"
], ],
@@ -2241,9 +2241,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-riscv64-musl": { "node_modules/@rollup/rollup-linux-riscv64-musl": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.46.3.tgz",
"integrity": "sha512-t5B2loThlFEauloaQkZg9gxV05BYeITLvLkWOkRXogP4qHXLkWSbSHKM9S6H1schf/0YGP/qNKtiISlxvfmmZw==", "integrity": "sha512-7tnUcDvN8DHm/9ra+/nF7lLzYHDeODKKKrh6JmZejbh1FnCNZS8zMkZY5J4sEipy2OW1d1Ncc4gNHUd0DLqkSg==",
"cpu": [ "cpu": [
"riscv64" "riscv64"
], ],
@@ -2255,9 +2255,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-s390x-gnu": { "node_modules/@rollup/rollup-linux-s390x-gnu": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.46.3.tgz",
"integrity": "sha512-YKjekwTEKgbB7n17gmODSmJVUIvj8CX7q5442/CK80L8nqOUbMtf8b01QkG3jOqyr1rotrAnW6B/qiHwfcuWQA==", "integrity": "sha512-MUpAOallJim8CsJK+4Lc9tQzlfPbHxWDrGXZm2z6biaadNpvh3a5ewcdat478W+tXDoUiHwErX/dOql7ETcLqg==",
"cpu": [ "cpu": [
"s390x" "s390x"
], ],
@@ -2269,9 +2269,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-x64-gnu": { "node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.46.3.tgz",
"integrity": "sha512-Jj5a9RUoe5ra+MEyERkDKLwTXVu6s3aACP51nkfnK9wJTraCC8IMe3snOfALkrjTYd2G1ViE1hICj0fZ7ALBPA==", "integrity": "sha512-F42IgZI4JicE2vM2PWCe0N5mR5vR0gIdORPqhGQ32/u1S1v3kLtbZ0C/mi9FFk7C5T0PgdeyWEPajPjaUpyoKg==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -2283,9 +2283,9 @@
] ]
}, },
"node_modules/@rollup/rollup-linux-x64-musl": { "node_modules/@rollup/rollup-linux-x64-musl": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.46.3.tgz",
"integrity": "sha512-7kX69DIrBeD7yNp4A5b81izs8BqoZkCIaxQaOpumcJ1S/kmqNFjPhDu1LHeVXv0SexfHQv5cqHsxLOjETuqDuA==", "integrity": "sha512-oLc+JrwwvbimJUInzx56Q3ujL3Kkhxehg7O1gWAYzm8hImCd5ld1F2Gry5YDjR21MNb5WCKhC9hXgU7rRlyegQ==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -2297,9 +2297,9 @@
] ]
}, },
"node_modules/@rollup/rollup-win32-arm64-msvc": { "node_modules/@rollup/rollup-win32-arm64-msvc": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.46.3.tgz",
"integrity": "sha512-wiJWMIpeaak/jsbaq2HMh/rzZxHVW1rU6coyeNNpMwk5isiPjSTx0a4YLSlYDwBH/WBvLz+EtsNqQScZTLJy3g==", "integrity": "sha512-lOrQ+BVRstruD1fkWg9yjmumhowR0oLAAzavB7yFSaGltY8klttmZtCLvOXCmGE9mLIn8IBV/IFrQOWz5xbFPg==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -2311,9 +2311,9 @@
] ]
}, },
"node_modules/@rollup/rollup-win32-ia32-msvc": { "node_modules/@rollup/rollup-win32-ia32-msvc": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.46.3.tgz",
"integrity": "sha512-gBgaUDESVzMgWZhcyjfs9QFK16D8K6QZpwAaVNJxYDLHWayOta4ZMjGm/vsAEy3hvlS2GosVFlBlP9/Wb85DqQ==", "integrity": "sha512-vvrVKPRS4GduGR7VMH8EylCBqsDcw6U+/0nPDuIjXQRbHJc6xOBj+frx8ksfZAh6+Fptw5wHrN7etlMmQnPQVg==",
"cpu": [ "cpu": [
"ia32" "ia32"
], ],
@@ -2325,9 +2325,9 @@
] ]
}, },
"node_modules/@rollup/rollup-win32-x64-msvc": { "node_modules/@rollup/rollup-win32-x64-msvc": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.46.2.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.46.3.tgz",
"integrity": "sha512-CvUo2ixeIQGtF6WvuB87XWqPQkoFAFqW+HUo/WzHwuHDvIwZCtjdWXoYCcr06iKGydiqTclC4jU/TNObC/xKZg==", "integrity": "sha512-fi3cPxCnu3ZeM3EwKZPgXbWoGzm2XHgB/WShKI81uj8wG0+laobmqy5wbgEwzstlbLu4MyO8C19FyhhWseYKNQ==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -5183,9 +5183,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/rollup": { "node_modules/rollup": {
"version": "4.46.2", "version": "4.46.3",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.46.2.tgz", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.46.3.tgz",
"integrity": "sha512-WMmLFI+Boh6xbop+OAGo9cQ3OgX9MIg7xOQjn+pTCwOkk+FNDAeAemXkJ3HzDJrVXleLOFVa1ipuc1AmEx1Dwg==", "integrity": "sha512-RZn2XTjXb8t5g13f5YclGoilU/kwT696DIkY3sywjdZidNSi3+vseaQov7D7BZXVJCPv3pDWUN69C78GGbXsKw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -5199,26 +5199,26 @@
"npm": ">=8.0.0" "npm": ">=8.0.0"
}, },
"optionalDependencies": { "optionalDependencies": {
"@rollup/rollup-android-arm-eabi": "4.46.2", "@rollup/rollup-android-arm-eabi": "4.46.3",
"@rollup/rollup-android-arm64": "4.46.2", "@rollup/rollup-android-arm64": "4.46.3",
"@rollup/rollup-darwin-arm64": "4.46.2", "@rollup/rollup-darwin-arm64": "4.46.3",
"@rollup/rollup-darwin-x64": "4.46.2", "@rollup/rollup-darwin-x64": "4.46.3",
"@rollup/rollup-freebsd-arm64": "4.46.2", "@rollup/rollup-freebsd-arm64": "4.46.3",
"@rollup/rollup-freebsd-x64": "4.46.2", "@rollup/rollup-freebsd-x64": "4.46.3",
"@rollup/rollup-linux-arm-gnueabihf": "4.46.2", "@rollup/rollup-linux-arm-gnueabihf": "4.46.3",
"@rollup/rollup-linux-arm-musleabihf": "4.46.2", "@rollup/rollup-linux-arm-musleabihf": "4.46.3",
"@rollup/rollup-linux-arm64-gnu": "4.46.2", "@rollup/rollup-linux-arm64-gnu": "4.46.3",
"@rollup/rollup-linux-arm64-musl": "4.46.2", "@rollup/rollup-linux-arm64-musl": "4.46.3",
"@rollup/rollup-linux-loongarch64-gnu": "4.46.2", "@rollup/rollup-linux-loongarch64-gnu": "4.46.3",
"@rollup/rollup-linux-ppc64-gnu": "4.46.2", "@rollup/rollup-linux-ppc64-gnu": "4.46.3",
"@rollup/rollup-linux-riscv64-gnu": "4.46.2", "@rollup/rollup-linux-riscv64-gnu": "4.46.3",
"@rollup/rollup-linux-riscv64-musl": "4.46.2", "@rollup/rollup-linux-riscv64-musl": "4.46.3",
"@rollup/rollup-linux-s390x-gnu": "4.46.2", "@rollup/rollup-linux-s390x-gnu": "4.46.3",
"@rollup/rollup-linux-x64-gnu": "4.46.2", "@rollup/rollup-linux-x64-gnu": "4.46.3",
"@rollup/rollup-linux-x64-musl": "4.46.2", "@rollup/rollup-linux-x64-musl": "4.46.3",
"@rollup/rollup-win32-arm64-msvc": "4.46.2", "@rollup/rollup-win32-arm64-msvc": "4.46.3",
"@rollup/rollup-win32-ia32-msvc": "4.46.2", "@rollup/rollup-win32-ia32-msvc": "4.46.3",
"@rollup/rollup-win32-x64-msvc": "4.46.2", "@rollup/rollup-win32-x64-msvc": "4.46.3",
"fsevents": "~2.3.2" "fsevents": "~2.3.2"
} }
}, },

View File

@@ -13,7 +13,7 @@
"codegen": "graphql-codegen --config codegen.ts" "codegen": "graphql-codegen --config codegen.ts"
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^2.1.2", "@biomejs/biome": "^2.2.0",
"@graphql-codegen/cli": "^5.0.7", "@graphql-codegen/cli": "^5.0.7",
"@graphql-codegen/client-preset": "^4.8.3", "@graphql-codegen/client-preset": "^4.8.3",
"@graphql-codegen/typescript": "^4.1.6", "@graphql-codegen/typescript": "^4.1.6",
@@ -26,9 +26,9 @@
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
"lightningcss": "^1.30.1", "lightningcss": "^1.30.1",
"prismjs": "^1.30.0", "prismjs": "^1.30.0",
"solid-js": "^1.9.7", "solid-js": "^1.9.9",
"terser": "^5.43.0", "terser": "^5.43.0",
"typescript": "^5.8.3", "typescript": "^5.9.2",
"vite": "^7.1.2", "vite": "^7.1.2",
"vite-plugin-solid": "^2.11.7" "vite-plugin-solid": "^2.11.7"
}, },

View File

@@ -136,7 +136,7 @@ const InviteEditModal: Component<InviteEditModalProps> = (props) => {
<input <input
type="number" type="number"
value={formData().inviter_id} value={formData().inviter_id}
onInput={(e) => updateField('inviter_id', Number.parseInt(e.target.value) || 0)} onInput={(e) => updateField('inviter_id', Number.parseInt(e.target.value, 10) || 0)}
class={`${formStyles.input} ${errors().inviter_id ? formStyles.error : ''} ${!isCreating() ? formStyles.disabled : ''}`} class={`${formStyles.input} ${errors().inviter_id ? formStyles.error : ''} ${!isCreating() ? formStyles.disabled : ''}`}
placeholder="1" placeholder="1"
required required
@@ -165,7 +165,7 @@ const InviteEditModal: Component<InviteEditModalProps> = (props) => {
<input <input
type="number" type="number"
value={formData().author_id} value={formData().author_id}
onInput={(e) => updateField('author_id', Number.parseInt(e.target.value) || 0)} onInput={(e) => updateField('author_id', Number.parseInt(e.target.value, 10) || 0)}
class={`${formStyles.input} ${errors().author_id ? formStyles.error : ''} ${!isCreating() ? formStyles.disabled : ''}`} class={`${formStyles.input} ${errors().author_id ? formStyles.error : ''} ${!isCreating() ? formStyles.disabled : ''}`}
placeholder="2" placeholder="2"
required required
@@ -194,7 +194,7 @@ const InviteEditModal: Component<InviteEditModalProps> = (props) => {
<input <input
type="number" type="number"
value={formData().shout_id} value={formData().shout_id}
onInput={(e) => updateField('shout_id', Number.parseInt(e.target.value) || 0)} onInput={(e) => updateField('shout_id', Number.parseInt(e.target.value, 10) || 0)}
class={`${formStyles.input} ${errors().shout_id ? formStyles.error : ''} ${!isCreating() ? formStyles.disabled : ''}`} class={`${formStyles.input} ${errors().shout_id ? formStyles.error : ''} ${!isCreating() ? formStyles.disabled : ''}`}
placeholder="123" placeholder="123"
required required

View File

@@ -91,7 +91,7 @@ export default function TopicEditModal(props: TopicEditModalProps) {
* Обработка изменения выбора родительских топиков из таблеточек * Обработка изменения выбора родительских топиков из таблеточек
*/ */
const handleParentSelectionChange = (selectedIds: string[]) => { const handleParentSelectionChange = (selectedIds: string[]) => {
const parentIds = selectedIds.map((id) => Number.parseInt(id)) const parentIds = selectedIds.map((id) => Number.parseInt(id, 10))
setFormData((prev) => ({ setFormData((prev) => ({
...prev, ...prev,
parent_ids: parentIds parent_ids: parentIds

View File

@@ -130,7 +130,7 @@ const TopicMergeModal: Component<TopicMergeModalProps> = (props) => {
*/ */
const handleTargetTopicChange = (e: Event) => { const handleTargetTopicChange = (e: Event) => {
const target = e.target as HTMLSelectElement const target = e.target as HTMLSelectElement
const topicId = target.value ? Number.parseInt(target.value) : null const topicId = target.value ? Number.parseInt(target.value, 10) : null
setTargetTopicId(topicId) setTargetTopicId(topicId)
// Убираем выбранную целевую тему из исходных тем // Убираем выбранную целевую тему из исходных тем

View File

@@ -3,8 +3,8 @@ import type { AuthorsSortField } from '../context/sort'
import { AUTHORS_SORT_CONFIG } from '../context/sortConfig' import { AUTHORS_SORT_CONFIG } from '../context/sortConfig'
import { query } from '../graphql' import { query } from '../graphql'
import type { Query, AdminUserInfo as User } from '../graphql/generated/schema' import type { Query, AdminUserInfo as User } from '../graphql/generated/schema'
import { ADMIN_GET_USERS_QUERY } from '../graphql/queries'
import { ADMIN_UPDATE_USER_MUTATION } from '../graphql/mutations' import { ADMIN_UPDATE_USER_MUTATION } from '../graphql/mutations'
import { ADMIN_GET_USERS_QUERY } from '../graphql/queries'
import UserEditModal from '../modals/RolesModal' import UserEditModal from '../modals/RolesModal'
import styles from '../styles/Admin.module.css' import styles from '../styles/Admin.module.css'
import Pagination from '../ui/Pagination' import Pagination from '../ui/Pagination'
@@ -84,7 +84,10 @@ const AuthorsRoute: Component<AuthorsRouteProps> = (props) => {
email: userData.email, email: userData.email,
name: userData.name, name: userData.name,
slug: userData.slug, slug: userData.slug,
roles: userData.roles.split(',').map(role => role.trim()).filter(role => role.length > 0) roles: userData.roles
.split(',')
.map((role) => role.trim())
.filter((role) => role.length > 0)
} }
}) })

View File

@@ -1,13 +1,13 @@
import { Component, createEffect, createSignal, For, on, onMount, Show, untrack } from 'solid-js' import { Component, createEffect, createSignal, For, on, onMount, Show, untrack } from 'solid-js'
import { useTableSort } from '../context/sort' import { useTableSort } from '../context/sort'
import { COMMUNITIES_SORT_CONFIG } from '../context/sortConfig' import { COMMUNITIES_SORT_CONFIG } from '../context/sortConfig'
import { query } from '../graphql'
import { import {
CREATE_COMMUNITY_MUTATION, CREATE_COMMUNITY_MUTATION,
DELETE_COMMUNITY_MUTATION, DELETE_COMMUNITY_MUTATION,
UPDATE_COMMUNITY_MUTATION UPDATE_COMMUNITY_MUTATION
} from '../graphql/mutations' } from '../graphql/mutations'
import { GET_COMMUNITIES_QUERY } from '../graphql/queries' import { GET_COMMUNITIES_QUERY } from '../graphql/queries'
import { query } from '../graphql'
import CommunityEditModal from '../modals/CommunityEditModal' import CommunityEditModal from '../modals/CommunityEditModal'
import styles from '../styles/Table.module.css' import styles from '../styles/Table.module.css'
import Button from '../ui/Button' import Button from '../ui/Button'
@@ -22,19 +22,13 @@ interface Community {
id: number id: number
slug: string slug: string
name: string name: string
desc?: string description: string
pic: string created_at: string
created_at: number updated_at: string
created_by?: { // Делаем created_by необязательным creator_id: number
id: number creator_name: string
name: string followers_count: number
email: string shouts_count: number
} | null
stat: {
shouts: number
followers: number
authors: number
}
} }
interface CommunitiesRouteProps { interface CommunitiesRouteProps {
@@ -42,6 +36,53 @@ interface CommunitiesRouteProps {
onSuccess: (message: string) => void onSuccess: (message: string) => void
} }
// Types for GraphQL responses
interface CommunitiesResponse {
get_communities_all: Array<{
id: number
name: string
slug: string
description: string
created_at: string
updated_at: string
creator_id: number
creator_name: string
followers_count: number
shouts_count: number
}>
}
interface CreateCommunityResponse {
create_community: {
success: boolean
error?: string
community?: {
id: number
name: string
slug: string
}
}
}
interface UpdateCommunityResponse {
update_community: {
success: boolean
error?: string
community?: {
id: number
name: string
slug: string
}
}
}
interface DeleteCommunityResponse {
delete_community: {
success: boolean
error?: string
}
}
/** /**
* Компонент для управления сообществами * Компонент для управления сообществами
*/ */
@@ -78,7 +119,7 @@ const CommunitiesRoute: Component<CommunitiesRouteProps> = (props) => {
const result = await query('/graphql', GET_COMMUNITIES_QUERY) const result = await query('/graphql', GET_COMMUNITIES_QUERY)
// Получаем данные и сортируем их на клиенте // Получаем данные и сортируем их на клиенте
const communitiesData = (result as any)?.get_communities_all || [] const communitiesData = (result as CommunitiesResponse)?.get_communities_all || []
const sortedCommunities = sortCommunities(communitiesData) const sortedCommunities = sortCommunities(communitiesData)
setCommunities(sortedCommunities) setCommunities(sortedCommunities)
} catch (error) { } catch (error) {
@@ -91,8 +132,8 @@ const CommunitiesRoute: Component<CommunitiesRouteProps> = (props) => {
/** /**
* Форматирует дату * Форматирует дату
*/ */
const formatDate = (timestamp: number): string => { const formatDate = (dateString: string): string => {
return new Date(timestamp * 1000).toLocaleDateString('ru-RU') return new Date(dateString).toLocaleDateString('ru-RU')
} }
/** /**
@@ -115,22 +156,22 @@ const CommunitiesRoute: Component<CommunitiesRouteProps> = (props) => {
comparison = (a.slug || '').localeCompare(b.slug || '', 'ru') comparison = (a.slug || '').localeCompare(b.slug || '', 'ru')
break break
case 'created_at': case 'created_at':
comparison = a.created_at - b.created_at comparison = a.created_at.localeCompare(b.created_at, 'ru')
break break
case 'created_by': { case 'created_by': {
const aName = a.created_by?.name || a.created_by?.email || '' const aName = a.creator_name || ''
const bName = b.created_by?.name || b.created_by?.email || '' const bName = b.creator_name || ''
comparison = aName.localeCompare(bName, 'ru') comparison = aName.localeCompare(bName, 'ru')
break break
} }
case 'shouts': case 'shouts':
comparison = (a.stat?.shouts || 0) - (b.stat?.shouts || 0) comparison = (a.shouts_count || 0) - (b.shouts_count || 0)
break break
case 'followers': case 'followers':
comparison = (a.stat?.followers || 0) - (b.stat?.followers || 0) comparison = (a.followers_count || 0) - (b.followers_count || 0)
break break
case 'authors': case 'authors':
comparison = (a.stat?.authors || 0) - (b.stat?.authors || 0) comparison = (a.creator_id || 0) - (b.creator_id || 0)
break break
default: default:
comparison = a.id - b.id comparison = a.id - b.id
@@ -163,13 +204,15 @@ const CommunitiesRoute: Component<CommunitiesRouteProps> = (props) => {
const mutation = isCreating ? CREATE_COMMUNITY_MUTATION : UPDATE_COMMUNITY_MUTATION const mutation = isCreating ? CREATE_COMMUNITY_MUTATION : UPDATE_COMMUNITY_MUTATION
// Удаляем created_by, если он null или undefined // Удаляем created_by, если он null или undefined
if (communityData.created_by === null || communityData.created_by === undefined) { if (communityData.creator_id === null || communityData.creator_id === undefined) {
delete communityData.created_by delete communityData.creator_id
} }
const result = await query('/graphql', mutation, { community_input: communityData }) const result = await query('/graphql', mutation, { community_input: communityData })
const resultData = isCreating ? (result as any).create_community : (result as any).update_community const resultData = isCreating
? (result as CreateCommunityResponse).create_community
: (result as UpdateCommunityResponse).update_community
if (resultData.error) { if (resultData.error) {
throw new Error(resultData.error) throw new Error(resultData.error)
} }
@@ -191,7 +234,7 @@ const CommunitiesRoute: Component<CommunitiesRouteProps> = (props) => {
const deleteCommunity = async (slug: string) => { const deleteCommunity = async (slug: string) => {
try { try {
const result = await query('/graphql', DELETE_COMMUNITY_MUTATION, { slug }) const result = await query('/graphql', DELETE_COMMUNITY_MUTATION, { slug })
const deleteResult = (result as any).delete_community const deleteResult = (result as DeleteCommunityResponse).delete_community
if (deleteResult.error) { if (deleteResult.error) {
throw new Error(deleteResult.error) throw new Error(deleteResult.error)
@@ -303,19 +346,17 @@ const CommunitiesRoute: Component<CommunitiesRouteProps> = (props) => {
'text-overflow': 'ellipsis', 'text-overflow': 'ellipsis',
'white-space': 'nowrap' 'white-space': 'nowrap'
}} }}
title={community.desc} title={community.description}
> >
{community.desc || '—'} {community.description || '—'}
</div> </div>
</td> </td>
<td> <td>
<Show when={community.created_by} fallback={<span></span>}> <span>{community.creator_name || ''}</span>
<span>{community.created_by?.name || community.created_by?.email || ''}</span>
</Show>
</td> </td>
<td>{community.stat.shouts}</td> <td>{community.shouts_count}</td>
<td>{community.stat.followers}</td> <td>{community.followers_count}</td>
<td>{community.stat.authors}</td> <td>{community.creator_id}</td>
<td>{formatDate(community.created_at)}</td> <td>{formatDate(community.created_at)}</td>
<td onClick={(e) => e.stopPropagation()}> <td onClick={(e) => e.stopPropagation()}>
<button <button

View File

@@ -4,10 +4,10 @@
*/ */
import { Component, createSignal } from 'solid-js' import { Component, createSignal } from 'solid-js'
import { ADMIN_UPDATE_PERMISSIONS_MUTATION } from '../graphql/mutations'
import { query } from '../graphql' import { query } from '../graphql'
import Button from '../ui/Button' import { ADMIN_UPDATE_PERMISSIONS_MUTATION } from '../graphql/mutations'
import styles from '../styles/Admin.module.css' import styles from '../styles/Admin.module.css'
import Button from '../ui/Button'
/** /**
* Интерфейс свойств компонента PermissionsRoute * Интерфейс свойств компонента PermissionsRoute
@@ -66,8 +66,8 @@ const PermissionsRoute: Component<PermissionsRouteProps> = (props) => {
</ul> </ul>
<div class={styles['warning-box']}> <div class={styles['warning-box']}>
<strong> Внимание:</strong> Эта операция затрагивает все сообщества в системе. <strong> Внимание:</strong> Эта операция затрагивает все сообщества в системе. Рекомендуется
Рекомендуется выполнять только при изменении системы прав. выполнять только при изменении системы прав.
</div> </div>
</div> </div>

View File

@@ -99,7 +99,7 @@ const ReactionsRoute: Component<ReactionsRouteProps> = (props) => {
}>(`${location.origin}/graphql`, ADMIN_GET_REACTIONS_QUERY, { }>(`${location.origin}/graphql`, ADMIN_GET_REACTIONS_QUERY, {
search: isShoutId ? '' : query_value, // Если это ID, не передаем в обычный поиск search: isShoutId ? '' : query_value, // Если это ID, не передаем в обычный поиск
kind: kindFilter() || undefined, kind: kindFilter() || undefined,
shout_id: isShoutId ? Number.parseInt(query_value) : undefined, // Если это ID, передаем в shout_id shout_id: isShoutId ? Number.parseInt(query_value, 10) : undefined, // Если это ID, передаем в shout_id
status: showDeletedOnly() ? 'deleted' : 'all', status: showDeletedOnly() ? 'deleted' : 'all',
limit: pagination().limit, limit: pagination().limit,
offset: (pagination().page - 1) * pagination().limit offset: (pagination().page - 1) * pagination().limit

View File

@@ -29,9 +29,8 @@ const CommunitySelector = () => {
const allCommunities = communities() const allCommunities = communities()
console.log('[CommunitySelector] Состояние:', { console.log('[CommunitySelector] Состояние:', {
selectedId: current, selectedId: current,
selectedName: current !== null selectedName:
? allCommunities.find((c) => c.id === current)?.name current !== null ? allCommunities.find((c) => c.id === current)?.name : 'Все сообщества',
: 'Все сообщества',
totalCommunities: allCommunities.length totalCommunities: allCommunities.length
}) })
}) })