Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Refactor: Removed unnecessary Variables regarding Lukas suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
MeisterSeSe committed Sep 7, 2023
1 parent a7e1db6 commit d91e442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 51 deletions.
5 changes: 0 additions & 5 deletions frontendVue3/src/components/FeatureModelTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,12 @@

<script setup>
import FileCreate from '@/components/upload_cards/FileCreate.vue';
import { useAuthStore } from '@/store/auth';
import { computed, ref } from 'vue';
import { useRouter } from 'vue-router';
import { useFileStore } from '@/store/file';
const emit = defineEmits(['onDelete']);
const router = useRouter();
const authStore = useAuthStore();
const fileStore = useFileStore();
const props = defineProps({
Expand Down Expand Up @@ -291,10 +289,8 @@ const headers = [
];
const search = ref('');
const removeLoading = ref(false);
const dialog = ref(false);
const createDialog = ref(false);
const dialogDelete = ref(false);
const dialogAnalysis = false;
const editedItem = ref(null);
const defaultItem = ref(undefined);
const checkLocalStorage = computed(() => {
Expand Down Expand Up @@ -327,7 +323,6 @@ function handleClick(value) {
params: { id: value.id, slug: value.slug },
});
}
function setHovered() {}
</script>

<style>
Expand Down
49 changes: 3 additions & 46 deletions frontendVue3/src/views/Models.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,52 +54,9 @@ const appStore = useAppStore();
const { confirmedFeatureModels } = storeToRefs(useFileStore());
const fileStore = useFileStore();
const search = '';
const dialog = false;
const createDialog = false;
const editedIndex = -1;
const headers = [
{
text: 'ID',
align: 'start',
sortable: false,
value: 'id',
},
{ text: 'Label', value: 'label' },
{ text: 'Description', value: 'description' },
{ text: 'License', value: 'license' },
{ text: 'Tags', value: 'tags' },
{ text: 'Uploaded on', value: 'uploaded' },
{
text: 'Actions',
align: 'center',
value: 'actions',
sortable: false,
},
];
const editedItem = {
label: '',
description: '',
license: 'CC-BY Mention',
tags: null,
uploaded: 'Today',
};
const defaultItem = {
label: '',
description: '',
license: 'CC-BY Mention',
tags: null,
uploaded: 'Today',
};
const licenses = [];
const families = [];
const tags = [];
const check1 = false;
const check2 = false;
const check3 = false;
const loading = ref(false);
const info = '';
const showTutorial = false;
/*const showTutorial = false;
const tutorialSteps = [
{
title: 'Welcome to the tutorial!',
Expand Down Expand Up @@ -137,7 +94,7 @@ const tutorialSteps = [
'If there is a feature model in the local storage, you can view it by clicking this button.',
elementCssSelector: '#feature-model-ls',
},
];
];*/
onMounted(() => {
fileStore.fetchConfirmedFeatureModels();
Expand Down

0 comments on commit d91e442

Please sign in to comment.