mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-01 04:56:19 +01:00
add type column
This commit is contained in:
parent
9289d013b6
commit
92c88a23ad
2 changed files with 6 additions and 0 deletions
|
@ -195,6 +195,7 @@ type GridItem = {
|
||||||
updatedAt: string | null;
|
updatedAt: string | null;
|
||||||
publicUrl?: string | null;
|
publicUrl?: string | null;
|
||||||
originalUrl?: string | null;
|
originalUrl?: string | null;
|
||||||
|
type: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupGrid(): GridSetting {
|
function setupGrid(): GridSetting {
|
||||||
|
@ -304,6 +305,7 @@ function setupGrid(): GridSetting {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{ bindTo: 'type', type: 'text', editable: false, width: 90 },
|
||||||
{ bindTo: 'updatedAt', type: 'text', editable: false, width: 'auto' },
|
{ bindTo: 'updatedAt', type: 'text', editable: false, width: 'auto' },
|
||||||
{ bindTo: 'publicUrl', type: 'text', editable: false, width: 180 },
|
{ bindTo: 'publicUrl', type: 'text', editable: false, width: 180 },
|
||||||
{ bindTo: 'originalUrl', type: 'text', editable: false, width: 180 },
|
{ bindTo: 'originalUrl', type: 'text', editable: false, width: 180 },
|
||||||
|
@ -597,6 +599,7 @@ function refreshGridItems() {
|
||||||
updatedAt: it.updatedAt,
|
updatedAt: it.updatedAt,
|
||||||
publicUrl: it.publicUrl,
|
publicUrl: it.publicUrl,
|
||||||
originalUrl: it.originalUrl,
|
originalUrl: it.originalUrl,
|
||||||
|
type: it.type,
|
||||||
}));
|
}));
|
||||||
originGridItems.value = JSON.parse(JSON.stringify(gridItems.value));
|
originGridItems.value = JSON.parse(JSON.stringify(gridItems.value));
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,6 +114,7 @@ type GridItem = {
|
||||||
isSensitive: boolean;
|
isSensitive: boolean;
|
||||||
localOnly: boolean;
|
localOnly: boolean;
|
||||||
roleIdsThatCanBeUsedThisEmojiAsReaction: { id: string, name: string }[];
|
roleIdsThatCanBeUsedThisEmojiAsReaction: { id: string, name: string }[];
|
||||||
|
type: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupGrid(): GridSetting {
|
function setupGrid(): GridSetting {
|
||||||
|
@ -206,6 +207,7 @@ function setupGrid(): GridSetting {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{ bindTo: 'type', type: 'text', editable: false, width: 90 },
|
||||||
],
|
],
|
||||||
cells: {
|
cells: {
|
||||||
// セルのコンテキストメニュー設定
|
// セルのコンテキストメニュー設定
|
||||||
|
@ -411,6 +413,7 @@ function fromDriveFile(it: Misskey.entities.DriveFile): GridItem {
|
||||||
isSensitive: it.isSensitive,
|
isSensitive: it.isSensitive,
|
||||||
localOnly: false,
|
localOnly: false,
|
||||||
roleIdsThatCanBeUsedThisEmojiAsReaction: [],
|
roleIdsThatCanBeUsedThisEmojiAsReaction: [],
|
||||||
|
type: it.type,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue