mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-13 20:04:55 -05:00
Compare commits
31 Commits
v2.0.0-dev
...
v2.0.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5b680dd1d | ||
|
|
bf5ac8b6ac | ||
|
|
dcccc878c8 | ||
|
|
1c87fba8f5 | ||
|
|
2fc35b3c2d | ||
|
|
2012fd1dd9 | ||
|
|
550c0339d6 | ||
|
|
50cf2f2d50 | ||
|
|
b223fefec6 | ||
|
|
7fe56f72ae | ||
|
|
0a9bc397ca | ||
|
|
a03fceba7f | ||
|
|
1bf1574c2a | ||
|
|
83d90e0a16 | ||
|
|
304ffbf01d | ||
|
|
07787d6fa1 | ||
|
|
5d04142a99 | ||
|
|
aecba3be9f | ||
|
|
4c4e5b62e0 | ||
|
|
62f0ca9093 | ||
|
|
3d43e2419f | ||
|
|
d4081c2d6b | ||
|
|
d397cb4ea4 | ||
|
|
0c96e24cd4 | ||
|
|
1c90e768ef | ||
|
|
be73f20fd5 | ||
|
|
330178dbb8 | ||
|
|
c8c01307a0 | ||
|
|
2e80adff2d | ||
|
|
ef5a0982cb | ||
|
|
9ffa40022d |
166
Cargo.lock
generated
166
Cargo.lock
generated
@@ -234,9 +234,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
||||
|
||||
[[package]]
|
||||
name = "aws-config"
|
||||
version = "1.8.14"
|
||||
version = "1.8.15"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8a8fc176d53d6fe85017f230405e3255cedb4a02221cb55ed6d76dccbbb099b2"
|
||||
checksum = "11493b0bad143270fb8ad284a096dd529ba91924c5409adeac856cc1bf047dbc"
|
||||
dependencies = [
|
||||
"aws-credential-types",
|
||||
"aws-runtime",
|
||||
@@ -254,7 +254,7 @@ dependencies = [
|
||||
"fastrand",
|
||||
"hex",
|
||||
"http 1.4.0",
|
||||
"ring",
|
||||
"sha1",
|
||||
"time",
|
||||
"tokio",
|
||||
"tracing",
|
||||
@@ -264,9 +264,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-credential-types"
|
||||
version = "1.2.13"
|
||||
version = "1.2.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6d203b0bf2626dcba8665f5cd0871d7c2c0930223d6b6be9097592fea21242d0"
|
||||
checksum = "8f20799b373a1be121fe3005fba0c2090af9411573878f224df44b42727fcaf7"
|
||||
dependencies = [
|
||||
"aws-smithy-async",
|
||||
"aws-smithy-runtime-api",
|
||||
@@ -299,9 +299,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-runtime"
|
||||
version = "1.7.1"
|
||||
version = "1.7.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ede2ddc593e6c8acc6ce3358c28d6677a6dc49b65ba4b37a2befe14a11297e75"
|
||||
checksum = "5fc0651c57e384202e47153c1260b84a9936e19803d747615edf199dc3b98d17"
|
||||
dependencies = [
|
||||
"aws-credential-types",
|
||||
"aws-sigv4",
|
||||
@@ -324,9 +324,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-sdk-ec2"
|
||||
version = "1.214.0"
|
||||
version = "1.216.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f5011a07318505db9ffe5a03e667653b44ee85d392f0e5f36ebd1fff2f2cbfa8"
|
||||
checksum = "0bcafb17cfb3978dbf5b5a637d101a6212bc080cb33b5881da65f87967aedf67"
|
||||
dependencies = [
|
||||
"aws-credential-types",
|
||||
"aws-runtime",
|
||||
@@ -349,9 +349,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-sdk-sso"
|
||||
version = "1.95.0"
|
||||
version = "1.96.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "00c5ff27c6ba2cbd95e6e26e2e736676fdf6bcf96495b187733f521cfe4ce448"
|
||||
checksum = "f64a6eded248c6b453966e915d32aeddb48ea63ad17932682774eb026fbef5b1"
|
||||
dependencies = [
|
||||
"aws-credential-types",
|
||||
"aws-runtime",
|
||||
@@ -373,9 +373,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-sdk-ssooidc"
|
||||
version = "1.97.0"
|
||||
version = "1.98.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4d186f1e5a3694a188e5a0640b3115ccc6e084d104e16fd6ba968dca072ffef8"
|
||||
checksum = "db96d720d3c622fcbe08bae1c4b04a72ce6257d8b0584cb5418da00ae20a344f"
|
||||
dependencies = [
|
||||
"aws-credential-types",
|
||||
"aws-runtime",
|
||||
@@ -397,9 +397,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-sdk-sts"
|
||||
version = "1.99.0"
|
||||
version = "1.100.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9acba7c62f3d4e2408fa998a3a8caacd8b9a5b5549cf36e2372fbdae329d5449"
|
||||
checksum = "fafbdda43b93f57f699c5dfe8328db590b967b8a820a13ccdd6687355dfcc7ca"
|
||||
dependencies = [
|
||||
"aws-credential-types",
|
||||
"aws-runtime",
|
||||
@@ -422,9 +422,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-sigv4"
|
||||
version = "1.4.1"
|
||||
version = "1.4.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "37411f8e0f4bea0c3ca0958ce7f18f6439db24d555dbd809787262cd00926aa9"
|
||||
checksum = "b0b660013a6683ab23797778e21f1f854744fdf05f68204b4cca4c8c04b5d1f4"
|
||||
dependencies = [
|
||||
"aws-credential-types",
|
||||
"aws-smithy-http",
|
||||
@@ -444,9 +444,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-smithy-async"
|
||||
version = "1.2.13"
|
||||
version = "1.2.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5cc50d0f63e714784b84223abd7abbc8577de8c35d699e0edd19f0a88a08ae13"
|
||||
checksum = "2ffcaf626bdda484571968400c326a244598634dc75fd451325a54ad1a59acfc"
|
||||
dependencies = [
|
||||
"futures-util",
|
||||
"pin-project-lite",
|
||||
@@ -455,9 +455,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-smithy-http"
|
||||
version = "0.63.5"
|
||||
version = "0.63.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d619373d490ad70966994801bc126846afaa0d1ee920697a031f0cf63f2568e7"
|
||||
checksum = "ba1ab2dc1c2c3749ead27180d333c42f11be8b0e934058fb4b2258ee8dbe5231"
|
||||
dependencies = [
|
||||
"aws-smithy-runtime-api",
|
||||
"aws-smithy-types",
|
||||
@@ -476,9 +476,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-smithy-http-client"
|
||||
version = "1.1.11"
|
||||
version = "1.1.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "00ccbb08c10f6bcf912f398188e42ee2eab5f1767ce215a02a73bc5df1bbdd95"
|
||||
checksum = "6a2f165a7feee6f263028b899d0a181987f4fa7179a6411a32a439fba7c5f769"
|
||||
dependencies = [
|
||||
"aws-smithy-async",
|
||||
"aws-smithy-runtime-api",
|
||||
@@ -506,27 +506,27 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-smithy-json"
|
||||
version = "0.62.4"
|
||||
version = "0.62.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "27b3a779093e18cad88bbae08dc4261e1d95018c4c5b9356a52bcae7c0b6e9bb"
|
||||
checksum = "9648b0bb82a2eedd844052c6ad2a1a822d1f8e3adee5fbf668366717e428856a"
|
||||
dependencies = [
|
||||
"aws-smithy-types",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "aws-smithy-observability"
|
||||
version = "0.2.5"
|
||||
version = "0.2.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4d3f39d5bb871aaf461d59144557f16d5927a5248a983a40654d9cf3b9ba183b"
|
||||
checksum = "a06c2315d173edbf1920da8ba3a7189695827002e4c0fc961973ab1c54abca9c"
|
||||
dependencies = [
|
||||
"aws-smithy-runtime-api",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "aws-smithy-query"
|
||||
version = "0.60.14"
|
||||
version = "0.60.15"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "05f76a580e3d8f8961e5d48763214025a2af65c2fa4cd1fb7f270a0e107a71b0"
|
||||
checksum = "1a56d79744fb3edb5d722ef79d86081e121d3b9422cb209eb03aea6aa4f21ebd"
|
||||
dependencies = [
|
||||
"aws-smithy-types",
|
||||
"urlencoding",
|
||||
@@ -534,9 +534,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-smithy-runtime"
|
||||
version = "1.10.2"
|
||||
version = "1.10.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "22ccf7f6eba8b2dcf8ce9b74806c6c185659c311665c4bf8d6e71ebd454db6bf"
|
||||
checksum = "028999056d2d2fd58a697232f9eec4a643cf73a71cf327690a7edad1d2af2110"
|
||||
dependencies = [
|
||||
"aws-smithy-async",
|
||||
"aws-smithy-http",
|
||||
@@ -559,9 +559,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-smithy-runtime-api"
|
||||
version = "1.11.5"
|
||||
version = "1.11.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b4af6e5def28be846479bbeac55aa4603d6f7986fc5da4601ba324dd5d377516"
|
||||
checksum = "876ab3c9c29791ba4ba02b780a3049e21ec63dabda09268b175272c3733a79e6"
|
||||
dependencies = [
|
||||
"aws-smithy-async",
|
||||
"aws-smithy-types",
|
||||
@@ -576,9 +576,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-smithy-types"
|
||||
version = "1.4.5"
|
||||
version = "1.4.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8ca2734c16913a45343b37313605d84e7d8b34a4611598ce1d25b35860a2bed3"
|
||||
checksum = "d2b1117b3b2bbe166d11199b540ceed0d0f7676e36e7b962b5a437a9971eac75"
|
||||
dependencies = [
|
||||
"base64-simd",
|
||||
"bytes",
|
||||
@@ -602,18 +602,18 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aws-smithy-xml"
|
||||
version = "0.60.14"
|
||||
version = "0.60.15"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b53543b4b86ed43f051644f704a98c7291b3618b67adf057ee77a366fa52fcaa"
|
||||
checksum = "0ce02add1aa3677d022f8adf81dcbe3046a95f17a1b1e8979c145cd21d3d22b3"
|
||||
dependencies = [
|
||||
"xmlparser",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "aws-types"
|
||||
version = "1.3.13"
|
||||
version = "1.3.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0470cc047657c6e286346bdf10a8719d26efd6a91626992e0e64481e44323e96"
|
||||
checksum = "47c8323699dd9b3c8d5b3c13051ae9cdef58fd179957c882f8374dd8725962d9"
|
||||
dependencies = [
|
||||
"aws-credential-types",
|
||||
"aws-smithy-async",
|
||||
@@ -787,13 +787,13 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "bcrypt"
|
||||
version = "0.18.0"
|
||||
version = "0.19.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9a0f5948f30df5f43ac29d310b7476793be97c50787e6ef4a63d960a0d0be827"
|
||||
checksum = "523ab528ce3a7ada6597f8ccf5bd8d85ebe26d5edf311cad4d1d3cfb2d357ac6"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"blowfish",
|
||||
"getrandom 0.3.4",
|
||||
"getrandom 0.4.1",
|
||||
"subtle",
|
||||
"zeroize",
|
||||
]
|
||||
@@ -1149,7 +1149,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "command"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"komodo_client",
|
||||
"shlex",
|
||||
@@ -1489,7 +1489,7 @@ checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea"
|
||||
|
||||
[[package]]
|
||||
name = "database"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-compression",
|
||||
@@ -1759,7 +1759,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "encoding"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
@@ -1801,7 +1801,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "environment"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"formatting",
|
||||
@@ -1930,7 +1930,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "formatting"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"mogh_error",
|
||||
]
|
||||
@@ -2109,7 +2109,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "git"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"command",
|
||||
@@ -2709,7 +2709,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "interpolate"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"komodo_client",
|
||||
@@ -2835,7 +2835,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "komodo_cli"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"chrono",
|
||||
@@ -2863,7 +2863,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "komodo_client"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async_timing_util",
|
||||
@@ -2902,7 +2902,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "komodo_core"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"arc-swap",
|
||||
@@ -2960,7 +2960,7 @@ dependencies = [
|
||||
"svi",
|
||||
"tokio",
|
||||
"tokio-util",
|
||||
"toml",
|
||||
"toml 1.0.4+spec-1.1.0",
|
||||
"toml_pretty",
|
||||
"tracing",
|
||||
"transport",
|
||||
@@ -2975,7 +2975,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "komodo_periphery"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"arc-swap",
|
||||
@@ -3224,9 +3224,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "mogh_auth_server"
|
||||
version = "1.2.6"
|
||||
version = "1.2.11"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0053e21d85b214a3288c50433cf56cd07ac1dacda66201f5e93205810423daec"
|
||||
checksum = "b5d93cfc5fd1041273091e6c55544a98df78497dd628503481d22cb676c90502"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"arc-swap",
|
||||
@@ -3280,7 +3280,7 @@ dependencies = [
|
||||
"serde_json",
|
||||
"serde_yaml_ng",
|
||||
"thiserror 2.0.18",
|
||||
"toml",
|
||||
"toml 0.9.11+spec-1.1.0",
|
||||
"wildcard",
|
||||
]
|
||||
|
||||
@@ -3392,9 +3392,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "mogh_server"
|
||||
version = "1.4.4"
|
||||
version = "1.4.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c3292c49e7483691c6eef791fa96aa2120df97b69241514313e53207945c3d69"
|
||||
checksum = "66ab833484ee2242003819a2b948421dc3469e7d153db71bd7579d5de2660b81"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"axum",
|
||||
@@ -4030,7 +4030,7 @@ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
||||
|
||||
[[package]]
|
||||
name = "periphery_client"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"encoding",
|
||||
@@ -4082,9 +4082,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "pin-project-lite"
|
||||
version = "0.2.16"
|
||||
version = "0.2.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
|
||||
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
||||
|
||||
[[package]]
|
||||
name = "pin-utils"
|
||||
@@ -5406,9 +5406,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "sysinfo"
|
||||
version = "0.38.2"
|
||||
version = "0.38.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1efc19935b4b66baa6f654ac7924c192f55b175c00a7ab72410fc24284dacda8"
|
||||
checksum = "d03c61d2a49c649a15c407338afe7accafde9dac869995dccb73e5f7ef7d9034"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"memchr",
|
||||
@@ -5573,9 +5573,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
||||
|
||||
[[package]]
|
||||
name = "tokio"
|
||||
version = "1.49.0"
|
||||
version = "1.50.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86"
|
||||
checksum = "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"libc",
|
||||
@@ -5670,7 +5670,22 @@ dependencies = [
|
||||
"indexmap 2.13.0",
|
||||
"serde_core",
|
||||
"serde_spanned",
|
||||
"toml_datetime",
|
||||
"toml_datetime 0.7.5+spec-1.1.0",
|
||||
"toml_parser",
|
||||
"toml_writer",
|
||||
"winnow",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "toml"
|
||||
version = "1.0.4+spec-1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c94c3321114413476740df133f0d8862c61d87c8d26f04c6841e033c8c80db47"
|
||||
dependencies = [
|
||||
"indexmap 2.13.0",
|
||||
"serde_core",
|
||||
"serde_spanned",
|
||||
"toml_datetime 1.0.0+spec-1.1.0",
|
||||
"toml_parser",
|
||||
"toml_writer",
|
||||
"winnow",
|
||||
@@ -5686,10 +5701,19 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "toml_parser"
|
||||
version = "1.0.6+spec-1.1.0"
|
||||
name = "toml_datetime"
|
||||
version = "1.0.0+spec-1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a3198b4b0a8e11f09dd03e133c0280504d0801269e9afa46362ffde1cbeebf44"
|
||||
checksum = "32c2555c699578a4f59f0cc68e5116c8d7cabbd45e1409b989d4be085b53f13e"
|
||||
dependencies = [
|
||||
"serde_core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "toml_parser"
|
||||
version = "1.0.9+spec-1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "702d4415e08923e7e1ef96cd5727c0dfed80b4d2fa25db9647fe5eb6f7c5a4c4"
|
||||
dependencies = [
|
||||
"winnow",
|
||||
]
|
||||
@@ -5983,7 +6007,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "transport"
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"axum",
|
||||
|
||||
22
Cargo.toml
22
Cargo.toml
@@ -8,7 +8,7 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "2.0.0-dev-120"
|
||||
version = "2.0.0-dev-123"
|
||||
edition = "2024"
|
||||
authors = ["mbecker20 <becker.maxh@gmail.com>"]
|
||||
license = "GPL-3.0-or-later"
|
||||
@@ -37,7 +37,7 @@ mogh_error = { version = "1.0.3", default-features = false }
|
||||
derive_default_builder = "0.1.8"
|
||||
async_timing_util = "1.1.0"
|
||||
mogh_auth_client = "1.2.2"
|
||||
mogh_auth_server = "1.2.6"
|
||||
mogh_auth_server = "1.2.11"
|
||||
mogh_secret_file = "1.0.1"
|
||||
mogh_validations = "1.0.1"
|
||||
mogh_rate_limit = "1.0.1"
|
||||
@@ -46,7 +46,7 @@ mongo_indexed = "2.0.2"
|
||||
mogh_resolver = "1.0.0"
|
||||
mogh_config = "1.0.2"
|
||||
mogh_logger = "1.3.1"
|
||||
mogh_server = "1.4.4"
|
||||
mogh_server = "1.4.5"
|
||||
toml_pretty = "2.0.0"
|
||||
mogh_cache = "1.1.1"
|
||||
mogh_pki = "1.1.0"
|
||||
@@ -55,10 +55,10 @@ svi = "1.2.0"
|
||||
|
||||
# ASYNC
|
||||
reqwest = { version = "0.13.2", default-features = false, features = ["json", "stream", "form", "query", "rustls"] }
|
||||
tokio = { version = "1.49.0", features = ["full"] }
|
||||
tokio = { version = "1.50.0", features = ["full"] }
|
||||
tokio-util = { version = "0.7.18", features = ["io", "codec"] }
|
||||
tokio-stream = { version = "0.1.18", features = ["sync"] }
|
||||
pin-project-lite = "0.2.16"
|
||||
pin-project-lite = "0.2.17"
|
||||
futures-util = "0.3.32"
|
||||
arc-swap = "1.8.2"
|
||||
|
||||
@@ -77,7 +77,7 @@ indexmap = { version = "2.13.0", features = ["serde"] }
|
||||
serde = { version = "1.0.227", features = ["derive"] }
|
||||
strum = { version = "0.28.0", features = ["derive"] }
|
||||
bson = { version = "2.15.0" } # must keep in sync with mongodb version
|
||||
toml = "0.9.11"
|
||||
toml = "1.0.4"
|
||||
serde_yaml_ng = "0.10.0"
|
||||
serde_json = "1.0.149"
|
||||
serde_qs = "1.0.0"
|
||||
@@ -100,7 +100,7 @@ uuid = { version = "1.21.0", features = ["v4", "fast-rng", "serde"] }
|
||||
rustls = { version = "0.23.37", features = ["aws-lc-rs"] }
|
||||
data-encoding = "2.10.0"
|
||||
urlencoding = "2.1.3"
|
||||
bcrypt = "0.18.0"
|
||||
bcrypt = "0.19.0"
|
||||
hmac = "0.12.1"
|
||||
sha1 = "0.10.6"
|
||||
sha2 = "0.10.9"
|
||||
@@ -113,13 +113,13 @@ portable-pty = "0.9.0"
|
||||
shell-escape = "0.1.5"
|
||||
crossterm = "0.29.0"
|
||||
bollard = "0.20.1"
|
||||
sysinfo = "0.38.2"
|
||||
sysinfo = "0.38.3"
|
||||
shlex = "1.3.0"
|
||||
|
||||
# CLOUD
|
||||
aws-config = "1.8.14"
|
||||
aws-sdk-ec2 = "1.214.0"
|
||||
aws-credential-types = "1.2.13"
|
||||
aws-config = "1.8.15"
|
||||
aws-sdk-ec2 = "1.216.0"
|
||||
aws-credential-types = "1.2.14"
|
||||
|
||||
## CRON
|
||||
english-to-cron = "0.1.7"
|
||||
|
||||
@@ -293,7 +293,7 @@ async fn handler(
|
||||
let req_id = Uuid::new_v4();
|
||||
let variant: ReadRequestVariant = (&request).into();
|
||||
|
||||
debug!(
|
||||
trace!(
|
||||
"READ REQUEST {req_id} | METHOD: {variant} | USER: {} ({})",
|
||||
user.username, user.id
|
||||
);
|
||||
@@ -301,7 +301,7 @@ async fn handler(
|
||||
let res = request.resolve(&ReadArgs { user }).await;
|
||||
|
||||
if let Err(e) = &res {
|
||||
debug!(
|
||||
trace!(
|
||||
"READ REQUEST {req_id} | METHOD: {variant} | ERROR: {:#}",
|
||||
e.error
|
||||
);
|
||||
|
||||
@@ -148,7 +148,7 @@ impl AuthImpl for KomodoAuthImpl {
|
||||
|
||||
fn post_link_redirect(&self) -> &str {
|
||||
static POST_LINK_REDIRECT: LazyLock<String> =
|
||||
LazyLock::new(|| format!("{}/settings", core_config().host));
|
||||
LazyLock::new(|| format!("{}/profile", core_config().host));
|
||||
&POST_LINK_REDIRECT
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +70,14 @@ impl PeripheryConnectionArgs<'_> {
|
||||
}
|
||||
};
|
||||
|
||||
debug!(
|
||||
host = identifiers.host(),
|
||||
query = core_connection_query(),
|
||||
sec_websocket_accept = accept.to_str().unwrap_or_default(),
|
||||
resource_id = connection.args.id,
|
||||
"[PERIPHERY AUTH] Zero trust identifiers"
|
||||
);
|
||||
|
||||
let identifiers = identifiers.build(
|
||||
accept.as_bytes(),
|
||||
core_connection_query().as_bytes(),
|
||||
|
||||
@@ -129,6 +129,14 @@ async fn existing_server_handler(
|
||||
return;
|
||||
};
|
||||
|
||||
debug!(
|
||||
host = identifiers.host.to_str().unwrap_or_default(),
|
||||
query,
|
||||
sec_websocket_accept = identifiers.accept,
|
||||
resource_id = &server.id,
|
||||
"[PERIPHERY AUTH] Zero trust identifiers"
|
||||
);
|
||||
|
||||
let span = info_span!(
|
||||
"PeripheryLogin",
|
||||
server_id = server.id,
|
||||
|
||||
@@ -94,6 +94,13 @@ pub async fn handler(
|
||||
|
||||
already_logged_connection_error = false;
|
||||
|
||||
debug!(
|
||||
host = identifiers.host(),
|
||||
query,
|
||||
sec_websocket_accept = accept.to_str().unwrap_or_default(),
|
||||
"[CORE AUTH] Zero trust identifiers"
|
||||
);
|
||||
|
||||
let identifiers =
|
||||
identifiers.build(accept.as_bytes(), query.as_bytes());
|
||||
|
||||
|
||||
@@ -109,6 +109,13 @@ async fn handler(
|
||||
|
||||
let query = format!("core={}", urlencoding::encode(&core));
|
||||
|
||||
debug!(
|
||||
host = identifiers.host.to_str().unwrap_or_default(),
|
||||
query,
|
||||
sec_websocket_accept = identifiers.accept,
|
||||
"[CORE AUTH] Zero trust identifiers"
|
||||
);
|
||||
|
||||
if let Err(e) =
|
||||
handle_login(&mut socket, identifiers.build(query.as_bytes()))
|
||||
.await
|
||||
|
||||
@@ -1049,7 +1049,7 @@ impl mogh_server::session::SessionConfig for &CoreConfig {
|
||||
"KOMODO_HOST"
|
||||
}
|
||||
fn expiry_seconds(&self) -> i64 {
|
||||
60
|
||||
60 * 3
|
||||
}
|
||||
fn allow_cross_site(&self) -> bool {
|
||||
self.session_allow_cross_site
|
||||
|
||||
@@ -203,7 +203,9 @@ impl Default for UserConfig {
|
||||
impl UserConfig {
|
||||
pub fn sanitize(&mut self) {
|
||||
if let UserConfig::Local { password } = self {
|
||||
password.clear();
|
||||
if !password.is_empty() {
|
||||
*password = "#".repeat(8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -295,8 +295,8 @@ impl AddressConnectionIdentifiers {
|
||||
/// Used to extract owned connection identifier
|
||||
/// in server side connection handler.
|
||||
pub struct HeaderConnectionIdentifiers {
|
||||
host: HeaderValue,
|
||||
accept: String,
|
||||
pub host: HeaderValue,
|
||||
pub accept: String,
|
||||
}
|
||||
|
||||
impl HeaderConnectionIdentifiers {
|
||||
@@ -310,7 +310,7 @@ impl HeaderConnectionIdentifiers {
|
||||
let key = headers
|
||||
.remove("sec-websocket-key")
|
||||
.context("Headers do not contain Sec-Websocket-Key")?;
|
||||
let accept = compute_accept(key.as_bytes());
|
||||
let accept = compute_sec_websocket_accept(key.as_bytes());
|
||||
Ok(HeaderConnectionIdentifiers { host, accept })
|
||||
}
|
||||
|
||||
@@ -334,7 +334,7 @@ impl HeaderConnectionIdentifiers {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn compute_accept(sec_websocket_key: &[u8]) -> String {
|
||||
pub fn compute_sec_websocket_accept(sec_websocket_key: &[u8]) -> String {
|
||||
// This is standard GUID to compute Sec-Websocket-Accept
|
||||
const GUID: &[u8] = b"258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
|
||||
let mut sha1 = sha1::Sha1::new();
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
width="438.549px" height="438.549px" viewBox="0 0 438.549 438.549"
|
||||
xml:space="preserve">
|
||||
<g>
|
||||
<path fill="#fceade" d="M409.132,114.573c-19.608-33.596-46.205-60.194-79.798-79.8C295.736,15.166,259.057,5.365,219.271,5.365
|
||||
<path fill="#000" d="M409.132,114.573c-19.608-33.596-46.205-60.194-79.798-79.8C295.736,15.166,259.057,5.365,219.271,5.365
|
||||
c-39.781,0-76.472,9.804-110.063,29.408c-33.596,19.605-60.192,46.204-79.8,79.8C9.803,148.168,0,184.854,0,224.63
|
||||
c0,47.78,13.94,90.745,41.827,128.906c27.884,38.164,63.906,64.572,108.063,79.227c5.14,0.954,8.945,0.283,11.419-1.996
|
||||
c2.475-2.282,3.711-5.14,3.711-8.562c0-0.571-0.049-5.708-0.144-15.417c-0.098-9.709-0.144-18.179-0.144-25.406l-6.567,1.136
|
||||
|
||||
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -3,7 +3,7 @@
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
viewBox="0 0 210 210" xml:space="preserve">
|
||||
<path fill="#fceade" d="M0,105C0,47.103,47.103,0,105,0c23.383,0,45.515,7.523,64.004,21.756l-24.4,31.696C133.172,44.652,119.477,40,105,40
|
||||
<path fill="#000" d="M0,105C0,47.103,47.103,0,105,0c23.383,0,45.515,7.523,64.004,21.756l-24.4,31.696C133.172,44.652,119.477,40,105,40
|
||||
c-35.841,0-65,29.159-65,65s29.159,65,65,65c28.867,0,53.398-18.913,61.852-45H105V85h105v20c0,57.897-47.103,105-105,105
|
||||
S0,162.897,0,105z"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 703 B |
@@ -8,7 +8,7 @@ import LoadingScreen from "@/ui/loading-screen";
|
||||
import UpdateDetails from "@/components/updates/details";
|
||||
import AlertDetails from "@/components/alerts/details";
|
||||
|
||||
export const TOPBAR_HEIGHT = 70;
|
||||
export const TOPBAR_HEIGHT = 62;
|
||||
|
||||
const App = () => {
|
||||
const [opened, { toggle, close }] = useDisclosure();
|
||||
|
||||
@@ -14,10 +14,10 @@ const Sidebar = ({ close }: { close: () => void }) => {
|
||||
const location = useLocation().pathname;
|
||||
const linkProps = { nav, location };
|
||||
return (
|
||||
<Stack justify="space-between" gap="md" h="100%" m="xl" mt="24">
|
||||
<Stack justify="space-between" gap="md" h="96%" m="xl" mt="24" mr="md">
|
||||
{/* TOP AREA (scrolling) */}
|
||||
<ScrollArea>
|
||||
<Stack gap="0.25rem">
|
||||
<Stack gap="0.25rem" mr="md">
|
||||
<SidebarLink
|
||||
label="Dashboard"
|
||||
icon={<ICONS.Dashboard size="1rem" />}
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function TopbarAlerts() {
|
||||
<Menu
|
||||
opened={opened}
|
||||
position="bottom"
|
||||
offset={20}
|
||||
offset={16}
|
||||
onOpen={open}
|
||||
onClose={close}
|
||||
>
|
||||
|
||||
8
ui/src/app/topbar/omni-search/index.module.scss
Normal file
8
ui/src/app/topbar/omni-search/index.module.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
.spotlight-action[data-selected] {
|
||||
// hexColorByIntention("Neutral")
|
||||
background-color: #3B82F6;
|
||||
|
||||
// ALTERNATE
|
||||
// background-color: var(--mantine-color-accent-9);
|
||||
// color: inherit;
|
||||
}
|
||||
@@ -3,6 +3,7 @@ import { Spotlight, spotlight } from "@mantine/spotlight";
|
||||
import { useOmniSearch } from "./hooks";
|
||||
import { ICONS } from "@/theme/icons";
|
||||
import { useShiftKeyListener } from "@/lib/hooks";
|
||||
import classes from "./index.module.scss";
|
||||
|
||||
export default function OmniSearch({}: {}) {
|
||||
const { search, setSearch, actions } = useOmniSearch();
|
||||
@@ -48,7 +49,11 @@ export default function OmniSearch({}: {}) {
|
||||
{actions.map((group) => (
|
||||
<Spotlight.ActionsGroup key={group.group} label={group.group}>
|
||||
{group.actions.map((action) => (
|
||||
<Spotlight.Action key={action.id} {...action} />
|
||||
<Spotlight.Action
|
||||
key={action.id}
|
||||
className={classes["spotlight-action"]}
|
||||
{...action}
|
||||
/>
|
||||
))}
|
||||
</Spotlight.ActionsGroup>
|
||||
))}
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function TopbarUpdates() {
|
||||
<Menu
|
||||
opened={opened}
|
||||
position="bottom"
|
||||
offset={20}
|
||||
offset={16}
|
||||
onOpen={() => {
|
||||
open();
|
||||
setLastSeenUpdate({});
|
||||
|
||||
@@ -35,18 +35,32 @@ export default function UserDropdown() {
|
||||
}
|
||||
};
|
||||
const user = useUser().data;
|
||||
const avatar = (user?.config.data as { avatar?: string }).avatar;
|
||||
const userInvalidate = useUserInvalidate();
|
||||
const accounts = MoghAuth.LOGIN_TOKENS.accounts();
|
||||
const nav = useNavigate();
|
||||
return (
|
||||
<Menu offset={20} opened={open} onChange={setOpen}>
|
||||
<Menu offset={13} opened={open} onChange={setOpen}>
|
||||
<Menu.Target>
|
||||
<Button
|
||||
variant="subtle"
|
||||
size="lg"
|
||||
leftSection={<User size="1.3rem" />}
|
||||
pl="0.5rem"
|
||||
pr={{ base: "-20", lg: "0.5rem" }}
|
||||
leftSection={
|
||||
avatar ? (
|
||||
<img
|
||||
src={avatar}
|
||||
alt="avatar"
|
||||
style={{
|
||||
width: "1.1rem",
|
||||
height: "1.1rem",
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<User size="1.3rem" />
|
||||
)
|
||||
}
|
||||
pl="0.7rem"
|
||||
pr={{ base: "-20", lg: "0.7rem" }}
|
||||
>
|
||||
<Username username={user?.username} />
|
||||
</Button>
|
||||
@@ -135,7 +149,7 @@ export default function UserDropdown() {
|
||||
|
||||
function Account({
|
||||
login,
|
||||
current_id,
|
||||
current_id: currentId,
|
||||
setOpen,
|
||||
rerender,
|
||||
viewLogout,
|
||||
@@ -146,17 +160,17 @@ function Account({
|
||||
rerender: () => void;
|
||||
viewLogout: boolean;
|
||||
}) {
|
||||
const user_id = useMemo(
|
||||
const userId = useMemo(
|
||||
() => MoghAuth.extractUserIdFromJwt(login.jwt),
|
||||
[login.jwt],
|
||||
);
|
||||
const { data: user } = useRead(
|
||||
"GetUsername",
|
||||
{ user_id: user_id! },
|
||||
{ enabled: !!user_id },
|
||||
{ user_id: userId! },
|
||||
{ enabled: !!userId },
|
||||
);
|
||||
if (!user_id || !user) return;
|
||||
const selected = user_id === current_id;
|
||||
if (!userId || !user) return;
|
||||
const selected = userId === currentId;
|
||||
return (
|
||||
<Flex align="center" gap="md" w="100%">
|
||||
<Button
|
||||
@@ -177,7 +191,7 @@ function Account({
|
||||
setOpen(false);
|
||||
return;
|
||||
}
|
||||
MoghAuth.LOGIN_TOKENS.change(user_id);
|
||||
MoghAuth.LOGIN_TOKENS.change(userId);
|
||||
location.reload();
|
||||
}}
|
||||
>
|
||||
@@ -185,7 +199,7 @@ function Account({
|
||||
<img
|
||||
src={user.avatar}
|
||||
alt="avatar"
|
||||
style={{ width: "1.3rem", height: "1.3rem", marginRight: "0.5rem" }}
|
||||
style={{ width: "1.1rem", height: "1.1rem", marginRight: "0.5rem" }}
|
||||
/>
|
||||
)}
|
||||
{!user.avatar && (
|
||||
@@ -198,7 +212,7 @@ function Account({
|
||||
<ActionIcon
|
||||
color="red"
|
||||
onClick={() => {
|
||||
MoghAuth.LOGIN_TOKENS.remove(user_id);
|
||||
MoghAuth.LOGIN_TOKENS.remove(userId);
|
||||
if (selected) {
|
||||
location.reload();
|
||||
} else {
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function WebsocketStatus() {
|
||||
{/* The hovercard can open unexpectedly on mobile so is hidden */}
|
||||
<Box hiddenFrom="sm">{Target}</Box>
|
||||
<Box visibleFrom="sm">
|
||||
<HoverCard offset={20}>
|
||||
<HoverCard offset={16}>
|
||||
<HoverCard.Target>{Target}</HoverCard.Target>
|
||||
<HoverCard.Dropdown>
|
||||
<Text>Websocket Status</Text>
|
||||
|
||||
@@ -15,7 +15,7 @@ import { Types } from "komodo_client";
|
||||
import { useState } from "react";
|
||||
|
||||
const ONE_DAY_MS = 1000 * 60 * 60 * 24;
|
||||
type ExpiresOptions = "90 days" | "180 days" | "1 year" | "never";
|
||||
type ExpiresOptions = "90 days" | "180 days" | "1 year" | "Never";
|
||||
|
||||
export interface NewApiKeyProps {
|
||||
/** For service user api keys */
|
||||
@@ -51,7 +51,7 @@ export default function NewApiKey({ userId }: { userId?: string }) {
|
||||
"90 days": now + ONE_DAY_MS * 90,
|
||||
"180 days": now + ONE_DAY_MS * 180,
|
||||
"1 year": now + ONE_DAY_MS * 365,
|
||||
never: 0,
|
||||
Never: 0,
|
||||
};
|
||||
const create = () => {
|
||||
const data = {
|
||||
@@ -86,7 +86,6 @@ export default function NewApiKey({ userId }: { userId?: string }) {
|
||||
{created && "Api Key Created"}
|
||||
</Text>
|
||||
}
|
||||
size="lg"
|
||||
>
|
||||
<Stack>
|
||||
{!created && (
|
||||
|
||||
@@ -64,8 +64,6 @@ export default function ApiKeysTable({
|
||||
header: "Delete",
|
||||
cell: ({ row }) => (
|
||||
<ConfirmButton
|
||||
variant="filled"
|
||||
color="red"
|
||||
icon={<ICONS.Delete size="1rem" />}
|
||||
onClick={() => onDelete(row.original.key)}
|
||||
loading={deletePending}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useContainerPortsMap } from "@/lib/hooks";
|
||||
import { Group, HoverCard, Stack, Text } from "@mantine/core";
|
||||
import { Group, GroupProps, HoverCard, Stack, Text } from "@mantine/core";
|
||||
import { Types } from "komodo_client";
|
||||
import { EthernetPort } from "lucide-react";
|
||||
import { colorByIntention } from "@/lib/color";
|
||||
@@ -8,7 +8,7 @@ import { fmtPortMount } from "@/lib/formatting";
|
||||
import { useServerAddress } from "@/resources/server/hooks";
|
||||
import DividedChildren from "@/ui/divided-children";
|
||||
|
||||
export interface ContainerPortsProps {
|
||||
export interface ContainerPortsProps extends GroupProps {
|
||||
ports: Types.Port[];
|
||||
serverId: string | undefined;
|
||||
}
|
||||
@@ -16,6 +16,7 @@ export interface ContainerPortsProps {
|
||||
export default function ContainerPorts({
|
||||
ports,
|
||||
serverId,
|
||||
...groupProps
|
||||
}: ContainerPortsProps) {
|
||||
const portsMap = useContainerPortsMap(ports);
|
||||
const sortedNumericPorts = Object.keys(portsMap)
|
||||
@@ -42,7 +43,7 @@ export default function ContainerPorts({
|
||||
}
|
||||
|
||||
return (
|
||||
<DividedChildren>
|
||||
<DividedChildren {...groupProps}>
|
||||
{groupedPorts.map((group) => (
|
||||
<ContainerPort
|
||||
key={group.start}
|
||||
|
||||
@@ -82,7 +82,7 @@ export default function ContainerSelector({
|
||||
onClick={() => combobox.toggleDropdown()}
|
||||
{...targetProps}
|
||||
>
|
||||
<Group gap="xs">
|
||||
<Group gap="xs" wrap="nowrap">
|
||||
<DOCKER_LINK_ICONS.Container serverId={serverId} name={selected} />
|
||||
<Text>{name || (placeholder ?? "Select container")}</Text>
|
||||
</Group>
|
||||
|
||||
@@ -48,7 +48,6 @@ export default function ContainersSection({
|
||||
<Section
|
||||
titleOther={titleOther}
|
||||
title={!titleOther ? "Containers" : undefined}
|
||||
|
||||
icon={!titleOther ? <ICONS.Container size="1.3rem" /> : undefined}
|
||||
actions={
|
||||
(pruneButton && !allRunning) || _search || setShow ? (
|
||||
@@ -124,7 +123,7 @@ export default function ContainersSection({
|
||||
),
|
||||
cell: ({ row }) =>
|
||||
(row.original.networks?.length ?? 0) > 0 ? (
|
||||
<DividedChildren>
|
||||
<DividedChildren wrap="nowrap">
|
||||
{row.original.networks?.map((network) => (
|
||||
<DockerResourceLink
|
||||
key={network}
|
||||
@@ -171,6 +170,7 @@ export default function ContainersSection({
|
||||
<ContainerPorts
|
||||
ports={row.original.ports ?? []}
|
||||
serverId={row.original.server_id}
|
||||
wrap="nowrap"
|
||||
/>
|
||||
),
|
||||
},
|
||||
@@ -181,7 +181,7 @@ export default function ContainersSection({
|
||||
<SortableHeader column={column} title="Volumes" />
|
||||
),
|
||||
cell: ({ row }) => (
|
||||
<DividedChildren>
|
||||
<DividedChildren wrap="nowrap">
|
||||
{row.original.volumes?.map((volume) => (
|
||||
<DockerResourceLink
|
||||
key={volume}
|
||||
|
||||
@@ -8,11 +8,13 @@ export interface RepoLinkProps {
|
||||
|
||||
export default function RepoLink({ repo, link }: RepoLinkProps) {
|
||||
return (
|
||||
<a href={link} target="_blank">
|
||||
<Group gap="sm">
|
||||
<FolderGit size="1rem" />
|
||||
<Text>{repo}</Text>
|
||||
</Group>
|
||||
</a>
|
||||
<Group
|
||||
renderRoot={(props) => <a href={link} target="_blank" {...props} />}
|
||||
gap="xs"
|
||||
wrap="nowrap"
|
||||
>
|
||||
<FolderGit size="1rem" />
|
||||
<Text>{repo}</Text>
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ export default function TagSelector({
|
||||
pl="0.4rem"
|
||||
className="bordered-heavy"
|
||||
justify="start"
|
||||
w={{ base: "100%", xs: "fit-content" }}
|
||||
w={{ base: "100%", xs: "138" }}
|
||||
fw="normal"
|
||||
leftSection={
|
||||
<Badge
|
||||
|
||||
@@ -22,12 +22,16 @@ export default function Tag({
|
||||
onClick={onClick}
|
||||
style={{ cursor: onClick ? "pointer" : undefined }}
|
||||
rightSection={icon}
|
||||
className="text-ellipsis"
|
||||
w="fit-content"
|
||||
h="fit-content"
|
||||
bdrs="sm"
|
||||
py={py}
|
||||
tt="none"
|
||||
fz={{ base: "xs", lg: "sm" }}
|
||||
styles={{
|
||||
label: { width: "fit-content", height: "fit-content" },
|
||||
}}
|
||||
{...badgeProps}
|
||||
>
|
||||
{tag?.name ?? <Loader size="0.6rem" />}
|
||||
|
||||
@@ -163,7 +163,7 @@ export default function Terminal({
|
||||
display: selected ? undefined : "none",
|
||||
}}
|
||||
>
|
||||
<Box ref={termRef} h="calc(100vh - 30rem)" />
|
||||
<Box ref={termRef} h="max(200px, calc(100vh - 320px))" />
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -187,6 +187,10 @@ function onUpdate(
|
||||
invalidate(["ListProcedures"]);
|
||||
} else if (update.operation === Types.Operation.RunAction) {
|
||||
invalidate(["ListActions"]);
|
||||
} else if (update.operation === Types.Operation.Deploy) {
|
||||
invalidate(["ListDeployments"]);
|
||||
} else if (update.operation === Types.Operation.DeployStack) {
|
||||
invalidate(["ListStacks"]);
|
||||
}
|
||||
|
||||
// Do invalidations of these only if update is completed
|
||||
|
||||
@@ -2,6 +2,7 @@ import { useAlertDetails } from "@/components/alerts/details";
|
||||
import AlertLevel from "@/components/alerts/level";
|
||||
import ResourceTypeSelector from "@/components/resource-type-selector";
|
||||
import { alertLevelIntention } from "@/lib/color";
|
||||
import { fmtUpperCamelcase } from "@/lib/formatting";
|
||||
import { useRead } from "@/lib/hooks";
|
||||
import { UsableResource } from "@/resources";
|
||||
import ResourceLink from "@/resources/link";
|
||||
@@ -114,7 +115,10 @@ export default function Alerts() {
|
||||
}
|
||||
setParams(p);
|
||||
}}
|
||||
data={alertTypes}
|
||||
data={alertTypes.map((value) => ({
|
||||
value,
|
||||
label: fmtUpperCamelcase(value),
|
||||
}))}
|
||||
searchable
|
||||
clearable
|
||||
/>
|
||||
|
||||
@@ -53,9 +53,9 @@ function RecentRow({ type }: { type: UsableResource }) {
|
||||
...(resources?.slice(0, 8 - (recents?.length || 0)) ?? []),
|
||||
];
|
||||
|
||||
const Components = ResourceComponents[type];
|
||||
const RC = ResourceComponents[type];
|
||||
|
||||
const data = Components.useDashboardSummaryData?.();
|
||||
const data = RC.useDashboardSummaryData?.();
|
||||
|
||||
if (ids.length === 0) {
|
||||
return;
|
||||
@@ -67,11 +67,11 @@ function RecentRow({ type }: { type: UsableResource }) {
|
||||
<>
|
||||
<DashboardSummary
|
||||
name={name}
|
||||
icon={<Components.Icon />}
|
||||
icon={<RC.Icon />}
|
||||
data={data}
|
||||
onClick={() => nav(`/${usableResourcePath(type)}`)}
|
||||
>
|
||||
{Components.DashboardSummary && <Components.DashboardSummary />}
|
||||
{RC.DashboardSummary && <RC.DashboardSummary />}
|
||||
</DashboardSummary>
|
||||
<Stack w="100%" px="lg" py="md">
|
||||
<Flex align="center" gap="xs" opacity={0.6}>
|
||||
@@ -115,8 +115,8 @@ function RecentCard({
|
||||
id: string;
|
||||
visibleFrom?: MantineBreakpoint;
|
||||
}) {
|
||||
const Components = ResourceComponents[type];
|
||||
const resource = Components.useListItem(id);
|
||||
const RC = ResourceComponents[type];
|
||||
const resource = RC.useListItem(id);
|
||||
const { preferences } = useDashboardPreferences();
|
||||
|
||||
if (!resource) {
|
||||
@@ -145,7 +145,7 @@ function RecentCard({
|
||||
>
|
||||
<Group justify="space-between">
|
||||
<Group style={{ textWrap: "nowrap" }} gap="sm">
|
||||
<Components.Icon id={id} />
|
||||
<RC.Icon id={id} />
|
||||
<ResourceName type={type} id={id} />
|
||||
{resource.template && <TemplateMarker type={type} />}
|
||||
</Group>
|
||||
|
||||
@@ -134,11 +134,7 @@ function ImageInner({
|
||||
)}
|
||||
|
||||
{/* TOP LEVEL IMAGE INFO */}
|
||||
<Section
|
||||
title="Details"
|
||||
icon={<ICONS.Info size="1.3rem" />}
|
||||
|
||||
>
|
||||
<Section title="Details" icon={<ICONS.Info size="1.3rem" />}>
|
||||
<DataTable
|
||||
tableKey="image-info"
|
||||
data={[image]}
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
import { komodo_client, useLoginOptions } from "@/lib/hooks";
|
||||
import { Button, Group, Stack, Text } from "@mantine/core";
|
||||
import {
|
||||
Button,
|
||||
Group,
|
||||
Stack,
|
||||
Text,
|
||||
useComputedColorScheme,
|
||||
} from "@mantine/core";
|
||||
import { MoghAuth } from "komodo_client";
|
||||
import { KeyRound } from "lucide-react";
|
||||
|
||||
@@ -9,8 +15,9 @@ export default function LoginHeader({
|
||||
secondFactorPending: boolean;
|
||||
}) {
|
||||
const options = useLoginOptions().data;
|
||||
const theme = useComputedColorScheme();
|
||||
return (
|
||||
<Group gap="4rem" justify="space-between">
|
||||
<Group justify="space-between">
|
||||
<Group gap="sm">
|
||||
<img src="/mogh-512x512.png" width={42} height={42} alt="moghtech" />
|
||||
<Stack gap="0">
|
||||
@@ -44,7 +51,11 @@ export default function LoginHeader({
|
||||
<img
|
||||
src={`/icons/${provider.toLowerCase()}.svg`}
|
||||
alt={provider}
|
||||
style={{ width: "1rem", height: "1rem" }}
|
||||
style={{
|
||||
width: "1rem",
|
||||
height: "1rem",
|
||||
filter: theme === "dark" ? "invert(1)" : undefined,
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ export default function Login({
|
||||
: (localForm.onSubmit((form) => login(form)) as any)
|
||||
}
|
||||
style={{ display: "flex", flexDirection: "column", gap: "1rem" }}
|
||||
miw={{ lg: "500px" }}
|
||||
miw={{ base: "95vw", xs: "530px" }}
|
||||
maw="95vw"
|
||||
>
|
||||
{options?.local && !secondFactorPending && (
|
||||
@@ -147,12 +147,18 @@ export default function Login({
|
||||
autoFocus
|
||||
label="Username"
|
||||
placeholder="Enter username"
|
||||
autoComplete="username"
|
||||
autoCapitalize="off"
|
||||
autoCorrect="off"
|
||||
key={localForm.key("username")}
|
||||
/>
|
||||
<PasswordInput
|
||||
{...localForm.getInputProps("password")}
|
||||
label="Password"
|
||||
placeholder="Enter password"
|
||||
autoComplete="password"
|
||||
autoCapitalize="off"
|
||||
autoCorrect="off"
|
||||
key={localForm.key("password")}
|
||||
/>
|
||||
<Group mt="sm" justify="end">
|
||||
|
||||
@@ -31,13 +31,13 @@ export default function Profile() {
|
||||
const [password, setPassword] = useState("");
|
||||
const { mutate: updateUsername } = useManageAuth("UpdateUsername", {
|
||||
onSuccess: () => {
|
||||
notifications.show({ message: "Username updated." });
|
||||
notifications.show({ message: "Username updated.", color: "green" });
|
||||
refetchUser();
|
||||
},
|
||||
});
|
||||
const { mutate: updatePassword } = useManageAuth("UpdatePassword", {
|
||||
onSuccess: () => {
|
||||
notifications.show({ message: "Password updated." });
|
||||
notifications.show({ message: "Password updated.", color: "green" });
|
||||
setPassword("");
|
||||
refetchUser();
|
||||
},
|
||||
@@ -48,6 +48,7 @@ export default function Profile() {
|
||||
onSuccess: () => {
|
||||
notifications.show({
|
||||
message: "External login skip 2fa mode updated.",
|
||||
color: "green",
|
||||
});
|
||||
refetchUser();
|
||||
},
|
||||
@@ -65,7 +66,6 @@ export default function Profile() {
|
||||
<Section
|
||||
title="Login"
|
||||
titleFz="h3"
|
||||
|
||||
icon={<ICONS.Key size="1.2rem" />}
|
||||
withBorder
|
||||
>
|
||||
@@ -115,7 +115,6 @@ export default function Profile() {
|
||||
<Section
|
||||
title="2FA"
|
||||
titleFz="h3"
|
||||
|
||||
icon={<ICONS.Key size="1.2rem" />}
|
||||
withBorder
|
||||
>
|
||||
|
||||
@@ -95,7 +95,6 @@ export const LinkedLogins = ({
|
||||
<Section
|
||||
title="Providers"
|
||||
titleFz="h3"
|
||||
|
||||
icon={<ICONS.Provider size="1.2rem" />}
|
||||
withBorder
|
||||
>
|
||||
@@ -151,7 +150,6 @@ export const LinkedLogins = ({
|
||||
}) =>
|
||||
data ? (
|
||||
<ConfirmModal
|
||||
targetProps={{ color: "red" }}
|
||||
icon={<ICONS.Unlink size="1rem" />}
|
||||
onConfirm={() => unlink({ provider })}
|
||||
confirmText="Unlink"
|
||||
|
||||
@@ -13,7 +13,10 @@ export const EnrollPasskey = ({ user }: { user: Types.User }) => {
|
||||
{
|
||||
onSuccess: () => {
|
||||
userInvalidate();
|
||||
notifications.show({ message: "Unenrolled in passkey 2FA" });
|
||||
notifications.show({
|
||||
message: "Unenrolled in passkey 2FA",
|
||||
color: "green",
|
||||
});
|
||||
},
|
||||
},
|
||||
);
|
||||
@@ -23,7 +26,10 @@ export const EnrollPasskey = ({ user }: { user: Types.User }) => {
|
||||
{
|
||||
onSuccess: () => {
|
||||
userInvalidate();
|
||||
notifications.show({ message: "Enrolled in passkey authentication" });
|
||||
notifications.show({
|
||||
message: "Enrolled in passkey authentication",
|
||||
color: "green",
|
||||
});
|
||||
},
|
||||
},
|
||||
);
|
||||
@@ -62,9 +68,7 @@ export const EnrollPasskey = ({ user }: { user: Types.User }) => {
|
||||
icon={<Trash size="1rem" />}
|
||||
loading={unenrollPending}
|
||||
onConfirm={() => unenroll({})}
|
||||
variant="filled"
|
||||
color="red"
|
||||
w={220}
|
||||
targetProps={{ variant: "filled", color: "red", c: "bw", w: 220 }}
|
||||
>
|
||||
Unenroll Passkey 2FA
|
||||
</ConfirmModal>
|
||||
|
||||
@@ -39,7 +39,10 @@ export const EnrollTotp = ({ user }: { user: Types.User }) => {
|
||||
{
|
||||
onSuccess: () => {
|
||||
userInvalidate();
|
||||
notifications.show({ message: "Unenrolled in TOTP 2FA." });
|
||||
notifications.show({
|
||||
message: "Unenrolled in TOTP 2FA.",
|
||||
color: "green",
|
||||
});
|
||||
},
|
||||
},
|
||||
);
|
||||
@@ -132,8 +135,7 @@ export const EnrollTotp = ({ user }: { user: Types.User }) => {
|
||||
icon={<Trash size="1rem" />}
|
||||
loading={unenrollPending}
|
||||
onConfirm={() => unenroll({})}
|
||||
color="red"
|
||||
w={220}
|
||||
targetProps={{ variant: "filled", color: "red", c: "bw", w: 220 }}
|
||||
>
|
||||
Unenroll TOTP 2FA
|
||||
</ConfirmModal>
|
||||
|
||||
@@ -24,6 +24,7 @@ export default function Settings() {
|
||||
<Stack gap="xl" mb="50vh">
|
||||
<SettingsCoreInfo />
|
||||
<MobileFriendlyTabs
|
||||
changeAt="xl"
|
||||
value={view}
|
||||
onValueChange={setView as any}
|
||||
tabs={[
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useInvalidate, useRead, useSetTitle, useWrite } from "@/lib/hooks";
|
||||
import ResourceSelector from "@/resources/selector";
|
||||
import { ICONS } from "@/theme/icons";
|
||||
import { DataTable, SortableHeader } from "@/ui/data-table";
|
||||
import { Badge, Group, Switch, TextInput } from "@mantine/core";
|
||||
import { Badge, Group, Switch, TextInput, useMatches } from "@mantine/core";
|
||||
import { notifications } from "@mantine/notifications";
|
||||
import { ColumnDef } from "@tanstack/react-table";
|
||||
import { Types } from "komodo_client";
|
||||
@@ -25,6 +25,10 @@ export default function SettingsOnboardingKeys() {
|
||||
notifications.show({ message: "Updated onboarding key", color: "green" });
|
||||
},
|
||||
});
|
||||
const expiresSize = useMatches({
|
||||
base: "sm",
|
||||
xl: "md",
|
||||
});
|
||||
const columns: (
|
||||
| ColumnDef<Types.OnboardingKey, unknown>
|
||||
| false
|
||||
@@ -46,6 +50,7 @@ export default function SettingsOnboardingKeys() {
|
||||
})
|
||||
}
|
||||
onKeyDown={(e) => e.key === "Enter" && e.currentTarget.blur()}
|
||||
miw={200}
|
||||
/>
|
||||
),
|
||||
},
|
||||
@@ -74,7 +79,7 @@ export default function SettingsOnboardingKeys() {
|
||||
(tag) => !row.original.tags?.includes(tag._id?.$oid!),
|
||||
);
|
||||
return (
|
||||
<Group>
|
||||
<Group wrap="nowrap" gap="sm">
|
||||
<TagSelector
|
||||
title="Select Tags"
|
||||
tags={otherTags}
|
||||
@@ -180,9 +185,10 @@ export default function SettingsOnboardingKeys() {
|
||||
}) => (
|
||||
<Badge
|
||||
color={expires && expires <= Date.now() ? "red" : "accent"}
|
||||
fz={{ base: "sm", lg: "md" }}
|
||||
p={{ base: "sm", lg: "md" }}
|
||||
size="md"
|
||||
fz={{ base: "sm", xl: "md" }}
|
||||
p={{ base: "sm", xl: "md" }}
|
||||
styles={{ label: { width: "fit-content", height: "fit-content" } }}
|
||||
size={expiresSize}
|
||||
>
|
||||
{expires ? fmtDateWithMinutes(new Date(expires)) : "Never"}
|
||||
</Badge>
|
||||
|
||||
@@ -15,7 +15,7 @@ import { useDisclosure } from "@mantine/hooks";
|
||||
import { notifications } from "@mantine/notifications";
|
||||
import { useState } from "react";
|
||||
|
||||
type ExpiresOptions = "1 day" | "7 days" | "30 days" | "never";
|
||||
type ExpiresOptions = "1 day" | "7 days" | "30 days" | "Never";
|
||||
const ONE_DAY_MS = 1000 * 60 * 60 * 24;
|
||||
|
||||
export default function NewOnboardingKey() {
|
||||
@@ -38,7 +38,7 @@ export default function NewOnboardingKey() {
|
||||
"1 day": now + ONE_DAY_MS,
|
||||
"7 days": now + ONE_DAY_MS * 7,
|
||||
"30 days": now + ONE_DAY_MS * 90,
|
||||
never: 0,
|
||||
Never: 0,
|
||||
};
|
||||
const create = () =>
|
||||
mutate({
|
||||
|
||||
@@ -3,7 +3,13 @@ import { ICONS } from "@/theme/icons";
|
||||
import ConfirmButton from "@/ui/confirm-button";
|
||||
import { notifications } from "@mantine/notifications";
|
||||
|
||||
export default function DeleteVariable({ name, disabled }: { name: string; disabled: boolean }) {
|
||||
export default function DeleteVariable({
|
||||
name,
|
||||
disabled,
|
||||
}: {
|
||||
name: string;
|
||||
disabled: boolean;
|
||||
}) {
|
||||
const invalidate = useInvalidate();
|
||||
const { mutate, isPending } = useWrite("DeleteVariable", {
|
||||
onSuccess: () => {
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
import DockerResourceLink from "@/components/docker/link";
|
||||
import TargetTerminal from "@/components/terminal/target";
|
||||
import { useSetTitle, useWrite } from "@/lib/hooks";
|
||||
import { useSetTitle } from "@/lib/hooks";
|
||||
import { ICONS } from "@/theme/icons";
|
||||
import { useDeployment } from "@/resources/deployment";
|
||||
import { useServer } from "@/resources/server";
|
||||
import { useStack } from "@/resources/stack";
|
||||
import ConfirmButton from "@/ui/confirm-button";
|
||||
import Page from "@/ui/page";
|
||||
import { Group, Text } from "@mantine/core";
|
||||
import { notifications } from "@mantine/notifications";
|
||||
import { Types } from "komodo_client";
|
||||
import { ReactNode, useMemo } from "react";
|
||||
import { useNavigate, useParams } from "react-router-dom";
|
||||
import { useParams } from "react-router-dom";
|
||||
import ResourceLink from "@/resources/link";
|
||||
import DeleteTerminal from "./terminals/delete";
|
||||
|
||||
type WithTerminal = "servers" | "deployments" | "stacks" | string;
|
||||
|
||||
@@ -211,7 +210,12 @@ function TerminalLayout({
|
||||
customDescription={
|
||||
<>
|
||||
<Text>Terminal</Text>|{Link}|
|
||||
<DeleteTerminal terminal={terminal} target={target} />
|
||||
<DeleteTerminal
|
||||
terminal={terminal}
|
||||
target={target}
|
||||
size="xs"
|
||||
navTo="/terminals"
|
||||
/>
|
||||
</>
|
||||
}
|
||||
>
|
||||
@@ -219,37 +223,3 @@ function TerminalLayout({
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
function DeleteTerminal({
|
||||
terminal,
|
||||
target,
|
||||
}: {
|
||||
terminal: string;
|
||||
target: Types.TerminalTarget;
|
||||
}) {
|
||||
const nav = useNavigate();
|
||||
const { mutate, isPending } = useWrite("DeleteTerminal", {
|
||||
onSuccess: () => {
|
||||
notifications.show({ message: `Deleted Terminal '${terminal}'` });
|
||||
nav("/terminals");
|
||||
},
|
||||
});
|
||||
return (
|
||||
<ConfirmButton
|
||||
variant="filled"
|
||||
color="red"
|
||||
icon={<ICONS.Delete size="1rem" />}
|
||||
onClick={() =>
|
||||
mutate({
|
||||
target,
|
||||
terminal,
|
||||
})
|
||||
}
|
||||
loading={isPending}
|
||||
w={120}
|
||||
size="xs"
|
||||
>
|
||||
Delete
|
||||
</ConfirmButton>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,23 +1,33 @@
|
||||
import { useTerminalTargetPermissions, useWrite } from "@/lib/hooks";
|
||||
import { ICONS } from "@/theme/icons";
|
||||
import ConfirmButton from "@/ui/confirm-button";
|
||||
import { ButtonProps } from "@mantine/core";
|
||||
import { notifications } from "@mantine/notifications";
|
||||
import { Types } from "komodo_client";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
export default function DeleteTerminal({
|
||||
target,
|
||||
terminal,
|
||||
refetch,
|
||||
navTo,
|
||||
...buttonProps
|
||||
}: {
|
||||
target: Types.TerminalTarget;
|
||||
terminal: string;
|
||||
refetch: () => void;
|
||||
}) {
|
||||
refetch?: () => void;
|
||||
navTo?: string;
|
||||
} & ButtonProps) {
|
||||
const nav = useNavigate();
|
||||
const { canWrite } = useTerminalTargetPermissions(target);
|
||||
const { mutate, isPending } = useWrite("DeleteTerminal", {
|
||||
onSuccess: () => {
|
||||
refetch();
|
||||
notifications.show({ message: `Deleted Terminal '${terminal}'` });
|
||||
refetch?.();
|
||||
notifications.show({
|
||||
message: `Deleted Terminal '${terminal}'`,
|
||||
color: "green",
|
||||
});
|
||||
navTo && nav(navTo);
|
||||
},
|
||||
});
|
||||
return (
|
||||
@@ -29,6 +39,7 @@ export default function DeleteTerminal({
|
||||
w={120}
|
||||
disabled={!canWrite}
|
||||
loading={isPending}
|
||||
{...buttonProps}
|
||||
>
|
||||
Delete
|
||||
</ConfirmButton>
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
import ResourceTypeSelector from "@/components/resource-type-selector";
|
||||
import { useUpdateDetails } from "@/components/updates/details";
|
||||
import UserAvatar from "@/components/user-avatar";
|
||||
import { fmtDateWithMinutes, fmtOperation } from "@/lib/formatting";
|
||||
import {
|
||||
fmtDateWithMinutes,
|
||||
fmtOperation,
|
||||
fmtUpperCamelcase,
|
||||
} from "@/lib/formatting";
|
||||
import { useRead, useSetTitle } from "@/lib/hooks";
|
||||
import { UsableResource } from "@/resources";
|
||||
import ResourceLink from "@/resources/link";
|
||||
@@ -94,13 +98,12 @@ export default function Updates() {
|
||||
}
|
||||
setParams(p);
|
||||
}}
|
||||
data={
|
||||
type
|
||||
? OPERATIONS_BY_RESOURCE[type]
|
||||
: Object.values(Types.Operation).filter(
|
||||
(o) => o !== Types.Operation.None,
|
||||
)
|
||||
}
|
||||
data={(type
|
||||
? OPERATIONS_BY_RESOURCE[type]
|
||||
: Object.values(Types.Operation).filter(
|
||||
(o) => o !== Types.Operation.None,
|
||||
)
|
||||
).map((value) => ({ value, label: fmtUpperCamelcase(value) }))}
|
||||
searchable
|
||||
clearable
|
||||
/>
|
||||
@@ -209,7 +212,9 @@ export default function Updates() {
|
||||
{
|
||||
header: "Operator",
|
||||
accessorKey: "operator",
|
||||
cell: ({ row }) => <UserAvatar userId={row.original.operator} fz="md" />,
|
||||
cell: ({ row }) => (
|
||||
<UserAvatar userId={row.original.operator} fz="md" />
|
||||
),
|
||||
},
|
||||
]}
|
||||
onRowClick={(row) => openDetails(row.id)}
|
||||
|
||||
@@ -67,11 +67,7 @@ export default function BuildInfo({
|
||||
<Section gap="xl" titleOther={titleOther}>
|
||||
{/* Errors */}
|
||||
{remoteError && remoteError.length > 0 && (
|
||||
<Stack
|
||||
className="bordered-light"
|
||||
bdrs="md"
|
||||
p="xl"
|
||||
>
|
||||
<Stack className="bordered-light" bdrs="md" p="xl">
|
||||
{/* HEADER */}
|
||||
<Group justify="between">
|
||||
<Group ff="monospace">
|
||||
@@ -112,11 +108,7 @@ export default function BuildInfo({
|
||||
|
||||
{/* Update latest contents */}
|
||||
{remoteContents && remoteContents.length > 0 && (
|
||||
<Stack
|
||||
className="bordered-light"
|
||||
bdrs="md"
|
||||
p="xl"
|
||||
>
|
||||
<Stack className="bordered-light" bdrs="md" p="xl">
|
||||
{/* HEADER */}
|
||||
<Group
|
||||
justify="space-between"
|
||||
@@ -194,7 +186,9 @@ export default function BuildInfo({
|
||||
)}
|
||||
|
||||
{lastBuild && lastBuild.logs.length > 0 && (
|
||||
<Code fz="lg" fw="bold" w="fit-content">Last Build Logs</Code>
|
||||
<Code fz="lg" fw="bold" w="fit-content">
|
||||
Last Build Logs
|
||||
</Code>
|
||||
)}
|
||||
{lastBuild &&
|
||||
lastBuild.logs?.map((log, i) => (
|
||||
@@ -216,11 +210,7 @@ export default function BuildInfo({
|
||||
withBorder
|
||||
>
|
||||
{log.command && (
|
||||
<Stack
|
||||
className="bordered-light"
|
||||
bdrs="md"
|
||||
p="md"
|
||||
>
|
||||
<Stack className="bordered-light" bdrs="md" p="md">
|
||||
<Text fw="bold">command</Text>
|
||||
<Code
|
||||
fz="sm"
|
||||
@@ -234,11 +224,7 @@ export default function BuildInfo({
|
||||
</Stack>
|
||||
)}
|
||||
{log.stdout && (
|
||||
<Stack
|
||||
className="bordered-light"
|
||||
bdrs="md"
|
||||
p="md"
|
||||
>
|
||||
<Stack className="bordered-light" bdrs="md" p="md">
|
||||
<Text fw="bold">stdout</Text>
|
||||
<Code
|
||||
component="pre"
|
||||
@@ -252,11 +238,7 @@ export default function BuildInfo({
|
||||
</Stack>
|
||||
)}
|
||||
{log.stderr && (
|
||||
<Stack
|
||||
className="bordered-light"
|
||||
bdrs="md"
|
||||
p="md"
|
||||
>
|
||||
<Stack className="bordered-light" bdrs="md" p="md">
|
||||
<Text fw="bold">stderr</Text>
|
||||
<Code
|
||||
component="pre"
|
||||
|
||||
@@ -122,7 +122,7 @@ const Image = ({
|
||||
} else {
|
||||
const [img] = image.split(":");
|
||||
return (
|
||||
<Group>
|
||||
<Group wrap="nowrap">
|
||||
<ICONS.Image size="1rem" />
|
||||
{img}
|
||||
</Group>
|
||||
|
||||
@@ -101,7 +101,11 @@ export interface RequiredResourceComponents<
|
||||
BatchExecutions: React.FC;
|
||||
|
||||
/** Icon for the resource */
|
||||
Icon: React.FC<{ id?: string; size?: string | number; noColor?: boolean }>;
|
||||
Icon: React.FC<{
|
||||
id?: string;
|
||||
size?: string | number;
|
||||
noColor?: boolean;
|
||||
}>;
|
||||
|
||||
State: IdComponent;
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ export default function ResourceSelector({
|
||||
w="fit-content"
|
||||
maw="100%"
|
||||
rightSection={
|
||||
<Group gap="xs" ml="sm">
|
||||
<Group gap="xs" ml="sm" wrap="nowrap">
|
||||
{clearable && (
|
||||
<ActionIcon
|
||||
size="sm"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useSelectedResources } from "@/lib/hooks";
|
||||
import ResourceLink from "@/resources/link";
|
||||
import { DataTable, SortableHeader } from "@/ui/data-table";
|
||||
import { BoxProps, Group, Text } from "@mantine/core";
|
||||
import { BoxProps, Group, Stack, Text } from "@mantine/core";
|
||||
import { Types } from "komodo_client";
|
||||
import { useServerStats, useServerThresholds } from "@/resources/server/hooks";
|
||||
import StatCell from "@/ui/stat-cell";
|
||||
@@ -102,7 +102,39 @@ function DiskCell({ id }: { id: string }) {
|
||||
useServerThresholds(id);
|
||||
const intent: "Good" | "Warning" | "Critical" =
|
||||
perc < warning ? "Good" : perc < critical ? "Warning" : "Critical";
|
||||
return <StatCell value={stats ? perc : undefined} intent={intent} />;
|
||||
return (
|
||||
<StatCell
|
||||
value={stats ? perc : undefined}
|
||||
intent={intent}
|
||||
infoDisabled={!stats}
|
||||
info={
|
||||
<Stack gap="sm">
|
||||
{stats?.disks.map((disk) => (
|
||||
<Group
|
||||
key={disk.mount}
|
||||
justify="space-between"
|
||||
className="bordered-light"
|
||||
p="sm"
|
||||
bdrs="sm"
|
||||
>
|
||||
<Group>
|
||||
<Text c="dimmed">Mount:</Text>{" "}
|
||||
<Text ff="monospace" bg="accent.6" px="xs" bdrs="sm">
|
||||
{disk.mount}
|
||||
</Text>
|
||||
</Group>
|
||||
<Text>-</Text>
|
||||
<Group gap="0.4rem">
|
||||
{disk.used_gb.toFixed(1)} GB <Text c="dimmed">of</Text>{" "}
|
||||
{disk.total_gb.toFixed(1)} GB <Text c="dimmed">in use</Text> (
|
||||
{((100 * disk.used_gb) / disk.total_gb).toFixed(1)} %)
|
||||
</Group>
|
||||
</Group>
|
||||
))}
|
||||
</Stack>
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function LoadAvgCell({ id }: { id: string }) {
|
||||
|
||||
@@ -59,8 +59,11 @@ export default function StackConfigFiles({
|
||||
placeholder="configs/config.yaml"
|
||||
value={path}
|
||||
onChange={(e) => {
|
||||
values[i] = { ...values[i], path: e.target.value };
|
||||
set({ config_files: [...values] });
|
||||
set({
|
||||
config_files: values.map((v, index) =>
|
||||
i === index ? { ...v, path: e.target.value } : v,
|
||||
),
|
||||
});
|
||||
}}
|
||||
w={{ base: "100%", md: 400 }}
|
||||
disabled={disabled}
|
||||
@@ -91,8 +94,11 @@ export default function StackConfigFiles({
|
||||
value={services}
|
||||
data={allServices}
|
||||
onChange={(services) => {
|
||||
values[i] = { ...values[i], services };
|
||||
set({ config_files: [...values] });
|
||||
set({
|
||||
config_files: values.map((v, index) =>
|
||||
i === index ? { ...v, services } : v,
|
||||
),
|
||||
});
|
||||
}}
|
||||
disabled={disabled}
|
||||
searchable
|
||||
@@ -102,11 +108,16 @@ export default function StackConfigFiles({
|
||||
value={requires}
|
||||
onChange={(requires) => {
|
||||
if (!requires) return;
|
||||
values[i] = {
|
||||
...values[i],
|
||||
requires: requires as Types.StackFileRequires,
|
||||
};
|
||||
set({ config_files: [...values] });
|
||||
set({
|
||||
config_files: values.map((v, index) =>
|
||||
i === index
|
||||
? {
|
||||
...v,
|
||||
requires: requires as Types.StackFileRequires,
|
||||
}
|
||||
: v,
|
||||
),
|
||||
});
|
||||
}}
|
||||
disabled={disabled}
|
||||
data={Object.values(Types.StackFileRequires)}
|
||||
|
||||
@@ -279,12 +279,16 @@ export default function StackConfig({
|
||||
<TextInput
|
||||
value={file.path || ""}
|
||||
onChange={(e) => {
|
||||
const newFiles = [...files];
|
||||
newFiles[i] = {
|
||||
path: e.target.value,
|
||||
track: file.track ?? true,
|
||||
};
|
||||
set({ additional_env_files: newFiles });
|
||||
set({
|
||||
additional_env_files: files.map((v, index) =>
|
||||
i === index
|
||||
? {
|
||||
path: e.target.value,
|
||||
track: file.track ?? true,
|
||||
}
|
||||
: v,
|
||||
),
|
||||
});
|
||||
}}
|
||||
placeholder=".env"
|
||||
disabled={disabled}
|
||||
@@ -296,9 +300,11 @@ export default function StackConfig({
|
||||
label="Track"
|
||||
checked={file.track ?? true}
|
||||
onCheckedChange={(track) => {
|
||||
const newFiles = [...files];
|
||||
newFiles[i] = { ...newFiles[i], track };
|
||||
set({ additional_env_files: newFiles });
|
||||
set({
|
||||
additional_env_files: files.map((v, index) =>
|
||||
i === index ? { ...v, track } : v,
|
||||
),
|
||||
});
|
||||
}}
|
||||
disabled={disabled}
|
||||
id={`track-${i}`}
|
||||
|
||||
@@ -34,7 +34,7 @@ export default function StackInfo({
|
||||
message: res.success
|
||||
? "Contents written."
|
||||
: "Failed to write contents.",
|
||||
color: res.success ? undefined : "red",
|
||||
color: res.success ? "green" : "red",
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function ResourceSyncInfo({
|
||||
message: res.success
|
||||
? "Contents written."
|
||||
: "Failed to write contents.",
|
||||
color: res.success ? undefined : "red",
|
||||
color: res.success ? "green" : "red",
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@@ -207,11 +207,7 @@ export default function Config<T>({
|
||||
</>
|
||||
)}
|
||||
{!disableSidebar && (
|
||||
<Flex
|
||||
w="100%"
|
||||
gap="md"
|
||||
direction={{ base: "column", lg: "row" }}
|
||||
>
|
||||
<Flex w="100%" gap="md" direction={{ base: "column", lg: "row" }}>
|
||||
{/** SIDEBAR (LG) */}
|
||||
<Box
|
||||
visibleFrom="lg"
|
||||
@@ -223,7 +219,7 @@ export default function Config<T>({
|
||||
borderTopRightRadius: "var(--mantine-radius-md)",
|
||||
}}
|
||||
>
|
||||
<Stack pos="sticky" w={175} top={94} pb={24} m="lg">
|
||||
<Stack pos="sticky" w={175} top={88} pb={24} m="lg">
|
||||
{/** ANCHORS */}
|
||||
<ScrollArea
|
||||
mah={
|
||||
@@ -267,7 +263,9 @@ export default function Config<T>({
|
||||
</ScrollArea>
|
||||
|
||||
{/** SAVE */}
|
||||
<SaveOrReset fullWidth />
|
||||
<Stack gap="xs">
|
||||
<SaveOrReset fullWidth />
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Box>
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ export function DataTable<TData, TValue>({
|
||||
className={noBorder ? undefined : "bordered-light"}
|
||||
bdrs="md"
|
||||
w="100%"
|
||||
mah="max(150px, calc(100vh - 400px))"
|
||||
mah="max(150px, calc(100vh - 320px))"
|
||||
style={{ overflow: "auto" }}
|
||||
{...boxProps}
|
||||
>
|
||||
@@ -275,7 +275,7 @@ export const SortableHeader = <T, V>({
|
||||
style={{ width: "100%" }}
|
||||
>
|
||||
<Group justify="space-between" gap="sm" wrap="nowrap">
|
||||
<Group gap="xs">
|
||||
<Group justify="start" gap="xs" wrap="nowrap" miw="120" w="fit-content">
|
||||
<Text fw={600} size="sm" lineClamp={1}>
|
||||
{title}
|
||||
</Text>
|
||||
|
||||
@@ -25,8 +25,11 @@ export default function InputList<T>({
|
||||
key={i}
|
||||
value={arg}
|
||||
onChange={(e) => {
|
||||
values[i] = e.target.value;
|
||||
set({ [field]: [...values] } as Partial<T>);
|
||||
set({
|
||||
[field]: values.map((v, index) =>
|
||||
i === index ? e.target.value : v,
|
||||
),
|
||||
} as Partial<T>);
|
||||
}}
|
||||
disabled={disabled}
|
||||
w={{ base: 230, md: 400 }}
|
||||
|
||||
@@ -25,7 +25,7 @@ const convert = new Convert({
|
||||
export default function LogViewer({
|
||||
log,
|
||||
autoScroll = true,
|
||||
h = "calc(100vh - 250px)",
|
||||
h = "max(200px, calc(100vh - 320px))",
|
||||
...props
|
||||
}: LogViewerProps) {
|
||||
const viewportRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
@@ -14,7 +14,7 @@ export default function SearchInput({
|
||||
<TextInput
|
||||
placeholder="search..."
|
||||
leftSection={<ICONS.Search size="0.8rem" />}
|
||||
w={{ base: "100%", xs: 200, lg: 300 }}
|
||||
w={{ base: "100%", xs: 220 }}
|
||||
onChange={(e) => {
|
||||
onChange?.(e);
|
||||
onSearch?.(e.target.value);
|
||||
|
||||
@@ -1,18 +1,24 @@
|
||||
import { ColorIntention, hexColorByIntention } from "@/lib/color";
|
||||
import { ICONS } from "@/theme/icons";
|
||||
import {
|
||||
ActionIcon,
|
||||
Group,
|
||||
GroupProps,
|
||||
HoverCard,
|
||||
Progress,
|
||||
ProgressProps,
|
||||
Text,
|
||||
TextProps,
|
||||
} from "@mantine/core";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
export interface StatCellProps extends GroupProps {
|
||||
value: number | undefined;
|
||||
intent: ColorIntention;
|
||||
textProps?: TextProps;
|
||||
barProps?: ProgressProps;
|
||||
info?: ReactNode;
|
||||
infoDisabled?: boolean;
|
||||
}
|
||||
|
||||
export default function StatCell({
|
||||
@@ -20,21 +26,47 @@ export default function StatCell({
|
||||
intent,
|
||||
textProps,
|
||||
barProps,
|
||||
info,
|
||||
infoDisabled,
|
||||
...groupProps
|
||||
}: StatCellProps) {
|
||||
const ProgressComponent = (
|
||||
<Progress
|
||||
value={value ?? 0}
|
||||
color={hexColorByIntention(intent)}
|
||||
w={200}
|
||||
size="xl"
|
||||
{...barProps}
|
||||
/>
|
||||
);
|
||||
return (
|
||||
<Group gap="xs" justify="space-between" wrap="nowrap" {...groupProps}>
|
||||
<Text c={value === undefined ? "dimmed" : undefined} {...textProps}>
|
||||
<Group
|
||||
gap="xs"
|
||||
justify="space-between"
|
||||
wrap="nowrap"
|
||||
{...groupProps}
|
||||
>
|
||||
<Text
|
||||
w={64}
|
||||
c={value === undefined ? "dimmed" : undefined}
|
||||
{...textProps}
|
||||
>
|
||||
{value === undefined ? "N/A" : value.toFixed(1) + "%"}
|
||||
</Text>
|
||||
<Progress
|
||||
value={value ?? 0}
|
||||
color={hexColorByIntention(intent)}
|
||||
w="70%"
|
||||
miw={80}
|
||||
size="xl"
|
||||
{...barProps}
|
||||
/>
|
||||
{!info && ProgressComponent}
|
||||
{info && (
|
||||
<Group gap="xs" wrap="nowrap">
|
||||
{ProgressComponent}
|
||||
<HoverCard position="bottom-end">
|
||||
<HoverCard.Target>
|
||||
<ActionIcon variant="subtle" disabled={infoDisabled}>
|
||||
<ICONS.Info size="1rem" />
|
||||
</ActionIcon>
|
||||
</HoverCard.Target>
|
||||
<HoverCard.Dropdown>{info}</HoverCard.Dropdown>
|
||||
</HoverCard>
|
||||
</Group>
|
||||
)}
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import { CheckCircle, Moon, Sun } from "lucide-react";
|
||||
export default function ThemeToggle() {
|
||||
const { colorScheme, setColorScheme } = useMantineColorScheme();
|
||||
return (
|
||||
<Menu offset={20}>
|
||||
<Menu offset={16}>
|
||||
<Menu.Target>
|
||||
<ActionIcon aria-label="ThemeToggle" size="xl" variant="subtle">
|
||||
<ThemeIcon />
|
||||
|
||||
Reference in New Issue
Block a user