Update UI library dependencies (#2191)

* Update UI library dependencies
* change to node v14
* update js-yaml load and dump function
This commit is contained in:
idanovinda
2023-01-27 12:47:30 +01:00
committed by GitHub
parent c9cada66c7
commit d5251c5fc8
7 changed files with 36 additions and 37 deletions
+5 -5
View File
@@ -71,8 +71,8 @@ edit
this.updateEditable = e => {
if (this.refs.changedProperties.value) {
this.editablePropertiesPreview = yamlParser.safeDump(
yamlParser.safeLoad(
this.editablePropertiesPreview = yamlParser.dump(
yamlParser.load(
this.refs.changedProperties.value,
),
)
@@ -85,7 +85,7 @@ edit
this.saveMessage = ''
jsonPayload = JSON.stringify(
yamlParser.safeLoad(
yamlParser.load(
this.refs.changedProperties.value,
),
)
@@ -129,7 +129,7 @@ edit
if (i.metadata.managedFields) { delete i.metadata.managedFields }
this.update()
this.refs.yamlNice.innerHTML = yamlParser.safeDump(i.postgresql, {sortKeys: true})
this.refs.yamlNice.innerHTML = yamlParser.dump(i.postgresql, {sortKeys: true})
// Output data:
const o = this.editableProperties = { spec: {} }
@@ -192,7 +192,7 @@ edit
this.editablePropertiesText = (
yamlParser
.safeDump(this.editableProperties)
.dump(this.editableProperties)
.slice(0, -1)
)
this.editablePropertiesPreview = this.editablePropertiesText
+1 -1
View File
@@ -793,7 +793,7 @@ new
}
this.requestCreate = e => {
jsonPayload = JSON.stringify(yamlParser.safeLoad(this.getYAML()))
jsonPayload = JSON.stringify(yamlParser.load(this.getYAML()))
this.creating = true
this.update()
+1 -1
View File
@@ -220,7 +220,7 @@ postgresql
delete manifest.status
if (this.refs.yamlNice) {
this.refs.yamlNice.innerHTML = yamlParser.safeDump(
this.refs.yamlNice.innerHTML = yamlParser.dump(
this.progress.postgresqlManifest,
{
sortKeys: true,