Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f601e3b6c7 | ||
|
|
cb4c179f92 | ||
|
|
b2f28b925a | ||
|
|
19a2d5efc0 | ||
|
|
7e8f115b03 | ||
|
|
84b00bf71d | ||
|
|
54dd236311 | ||
|
|
bd04d31e62 | ||
|
|
0602babaa0 |
@@ -1,6 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { shallowRef, computed, onMounted } from 'vue';
|
import { shallowRef, computed, onMounted } from 'vue';
|
||||||
import emojiGroups from 'shared/components/emoji/emojisGroup.json';
|
import emojiGroups from 'shared/components/emoji/emojisGroup';
|
||||||
import MentionBox from '../mentions/MentionBox.vue';
|
import MentionBox from '../mentions/MentionBox.vue';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import emojis from './emojisGroup.json';
|
import emojis from './emojisGroup';
|
||||||
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
|
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
|
||||||
|
import WootButton from 'dashboard/components/ui/WootButton.vue';
|
||||||
const SEARCH_KEY = 'Search';
|
const SEARCH_KEY = 'Search';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { FluentIcon },
|
components: { FluentIcon, WootButton },
|
||||||
props: {
|
props: {
|
||||||
onClick: {
|
onClick: {
|
||||||
type: Function,
|
type: Function,
|
||||||
@@ -97,7 +98,7 @@ export default {
|
|||||||
class="emoji-search--input focus:box-shadow-blue dark:focus:box-shadow-dark !mb-0 !h-8 !text-sm"
|
class="emoji-search--input focus:box-shadow-blue dark:focus:box-shadow-dark !mb-0 !h-8 !text-sm"
|
||||||
:placeholder="$t('EMOJI.PLACEHOLDER')"
|
:placeholder="$t('EMOJI.PLACEHOLDER')"
|
||||||
/>
|
/>
|
||||||
<woot-button
|
<WootButton
|
||||||
v-if="showRemoveButton"
|
v-if="showRemoveButton"
|
||||||
size="small"
|
size="small"
|
||||||
variant="smooth"
|
variant="smooth"
|
||||||
@@ -106,7 +107,7 @@ export default {
|
|||||||
@click="onClick('')"
|
@click="onClick('')"
|
||||||
>
|
>
|
||||||
{{ $t('EMOJI.REMOVE') }}
|
{{ $t('EMOJI.REMOVE') }}
|
||||||
</woot-button>
|
</WootButton>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="hasNoSearch" ref="emojiItem" class="emoji-item">
|
<div v-if="hasNoSearch" ref="emojiItem" class="emoji-item">
|
||||||
<h5 class="emoji-category--title">
|
<h5 class="emoji-category--title">
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,4 @@
|
|||||||
<script>
|
<script>
|
||||||
import { defineAsyncComponent } from 'vue';
|
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
import ChatAttachmentButton from 'widget/components/ChatAttachment.vue';
|
import ChatAttachmentButton from 'widget/components/ChatAttachment.vue';
|
||||||
@@ -8,10 +7,7 @@ import configMixin from '../mixins/configMixin';
|
|||||||
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
|
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
|
||||||
import ResizableTextArea from 'shared/components/ResizableTextArea.vue';
|
import ResizableTextArea from 'shared/components/ResizableTextArea.vue';
|
||||||
import { useDarkMode } from 'widget/composables/useDarkMode';
|
import { useDarkMode } from 'widget/composables/useDarkMode';
|
||||||
|
import EmojiInput from 'shared/components/emoji/EmojiInput.vue';
|
||||||
const EmojiInput = defineAsyncComponent(
|
|
||||||
() => import('shared/components/emoji/EmojiInput.vue')
|
|
||||||
);
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ChatInputWrap',
|
name: 'ChatInputWrap',
|
||||||
@@ -162,9 +158,10 @@ export default {
|
|||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
v-if="hasEmojiPickerEnabled"
|
v-if="hasEmojiPickerEnabled"
|
||||||
|
type="button"
|
||||||
class="flex items-center justify-center icon-button"
|
class="flex items-center justify-center icon-button"
|
||||||
:aria-label="$t('EMOJI.ARIA_LABEL')"
|
:aria-label="$t('EMOJI.ARIA_LABEL')"
|
||||||
@click="toggleEmojiPicker"
|
@click.prevent="toggleEmojiPicker"
|
||||||
>
|
>
|
||||||
<FluentIcon icon="emoji" :class="emojiIconColor" />
|
<FluentIcon icon="emoji" :class="emojiIconColor" />
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ export default createRouter({
|
|||||||
{
|
{
|
||||||
path: '/article',
|
path: '/article',
|
||||||
name: 'article-viewer',
|
name: 'article-viewer',
|
||||||
props: true,
|
|
||||||
component: () => import('./views/ArticleViewer.vue'),
|
component: () => import('./views/ArticleViewer.vue'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -6,17 +6,11 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
IframeLoader,
|
IframeLoader,
|
||||||
},
|
},
|
||||||
props: {
|
|
||||||
link: {
|
|
||||||
type: String,
|
|
||||||
default: '',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="bg-white h-full">
|
<div class="bg-white h-full">
|
||||||
<IframeLoader :url="link" />
|
<IframeLoader :url="$route.query.link" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'article-viewer',
|
name: 'article-viewer',
|
||||||
params: { link: linkToOpen },
|
query: { link: linkToOpen },
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
viewAllArticles() {
|
viewAllArticles() {
|
||||||
|
|||||||
Reference in New Issue
Block a user