Skip to content

Commit

Permalink
v4.0.22-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
jemu75 committed Mar 1, 2024
1 parent 221c9e1 commit 31fc34c
Show file tree
Hide file tree
Showing 15 changed files with 387 additions and 352 deletions.
434 changes: 216 additions & 218 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# v4.0.22-beta (01.03.2024)
## Framework
- Bugfix for vuetify3 extention panel -> version rollback
## Settings
- Bugfix for synchronisation between raw-mode and ui-mode
## Core
- Bugfix for reconnect
# v4.0.21-beta (26.02.2024)
## Settings
- Bugfix for fhem commands in Header Settings
Expand Down
9 changes: 8 additions & 1 deletion src/components/SettingsProps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@
return highlight(code, languages.js)
}
function loadJsonDef(evt) {
if(evt) {
settings.value.jsonDef = JSON.stringify(fhem.app.config[props.type][settings.value.itemIdx], null, '\t')
}
}
function changed() {
let res = fhem.stringToJson(settings.value.jsonDef, true)
Expand Down Expand Up @@ -326,7 +332,8 @@
v-model="settings.rawMode"
:label="$t('_app.settings.panels.rawMode')"
color="blue"
hide-details
hide-details
@update:model-value="loadJsonDef($event)"
>
</v-switch>
</v-col>
Expand Down
8 changes: 6 additions & 2 deletions src/stores/fhem.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export const useFhemStore = defineStore('fhem', () => {

return await fetch(createURL(params), options)
.then((res) => {
if(type === 'token') result = res.headers.get('x-fhem-csrftoken')
if(type === 'token') result = { token: res.headers.get('x-fhem-csrftoken') }
if(type === 'json') result = res.json()
if(type === 'text') result = res.text()

Expand All @@ -218,7 +218,11 @@ export const useFhemStore = defineStore('fhem', () => {

//coreFunction fill settings (session)
async function getToken() {
stat.csrf = await request('token')
let res = await request('token')

if(!res) return false
stat.csrf = res.token

return true
}

Expand Down
7 changes: 7 additions & 0 deletions www/fhemapp4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# v4.0.22-beta (01.03.2024)
## Framework
- Bugfix for vuetify3 extention panel -> version rollback
## Settings
- Bugfix for synchronisation between raw-mode and ui-mode
## Core
- Bugfix for reconnect
# v4.0.21-beta (26.02.2024)
## Settings
- Bugfix for fhem commands in Header Settings
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Loading

0 comments on commit 31fc34c

Please sign in to comment.