mirror of
https://github.com/bakateam/merakiui.git
synced 2025-12-09 15:05:34 +00:00
Merge pull request #11 from merakiui/wrapping_up
Adding google analytic
This commit is contained in:
5
package-lock.json
generated
5
package-lock.json
generated
@@ -11435,6 +11435,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz",
|
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz",
|
||||||
"integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
|
"integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
|
||||||
},
|
},
|
||||||
|
"vue-analytics": {
|
||||||
|
"version": "5.22.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/vue-analytics/-/vue-analytics-5.22.1.tgz",
|
||||||
|
"integrity": "sha512-HPKQMN7gfcUqS5SxoO0VxqLRRSPkG1H1FqglsHccz6BatBatNtm/Vyy8brApktZxNCfnAkrSVDpxg3/FNDeOgQ=="
|
||||||
|
},
|
||||||
"vue-clipboard2": {
|
"vue-clipboard2": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/vue-clipboard2/-/vue-clipboard2-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/vue-clipboard2/-/vue-clipboard2-0.3.1.tgz",
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
"js-beautify": "^1.11.0",
|
"js-beautify": "^1.11.0",
|
||||||
"tailwindcss": "^1.4.4",
|
"tailwindcss": "^1.4.4",
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.11",
|
||||||
|
"vue-analytics": "^5.22.1",
|
||||||
"vue-clipboard2": "^0.3.1"
|
"vue-clipboard2": "^0.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
25
src/App.vue
25
src/App.vue
@@ -1,19 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="min-h-screen bg-gray-100 font-roboto" id="app">
|
<div class="min-h-screen bg-gray-100 font-roboto" id="app">
|
||||||
<Header></Header>
|
<Header></Header>
|
||||||
<master-component></master-component>
|
<master-component></master-component>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Header from "./components/Header";
|
import Header from "./components/Header";
|
||||||
import MasterComponent from "./components/Master";
|
import MasterComponent from "./components/Master";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Header , MasterComponent
|
Header, MasterComponent
|
||||||
}
|
},
|
||||||
}
|
mounted() {
|
||||||
|
this.$ga.page('/');
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style src="./assets/css/app.css"></style>
|
<style src="./assets/css/app.css"></style>
|
||||||
|
|||||||
@@ -1,11 +1,16 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import VueClipboard from 'vue-clipboard2';
|
import VueClipboard from 'vue-clipboard2';
|
||||||
|
import VueAnalytics from 'vue-analytics';
|
||||||
|
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
|
|
||||||
Vue.use(VueClipboard);
|
Vue.use(VueClipboard);
|
||||||
|
|
||||||
|
Vue.use(VueAnalytics, {
|
||||||
|
id: 'UA-161702225-3'
|
||||||
|
});
|
||||||
|
|
||||||
Vue.filter('toId', (componentName) => {
|
Vue.filter('toId', (componentName) => {
|
||||||
return componentName.toLowerCase().replace(/ /g, '-')
|
return componentName.toLowerCase().replace(/ /g, '-')
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user