|
| 1 | +<template> |
| 2 | + <app-layout title="About"> |
| 3 | + <template #header> |
| 4 | + <h2 class="h4 font-weight-bold"> |
| 5 | + About |
| 6 | + </h2> |
| 7 | + </template> |
| 8 | + |
| 9 | + <div class="row"> |
| 10 | + <div class="col-4"> |
| 11 | + <div class="card"> |
| 12 | + <div class="card-body"> |
| 13 | + <h5 class="card-title">Application</h5> |
| 14 | + <table class="table table-borderless"> |
| 15 | + <tr v-for="(information, title) in application.about"> |
| 16 | + <th>{{ title }}</th> |
| 17 | + <td v-if=" typeof information == 'object'" v-for="item in information">{{ item }}</td> |
| 18 | + <td v-else>{{ information }}</td> |
| 19 | + </tr> |
| 20 | + </table> |
| 21 | + </div> |
| 22 | + </div> |
| 23 | + <div class="card mt-4"> |
| 24 | + <div class="card-body"> |
| 25 | + <h5 class="card-title">Versions</h5> |
| 26 | + <table class="table table-borderless"> |
| 27 | + <tr v-for="(version, type) in application.versions"> |
| 28 | + <th>{{ type }}</th> |
| 29 | + <td>{{ version }}</td> |
| 30 | + </tr> |
| 31 | + </table> |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + <div class="card mt-4"> |
| 35 | + <div class="card-body"> |
| 36 | + <h5 class="card-title">PHP Extensions</h5> |
| 37 | + <table class="table table-borderless"> |
| 38 | + <tr v-for="(version, extension) in application.extensions"> |
| 39 | + <th>{{ extension }}</th> |
| 40 | + <td>{{ version }}</td> |
| 41 | + </tr> |
| 42 | + </table> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + <div class="card mt-4"> |
| 46 | + <div class="card-body"> |
| 47 | + <h5 class="card-title">NPM Packages</h5> |
| 48 | + <table class="table table-borderless"> |
| 49 | + <tr v-for="(version, library) in application.libraries.npm"> |
| 50 | + <th>{{ library }}</th> |
| 51 | + <td>{{ version }}</td> |
| 52 | + </tr> |
| 53 | + </table> |
| 54 | + </div> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + <div class="col-8"> |
| 58 | + <div class="card"> |
| 59 | + <div class="card-body pb-0"> |
| 60 | + <h5 class="card-title m-0">Composer Packages</h5> |
| 61 | + </div> |
| 62 | + <ul class="list-group"> |
| 63 | + <li v-for="library in application.libraries.composer" class="list-group-item d-flex justify-content-between align-items-center border-0 border-bottom"> |
| 64 | + <div class="me-auto"> |
| 65 | + <div class="fw-bold">{{ library.name }}</div> |
| 66 | + {{ library.description }} |
| 67 | + </div> |
| 68 | + <span v-for="license in library.licenses" class="badge bg-success rounded-pill me-1">{{ license }}</span> |
| 69 | + <span class="badge bg-success rounded-pill">{{ library.version }}</span> |
| 70 | + </li> |
| 71 | + </ul> |
| 72 | + </div> |
| 73 | + </div> |
| 74 | + </div> |
| 75 | + |
| 76 | + </app-layout> |
| 77 | +</template> |
| 78 | + |
| 79 | +<script> |
| 80 | +import {defineComponent} from "vue" |
| 81 | +import AppLayout from "@/Layouts/AppLayout.vue" |
| 82 | +
|
| 83 | +export default defineComponent({ |
| 84 | + components: { |
| 85 | + AppLayout, |
| 86 | + }, |
| 87 | + props: { |
| 88 | + application: Object |
| 89 | + } |
| 90 | +}); |
| 91 | +</script> |
0 commit comments