feat(client): 投稿フォームのボタンの説明を表示するように (#6408)
* Add title attr with buttons on the post form * fix * tooltip * missing ; * remove title attr * fix bug * Update reactions-viewer.details.vue * help wip * ok! * i18n Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
parent
f2964101d1
commit
111eb43fd9
13 changed files with 207 additions and 105 deletions
|
|
@ -5,7 +5,7 @@ import { clientDb, get, bulkGet } from '../db';
|
|||
const getTranslation = (text: string): Promise<string> => get(text, clientDb.i18n);
|
||||
|
||||
export default async function(type, data): Promise<[string, NotificationOptions]> {
|
||||
const contexts = ['deletedNote', 'invisibleNote', 'withNFiles', '_cw.poll'];
|
||||
const contexts = ['deletedNote', 'invisibleNote', 'withNFiles', 'poll'];
|
||||
const locale = Object.fromEntries(await bulkGet(contexts, clientDb.i18n) as [string, string][]);
|
||||
|
||||
switch (type) {
|
||||
|
|
|
|||
|
|
@ -1,3 +1 @@
|
|||
export function isDeviceTouch(): boolean {
|
||||
return 'maxTouchPoints' in navigator && navigator.maxTouchPoints > 0;
|
||||
}
|
||||
export const isDeviceTouch = 'maxTouchPoints' in navigator && navigator.maxTouchPoints > 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue