diff options
author | Zero~Informatique | 2020-05-10 15:09:05 +0200 |
---|---|---|
committer | Zero~Informatique | 2020-05-10 15:09:59 +0200 |
commit | edf3dc50aad464b31e4b1f2a1a3980ca023b9588 (patch) | |
tree | e06747d07064948ac91a123118df58b69c7e9284 /viewer/src/plugins/fontawesome.ts | |
parent | 34bcf9339c86f145442b9edc799416462bf21fc5 (diff) | |
download | ldgallery-edf3dc50aad464b31e4b1f2a1a3980ca023b9588.tar.gz |
viewer: code simplification;fontawesome import
Diffstat (limited to 'viewer/src/plugins/fontawesome.ts')
-rw-r--r-- | viewer/src/plugins/fontawesome.ts | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/viewer/src/plugins/fontawesome.ts b/viewer/src/plugins/fontawesome.ts index 886d680..25ddd99 100644 --- a/viewer/src/plugins/fontawesome.ts +++ b/viewer/src/plugins/fontawesome.ts | |||
@@ -21,39 +21,9 @@ import Vue from "vue"; | |||
21 | 21 | ||
22 | import { library, config } from "@fortawesome/fontawesome-svg-core"; | 22 | import { library, config } from "@fortawesome/fontawesome-svg-core"; |
23 | import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; | 23 | import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; |
24 | import { | 24 | import * as faIcons from "./fontawesome-icons"; |
25 | faFolder, | ||
26 | faFolderOpen, | ||
27 | faEraser, | ||
28 | faSearch, | ||
29 | faPlus, | ||
30 | faMinus, | ||
31 | faImage, | ||
32 | faHome, | ||
33 | faArrowLeft, | ||
34 | faLevelUpAlt, | ||
35 | faAngleRight, | ||
36 | faAngleDoubleLeft, | ||
37 | faFile, | ||
38 | faFileDownload, | ||
39 | } from "@fortawesome/free-solid-svg-icons"; | ||
40 | 25 | ||
41 | library.add( | 26 | library.add(faIcons); |
42 | faFolder, | ||
43 | faFolderOpen, | ||
44 | faEraser, | ||
45 | faSearch, | ||
46 | faPlus, | ||
47 | faMinus, | ||
48 | faImage, | ||
49 | faHome, | ||
50 | faArrowLeft, | ||
51 | faLevelUpAlt, | ||
52 | faAngleRight, | ||
53 | faAngleDoubleLeft, | ||
54 | faFile, | ||
55 | faFileDownload, | ||
56 | ); | ||
57 | 27 | ||
58 | config.autoAddCss = false; | 28 | config.autoAddCss = false; |
59 | import "@fortawesome/fontawesome-svg-core/styles.css"; | 29 | import "@fortawesome/fontawesome-svg-core/styles.css"; |