Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: virtual-scroller - Installs and configures virtual scroller library #21

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
"@vue/composition-api": "^0.6.1",
"axios": "^0.19.2",
"core-js": "^3.6.5",
"intersection-observer": "^0.10.0",
"lodash": "^4.17.15",
"materialize-css": "^1.0.0-rc.2",
"node-emoji": "^1.10.0",
"vue": "^2.6.11",
"vue-loading-overlay": "^3.3.2",
"vue-router": "^3.1.6",
"vue-virtual-scroller": "^1.0.10",
"vuex": "^3.3.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions src/config/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Vue from "vue";

import "@/config/materialize";
import "@/config/composition-api";
import "@/config/virtual-scroller";

Vue.config.productionTip = false;
8 changes: 8 additions & 0 deletions src/config/virtual-scroller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// vue-virtual-scroller needs this polyfill: https://github.com/Akryum/vue-virtual-scroller#installation
import "intersection-observer";

import Vue from "vue";
import VueVirtualScroller from "vue-virtual-scroller";
import "vue-virtual-scroller/dist/vue-virtual-scroller.css";

Vue.use(VueVirtualScroller);
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Vue from "vue";

import App from "@/App.vue";
import router from "@/router";
import "@/config";
Expand Down