Skip to content

Commit

Permalink
sorting imports
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <github@dartcafe.de>
  • Loading branch information
dartcafe committed Oct 7, 2024
1 parent 3e5705d commit 26f578d
Show file tree
Hide file tree
Showing 78 changed files with 364 additions and 220 deletions.
18 changes: 11 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@

<script setup lang="ts">
import { ref, computed, onMounted, onUnmounted } from 'vue'
import NcContent from '@nextcloud/vue/dist/Components/NcContent.js'
import { debounce } from 'lodash'
import { subscribe, unsubscribe } from '@nextcloud/event-bus'

import NcContent from '@nextcloud/vue/dist/Components/NcContent.js'

import UserSettingsDlg from './components/Settings/UserSettingsDlg.vue'
import LoadingOverlay from './components/Base/modules/LoadingOverlay.vue'

import { useSessionStore } from './stores/session.ts'
import { usePollStore } from './stores/poll.ts'
import { showSuccess } from '@nextcloud/dialogs'

import '@nextcloud/dialogs/style.css'
import './assets/scss/colors.scss'
import './assets/scss/hacks.scss'
import './assets/scss/print.scss'
import './assets/scss/transitions.scss'
import './assets/scss/markdown.scss'
import UserSettingsDlg from './components/Settings/UserSettingsDlg.vue'
import LoadingOverlay from './components/Base/modules/LoadingOverlay.vue'
import { useSessionStore } from './stores/session.ts'
import { usePollStore } from './stores/poll.ts'
import { showSuccess } from '@nextcloud/dialogs'
import { debounce } from 'lodash'

const sessionStore = useSessionStore()
const pollStore = usePollStore()
Expand Down
7 changes: 5 additions & 2 deletions src/components/Actions/modules/ActionChangeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@

<script setup lang="ts">
import { computed } from 'vue'
import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'
import { emit } from '@nextcloud/event-bus'
import { t } from '@nextcloud/l10n'

import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'

import ListViewIcon from 'vue-material-design-icons/ViewListOutline.vue' // view-sequential-outline
import TableViewIcon from 'vue-material-design-icons/Table.vue' // view-comfy-outline
import { t } from '@nextcloud/l10n'

import { usePollStore, PollType, } from '../../../stores/poll.ts'
import { usePreferencesStore, ViewMode } from '../../../stores/preferences.ts'

Expand Down
4 changes: 3 additions & 1 deletion src/components/Actions/modules/ActionDelete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@

<script setup lang="ts">
import { ref, computed } from 'vue'
import { t, n } from '@nextcloud/l10n'

import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'

import DeleteIcon from 'vue-material-design-icons/Delete.vue'
import RestoreIcon from 'vue-material-design-icons/Recycle.vue'
import LockIcon from 'vue-material-design-icons/Lock.vue'
import UndoIcon from 'vue-material-design-icons/ArrowULeftTop.vue'
import { t, n } from '@nextcloud/l10n'

