mirror of
https://example.com
synced 2024-11-24 06:26:39 +09:00
fix sync
This commit is contained in:
parent
17dc06e47a
commit
78bd658a4f
4 changed files with 10 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "12.118.1-calc.2-beta.2-rc.13",
|
||||
"version": "12.118.1-calc.2-beta.2-rc.14",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -14,15 +14,11 @@
|
|||
<div v-if="!narrow && metadata.subtitle" class="subtitle">
|
||||
{{ metadata.subtitle }}
|
||||
</div>
|
||||
<!-- <div v-if="narrow && hasTabs" class="subtitle activeTab">
|
||||
{{ tabs.find(tab => tab.key === props.tab)?.title }}
|
||||
<i class="chevron fas fa-chevron-down"></i>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<button v-for="tab in tabs" :ref="(el) => tabRefs[tab.key] = el" v-tooltip.noDelay="tab.title" class="tab _button" :class="{ active: tab.key != null && tab.key === props.tab }" @mousedown="(ev) => onTabMousedown(tab, ev)" @click="(ev) => onTabClick(tab, ev)">
|
||||
<i v-if="tab.icon" class="icon" :class="tab.icon"></i>
|
||||
<i v-if="tab.icon && !narrow" class="icon" :class="tab.icon"></i>
|
||||
<span v-if="!tab.iconOnly && !narrow" class="title">{{ tab.title }}</span>
|
||||
</button>
|
||||
<div ref="tabHighlightEl" class="highlight"></div>
|
||||
|
|
|
@ -45,11 +45,17 @@ import { definePageMetadata } from '@/scripts/page-metadata';
|
|||
import { deviceKind } from '@/scripts/device-kind';
|
||||
import 'swiper/scss';
|
||||
import 'swiper/scss/virtual';
|
||||
let tab = $ref('all');
|
||||
let includeTypes = $ref<string[] | null>(null);
|
||||
let unreadOnly = $computed(() => tab === 'unread');
|
||||
os.api('notifications/mark-all-as-read');
|
||||
|
||||
const tab = $computed({
|
||||
get: () => 'all',
|
||||
set: (x) => {
|
||||
syncSlide(['all', 'unread', 'mentions', 'directNotes'].indexOf(x));
|
||||
},
|
||||
});
|
||||
|
||||
const MOBILE_THRESHOLD = 500;
|
||||
const isMobile = ref(
|
||||
deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD,
|
||||
|
|
|
@ -73,8 +73,8 @@ export const defaultStore = markRaw(new Storage('base', {
|
|||
'notifications',,
|
||||
'followRequests',
|
||||
'messaging',
|
||||
'favorites',
|
||||
'explore',
|
||||
'favorites',
|
||||
'channels',
|
||||
'search',
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue