Compare commits
10 Commits
cbda26b370
...
00421cc578
| Author | SHA1 | Date |
|---|---|---|
|
|
00421cc578 | |
|
|
85fcecfa5a | |
|
|
4da4692c95 | |
|
|
0ef621bb54 | |
|
|
4a09a0dfa0 | |
|
|
8e62bcd6b5 | |
|
|
43b81d1f9a | |
|
|
2291ec237e | |
|
|
15d62abf69 | |
|
|
9b3411172b |
|
|
@ -4,7 +4,8 @@ name: build & publish image
|
|||
|
||||
steps:
|
||||
- name: build & publish
|
||||
image: plugins/docker
|
||||
image: thegeeklab/drone-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
registry: containers.zipek.cz
|
||||
username:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
steps:
|
||||
- name: build & publish
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
registry: containers.zipek.cz
|
||||
username:
|
||||
from_secret: zipek_registry_username
|
||||
password:
|
||||
from_secret: zipek_registry_password
|
||||
repo: containers.zipek.cz/kamen/graphicek
|
||||
tags: latest
|
||||
cache_to: "containers.zipek.cz/kamen/graphicek-build-cache:latest"
|
||||
cache_from: "containers.zipek.cz/kamen/graphicek-build-cache:latest"
|
||||
when:
|
||||
- event: push
|
||||
branch: master
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import { getLatestSensorValue } from '@/api/sensorValues'
|
||||
import { DashboardDialData } from '@/utils/dashboard/parseDashboard'
|
||||
import { useMemo } from 'preact/hooks'
|
||||
import { useEffect, useMemo } from 'preact/hooks'
|
||||
import { useQuery } from 'react-query'
|
||||
import { useDashboardContext } from '../../../contexts/DashboardContext'
|
||||
import { BoxLoader } from './BoxLoader'
|
||||
|
|
@ -23,11 +23,15 @@ export const BoxDialContent = ({ data, ...editableBoxProps }: Props) => {
|
|||
)
|
||||
|
||||
const value = useQuery(
|
||||
['/sensor/values/latest', valuesQuery],
|
||||
['/sensor/values/latest', data.sensor ?? -1],
|
||||
() => getLatestSensorValue(valuesQuery),
|
||||
{ enabled: !!data.sensor }
|
||||
{ enabled: !!data.sensor, retry: false }
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
value.refetch()
|
||||
}, [filter.customTo])
|
||||
|
||||
const showFetchLoading = useDelayedState(value.isLoading, 500)
|
||||
|
||||
const displayValue = useMemo(() => {
|
||||
|
|
|
|||
|
|
@ -26,11 +26,15 @@ export const BoxGraphContent = ({ data, ...editableBoxProps }: Props) => {
|
|||
}
|
||||
|
||||
const values = useQuery(
|
||||
['/sensor/values', valuesQuery],
|
||||
['/sensor/values', data.sensor ?? -1],
|
||||
() => getSensorValues(valuesQuery),
|
||||
{ enabled: !!data.sensor }
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
values.refetch()
|
||||
}, [filter.customFrom, filter.customTo])
|
||||
|
||||
const showFetchLoading = useDelayedState(values.isLoading, 500)
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue