fix sync
This commit is contained in:
parent
17dc06e47a
commit
78bd658a4f
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.118.1-calc.2-beta.2-rc.13",
|
"version": "12.118.1-calc.2-beta.2-rc.14",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -14,15 +14,11 @@
|
|||||||
<div v-if="!narrow && metadata.subtitle" class="subtitle">
|
<div v-if="!narrow && metadata.subtitle" class="subtitle">
|
||||||
{{ metadata.subtitle }}
|
{{ metadata.subtitle }}
|
||||||
</div>
|
</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>
|
</div>
|
||||||
<div class="tabs">
|
<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)">
|
<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>
|
<span v-if="!tab.iconOnly && !narrow" class="title">{{ tab.title }}</span>
|
||||||
</button>
|
</button>
|
||||||
<div ref="tabHighlightEl" class="highlight"></div>
|
<div ref="tabHighlightEl" class="highlight"></div>
|
||||||
|
@ -45,11 +45,17 @@ import { definePageMetadata } from '@/scripts/page-metadata';
|
|||||||
import { deviceKind } from '@/scripts/device-kind';
|
import { deviceKind } from '@/scripts/device-kind';
|
||||||
import 'swiper/scss';
|
import 'swiper/scss';
|
||||||
import 'swiper/scss/virtual';
|
import 'swiper/scss/virtual';
|
||||||
let tab = $ref('all');
|
|
||||||
let includeTypes = $ref<string[] | null>(null);
|
let includeTypes = $ref<string[] | null>(null);
|
||||||
let unreadOnly = $computed(() => tab === 'unread');
|
let unreadOnly = $computed(() => tab === 'unread');
|
||||||
os.api('notifications/mark-all-as-read');
|
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 MOBILE_THRESHOLD = 500;
|
||||||
const isMobile = ref(
|
const isMobile = ref(
|
||||||
deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD,
|
deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD,
|
||||||
|
@ -73,8 +73,8 @@ export const defaultStore = markRaw(new Storage('base', {
|
|||||||
'notifications',,
|
'notifications',,
|
||||||
'followRequests',
|
'followRequests',
|
||||||
'messaging',
|
'messaging',
|
||||||
'favorites',
|
|
||||||
'explore',
|
'explore',
|
||||||
|
'favorites',
|
||||||
'channels',
|
'channels',
|
||||||
'search',
|
'search',
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user