This commit is contained in:
2020-10-06 13:52:31 +00:00
parent 0c895f83b0
commit bf740b2b6c
21 changed files with 90 additions and 47 deletions

View File

@@ -11,12 +11,12 @@ const icons = {
powerpoint: "$ayiFilePowerpoint",
excel: "$ayiFileExcel",
csv: "$ayiFileCsv",
audio: "fa-file-audio",
video: "fa-file-video",
audio: "$ayiFileAudio",
video: "$ayiFileVidio",
archive: "$ayiFileArchive",
code: "fa-file-code",
text: "fa-file-alt",
file: "fa-file"
code: "$ayiFileCode",
text: "$ayiFileAlt",
file: "$ayiFile"
};
const mimeTypes = {
"image/gif": icons.image,
@@ -316,7 +316,7 @@ export default {
case window.$gz.type.ServerJob:
return "$ayiRobot";
case window.$gz.type.AyaNova7Import:
return "fa-file-import";
return "$ayiFile-import";
case window.$gz.type.TrialSeeder:
return "fa-seedling";
case window.$gz.type.Metrics:
@@ -351,7 +351,7 @@ export default {
" " +
mimeType
);
return "fa-file";
return "$ayiFile";
}
if (!mimeType) {
@@ -369,7 +369,7 @@ export default {
return iconFromExtension;
}
return "fa-file";
return "$ayiFile";
},
///////////////////////////////////////////////
// attempt to detect image extension name

View File

@@ -316,7 +316,10 @@
</v-col>
</v-row>
<v-btn depressed tile @click="toggleReveal">
Wiki<v-icon v-text="reveal ? '$ayiEyeSlash' : '$ayiEye'" right></v-icon
Wiki<v-icon
v-text="reveal ? '$ayiEyeSlash' : '$ayiEye'"
right
></v-icon
></v-btn>
</v-sheet>
</template>

View File

@@ -38,7 +38,11 @@ import {
faEye,
faEyeSlash,
faFan,
faFile,
faFileAlt,
faFileArchive,
faFileAudio,
faFileCode,
faFileContract,
faFileCsv,
faFileExcel,
@@ -46,6 +50,7 @@ import {
faFileMedicalAlt,
faFilePdf,
faFilePowerpoint,
faFileVideo,
faFileWord,
faFolder,
faHistory,
@@ -111,7 +116,11 @@ library.add(
faEye,
faEyeSlash,
faFan,
faFile,
faFileAlt,
faFileArchive,
faFileAudio,
faFileCode,
faFileContract,
faFileCsv,
faFileExcel,
@@ -119,6 +128,7 @@ library.add(
faFileMedicalAlt,
faFilePdf,
faFilePowerpoint,
faFileVideo,
faFileWord,
faFolder,
faHistory,
@@ -300,12 +310,36 @@ const CUSTOM_ICONS = {
icon: ["fas", "fan"]
}
},
ayiFile: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "file"]
}
},
ayiFileArchive: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "file-archive"]
}
},
ayiFileAlt: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "file-alt"]
}
},
ayiFileAudio: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "file-audio"]
}
},
ayiFileCode: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "file-code"]
}
},
ayiFileContract: {
component: FontAwesomeIcon,
props: {
@@ -348,6 +382,12 @@ const CUSTOM_ICONS = {
icon: ["fas", "file-powerpoint"]
}
},
ayiFileVidio: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "file-vidio"]
}
},
ayiFileWord: {
component: FontAwesomeIcon,
props: {

View File

@@ -297,14 +297,14 @@ function generateMenu(vm) {
//Report not Print, print is a further option
menuOptions.menuItems.push({
title: "Report",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report",
vm: vm
});
menuOptions.menuItems.push({
title: "stub: Last report used",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report:STUBlastusedreportid",
vm: vm
});

View File

@@ -87,14 +87,14 @@ function generateMenu(vm) {
// //Report not Print, print is a further option
// menuOptions.menuItems.push({
// title: "Report",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report",
// vm: vm
// });
// menuOptions.menuItems.push({
// title: "stub: Last report used",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report:STUBlastusedreportid",
// vm: vm
// });

View File

@@ -15,7 +15,7 @@
v-model="uploadFiles"
:label="$ay.t('Import')"
accept=".ayrt"
prepend-icon="fa-file-upload"
prepend-icon="$ayiFile-upload"
multiple
chips
></v-file-input>
@@ -135,14 +135,14 @@ function generateMenu(vm) {
// //Report not Print, print is a further option
// menuOptions.menuItems.push({
// title: "Report",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report",
// vm: vm
// });
// menuOptions.menuItems.push({
// title: "stub: Last report used",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report:STUBlastusedreportid",
// vm: vm
// });

View File

@@ -622,7 +622,7 @@ function generateMenu(vm) {
//Report not Print, print is a further option
menuOptions.menuItems.push({
title: "Report",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report",
vm: vm
});
@@ -632,7 +632,7 @@ function generateMenu(vm) {
if (lastReport != null) {
menuOptions.menuItems.push({
title: lastReport.name,
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report:" + lastReport.id,
vm: vm
});
@@ -664,7 +664,7 @@ function generateMenu(vm) {
menuOptions.menuItems.push({
title: "Export",
icon: "fa-file-download",
icon: "$ayiFile-download",
href: href,
target: "_blank",
key: FORM_KEY + ":export",

View File

@@ -15,7 +15,7 @@
v-model="uploadFiles"
:label="$ay.t('Import')"
accept="application/json"
prepend-icon="fa-file-upload"
prepend-icon="$ayiFile-upload"
multiple
chips
></v-file-input>
@@ -135,14 +135,14 @@ function generateMenu(vm) {
// //Report not Print, print is a further option
// menuOptions.menuItems.push({
// title: "Report",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report",
// vm: vm
// });
// menuOptions.menuItems.push({
// title: "stub: Last report used",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report:STUBlastusedreportid",
// vm: vm
// });

View File

@@ -695,7 +695,7 @@ function generateMenu(vm) {
//Report not Print, print is a further option
menuOptions.menuItems.push({
title: "Report",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report",
vm: vm
});
@@ -705,7 +705,7 @@ function generateMenu(vm) {
if (lastReport != null) {
menuOptions.menuItems.push({
title: lastReport.name,
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report:" + lastReport.id,
vm: vm
});

View File

@@ -228,14 +228,14 @@ function generateMenu(vm) {
//Report not Print, print is a further option
menuOptions.menuItems.push({
title: "Report",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report",
vm: vm
});
menuOptions.menuItems.push({
title: "stub: Last report used",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report:STUBlastusedreportid",
vm: vm
});

View File

@@ -425,7 +425,7 @@ function populateEventTypeList(vm) {
},
6: {
name: vm.$ay.t("EventAttachmentDownload"),
icon: "fa-file-download"
icon: "$ayiFile-download"
},
7: {
name: vm.$ay.t("EventLicenseFetch"),
@@ -445,7 +445,7 @@ function populateEventTypeList(vm) {
13: { name: vm.$ay.t("EventResetSerial"), icon: "fa-egg" },
13: {
name: vm.$ay.t("EventUtilityFileDownload"),
icon: "fa-file-download"
icon: "$ayiFile-download"
}
};
}

View File

@@ -1092,7 +1092,7 @@ function generateMenu(vm) {
// //Report not Print, print is a further option
// menuOptions.menuItems.push({
// title: "Report",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report",
// vm: vm
// });
@@ -1102,7 +1102,7 @@ function generateMenu(vm) {
// if (lastReport != null) {
// menuOptions.menuItems.push({
// title: lastReport.name,
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report:" + lastReport.id,
// vm: vm
// });
@@ -1134,7 +1134,7 @@ function generateMenu(vm) {
menuOptions.menuItems.push({
title: "Export",
icon: "fa-file-download",
icon: "$ayiFile-download",
href: href,
target: "_blank",
key: FORM_KEY + ":export",

View File

@@ -699,7 +699,7 @@ function generateMenu(vm) {
//Report not Print, print is a further option
menuOptions.menuItems.push({
title: "Report",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report",
vm: vm
});
@@ -709,7 +709,7 @@ function generateMenu(vm) {
if (lastReport != null) {
menuOptions.menuItems.push({
title: lastReport.name,
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report:" + lastReport.id,
vm: vm
});

View File

@@ -217,14 +217,14 @@ function generateMenu(vm) {
//Report not Print, print is a further option
menuOptions.menuItems.push({
title: "Report",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report",
vm: vm
});
menuOptions.menuItems.push({
title: "stub: Last report used",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report:STUBlastusedreportid",
vm: vm
});

View File

@@ -278,14 +278,14 @@ function generateMenu(vm) {
// //Report not Print, print is a further option
// menuOptions.menuItems.push({
// title: "Report",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report",
// vm: vm
// });
// menuOptions.menuItems.push({
// title: "stub: Last report used",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report:STUBlastusedreportid",
// vm: vm
// });

View File

@@ -675,7 +675,7 @@ function generateMenu(vm) {
// //Report not Print, print is a further option
// menuOptions.menuItems.push({
// title: "Report",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report",
// vm: vm
// });
@@ -685,7 +685,7 @@ function generateMenu(vm) {
// if (lastReport != null) {
// menuOptions.menuItems.push({
// title: lastReport.name,
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report:" + lastReport.id,
// vm: vm
// });

View File

@@ -181,14 +181,14 @@ function generateMenu(vm) {
// //Report not Print, print is a further option
// menuOptions.menuItems.push({
// title: "Report",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report",
// vm: vm
// });
// menuOptions.menuItems.push({
// title: "stub: Last report used",
// icon: "fa-file-alt",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report:STUBlastusedreportid",
// vm: vm
// });

View File

@@ -79,7 +79,7 @@
<template v-slot:[`item.actions`]="{ item }">
<v-btn icon :href="item.url">
<v-icon small class="mr-2">
fa-file-download
$ayiFile-download
</v-icon>
</v-btn>
</template></v-data-table

View File

@@ -19,7 +19,7 @@
<template v-slot:[`item.actions`]="{ item }">
<v-btn icon :href="item.url">
<v-icon small class="mr-2">
fa-file-download
$ayiFile-download
</v-icon>
</v-btn>
</template></v-data-table

View File

@@ -708,7 +708,7 @@ function generateMenu(vm) {
//Report not Print, print is a further option
menuOptions.menuItems.push({
title: "Report",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report",
vm: vm
});
@@ -718,7 +718,7 @@ function generateMenu(vm) {
if (lastReport != null) {
menuOptions.menuItems.push({
title: lastReport.name,
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report:" + lastReport.id,
vm: vm
});

View File

@@ -136,7 +136,7 @@ function generateMenu(vm) {
//Report not Print, print is a further option
menuOptions.menuItems.push({
title: "Report",
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report",
vm: vm
});
@@ -146,7 +146,7 @@ function generateMenu(vm) {
if (lastReport != null) {
menuOptions.menuItems.push({
title: lastReport.name,
icon: "fa-file-alt",
icon: "$ayiFileAlt",
key: FORM_KEY + ":report:" + lastReport.id,
vm: vm
});