Compare commits

...
Author SHA1 Message Date
Shivam Mishra f601e3b6c7 feat: don't async load picker 2024-10-04 19:12:48 +05:30
Shivam Mishra cb4c179f92 chore: add console.log 2024-10-04 19:04:45 +05:30
Shivam Mishra b2f28b925a fix: use woot button 2024-10-04 18:54:39 +05:30
Shivam Mishra 19a2d5efc0 fix: emoji group 2024-10-04 18:52:35 +05:30
Shivam Mishra 7e8f115b03 feat: fetch emojis from js instead of json 2024-10-04 18:47:32 +05:30
Shivam Mishra 84b00bf71d feat: add prevent 2024-10-04 18:43:19 +05:30
Shivam Mishra 54dd236311 fix: typo 2024-10-04 18:32:05 +05:30
Shivam Mishra bd04d31e62 chore: remove console.log 2024-10-04 18:31:13 +05:30
Shivam Mishra 0602babaa0 fix: route link article viewer 2024-10-04 18:30:25 +05:30
8 changed files with 9302 additions and 9311 deletions
@@ -1,6 +1,6 @@
<script setup>
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';
const props = defineProps({
@@ -1,10 +1,11 @@
<script>
import emojis from './emojisGroup.json';
import emojis from './emojisGroup';
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
import WootButton from 'dashboard/components/ui/WootButton.vue';
const SEARCH_KEY = 'Search';
export default {
components: { FluentIcon },
components: { FluentIcon, WootButton },
props: {
onClick: {
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"
:placeholder="$t('EMOJI.PLACEHOLDER')"
/>
<woot-button
<WootButton
v-if="showRemoveButton"
size="small"
variant="smooth"
@@ -106,7 +107,7 @@ export default {
@click="onClick('')"
>
{{ $t('EMOJI.REMOVE') }}
</woot-button>
</WootButton>
</div>
<div v-if="hasNoSearch" ref="emojiItem" class="emoji-item">
<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>
import { defineAsyncComponent } from 'vue';
import { mapGetters } from 'vuex';
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 ResizableTextArea from 'shared/components/ResizableTextArea.vue';
import { useDarkMode } from 'widget/composables/useDarkMode';
const EmojiInput = defineAsyncComponent(
() => import('shared/components/emoji/EmojiInput.vue')
);
import EmojiInput from 'shared/components/emoji/EmojiInput.vue';
export default {
name: 'ChatInputWrap',
@@ -162,9 +158,10 @@ export default {
/>
<button
v-if="hasEmojiPickerEnabled"
type="button"
class="flex items-center justify-center icon-button"
:aria-label="$t('EMOJI.ARIA_LABEL')"
@click="toggleEmojiPicker"
@click.prevent="toggleEmojiPicker"
>
<FluentIcon icon="emoji" :class="emojiIconColor" />
</button>
-1
View File
@@ -36,7 +36,6 @@ export default createRouter({
{
path: '/article',
name: 'article-viewer',
props: true,
component: () => import('./views/ArticleViewer.vue'),
},
],
@@ -6,17 +6,11 @@ export default {
components: {
IframeLoader,
},
props: {
link: {
type: String,
default: '',
},
},
};
</script>
<template>
<div class="bg-white h-full">
<IframeLoader :url="link" />
<IframeLoader :url="$route.query.link" />
</div>
</template>
+1 -1
View File
@@ -79,7 +79,7 @@ export default {
}
this.$router.push({
name: 'article-viewer',
params: { link: linkToOpen },
query: { link: linkToOpen },
});
},
viewAllArticles() {