Rebuilt the settings view in Svelte

This commit is contained in:
David Carley
2022-07-22 22:36:19 -07:00
parent 3f3b609de6
commit 2efd753d95
11 changed files with 249 additions and 86 deletions

View File

@@ -135,6 +135,7 @@ module.exports = new Vue({
watch: {
display_units: function (value) {
localStorage.setItem("display_units", value);
SvelteComponents.setDisplayUnits(value);
},
},
@@ -213,6 +214,10 @@ module.exports = new Vue({
ready: function () {
$(window).on("hashchange", this.parse_hash);
this.connect();
SvelteComponents.registerControllerMethods({
dispatch: (...args) => this.$dispatch(...args)
});
},
methods: {