feat(showcase): use manual track
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<title>aklive2d</title>
|
<title>aklive2d</title>
|
||||||
<script async defer data-website-id="05ee2d3d-66e0-429b-89ba-db112743a8c2"
|
<script async defer data-website-id="05ee2d3d-66e0-429b-89ba-db112743a8c2"
|
||||||
src="https://insights.halyul.dev/insights.js" data-do-not-track="true"></script>
|
src="https://insights.halyul.dev/insights.js" data-do-not-track="true" data-auto-track="false"></script>
|
||||||
</head>
|
</head>
|
||||||
<body style="background-image: url('./assets/background/operator_bg.png');">
|
<body style="background-image: url('./assets/background/operator_bg.png');">
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ export default class EnvGenerator {
|
|||||||
|
|
||||||
generate() {
|
generate() {
|
||||||
return [
|
return [
|
||||||
|
`VITE_LINK="${this.#operatorConfig.link}"`,
|
||||||
`VITE_TITLE="${this.#operatorConfig.title}"`,
|
`VITE_TITLE="${this.#operatorConfig.title}"`,
|
||||||
`VITE_FILENAME=${this.#operatorConfig.filename.replace('#', '%23')}`,
|
`VITE_FILENAME=${this.#operatorConfig.filename.replace('#', '%23')}`,
|
||||||
`VITE_LOGO_FILENAME=${this.#operatorConfig.logo}`,
|
`VITE_LOGO_FILENAME=${this.#operatorConfig.logo}`,
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export default function spinePlayer(el) {
|
|||||||
entry.mixDuration = 0.3;
|
entry.mixDuration = 0.3;
|
||||||
widget.animationState.addAnimation(0, "Idle", true, 0);
|
widget.animationState.addAnimation(0, "Idle", true, 0);
|
||||||
}
|
}
|
||||||
window.settings.loadViewport()
|
window.settings.success()
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -37,6 +37,7 @@ export default class Settings {
|
|||||||
#padBottom = this.#defaultPadBottom
|
#padBottom = this.#defaultPadBottom
|
||||||
#logoX = this.#defaultLogoX
|
#logoX = this.#defaultLogoX
|
||||||
#logoY = this.#defaultLogoY
|
#logoY = this.#defaultLogoY
|
||||||
|
#isInsightsInited = false
|
||||||
|
|
||||||
constructor(el, logoEl) {
|
constructor(el, logoEl) {
|
||||||
this.#el = el
|
this.#el = el
|
||||||
@@ -62,6 +63,17 @@ export default class Settings {
|
|||||||
this.#insertHTML()
|
this.#insertHTML()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
success() {
|
||||||
|
this.loadViewport()
|
||||||
|
this.insights(false)
|
||||||
|
}
|
||||||
|
|
||||||
|
insights(flag) {
|
||||||
|
if (this.#isInsightsInited) return
|
||||||
|
window.umami.trackView(`/${import.meta.env.VITE_LINK}${flag ? "?steam" : ""}`);
|
||||||
|
this.#isInsightsInited = true
|
||||||
|
}
|
||||||
|
|
||||||
setFPS(value) {
|
setFPS(value) {
|
||||||
this.#fps = value
|
this.#fps = value
|
||||||
this.spinePlayer.setFps(value)
|
this.spinePlayer.setFps(value)
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ window.wallpaperPropertyListener = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
applyUserProperties: function (properties) {
|
applyUserProperties: function (properties) {
|
||||||
|
window.settings.insights(true)
|
||||||
if (properties.logo) {
|
if (properties.logo) {
|
||||||
window.settings.setLogoDisplay(!properties.logo.value)
|
window.settings.setLogoDisplay(!properties.logo.value)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user