const props = defineProps({
timeout: {
Expand Down
4 changes: 3 additions & 1 deletion src/components/Actions/modules/ActionDeleteOrphanedVotes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
-->

<script setup lang="ts">
import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'
import { t } from '@nextcloud/l10n'

import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'

import { useVotesStore } from '../../../stores/votes.ts'

const votesStore = useVotesStore()
Expand Down
3 changes: 2 additions & 1 deletion src/components/Actions/modules/ActionOpenOptionsSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
-->

<script setup lang="ts">
import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'
import { emit } from '@nextcloud/event-bus'
import { t } from '@nextcloud/l10n'

import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'

const caption = t('polls', 'Add some!')

function clickAction() {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Actions/modules/ActionOpenSharesSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
-->

<script setup lang="ts">
import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'
import { emit } from '@nextcloud/event-bus'
import { t } from '@nextcloud/l10n'

import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'

const caption = t('polls', 'Edit access')

Expand Down
8 changes: 4 additions & 4 deletions src/components/Actions/modules/ActionRegister.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
-->

<script setup lang="ts">
// '@nextcloud/vue/dist/Components/.js'
// /dist/Components/.js
import { ref } from 'vue'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
import { t } from '@nextcloud/l10n'

import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'

import PublicRegisterModal from '../../Public/PublicRegisterModal.vue'
import { t } from '@nextcloud/l10n'

const caption = t('polls', 'Register')
const showRegistration = ref(false)
Expand Down
5 changes: 4 additions & 1 deletion src/components/Actions/modules/ActionSendConfirmed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
<script setup lang="ts">
import { useRoute } from 'vue-router'
import { ref } from 'vue'
import { t, n } from '@nextcloud/l10n'

import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'

import EmailCheckIcon from 'vue-material-design-icons/EmailCheck.vue' // view-comfy-outline

import { PollsAPI } from '../../../Api/index.js'
import { Logger } from '../../../helpers/index.ts'
import { t, n } from '@nextcloud/l10n'
import { StatusResults } from '../../../Types/index.ts'

const route = useRoute()
Expand Down
7 changes: 5 additions & 2 deletions src/components/Actions/modules/ActionSortOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@

<script setup lang="ts">
import { computed } from 'vue'
import { t } from '@nextcloud/l10n'

import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'

import SortByOriginalOrderIcon from 'vue-material-design-icons/FormatListBulletedSquare.vue'
import SortByRankIcon from 'vue-material-design-icons/FormatListNumbered.vue'
import SortByDateOptionIcon from 'vue-material-design-icons/SortClockAscendingOutline.vue'
import { t } from '@nextcloud/l10n'

import { useOptionsStore } from '../../../stores/options.ts'
import { usePollStore, PollType } from '../../../stores/poll.ts'
import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'

const pollStore = usePollStore()
const optionsStore = useOptionsStore()
Expand Down
3 changes: 2 additions & 1 deletion src/components/Actions/modules/ActionSwitchSafeTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
-->

<script setup lang="ts">
import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'
import { t } from '@nextcloud/l10n'
import { usePollStore } from '../../../stores/poll.ts'

import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'

const pollStore = usePollStore()
const caption = t('polls', 'Reveal them')

Expand Down
6 changes: 4 additions & 2 deletions src/components/Actions/modules/ActionToggleSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
-->

<script setup lang="ts">
import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'
import { emit } from '@nextcloud/event-bus'
import SidebarIcon from 'vue-material-design-icons/TextAccount.vue' // view-comfy-outline
import { t } from '@nextcloud/l10n'

import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'

import SidebarIcon from 'vue-material-design-icons/TextAccount.vue' // view-comfy-outline

const caption = t('polls', 'Toggle Sidebar')
function clickAction() {
emit('polls:sidebar:toggle', null)
Expand Down
2 changes: 2 additions & 0 deletions src/components/Activity/ActivityItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<script setup lang="ts">
import { computed } from 'vue'
import moment from '@nextcloud/moment'

import NcUserBubble from '@nextcloud/vue/dist/Components/NcUserBubble.js'
import NcRichText from '@nextcloud/vue/dist/Components/NcRichText.js'

import { GuestBubble, SimpleLink } from '../../helpers/index.ts'

const props = defineProps({
Expand Down
1 change: 1 addition & 0 deletions src/components/Base/modules/RadioGroupDiv.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<script setup lang="ts">
import { computed, PropType } from 'vue'

import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'

export type CheckboxOption = {
Expand Down
9 changes: 6 additions & 3 deletions src/components/Calendar/CalendarPeek.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@
<script setup lang="ts">

import { computed, onMounted, ref, PropType } from 'vue'
import { t } from '@nextcloud/l10n'
import orderBy from 'lodash/orderBy'
import NcPopover from '@nextcloud/vue/dist/Components/NcPopover.js'
import moment from '@nextcloud/moment'

import NcPopover from '@nextcloud/vue/dist/Components/NcPopover.js'

import { usePollStore } from '../../stores/poll.ts'

import CalendarInfo from './CalendarInfo.vue'
import { CalendarAPI } from '../../Api/index.js'
import { Logger } from '../../helpers/index.ts'
import { t } from '@nextcloud/l10n'
import { usePollStore } from '../../stores/poll.ts'
import { Option } from '../../Types/index.ts'

const pollStore = usePollStore()
Expand Down
3 changes: 2 additions & 1 deletion src/components/Configuration/ConfigAllowComment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
-->

<script setup lang="ts">
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import { t } from '@nextcloud/l10n'
import { usePollStore } from '../../stores/poll.ts'

import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'

const pollStore = usePollStore()
</script>

Expand Down
3 changes: 2 additions & 1 deletion src/components/Configuration/ConfigAllowMayBe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
-->

<script setup lang="ts">
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import { t } from '@nextcloud/l10n'
import { usePollStore } from '../../stores/poll.ts'

import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'

const pollStore = usePollStore()
const label = t('polls', 'Allow "Maybe" vote')
</script>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Configuration/ConfigAnonymous.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
-->

<script setup lang="ts">
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import { t } from '@nextcloud/l10n'
import { usePollStore } from '../../stores/poll.ts'

import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'

const pollStore = usePollStore()
</script>
Expand Down
4 changes: 3 additions & 1 deletion src/components/Configuration/ConfigAutoReminder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
-->

<script setup lang="ts">
import { t } from '@nextcloud/l10n'

import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import NcPopover from '@nextcloud/vue/dist/Components/NcPopover.js'
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'

import InformationIcon from 'vue-material-design-icons/InformationVariant.vue'
import AutoReminderInformation from './AutoReminderInformation.vue'
import { t } from '@nextcloud/l10n'

import { usePollStore } from '../../stores/poll.ts'

const pollStore = usePollStore()
Expand Down
5 changes: 4 additions & 1 deletion src/components/Configuration/ConfigClosing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
<script setup lang="ts">
import { computed } from 'vue'
import moment from '@nextcloud/moment'
import { t } from '@nextcloud/l10n'

import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcDateTimePicker from '@nextcloud/vue/dist/Components/NcDateTimePicker.js'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'

import OpenPollIcon from 'vue-material-design-icons/LockOpenVariant.vue'
import ClosePollIcon from 'vue-material-design-icons/Lock.vue'
import { t } from '@nextcloud/l10n'

import { usePollStore } from '../../stores/poll.ts'

const pollStore = usePollStore()
Expand Down
5 changes: 4 additions & 1 deletion src/components/Configuration/ConfigOptionLimit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

<script setup lang="ts">
import { computed } from 'vue'
import { t } from '@nextcloud/l10n'

import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'

import { InputDiv } from '../Base/index.js'
import { t } from '@nextcloud/l10n'

import { usePollStore } from '../../stores/poll.ts'

const pollStore = usePollStore()
Expand Down
4 changes: 3 additions & 1 deletion src/components/Configuration/ConfigProposals.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
<script setup lang="ts">
import { computed } from 'vue'
import moment from '@nextcloud/moment'
import { t } from '@nextcloud/l10n'

import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import NcDateTimePicker from '@nextcloud/vue/dist/Components/NcDateTimePicker.js'
import { t } from '@nextcloud/l10n'

import { usePollStore, AllowProposals } from '../../stores/poll.ts'

const pollStore = usePollStore()
Expand Down
4 changes: 3 additions & 1 deletion src/components/Configuration/ConfigUseNo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
-->

<script setup lang="ts">
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import { t } from '@nextcloud/l10n'

import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'

import { usePollStore } from '../../stores/poll.ts'

const pollStore = usePollStore()
Expand Down
5 changes: 4 additions & 1 deletion src/components/Configuration/ConfigVoteLimit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

<script setup lang="ts">
import { computed } from 'vue'
import { t } from '@nextcloud/l10n'

import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'

import { InputDiv } from '../Base/index.js'
import { t } from '@nextcloud/l10n'

import { usePollStore } from '../../stores/poll.ts'
import { useOptionsStore } from '../../stores/options.ts'

Expand Down
8 changes: 6 additions & 2 deletions src/components/Create/CreateDlg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
import { ref, computed } from 'vue'
import { useRouter } from 'vue-router'
import { showSuccess, showError } from '@nextcloud/dialogs'
import { t } from '@nextcloud/l10n'

import NcButton, { ButtonType } from '@nextcloud/vue/dist/Components/NcButton.js'
import { ConfigBox, RadioGroupDiv, InputDiv } from '../Base/index.js'

import SpeakerIcon from 'vue-material-design-icons/Bullhorn.vue'
import CheckIcon from 'vue-material-design-icons/Check.vue'
import { t } from '@nextcloud/l10n'

import { ConfigBox, RadioGroupDiv, InputDiv } from '../Base/index.js'

import { usePollStore, PollType } from '../../stores/poll.ts'

const pollStore = usePollStore()
Expand Down
Loading

0 comments on commit 26f578d

Please sign in to comment.