mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
tab swipe fix
This commit is contained in:
parent
5231ee0385
commit
2e1f0c7751
6 changed files with 18 additions and 36 deletions
|
@ -102,12 +102,9 @@ import 'swiper/scss/virtual';
|
|||
let tabs = ['overview'];
|
||||
if (iAmModerator) tabs.push('ip');
|
||||
tabs.push('raw');
|
||||
let tab = $computed({
|
||||
get: () => tabs[0],
|
||||
set: (x) => {
|
||||
syncSlide(tabs.indexOf(x));
|
||||
},
|
||||
});
|
||||
let tab = $ref(tabs[0]);
|
||||
watch($$(tab), () => (syncSlide(tabs.indexOf(tab))));
|
||||
|
||||
let file: any = $ref(null);
|
||||
let info: any = $ref(null);
|
||||
let isSensitive: boolean = $ref(false);
|
||||
|
|
|
@ -55,12 +55,9 @@ import 'swiper/scss/virtual';
|
|||
const router = useRouter();
|
||||
|
||||
const tabs = ['featured', 'following', 'owned'];
|
||||
let tab = $computed({
|
||||
get: () => tabs[0],
|
||||
set: (x) => {
|
||||
syncSlide(tabs.indexOf(x));
|
||||
},
|
||||
});
|
||||
let tab = $ref(tabs[0]);
|
||||
watch($$(tab), () => (syncSlide(tabs.indexOf(tab))));
|
||||
|
||||
|
||||
const featuredPagination = {
|
||||
endpoint: 'channels/featured' as const,
|
||||
|
|
|
@ -70,12 +70,9 @@ const props = defineProps<{
|
|||
}>();
|
||||
|
||||
const tabs = ['explore', 'liked', 'my'];
|
||||
let tab = $computed({
|
||||
get: () => tabs[0],
|
||||
set: (x) => {
|
||||
syncSlide(tabs.indexOf(x));
|
||||
},
|
||||
});
|
||||
let tab = $ref(tabs[0]);
|
||||
watch($$(tab), () => (syncSlide(tabs.indexOf(tab))));
|
||||
|
||||
let tagsRef = $ref();
|
||||
|
||||
const recentPostsPagination = {
|
||||
|
|
|
@ -164,12 +164,9 @@ const props = defineProps<{
|
|||
|
||||
let tabs = ['overview'];
|
||||
if (iAmModerator) tabs.push('chart', 'users', 'raw');
|
||||
let tab = $computed({
|
||||
get: () => tabs[0],
|
||||
set: (x) => {
|
||||
syncSlide(tabs.indexOf(x));
|
||||
},
|
||||
});
|
||||
let tab = $ref(tabs[0]);
|
||||
watch($$(tab), () => (syncSlide(tabs.indexOf(tab))));
|
||||
|
||||
let chartSrc = $ref('instance-requests');
|
||||
let meta = $ref<misskey.entities.DetailedInstanceMetadata | null>(null);
|
||||
let instance = $ref<misskey.entities.Instance | null>(null);
|
||||
|
|
|
@ -50,12 +50,9 @@ import 'swiper/scss';
|
|||
import 'swiper/scss/virtual';
|
||||
|
||||
const tabs = ['all', 'unread', 'mentions', 'directNotes'];
|
||||
let tab = $computed({
|
||||
get: () => tabs[0],
|
||||
set: (x) => {
|
||||
syncSlide(tabs.indexOf(x));
|
||||
},
|
||||
});
|
||||
let tab = $ref(tabs[0]);
|
||||
watch($$(tab), () => (syncSlide(tabs.indexOf(tab))));
|
||||
|
||||
let includeTypes = $ref<string[] | null>(null);
|
||||
let unreadOnly = $computed(() => tab === 'unread');
|
||||
os.api('notifications/mark-all-as-read');
|
||||
|
|
|
@ -75,12 +75,9 @@ if (($i && ($i.id === user?.id)) || user?.publicReactions) {
|
|||
if ((user?.instance != null)) {
|
||||
tabs.push('clips', 'pages', 'gallery');
|
||||
}
|
||||
let tab = $computed({
|
||||
get: () => tabs[0],
|
||||
set: (x) => {
|
||||
syncSlide(tabs.indexOf(x));
|
||||
},
|
||||
});
|
||||
let tab = $ref(tabs[0]);
|
||||
watch($$(tab), () => (syncSlide(tabs.indexOf(tab))));
|
||||
|
||||
let error = $ref(null);
|
||||
|
||||
function fetchUser(): void {
|
||||
|
|
Loading…
Reference in a new issue