-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83a4cb7
commit 528d606
Showing
7 changed files
with
33 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"vueCompilerOptions": { | ||
"target": 2.7 | ||
"target": 3.3 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import Vue from "vue" | ||
import { createApp } from "vue" | ||
import App from "./App.vue" | ||
import bootstrap from "./plugins/bootstrap" | ||
import fontawesome from "./plugins/fontawesome" | ||
import scrollto from "./plugins/scrollto" | ||
|
||
/** | ||
* Global plugins goes here | ||
*/ | ||
import "./plugins/fontawesome" | ||
import "./plugins/scrollto" | ||
import "./plugins/bootstrap" | ||
|
||
new Vue({ | ||
render: (h) => h(App) | ||
}).$mount("#app") | ||
//Global Plugins | ||
const app = createApp(App) | ||
app.use(bootstrap) | ||
app.use(fontawesome) | ||
app.use(scrollto) | ||
app.mount("#app") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
import Vue from "vue" | ||
import Tooltip from "bootstrap/js/src/tooltip" | ||
import "bootstrap/scss/bootstrap.scss" | ||
|
||
const Bootstrap = { | ||
export default { | ||
// The install method will be called with the Vue constructor as | ||
// the first argument, along with possible options | ||
install(Vue) { | ||
install(app){ | ||
// Add a component or directive to your plugin, so it will be installed globally to your project. | ||
Vue.directive("tooltip", { | ||
inserted(el) { | ||
app.directive("tooltip", { | ||
mounted(el) { | ||
el.tooltip = new Tooltip(el) | ||
}, | ||
|
||
unbind(el){ | ||
unmounted(el){ | ||
el.tooltip.dispose() | ||
el.tooltip = null | ||
delete el.tooltip | ||
} | ||
}) | ||
} | ||
} | ||
|
||
Vue.use(Bootstrap) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import Vue from "vue" | ||
import { library, config } from "@fortawesome/fontawesome-svg-core" | ||
import { faEnvelope, faHeart } from "@fortawesome/free-solid-svg-icons" | ||
import { faTwitter, faGithub } from "@fortawesome/free-brands-svg-icons" | ||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' | ||
import "@fortawesome/fontawesome-svg-core/styles.css" | ||
|
||
config.autoAddCss = false; | ||
library.add(faEnvelope, faHeart, faTwitter, faGithub) | ||
|
||
Vue.component("font-awesome-icon", FontAwesomeIcon) | ||
export default { | ||
install(app){ | ||
config.autoAddCss = false; | ||
library.add(faEnvelope, faHeart, faTwitter, faGithub) | ||
app.component("font-awesome-icon", FontAwesomeIcon) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters