diff --git a/.env.prod b/.env.prod index c1d9016..0a20bef 100644 --- a/.env.prod +++ b/.env.prod @@ -3,5 +3,5 @@ FT_NODE_ENV=prod FT_WS_URL=ws://192.168.8.168:8080/ws -FT_PROXY=http://192.168.8.88:8080 +FT_PROXY=http://192.168.8.168:8080 FT_API_BASE=/api \ No newline at end of file diff --git a/.env.test b/.env.test index d51079b..2822908 100644 --- a/.env.test +++ b/.env.test @@ -2,6 +2,6 @@ FT_NODE_ENV=test -FT_WS_URL=ws://192.168.8.168:8080/ws -FT_PROXY=http://192.168.8.88:8080 +FT_WS_URL=ws://192.168.1.199:8080/ws +FT_PROXY=http://192.168.1.199:8080 FT_API_BASE=/api \ No newline at end of file diff --git a/package.json b/package.json index 10e905c..8fa7b4a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "matrix-spray-web", "type": "module", - "version": "0.0.3", + "version": "0.0.4", "description": "", "author": "", "license": "ISC", diff --git a/src/apis/home.ts b/src/apis/home.ts new file mode 100644 index 0000000..8cadf90 --- /dev/null +++ b/src/apis/home.ts @@ -0,0 +1,3 @@ +import http from 'libs/http' + +export const setTargetTemperature = (params: Home.SetTargetTemperatureParams): Promise => http.post('/heat/target-temperature', params) diff --git a/src/apis/system.ts b/src/apis/system.ts index b42f869..4802bcf 100644 --- a/src/apis/system.ts +++ b/src/apis/system.ts @@ -2,3 +2,4 @@ import http from 'libs/http' export const debugControl = (params: System.CmdControlParams): Promise => http.post('/debug/cmd', params) export const control = (params: System.CmdControlParams): Promise => http.post('/cmd', params) +export const getStatus = (): Promise => http.get('/sys/device-status') diff --git a/src/app.vue b/src/app.vue index 86859b0..20393bb 100644 --- a/src/app.vue +++ b/src/app.vue @@ -1,14 +1,18 @@ + + + + diff --git a/src/components/home/SelectCraft/index.vue b/src/components/home/SelectCraft/index.vue index e20ba17..48c548e 100644 --- a/src/components/home/SelectCraft/index.vue +++ b/src/components/home/SelectCraft/index.vue @@ -1,4 +1,5 @@ @@ -198,7 +384,7 @@ const setTemperature = (id: string) => { justify-content: flex-end; .el-row { height: fit-content; - margin-bottom: 15px; + margin-bottom: 5px; } } }