am i dumb
This commit is contained in:
parent
49d12f398f
commit
4f91798fa8
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.9.10",
|
"version": "12.119.0-calc.9.1",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -107,7 +107,7 @@ window.addEventListener('resize', () => {
|
||||||
isMobile.value = deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD;
|
isMobile.value = deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD;
|
||||||
});
|
});
|
||||||
|
|
||||||
let buttonAnimIndex = 0;
|
let buttonAnimIndex = ref(0);
|
||||||
|
|
||||||
let pageMetadata = $ref<null | ComputedRef<PageMetadata>>();
|
let pageMetadata = $ref<null | ComputedRef<PageMetadata>>();
|
||||||
const widgetsEl = $ref<HTMLElement>();
|
const widgetsEl = $ref<HTMLElement>();
|
||||||
|
@ -124,7 +124,7 @@ provideMetadataReceiver((info) => {
|
||||||
|
|
||||||
const menuIndicated = computed(() => {
|
const menuIndicated = computed(() => {
|
||||||
for (const def in navbarItemDef) {
|
for (const def in navbarItemDef) {
|
||||||
// if (def === 'notifications') continue; // 通知は下にボタンとして表示されてるから
|
if (def === 'notifications') continue; // 通知は下にボタンとして表示されてるから
|
||||||
if (navbarItemDef[def].indicated) return true;
|
if (navbarItemDef[def].indicated) return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -138,8 +138,8 @@ mainRouter.on('change', () => {
|
||||||
console.log(routerState);
|
console.log(routerState);
|
||||||
const bottomButtons = ['index', 'notifications', 'messaging'];
|
const bottomButtons = ['index', 'notifications', 'messaging'];
|
||||||
bottomButtons.forEach(i => {
|
bottomButtons.forEach(i => {
|
||||||
if (routerState.includes(i)) {
|
if (routerState?.includes(i)) {
|
||||||
buttonAnimIndex = bottomButtons.findIndex(j => j.includes(i));
|
buttonAnimIndex.value = bottomButtons.findIndex(j => j.includes(i));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue