diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-01-29 14:22:34 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 22:56:18 +0300 |
commit | 53ac9bdda17e5141fceaec1a895f733c13c73c7a (patch) | |
tree | 19c81b212c82930e948dc98ae0cef5be5d427de3 /apps/files_sharing/src/collaborationresources.js | |
parent | 3777df64ae0a4a3d79e000541c0c512fb3ebf304 (diff) |
Implement frontend for search/rename
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Move to vuex
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/src/collaborationresources.js')
-rw-r--r-- | apps/files_sharing/src/collaborationresources.js | 37 |
1 files changed, 5 insertions, 32 deletions
diff --git a/apps/files_sharing/src/collaborationresources.js b/apps/files_sharing/src/collaborationresources.js index 0370c367bb7..5ad35c192de 100644 --- a/apps/files_sharing/src/collaborationresources.js +++ b/apps/files_sharing/src/collaborationresources.js @@ -21,46 +21,19 @@ */ import Vue from 'vue' +import Vuex from 'vuex' import { PopoverMenu } from 'nextcloud-vue' import ClickOutside from 'vue-click-outside' import { VTooltip } from 'v-tooltip' +import { Store } from './services/collections'; Vue.prototype.t = t; Vue.component('PopoverMenu', PopoverMenu) Vue.directive('ClickOutside', ClickOutside) Vue.directive('Tooltip', VTooltip) +Vue.use(Vuex); -import View from './views/CollaborationView' +import View from './CollaborationView' -let selectAction = {}; -let icons = {}; -let types = {}; -console.log('register types'); - -/* TODO: temporary data for testing */ -window.OCP.Collaboration.registerType('calendar', { - action: () => { - return new Promise((resolve, reject) => { - var id = window.prompt("calendar id", "1"); - resolve(id); - }) - }, - icon: 'icon-calendar-dark', - typeString: 'calendar', - link: (id) => '#' + id, -}); -window.OCP.Collaboration.registerType('contact', { - action: () => { - return new Promise((resolve, reject) => { - var id = window.prompt("contacts id", "1"); - resolve(id); - }) - }, - icon: 'icon-contacts-dark', - link: (id) => '#' + id, - /** used in "Link to a {typeString}" */ - typeString: 'contact' -}); - -export { Vue, View } +export { Vue, View, Store } |