Bump dependancies and remove depreciated Revolt React components

This commit is contained in:
Declan Chidlow 2024-07-14 16:16:29 +08:00
parent 6beeffe0fb
commit b57cac1639
16 changed files with 3296 additions and 3037 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

894
lib/.yarn/releases/yarn-4.3.1.cjs vendored Executable file

File diff suppressed because one or more lines are too long

View file

@ -1,3 +1,7 @@
compressionLevel: mixed
enableGlobalCache: false
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-3.2.1.cjs
yarnPath: .yarn/releases/yarn-4.3.1.cjs

View file

@ -13,5 +13,5 @@
"tsc-watch": "^5.0.3",
"typescript": "^4.7.4"
},
"packageManager": "yarn@3.2.1"
"packageManager": "yarn@4.3.1"
}

View file

@ -2,15 +2,15 @@
# Manual changes might be lost - proceed with caution!
__metadata:
version: 6
cacheKey: 8
version: 8
cacheKey: 10
"@redis/bloom@npm:1.0.2":
version: 1.0.2
resolution: "@redis/bloom@npm:1.0.2"
peerDependencies:
"@redis/client": ^1.0.0
checksum: 4872e7e5e4ff03d63349ca88d3164d487f62805651ada91924de2592995993401c98a01cb93bff8d71e9a2e54985b2485b6cb0e084a7e8b1283e2ebb8bc4b833
checksum: 10/a4cc9bb670c0542357a1e1a3c3eee11de3177f7e7cb74e33830ad2d8ea408494b0d05277eb8b098d104507c65e4d64f4543ef251cc3bd67d9997e84614e46b10
languageName: node
linkType: hard
@ -18,10 +18,10 @@ __metadata:
version: 1.2.0
resolution: "@redis/client@npm:1.2.0"
dependencies:
cluster-key-slot: 1.1.0
generic-pool: 3.8.2
yallist: 4.0.0
checksum: 098a550a6728d9d3babb432a1c32f1678cbda5ad7fa3d59316fc334be42ef05d778fc4cf2e3d873a34817447870a5fc0486e62793698a279404b3b086ba7422e
cluster-key-slot: "npm:1.1.0"
generic-pool: "npm:3.8.2"
yallist: "npm:4.0.0"
checksum: 10/8acaa7bdddbe3cdf624436be391c2d90f75514d08737640eb9338ddc04a92ff13c9d695ad4a656ecde1549122783b9591342022f4e28eee8ecd66ae51d4308de
languageName: node
linkType: hard
@ -30,7 +30,7 @@ __metadata:
resolution: "@redis/graph@npm:1.0.1"
peerDependencies:
"@redis/client": ^1.0.0
checksum: 72e485efa416bdff10420f6e13c9cb4e1e5c70752e5172717adf62fc1d4d9ba12e708229fd87876f3a93270ff74c4bcd4d916987438dc36a94f7f12c9785fa44
checksum: 10/72e485efa416bdff10420f6e13c9cb4e1e5c70752e5172717adf62fc1d4d9ba12e708229fd87876f3a93270ff74c4bcd4d916987438dc36a94f7f12c9785fa44
languageName: node
linkType: hard
@ -39,7 +39,7 @@ __metadata:
resolution: "@redis/json@npm:1.0.3"
peerDependencies:
"@redis/client": ^1.0.0
checksum: 26a7003c2fbacfa5998671e3a301cb2285432bf90f237adedcf76c0be0d379528e6710d469a8ea93c04bbd22951f9c2f41d460dbd79e85856f199248c4a250d5
checksum: 10/77a51d854f84b1b121e92a371cbc788bf700845fb59873f652b2a5533267ca0ef402d6b1cd7d7eec2cc7fc02ef6efe833399c957c4a9e1a3adf2339b4b434585
languageName: node
linkType: hard
@ -48,7 +48,7 @@ __metadata:
resolution: "@redis/search@npm:1.0.6"
peerDependencies:
"@redis/client": ^1.0.0
checksum: 5c776143520b11ae2e49a05e7fe3df514a01460f2be90759b15e4f097bf4a985784c48c2184ac2c275ced3ec5a0c77b208a4d46a50161d1ad6025e3ab2990aa7
checksum: 10/3134961f3cf5bdd6c711944418919c23586d3be8feb1667347f0ed238f99777af70686f891a249865614c05c49d112cf31e86671286ec48009c1fdbc6804a01c
languageName: node
linkType: hard
@ -57,7 +57,7 @@ __metadata:
resolution: "@redis/time-series@npm:1.0.3"
peerDependencies:
"@redis/client": ^1.0.0
checksum: 4d11518185dd15f31c5b4a433902e53a3ebc24614a0221080ab12abf4f6fc60b3db00a71a83de7b4b10f11077de611dc1c273274573646d63481d40ca246f82d
checksum: 10/7b950e65a28491009892b1429a2d71f04c01028fe78175c5b6b0781df4eacc0d5957af415e1faafc1167fe8df78e2979ba52634c21f59a39c13db5d5d107dd25
languageName: node
linkType: hard
@ -65,8 +65,8 @@ __metadata:
version: 4.2.0
resolution: "@types/bson@npm:4.2.0"
dependencies:
bson: "*"
checksum: 55abf60c57b7f05655c210b386392636a299a7df18b89cec2cde0aa87374d97dd4ac9632226b0f6fe135d16ad4296ae5ddc782f6e9132d38c53dd26a6df8e704
bson: "npm:*"
checksum: 10/55abf60c57b7f05655c210b386392636a299a7df18b89cec2cde0aa87374d97dd4ac9632226b0f6fe135d16ad4296ae5ddc782f6e9132d38c53dd26a6df8e704
languageName: node
linkType: hard
@ -74,23 +74,23 @@ __metadata:
version: 3.6.20
resolution: "@types/mongodb@npm:3.6.20"
dependencies:
"@types/bson": "*"
"@types/node": "*"
checksum: e5397ada2ed728997f7c3f5424e8c28f682a635488be967c9c18a5de27b1641cf28bb42bc12026ac6d475c457a880e27097e13c8120350ba13219f4ccc030656
"@types/bson": "npm:*"
"@types/node": "npm:*"
checksum: 10/b85770dfa009cd919f680bdf7e152f9cab21d0ea6aab3d3a4133a9e78a1a2dfd966ed1503594191051985cb7157df6e830740d8bdc2b45d4b31050849f84f33d
languageName: node
linkType: hard
"@types/node@npm:*, @types/node@npm:^18.0.4":
version: 18.0.5
resolution: "@types/node@npm:18.0.5"
checksum: cc9c67d0074252f798d226dd95a22e0e8851cf7fc623ef4a603d9ad2c2b46650f930147062ea33719008b1de67f08f499ad693307d02f8396e6f1fead8144329
checksum: 10/ac8f06906bf1babb26ade4df92dd1a7db787d37f891d8ebc068989d9fe9db3ef55333426189705d0e2bbffdac6d0f05142ef5fef91c8bb47d9d2d8da10f7e9b2
languageName: node
linkType: hard
"ansi-regex@npm:^5.0.1":
version: 5.0.1
resolution: "ansi-regex@npm:5.0.1"
checksum: 2aa4bb54caf2d622f1afdad09441695af2a83aa3fe8b8afa581d205e57ed4261c183c4d3877cee25794443fde5876417d859c108078ab788d6af7e4fe52eb66b
checksum: 10/2aa4bb54caf2d622f1afdad09441695af2a83aa3fe8b8afa581d205e57ed4261c183c4d3877cee25794443fde5876417d859c108078ab788d6af7e4fe52eb66b
languageName: node
linkType: hard
@ -98,18 +98,18 @@ __metadata:
version: 0.0.0-use.local
resolution: "automod@workspace:."
dependencies:
"@types/node": ^18.0.4
monk: ^7.3.4
redis: ^4.2.0
tsc-watch: ^5.0.3
typescript: ^4.7.4
"@types/node": "npm:^18.0.4"
monk: "npm:^7.3.4"
redis: "npm:^4.2.0"
tsc-watch: "npm:^5.0.3"
typescript: "npm:^4.7.4"
languageName: unknown
linkType: soft
"base64-js@npm:^1.3.1":
version: 1.5.1
resolution: "base64-js@npm:1.5.1"
checksum: 669632eb3745404c2f822a18fc3a0122d2f9a7a13f7fb8b5823ee19d1d2ff9ee5b52c53367176ea4ad093c332fd5ab4bd0ebae5a8e27917a4105a4cfc86b1005
checksum: 10/669632eb3745404c2f822a18fc3a0122d2f9a7a13f7fb8b5823ee19d1d2ff9ee5b52c53367176ea4ad093c332fd5ab4bd0ebae5a8e27917a4105a4cfc86b1005
languageName: node
linkType: hard
@ -117,9 +117,9 @@ __metadata:
version: 2.2.1
resolution: "bl@npm:2.2.1"
dependencies:
readable-stream: ^2.3.5
safe-buffer: ^5.1.1
checksum: 4f5d9b258919646a8d02f1731379e53b6f6309e34596ae02afbc3aeb183910bd2d0b70681f889b7c620ca48f65dc1cd0992ee1266c90d6d7c3be60688d141233
readable-stream: "npm:^2.3.5"
safe-buffer: "npm:^5.1.1"
checksum: 10/6320002f204720a53ce73147f8b46372adb91666371cc8167756120fce1658ffcbb228a5ca6ac61a8c6db6599d11deda133d90f8965497c79e709c34993b6adf
languageName: node
linkType: hard
@ -127,15 +127,15 @@ __metadata:
version: 4.6.5
resolution: "bson@npm:4.6.5"
dependencies:
buffer: ^5.6.0
checksum: b9d4856241e76f6bacf6825b5280f993a867b74fa47bb62b3a20d835d9f02979e1a10a6c38536ac86cb485dc96aabdacb0c6922fca7a784603a781a00e23c336
buffer: "npm:^5.6.0"
checksum: 10/c33e9ea088005305d7f65d923b09db7088e40e568033b728a2d3a0f49f8599d6989a5a9f7c92a15f0c0cfca3acec71332bfe2be4b24600a555917069977a9dbb
languageName: node
linkType: hard
"bson@npm:^1.1.4":
version: 1.1.6
resolution: "bson@npm:1.1.6"
checksum: 75762c9b7e0b3156cb0f38c7eb9ffcade53f0b04ac87dece9cba38f6dc570d9af91251de6a8988b294063cfaa21894c60ac9e85c34176accb3674acb092d66a7
checksum: 10/db94d70b2de9ff62e84f7682180cc361ccd4146d51226115d150c390501a062e942921db9f0d77ad43da0ff512859542a73e9d118f1831080e0fdaa90840863c
languageName: node
linkType: hard
@ -143,23 +143,23 @@ __metadata:
version: 5.7.1
resolution: "buffer@npm:5.7.1"
dependencies:
base64-js: ^1.3.1
ieee754: ^1.1.13
checksum: e2cf8429e1c4c7b8cbd30834ac09bd61da46ce35f5c22a78e6c2f04497d6d25541b16881e30a019c6fd3154150650ccee27a308eff3e26229d788bbdeb08ab84
base64-js: "npm:^1.3.1"
ieee754: "npm:^1.1.13"
checksum: 10/997434d3c6e3b39e0be479a80288875f71cd1c07d75a3855e6f08ef848a3c966023f79534e22e415ff3a5112708ce06127277ab20e527146d55c84566405c7c6
languageName: node
linkType: hard
"cluster-key-slot@npm:1.1.0":
version: 1.1.0
resolution: "cluster-key-slot@npm:1.1.0"
checksum: fc953c75209b1ef9088081bab4e40a0b2586491c974ab93460569c014515ca5a2e31c043f185285e177007162fc353d07836d98f570c171dbe055775430e495b
checksum: 10/f95ab103cdd6d6a3a3c1c0fae29e63cf7ba754f7915d7f02d156c51056c3ab475381e12b94a80e131add1633be07300180a3cabb23e03e1ea53751884ad8c67c
languageName: node
linkType: hard
"core-util-is@npm:~1.0.0":
version: 1.0.3
resolution: "core-util-is@npm:1.0.3"
checksum: 9de8597363a8e9b9952491ebe18167e3b36e7707569eed0ebf14f8bba773611376466ae34575bca8cfe3c767890c859c74056084738f09d4e4a6f902b2ad7d99
checksum: 10/9de8597363a8e9b9952491ebe18167e3b36e7707569eed0ebf14f8bba773611376466ae34575bca8cfe3c767890c859c74056084738f09d4e4a6f902b2ad7d99
languageName: node
linkType: hard
@ -167,10 +167,10 @@ __metadata:
version: 7.0.3
resolution: "cross-spawn@npm:7.0.3"
dependencies:
path-key: ^3.1.0
shebang-command: ^2.0.0
which: ^2.0.1
checksum: 671cc7c7288c3a8406f3c69a3ae2fc85555c04169e9d611def9a675635472614f1c0ed0ef80955d5b6d4e724f6ced67f0ad1bb006c2ea643488fcfef994d7f52
path-key: "npm:^3.1.0"
shebang-command: "npm:^2.0.0"
which: "npm:^2.0.1"
checksum: 10/e1a13869d2f57d974de0d9ef7acbf69dc6937db20b918525a01dacb5032129bd552d290d886d981e99f1b624cb03657084cc87bd40f115c07ecf376821c729ce
languageName: node
linkType: hard
@ -178,25 +178,25 @@ __metadata:
version: 4.3.4
resolution: "debug@npm:4.3.4"
dependencies:
ms: 2.1.2
ms: "npm:2.1.2"
peerDependenciesMeta:
supports-color:
optional: true
checksum: 3dbad3f94ea64f34431a9cbf0bafb61853eda57bff2880036153438f50fb5a84f27683ba0d8e5426bf41a8c6ff03879488120cf5b3a761e77953169c0600a708
checksum: 10/0073c3bcbd9cb7d71dd5f6b55be8701af42df3e56e911186dfa46fac3a5b9eb7ce7f377dd1d3be6db8977221f8eb333d945216f645cf56f6b688cd484837d255
languageName: node
linkType: hard
"denque@npm:^1.4.1":
version: 1.5.1
resolution: "denque@npm:1.5.1"
checksum: 4375ad19d5cea99f90effa82a8cecdaa10f4eb261fbcd7e47cd753ff2737f037aac8f7f4e031cc77f3966314c491c86a0d3b20c128aeee57f791b4662c45108e
checksum: 10/dbde01a987d95205f7563c67411e0964073a6b38e4cf2ff190cf91f71e2ce3f51c40bacd31f2a5497e0ff82366bcfd8231d3659cb03f987279130058d512aa29
languageName: node
linkType: hard
"duplexer@npm:~0.1.1":
version: 0.1.2
resolution: "duplexer@npm:0.1.2"
checksum: 62ba61a830c56801db28ff6305c7d289b6dc9f859054e8c982abd8ee0b0a14d2e9a8e7d086ffee12e868d43e2bbe8a964be55ddbd8c8957714c87373c7a4f9b0
checksum: 10/62ba61a830c56801db28ff6305c7d289b6dc9f859054e8c982abd8ee0b0a14d2e9a8e7d086ffee12e868d43e2bbe8a964be55ddbd8c8957714c87373c7a4f9b0
languageName: node
linkType: hard
@ -204,70 +204,70 @@ __metadata:
version: 3.3.4
resolution: "event-stream@npm:3.3.4"
dependencies:
duplexer: ~0.1.1
from: ~0
map-stream: ~0.1.0
pause-stream: 0.0.11
split: 0.3
stream-combiner: ~0.0.4
through: ~2.3.1
checksum: 80b467820b6daf824d9fb4345d2daf115a056e5c104463f2e98534e92d196a27f2df5ea2aa085624db26f4c45698905499e881d13bc7c01f7a13eac85be72a22
duplexer: "npm:~0.1.1"
from: "npm:~0"
map-stream: "npm:~0.1.0"
pause-stream: "npm:0.0.11"
split: "npm:0.3"
stream-combiner: "npm:~0.0.4"
through: "npm:~2.3.1"
checksum: 10/48ea0e17df89ff45778c25e7111a6691401c902162823ddd7656d83fc972e75380f789f7a48f272f50fe7015420cc04f835d458560bf95e34b2c7a479570c8fb
languageName: node
linkType: hard
"from@npm:~0":
version: 0.1.7
resolution: "from@npm:0.1.7"
checksum: b85125b7890489656eb2e4f208f7654a93ec26e3aefaf3bbbcc0d496fc1941e4405834fcc9fe7333192aa2187905510ace70417bbf9ac6f6f4784a731d986939
checksum: 10/b85125b7890489656eb2e4f208f7654a93ec26e3aefaf3bbbcc0d496fc1941e4405834fcc9fe7333192aa2187905510ace70417bbf9ac6f6f4784a731d986939
languageName: node
linkType: hard
"generic-pool@npm:3.8.2":
version: 3.8.2
resolution: "generic-pool@npm:3.8.2"
checksum: f549077d90265e5e4d32a2410205b357ec61cf73d17861f1013637984390e09fe7bf537129a2c6ed30ae57662a57c8d54194f80046408d3349836330f422dbde
checksum: 10/ceb04837eb57b61d2bf03030b66ea2829a181de0d2982d0c81b8f147c4e54cd217f154afb911a500da740f339d9d6eabb4bc29723da6f116155982048d015eb3
languageName: node
linkType: hard
"ieee754@npm:^1.1.13":
version: 1.2.1
resolution: "ieee754@npm:1.2.1"
checksum: 5144c0c9815e54ada181d80a0b810221a253562422e7c6c3a60b1901154184f49326ec239d618c416c1c5945a2e197107aee8d986a3dd836b53dffefd99b5e7e
checksum: 10/d9f2557a59036f16c282aaeb107832dc957a93d73397d89bbad4eb1130560560eb695060145e8e6b3b498b15ab95510226649a0b8f52ae06583575419fe10fc4
languageName: node
linkType: hard
"inherits@npm:~2.0.3":
version: 2.0.4
resolution: "inherits@npm:2.0.4"
checksum: 4a48a733847879d6cf6691860a6b1e3f0f4754176e4d71494c41f3475553768b10f84b5ce1d40fbd0e34e6bfbb864ee35858ad4dd2cf31e02fc4a154b724d7f1
checksum: 10/cd45e923bee15186c07fa4c89db0aace24824c482fb887b528304694b2aa6ff8a898da8657046a5dcf3e46cd6db6c61629551f9215f208d7c3f157cf9b290521
languageName: node
linkType: hard
"isarray@npm:~1.0.0":
version: 1.0.0
resolution: "isarray@npm:1.0.0"
checksum: f032df8e02dce8ec565cf2eb605ea939bdccea528dbcf565cdf92bfa2da9110461159d86a537388ef1acef8815a330642d7885b29010e8f7eac967c9993b65ab
checksum: 10/f032df8e02dce8ec565cf2eb605ea939bdccea528dbcf565cdf92bfa2da9110461159d86a537388ef1acef8815a330642d7885b29010e8f7eac967c9993b65ab
languageName: node
linkType: hard
"isexe@npm:^2.0.0":
version: 2.0.0
resolution: "isexe@npm:2.0.0"
checksum: 26bf6c5480dda5161c820c5b5c751ae1e766c587b1f951ea3fcfc973bafb7831ae5b54a31a69bd670220e42e99ec154475025a468eae58ea262f813fdc8d1c62
checksum: 10/7c9f715c03aff08f35e98b1fadae1b9267b38f0615d501824f9743f3aab99ef10e303ce7db3f186763a0b70a19de5791ebfc854ff884d5a8c4d92211f642ec92
languageName: node
linkType: hard
"map-stream@npm:~0.1.0":
version: 0.1.0
resolution: "map-stream@npm:0.1.0"
checksum: 38abbe4eb883888031e6b2fc0630bc583c99396be16b8ace5794b937b682a8a081f03e8b15bfd4914d1bc88318f0e9ac73ba3512ae65955cd449f63256ddb31d
checksum: 10/f04a07041dccdf8140a4a6613e4731e917153ee031d3c837cb32ea7d609e8fbea538c44053718772f59dd1dca0ce68a5689ad006688612ee720d78bacf5bf24d
languageName: node
linkType: hard
"memory-pager@npm:^1.0.2":
version: 1.5.0
resolution: "memory-pager@npm:1.5.0"
checksum: d1a2e684583ef55c61cd3a49101da645b11ad57014dfc565e0b43baa9004b743f7e4ab81493d8fff2ab24e9950987cc3209c94bcc4fc8d7e30a475489a1f15e9
checksum: 10/ffe3461b6aa4e400138d1d9c59890b1cbeae3256592a0dfae49577f4bec93952de65f31f682f0b15451d2a7cf018be775ed1e1411705e45514b14fb70883a66b
languageName: node
linkType: hard
@ -275,12 +275,12 @@ __metadata:
version: 3.7.3
resolution: "mongodb@npm:3.7.3"
dependencies:
bl: ^2.2.1
bson: ^1.1.4
denque: ^1.4.1
optional-require: ^1.1.8
safe-buffer: ^5.1.2
saslprep: ^1.0.0
bl: "npm:^2.2.1"
bson: "npm:^1.1.4"
denque: "npm:^1.4.1"
optional-require: "npm:^1.1.8"
safe-buffer: "npm:^5.1.2"
saslprep: "npm:^1.0.0"
dependenciesMeta:
saslprep:
optional: true
@ -297,49 +297,49 @@ __metadata:
optional: true
snappy:
optional: true
checksum: ef7690fe6ee7d1752f121b14e59b3fabfddc60ff0536babce6c945703ad0010de9e6fa7de4c91b99275c256876a72a06899ce27893aba0838c2b542088bd1044
checksum: 10/0e385efb4b6c6935e22b5abef18bf9fcf69e7b606dfaab89510e13949e4f5698eb5e2843dc81308f8b788745c9523f07731d0a583c01e625f02ad389a2ec3788
languageName: node
linkType: hard
"monk-middleware-cast-ids@npm:^0.2.1":
version: 0.2.1
resolution: "monk-middleware-cast-ids@npm:0.2.1"
checksum: fb5d60eb65d9465cfc9debea1e4fa99d3373b0c20a8e20847414c3fb7e7163888e9253d1d8f8b9bd8ad182739f04a21a945193122d09df65b44fa0e2829e4226
checksum: 10/fb5d60eb65d9465cfc9debea1e4fa99d3373b0c20a8e20847414c3fb7e7163888e9253d1d8f8b9bd8ad182739f04a21a945193122d09df65b44fa0e2829e4226
languageName: node
linkType: hard
"monk-middleware-fields@npm:^0.2.0":
version: 0.2.0
resolution: "monk-middleware-fields@npm:0.2.0"
checksum: acc670026526296dc59b811d8a3ae54a04b153ba78e419828340eb3b3607bb1e84d0fe6128a851e3d663699c0df7ca1f9fd2e81686a2fa8ecd239db60091b452
checksum: 10/acc670026526296dc59b811d8a3ae54a04b153ba78e419828340eb3b3607bb1e84d0fe6128a851e3d663699c0df7ca1f9fd2e81686a2fa8ecd239db60091b452
languageName: node
linkType: hard
"monk-middleware-handle-callback@npm:^0.2.0":
version: 0.2.2
resolution: "monk-middleware-handle-callback@npm:0.2.2"
checksum: 3c921ead69171e84af9f16c97894cf8ad6828b3cd0ee9990167cc6bfdda947dcbd9241123bfec74addc7755baaf689248a4c9b738289dcfa5eff69e6baa9b252
checksum: 10/3c921ead69171e84af9f16c97894cf8ad6828b3cd0ee9990167cc6bfdda947dcbd9241123bfec74addc7755baaf689248a4c9b738289dcfa5eff69e6baa9b252
languageName: node
linkType: hard
"monk-middleware-options@npm:^0.2.1":
version: 0.2.1
resolution: "monk-middleware-options@npm:0.2.1"
checksum: 6ecb2b55913cc514ddf79d40e356915d4a1beadf82151b32ce46ba5652f2a97d7d77f28901951002be6ee7bcb14e80d577ae3a66fd7da7a2ef3b20252bf2b504
checksum: 10/6ecb2b55913cc514ddf79d40e356915d4a1beadf82151b32ce46ba5652f2a97d7d77f28901951002be6ee7bcb14e80d577ae3a66fd7da7a2ef3b20252bf2b504
languageName: node
linkType: hard
"monk-middleware-query@npm:^0.2.0":
version: 0.2.0
resolution: "monk-middleware-query@npm:0.2.0"
checksum: 7950b535ca397938b73c651b6b755ec18204886760a665fc386ea78dd24ca2d04ca64cb9567759d84b844bd0b5108c7306eafb860955959309cbc9d2bf66f073
checksum: 10/7950b535ca397938b73c651b6b755ec18204886760a665fc386ea78dd24ca2d04ca64cb9567759d84b844bd0b5108c7306eafb860955959309cbc9d2bf66f073
languageName: node
linkType: hard
"monk-middleware-wait-for-connection@npm:^0.2.0":
version: 0.2.0
resolution: "monk-middleware-wait-for-connection@npm:0.2.0"
checksum: 1c3f23ddb3568fc01cabb777df550f7ef6eaf6f4701e4a2f6354c01c86f391225af96d9a8f3f1a7f542487e8a3f6ec18b44ec8d55102b3e1ee166d9c6751752a
checksum: 10/1c3f23ddb3568fc01cabb777df550f7ef6eaf6f4701e4a2f6354c01c86f391225af96d9a8f3f1a7f542487e8a3f6ec18b44ec8d55102b3e1ee166d9c6751752a
languageName: node
linkType: hard
@ -347,38 +347,38 @@ __metadata:
version: 7.3.4
resolution: "monk@npm:7.3.4"
dependencies:
"@types/mongodb": ^3.5.25
debug: "*"
mongodb: ^3.2.3
monk-middleware-cast-ids: ^0.2.1
monk-middleware-fields: ^0.2.0
monk-middleware-handle-callback: ^0.2.0
monk-middleware-options: ^0.2.1
monk-middleware-query: ^0.2.0
monk-middleware-wait-for-connection: ^0.2.0
object-assign: ^4.1.1
checksum: 6eb230e9dd6c25e0a1374f903f0caeb4067eef2df6d8b3672785eb9bff2041ab509b067f29756c0946ff2276912b251d1c84bded3d204f56b082e632c469de77
"@types/mongodb": "npm:^3.5.25"
debug: "npm:*"
mongodb: "npm:^3.2.3"
monk-middleware-cast-ids: "npm:^0.2.1"
monk-middleware-fields: "npm:^0.2.0"
monk-middleware-handle-callback: "npm:^0.2.0"
monk-middleware-options: "npm:^0.2.1"
monk-middleware-query: "npm:^0.2.0"
monk-middleware-wait-for-connection: "npm:^0.2.0"
object-assign: "npm:^4.1.1"
checksum: 10/a7ef73a029ab0a15ad0c215070db786db2bbc49759517ea01e563d004fbb90372bc7b31f5d0a74445e3bd1ea98c8e279f95b3311efe5af8158d728c5b0ff0249
languageName: node
linkType: hard
"ms@npm:2.1.2":
version: 2.1.2
resolution: "ms@npm:2.1.2"
checksum: 673cdb2c3133eb050c745908d8ce632ed2c02d85640e2edb3ace856a2266a813b30c613569bf3354fdf4ea7d1a1494add3bfa95e2713baa27d0c2c71fc44f58f
checksum: 10/673cdb2c3133eb050c745908d8ce632ed2c02d85640e2edb3ace856a2266a813b30c613569bf3354fdf4ea7d1a1494add3bfa95e2713baa27d0c2c71fc44f58f
languageName: node
linkType: hard
"node-cleanup@npm:^2.1.2":
version: 2.1.2
resolution: "node-cleanup@npm:2.1.2"
checksum: 584cdc3e42560a998b4579f91ed8f936b27011628f3102e5a1093205f0691cdf8d899287d1f2e4d2071ea4ab1d615810bad6dbe2b988ef173a1cbaa76d8165b3
checksum: 10/eeb831d27d734179ca6aa7504a65fa0debd7c77a883c5dbea2849fb7ed8fa0a3fe3a346926c5b1aaaf5537fd801d03da0efcf20b28385d7150276a9e8a2127a5
languageName: node
linkType: hard
"object-assign@npm:^4.1.1":
version: 4.1.1
resolution: "object-assign@npm:4.1.1"
checksum: fcc6e4ea8c7fe48abfbb552578b1c53e0d194086e2e6bbbf59e0a536381a292f39943c6e9628af05b5528aa5e3318bb30d6b2e53cadaf5b8fe9e12c4b69af23f
checksum: 10/fcc6e4ea8c7fe48abfbb552578b1c53e0d194086e2e6bbbf59e0a536381a292f39943c6e9628af05b5528aa5e3318bb30d6b2e53cadaf5b8fe9e12c4b69af23f
languageName: node
linkType: hard
@ -386,15 +386,15 @@ __metadata:
version: 1.1.8
resolution: "optional-require@npm:1.1.8"
dependencies:
require-at: ^1.0.6
checksum: 437db76f713052925185ae80837b593877f75101154e8937f50d33b0b07bd500c214efc9016748642109b6e3e1197eb0513a2963eb06bcf3890f88a2724b1c87
require-at: "npm:^1.0.6"
checksum: 10/656ecba9c2aa0ca0ec25bf7cba987e0cdda91c49caae361e6c5839fe02dc8bc467d3d77694b1fe47923a3815cd10a6e292b838a1251cb4abba951fc371fb162a
languageName: node
linkType: hard
"path-key@npm:^3.1.0":
version: 3.1.1
resolution: "path-key@npm:3.1.1"
checksum: 55cd7a9dd4b343412a8386a743f9c746ef196e57c823d90ca3ab917f90ab9f13dd0ded27252ba49dbdfcab2b091d998bc446f6220cd3cea65db407502a740020
checksum: 10/55cd7a9dd4b343412a8386a743f9c746ef196e57c823d90ca3ab917f90ab9f13dd0ded27252ba49dbdfcab2b091d998bc446f6220cd3cea65db407502a740020
languageName: node
linkType: hard
@ -402,15 +402,15 @@ __metadata:
version: 0.0.11
resolution: "pause-stream@npm:0.0.11"
dependencies:
through: ~2.3
checksum: 3c4a14052a638b92e0c96eb00c0d7977df7f79ea28395250c525d197f1fc02d34ce1165d5362e2e6ebbb251524b94a76f3f0d4abc39ab8b016d97449fe15583c
through: "npm:~2.3"
checksum: 10/1407efadfe814b5c487e4b28d6139cb7e03ee5d25fbb5f89a68f2053e81f05ce6b2bec196eeb3d46ef2c856f785016d14816b0d0e3c3abd1b64311c5c20660dc
languageName: node
linkType: hard
"process-nextick-args@npm:~2.0.0":
version: 2.0.1
resolution: "process-nextick-args@npm:2.0.1"
checksum: 1d38588e520dab7cea67cbbe2efdd86a10cc7a074c09657635e34f035277b59fbb57d09d8638346bf7090f8e8ebc070c96fa5fd183b777fff4f5edff5e9466cf
checksum: 10/1d38588e520dab7cea67cbbe2efdd86a10cc7a074c09657635e34f035277b59fbb57d09d8638346bf7090f8e8ebc070c96fa5fd183b777fff4f5edff5e9466cf
languageName: node
linkType: hard
@ -418,10 +418,10 @@ __metadata:
version: 1.2.0
resolution: "ps-tree@npm:1.2.0"
dependencies:
event-stream: =3.3.4
event-stream: "npm:=3.3.4"
bin:
ps-tree: ./bin/ps-tree.js
checksum: e635dd00f53d30d31696cf5f95b3a8dbdf9b1aeb36d4391578ce8e8cd22949b7c5536c73b0dc18c78615ea3ddd4be96101166be59ca2e3e3cb1e2f79ba3c7f98
checksum: 10/0587defdc20c0768fad884623c0204c77e5228878a5cb043676b00529220ec12d9cb6a328a0580767a9909a317bff466fe4530a4676e3d145a9deb3b7fbbeef3
languageName: node
linkType: hard
@ -429,14 +429,14 @@ __metadata:
version: 2.3.7
resolution: "readable-stream@npm:2.3.7"
dependencies:
core-util-is: ~1.0.0
inherits: ~2.0.3
isarray: ~1.0.0
process-nextick-args: ~2.0.0
safe-buffer: ~5.1.1
string_decoder: ~1.1.1
util-deprecate: ~1.0.1
checksum: e4920cf7549a60f8aaf694d483a0e61b2a878b969d224f89b3bc788b8d920075132c4b55a7494ee944c7b6a9a0eada28a7f6220d80b0312ece70bbf08eeca755
core-util-is: "npm:~1.0.0"
inherits: "npm:~2.0.3"
isarray: "npm:~1.0.0"
process-nextick-args: "npm:~2.0.0"
safe-buffer: "npm:~5.1.1"
string_decoder: "npm:~1.1.1"
util-deprecate: "npm:~1.0.1"
checksum: 10/d04c677c1705e3fc6283d45859a23f4c05243d0c0f1fc08cb8f995b4d69f0eb7f38ec0ec102f0ee20535c5d999ee27449f40aa2edf6bf30c24d0cc8f8efeb6d7
languageName: node
linkType: hard
@ -444,34 +444,34 @@ __metadata:
version: 4.2.0
resolution: "redis@npm:4.2.0"
dependencies:
"@redis/bloom": 1.0.2
"@redis/client": 1.2.0
"@redis/graph": 1.0.1
"@redis/json": 1.0.3
"@redis/search": 1.0.6
"@redis/time-series": 1.0.3
checksum: 6c35b56c6b685e82973c5698c5736c07ccbc59f3bc18d8de61e45ead2df4b8fc82062e5618452f4d3f8c23f02ff8c0b847c8d6a681f909c403a0fb96adcc2b98
"@redis/bloom": "npm:1.0.2"
"@redis/client": "npm:1.2.0"
"@redis/graph": "npm:1.0.1"
"@redis/json": "npm:1.0.3"
"@redis/search": "npm:1.0.6"
"@redis/time-series": "npm:1.0.3"
checksum: 10/3da2f50e3bd068da1f3a0a6be1a45b864371705a5549ba6971593697d4b13da3d521e617f76b73cb29933466fa0586e3d58da3ffb3380fc96ed50c172b80204d
languageName: node
linkType: hard
"require-at@npm:^1.0.6":
version: 1.0.6
resolution: "require-at@npm:1.0.6"
checksum: 7753a6ebad99855ef015d5533a787c65e883c94c23371368eebf6f1c7e2a078811013b204823152cbab206a00e825e8e5ca09416fd835a489fa30bf064fbe6d9
checksum: 10/7753a6ebad99855ef015d5533a787c65e883c94c23371368eebf6f1c7e2a078811013b204823152cbab206a00e825e8e5ca09416fd835a489fa30bf064fbe6d9
languageName: node
linkType: hard
"safe-buffer@npm:^5.1.1, safe-buffer@npm:^5.1.2":
version: 5.2.1
resolution: "safe-buffer@npm:5.2.1"
checksum: b99c4b41fdd67a6aaf280fcd05e9ffb0813654894223afb78a31f14a19ad220bba8aba1cb14eddce1fcfb037155fe6de4e861784eb434f7d11ed58d1e70dd491
checksum: 10/32872cd0ff68a3ddade7a7617b8f4c2ae8764d8b7d884c651b74457967a9e0e886267d3ecc781220629c44a865167b61c375d2da6c720c840ecd73f45d5d9451
languageName: node
linkType: hard
"safe-buffer@npm:~5.1.0, safe-buffer@npm:~5.1.1":
version: 5.1.2
resolution: "safe-buffer@npm:5.1.2"
checksum: f2f1f7943ca44a594893a852894055cf619c1fbcb611237fc39e461ae751187e7baf4dc391a72125e0ac4fb2d8c5c0b3c71529622e6a58f46b960211e704903c
checksum: 10/7eb5b48f2ed9a594a4795677d5a150faa7eb54483b2318b568dc0c4fc94092a6cce5be02c7288a0500a156282f5276d5688bce7259299568d1053b2150ef374a
languageName: node
linkType: hard
@ -479,8 +479,8 @@ __metadata:
version: 1.0.3
resolution: "saslprep@npm:1.0.3"
dependencies:
sparse-bitfield: ^3.0.3
checksum: 4fdc0b70fb5e523f977de405e12cca111f1f10dd68a0cfae0ca52c1a7919a94d1556598ba2d35f447655c3b32879846c77f9274c90806f6673248ae3cea6ee43
sparse-bitfield: "npm:^3.0.3"
checksum: 10/d6cae5f0adc960f355b7a78c25616c2aea31e7eeb6322eb2d553f09f1db249594651c1e5d54910e9a47b1dc6131beda82db13ffafbceea92f2a673d69c839982
languageName: node
linkType: hard
@ -488,15 +488,15 @@ __metadata:
version: 2.0.0
resolution: "shebang-command@npm:2.0.0"
dependencies:
shebang-regex: ^3.0.0
checksum: 6b52fe87271c12968f6a054e60f6bde5f0f3d2db483a1e5c3e12d657c488a15474121a1d55cd958f6df026a54374ec38a4a963988c213b7570e1d51575cea7fa
shebang-regex: "npm:^3.0.0"
checksum: 10/6b52fe87271c12968f6a054e60f6bde5f0f3d2db483a1e5c3e12d657c488a15474121a1d55cd958f6df026a54374ec38a4a963988c213b7570e1d51575cea7fa
languageName: node
linkType: hard
"shebang-regex@npm:^3.0.0":
version: 3.0.0
resolution: "shebang-regex@npm:3.0.0"
checksum: 1a2bcae50de99034fcd92ad4212d8e01eedf52c7ec7830eedcf886622804fe36884278f2be8be0ea5fde3fd1c23911643a4e0f726c8685b61871c8908af01222
checksum: 10/1a2bcae50de99034fcd92ad4212d8e01eedf52c7ec7830eedcf886622804fe36884278f2be8be0ea5fde3fd1c23911643a4e0f726c8685b61871c8908af01222
languageName: node
linkType: hard
@ -504,8 +504,8 @@ __metadata:
version: 3.0.3
resolution: "sparse-bitfield@npm:3.0.3"
dependencies:
memory-pager: ^1.0.2
checksum: 174da88dbbcc783d5dbd26921931cc83830280b8055fb05333786ebe6fc015b9601b24972b3d55920dd2d9f5fb120576fbfa2469b08e5222c9cadf3f05210aab
memory-pager: "npm:^1.0.2"
checksum: 10/174da88dbbcc783d5dbd26921931cc83830280b8055fb05333786ebe6fc015b9601b24972b3d55920dd2d9f5fb120576fbfa2469b08e5222c9cadf3f05210aab
languageName: node
linkType: hard
@ -513,8 +513,8 @@ __metadata:
version: 0.3.3
resolution: "split@npm:0.3.3"
dependencies:
through: 2
checksum: 2e076634c9637cfdc54ab4387b6a243b8c33b360874a25adf6f327a5647f07cb3bf1c755d515248eb3afee4e382278d01f62c62d87263c118f28065b86f74f02
through: "npm:2"
checksum: 10/41b397e9fedc984ee1b061780bf173ef72a4f99265ca9cbccd9765b8cc0729eeee6cdeaf70664eb3eb0823e8430db033e50a33050498d75569fc743c6964c84e
languageName: node
linkType: hard
@ -522,15 +522,15 @@ __metadata:
version: 0.0.4
resolution: "stream-combiner@npm:0.0.4"
dependencies:
duplexer: ~0.1.1
checksum: 844b622cfe8b9de45a6007404f613b60aaf85200ab9862299066204242f89a7c8033b1c356c998aa6cfc630f6cd9eba119ec1c6dc1f93e245982be4a847aee7d
duplexer: "npm:~0.1.1"
checksum: 10/844b622cfe8b9de45a6007404f613b60aaf85200ab9862299066204242f89a7c8033b1c356c998aa6cfc630f6cd9eba119ec1c6dc1f93e245982be4a847aee7d
languageName: node
linkType: hard
"string-argv@npm:^0.1.1":
version: 0.1.2
resolution: "string-argv@npm:0.1.2"
checksum: 6877bd72af145f6e6eafa932818014a57b2f39225c924562b7fccb50f1fcee73717bbcd5e528fd4d86cec32835c14749c32a9d35f06e0bf96637d1e73158203f
checksum: 10/0ca01777fd2c7040becf1e1282210bf924051f602e9352a468e55034868eb3b9f1975f0bc1fc331d42bdf59007aaa6e60693af2246ccabd07cded581f4bbe6ef
languageName: node
linkType: hard
@ -538,8 +538,8 @@ __metadata:
version: 1.1.1
resolution: "string_decoder@npm:1.1.1"
dependencies:
safe-buffer: ~5.1.0
checksum: 9ab7e56f9d60a28f2be697419917c50cac19f3e8e6c28ef26ed5f4852289fe0de5d6997d29becf59028556f2c62983790c1d9ba1e2a3cc401768ca12d5183a5b
safe-buffer: "npm:~5.1.0"
checksum: 10/7c41c17ed4dea105231f6df208002ebddd732e8e9e2d619d133cecd8e0087ddfd9587d2feb3c8caf3213cbd841ada6d057f5142cae68a4e62d3540778d9819b4
languageName: node
linkType: hard
@ -547,15 +547,15 @@ __metadata:
version: 6.0.1
resolution: "strip-ansi@npm:6.0.1"
dependencies:
ansi-regex: ^5.0.1
checksum: f3cd25890aef3ba6e1a74e20896c21a46f482e93df4a06567cebf2b57edabb15133f1f94e57434e0a958d61186087b1008e89c94875d019910a213181a14fc8c
ansi-regex: "npm:^5.0.1"
checksum: 10/ae3b5436d34fadeb6096367626ce987057713c566e1e7768818797e00ac5d62023d0f198c4e681eae9e20701721980b26a64a8f5b91238869592a9c6800719a2
languageName: node
linkType: hard
"through@npm:2, through@npm:~2.3, through@npm:~2.3.1":
version: 2.3.8
resolution: "through@npm:2.3.8"
checksum: a38c3e059853c494af95d50c072b83f8b676a9ba2818dcc5b108ef252230735c54e0185437618596c790bbba8fcdaef5b290405981ffa09dce67b1f1bf190cbd
checksum: 10/5da78346f70139a7d213b65a0106f3c398d6bc5301f9248b5275f420abc2c4b1e77c2abc72d218dedc28c41efb2e7c312cb76a7730d04f9c2d37d247da3f4198
languageName: node
linkType: hard
@ -563,16 +563,16 @@ __metadata:
version: 5.0.3
resolution: "tsc-watch@npm:5.0.3"
dependencies:
cross-spawn: ^7.0.3
node-cleanup: ^2.1.2
ps-tree: ^1.2.0
string-argv: ^0.1.1
strip-ansi: ^6.0.0
cross-spawn: "npm:^7.0.3"
node-cleanup: "npm:^2.1.2"
ps-tree: "npm:^1.2.0"
string-argv: "npm:^0.1.1"
strip-ansi: "npm:^6.0.0"
peerDependencies:
typescript: "*"
bin:
tsc-watch: index.js
checksum: abd63295dd5fda098a45d27912031e6c35a95f1aa20d7a86d6ad1469580400069e6476f2ffd4b88e37886d016443e60b1ae2dbcaf756e324efc67d0fa713fb15
checksum: 10/3ccce112c55f3f11e189a3d66d22113bb033eb405c7710a5fc130fd311b3a30c66a2ad5227201d319521644eb3571b78624cbfef287f032d3e58d9868c1703f0
languageName: node
linkType: hard
@ -582,24 +582,24 @@ __metadata:
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 5750181b1cd7e6482c4195825547e70f944114fb47e58e4aa7553e62f11b3f3173766aef9c281783edfd881f7b8299cf35e3ca8caebe73d8464528c907a164df
checksum: 10/f056b2313a7df95268ac63dc4ddcb7aed1b7d5a6bbc933d11c3fcd0a77712e16b24bdf4403acc529ade5c27a2a477e25124e899587e8ca3f19685c7ab954c6f3
languageName: node
linkType: hard
"typescript@patch:typescript@^4.7.4#~builtin<compat/typescript>":
"typescript@patch:typescript@npm%3A^4.7.4#optional!builtin<compat/typescript>":
version: 4.7.4
resolution: "typescript@patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"
resolution: "typescript@patch:typescript@npm%3A4.7.4#optional!builtin<compat/typescript>::version=4.7.4&hash=65a307"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 9096d8f6c16cb80ef3bf96fcbbd055bf1c4a43bd14f3b7be45a9fbe7ada46ec977f604d5feed3263b4f2aa7d4c7477ce5f9cd87de0d6feedec69a983f3a4f93e
checksum: 10/cd6f51368ba0f8c458a44ca8b05684e9cda49acbb4e7dcf40c4720cd1534f68c2d139ec6f179bb9996e6fe9d0c7a04846db55a048f51fd2f3c41fbce0a004971
languageName: node
linkType: hard
"util-deprecate@npm:~1.0.1":
version: 1.0.2
resolution: "util-deprecate@npm:1.0.2"
checksum: 474acf1146cb2701fe3b074892217553dfcf9a031280919ba1b8d651a068c9b15d863b7303cb15bd00a862b498e6cf4ad7b4a08fb134edd5a6f7641681cb54a2
checksum: 10/474acf1146cb2701fe3b074892217553dfcf9a031280919ba1b8d651a068c9b15d863b7303cb15bd00a862b498e6cf4ad7b4a08fb134edd5a6f7641681cb54a2
languageName: node
linkType: hard
@ -607,16 +607,16 @@ __metadata:
version: 2.0.2
resolution: "which@npm:2.0.2"
dependencies:
isexe: ^2.0.0
isexe: "npm:^2.0.0"
bin:
node-which: ./bin/node-which
checksum: 1a5c563d3c1b52d5f893c8b61afe11abc3bab4afac492e8da5bde69d550de701cf9806235f20a47b5c8fa8a1d6a9135841de2596535e998027a54589000e66d1
checksum: 10/4782f8a1d6b8fc12c65e968fea49f59752bf6302dc43036c3bf87da718a80710f61a062516e9764c70008b487929a73546125570acea95c5b5dcc8ac3052c70f
languageName: node
linkType: hard
"yallist@npm:4.0.0":
version: 4.0.0
resolution: "yallist@npm:4.0.0"
checksum: 343617202af32df2a15a3be36a5a8c0c8545208f3d3dfbc6bb7c3e3b7e8c6f8e7485432e4f3b88da3031a6e20afa7c711eded32ddfb122896ac5d914e75848d5
checksum: 10/4cb02b42b8a93b5cf50caf5d8e9beb409400a8a4d85e83bb0685c1457e9ac0b7a00819e9f5991ac25ffabb56a78e2f017c1acc010b3a1babfe6de690ba531abd
languageName: node
linkType: hard

