C2lc (#1706)
* c2lc * fix typo * text formatting --------- Co-authored-by: booploops <49113086+booploops@users.noreply.github.com>
This commit is contained in:
parent
3e99848ab7
commit
ba7999af34
6 changed files with 419 additions and 202 deletions
|
@ -190,6 +190,7 @@ const app = new Vue({
|
|||
windowControlPosition: "right",
|
||||
contentAreaScrolling: true,
|
||||
showCursor: false,
|
||||
noC2Upgrade: localStorage.getItem("noC2Upgrade") == "true" ? true : false,
|
||||
},
|
||||
collectionList: {
|
||||
response: {},
|
||||
|
@ -220,6 +221,7 @@ const app = new Vue({
|
|||
moreInfo: false,
|
||||
airplayPW: false,
|
||||
settings: false,
|
||||
c2Upgrade: false,
|
||||
},
|
||||
socialBadges: {
|
||||
badgeMap: {},
|
||||
|
@ -1283,6 +1285,15 @@ const app = new Vue({
|
|||
if (this.cfg.general.themeUpdateNotification && !this.isDev) {
|
||||
this.checkForThemeUpdates();
|
||||
}
|
||||
|
||||
if (!localStorage.getItem("noC2Startup")) {
|
||||
const c2UpgradeDate = 1688172351000;
|
||||
if (Date.now() <= c2UpgradeDate) {
|
||||
setTimeout(() => {
|
||||
app.modals.c2Upgrade = true;
|
||||
}, 2000);
|
||||
}
|
||||
}
|
||||
},
|
||||
setWindowScaleFactor() {
|
||||
let scale = (((window.devicePixelRatio * window.innerWidth) / 1280) * window.innerHeight) / 720;
|
||||
|
@ -1295,6 +1306,9 @@ const app = new Vue({
|
|||
}
|
||||
document.documentElement.style.setProperty("--windowRelativeScale", scale);
|
||||
},
|
||||
c2offer() {
|
||||
app.modals.c2Upgrade = true;
|
||||
},
|
||||
showFoo(querySelector, time) {
|
||||
clearTimeout(this.idleTimer);
|
||||
if (this.idleState == true) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue