mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-03 23:52:45 +01:00
add columns
This commit is contained in:
parent
83228a3422
commit
5dd1fd7c5f
5 changed files with 24 additions and 3 deletions
|
@ -88,6 +88,7 @@ export class EmojiEntityService {
|
||||||
aliases: emoji.aliases,
|
aliases: emoji.aliases,
|
||||||
category: emoji.category,
|
category: emoji.category,
|
||||||
publicUrl: emoji.publicUrl,
|
publicUrl: emoji.publicUrl,
|
||||||
|
originalUrl: emoji.originalUrl,
|
||||||
license: emoji.license,
|
license: emoji.license,
|
||||||
localOnly: emoji.localOnly,
|
localOnly: emoji.localOnly,
|
||||||
isSensitive: emoji.isSensitive,
|
isSensitive: emoji.isSensitive,
|
||||||
|
|
|
@ -131,6 +131,10 @@ export const packedEmojiDetailedAdminSchema = {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
originalUrl: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
uri: {
|
uri: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: false, nullable: true,
|
optional: false, nullable: true,
|
||||||
|
|
|
@ -45,6 +45,7 @@ export const paramDef = {
|
||||||
host: { type: 'string' },
|
host: { type: 'string' },
|
||||||
uri: { type: 'string' },
|
uri: { type: 'string' },
|
||||||
publicUrl: { type: 'string' },
|
publicUrl: { type: 'string' },
|
||||||
|
originalUrl: { type: 'string' },
|
||||||
type: { type: 'string' },
|
type: { type: 'string' },
|
||||||
aliases: { type: 'string' },
|
aliases: { type: 'string' },
|
||||||
category: { type: 'string' },
|
category: { type: 'string' },
|
||||||
|
|
|
@ -57,6 +57,9 @@
|
||||||
<template #label>updatedAt(to)</template>
|
<template #label>updatedAt(to)</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div role="separator" :class="$style.divider"></div>
|
||||||
|
|
||||||
<div :class="[[spMode ? $style.searchButtonsSp : $style.searchButtons]]">
|
<div :class="[[spMode ? $style.searchButtonsSp : $style.searchButtons]]">
|
||||||
<MkButton primary @click="onSearchButtonClicked">
|
<MkButton primary @click="onSearchButtonClicked">
|
||||||
{{ i18n.ts.search }}
|
{{ i18n.ts.search }}
|
||||||
|
@ -146,6 +149,8 @@ type GridItem = {
|
||||||
roleIdsThatCanBeUsedThisEmojiAsReaction: string;
|
roleIdsThatCanBeUsedThisEmojiAsReaction: string;
|
||||||
fileId?: string;
|
fileId?: string;
|
||||||
updatedAt: string | null;
|
updatedAt: string | null;
|
||||||
|
publicUrl?: string | null;
|
||||||
|
originalUrl?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupGrid(): GridSetting {
|
function setupGrid(): GridSetting {
|
||||||
|
@ -177,7 +182,9 @@ function setupGrid(): GridSetting {
|
||||||
{ bindTo: 'isSensitive', title: 'sensitive', type: 'boolean', editable: true, width: 90 },
|
{ bindTo: 'isSensitive', title: 'sensitive', type: 'boolean', editable: true, width: 90 },
|
||||||
{ bindTo: 'localOnly', title: 'localOnly', type: 'boolean', editable: true, width: 90 },
|
{ bindTo: 'localOnly', title: 'localOnly', type: 'boolean', editable: true, width: 90 },
|
||||||
{ bindTo: 'roleIdsThatCanBeUsedThisEmojiAsReaction', title: 'role', type: 'text', editable: true, width: 140 },
|
{ bindTo: 'roleIdsThatCanBeUsedThisEmojiAsReaction', title: 'role', type: 'text', editable: true, width: 140 },
|
||||||
{ bindTo: 'updatedAt', type: 'hidden', editable: false, width: 'auto' },
|
{ bindTo: 'updatedAt', type: 'text', editable: false, width: 'auto' },
|
||||||
|
{ bindTo: 'publicUrl', type: 'text', editable: false, width: 180 },
|
||||||
|
{ bindTo: 'originalUrl', type: 'text', editable: false, width: 180 },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -518,6 +525,8 @@ function refreshGridItems() {
|
||||||
localOnly: it.localOnly,
|
localOnly: it.localOnly,
|
||||||
roleIdsThatCanBeUsedThisEmojiAsReaction: it.roleIdsThatCanBeUsedThisEmojiAsReaction.join(','),
|
roleIdsThatCanBeUsedThisEmojiAsReaction: it.roleIdsThatCanBeUsedThisEmojiAsReaction.join(','),
|
||||||
updatedAt: it.updatedAt,
|
updatedAt: it.updatedAt,
|
||||||
|
publicUrl: it.publicUrl,
|
||||||
|
originalUrl: it.originalUrl,
|
||||||
}));
|
}));
|
||||||
originGridItems.value = JSON.parse(JSON.stringify(gridItems.value));
|
originGridItems.value = JSON.parse(JSON.stringify(gridItems.value));
|
||||||
}
|
}
|
||||||
|
@ -614,4 +623,8 @@ onMounted(async () => {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.divider {
|
||||||
|
margin: 8px 0;
|
||||||
|
border-top: solid 0.5px var(--divider);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -4454,6 +4454,7 @@ export type components = {
|
||||||
/** @description The local host is represented with `null`. */
|
/** @description The local host is represented with `null`. */
|
||||||
host: string | null;
|
host: string | null;
|
||||||
publicUrl: string;
|
publicUrl: string;
|
||||||
|
originalUrl: string;
|
||||||
uri: string | null;
|
uri: string | null;
|
||||||
type: string | null;
|
type: string | null;
|
||||||
aliases: string[];
|
aliases: string[];
|
||||||
|
@ -6950,6 +6951,7 @@ export type operations = {
|
||||||
host?: string;
|
host?: string;
|
||||||
uri?: string;
|
uri?: string;
|
||||||
publicUrl?: string;
|
publicUrl?: string;
|
||||||
|
originalUrl?: string;
|
||||||
type?: string;
|
type?: string;
|
||||||
aliases?: string;
|
aliases?: string;
|
||||||
category?: string;
|
category?: string;
|
||||||
|
|
Loading…
Reference in a new issue