nextcloud/dist/profile-main.mjs.map

1 line
24 KiB
Text
Raw Normal View History

{"version":3,"file":"profile-main.mjs","sources":["../node_modules/vue-material-design-icons/MapMarker.vue","../build/frontend/apps/profile/src/components/ProfileSection.vue","../build/frontend/apps/profile/src/views/ProfileApp.vue","../build/frontend/apps/profile/src/services/ProfileSections.ts","../build/frontend/apps/profile/src/main.ts"],"sourcesContent":["<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon map-marker-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"MapMarkerIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<!--\n - SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport type { IProfileSection } from '../services/ProfileSections.ts'\n\ndefineProps<{\n\tsection: IProfileSection\n\tuserId: string | undefined\n}>()\n</script>\n\n<template>\n\t<div :class=\"$style.profileSection\">\n\t\t<component\n\t\t\t:is=\"section.tagName\"\n\t\t\tv-bind.prop=\"section.params\"\n\t\t\t:user.prop=\"userId\" />\n\t</div>\n</template>\n\n<style module>\n.profileSection {\n\tmargin-top: 2rem;\n}\n</style>\n","<!--\n - SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport type { IProfileSection } from '../services/ProfileSections.ts'\n\nimport { getCurrentUser } from '@nextcloud/auth'\nimport { showError } from '@nextcloud/dialogs'\nimport { subscribe, unsubscribe } from '@nextcloud/event-bus'\nimport { loadState } from '@nextcloud/initial-state'\nimport { translate as t } from '@nextcloud/l10n'\nimport { generateUrl } from '@nextcloud/router'\nimport { computed, onBeforeMount, onBeforeUnmount, onMounted, ref } from 'vue'\nimport NcActionLink from '@nextcloud/vue/components/NcActionLink'\nimport NcActions from '@nextcloud/vue/components/NcActions'\nimport NcAppContent from '@nextcloud/vue/components/NcAppContent'\nimport NcAvatar from '@nextcloud/vue/components/NcAvatar'\nimport NcButton from '@nextcloud/vue/components/NcButton'\nimport NcContent from '@nextcloud/vue/components/NcContent'\nimport NcEmptyContent from '@nextcloud/vue/components/NcEmptyContent'\nimport NcRichText from '@nextcloud/vue/components/NcRichText'\nimport AccountIcon from 'vue-material-design-icons/AccountOutline.vue'\nimport MapMarkerIcon from 'vue-material-design-icons/MapMarker.vue'\nimport PencilIcon from 'vue-material-design-icons/PencilOutline.vue'\nimport ProfileSection from '../components/ProfileSection.vue'\n\ninterface IProfileAction {\n\ttarget: string\n\ticon: string\n\tid: string\n\ttitle: string\n}\n\ninterface IStatus {\n\ticon: string\n\tmessage: string\n\tuserId: string\n}\n\nconst profileParameters = loadState('profile', 'profileParameters', {\n\tuserId: undefined as string | undefined,\n\tdisplayname: undefined as string | undefined,\n\taddress: undefined as string | undefined,\n\torganisation: undefined as string | undefined,\n\trole: undefined as string | undefined,\n\theadline: undefined as string | undefined,\n\tbiography: undefined as string | undefined,\n\tactions: [] as IProfileAction[],\n\tisUserAvatarVisible: false,\n\tpronouns: undefined as string | undefined,\n})\n\nconst userStatus = ref(loadState<Partial<I