mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
🎨
This commit is contained in:
parent
fbd9f47182
commit
32844e4775
9 changed files with 9 additions and 9 deletions
|
@ -135,7 +135,7 @@ function forward() {
|
||||||
|
|
||||||
function showMenu(ev: MouseEvent) {
|
function showMenu(ev: MouseEvent) {
|
||||||
os.popupMenu([{
|
os.popupMenu([{
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-hash',
|
||||||
text: 'Copy ID',
|
text: 'Copy ID',
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(props.report.id);
|
copyToClipboard(props.report.id);
|
||||||
|
|
|
@ -297,7 +297,7 @@ function onContextmenu(ev: MouseEvent) {
|
||||||
}];
|
}];
|
||||||
if (prefer.s.devMode) {
|
if (prefer.s.devMode) {
|
||||||
menu = menu.concat([{ type: 'divider' }, {
|
menu = menu.concat([{ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-hash',
|
||||||
text: i18n.ts.copyFolderId,
|
text: i18n.ts.copyFolderId,
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(props.folder.id);
|
copyToClipboard(props.folder.id);
|
||||||
|
|
|
@ -242,7 +242,7 @@ function showMenu(ev: MouseEvent) {
|
||||||
|
|
||||||
if (prefer.s.devMode) {
|
if (prefer.s.devMode) {
|
||||||
menu.push({ type: 'divider' }, {
|
menu.push({ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-hash',
|
||||||
text: i18n.ts.copyFileId,
|
text: i18n.ts.copyFileId,
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(props.audio.id);
|
copyToClipboard(props.audio.id);
|
||||||
|
|
|
@ -168,7 +168,7 @@ function showMenu(ev: MouseEvent) {
|
||||||
|
|
||||||
if (prefer.s.devMode) {
|
if (prefer.s.devMode) {
|
||||||
menuItems.push({ type: 'divider' }, {
|
menuItems.push({ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-hash',
|
||||||
text: i18n.ts.copyFileId,
|
text: i18n.ts.copyFileId,
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(props.image.id);
|
copyToClipboard(props.image.id);
|
||||||
|
|
|
@ -267,7 +267,7 @@ function showMenu(ev: MouseEvent) {
|
||||||
|
|
||||||
if (prefer.s.devMode) {
|
if (prefer.s.devMode) {
|
||||||
menu.push({ type: 'divider' }, {
|
menu.push({ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-hash',
|
||||||
text: i18n.ts.copyFileId,
|
text: i18n.ts.copyFileId,
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(props.video.id);
|
copyToClipboard(props.video.id);
|
||||||
|
|
|
@ -201,7 +201,7 @@ function showFileMenu(file: Misskey.entities.DriveFile, ev: MouseEvent | Keyboar
|
||||||
|
|
||||||
if (prefer.s.devMode) {
|
if (prefer.s.devMode) {
|
||||||
menuItems.push({ type: 'divider' }, {
|
menuItems.push({ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-hash',
|
||||||
text: i18n.ts.copyFileId,
|
text: i18n.ts.copyFileId,
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(file.id);
|
copyToClipboard(file.id);
|
||||||
|
|
|
@ -150,7 +150,7 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile, folder?: Miss
|
||||||
|
|
||||||
if (prefer.s.devMode) {
|
if (prefer.s.devMode) {
|
||||||
menuItems.push({ type: 'divider' }, {
|
menuItems.push({ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-hash',
|
||||||
text: i18n.ts.copyFileId,
|
text: i18n.ts.copyFileId,
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(file.id);
|
copyToClipboard(file.id);
|
||||||
|
|
|
@ -512,7 +512,7 @@ export function getNoteMenu(props: {
|
||||||
|
|
||||||
if (prefer.s.devMode) {
|
if (prefer.s.devMode) {
|
||||||
menuItems.push({ type: 'divider' }, {
|
menuItems.push({ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-hash',
|
||||||
text: i18n.ts.copyNoteId,
|
text: i18n.ts.copyNoteId,
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(appearNote.id);
|
copyToClipboard(appearNote.id);
|
||||||
|
|
|
@ -401,7 +401,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
|
||||||
|
|
||||||
if (prefer.s.devMode) {
|
if (prefer.s.devMode) {
|
||||||
menuItems.push({ type: 'divider' }, {
|
menuItems.push({ type: 'divider' }, {
|
||||||
icon: 'ti ti-id',
|
icon: 'ti ti-hash',
|
||||||
text: i18n.ts.copyUserId,
|
text: i18n.ts.copyUserId,
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(user.id);
|
copyToClipboard(user.id);
|
||||||
|
|
Loading…
Add table
Reference in a new issue