Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-12-23 19:02:36 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-01-09 23:45:22 +0300
commit397bbd550069ae561675f237324e85863b42bbdd (patch)
treefd9d21c0514be99455921f072e85ee61762889df /src/mainFilesSidebar.js
parentc3a7f1b8d7525348df1d0460dd5f6432e13c28d6 (diff)
Generalize names to encompass both the chat tab and the call view
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/mainFilesSidebar.js')
-rw-r--r--src/mainFilesSidebar.js71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/mainFilesSidebar.js b/src/mainFilesSidebar.js
new file mode 100644
index 000000000..6ac645fd9
--- /dev/null
+++ b/src/mainFilesSidebar.js
@@ -0,0 +1,71 @@
+/**
+ * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
+ * @author Joas Schilling <coding@schilljs.com>
+ * @author Marco Ambrosini <marcoambrosini@pm.me>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+import Vue from 'vue'
+import App from './FilesSidebarTabApp'
+
+// Store
+import Vuex from 'vuex'
+import store from './store'
+
+// Utils
+import { generateFilePath } from '@nextcloud/router'
+import { getRequestToken } from '@nextcloud/auth'
+
+// Directives
+import { translate, translatePlural } from '@nextcloud/l10n'
+import vuescroll from 'vue-scroll'
+
+// CSP config for webpack dynamic chunk loading
+// eslint-disable-next-line
+__webpack_nonce__ = btoa(getRequestToken())
+
+// Correct the root of the app for chunk loading
+// OC.linkTo matches the apps folders
+// OC.generateUrl ensure the index.php (or not)
+// We do not want the index.php since we're loading files
+// eslint-disable-next-line
+__webpack_public_path__ = generateFilePath('spreed', '', 'js/')
+
+Vue.prototype.t = translate
+Vue.prototype.n = translatePlural
+Vue.prototype.OC = OC
+Vue.prototype.OCA = OCA
+
+Vue.use(Vuex)
+Vue.use(vuescroll, { debounce: 600 })
+
+const newTab = () => new Vue({
+ store,
+ render: h => h(App),
+})
+
+if (!window.OCA.Talk) {
+ window.OCA.Talk = {}
+}
+Object.assign(window.OCA.Talk, {
+ fileInfo: null,
+ newTab,
+ store: store,
+})