chrismattmann commented on a change in pull request #135: Initial Commit of adding new UI designed with vue URL: https://github.com/apache/drat/pull/135#discussion_r202207293
########## File path: webapps/proteus-new/src/main/webapp/resources/src/components/projectstable.vue ########## @@ -0,0 +1,118 @@ +<template lang="html"> + +<v-card id="tablecard"> + <section class="projectstable"> + <!-- <h1>Projects</h1> --> + <v-data-table id="ttx" + :headers="headers" + :items="docs" + hide-actions + class="elevation-1" + > + <template slot="items" slot-scope="props"> + <td class="text-xs-left" >{{props.index+1+count.start}}</td> + <td class="text-xs-left">{{ props.item.repo }}</td> + <td class="text-xs-left">{{ props.item.name }}</td> + <td class="text-xs-left">{{ props.item.description }}</td> + <td > + <v-btn @click="moreClicked()"> + <v-icon medium + + >description</v-icon> + </v-btn> + </td> + </template> + </v-data-table> + </section> +</v-card> +</template> + +<script lang="js"> +import axios from 'axios'; +import store from './../store/store'; + export default { + name: 'projectstable', + store, + props: [], + mounted() { + this.loadData(); + setInterval(function () { + this.loadData(); + }.bind(this), 30000); + }, + data() { + return { + + headers: [ + { + text: '#', + align: 'left', + sortable: false, + value: 'num' + }, + { text: 'Repository',sortable: false, value: 'repository' }, + { text: 'Name',sortable: false, value: 'name' }, + { text: 'Description',sortable: false, value: 'description' }, + { text: 'Audit',sortable: false, value: 'audit' } + ], + count:{ + numFound :0, + start:0 + }, + + docs:[{"description":"Default DRAT repo.", + "text":["Default DRAT repo.","DRAT"], + "repo":"/home/xelvias/drat/src", Review comment: why not just read this JSON from the provided JSON file in the repo? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services