Skip to content

Commit

Permalink
Rory wip (#1)
Browse files Browse the repository at this point in the history
Latest changes from Rory
  • Loading branch information
maaikelimper authored Aug 25, 2023
1 parent 1f4f270 commit 27a721c
Show file tree
Hide file tree
Showing 25 changed files with 1,226 additions and 672 deletions.
4 changes: 2 additions & 2 deletions webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="/src/assets/logo-small.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FM-12 Form</title>
<title>wis2box</title>
</head>

<body>
Expand Down
198 changes: 107 additions & 91 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
"dependencies": {
"@mdi/font": "7.0.96",
"@vuepic/vue-datepicker": "^5.4.0",
"apexcharts": "^3.41.1",
"core-js": "^3.29.0",
"roboto-fontface": "*",
"vue": "^3.2.0",
"vue-router": "^4.0.0",
"vue3-apexcharts": "^1.4.4",
"vuetify": "^3.0.0",
"webfontloader": "^1.0.0"
},
Expand Down
Binary file removed webapp/public/favicon.ico
Binary file not shown.
10 changes: 0 additions & 10 deletions webapp/src/App_old.vue

This file was deleted.

Binary file added webapp/src/assets/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added webapp/src/assets/foot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added webapp/src/assets/logo-large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added webapp/src/assets/logo-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed webapp/src/assets/logo.png
Binary file not shown.
6 changes: 0 additions & 6 deletions webapp/src/assets/logo.svg

This file was deleted.

14 changes: 7 additions & 7 deletions webapp/src/components/DownloadButton.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<v-btn color="primary" @click="downloadFile">Download</v-btn>
<v-btn color="#00BD9D" append-icon="mdi-download" @click="downloadFile">Download</v-btn>
</template>

<script>
import { defineComponent, ref } from 'vue';
import { defineComponent } from 'vue';
import { VBtn } from 'vuetify/lib/components/index.mjs';
export default defineComponent({
Expand All @@ -18,11 +18,11 @@ export default defineComponent({
VBtn
},
setup(props) {
const fileName = ref("");
// Extract the file name from the URL
const fileName = props.fileUrl.split('/').pop();
// function to download file
const downloadFile = () => {
// Extract the file name from the URL
fileName.value = props.fileUrl.substring(props.fileUrl.lastIndexOf('/') + 1);
// Create a temporary anchor element to initiate the download
const link = document.createElement('a');
link.href = props.fileUrl;
Expand All @@ -31,8 +31,8 @@ export default defineComponent({
link.click();
};
return {
downloadFile,
fileName
fileName,
downloadFile
};
},
});
Expand Down
Loading

0 comments on commit 27a721c

Please sign in to comment.