File diff suppressed because one or more lines are too long

894
web/.yarn/releases/yarn-4.3.1.cjs vendored Executable file

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,7 @@
yarnPath: .yarn/releases/yarn-3.2.1.cjs
compressionLevel: mixed
enableGlobalCache: false
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.3.1.cjs

View file

@ -9,7 +9,6 @@
"dependencies": {
"@mdi/js": "^6.5.95",
"@mdi/react": "^1.5.0",
"@revoltchat/ui": "^1.0.24",
"@types/axios": "^0.14.0",
"@types/core-js": "^2.5.5",
"@types/styled-components": "^5.1.21",
@ -32,7 +31,7 @@
"typescript": "^4.4.4",
"vite": "^2.7.2"
},
"packageManager": "yarn@3.2.1",
"packageManager": "yarn@4.3.1",
"resolutions": {
"automod": "portal:../lib"
}

View file

@ -1,8 +1,6 @@
import { Route, BrowserRouter, Routes } from 'react-router-dom';
import Home from './pages/Home';
import './App.css';
import '@revoltchat/ui/src/styles/dark.css';
import '@revoltchat/ui/src/styles/common.css';
import RequireAuth from './components/RequireAuth';
import DashboardHome from './pages/DashboardHome';
import ServerDashboard from './pages/ServerDashboard/ServerDashboard';

