0
0
This commit is contained in:
syuilo 2022-01-13 02:26:10 +09:00
parent f96d50bc07
commit 861d028d09
35 changed files with 50 additions and 50 deletions

View File

@ -95,7 +95,7 @@ export default defineComponent({
reporterOrigin: 'combined',
targetUserOrigin: 'combined',
pagination: {
endpoint: 'admin/abuse-user-reports',
endpoint: 'admin/abuse-user-reports' as const,
limit: 10,
params: computed(() => ({
state: this.state,

View File

@ -85,7 +85,7 @@ const selectMode = ref(false);
const selectedEmojis = ref<string[]>([]);
const pagination = {
endpoint: 'admin/emoji/list',
endpoint: 'admin/emoji/list' as const,
limit: 30,
params: computed(() => ({
query: (query.value && query.value !== '') ? query.value : null,
@ -93,7 +93,7 @@ const pagination = {
};
const remotePagination = {
endpoint: 'admin/emoji/list-remote',
endpoint: 'admin/emoji/list-remote' as const,
limit: 30,
params: computed(() => ({
query: (queryRemote.value && queryRemote.value !== '') ? queryRemote.value : null,

View File

@ -95,7 +95,7 @@ export default defineComponent({
type: null,
searchHost: '',
pagination: {
endpoint: 'admin/drive/files',
endpoint: 'admin/drive/files' as const,
limit: 10,
params: computed(() => ({
type: (this.type && this.type !== '') ? this.type : null,

View File

@ -110,7 +110,7 @@ export default defineComponent({
searchUsername: '',
searchHost: '',
pagination: {
endpoint: 'admin/show-users',
endpoint: 'admin/show-users' as const,
limit: 10,
params: computed(() => ({
sort: this.sort,

View File

@ -36,7 +36,7 @@ export default defineComponent({
bg: 'var(--bg)',
},
pagination: {
endpoint: 'announcements',
endpoint: 'announcements' as const,
limit: 10,
},
};

View File

@ -67,7 +67,7 @@ export default defineComponent({
channel: null,
showBanner: true,
pagination: {
endpoint: 'channels/timeline',
endpoint: 'channels/timeline' as const,
limit: 10,
params: computed(() => ({
channelId: this.channelId,

View File

@ -60,15 +60,15 @@ export default defineComponent({
})),
tab: 'featured',
featuredPagination: {
endpoint: 'channels/featured',
endpoint: 'channels/featured' as const,
noPaging: true,
},
followingPagination: {
endpoint: 'channels/followed',
endpoint: 'channels/followed' as const,
limit: 5,
},
ownedPagination: {
endpoint: 'channels/owned',
endpoint: 'channels/owned' as const,
limit: 5,
},
};

View File

@ -50,7 +50,7 @@ export default defineComponent({
} : null),
clip: null,
pagination: {
endpoint: 'clips/notes',
endpoint: 'clips/notes' as const,
limit: 10,
params: computed(() => ({
clipId: this.clipId,

View File

@ -156,7 +156,7 @@ export default defineComponent({
sort: '+createdAt',
} },
searchPagination: {
endpoint: 'users/search',
endpoint: 'users/search' as const,
limit: 10,
params: computed(() => (this.searchQuery && this.searchQuery !== '') ? {
query: this.searchQuery,
@ -178,7 +178,7 @@ export default defineComponent({
},
tagUsers(): any {
return {
endpoint: 'hashtags/users',
endpoint: 'hashtags/users' as const,
limit: 30,
params: {
tag: this.tag,

View File

@ -10,7 +10,7 @@ import * as symbols from '@/symbols';
import { i18n } from '@/i18n';
const pagination = {
endpoint: 'notes/featured',
endpoint: 'notes/featured' as const,
limit: 10,
offsetMode: true,
};

View File

@ -127,7 +127,7 @@ export default defineComponent({
state: 'federating',
sort: '+pubSub',
pagination: {
endpoint: 'federation/instances',
endpoint: 'federation/instances' as const,
limit: 10,
offsetMode: true,
params: computed(() => ({

View File

@ -42,7 +42,7 @@ import { i18n } from '@/i18n';
const paginationComponent = ref<InstanceType<typeof MkPagination>>();
const pagination = {
endpoint: 'following/requests/list',
endpoint: 'following/requests/list' as const,
limit: 10,
};

View File

@ -81,19 +81,19 @@ export default defineComponent({
},
tab: 'explore',
recentPostsPagination: {
endpoint: 'gallery/posts',
endpoint: 'gallery/posts' as const,
limit: 6,
},
popularPostsPagination: {
endpoint: 'gallery/featured',
endpoint: 'gallery/featured' as const,
limit: 5,
},
myPostsPagination: {
endpoint: 'i/gallery/posts',
endpoint: 'i/gallery/posts' as const,
limit: 5,
},
likedPostsPagination: {
endpoint: 'i/gallery/likes',
endpoint: 'i/gallery/likes' as const,
limit: 5,
},
tags: [],
@ -106,7 +106,7 @@ export default defineComponent({
},
tagUsers(): any {
return {
endpoint: 'hashtags/users',
endpoint: 'hashtags/users' as const,
limit: 30,
params: {
tag: this.tag,

View File

@ -93,7 +93,7 @@ export default defineComponent({
}]
} : null),
otherPostsPagination: {
endpoint: 'users/gallery/posts',
endpoint: 'users/gallery/posts' as const,
limit: 6,
params: computed(() => ({
userId: this.post.user.id

View File

@ -10,7 +10,7 @@ import * as symbols from '@/symbols';
import { i18n } from '@/i18n';
const pagination = {
endpoint: 'notes/mentions',
endpoint: 'notes/mentions' as const,
limit: 10,
};

View File

@ -10,7 +10,7 @@ import * as symbols from '@/symbols';
import { i18n } from '@/i18n';
const pagination = {
endpoint: 'notes/mentions',
endpoint: 'notes/mentions' as const,
limit: 10,
params: () => ({
visibility: 'specified'

View File

@ -38,7 +38,7 @@ export default defineComponent({
}
},
pagination: {
endpoint: 'antennas/list',
endpoint: 'antennas/list' as const,
limit: 10,
},
};

View File

@ -38,7 +38,7 @@ export default defineComponent({
}
},
pagination: {
endpoint: 'clips/list',
endpoint: 'clips/list' as const,
limit: 10,
},
draft: null,

View File

@ -87,15 +87,15 @@ export default defineComponent({
})),
tab: 'owned',
ownedPagination: {
endpoint: 'users/groups/owned',
endpoint: 'users/groups/owned' as const,
limit: 10,
},
joinedPagination: {
endpoint: 'users/groups/joined',
endpoint: 'users/groups/joined' as const,
limit: 10,
},
invitationPagination: {
endpoint: 'i/user-group-invites',
endpoint: 'i/user-group-invites' as const,
limit: 10,
},
};

View File

@ -40,7 +40,7 @@ export default defineComponent({
},
},
pagination: {
endpoint: 'users/lists/list',
endpoint: 'users/lists/list' as const,
limit: 10,
},
};

View File

@ -82,7 +82,7 @@ export default defineComponent({
showNext: false,
error: null,
prev: {
endpoint: 'users/notes',
endpoint: 'users/notes' as const,
limit: 10,
params: init => ({
userId: this.note.userId,
@ -91,7 +91,7 @@ export default defineComponent({
},
next: {
reversed: true,
endpoint: 'users/notes',
endpoint: 'users/notes' as const,
limit: 10,
params: init => ({
userId: this.note.userId,

View File

@ -106,7 +106,7 @@ export default defineComponent({
page: null,
error: null,
otherPostsPagination: {
endpoint: 'users/pages',
endpoint: 'users/pages' as const,
limit: 6,
params: computed(() => ({
userId: this.page.user.id

View File

@ -62,15 +62,15 @@ export default defineComponent({
})),
tab: 'featured',
featuredPagesPagination: {
endpoint: 'pages/featured',
endpoint: 'pages/featured' as const,
noPaging: true,
},
myPagesPagination: {
endpoint: 'i/pages',
endpoint: 'i/pages' as const,
limit: 5,
},
likedPagesPagination: {
endpoint: 'i/page-likes',
endpoint: 'i/page-likes' as const,
limit: 5,
},
};

View File

@ -18,7 +18,7 @@ const props = defineProps<{
}>();
const pagination = {
endpoint: 'notes/search',
endpoint: 'notes/search' as const,
limit: 10,
params: computed(() => ({
query: props.query,

View File

@ -58,7 +58,7 @@ export default defineComponent({
bg: 'var(--bg)',
},
pagination: {
endpoint: 'i/apps',
endpoint: 'i/apps' as const,
limit: 100,
params: {
sort: '+lastUsedAt'

View File

@ -56,11 +56,11 @@ export default defineComponent({
},
tab: 'mute',
mutingPagination: {
endpoint: 'mute/list',
endpoint: 'mute/list' as const,
limit: 10,
},
blockingPagination: {
endpoint: 'blocking/list',
endpoint: 'blocking/list' as const,
limit: 10,
},
}

View File

@ -66,7 +66,7 @@ export default defineComponent({
bg: 'var(--bg)',
},
pagination: {
endpoint: 'i/signin-history',
endpoint: 'i/signin-history' as const,
limit: 5,
},
}

View File

@ -14,7 +14,7 @@ const props = defineProps<{
}>();
const pagination = {
endpoint: 'notes/search-by-tag',
endpoint: 'notes/search-by-tag' as const,
limit: 10,
params: computed(() => ({
tag: props.tag,

View File

@ -28,7 +28,7 @@ export default defineComponent({
data() {
return {
pagination: {
endpoint: 'users/clips',
endpoint: 'users/clips' as const,
limit: 20,
params: {
userId: this.user.id,

View File

@ -33,14 +33,14 @@ export default defineComponent({
data() {
return {
followingPagination: {
endpoint: 'users/following',
endpoint: 'users/following' as const,
limit: 20,
params: computed(() => ({
userId: this.user.id,
})),
},
followersPagination: {
endpoint: 'users/followers',
endpoint: 'users/followers' as const,
limit: 20,
params: computed(() => ({
userId: this.user.id,

View File

@ -29,7 +29,7 @@ export default defineComponent({
data() {
return {
pagination: {
endpoint: 'users/gallery/posts',
endpoint: 'users/gallery/posts' as const,
limit: 6,
params: computed(() => ({
userId: this.user.id

View File

@ -27,7 +27,7 @@ export default defineComponent({
data() {
return {
pagination: {
endpoint: 'users/pages',
endpoint: 'users/pages' as const,
limit: 20,
params: computed(() => ({
userId: this.user.id,

View File

@ -36,7 +36,7 @@ export default defineComponent({
data() {
return {
pagination: {
endpoint: 'users/reactions',
endpoint: 'users/reactions' as const,
limit: 20,
params: computed(() => ({
userId: this.user.id,

View File

@ -32,7 +32,7 @@ export default defineComponent({
data() {
return {
pagination: {
endpoint: 'notes/mentions',
endpoint: 'notes/mentions' as const,
limit: 10,
params: computed(() => ({
visibility: 'specified'

View File

@ -32,7 +32,7 @@ export default defineComponent({
data() {
return {
pagination: {
endpoint: 'notes/mentions',
endpoint: 'notes/mentions' as const,
limit: 10,
},
}