This commit is contained in:
2020-10-05 20:34:15 +00:00
parent c9449377f7
commit 932c322e44
2 changed files with 53 additions and 5 deletions

View File

@@ -13,8 +13,13 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
Vue.component("font-awesome-icon", FontAwesomeIcon); // Register component globally Vue.component("font-awesome-icon", FontAwesomeIcon); // Register component globally
import { import {
faBars, faBars,
faUser, faCaretDown,
faChevronDown,
faEllipsisV, faEllipsisV,
faEye,
faEyeSlash,
faInfoCircle,
faUser,
faKey, faKey,
faQuestionCircle, faQuestionCircle,
faSignInAlt faSignInAlt
@@ -22,7 +27,19 @@ import {
//import { faUserCircle as farUserCircle } from "@fortawesome/free-regular-svg-icons"; //import { faUserCircle as farUserCircle } from "@fortawesome/free-regular-svg-icons";
Vue.component("font-awesome-icon", FontAwesomeIcon); Vue.component("font-awesome-icon", FontAwesomeIcon);
library.add(faBars, faKey, faQuestionCircle, faSignInAlt, faUser, faEllipsisV); library.add(
faBars,
faCaretDown,
faChevronDown,
faEllipsisV,
faEye,
faEyeSlash,
faInfoCircle,
faKey,
faQuestionCircle,
faSignInAlt,
faUser
);
const CUSTOM_ICONS = { const CUSTOM_ICONS = {
ayiQuestionCircle: { ayiQuestionCircle: {
@@ -31,6 +48,18 @@ const CUSTOM_ICONS = {
icon: ["fas", "question-circle"] icon: ["fas", "question-circle"]
} }
}, },
ayiEye: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "eye"]
}
},
ayiEyeSlash: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "eye-slash"]
}
},
ayiEllipsisV: { ayiEllipsisV: {
component: FontAwesomeIcon, component: FontAwesomeIcon,
props: { props: {
@@ -55,12 +84,31 @@ const CUSTOM_ICONS = {
icon: ["fas", "user"] icon: ["fas", "user"]
} }
}, },
//VUETIFY REQUIRED ONES
//https://vuetifyjs.com/en/features/icons/#using-custom-icons
dropdown: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "caret-down"]
}
},
info: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "info-circle"]
}
},
menu: { menu: {
// used for the nav-icon by vuetify
component: FontAwesomeIcon, component: FontAwesomeIcon,
props: { props: {
icon: ["fas", "bars"] icon: ["fas", "bars"]
} }
},
sort: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "chevron-down"]
}
} }
}; };
//------------- //-------------

View File

@@ -57,7 +57,7 @@
> >
</v-select> </v-select>
</v-col> </v-col>
<v-col cols="12" md="7"> <v-col cols="12" md="7">
<v-text-field <v-text-field
name="username" name="username"
id="username" id="username"
@@ -78,7 +78,7 @@
name="password" name="password"
id="password" id="password"
v-model="input.password" v-model="input.password"
:append-outer-icon="reveal ? 'fa-eye' : 'fa-eye-slash'" :append-outer-icon="reveal ? '$ayiEye' : '$ayiEyeSlash'"
prepend-icon="$ayiKey" prepend-icon="$ayiKey"
:type="reveal ? 'text' : 'password'" :type="reveal ? 'text' : 'password'"
:error="errorBadCreds" :error="errorBadCreds"