diff options
author | dartcafe <github@dartcafe.de> | 2019-12-30 13:01:02 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2019-12-30 13:01:02 +0300 |
commit | 067cb80b8a0effa3c3cb0e8c6ce521f6515a1dd5 (patch) | |
tree | 5ee6ac8a3a899bba1568f3c68058b6a51b55aa6c /src/js/components/Create | |
parent | 463922b9fb0b2bac45483ddc9b0fd92001eb9b26 (diff) |
Tidy PollItems
Diffstat (limited to 'src/js/components/Create')
-rw-r--r-- | src/js/components/Create/CreateDateItem.vue | 71 | ||||
-rw-r--r-- | src/js/components/Create/TextPollItem.vue | 44 |
2 files changed, 0 insertions, 115 deletions
diff --git a/src/js/components/Create/CreateDateItem.vue b/src/js/components/Create/CreateDateItem.vue deleted file mode 100644 index 19c7b012..00000000 --- a/src/js/components/Create/CreateDateItem.vue +++ /dev/null @@ -1,71 +0,0 @@ -<!-- - - @copyright Copyright (c) 2018 René Gieling <github@dartcafe.de> - - - - @author René Gieling <github@dartcafe.de> - - - - @license GNU AGPL version 3 or any later version - - - - This program is free software: you can redistribute it and/or modify - - it under the terms of the GNU Affero General Public License as - - published by the Free Software Foundation, either version 3 of the - - License, or (at your option) any later version. - - - - This program is distributed in the hope that it will be useful, - - but WITHOUT ANY WARRANTY; without even the implied warranty of - - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - - GNU Affero General Public License for more details. - - - - You should have received a copy of the GNU Affero General Public License - - along with this program. If not, see <http://www.gnu.org/licenses/>. - - - --> - -<template> - <li> - <div>{{ option.timestamp | localFullDate }}</div> - <div> - <a class="icon-delete" @click="$emit('remove')" /> - </div> - </li> -</template> - -<script> - -export default { - name: 'DatePollItem', - - filters: { - localFullDate(timestamp) { - if (!timestamp) return '' - if (timestamp < 999999999999) timestamp = timestamp * 1000 - if (!moment(timestamp).isValid()) return 'Invalid Date' - return moment(timestamp).format('llll') - } - }, - - props: { - option: { - type: Object, - default: undefined - } - } - -} -</script> - -<style lang="scss" scoped> - li > div { - display: flex; - flex-grow: 1; - font-size: 1.2em; - opacity: 0.7; - white-space: normal; - padding-right: 4px; - } - - li > div:nth-last-child(1) { - justify-content: center; - flex-grow: 0; - flex-shrink: 0; - } -</style> diff --git a/src/js/components/Create/TextPollItem.vue b/src/js/components/Create/TextPollItem.vue deleted file mode 100644 index aefd8d09..00000000 --- a/src/js/components/Create/TextPollItem.vue +++ /dev/null @@ -1,44 +0,0 @@ -<!-- - - @copyright Copyright (c) 2018 René Gieling <github@dartcafe.de> - - - - @author René Gieling <github@dartcafe.de> - - - - @license GNU AGPL version 3 or any later version - - - - This program is free software: you can redistribute it and/or modify - - it under the terms of the GNU Affero General Public License as - - published by the Free Software Foundation, either version 3 of the - - License, or (at your option) any later version. - - - - This program is distributed in the hope that it will be useful, - - but WITHOUT ANY WARRANTY; without even the implied warranty of - - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - - GNU Affero General Public License for more details. - - - - You should have received a copy of the GNU Affero General Public License - - along with this program. If not, see <http://www.gnu.org/licenses/>. - - - --> - -<template> - <li> - <div>{{ option.pollOptionText }}</div> - <div> - <a class="icon icon-delete svg delete-poll" @click="$emit('remove')" /> - </div> - </li> -</template> - -<script> -export default { - name: 'TextPollItem', - - props: { - option: { - type: Object, - default: undefined - } - } -} - -</script> |