mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
feat: try to add plausible back
This commit is contained in:
parent
aacf64c6f7
commit
2f9c95587f
6 changed files with 11 additions and 29 deletions
|
|
@ -14,7 +14,7 @@
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="relative bg-blue-900 min-w-1200">
|
<body class="min-w-1200 relative bg-blue-900">
|
||||||
<noscript>
|
<noscript>
|
||||||
<strong
|
<strong
|
||||||
>We're sorry but LeagueStats doesn't work properly without JavaScript enabled. Please enable
|
>We're sorry but LeagueStats doesn't work properly without JavaScript enabled. Please enable
|
||||||
|
|
@ -24,5 +24,6 @@
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|
||||||
<script type="module" src="/src/main.js"></script>
|
<script type="module" src="/src/main.js"></script>
|
||||||
|
<script defer data-domain="leaguestats.gg" src="/js/script.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
9
client/package-lock.json
generated
9
client/package-lock.json
generated
|
|
@ -9,7 +9,6 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.5.0",
|
"axios": "^1.5.0",
|
||||||
"plausible-tracker": "^0.3.8",
|
|
||||||
"portal-vue": "^2.1.7",
|
"portal-vue": "^2.1.7",
|
||||||
"vue": "^2.7.14",
|
"vue": "^2.7.14",
|
||||||
"vue-content-loader": "^0.2.3",
|
"vue-content-loader": "^0.2.3",
|
||||||
|
|
@ -4506,14 +4505,6 @@
|
||||||
"node": ">= 6"
|
"node": ">= 6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/plausible-tracker": {
|
|
||||||
"version": "0.3.8",
|
|
||||||
"resolved": "https://registry.npmjs.org/plausible-tracker/-/plausible-tracker-0.3.8.tgz",
|
|
||||||
"integrity": "sha512-lmOWYQ7s9KOUJ1R+YTOR3HrjdbxIS2Z4de0P/Jx2dQPteznJl2eX3tXxKClpvbfyGP59B5bbhW8ftN59HbbFSg==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/portal-vue": {
|
"node_modules/portal-vue": {
|
||||||
"version": "2.1.7",
|
"version": "2.1.7",
|
||||||
"resolved": "https://registry.npmjs.org/portal-vue/-/portal-vue-2.1.7.tgz",
|
"resolved": "https://registry.npmjs.org/portal-vue/-/portal-vue-2.1.7.tgz",
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.5.0",
|
"axios": "^1.5.0",
|
||||||
"plausible-tracker": "^0.3.8",
|
|
||||||
"portal-vue": "^2.1.7",
|
"portal-vue": "^2.1.7",
|
||||||
"vue": "^2.7.14",
|
"vue": "^2.7.14",
|
||||||
"vue-content-loader": "^0.2.3",
|
"vue-content-loader": "^0.2.3",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import VueAxios from './plugins/axios'
|
import VueAxios from './plugins/axios'
|
||||||
import VueMeta from 'vue-meta'
|
import VueMeta from 'vue-meta'
|
||||||
import VuePlausible from './plugins/plausible'
|
|
||||||
import PortalVue from 'portal-vue'
|
import PortalVue from 'portal-vue'
|
||||||
|
|
||||||
import './assets/css/main.css'
|
import './assets/css/main.css'
|
||||||
|
|
@ -12,7 +11,6 @@ import store from './store'
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
Vue.use(VueAxios)
|
Vue.use(VueAxios)
|
||||||
Vue.use(VuePlausible)
|
|
||||||
Vue.use(VueMeta)
|
Vue.use(VueMeta)
|
||||||
Vue.use(PortalVue)
|
Vue.use(PortalVue)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
import Plausible from 'plausible-tracker'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
install(Vue) {
|
|
||||||
const options = {
|
|
||||||
domain: 'leaguestats.gg',
|
|
||||||
trackLocalhost: false,
|
|
||||||
apiHost: 'https://stats.leaguestats.gg',
|
|
||||||
}
|
|
||||||
const plausible = Plausible(options)
|
|
||||||
plausible.enableAutoPageviews()
|
|
||||||
|
|
||||||
Vue.prototype.$plausible = plausible
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -9,3 +9,11 @@
|
||||||
base = "client"
|
base = "client"
|
||||||
command = "npm run build"
|
command = "npm run build"
|
||||||
publish = "client/dist"
|
publish = "client/dist"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/js/script.js"
|
||||||
|
to = "https://plausible.io/js/script.js"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/api/event"
|
||||||
|
to = "https://plausible.io/api/event"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue