Skip to content

Commit

Permalink
Merge pull request #278 from SelfhostedPro/projects
Browse files Browse the repository at this point in the history
scroll with log
  • Loading branch information
SelfhostedPro authored Feb 9, 2021
2 parents 25da964 + 7ef0bba commit cb26b9b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
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

0 comments on commit cb26b9b

Please sign in to comment.