From 736b63f61def0225c71d739ab9794f22e5671c55 Mon Sep 17 00:00:00 2001 From: busti Date: Thu, 14 Nov 2019 02:22:20 +0100 Subject: [PATCH] mock overall layout --- package-lock.json | 26 ++++++++ package.json | 3 + src/App.vue | 155 +++++++++++++++++++++++++++++++++++++++++++--- src/main.js | 10 +++ 4 files changed, 186 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 47aa10f..86d199f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -925,6 +925,32 @@ "to-fast-properties": "^2.0.0" } }, + "@fortawesome/fontawesome-common-types": { + "version": "0.2.25", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.25.tgz", + "integrity": "sha512-3RuZPDuuPELd7RXtUqTCfed14fcny9UiPOkdr2i+cYxBoTOfQgxcDoq77fHiiHcgWuo1LoBUpvGxFF1H/y7s3Q==" + }, + "@fortawesome/fontawesome-svg-core": { + "version": "1.2.25", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.25.tgz", + "integrity": "sha512-MotKnn53JKqbkLQiwcZSBJVYtTgIKFbh7B8+kd05TSnfKYPFmjKKI59o2fpz5t0Hzl35vVGU6+N4twoOpZUrqA==", + "requires": { + "@fortawesome/fontawesome-common-types": "^0.2.25" + } + }, + "@fortawesome/free-solid-svg-icons": { + "version": "5.11.2", + "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.11.2.tgz", + "integrity": "sha512-zBue4i0PAZJUXOmLBBvM7L0O7wmsDC8dFv9IhpW5QL4kT9xhhVUsYg/LX1+5KaukWq4/cbDcKT+RT1aRe543sg==", + "requires": { + "@fortawesome/fontawesome-common-types": "^0.2.25" + } + }, + "@fortawesome/vue-fontawesome": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/@fortawesome/vue-fontawesome/-/vue-fontawesome-0.1.8.tgz", + "integrity": "sha512-SdFiUD+vFDA/xKuEbnQTVrK8FDxoV0eyQaiHxmCcjAc0+vQe0Kf6oGm28opNPIt8MTgKWR3+Yg3xXP455Ae4tQ==" + }, "@hapi/address": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.2.tgz", diff --git a/package.json b/package.json index b275487..51ad248 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,9 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "@fortawesome/fontawesome-svg-core": "^1.2.25", + "@fortawesome/free-solid-svg-icons": "^5.11.2", + "@fortawesome/vue-fontawesome": "^0.1.8", "bootstrap": "^4.3.1", "core-js": "^3.3.2", "jquery": "^3.4.1", diff --git a/src/App.vue b/src/App.vue index 6adedaa..5d2737d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,22 +1,161 @@ diff --git a/src/main.js b/src/main.js index c3e9d6f..4a6d239 100644 --- a/src/main.js +++ b/src/main.js @@ -2,10 +2,20 @@ import Vue from 'vue'; import App from './App.vue'; import store from './store'; +// bootstrap import 'jquery/dist/jquery.min.js'; import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/dist/js/bootstrap.min.js'; +// fontawesome +import { library } from '@fortawesome/fontawesome-svg-core'; +import { faPlus, faCheckCircle, faEdit, faTrash } from '@fortawesome/free-solid-svg-icons'; +import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; + +library.add(faPlus, faCheckCircle, faEdit, faTrash); + +Vue.component('font-awesome-icon', FontAwesomeIcon); + new Vue({ el: '#app', store,