Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 38 additions & 132 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@nextcloud/auth": "^2.6.0",
"@nextcloud/axios": "^2.6.0",
"@nextcloud/dialogs": "^7.5.0",
"@nextcloud/dialogs": "^8.0.0",
"@nextcloud/event-bus": "^3.3.3",
"@nextcloud/initial-state": "^3.0.0",
"@nextcloud/l10n": "^3.4.1",
Expand Down
3 changes: 1 addition & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<script setup lang="ts">
import { showSuccess } from '@nextcloud/dialogs'
import { showSuccess } from '@nextcloud/dialogs/toast'
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
import debounce from 'lodash/debounce'
import {
Expand All @@ -25,7 +25,6 @@ import { usePollGroupsStore } from './stores/pollGroups.ts'
import { useSessionStore } from './stores/session.ts'
import { Event } from './Types/index.ts'

import '@nextcloud/dialogs/style.css'
import './assets/scss/vars.scss'
import './assets/scss/hacks.scss'
import './assets/scss/print.scss'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Comments/CommentAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<script setup lang="ts">
import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { ref } from 'vue'
import NcCheckboxRadioSwitch from '@nextcloud/vue/components/NcCheckboxRadioSwitch'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Comments/CommentItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { Comment, CommentsGrouped } from '../../stores/comments.types'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import linkifyStr from 'linkify-string'
import { DateTime } from 'luxon'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Configuration/ConfigDangerArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<script setup lang="ts">
import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { ref } from 'vue'
import { useRouter } from 'vue-router'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Create/CreateDlg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { PollType } from '../../stores/poll.types'

import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { computed, ref } from 'vue'
import { useRouter } from 'vue-router'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Create/PollCreateDlg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { PollType } from '../../stores/poll.types'

import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { computed, ref } from 'vue'
import NcButton from '@nextcloud/vue/components/NcButton'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Export/ExportPoll.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { Sheet, WorkBook } from 'xlsx'
import type { ApiEmailAdressList } from '../../Api/index.ts'
import type { Answer } from '../../stores/votes.types'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import DOMPurify from 'dompurify'
import { saveAs } from 'file-saver'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/DeletePollDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import type { ButtonVariant } from '@nextcloud/vue/components/NcButton'
import type { Poll } from '../../stores/poll.types'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { computed } from 'vue'
import NcDialog from '@nextcloud/vue/components/NcDialog'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/TransferPollDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { ButtonVariant } from '@nextcloud/vue/components/NcButton'
import type { Poll } from '../../stores/poll.types'
import type { User } from '../../Types/index.ts'

import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { computed, ref } from 'vue'
import NcDialog from '@nextcloud/vue/components/NcDialog'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Options/OptionsDateAddDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { AxiosError } from '@nextcloud/axios'
import type { DurationType, TimeZoneOption } from '../../Types/dateTime.ts'
import type { Sequence, SimpleOption } from '@/stores/options.types'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { DateTime, Duration } from 'luxon'
import { computed, ref } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Options/OptionsTextAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import type { AxiosError } from '@nextcloud/axios'
import type { SimpleOption } from '../../stores/options.types'

import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { ref } from 'vue'
import InputDiv from '../Base/modules/InputDiv.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Options/OptionsTextAddBulk.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<script setup lang="ts">
import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { ref } from 'vue'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
Expand Down
2 changes: 1 addition & 1 deletion src/components/PollGroup/PollGroupEditDlg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<script setup lang="ts">
import { showError, showInfo } from '@nextcloud/dialogs'
import { showError, showInfo } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { useRoute, useRouter } from 'vue-router'
import SpeakerIcon from 'vue-material-design-icons/BullhornOutline.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/PollList/PollItemActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import type { ButtonVariant } from '@nextcloud/vue/components/NcButton'
import type { Poll } from '../../stores/poll.types'

import { showError, showInfo } from '@nextcloud/dialogs'
import { showError, showInfo } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { computed, ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Public/RegistrationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import type { AxiosError } from '@nextcloud/axios'
import type { SignalingType } from '@/Types'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import debounce from 'lodash/debounce'
import { computed, onMounted, ref } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Shares/ShareMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { AxiosError } from '@nextcloud/axios'
import type { SentResults } from '../../Api/modules/shares.ts'
import type { Share } from '../../stores/shares.types'

import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { computed, onMounted, ref } from 'vue'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Shares/SharePublicAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { VirtualUserItemType } from '../../Types/index.ts'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import NcActions from '@nextcloud/vue/components/NcActions'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Shares/SharesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import type { Share } from '../../stores/shares.types'
import type { User } from '../../Types/index.ts'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { ref } from 'vue'
import ShareIcon from 'vue-material-design-icons/ShareVariantOutline.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Shares/SharesListPollGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { User } from '../../Types/index.ts'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import ShareIcon from 'vue-material-design-icons/ShareVariantOutline.vue'
import ConfigBox from '../Base/modules/ConfigBox.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Shares/SharesListUnsent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<script setup lang="ts">
import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import NcButton from '@nextcloud/vue/components/NcButton'
import EmailAlertIcon from 'vue-material-design-icons/EmailAlertOutline.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/User/ActionInputDisplayName.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { StatusResults } from '../../Types/index.ts'

import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import debounce from 'lodash/debounce'
import { ref } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/User/ActionInputEmailAddress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { StatusResults } from '../../Types/index.ts'

import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import debounce from 'lodash/debounce'
import { ref } from 'vue'
Expand Down
10 changes: 5 additions & 5 deletions src/components/User/UserItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ defineOptions({ inheritAttrs: false })

const {
condensed = false,
description,
description = '',
disabled = false,
hideNames = false,
showEmail = false,
tag = 'div',
virtualUserType,
virtualUserType = undefined,
user = defaultUser,
itemStyle = {},
label,
label = undefined,
} = defineProps<Props>()

interface Props {
Expand All @@ -40,7 +40,7 @@ interface Props {
}

const computedRoleType = computed<UserType | VirtualUserItemType>(() => user.type ?? virtualUserType)
const emailAddressComputed = computed(() => {
const computedEmailAddress = computed(() => {
if (
showEmail
&& user.emailAddress !== user.displayName
Expand Down Expand Up @@ -69,7 +69,7 @@ const computedDescription = computed(() => {
if (user.type === 'anonymous') {
return t('polls', 'Anonymized participant')
}
return emailAddressComputed
return computedEmailAddress
})

const computedLabel = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/User/UserMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { ViewMode } from '../../stores/preferences.types'
import type { StatusResults } from '../../Types/index.ts'
import type { TimeZoneOption } from '@/Types/dateTime'

import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { emit } from '@nextcloud/event-bus'
import { t } from '@nextcloud/l10n'
import { NcActionRadio } from '@nextcloud/vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/VoteTable/VoteButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { Option } from '../../stores/options.types'
import type { Answer } from '../../stores/votes.types'
import type { User } from '../../Types/index.ts'

import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import debounce from 'lodash/debounce'
import { computed, onUnmounted } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/VoteTable/VoteMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { StatusResults } from '../../Types/index.ts'

import { showError, showSuccess } from '@nextcloud/dialogs'
import { showError, showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import debounce from 'lodash/debounce'
import { ref } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/VoteTable/VoteParticipant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { User } from '../../Types/index.ts'

import { showSuccess } from '@nextcloud/dialogs'
import { showSuccess } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { computed } from 'vue'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/modules/rateLimit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import type { AxiosError } from '@nextcloud/axios'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'

/**
Expand Down
2 changes: 1 addition & 1 deletion src/stores/poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type {
} from './poll.types'
import type { ViewMode } from './preferences.types'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { emit } from '@nextcloud/event-bus'
import { t } from '@nextcloud/l10n'
import DOMPurify from 'dompurify'
Expand Down
2 changes: 1 addition & 1 deletion src/views/DashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { Poll } from '../stores/poll.types'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { t } from '@nextcloud/l10n'
import { generateUrl } from '@nextcloud/router'
import { onMounted } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion src/views/NavigationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<script setup lang="ts">
import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { emit } from '@nextcloud/event-bus'
import { t } from '@nextcloud/l10n'
import { onMounted, ref } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion src/views/PollListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { FilterType } from '../stores/polls.types'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { n, t } from '@nextcloud/l10n'
import { computed } from 'vue'
import { useRoute, useRouter } from 'vue-router'
Expand Down
2 changes: 1 addition & 1 deletion src/views/VoteView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script setup lang="ts">
import type { CollapsibleProps } from '../components/Base/modules/CollapsibleArea.vue'

import { showError } from '@nextcloud/dialogs'
import { showError } from '@nextcloud/dialogs/toast'
import { emit } from '@nextcloud/event-bus'
import { n, t } from '@nextcloud/l10n'
import { computed, nextTick, onMounted, ref, watch } from 'vue'
Expand Down
Loading