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

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-07-17 16:21:44 +0300
committerJoas Schilling <coding@schilljs.com>2018-07-17 16:21:44 +0300
commit77aec817e6965cf170dac9e31d30172faacb7804 (patch)
tree400da7a543409e8d800ce9c9a3884610f9b3a83e /src/init.js
parent8a698911cf29cba031672098c89462e202b84b9b (diff)
Move to src/ and import
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/init.js')
-rw-r--r--src/init.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/init.js b/src/init.js
new file mode 100644
index 0000000..5d77ca7
--- /dev/null
+++ b/src/init.js
@@ -0,0 +1,34 @@
+/**
+ * @copyright Copyright (c) 2018 Joas Schilling <coding@schilljs.com>
+ *
+ * @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 './App';
+
+Vue.prototype.t = t;
+Vue.prototype.n = n;
+Vue.prototype.OC = OC;
+Vue.prototype.OCA = OCA;
+
+$('form.searchbox').after($('<div>').attr('id', 'notifications'));
+
+new Vue({
+ el: '#notifications',
+ render: h => h(App)
+});