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

scroll with log #278

Merged
merged 1 commit into from
Feb 9, 2021
Merged
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
7 changes: 6 additions & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"vee-validate": "^3.4.5",
"vue": "^2.6.12",
"vue-chartjs": "^3.5.1",
"vue-chat-scroll": "^1.4.0",
"vue-router": "^3.4.9",
"vue2-ace-editor": "0.0.15",
"vuetify": "^2.4.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
</v-card-text>
<v-virtual-scroll
v-else
v-chat-scroll="{enable: true, always: false, notSmoothOnInit: true}"
:bench="20"
:items="logs"
height="600"
Expand All @@ -19,9 +20,9 @@
id="logcontainer"
>
<template v-slot="{ item }">
<div id="logtext">
<li id="logtext">
{{ item }}
</div>
</li>
</template>
</v-virtual-scroll>
</v-card>
Expand All @@ -32,7 +33,8 @@
export default {
props: ["app", "logs"],
data() {
return {};
return {
};
}
};
</script>
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import VueChatScroll from 'vue-chat-scroll';
// API Calls
import axios from "axios";
// UI Framework
Expand All @@ -13,6 +14,8 @@ import "./vee-validate";
// Animations
require("animate.css/animate.compat.css");

Vue.use(VueChatScroll)

Vue.config.productionTip = false;

// Handle Token Refresh on 401
Expand Down