From c55bb68f8a770dcc7af810b91bd59b1f1d3de746 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Sat, 6 Mar 2021 09:37:01 +0100 Subject: [PATCH] rearranging components Signed-off-by: dartcafe --- lib/Db/Poll.php | 2 +- .../{Base => Options}/Confirmation.vue | 0 .../components/{Base => Options}/Counter.vue | 0 src/js/components/Poll/MarkUpDescription.vue | 75 +++++++++++++ .../{Base => Poll}/ParticipantsList.vue | 0 .../{Base => Poll}/PollInformation.vue | 0 .../components/{Base => Poll}/PublicEmail.vue | 0 .../{Base => Poll}/PublicRegisterModal.vue | 0 src/js/components/SideBar/SideBarTabShare.vue | 2 +- src/js/components/{Base => User}/UserItem.vue | 0 src/js/components/{Base => User}/UserMenu.vue | 0 .../components/{Base => User}/UserSearch.vue | 0 src/js/components/VoteTable/VoteTable.vue | 6 +- src/js/main.js | 2 +- src/js/mixins/watchPolls.js | 103 +++++++++--------- src/js/views/Vote.vue | 18 +-- 16 files changed, 136 insertions(+), 72 deletions(-) rename src/js/components/{Base => Options}/Confirmation.vue (100%) rename src/js/components/{Base => Options}/Counter.vue (100%) create mode 100644 src/js/components/Poll/MarkUpDescription.vue rename src/js/components/{Base => Poll}/ParticipantsList.vue (100%) rename src/js/components/{Base => Poll}/PollInformation.vue (100%) rename src/js/components/{Base => Poll}/PublicEmail.vue (100%) rename src/js/components/{Base => Poll}/PublicRegisterModal.vue (100%) rename src/js/components/{Base => User}/UserItem.vue (100%) rename src/js/components/{Base => User}/UserMenu.vue (100%) rename src/js/components/{Base => User}/UserSearch.vue (100%) diff --git a/lib/Db/Poll.php b/lib/Db/Poll.php index cf516aacd..c4707ee69 100644 --- a/lib/Db/Poll.php +++ b/lib/Db/Poll.php @@ -197,7 +197,7 @@ class Poll extends Entity implements JsonSerializable { } public function getDescriptionSafe() { - return filter_var($this->description,FILTER_SANITIZE_SPECIAL_CHARS); + return htmlspecialchars($this->description); } private function getDisplayName(): string { diff --git a/src/js/components/Base/Confirmation.vue b/src/js/components/Options/Confirmation.vue similarity index 100% rename from src/js/components/Base/Confirmation.vue rename to src/js/components/Options/Confirmation.vue diff --git a/src/js/components/Base/Counter.vue b/src/js/components/Options/Counter.vue similarity index 100% rename from src/js/components/Base/Counter.vue rename to src/js/components/Options/Counter.vue diff --git a/src/js/components/Poll/MarkUpDescription.vue b/src/js/components/Poll/MarkUpDescription.vue new file mode 100644 index 000000000..37ab1c4f6 --- /dev/null +++ b/src/js/components/Poll/MarkUpDescription.vue @@ -0,0 +1,75 @@ + + + + + + + diff --git a/src/js/components/Base/ParticipantsList.vue b/src/js/components/Poll/ParticipantsList.vue similarity index 100% rename from src/js/components/Base/ParticipantsList.vue rename to src/js/components/Poll/ParticipantsList.vue diff --git a/src/js/components/Base/PollInformation.vue b/src/js/components/Poll/PollInformation.vue similarity index 100% rename from src/js/components/Base/PollInformation.vue rename to src/js/components/Poll/PollInformation.vue diff --git a/src/js/components/Base/PublicEmail.vue b/src/js/components/Poll/PublicEmail.vue similarity index 100% rename from src/js/components/Base/PublicEmail.vue rename to src/js/components/Poll/PublicEmail.vue diff --git a/src/js/components/Base/PublicRegisterModal.vue b/src/js/components/Poll/PublicRegisterModal.vue similarity index 100% rename from src/js/components/Base/PublicRegisterModal.vue rename to src/js/components/Poll/PublicRegisterModal.vue diff --git a/src/js/components/SideBar/SideBarTabShare.vue b/src/js/components/SideBar/SideBarTabShare.vue index 0e9b60c26..7e6dec827 100644 --- a/src/js/components/SideBar/SideBarTabShare.vue +++ b/src/js/components/SideBar/SideBarTabShare.vue @@ -35,7 +35,7 @@