Browse Source

Remove unused code

master
Joshua Rubingh 6 months ago
parent
commit
9f4306724b
  1. 118
      components/apps/grid.vue
  2. 53
      components/contributors/editForm.vue

118
components/apps/grid.vue

@ -1,118 +0,0 @@ @@ -1,118 +0,0 @@
<template>
<v-card>
<v-card-title>
Apps
<v-spacer></v-spacer>
<v-text-field
v-model="search"
append-icon="mdi-magnify"
label="Search"
single-line
hide-details
></v-text-field>
</v-card-title>
<v-data-table
multi-sort
hide-default-footer
:headers="headers"
:items="apps"
:search="search"
@click:row="navigateToRow"
>
</v-data-table>
</v-card>
</template>
provider
cpu
gpu
ram
storage
user
action
app
access: []
additional_gpu_amount: 1
additional_gpu_type: 1
additional_memory_amount: 0
additional_memory_type: null
additional_storage_amount: 0
additional_storage_type: null
base_memory_amount: 12
base_memory_type: 2
base_storage_amount: 100
base_storage_type: 2
created_at: "2021-10-05T10:47:01.186516+02:00"
id: 19
name: "VM_a"
networks: [1, 2]
operating_system: 2
operating_system_name: "Windows 10 standaard"
profile: 2
profile_name: "Premium"
researcher: 7
study: 10
total_memory: 12884901888
total_storage: 107374182400
updated_at: "2021-10-05T10:47:01.186640+02:00"
<script>
export default {
props: {
studies: {
type: Array,
default() {
return []
},
},
},
data () {
return {
search: '',
headers: [
{
text: 'provider',
value: 'provider',
},
{
text: 'CPU',
value: 'cpu'
},
{
text: 'GPU',
value: 'gpu',
},
{
text: 'RAM',
value: 'ram'
},
{
text: 'Storage',
value: 'storage'
},
{
text: 'Researcher',
value: 'user'
},
{
text: '',
sortable: false,
value: 'isShared'
}
],
}
},
methods: {
navigateToRow(row) {
this.$router.push(this.app.localePath({
name: 'researchStudies.study.overview',
params: {
studyId: row.id
}
}));
}
},
}
</script>

53
components/contributors/editForm.vue

@ -1,53 +0,0 @@ @@ -1,53 +0,0 @@
<template>
<v-card>
<v-card-title>
<span class="text-h5">{{ $t('contributors.editForm.title') }}</span>
</v-card-title>
<contributor-list-item :contributor="contributor" />
<v-card-text>
<v-container>
<v-row>
<v-col cols="12" sm="6" md="4">
<v-select
v-model="formData.roles"
:items="roles"
item-text="name"
item-value="id"
multiple
chips
:label="$t('form.contributorRole')"
></v-select>
</v-col>
</v-row>
</v-container>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" text @click="close">
{{ $t('contributors.editForm.cancel') }}
</v-btn>
<v-btn color="blue darken-1" text @click="save">
{{ $t('contributors.editForm.save') }}
</v-btn>
</v-card-actions>
</v-card>
</template>
<script>
import Form from '@/lib/form'
export default {
props: {},
data() {
return {
formData: {},
contributor: {},
roles: [],
form: Form({}),
}
},
}
</script>
Loading…
Cancel
Save