From b172e3b73016c9cbb78484bff48f43b0d3b1d142 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 14 Aug 2022 21:38:29 +0000 Subject: [PATCH] Add some recycling --- .gitignore | 2 +- package-lock.json | 81 +++++++++++++++++++++++------------------------ package.json | 3 +- src/App.vue | 12 ++++++- src/Timeline.vue | 70 ++++++++++++++++++++++++++++++++++++++++ src/main.js | 4 +++ 6 files changed, 127 insertions(+), 45 deletions(-) create mode 100644 src/Timeline.vue diff --git a/.gitignore b/.gitignore index e13ddf75..b33b5dac 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* -js +js/ # Editor directories and files .idea diff --git a/package-lock.json b/package-lock.json index 00b06955..106a832d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,8 @@ "dependencies": { "@nextcloud/l10n": "^1.6.0", "@nextcloud/vue": "^5.4.0", - "vue": "^2.7.8" + "vue": "^2.7.8", + "vue-virtual-scroller": "^1.0.10" }, "devDependencies": { "@nextcloud/babel-config": "^1.0.0", @@ -4424,27 +4425,6 @@ "vue": ">2.0.0" } }, - "node_modules/emoji-mart-vue-fast/node_modules/vue-virtual-scroller": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/vue-virtual-scroller/-/vue-virtual-scroller-1.0.10.tgz", - "integrity": "sha512-Hn4qSBDhRY4XdngPioYy/ykDjrLX/NMm1fQXm/4UQQ/Xv1x8JbHGFZNftQowTcfICgN7yc31AKnUk1UGLJ2ndA==", - "dependencies": { - "scrollparent": "^2.0.1", - "vue-observe-visibility": "^0.4.4", - "vue-resize": "^0.4.5" - }, - "peerDependencies": { - "vue": "^2.6.11" - } - }, - "node_modules/emoji-mart-vue-fast/node_modules/vue-virtual-scroller/node_modules/vue-resize": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-0.4.5.tgz", - "integrity": "sha512-bhP7MlgJQ8TIkZJXAfDf78uJO+mEI3CaLABLjv0WNzr4CcGRGPIAItyWYnP6LsPA4Oq0WE+suidNs6dgpO4RHg==", - "peerDependencies": { - "vue": "^2.3.0" - } - }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -10754,6 +10734,14 @@ "resolved": "https://registry.npmjs.org/vue-observe-visibility/-/vue-observe-visibility-0.4.6.tgz", "integrity": "sha512-xo0CEVdkjSjhJoDdLSvoZoQrw/H2BlzB5jrCBKGZNXN2zdZgMuZ9BKrxXDjNP2AxlcCoKc8OahI3F3r3JGLv2Q==" }, + "node_modules/vue-resize": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-0.4.5.tgz", + "integrity": "sha512-bhP7MlgJQ8TIkZJXAfDf78uJO+mEI3CaLABLjv0WNzr4CcGRGPIAItyWYnP6LsPA4Oq0WE+suidNs6dgpO4RHg==", + "peerDependencies": { + "vue": "^2.3.0" + } + }, "node_modules/vue-style-loader": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz", @@ -10811,6 +10799,19 @@ "dev": true, "peer": true }, + "node_modules/vue-virtual-scroller": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/vue-virtual-scroller/-/vue-virtual-scroller-1.0.10.tgz", + "integrity": "sha512-Hn4qSBDhRY4XdngPioYy/ykDjrLX/NMm1fQXm/4UQQ/Xv1x8JbHGFZNftQowTcfICgN7yc31AKnUk1UGLJ2ndA==", + "dependencies": { + "scrollparent": "^2.0.1", + "vue-observe-visibility": "^0.4.4", + "vue-resize": "^0.4.5" + }, + "peerDependencies": { + "vue": "^2.6.11" + } + }, "node_modules/watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", @@ -14709,26 +14710,6 @@ "@babel/polyfill": "^7.12.1", "@babel/runtime": "^7.16.3", "vue-virtual-scroller": "^1.0.10" - }, - "dependencies": { - "vue-virtual-scroller": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/vue-virtual-scroller/-/vue-virtual-scroller-1.0.10.tgz", - "integrity": "sha512-Hn4qSBDhRY4XdngPioYy/ykDjrLX/NMm1fQXm/4UQQ/Xv1x8JbHGFZNftQowTcfICgN7yc31AKnUk1UGLJ2ndA==", - "requires": { - "scrollparent": "^2.0.1", - "vue-observe-visibility": "^0.4.4", - "vue-resize": "^0.4.5" - }, - "dependencies": { - "vue-resize": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-0.4.5.tgz", - "integrity": "sha512-bhP7MlgJQ8TIkZJXAfDf78uJO+mEI3CaLABLjv0WNzr4CcGRGPIAItyWYnP6LsPA4Oq0WE+suidNs6dgpO4RHg==", - "requires": {} - } - } - } } }, "emoji-regex": { @@ -19514,6 +19495,12 @@ "resolved": "https://registry.npmjs.org/vue-observe-visibility/-/vue-observe-visibility-0.4.6.tgz", "integrity": "sha512-xo0CEVdkjSjhJoDdLSvoZoQrw/H2BlzB5jrCBKGZNXN2zdZgMuZ9BKrxXDjNP2AxlcCoKc8OahI3F3r3JGLv2Q==" }, + "vue-resize": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-0.4.5.tgz", + "integrity": "sha512-bhP7MlgJQ8TIkZJXAfDf78uJO+mEI3CaLABLjv0WNzr4CcGRGPIAItyWYnP6LsPA4Oq0WE+suidNs6dgpO4RHg==", + "requires": {} + }, "vue-style-loader": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz", @@ -19567,6 +19554,16 @@ "dev": true, "peer": true }, + "vue-virtual-scroller": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/vue-virtual-scroller/-/vue-virtual-scroller-1.0.10.tgz", + "integrity": "sha512-Hn4qSBDhRY4XdngPioYy/ykDjrLX/NMm1fQXm/4UQQ/Xv1x8JbHGFZNftQowTcfICgN7yc31AKnUk1UGLJ2ndA==", + "requires": { + "scrollparent": "^2.0.1", + "vue-observe-visibility": "^0.4.4", + "vue-resize": "^0.4.5" + } + }, "watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", diff --git a/package.json b/package.json index 01b481e6..4d34620a 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,8 @@ "dependencies": { "@nextcloud/l10n": "^1.6.0", "@nextcloud/vue": "^5.4.0", - "vue": "^2.7.8" + "vue": "^2.7.8", + "vue-virtual-scroller": "^1.0.10" }, "browserslist": [ "extends @nextcloud/browserslist-config" diff --git a/src/App.vue b/src/App.vue index 346d959c..0a5fa234 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,16 +8,25 @@ -
This is the s
+
+ +
+ + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 5d80faa9..9463c2e4 100644 --- a/src/main.js +++ b/src/main.js @@ -20,6 +20,8 @@ * */ import Vue from 'vue' +import VueVirtualScroller from 'vue-virtual-scroller' +import 'vue-virtual-scroller/dist/vue-virtual-scroller.css' import { translate as t, translatePlural as n } from '@nextcloud/l10n' import App from './App' @@ -32,6 +34,8 @@ Vue.mixin({ }, }) +Vue.use(VueVirtualScroller) + export default new Vue({ el: '#content', render: h => h(App),