Skip to content

Commit 9962db2

Browse files
Move to lucide-icons (#36) and fix @gorymoon/minecraft-text (#37)
* remove fontawesome deps to allow for installing * fix building, except for gradle * finish moving to lucide over fontawesome * remove package-lock.json (doesn't seem to be in the repo)
1 parent 4d48984 commit 9962db2

File tree

6 files changed

+2154
-1869
lines changed

6 files changed

+2154
-1869
lines changed

gradlew

100644100755
File mode changed.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
"dependencies": {
66
"@babel/core": "7.16.10",
77
"@babel/preset-env": "7.16.10",
8-
"@fortawesome/fontawesome-svg-core": "^1.2.36",
9-
"@fortawesome/free-brands-svg-icons": "^5.15.4",
10-
"@fortawesome/free-solid-svg-icons": "^5.15.4",
11-
"@fortawesome/vue-fontawesome": "^2.0.6",
128
"@gorymoon/minecraft-text": "^1.0.1",
139
"@types/leaflet": "1.7.8",
1410
"babel-loader": "8.2.3",
@@ -30,6 +26,7 @@
3026
"intersection-observer": "0.12.0",
3127
"leaflet": "^1.7.1",
3228
"leaflet-rotatedmarker": "0.2.0",
29+
"lucide-vue": "^0.517.0",
3330
"mini-css-extract-plugin": "2.5.2",
3431
"regenerator-runtime": "^0.13.9",
3532
"terser-webpack-plugin": "5.3.0",

src/main/js/index.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,16 @@ import "leaflet/dist/leaflet.css"
1313
import "../css/index.css"
1414

1515
import { LCircleMarker, LControl, LMap, LMarker, LPolygon, LTileLayer, LTooltip } from "vue2-leaflet"
16-
import { faCogs, faCube, faExpandArrowsAlt, faFileAlt, faGlobeEurope, faLocationArrow, faTimesCircle } from "@fortawesome/free-solid-svg-icons"
16+
import { Settings, Box, Expand, Navigation, Earth, File, CircleX } from 'lucide-vue'
1717

1818
import Buefy, { SnackbarProgrammatic as Snackbar } from "buefy"
19-
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"
2019
import { Icon } from "leaflet"
2120
import MarkerIcon from "leaflet/dist/images/marker-icon.png"
2221
import MarkerIcon2x from "leaflet/dist/images/marker-icon-2x.png"
2322
import MarkerShadow from "leaflet/dist/images/marker-shadow.png"
2423
import Vue from "vue"
2524

2625
import datastore from "./datastore"
27-
import { library } from "@fortawesome/fontawesome-svg-core"
2826
import { methods } from "./methods"
2927
import { patch } from "./utils"
3028

@@ -36,9 +34,13 @@ window.datastore = datastore
3634

3735
patch()
3836

39-
library.add(faCube, faLocationArrow, faGlobeEurope, faCogs, faExpandArrowsAlt, faFileAlt, faTimesCircle)
40-
41-
Vue.component("font-awesome-icon", FontAwesomeIcon)
37+
Vue.component('lucide-icon-settings', Settings)
38+
Vue.component('lucide-icon-box', Box)
39+
Vue.component('lucide-icon-expand', Expand)
40+
Vue.component('lucide-icon-navigation', Navigation)
41+
Vue.component('lucide-icon-earth', Earth)
42+
Vue.component('lucide-icon-file', File)
43+
Vue.component('lucide-icon-circle-x', CircleX)
4244

4345
Vue.component("l-circle-marker", LCircleMarker)
4446
Vue.component("l-control", LControl)

src/main/resources/assets/journeymap/web/index.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,14 @@
7878
class="info-pane">
7979
<b-tooltip :animated="true" label="Player biome" position="is-left">
8080
<div>
81-
<font-awesome-icon icon="cube"></font-awesome-icon>
81+
<lucide-icon-box></lucide-icon-box>
8282
<span v-text="playerBiome"></span>
8383
</div>
8484
</b-tooltip>
8585

8686
<b-tooltip :animated="true" label="Player coordinates" position="is-left">
8787
<div class="truncate">
88-
<font-awesome-icon icon="location-arrow"></font-awesome-icon>
89-
88+
<lucide-icon-navigation></lucide-icon-navigation>
9089
<span class="light-text">x:</span>
9190
<span v-text="playerX"></span>
9291
<span class="light-text">z:</span>
@@ -101,7 +100,7 @@
101100
class="info-pane">
102101
<b-tooltip :animated="true" label="World" position="is-left">
103102
<div>
104-
<font-awesome-icon icon="globe-europe"></font-awesome-icon>
103+
<lucide-icon-earth></lucide-icon-earth>
105104
<span v-text="playerWorld"></span>
106105
</div>
107106
</b-tooltip>
@@ -116,7 +115,7 @@
116115
position="is-left">
117116
<div>
118117
<a @click="settingsVisible = !settingsVisible">
119-
<font-awesome-icon icon="cogs"></font-awesome-icon>
118+
<lucide-icon-settings></lucide-icon-settings>
120119
</a>
121120
</div>
122121
</b-tooltip>
@@ -151,13 +150,13 @@
151150
class="leaflet-bar leaflet-control">
152151
<b-tooltip :animated="true" class="is-flex" label="Toggle full-screen" position="is-right">
153152
<a @click="toggleFullScreen">
154-
<font-awesome-icon icon="expand-arrows-alt"></font-awesome-icon>
153+
<lucide-icon-expand></lucide-icon-expand>
155154
</a>
156155
</b-tooltip>
157156

158157
<b-tooltip :animated="true" class="is-flex" label="View journeymap.log" position="is-right">
159158
<a @click="logModalActive = true" id="logButton">
160-
<font-awesome-icon icon="file-alt"></font-awesome-icon>
159+
<lucide-icon-file></lucide-icon-file>
161160
</a>
162161
</b-tooltip>
163162
</l-control>
@@ -243,7 +242,7 @@
243242

244243
@click="settingsVisible = !settingsVisible">
245244

246-
<font-awesome-icon icon="times-circle"></font-awesome-icon>
245+
<lucide-icon-circle-x></lucide-icon-circle-x>
247246
</a>
248247
</div>
249248
<div class="content">

webpack.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@ module.exports = {
7979
test: /\.vue$/,
8080
loader: "vue-loader",
8181
},
82+
{
83+
test: /\.m?js$/,
84+
resolve: {
85+
fullySpecified: false,
86+
},
87+
include: [
88+
path.resolve(
89+
__dirname,
90+
'node_modules/@gorymoon/minecraft-text'
91+
),
92+
],
93+
},
8294
],
8395
},
8496
}

0 commit comments

Comments
 (0)