From ada04c1932dd694af1775e562fdcfa2c506454de Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 27 Dec 2022 18:01:06 +0900 Subject: perf?(client): remove needless scoped annotation for style --- packages/frontend/src/pages/share.vue | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'packages/frontend/src/pages/share.vue') diff --git a/packages/frontend/src/pages/share.vue b/packages/frontend/src/pages/share.vue index a7e797eeab..38ae6146af 100644 --- a/packages/frontend/src/pages/share.vue +++ b/packages/frontend/src/pages/share.vue @@ -16,7 +16,7 @@ class="_panel" @posted="state = 'posted'" /> - {{ i18n.ts.close }} + {{ i18n.ts.close }} @@ -69,14 +69,14 @@ async function init() { ...(visibleAccts ? visibleAccts.split(',').map(Acct.parse) : []), ] // TypeScriptの指示通りに変換する - .map(q => 'username' in q ? { username: q.username, host: q.host === null ? undefined : q.host } : q) - .map(q => os.api('users/show', q) - .then(user => { - visibleUsers.push(user); - }, () => { - console.error(`Invalid user query: ${JSON.stringify(q)}`); - }), - ), + .map(q => 'username' in q ? { username: q.username, host: q.host === null ? undefined : q.host } : q) + .map(q => os.api('users/show', q) + .then(user => { + visibleUsers.push(user); + }, () => { + console.error(`Invalid user query: ${JSON.stringify(q)}`); + }), + ), ); } @@ -120,13 +120,13 @@ async function init() { if (fileIds) { await Promise.all( fileIds.split(',') - .map(fileId => os.api('drive/files/show', { fileId }) - .then(file => { - files.push(file); - }, () => { - console.error(`Failed to fetch a file ${fileId}`); - }), - ), + .map(fileId => os.api('drive/files/show', { fileId }) + .then(file => { + files.push(file); + }, () => { + console.error(`Failed to fetch a file ${fileId}`); + }), + ), ); } //#endregion @@ -162,7 +162,7 @@ definePageMetadata({ }); -