View file

@ -0,0 +1,29 @@
import React from 'react';
interface CheckboxProps {
value: boolean;
onChange: () => void;
title: string;
description: string;
}
const Checkbox: React.FC<CheckboxProps> = ({ value, onChange, title, description }) => {
return (
<div style={{ maxWidth: '400px' }}>
<input
type="checkbox"
checked={value}
onChange={onChange}
/>
<label title={title}>
{title}
<br />
<span style={{ fontSize: 'smaller' }}>
{description}
</span>
</label>
</div>
);
};
export default Checkbox;

View file

@ -1,9 +1,6 @@
import axios from 'axios';
import { useNavigate } from 'react-router-dom';
import { FunctionComponent, useCallback, useEffect, useState } from "react";
import { Button } from '@revoltchat/ui/lib/components/atoms/inputs/Button';
import { H1 } from '@revoltchat/ui/lib/components/atoms/heading/H1';
import { H2 } from '@revoltchat/ui/lib/components/atoms/heading/H2';
import { API_URL } from "../App";
import { getAuthHeaders } from "../utils";
@ -38,7 +35,7 @@ const Dashboard: FunctionComponent = () => {
return (
<div style={{ marginLeft: '12px', padding: '16px 0' }}>
<H1>Dashboard</H1>
<h1>Dashboard</h1>
<br/>
<p hidden={!loading}>Loading...</p>
{
@ -61,16 +58,16 @@ const Dashboard: FunctionComponent = () => {
overflow: 'clip',
whiteSpace: 'nowrap',
}}>
<H2>{server.name} ({permissionName(server.perms)})</H2>
<h2>{server.name} ({permissionName(server.perms)})</h2>
<code style={{ color: 'var(--foreground)' }}>{server.id}</code>
</div>
<div>
<Button
<button
style={{ position: 'relative', top: '8px', left: '12px' }}
onClick={() => {
navigate(`/dashboard/${server.id}`);
}}
>Open</Button>
>Open</button>
</div>
<div style={{ clear: 'both' }} />
</div>)

View file

@ -1,10 +1,6 @@
import localforage from "localforage";
import axios from 'axios';
import { FunctionComponent, useCallback, useState } from "react";
import { Button } from '@revoltchat/ui/lib/components/atoms/inputs/Button';
import { InputBox } from '@revoltchat/ui/lib/components/atoms/inputs/InputBox';
import { H1 } from '@revoltchat/ui/lib/components/atoms/heading/H1';
import { H2 } from '@revoltchat/ui/lib/components/atoms/heading/H2';
import { API_URL, BOT_PREFIX } from "../App";
const Login: FunctionComponent = () => {
@ -49,10 +45,10 @@ const Login: FunctionComponent = () => {
return (
<div style={{ marginLeft: '12px', padding: '16px 0' }}>
<H1>Log in</H1>
<h1>Log in</h1>
{statusMsg.length ? <a>{statusMsg}</a> : <br/>}
<div hidden={!showInitial}>
<InputBox
<input
onChange={e => {
setUsername(e.target.value);
setStatusMsg('');
@ -60,10 +56,10 @@ const Login: FunctionComponent = () => {
placeholder="Enter your user ID..."
style={{ width: "200px", float: "left" }}
/>
<Button onClick={getCode} disabled={username.length == 0}>Continue</Button>
<button onClick={getCode} disabled={username.length == 0}>Continue</button>
</div>
<div hidden={!showSecond}>
<H2>Your code: <a>{code}</a></H2>
<h2>Your code: <a>{code}</a></h2>
<p style={{ color: "var(--foreground)" }}>
Run <code style={{ userSelect: 'all' }}>
{BOT_PREFIX}login {code}

View file

@ -1,12 +1,5 @@
import axios from 'axios';
import React, { FunctionComponent, useCallback, useEffect, useState } from "react";
import { Button } from '@revoltchat/ui/lib/components/atoms/inputs/Button';
import { InputBox } from '@revoltchat/ui/lib/components/atoms/inputs/InputBox';
import { Checkbox } from '@revoltchat/ui/lib/components/atoms/inputs/Checkbox';
import { ComboBox } from '@revoltchat/ui/lib/components/atoms/inputs/ComboBox';
import { LineDivider } from '@revoltchat/ui/lib/components/atoms/layout/LineDivider';
import { H3 } from '@revoltchat/ui/lib/components/atoms/heading/H3';
import { H4 } from '@revoltchat/ui/lib/components/atoms/heading/H4';
import { Icon } from '@mdi/react';
import { mdiChevronLeft, mdiCloseBox } from '@mdi/js';
import { API_URL } from "../../App";
@ -14,6 +7,7 @@ import { getAuthHeaders } from "../../utils";
import { Link, useParams } from "react-router-dom";
import defaultChannelIcon from '../../assets/channel-default-icon.svg';
import CategorySelector from '../../components/CategorySelector';
import Checkbox from '../../components/Checkbox';
import { CSSProperties } from 'styled-components';
type User = { id: string, username?: string, avatarURL?: string }
@ -192,8 +186,9 @@ const ServerDashboard: FunctionComponent = () => {
{category == 'home' && (
<div style={serverInfo.perms ? {} : STYLE_DISABLED}>
<>
<H3>Prefix</H3>
<InputBox
<h3>Prefix</h3>
<input
type="text"
style={{ width: '150px', }}
placeholder="Enter a prefix..."
value={prefix}
@ -203,7 +198,6 @@ const ServerDashboard: FunctionComponent = () => {
}}
/>
<Checkbox
style={{ maxWidth: '400px' }}
value={prefixAllowSpace}
onChange={() => {
setPrefixAllowSpace(!prefixAllowSpace);
@ -214,14 +208,14 @@ const ServerDashboard: FunctionComponent = () => {
/>
</>
<LineDivider />
<hr />
<>
<H3>Bot Managers</H3>
<H4>
<h3>Bot Managers</h3>
<h4>
Only users with "Manage Server" permission are allowed to add/remove other
bot managers and are automatically considered bot manager.
</H4>
</h4>
<UserListTypeContainer>
<UserListContainer disabled={(serverInfo.perms ?? 0) < 3}>
{botManagers.map((uid: string) => {
@ -233,11 +227,11 @@ const ServerDashboard: FunctionComponent = () => {
</UserListContainer>
</UserListTypeContainer>
<H3>Moderators</H3>
<H4>
<h3>Moderators</h3>
<h4>
Only bot managers are allowed to add/remove moderators.
All bot managers and users with "Kick Members" permission are also moderators.
</H4>
</h4>
<UserListTypeContainer>
<UserListContainer disabled={(serverInfo.perms ?? 0) < 2}>
{moderators.map((uid: string) => {
@ -250,10 +244,10 @@ const ServerDashboard: FunctionComponent = () => {
</UserListTypeContainer>
</>
<LineDivider />
<hr />
<>
<H3>Infraction DMs</H3>
<h3>Infraction DMs</h3>
<Checkbox
title="DM on kick/ban"
description="If enabled, users will receive a DM when getting kicked or banned"
@ -268,12 +262,13 @@ const ServerDashboard: FunctionComponent = () => {
onChange={() => { setDmOnWarn(!dmOnWarn); setChanged({ ...changed, dmOnWarn: true }) }}
/>
<H3>Contact info</H3>
<H4>
<h3>Contact info</h3>
<h4>
Provide a link, email address or instructions for users on how to contact you.
If provided, this data will be sent along with warn/kick/ban DM messages.
</H4>
<InputBox
</h4>
<input
type="text"
style={{ margin: '8px', width: 'calc(100% - 16px)' }}
title='Contact info'
placeholder='http/https URL, mailto link or custom text...'
@ -281,21 +276,21 @@ const ServerDashboard: FunctionComponent = () => {
onChange={e => { setContact(e.currentTarget.value); setChanged({ ...changed, contact: true }) }}
/>
<Button
<button
style={{
position: "fixed",
right: '8px',
bottom: Object.values(changed).filter(i => i).length ? '8px' : '-40px',
}}
onClick={saveConfig}
>Save</Button>
>Save</button>
</>
</div>
)}
{category == 'automod' && (
<>
<H3>Antispam Rules</H3>
<h3>Antispam Rules</h3>
{serverInfo.perms != null && automodSettings && (
serverInfo.perms > 0
? (
@ -303,10 +298,10 @@ const ServerDashboard: FunctionComponent = () => {
{automodSettings.antispam.map((r, i) => (
<>
<AntispamRule rule={r} key={r.id} />
{i < automodSettings.antispam.length - 1 && <LineDivider/>}
{i < automodSettings.antispam.length - 1 && <hr/>}
</>
))}
<Button style={{
<button style={{
marginTop: '12px',
marginBottom: '8px',
}} onClick={async () => {
@ -334,7 +329,7 @@ const ServerDashboard: FunctionComponent = () => {
setAutomodSettings({ antispam: [ ...(automodSettings.antispam), newRule ] });
}}>
Create Rule
</Button>
</button>
</>
)
: (
@ -481,7 +476,7 @@ const ServerDashboard: FunctionComponent = () => {
return (
<div>
<InputBox
<input
placeholder={`Add a ${props.type == 'MANAGER' ? 'bot manager' : 'moderator'}...`}
value={content}
onChange={e => setContent(e.currentTarget.value)}
@ -493,7 +488,7 @@ const ServerDashboard: FunctionComponent = () => {
}}
onKeyDown={e => e.key == 'Enter' && onConfirm()}
/>
<Button
<button
style={{
float: 'left',
width: '40px',
@ -502,7 +497,7 @@ const ServerDashboard: FunctionComponent = () => {
opacity: content.length > 0 ? '1' : '0',
}}
onClick={onConfirm}
>Ok</Button>
>Ok</button>
</div>
);
}
@ -528,7 +523,7 @@ const ServerDashboard: FunctionComponent = () => {
return (
<div>
<InputBox
<input
placeholder={`Add a channel...`}
value={content}
onChange={e => setContent(e.currentTarget.value)}
@ -540,7 +535,7 @@ const ServerDashboard: FunctionComponent = () => {
}}
onKeyDown={e => e.key == 'Enter' && onConfirm()}
/>
<Button
<button
style={{
float: 'left',
width: '40px',
@ -549,7 +544,7 @@ const ServerDashboard: FunctionComponent = () => {
opacity: content.length > 0 ? '1' : '0',
}}
onClick={onConfirm}
>Ok</Button>
>Ok</button>
</div>
);
}
@ -616,17 +611,17 @@ const ServerDashboard: FunctionComponent = () => {
>
<div style={{ marginTop: '12px' }}>
If user sends more than
<InputBox style={inputStyle} value={maxMsg || ''} placeholder={`${props.rule.max_msg}`} onChange={e => {
<input style={inputStyle} value={maxMsg || ''} placeholder={`${props.rule.max_msg}`} onChange={e => {
const val = e.currentTarget.value;
if (!isNaN(Number(val)) && val.length <= 4 && Number(val) >= 0) setMaxMsg(Number(val));
}} />
messages in
<InputBox style={inputStyle} value={timeframe || ''} placeholder={`${props.rule.timeframe}`} onChange={e => {
<input style={inputStyle} value={timeframe || ''} placeholder={`${props.rule.timeframe}`} onChange={e => {
const val = e.currentTarget.value;
if (!isNaN(Number(val)) && val.length <= 4 && Number(val) >= 0) setTimeframe(Number(val));
}} />
seconds,
<ComboBox
<select
style={{ ...inputStyle, maxWidth: '200px' }}
value={action}
onChange={ev => setAction(ev.currentTarget.value as any)}
@ -636,8 +631,9 @@ const ServerDashboard: FunctionComponent = () => {
<option value={2}>Warn user</option>
<option value={3}>Kick user</option>
<option value={4}>Ban user</option>
</ComboBox>
<InputBox
</select>
<input
type="text"
style={{
...inputStyle,
maxWidth: 'min(400px, calc(100% - 20px))',
@ -651,10 +647,10 @@ const ServerDashboard: FunctionComponent = () => {
"Kick" and "Ban" actions are currently placeholders, they do not have any functionality yet.
</a>
<H4 style={{ paddingTop: '16px' }}>
<h4 style={{ paddingTop: '16px' }}>
You can specify channels here that this rule will run in.
If left empty, it will run in all channels.
</H4>
</h4>
<UserListTypeContainer>
<div style={{ display: 'flex', flexWrap: 'wrap' }}>
{
@ -713,9 +709,9 @@ const ServerDashboard: FunctionComponent = () => {
paddingTop: '16px'
}}
>
<Button style={{ float: 'left' }} onClick={save}>Save</Button>
<Button style={{ float: 'left', marginLeft: '8px' }} onClick={reset}>Reset</Button>
<Button style={{ float: 'left', marginLeft: '8px' }} onClick={remove}>Delete</Button>
<button style={{ float: 'left' }} onClick={save}>Save</button>
<button style={{ float: 'left', marginLeft: '8px' }} onClick={reset}>Reset</button>
<button style={{ float: 'left', marginLeft: '8px' }} onClick={remove}>Delete</button>
<code
style={{
float: 'left',

File diff suppressed because it is too large Load diff