From 51684649c8fe047decc1c3d49ee903e03cfb2420 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Fri, 23 Aug 2024 10:56:55 +0900 Subject: [PATCH] wip --- packages/embed/src/components/EmPoll.vue | 130 ++++++++++++++++++ .../embed/src/components/EmSubNoteContent.vue | 111 +++++++++++++++ 2 files changed, 241 insertions(+) create mode 100644 packages/embed/src/components/EmPoll.vue create mode 100644 packages/embed/src/components/EmSubNoteContent.vue diff --git a/packages/embed/src/components/EmPoll.vue b/packages/embed/src/components/EmPoll.vue new file mode 100644 index 0000000000..18ce613454 --- /dev/null +++ b/packages/embed/src/components/EmPoll.vue @@ -0,0 +1,130 @@ + + + + + + + + + + + ({{ i18n.tsx._poll.votesCount({ n: choice.votes }) }}) + + + + + {{ i18n.tsx._poll.totalVotes({ n: total }) }} + · + {{ showResult ? i18n.ts._poll.vote : i18n.ts._poll.showResult }} + {{ i18n.ts._poll.voted }} + {{ i18n.ts._poll.closed }} + · {{ timer }} + + + + + + + diff --git a/packages/embed/src/components/EmSubNoteContent.vue b/packages/embed/src/components/EmSubNoteContent.vue new file mode 100644 index 0000000000..92072668fd --- /dev/null +++ b/packages/embed/src/components/EmSubNoteContent.vue @@ -0,0 +1,111 @@ + + + + + + ({{ i18n.ts.private }}) + ({{ i18n.ts.deletedNote }}) + + + RN: ... + + + ({{ i18n.tsx.withNFiles({ n: note.files.length }) }}) + + + + {{ i18n.ts.poll }} + + + + {{ i18n.ts.showMore }} + + + {{ i18n.ts.showLess }} + + + + + + +
+ {{ i18n.tsx._poll.totalVotes({ n: total }) }} + · + {{ showResult ? i18n.ts._poll.vote : i18n.ts._poll.showResult }} + {{ i18n.ts._poll.voted }} + {{ i18n.ts._poll.closed }} + · {{ timer }} +