diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-10-29 15:39:35 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-10-29 15:39:35 +0200 |
commit | 7172b6f507e0161a685c34e573e0ef838c974846 (patch) | |
tree | e44cc3635ae45ca7a54bc6e91611d2c798eeddb1 /src/App.vue | |
parent | 4c9212c93ecc47f83c0190f43808f9ff1bc19e6b (diff) | |
download | homer-7172b6f507e0161a685c34e573e0ef838c974846.tar.gz homer-7172b6f507e0161a685c34e573e0ef838c974846.tar.zst homer-7172b6f507e0161a685c34e573e0ef838c974846.zip |
Update dependencies
Diffstat (limited to 'src/App.vue')
-rw-r--r-- | src/App.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/App.vue b/src/App.vue index f2089ee..25e943f 100644 --- a/src/App.vue +++ b/src/App.vue | |||
@@ -141,7 +141,7 @@ | |||
141 | </template> | 141 | </template> |
142 | 142 | ||
143 | <script> | 143 | <script> |
144 | import jsyaml from "js-yaml"; | 144 | import { parse } from "yaml"; |
145 | import merge from "lodash.merge"; | 145 | import merge from "lodash.merge"; |
146 | 146 | ||
147 | import Navbar from "./components/Navbar.vue"; | 147 | import Navbar from "./components/Navbar.vue"; |
@@ -200,7 +200,7 @@ export default { | |||
200 | } | 200 | } |
201 | }, | 201 | }, |
202 | buildDashboard: async function () { | 202 | buildDashboard: async function () { |
203 | const defaults = jsyaml.load(defaultConfig); | 203 | const defaults = parse(defaultConfig); |
204 | let config; | 204 | let config; |
205 | try { | 205 | try { |
206 | config = await this.getConfig(); | 206 | config = await this.getConfig(); |
@@ -245,7 +245,7 @@ export default { | |||
245 | return response | 245 | return response |
246 | .text() | 246 | .text() |
247 | .then((body) => { | 247 | .then((body) => { |
248 | return jsyaml.load(body); | 248 | return parse(body); |
249 | }) | 249 | }) |
250 | .then(function (config) { | 250 | .then(function (config) { |
251 | if (config.externalConfig) { | 251 | if (config.externalConfig) { |