From 48b1a9bbc3cae9d2ac0a2117e36ba6b8df24f879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 14 May 2019 16:18:41 +0200 Subject: [PATCH] async computed support --- frontend/package.json | 1 + frontend/src/main.js | 1 + frontend/src/plugins/vue-async-computed.js | 4 ++++ frontend/yarn.lock | 5 +++++ 4 files changed, 11 insertions(+) create mode 100644 frontend/src/plugins/vue-async-computed.js diff --git a/frontend/package.json b/frontend/package.json index 69997e4..516cf71 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -34,6 +34,7 @@ "js-cookie": "^2.2.0", "stylus": "^0.54.5", "stylus-loader": "^3.0.1", + "vue-async-computed": "^3.6.1", "vue-cli-plugin-coffeescript": "^0.0.3", "vue-cli-plugin-vuetify": "^0.5.0", "vue-template-compiler": "^2.5.21", diff --git a/frontend/src/main.js b/frontend/src/main.js index ffea811..994cb3f 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -1,5 +1,6 @@ import Vue from 'vue' import './plugins/vuetify' +import './plugins/vue-async-computed' import App from './App.vue' import router from './router' import 'roboto-fontface/css/roboto/roboto-fontface.css' diff --git a/frontend/src/plugins/vue-async-computed.js b/frontend/src/plugins/vue-async-computed.js new file mode 100644 index 0000000..8dbb27d --- /dev/null +++ b/frontend/src/plugins/vue-async-computed.js @@ -0,0 +1,4 @@ +import Vue from 'vue' +import AsyncComputed from 'vue-async-computed' + +Vue.use(AsyncComputed) diff --git a/frontend/yarn.lock b/frontend/yarn.lock index f8a6b7f..9353da1 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -9891,6 +9891,11 @@ vm-browserify@0.0.4: dependencies: indexof "0.0.1" +vue-async-computed@^3.6.1: + version "3.6.1" + resolved "https://registry.yarnpkg.com/vue-async-computed/-/vue-async-computed-3.6.1.tgz#6b790e2125347c678d1b82b10a5b03b41d7b86d0" + integrity sha512-8FFDTqfdvKrzK5Fr7nNHZgP6sQ2hTUELTrLn25i8VW/g06MztD+FOe1gs0RYVpRkPlcrykf2hbJxNYra1c4OGg== + vue-cli-plugin-coffeescript@^0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/vue-cli-plugin-coffeescript/-/vue-cli-plugin-coffeescript-0.0.3.tgz#717b608395a2bafc31c0d568159e014a16fbb6bc"