diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-27 18:29:39 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-27 18:29:39 +0900 |
| commit | 4f15b6f7c2800f60e702b0137a1d596e89f5029c (patch) | |
| tree | 1b00374971d4a049489f3f41e8525a7722ade5cc /packages/frontend/src/pages/share.vue | |
| parent | perf?(client): remove needless scoped annotation for style (diff) | |
| download | misskey-4f15b6f7c2800f60e702b0137a1d596e89f5029c.tar.gz misskey-4f15b6f7c2800f60e702b0137a1d596e89f5029c.tar.bz2 misskey-4f15b6f7c2800f60e702b0137a1d596e89f5029c.zip | |
Revert "perf?(client): remove needless scoped annotation for style"
This reverts commit ada04c1932dd694af1775e562fdcfa2c506454de.
Diffstat (limited to 'packages/frontend/src/pages/share.vue')
| -rw-r--r-- | packages/frontend/src/pages/share.vue | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/packages/frontend/src/pages/share.vue b/packages/frontend/src/pages/share.vue index 38ae6146af..a7e797eeab 100644 --- a/packages/frontend/src/pages/share.vue +++ b/packages/frontend/src/pages/share.vue @@ -16,7 +16,7 @@ class="_panel" @posted="state = 'posted'" /> - <MkButton v-else-if="state === 'posted'" primary :class="$style.close" @click="close()">{{ i18n.ts.close }}</MkButton> + <MkButton v-else-if="state === 'posted'" primary class="close" @click="close()">{{ i18n.ts.close }}</MkButton> </MkSpacer> </MkStickyContainer> </template> @@ -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({ }); </script> -<style lang="scss" module> +<style lang="scss" scoped> .close { margin: 16px auto; } |