devpush 1.0.0-beta.5 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/agent-release.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"repository": "hunvreus/devpush",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.6",
|
|
5
5
|
"goVersion": "go1.27.3",
|
|
6
6
|
"protocolVersion": 1,
|
|
7
7
|
"capabilities": [
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"os": "linux",
|
|
22
22
|
"arch": "amd64",
|
|
23
23
|
"filename": "devpush-agent-linux-amd64",
|
|
24
|
-
"url": "https://github.com/hunvreus/devpush/releases/download/v1.0.0-beta.
|
|
25
|
-
"sha256": "
|
|
24
|
+
"url": "https://github.com/hunvreus/devpush/releases/download/v1.0.0-beta.6/devpush-agent-linux-amd64",
|
|
25
|
+
"sha256": "95e5a942676b81cce7cb0bf2c426fd47c007a0f0ee38ecbd390c0a82cf5bb322",
|
|
26
26
|
"size": 8212604
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"os": "linux",
|
|
30
30
|
"arch": "arm64",
|
|
31
31
|
"filename": "devpush-agent-linux-arm64",
|
|
32
|
-
"url": "https://github.com/hunvreus/devpush/releases/download/v1.0.0-beta.
|
|
33
|
-
"sha256": "
|
|
32
|
+
"url": "https://github.com/hunvreus/devpush/releases/download/v1.0.0-beta.6/devpush-agent-linux-arm64",
|
|
33
|
+
"sha256": "1414bb03369ad3962d1c0d4acf2317d57eccb036d0c06026742e76d156a539b7",
|
|
34
34
|
"size": 7536764
|
|
35
35
|
}
|
|
36
36
|
]
|
package/package.json
CHANGED
|
@@ -155,6 +155,28 @@ export function AdminSettings({
|
|
|
155
155
|
setAllowlistQuery(overview.allowlistPagination.query)
|
|
156
156
|
}, [overview.allowlistPagination.query])
|
|
157
157
|
|
|
158
|
+
useEffect(() => {
|
|
159
|
+
const timeout = window.setTimeout(() => {
|
|
160
|
+
const search: Parameters<typeof onSearchChange>[0] = {}
|
|
161
|
+
if (userQuery !== overview.userPagination.query) {
|
|
162
|
+
search.userQuery = userQuery
|
|
163
|
+
search.userPage = 1
|
|
164
|
+
}
|
|
165
|
+
if (allowlistQuery !== overview.allowlistPagination.query) {
|
|
166
|
+
search.allowlistQuery = allowlistQuery
|
|
167
|
+
search.allowlistPage = 1
|
|
168
|
+
}
|
|
169
|
+
if (Object.keys(search).length) onSearchChange(search)
|
|
170
|
+
}, 300)
|
|
171
|
+
return () => window.clearTimeout(timeout)
|
|
172
|
+
}, [
|
|
173
|
+
userQuery,
|
|
174
|
+
allowlistQuery,
|
|
175
|
+
overview.userPagination.query,
|
|
176
|
+
overview.allowlistPagination.query,
|
|
177
|
+
onSearchChange,
|
|
178
|
+
])
|
|
179
|
+
|
|
158
180
|
async function refresh() {
|
|
159
181
|
await afterMutation(
|
|
160
182
|
() => router.invalidate(),
|
|
@@ -548,13 +570,7 @@ export function AdminSettings({
|
|
|
548
570
|
</Empty>
|
|
549
571
|
) : (
|
|
550
572
|
<>
|
|
551
|
-
<
|
|
552
|
-
className="flex items-center gap-2"
|
|
553
|
-
onSubmit={(event) => {
|
|
554
|
-
event.preventDefault()
|
|
555
|
-
onSearchChange({ userQuery, userPage: 1 })
|
|
556
|
-
}}
|
|
557
|
-
>
|
|
573
|
+
<div className="flex items-center gap-2">
|
|
558
574
|
<InputGroup className="mr-auto max-w-72">
|
|
559
575
|
<InputGroupAddon>
|
|
560
576
|
<SearchIcon />
|
|
@@ -566,10 +582,7 @@ export function AdminSettings({
|
|
|
566
582
|
onChange={(event) => setUserQuery(event.target.value)}
|
|
567
583
|
/>
|
|
568
584
|
</InputGroup>
|
|
569
|
-
|
|
570
|
-
Search
|
|
571
|
-
</Button>
|
|
572
|
-
</form>
|
|
585
|
+
</div>
|
|
573
586
|
{overview.users.length === 0 ? (
|
|
574
587
|
<Empty className="min-h-40">
|
|
575
588
|
<EmptyHeader>
|
|
@@ -688,7 +701,7 @@ export function AdminSettings({
|
|
|
688
701
|
<TooltipTrigger asChild>
|
|
689
702
|
<AlertDialogTrigger asChild>
|
|
690
703
|
<Button
|
|
691
|
-
variant="
|
|
704
|
+
variant="destructive"
|
|
692
705
|
size="icon-sm"
|
|
693
706
|
type="button"
|
|
694
707
|
aria-label="Ban user"
|
|
@@ -857,13 +870,7 @@ export function AdminSettings({
|
|
|
857
870
|
) : (
|
|
858
871
|
<>
|
|
859
872
|
<div className="flex flex-wrap items-center justify-between gap-3">
|
|
860
|
-
<
|
|
861
|
-
onSubmit={(event) => {
|
|
862
|
-
event.preventDefault()
|
|
863
|
-
onSearchChange({ allowlistQuery, allowlistPage: 1 })
|
|
864
|
-
}}
|
|
865
|
-
className="flex items-center gap-2"
|
|
866
|
-
>
|
|
873
|
+
<div className="flex items-center gap-2">
|
|
867
874
|
<InputGroup className="max-w-72">
|
|
868
875
|
<InputGroupAddon>
|
|
869
876
|
<SearchIcon />
|
|
@@ -877,10 +884,7 @@ export function AdminSettings({
|
|
|
877
884
|
}
|
|
878
885
|
/>
|
|
879
886
|
</InputGroup>
|
|
880
|
-
|
|
881
|
-
Search
|
|
882
|
-
</Button>
|
|
883
|
-
</form>
|
|
887
|
+
</div>
|
|
884
888
|
{allowlistActions}
|
|
885
889
|
</div>
|
|
886
890
|
{overview.allowlist.length === 0 ? (
|