try get fontawesome working
This commit is contained in:
@@ -3,14 +3,14 @@ module git.labdevops.net/luke/gomongotest
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
github.com/bxcodec/faker/v3 v3.6.0 // indirect
|
||||
github.com/bxcodec/faker/v3 v3.6.0
|
||||
github.com/cosmtrek/air v1.27.3 // indirect
|
||||
github.com/creack/pty v1.1.13 // indirect
|
||||
github.com/fatih/color v1.12.0 // indirect
|
||||
github.com/gofiber/fiber v1.14.6 // indirect
|
||||
github.com/gofiber/fiber/v2 v2.14.0 // indirect
|
||||
github.com/gofiber/fiber/v2 v2.14.0
|
||||
github.com/mattn/go-isatty v0.0.13 // indirect
|
||||
github.com/pelletier/go-toml v1.9.3 // indirect
|
||||
go.mongodb.org/mongo-driver v1.5.4 // indirect
|
||||
go.mongodb.org/mongo-driver v1.5.4
|
||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
|
||||
)
|
||||
|
||||
@@ -61,6 +61,7 @@ func main() {
|
||||
}
|
||||
return c.JSON(testitems)
|
||||
})
|
||||
|
||||
app.Static("/", "dist")
|
||||
|
||||
app.Get("/*", func(ctx *fiber.Ctx) error {
|
||||
|
||||
Generated
+17952
-758
File diff suppressed because it is too large
Load Diff
@@ -10,14 +10,15 @@
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
||||
"@fortawesome/vue-fontawesome": "^2.0.2",
|
||||
"core-js": "^3.6.5",
|
||||
"vue": "^3.0.0",
|
||||
"vue-awesome": "^4.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "~4.5.0",
|
||||
"@vue/cli-plugin-eslint": "~4.5.0",
|
||||
"@vue/cli-service": "~4.5.0",
|
||||
"@vue/cli-plugin-eslint": "^3.1.1",
|
||||
"@vue/cli-service": "^3.12.1",
|
||||
"@vue/compiler-sfc": "^3.0.0",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"eslint": "^6.7.2",
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
<template>
|
||||
<div class="mongo-status">
|
||||
<p>MongoDB Connection: <v-icon icon="times-circle" /></p>
|
||||
<p>MongoDB Connection:<v-icon name="sync" scale="2" spin/></p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import Vue from 'vue'
|
||||
import 'vue-awesome/icons'
|
||||
import Icon from 'vue-awesome/components/Icon'
|
||||
|
||||
// globally (in your main .js file)
|
||||
Vue.component('v-icon', Icon)
|
||||
export default {
|
||||
components: {
|
||||
'v-icon': Icon
|
||||
}
|
||||
// components: {
|
||||
// 'v-icon': Icon
|
||||
// }
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user