# HG changeset patch # User Markus Kottlaender # Date 1541063968 -3600 # Node ID 874d19f32015ff6cd9d087d0ff9a8e69e41a8214 # Parent 31b36ef007848b2a2f1ab0b03a3cbb037c026bfb added fontawesome5 and implemented one example icon on login screen diff -r 31b36ef00784 -r 874d19f32015 client/package.json --- a/client/package.json Tue Oct 30 12:29:13 2018 +0100 +++ b/client/package.json Thu Nov 01 10:19:28 2018 +0100 @@ -11,6 +11,9 @@ "test:e2e": "vue-cli-service test:e2e" }, "dependencies": { + "@fortawesome/fontawesome-svg-core": "^1.2.7", + "@fortawesome/free-solid-svg-icons": "^5.4.2", + "@fortawesome/vue-fontawesome": "^0.1.2", "@turf/distance": "^6.0.1", "@turf/helpers": "^6.1.4", "@turf/line-intersect": "^6.0.2", diff -r 31b36ef00784 -r 874d19f32015 client/src/login/Login.vue --- a/client/src/login/Login.vue Tue Oct 30 12:29:13 2018 +0100 +++ b/client/src/login/Login.vue Thu Nov 01 10:19:28 2018 +0100 @@ -20,7 +20,8 @@
- + +
@@ -129,13 +130,6 @@ isPasswordVisible() { return this.readablePassword ? "text" : "password"; }, - eyeIcon() { - return { - fa: true, - "fa-eye": !this.readablePassword, - "fa-eye-slash": this.readablePassword - }; - }, errorMessageStyle() { if (this.loginFailed || this.passwordJustResetted) { return "visibility:visible"; diff -r 31b36ef00784 -r 874d19f32015 client/src/main.js --- a/client/src/main.js Tue Oct 30 12:29:13 2018 +0100 +++ b/client/src/main.js Thu Nov 01 10:19:28 2018 +0100 @@ -28,6 +28,12 @@ import "../node_modules/cxlt-vue2-toastr/dist/css/cxlt-vue2-toastr.css"; import "../node_modules/highlight.js/styles/paraiso-dark.css"; import VTooltip from "v-tooltip"; +import { library } from "@fortawesome/fontawesome-svg-core"; +import { faEye, faEyeSlash } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; + +library.add(faEye, faEyeSlash); +Vue.component("font-awesome-icon", FontAwesomeIcon); Vue.use(VTooltip);