Merge pull request #522 from WebTools-NG/#507-Download-Module

#507 download module
This commit is contained in:
Tommy Mikkelsen 2022-07-04 12:52:40 +02:00 committed by GitHub
commit ed8cf3e9ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 76 additions and 0 deletions

View file

@ -18,6 +18,7 @@
* [#512 ET Intro Start/End isn't exported](https://github.com/WebTools-NG/WebTools-NG/issues/512)
* [#514 Bring back EN translations from Romain](https://github.com/WebTools-NG/WebTools-NG/issues/514)
* [#508 No timestamp in output file](https://github.com/WebTools-NG/WebTools-NG/issues/508)
* [#507 Download Module](https://github.com/WebTools-NG/WebTools-NG/issues/507)
## V0.3.17 (20220601)

View file

@ -197,6 +197,12 @@
}
},
"Modules": {
"Download":{
"Name": "Download",
"Description": "The @:Modules.Download.Name module allows you to download medias, as well as local assets, from servers where you have been granted download rights"
},
"ET": {
"Description": "@:Modules.ET.Name allows you to export detail information about the media in your libraries",
"Name": "ExportTools",

View file

@ -37,6 +37,13 @@
title: this.$t("Common.Menu.Sidebar.NavSections.Tools"),
hiddenOnCollapse: true
},
// Download
{
href: { path: '/download' },
title: this.$t("Modules.Download.Name"),
hidden: wtutils.hideMenu('download'),
icon: 'fas fa-download'
},
// Export Tools
{
href: { path: '/export' },

View file

@ -0,0 +1,55 @@
<template>
<div>
<div class="text-right"> <!-- Settings button -->
<div class="buttons">
<!-- Buttons -->
<div id="buttons">
<b-button-group id="settings">
<b-tooltip target="settings" triggers="hover">
{{ $t(`Modules.${this.PageName}.ttSettings`) }}
</b-tooltip>
<!-- Set class d-none if not used, but keep on page for spacing -->
<!-- <button class="btn btn-outline-success d-none" @click="showSettings"><i class="fa fa-cog"></i></button> -->
<button class="btn btn-outline-success d-none"><i class="fa fa-cog"></i></button>
</b-button-group>
</div>
</div>
</div>
<b-container fluid>
<div> <!-- Title and desc -->
<h2>
{{ $t(`Modules.${this.PageName}.Name`) }}
</h2>
<h5>{{ $t(`Modules.${this.PageName}.Description`) }}</h5>
</div>
<br>
<br>
</b-container>
</div>
</template>
<script>
//import i18n from '../../../i18n';
//import store from '../../../store';
//import { wtconfig, wtutils } from '../General/wtutils';
const log = require("electron-log");
export default {
data() {
return {
PageName: "Download"
};
},
created() {
log.info(`[${this.PageName}.vue] (created) - ${this.PageName} Created`);
},
methods: {
},
watch: {
},
computed: {
}
};
</script>

View file

@ -2,6 +2,7 @@ import Vue from 'vue';
import VueRouter from 'vue-router';
import Login from '../components/modules/Main/Login';
import Home from '../components/modules/Main/Home.vue';
import Download from '../components/modules/Download/Download';
import Export from '../components/modules/ExportTools/Export';
import ExportSettings from '../components/modules/ExportTools/Settings/settings';
import ExportCustom from '../components/modules/ExportTools/Custom/custom';
@ -46,6 +47,12 @@ Vue.use(VueRouter)
component: Home,
meta: {requiresAuth: true}
},
{
path: '/download',
name: "download",
component: Download,
meta: {requiresAuth: true}
},
{
path: '/export',
name: "export",