File tree Expand file tree Collapse file tree 3 files changed +9
-16
lines changed Expand file tree Collapse file tree 3 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 65
65
on:click ={() => {
66
66
removeModal = true ;
67
67
}}
68
- ><Trash class =" text-blue-700 dark:text-red-700 " />
68
+ ><Trash class =" text-blue-600 dark:text-blue-500 " />
69
69
</Button >
70
70
<Button
71
71
name =" Button"
74
74
editFunc (ieeeAddr );
75
75
}}
76
76
>
77
- <AdjustmentsHorizontal class =" text-blue-700 dark:text-red-700 " />
77
+ <AdjustmentsHorizontal class =" text-blue-600 dark:text-blue-500 " />
78
78
</Button >
79
79
</ButtonGroup >
80
80
</span >
Original file line number Diff line number Diff line change 10
10
TableHeadCell
11
11
} from ' flowbite-svelte' ;
12
12
console .log (stats );
13
- const Z_INIT = 300 ;
13
+ const Z_INIT = 254 ;
14
14
let lock = false ;
15
15
let zcount = 0 ;
16
16
32
32
}
33
33
</script >
34
34
35
- <Card size =" sm" >
36
- <h5 class =" mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white" >Stats</h5 >
35
+ <Card size =" md" class =" w-[25rem]" >
36
+ <div class =" mb-5 flex justify-between" ><h5 class =" inline-block mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white" >Stats</h5 >
37
+ <Button class ="w-1/2" color ="blue" disabled ={zcount > 0 ? true : false } pill outline on:click ={zjoin }>{zcount > 0 ? ' Join timeout: ' + zcount + ' sec' : ' Enable Zigbee join' }</Button ></div >
37
38
<p class =" font-normal text-gray-700 dark:text-gray-400" >
38
39
<Table divClass =" relative overflow-x-auto sm:rounded-lg border-2 border-dashed" >
39
40
<TableBody >
81
82
class =" odd:bg-white even:bg-gray-100 dark:odd:bg-gray-800 dark:even:bg-gray-700"
82
83
>
83
84
<TableHeadCell scope =" col" class =" px-6 py-3" >Last Boot:</TableHeadCell >
84
- <TableBodyCell class =" pr-6 text-right break-words whitespace-break-spaces"
85
+ <TableBodyCell class =" w-5 pr-6 text-right break-words whitespace-break-spaces"
85
86
>{new Date (stats .uptime ).toUTCString ()}</TableBodyCell
86
87
>
87
88
</TableBodyRow >
112
113
</TableBody >
113
114
</Table >
114
115
</p >
115
- </Card >
116
-
117
- <div class =" mt-8" >
118
- <Button color ="blue" pill outline on:click ={zjoin }>Enable Zigbee join</Button >
119
- <span
120
- class =" mb-2 ml-5 inline-block text-lg font-medium tracking-tight text-gray-900 dark:text-white"
121
- style ="visibility: {zcount > 0 ? ' visible' : ' hidden' }" >Join timeout: {zcount } sec</span
122
- >
123
- </div >
116
+ </Card >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { mClient } from '$lib/_mqtt';
3
3
export async function POST ( { params, request } ) {
4
4
await mClient . publish (
5
5
'zigbee2mqtt/bridge/request/permit_join' ,
6
- JSON . stringify ( { value : true , time : 300 } )
6
+ JSON . stringify ( { value : true , time : 254 } )
7
7
) ;
8
8
9
9
console . log ( 'Zigbee2Mqtt joining enabled' ) ;
You can’t perform that action at this time.
0 commit comments