TEST UPD
-test bio
This commit is contained in:
@@ -19,7 +19,28 @@
|
||||
<div class="flex flex-col md:flex-row md:items-center gap-6">
|
||||
<div class="flex-1">
|
||||
<h2 class="text-3xl font-bold text-gray-900">{{ displayName }}</h2>
|
||||
<p class="mt-2 text-lg text-gray-600">{{ profile.data.bio || 'Нет информации о себе' }}</p>
|
||||
<div
|
||||
v-if="profile.data.bio"
|
||||
v-html="
|
||||
DOMPurify.sanitize(decodeEntities(profile.data.bio), {
|
||||
ALLOWED_TAGS: [
|
||||
'b',
|
||||
'i',
|
||||
'em',
|
||||
'strong',
|
||||
'a',
|
||||
'p',
|
||||
'br',
|
||||
'ul',
|
||||
'ol',
|
||||
'li',
|
||||
'img',
|
||||
],
|
||||
ALLOWED_ATTR: ['href', 'target', 'rel', 'src'],
|
||||
})
|
||||
"
|
||||
class="ProseMirror prose prose-table:table-fixed prose-td:p-2 prose-th:p-2 prose-td:border prose-th:border prose-td:border-outline-gray-2 prose-th:border-outline-gray-2 prose-td:relative prose-th:relative prose-th:bg-surface-gray-2 prose-sm max-w-none !whitespace-normal"
|
||||
></div>
|
||||
</div>
|
||||
|
||||
<div v-if="$user.data && isSessionUser()" class="md:ml-auto">
|
||||
@@ -427,6 +448,8 @@ import NoPermission from '@/components/NoPermission.vue';
|
||||
import { Edit } from 'lucide-vue-next';
|
||||
import { convertToTitleCase, updateDocumentTitle } from '@/utils';
|
||||
import debounce from 'lodash/debounce';
|
||||
import { decodeEntities } from '@/utils'
|
||||
import DOMPurify from 'dompurify'
|
||||
|
||||
const { user } = sessionStore();
|
||||
const $user = inject('$user');
|
||||
|
||||
Reference in New Issue
Block a user