絵文字のライセンスを表示できるように

This commit is contained in:
syuilo
2023-03-17 20:24:47 +09:00
parent 2be93b1fe6
commit ed51209172
5 changed files with 74 additions and 18 deletions

View File

@@ -34,6 +34,17 @@ function menu(ev) {
copyToClipboard(`:${props.emoji.name}:`);
os.success();
},
}, {
text: i18n.ts.info,
icon: 'ti ti-info-circle',
action: () => {
os.apiGet('emoji', { name: props.emoji.name }).then(res => {
os.alert({
type: 'info',
text: `License: ${res.license}`,
});
});
},
}], ev.currentTarget ?? ev.target);
}
</script>