refactor(common): refactor error

This commit is contained in:
qianmoQ 2024-11-01 20:01:42 +08:00
parent 24f54a4979
commit 18cc847248
94 changed files with 113 additions and 9908 deletions

View File

@ -273,7 +273,7 @@ public class ConfigureUtils
Properties originProperties = fieldBody.getConfigures();
if (pipelineType.equals(IConfigurePipelineType.INPUT)) {
if (!originProperties.containsKey("context")) {
if (!originProperties.containsKey("context") && query != null) {
originProperties.setProperty("context", query);
}
}

View File

@ -95,7 +95,7 @@ public class PipelineServiceImpl
// Input source
SourceEntity fromSource = fromSourceOptional.get();
Properties fromOriginProperties = configure.getFrom().getConfigures();
if (!fromOriginProperties.containsKey("context")) {
if (!fromOriginProperties.containsKey("context") && configure.getContent() != null) {
fromOriginProperties.setProperty("context", configure.getContent());
}
else {

View File

@ -1,16 +0,0 @@
{
"$schema": "https://shadcn-vue.com/schema.json",
"style": "new-york",
"typescript": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true
},
"framework": "vite",
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -35,15 +35,12 @@
"embla-carousel-vue": "^8.0.2",
"export-to-csv": "^1.2.4",
"lodash": "^4.17.21",
"lucide-vue-next": "^0.356.0",
"md-editor-v3": "^4.12.1",
"nprogress": "^0.2.0",
"radix-vue": "^1.5.2",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"uuid": "^9.0.1",
"vaul-vue": "^0.1.0",
"vee-validate": "^4.12.6",
"view-shadcn-ui": "2024.1.3-alpha.1730459663",
"view-ui-plus": "^1.3.16",
"vue": "^3.4.21",
"vue-clipboard3": "^2.0.0",
@ -54,8 +51,7 @@
"vue3-calendar-heatmap": "^2.0.5",
"vue3-grid-layout-next": "^1.0.6",
"vuedraggable": "^4.1.0",
"vuex": "^4.1.0",
"zod": "^3.22.4"
"vuex": "^4.1.0"
},
"devDependencies": {
"@types/lodash": "^4.17.0",
@ -63,9 +59,6 @@
"@types/nprogress": "^0.2.3",
"@types/uuid": "^9.0.8",
"@vitejs/plugin-vue": "^5.0.4",
"autoprefixer": "^10.4.18",
"postcss": "^8.4.35",
"tailwindcss": "^3.4.1",
"tippy.js": "^6.3.7",
"typescript": "^5.2.2",
"vite": "^5.4.8",

View File

@ -1,6 +0,0 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

View File

@ -1,16 +0,0 @@
<script lang="ts" setup>
import { Slot } from 'radix-vue'
import { useFormField } from './useFormField'
const { error, formItemId, formDescriptionId, formMessageId } = useFormField()
</script>
<template>
<Slot
:id="formItemId"
:aria-describedby="!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`"
:aria-invalid="!!error"
>
<slot />
</Slot>
</template>

View File

@ -1,20 +0,0 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue'
import { useFormField } from './useFormField'
import { cn } from '@/lib/utils'
const props = defineProps<{
class?: HTMLAttributes['class']
}>()
const { formDescriptionId } = useFormField()
</script>
<template>
<p
:id="formDescriptionId"
:class="cn('text-sm text-muted-foreground', props.class)"
>
<slot />
</p>
</template>

View File

@ -1,25 +0,0 @@
<script lang="ts">
import type { HTMLAttributes, InjectionKey } from 'vue'
export const FORM_ITEM_INJECTION_KEY
= Symbol() as InjectionKey<string>
</script>
<script lang="ts" setup>
import { provide } from 'vue'
import { useId } from 'radix-vue'
import { cn } from '@/lib/utils'
const props = defineProps<{
class?: HTMLAttributes['class']
}>()
const id = useId()
provide(FORM_ITEM_INJECTION_KEY, id)
</script>
<template>
<div :class="cn('space-y-2', props.class)">
<slot />
</div>
</template>

View File

@ -1,23 +0,0 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue'
import type { LabelProps } from 'radix-vue'
import { useFormField } from './useFormField'
import { cn } from '@/lib/utils'
import { Label } from '@/components/ui/label'
const props = defineProps<LabelProps & { class?: HTMLAttributes['class'] }>()
const { error, formItemId } = useFormField()
</script>
<template>
<Label
:class="cn(
error && 'text-destructive',
props.class,
)"
:for="formItemId"
>
<slot />
</Label>
</template>

View File

@ -1,16 +0,0 @@
<script lang="ts" setup>
import { ErrorMessage } from 'vee-validate'
import { toValue } from 'vue'
import { useFormField } from './useFormField'
const { name, formMessageId } = useFormField()
</script>
<template>
<ErrorMessage
:id="formMessageId"
as="p"
:name="toValue(name)"
class="text-[0.8rem] font-medium text-destructive"
/>
</template>

View File

@ -1,6 +0,0 @@
export { Form, Field as FormField } from 'vee-validate'
export { default as FormItem } from './FormItem.vue'
export { default as FormLabel } from './FormLabel.vue'
export { default as FormControl } from './FormControl.vue'
export { default as FormMessage } from './FormMessage.vue'
export { default as FormDescription } from './FormDescription.vue'

View File

@ -1,30 +0,0 @@
import { FieldContextKey, useFieldError, useIsFieldDirty, useIsFieldTouched, useIsFieldValid } from 'vee-validate'
import { inject } from 'vue'
import { FORM_ITEM_INJECTION_KEY } from './FormItem.vue'
export function useFormField() {
const fieldContext = inject(FieldContextKey)
const fieldItemContext = inject(FORM_ITEM_INJECTION_KEY)
const fieldState = {
valid: useIsFieldValid(),
isDirty: useIsFieldDirty(),
isTouched: useIsFieldTouched(),
error: useFieldError(),
}
if (!fieldContext)
throw new Error('useFormField should be used within <FormField>')
const { name } = fieldContext
const id = fieldItemContext
return {
id,
name,
formItemId: `${id}-form-item`,
formDescriptionId: `${id}-form-item-description`,
formMessageId: `${id}-form-item-message`,
...fieldState,
}
}

View File

@ -1,6 +1,6 @@
import { type ClassValue, clsx } from 'clsx'
import { twMerge } from 'tailwind-merge'
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
export function cn(...inputs: ClassValue[])
{
return clsx(inputs)
}

View File

@ -6,6 +6,7 @@ import router from '@/router'
import i18n from '@/i18n/I18n'
import store from '@/utils/store'
import { createIcons } from '@/fontawesome'
import ShadcnViewUI from 'view-shadcn-ui'
const app = createApp(App)
createIcons(app)
@ -14,4 +15,5 @@ app.config.warnHandler = () => null
app.use(router)
app.use(i18n)
app.use(store)
app.use(ShadcnViewUI)
app.provide('$t', i18n.global.t).mount('#app')

View File

@ -1,11 +0,0 @@
.pointer {
cursor: pointer;
}
.bg-color-gray {
background-color: #e8eaec;
}
.bg-color-error {
background-color: #ed4014;
}

View File

@ -84,11 +84,7 @@ import UserService from '@/services/user'
import CaptchaService from '@/services/captcha'
import { UserRequest } from '@/model/user/request/user'
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
import { FormControl, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Loader2 } from 'lucide-vue-next'
import * as z from 'zod'
import { toTypedSchema } from '@vee-validate/zod'
import { useForm } from 'vee-validate'
import { ToastUtils } from '@/utils/toast'
import CommonUtils from '@/utils/common'
import { HttpUtils } from '@/utils/http'
@ -100,11 +96,9 @@ export default defineComponent({
name: 'AuthSignin',
components: {
CircularLoading,
FormField, FormControl, FormMessage, FormLabel, FormItem,
AvatarImage, AvatarFallback, Avatar,
Checkbox, Label, Input, Button,
CardFooter, CardContent, CardDescription, CardTitle, CardHeader, Card,
Loader2
},
setup()
{
@ -116,6 +110,8 @@ export default defineComponent({
const captchaLoading = ref(false)
const formState = ref<UserRequest>({ username: null, password: null })
const z: any = {}
const validationSchema = z
.object({
username: z.string({ required_error: $t('user.auth.usernameTip') })

View File

@ -86,7 +86,6 @@
<script lang="ts">
import { defineComponent, inject, ref } from 'vue'
import { Loader2 } from 'lucide-vue-next'
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card'
import Button from '@/views/ui/button'
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
@ -94,9 +93,6 @@ import { Input } from '@/components/ui/input'
import { Label } from '@/components/ui/label'
import { UserRequest } from '@/model/user/request/user'
import { toTypedSchema } from '@vee-validate/zod'
import * as z from 'zod'
import { useForm } from 'vee-validate'
import { FormControl, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import CaptchaService from '@/services/captcha'
import UserService from '@/services/user'
import router from '@/router'

View File

@ -1,43 +1,27 @@
<template>
<div class='h-svh'>
<div class='m-auto flex h-full w-full flex-col items-center justify-center gap-2'>
<h1 class='text-[7rem] font-bold leading-tight'>403</h1>
<span class='font-medium'>{{ $t('common.pageNotAuthorized') }}</span>
<p class='text-center text-muted-foreground mt-6'>{{ $t('common.pageNotAuthorizedTip') }}</p>
<div class='mt-6 flex gap-4'>
<DcLink :link="redirect as string" target="_self">
<Button variant='outline'>{{ $t('common.backTo') }}</Button>
</DcLink>
<RouterLink to="/">
<Button variant='outline'>{{ $t('common.backToHome') }}</Button>
</RouterLink>
<RouterLink to="/auth/signin">
<Button variant='outline'>{{ $t('common.backToSignin') }}</Button>
</RouterLink>
</div>
</div>
<div class='h-screen'>
<ShadcnException type="403"
:title="$t('common.pageNotAuthorized')"
:description="$t('common.pageNotAuthorizedTip')">
<template #actions>
<ShadcnButton type="default" :to="$route.query.redirect">
{{ $t('common.backTo') }}
</ShadcnButton>
<ShadcnButton type="primary" to="/">
{{ $t('common.backToHome') }}
</ShadcnButton>
<ShadcnButton type="default" to="/auth/signin">
{{ $t('common.backToSignin') }}
</ShadcnButton>
</template>
</ShadcnException>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { Button } from '@/components/ui/button'
import DcLink from '@/views/components/link/DcLink.vue'
export default defineComponent({
name: 'NotAuthorized',
components: { DcLink, Button },
data()
{
return {
redirect: null as string | null
}
},
created()
{
if (this.$route.query) {
this.redirect = this.$route.query.redirect as string
}
}
name: 'NotAuthorized'
})
</script>

View File

@ -1,28 +1,25 @@
<template>
<div class='h-svh'>
<div class='m-auto flex h-full w-full flex-col items-center justify-center gap-2'>
<h1 class='text-[7rem] font-bold leading-tight'>404</h1>
<span class='font-medium'>{{ $t('common.pageNotFound') }}</span>
<p class='text-center text-muted-foreground mt-6'>{{ $t('common.pageNotFoundTip') }}</p>
<div class='mt-6 flex gap-4 space-x-2'>
<DcLink v-if="$route.redirectedFrom" :to="$route.redirectedFrom.fullPath" target="_self">
<Button variant='outline'>{{ $t('common.backTo') }}</Button>
</DcLink>
<RouterLink to="/">
<Button variant='outline'>{{ $t('common.backToHome') }}</Button>
</RouterLink>
</div>
</div>
<div class="h-screen">
<ShadcnException type="404"
:title="$t('common.pageNotFound')"
:description="$t('common.pageNotFoundTip')">
<template #actions>
<ShadcnButton v-if="$route.redirectedFrom" type="default"
:to="$route.redirectedFrom.fullPath">
{{ $t('common.backTo') }}
</ShadcnButton>
<ShadcnButton type="primary" to="/">
{{ $t('common.backToHome') }}
</ShadcnButton>
</template>
</ShadcnException>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { Button } from '@/components/ui/button'
import DcLink from '@/views/components/link/DcLink.vue'
export default defineComponent({
name: 'NotFound',
components: { DcLink, Button }
name: 'NotFound'
})
</script>

View File

@ -1,40 +1,27 @@
<template>
<div class='h-svh'>
<div class='m-auto flex h-full w-full flex-col items-center justify-center gap-2'>
<h1 class='text-[7rem] font-bold leading-tight'>500</h1>
<span class='font-medium'>{{ $t('common.pageNotNetwork') }}</span>
<p class='text-center text-muted-foreground mt-6'>{{ $t('common.tip.pageNotNetwork') }}</p>
<div class='mt-6 flex gap-4'>
<DcLink :link="redirect as string" target="_self">
<Button variant='outline'>{{ $t('common.backTo') }}</Button>
</DcLink>
<RouterLink to="/">
<Button variant='outline'>{{ $t('common.backToHome') }}</Button>
</RouterLink>
</div>
</div>
<div class="h-screen">
<ShadcnException type="500"
:title="$t('common.pageNotNetwork')"
:description="$t('common.tip.pageNotNetwork')">
<template #icon>
<ShadcnIcon icon="TriangleAlert" class="text-gray-400" :size="80"/>
</template>
<template #actions>
<ShadcnButton type="default" :to="String($route.query.redirect)">
{{ $t('common.backTo') }}
</ShadcnButton>
<ShadcnButton type="primary" :to="String($route.query.redirect)">
{{ $t('common.backToHome') }}
</ShadcnButton>
</template>
</ShadcnException>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { Button } from '@/components/ui/button'
import DcLink from '@/views/components/link/DcLink.vue'
export default defineComponent({
name: 'NotNetwork',
components: { DcLink, Button },
data()
{
return {
redirect: null as string | null
}
},
created()
{
if (this.$route.query) {
this.redirect = this.$route.query.redirect as string
}
}
name: 'NotNetwork'
})
</script>

View File

@ -40,7 +40,6 @@ import { useI18n } from 'vue-i18n'
import { Configuration } from '@/views/components/editor/flow/Configuration.ts'
import { ToastUtils } from '@/utils/toast.ts'
import FlowSider from '@/views/components/editor/flow/components/FlowSider.vue'
import { RefreshCcw, Save } from 'lucide-vue-next'
import Button from '@/views/ui/button'
import Tooltip from '@/views/ui/tooltip'
import FlowConfigure from '@/views/components/editor/flow/components/FlowConfigure.vue'

View File

@ -68,8 +68,6 @@ import { Configuration } from '@/views/components/editor/flow/Configuration.ts'
import Drawer from '@/views/ui/drawer'
import Button from '@/views/ui/button'
import Tooltip from '@/views/ui/tooltip'
import { HelpCircle, Save } from 'lucide-vue-next'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import { Checkbox } from '@/components/ui/checkbox'
import { Textarea } from '@/components/ui/textarea'
@ -87,8 +85,6 @@ export default defineComponent({
Drawer,
Button,
Tooltip,
Save, HelpCircle,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage
},
props: {
isVisible: {

View File

@ -54,7 +54,6 @@ import { GridColumn } from '@/views/components/grid/GridColumn'
import { ObjectUtils } from '@/utils/object'
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
import { Button } from '@/components/ui/button'
import { BarChart, CircleHelp, Plus } from 'lucide-vue-next'
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
import { Switch } from '@/components/ui/switch'
import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/components/ui/hover-card'
@ -66,7 +65,6 @@ export default defineComponent({
GridVisual,
HoverCardContent, HoverCardTrigger, HoverCard,
CardContent, TooltipTrigger, Tooltip, TooltipProvider, TooltipContent,
BarChart, Plus, CircleHelp,
Button, Switch,
CardHeader, Card, CardTitle,
AgGridVue

View File

@ -46,13 +46,11 @@
<script lang="ts">
import { defineComponent } from 'vue'
import Dialog from '@/views/ui/dialog'
import { BarChart } from 'lucide-vue-next'
import Button from '@/views/ui/button'
import VisualEditor from '@/views/components/visual/VisualEditor.vue'
import { Configuration } from '@/views/components/visual/Configuration.ts'
import { GridConfigure } from '@/views/components/grid/GridConfigure.ts'
import { Textarea } from '@/components/ui/textarea'
import { FormControl, FormField, FormItem, FormLabel } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import { ToastUtils } from '@/utils/toast.ts'
import router from '@/router'
@ -64,11 +62,9 @@ export default defineComponent({
components: {
Alert,
Input,
FormControl, FormField, FormLabel, FormItem,
Textarea,
VisualEditor,
Button,
BarChart,
Dialog
},
computed: {

View File

@ -4,11 +4,10 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { Loader2 } from 'lucide-vue-next'
export default defineComponent({
name: 'CircularLoading',
components: {Loader2},
props: {
show: {
type: Boolean,

View File

@ -26,13 +26,12 @@ import { defineComponent } from 'vue'
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '@/components/ui/select'
import { SourceModel } from '@/model/source'
import Tooltip from '@/views/ui/tooltip'
import { Loader2 } from 'lucide-vue-next'
import { FilterModel } from '@/model/filter.ts'
export default defineComponent({
name: 'SourceSelect',
components: {
Loader2,
Tooltip,
Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue
},

View File

@ -93,7 +93,6 @@ import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMe
import { Input } from '@/components/ui/input'
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table'
import { Button } from '@/components/ui/button'
import { ArrowUpDown, ChevronDown, Loader2 } from 'lucide-vue-next'
import { Pagination, PaginationEllipsis, PaginationFirst, PaginationLast, PaginationList, PaginationListItem, PaginationNext, PaginationPrev } from '@/components/ui/pagination'
import { PaginationModel } from '@/model/pagination'
import { cloneDeep, toNumber } from 'lodash'
@ -106,13 +105,11 @@ export default defineComponent({
name: 'TableCommon',
components: {
BreadcrumbEllipsis,
Loader2,
SelectItem, SelectContent, SelectValue, SelectTrigger, Select,
PaginationLast, PaginationNext, PaginationEllipsis, PaginationPrev, PaginationListItem, PaginationList, Pagination, PaginationFirst,
DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuTrigger, DropdownMenu,
TableCell, TableRow, TableBody, TableHeader, TableHead, Table, TableCaption,
Button, Input,
ArrowUpDown, ChevronDown,
Tooltip
},
props: {

View File

@ -210,7 +210,6 @@ import VisualLine from '@/views/components/visual/components/VisualLine.vue'
import VisualTable from '@/views/components/visual/components/VisualTable.vue'
import { defineComponent, PropType } from 'vue'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import { Table } from 'lucide-vue-next'
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group'
import { DataCapCard } from '@/views/ui/card'

View File

@ -52,7 +52,6 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { FormControl, FormDescription, FormField, FormItem, FormLabel } from '@/components/ui/form'
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '@/components/ui/select'
import { ChartFieldGroup, Configuration, IChart } from '@/views/components/visual/Configuration.ts'
import { cloneDeep, keys } from 'lodash'
@ -74,7 +73,6 @@ export default defineComponent({
Slider,
Switch,
SelectGroup, SelectTrigger, SelectContent, SelectItem, Select, SelectLabel, SelectValue,
FormDescription, FormControl, FormLabel, FormField, FormItem,
Tooltip
},
computed: {

View File

@ -46,6 +46,13 @@ export default defineComponent({
{
const version = PackageUtils.get('version')
return { version }
},
created()
{
this.$Message.info({
content: 'This is an info message',
duration: 2
})
}
})
</script>

View File

@ -136,7 +136,6 @@ import {
navigationMenuTriggerStyle
} from '@/components/ui/navigation-menu'
import NavigationMenuListItem from '@/views/layouts/common/components/components/NavigationMenuListItem.vue'
import { CircleHelp, LogOut, Settings } from 'lucide-vue-next'
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
import LanguageSwitcher from '@/views/layouts/common/components/components/LanguageSwitcher.vue'
import Carousel from '@/views/ui/carousel'
@ -201,7 +200,6 @@ export default defineComponent({
AvatarFallback, AvatarImage, Avatar,
NavigationMenuListItem,
Button,
CircleHelp, LogOut, Settings
},
methods: {
navigationMenuTriggerStyle,

View File

@ -49,7 +49,6 @@
<script lang="ts">
import { defineComponent, watch } from 'vue'
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import { Info, LayoutPanelTop, SatelliteDish, Table, Wind } from 'lucide-vue-next'
import { DataCapCard } from '@/views/ui/card'
export default defineComponent({
@ -57,7 +56,6 @@ export default defineComponent({
components: {
DataCapCard,
Tabs, TabsContent, TabsList, TabsTrigger,
Info, LayoutPanelTop, Table, SatelliteDish, Wind
},
data()
{

View File

@ -94,7 +94,6 @@
<script lang="ts">
import { defineComponent, resolveComponent } from 'vue'
import { ArrowUpFromLine, Columns, Delete, Pencil, Table, Trash } from 'lucide-vue-next'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import DatabaseService from '@/services/database.ts'
import { StructureEnum, StructureModel } from '@/model/structure.ts'
@ -135,7 +134,6 @@ export default defineComponent({
Tree,
CircularLoading,
Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue,
Columns, Pencil, ArrowUpFromLine, Delete, Trash, Table,
DropdownMenu,
DropdownMenuContent,
DropdownMenuGroup,

View File

@ -113,10 +113,8 @@ import { FilterModel } from '@/model/filter.ts'
import ChatService from '@/services/chat.ts'
import { ToastUtils } from '@/utils/toast.ts'
import { DataCapCard } from '@/views/ui/card'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
import Button from '@/views/ui/button'
import { Plus, Send } from 'lucide-vue-next'
import ChatInfo from '@/views/pages/admin/chat/ChatInfo.vue'
import Avatar from '@/views/ui/avatar'
import { ChatModel } from '@/model/chat.ts'
@ -138,9 +136,7 @@ export default defineComponent({
ChatInfo,
Button,
CircularLoading,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
RadioGroup, RadioGroupItem,
Plus, Send,
DataCapCard
},
setup()

View File

@ -41,7 +41,6 @@ import { defineComponent } from 'vue'
import Dialog from '@/views/ui/dialog'
import Button from '@/views/ui/button'
import { Textarea } from '@/components/ui/textarea'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import { ToastUtils } from '@/utils/toast'
import ChatService from '@/services/chat.ts'
@ -53,7 +52,6 @@ export default defineComponent({
components: {
CircularLoading,
Input,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
Textarea,
Button,
Dialog

View File

@ -41,12 +41,11 @@ import { AlertDialog, AlertDialogContent, AlertDialogFooter, AlertDialogHeader,
import { Alert } from '@/components/ui/alert'
import { Input } from '@/components/ui/input'
import { Button } from '@/components/ui/button'
import { Loader2 } from 'lucide-vue-next'
export default defineComponent({
name: 'DashboardDelete',
components: {
Loader2,
Button,
Input,
Alert,

View File

@ -72,7 +72,6 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { Cog, Info, Loader2, Pencil, Trash } from 'lucide-vue-next'
import DashboardService from '@/services/dashboard'
import { FilterModel } from '@/model/filter'
import { PaginationModel, PaginationRequest } from '@/model/pagination'
@ -94,7 +93,6 @@ export default defineComponent({
Button, Tooltip, TableCaption, Pagination,
DashboardDelete,
DropdownMenuItem, DropdownMenuSeparator, DropdownMenuLabel, DropdownMenuContent, DropdownMenuTrigger, DropdownMenu,
Loader2, Cog, Trash, Pencil, Info
},
setup()
{

View File

@ -8,7 +8,7 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { Loader2 } from 'lucide-vue-next'
import DashboardService from '@/services/dashboard'
import { useRouter } from 'vue-router'
import DashboardView from '@/views/pages/admin/dashboard/components/DashboardView.vue'

View File

@ -46,7 +46,6 @@ import ReportService from '@/services/report.ts'
import { FilterModel } from '@/model/filter.ts'
import { ReportModel } from '@/model/report.ts'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
import VisualView from '@/views/components/visual/VisualView.vue'
import Button from '@/views/ui/button'
@ -61,7 +60,6 @@ export default defineComponent({
VisualView,
CircularLoading,
Dialog,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
RadioGroup, RadioGroupItem,
Button
},

View File

@ -81,13 +81,11 @@ import { ReportModel } from '@/model/report.ts'
import VisualView from '@/views/components/visual/VisualView.vue'
import { DashboardModel, DashboardRequest } from '@/model/dashboard.ts'
import { DataCapCard } from '@/views/ui/card'
import { Trash } from 'lucide-vue-next'
import ChartContainer from '@/views/pages/admin/dashboard/components/ChartContainer.vue'
import { ToastUtils } from '@/utils/toast.ts'
import Dialog from '@/views/ui/dialog'
import Button from '@/views/ui/button'
import { Input } from '@/components/ui/input'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { cloneDeep } from 'lodash'
import { Textarea } from '@/components/ui/textarea'
import CropperHome from '@/views/components/cropper/CropperHome.vue'
@ -104,9 +102,7 @@ export default defineComponent({
GridItem, GridLayout,
DataCapCard,
Button,
Trash,
Dialog,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage
},
props: {
info: {

View File

@ -27,7 +27,6 @@ import { GridItem, GridLayout } from 'vue3-grid-layout-next'
import { DataCapCard } from '@/views/ui/card'
import VisualView from '@/views/components/visual/VisualView.vue'
import Tooltip from '@/views/ui/tooltip'
import { Info } from 'lucide-vue-next'
export default defineComponent({
name: 'DashboardView',

View File

@ -183,7 +183,6 @@ import DatasetColumnConfigure from '@/views/pages/admin/dataset/components/adhoc
import { defineComponent } from 'vue'
import { Badge } from '@/components/ui/badge'
import { DataCapCard } from '@/views/ui/card'
import { AreaChart, BarChart4, BarChartHorizontal, Baseline, CirclePlay, Cog, Eye, LineChart, Loader2, PieChart, Table, Trash } from 'lucide-vue-next'
import Tooltip from '@/views/ui/tooltip'
import { Separator } from '@/components/ui/separator'
import { Input } from '@/components/ui/input'
@ -192,7 +191,6 @@ import { Alert, AlertTitle } from '@/components/ui/alert'
import { ToastUtils } from '@/utils/toast'
import SqlInfo from '@/views/components/sql/SqlInfo.vue'
import { AlertDialog, AlertDialogContent, AlertDialogFooter, AlertDialogHeader } from '@/components/ui/alert-dialog'
import { FormControl, FormField, FormItem, FormLabel } from '@/components/ui/form'
import { Select } from '@/components/ui/select'
import Switch from '@/views/ui/switch'
import { Textarea } from '@/components/ui/textarea'
@ -214,9 +212,7 @@ export default defineComponent({
DataCapCard,
Textarea,
Switch,
FormField,
FormControl,
FormLabel, Select, FormItem,
Select,
AlertDialogFooter, AlertDialogHeader, AlertDialog, AlertDialogContent,
SqlInfo,
AlertTitle, Alert,
@ -230,7 +226,6 @@ export default defineComponent({
CircularLoading,
Draggable,
VisualEditor,
Loader2, Trash, Cog, CirclePlay, Eye, Table, LineChart, BarChart4, AreaChart, PieChart, BarChartHorizontal, Baseline
},
setup()
{

View File

@ -47,7 +47,7 @@ import { DatasetModel } from '@/model/dataset'
import { ToastUtils } from '@/utils/toast'
import { AlertDialog, AlertDialogContent, AlertDialogFooter, AlertDialogHeader } from '@/components/ui/alert-dialog'
import { Alert, AlertTitle } from '@/components/ui/alert'
import { Loader2 } from 'lucide-vue-next'
import { Button } from '@/components/ui/button'
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
@ -56,7 +56,6 @@ export default defineComponent({
components: {
CardContent, CardTitle, CardHeader, Card,
Button,
Loader2,
AlertDialogFooter, AlertDialogHeader, AlertTitle, Alert, AlertDialog, AlertDialogContent
},
props: {

View File

@ -94,7 +94,6 @@ import Avatar from '@/views/ui/avatar'
import { Badge } from '@/components/ui/badge'
import DatasetState from '@/views/pages/admin/dataset/components/DatasetState.vue'
import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/components/ui/hover-card'
import { BarChart2, CirclePlay, CircleStop, Cog, History, Info, RefreshCcw, SquareX, TriangleAlert } from 'lucide-vue-next'
import {
DropdownMenu,
DropdownMenuContent,

View File

@ -295,7 +295,6 @@ import { Switch } from '@/components/ui/switch'
import { Label } from '@/components/ui/label'
import { Textarea } from '@/components/ui/textarea'
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
import { Pencil, Plus, Trash } from 'lucide-vue-next'
import { DataCapCard } from '@/views/ui/card'
import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/components/ui/hover-card'
import { Separator } from '@/components/ui/separator'
@ -310,14 +309,12 @@ import { SourceModel } from '@/model/source.ts'
import SourceService from '@/services/source'
import ExecuteService from '@/services/execute'
import { ExecuteModel } from '@/model/execute.ts'
import { FormControl, FormField, FormItem } from '@/components/ui/form'
import { ArrayUtils } from '@/utils/array.ts'
import { join } from 'lodash'
export default defineComponent({
name: 'DatasetInfo',
components: {
FormItem, FormField, FormControl,
AceEditor,
Separator,
Textarea,
@ -331,7 +328,6 @@ export default defineComponent({
SheetClose, Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger,
Tabs, TabsContent, TabsList, TabsTrigger,
Popover, PopoverContent, PopoverTrigger,
Pencil, Trash, Plus,
DataCapCard,
HoverCard, HoverCardContent, HoverCardTrigger,
AgGridVue

View File

@ -28,12 +28,13 @@ import { ToastUtils } from '@/utils/toast'
import { DatasetModel } from '@/model/dataset'
import { AlertDialog, AlertDialogContent, AlertDialogFooter, AlertDialogHeader } from '@/components/ui/alert-dialog'
import { Button } from '@/components/ui/button'
import { Alert, AlertTitle } from '@/components/ui/alert';
import { Loader2 } from 'lucide-vue-next';
import { Alert, AlertTitle } from '@/components/ui/alert'
export default defineComponent({
name: 'DatasetRebuild',
components: {Loader2, AlertTitle, Alert, AlertDialogContent, AlertDialogFooter, Button, AlertDialogHeader, AlertDialog},
components: { AlertTitle, Alert, AlertDialogContent, AlertDialogFooter, Button, AlertDialogHeader, AlertDialog },
props: {
isVisible: {
type: Boolean,
@ -55,15 +56,15 @@ export default defineComponent({
if (this.data) {
this.loading = true
DatasetService.rebuild(this.data.id)
.then((response) => {
if (response.status) {
ToastUtils.success(`${this.$t('dataset.common.rebuild')} [ ${this.data?.name} ] ${this.$t('common.successfully')}`)
this.handlerCancel()
}
})
.finally(() => {
this.loading = false
})
.then((response) => {
if (response.status) {
ToastUtils.success(`${ this.$t('dataset.common.rebuild') } [ ${ this.data?.name } ] ${ this.$t('common.successfully') }`)
this.handlerCancel()
}
})
.finally(() => {
this.loading = false
})
}
},
handlerCancel()
@ -83,5 +84,5 @@ export default defineComponent({
}
}
}
});
})
</script>

View File

@ -31,14 +31,13 @@ import { DatasetModel } from '@/model/dataset'
import { ToastUtils } from '@/utils/toast'
import { AlertDialog, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '@/components/ui/alert-dialog'
import { Button } from '@/components/ui/button'
import { Loader2 } from 'lucide-vue-next'
import { Alert, AlertTitle } from '@/components/ui/alert'
export default defineComponent({
name: 'DatasetSync',
components: {
AlertTitle, Alert,
Loader2,
Button,
AlertDialog, AlertDialogContent, AlertDialogTitle, AlertDialogFooter, AlertDialogHeader
},

View File

@ -141,7 +141,6 @@ import {
AlertDialogTrigger
} from '@/components/ui/alert-dialog'
import { Button } from '@/components/ui/button'
import { FormControl, FormDescription, FormField, FormItem, FormLabel } from '@/components/ui/form'
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '@/components/ui/select'
import { Input } from '@/components/ui/input'
import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group'
@ -155,7 +154,6 @@ export default defineComponent({
Button,
AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger,
SelectGroup, SelectTrigger, SelectContent, SelectItem, Select, SelectLabel, SelectValue,
FormDescription, FormControl, FormLabel, FormField, FormItem
},
props: {
isVisible: {

View File

@ -67,7 +67,6 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { Cog, Quote, SquareChevronRight, Table, TriangleAlert } from 'lucide-vue-next'
import TableCommon from '@/views/components/table/TableCommon.vue'
import { FilterModel } from '@/model/filter.ts'
import { useI18n } from 'vue-i18n'

View File

@ -92,7 +92,6 @@ import { useI18n } from 'vue-i18n'
import { PaginationModel, PaginationRequest } from '@/model/pagination'
import PipelineService from '@/services/pipeline'
import Common from '@/utils/common.ts'
import { CircleStop, Cog, Delete, Flower, Plus, Rss, TriangleAlert } from 'lucide-vue-next'
import { PipelineModel } from '@/model/pipeline.ts'
import MarkdownPreview from '@/views/components/markdown/MarkdownView.vue'
import {

View File

@ -121,7 +121,6 @@ import AuditService from '@/services/audit'
import { ExecuteModel } from '@/model/execute'
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import { Button } from '@/components/ui/button'
import { Ban, Bot, CircleX, Clock, Loader2, Pencil, PlayCircle, Plus, RemoveFormatting } from 'lucide-vue-next'
import langTools from 'ace-builds/src-noconflict/ext-language_tools'
import { HttpUtils } from '@/utils/http'
import FunctionService from '@/services/function'
@ -166,7 +165,6 @@ export default defineComponent({
Tabs, TabsContent, TabsList, TabsTrigger,
CardTitle, CardContent, CardHeader, Card,
SourceSelect,
Loader2, Plus, CircleX, PlayCircle, Ban, Clock, RemoveFormatting, Pencil, Bot,
VAceEditor
},
data()

View File

@ -67,7 +67,6 @@ import Tooltip from '@/views/ui/tooltip'
import Avatar from '@/views/ui/avatar'
import Tag from '@/views/ui/tag'
import Button from '@/views/ui/button'
import { Cog, Delete, Eye, Pencil } from 'lucide-vue-next'
import { ReportModel } from '@/model/report'
import ReportView from '@/views/pages/admin/report/ReportView.vue'
import {

View File

@ -62,7 +62,6 @@ import { ToastUtils } from '@/utils/toast'
import Avatar from '@/views/ui/avatar'
import Tooltip from '@/views/ui/tooltip'
import Button from '@/views/ui/button'
import { Cog, Delete, Pencil, Quote, SquareChevronRight } from 'lucide-vue-next'
import { SnippetModel } from '@/model/snippet'
import SnippetInfo from '@/views/pages/admin/snippet/SnippetInfo.vue'
import {

View File

@ -43,7 +43,6 @@
<script lang="ts">
import { defineComponent } from 'vue'
import Drawer from '@/views/ui/drawer'
import { FormControl, FormField, FormItem, FormLabel } from '@/components/ui/form'
import { SnippetModel, SnippetRequest } from '@/model/snippet'
import { cloneDeep } from 'lodash'
import Button from '@/views/ui/button'
@ -59,7 +58,6 @@ export default defineComponent({
AceEditor,
Textarea,
Input,
FormLabel, FormField, FormControl, FormItem,
Drawer,
Button
},

View File

@ -30,7 +30,6 @@ import DatabaseService from '@/services/database.ts'
import { ToastUtils } from '@/utils/toast.ts'
import { DatabaseModel } from '@/model/database.ts'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import { Clock, Database } from 'lucide-vue-next'
import Tooltip from '@/views/ui/tooltip'
export default defineComponent({

View File

@ -54,7 +54,6 @@ import TableCommon from '@/views/components/table/TableCommon.vue'
import { Badge } from '@/components/ui/badge'
import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/components/ui/hover-card'
import Common from '@/utils/common'
import { Eye } from 'lucide-vue-next'
import { MdPreview } from 'md-editor-v3'
import 'md-editor-v3/lib/style.css'

View File

@ -78,7 +78,6 @@
<script lang="ts">
import { defineComponent } from 'vue'
import Button from '@/views/ui/button'
import { CirclePlay, CircleX, Cog, History, Info, Pencil, Plus, RefreshCcwDot, Trash } from 'lucide-vue-next'
import TableCommon from '@/views/components/table/TableCommon.vue'
import { FilterModel } from '@/model/filter'
import { useI18n } from 'vue-i18n'
@ -110,7 +109,6 @@ export default defineComponent({
name: 'SourceHome',
components: {
DataCapCard,
Info,
SourceHistory,
SourceMetadata,
SourceDelete,

View File

@ -97,7 +97,6 @@ import { ToastUtils } from '@/utils/toast'
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import { cn } from '@/lib/utils'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Separator } from '@/components/ui/separator'
import Avatar from '@/views/ui/avatar'
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
@ -107,7 +106,7 @@ import { Upload } from 'view-ui-plus'
import { TokenUtils } from '@/utils/token'
import '@/views/pages/admin/source/style.css'
import { ResponseModel } from '@/model/response'
import { Minus, Plus } from 'lucide-vue-next'
import Alert from '@/views/ui/alert'
interface TestInfo
@ -130,9 +129,7 @@ export default defineComponent({
Button,
Dialog,
Tabs, TabsContent, TabsList, TabsTrigger,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
RadioGroup, RadioGroupItem,
Plus, Minus,
Alert
},
setup()

View File

@ -144,7 +144,6 @@ import { ToastUtils } from '@/utils/toast.ts'
import Button from '@/views/ui/button'
import Tooltip from '@/views/ui/tooltip'
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
import { ArrowLeft, ArrowLeftToLine, ArrowRight, ArrowRightToLine, Cog, Columns, Copy, Eye, Filter, Minus, Plus, RectangleEllipsis, RefreshCw } from 'lucide-vue-next'
import { Input } from '@/components/ui/input'
import TableCellInfo from '@/views/pages/admin/source/components/TableCellInfo.vue'
import TableRowDelete from '@/views/pages/admin/source/components/TableRowDelete.vue'
@ -167,7 +166,6 @@ export default defineComponent({
Button,
Tooltip,
Popover, PopoverContent, PopoverTrigger,
ArrowLeftToLine, ArrowLeft, ArrowRight, ArrowRightToLine, Cog, Plus, RectangleEllipsis, Copy, Minus, Eye, RefreshCw, Columns, Filter
},
created()
{

View File

@ -116,7 +116,6 @@
import { defineComponent, watch } from 'vue'
import TableService from '@/services/table'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import { ArrowUp10, ArrowUpDown, CalendarHeart, Clock, Cog, Database, RemoveFormatting, Search, Table, TableCellsMerge } from 'lucide-vue-next'
import Tooltip from '@/views/ui/tooltip'
import { SqlType, TableFilter, TableModel } from '@/model/table'
import { Separator } from '@/components/ui/separator'
@ -139,7 +138,6 @@ export default defineComponent({
Separator,
Tooltip,
CircularLoading,
Database, Table, Clock, CalendarHeart, ArrowUpDown, TableCellsMerge, RemoveFormatting, ArrowUp10, Search, Cog,
Popover, PopoverContent, PopoverTrigger
},
created()

View File

@ -97,9 +97,8 @@ import { SqlType, TableModel, TableRequest } from '@/model/table'
import Button from '@/views/ui/button'
import { ColumnModel } from '@/model/column'
import { Textarea } from '@/components/ui/textarea'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible'
import { Minus, Plus } from 'lucide-vue-next'
import { Input } from '@/components/ui/input'
import Switch from '@/views/ui/switch'
import { ToastUtils } from '@/utils/toast'
@ -113,8 +112,6 @@ export default defineComponent({
CircularLoading,
Switch,
Input,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
Minus, Plus,
Textarea,
Collapsible, CollapsibleContent, CollapsibleTrigger,
Button,

View File

@ -104,9 +104,8 @@ import { SqlType, TableModel, TableRequest } from '@/model/table'
import Button from '@/views/ui/button'
import { ColumnRequest } from '@/model/column'
import { Textarea } from '@/components/ui/textarea'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible'
import { Minus, Plus } from 'lucide-vue-next'
import { Input } from '@/components/ui/input'
import Switch from '@/views/ui/switch'
import { ToastUtils } from '@/utils/toast'
@ -117,8 +116,6 @@ export default defineComponent({
components: {
Switch,
Input,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
Minus, Plus,
Textarea,
Collapsible, CollapsibleContent, CollapsibleTrigger,
Button,

View File

@ -31,7 +31,6 @@
import { defineComponent } from 'vue'
import Drawer from '@/views/ui/drawer'
import Button from '@/views/ui/button'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Checkbox } from '@/components/ui/checkbox'
import { useForm } from 'vee-validate'
@ -41,7 +40,6 @@ export default defineComponent({
Button,
Drawer,
Checkbox,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage
},
props: {
isVisible: {

View File

@ -132,10 +132,9 @@ import { TableModel, TableRequest } from '@/model/table'
import TableService from '@/services/table'
import { toNumber } from 'lodash'
import { ToastUtils } from '@/utils/toast'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible'
import { Minus, Plus } from 'lucide-vue-next'
import { ColumnRequest } from '@/model/column'
import { Textarea } from '@/components/ui/textarea'
import Switch from '@/views/ui/switch'
@ -148,9 +147,7 @@ export default defineComponent({
Dialog,
Button,
Divider,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
Collapsible, CollapsibleContent, CollapsibleTrigger,
Plus, Minus,
Switch
},
computed: {

View File

@ -56,7 +56,6 @@ import TableService from '@/services/table'
import { ToastUtils } from '@/utils/toast'
import { TableExportModel, TableExportRequest } from '@/model/table'
import Button from '@/views/ui/button'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { toNumber } from 'lodash'
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
import { Label } from '@/components/ui/label'
@ -69,7 +68,6 @@ export default defineComponent({
Label,
Dialog,
Button,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
RadioGroup, RadioGroupItem
},
computed: {

View File

@ -95,21 +95,16 @@ import { cloneDeep } from 'lodash'
import Dialog from '@/views/ui/dialog'
import Button from '@/views/ui/button'
import Divider from '@/views/ui/divider'
import { FormControl, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '@/components/ui/select'
import { Input } from '@/components/ui/input'
import { Minus } from 'lucide-vue-next'
export default defineComponent({
name: 'TableRowFilter',
components: {
Minus,
Input,
FormMessage,
Dialog,
Button,
Divider,
FormControl, FormField, FormItem, FormLabel,
Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue
},
computed: {

View File

@ -50,14 +50,13 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import UserService from '@/services/user'
import { UserChatModel } from '@/model/user'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import { ToastUtils } from '@/utils/toast'
import Common from '@/utils/common'
import { Loader2 } from 'lucide-vue-next'
import { Button } from '@/components/ui/button'
import { isEmpty } from 'lodash'
@ -65,10 +64,8 @@ export default defineComponent({
name: 'AssistantForm',
components: {
Button,
Loader2,
CircularLoading,
Input,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage
},
data()
{

View File

@ -43,7 +43,6 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import UserService from '@/services/user'
import { UserEditor } from '@/model/user'
@ -54,16 +53,14 @@ import themes from './AceEditor'
import { Button } from '@/components/ui/button'
import Common from '@/utils/common'
import { ToastUtils } from '@/utils/toast'
import { Loader2 } from 'lucide-vue-next'
export default defineComponent({
name: 'EditorForm',
components: {
Loader2,
Button,
CircularLoading,
Input,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
RadioGroup, RadioGroupItem,
VAceEditor
},

View File

@ -66,7 +66,6 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import UserService from '@/services/user'
import { UserModel } from '@/model/user'
@ -75,20 +74,18 @@ import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
import { Label } from '@/components/ui/label'
import Tooltip from '@/views/ui/tooltip'
import Button from '@/views/ui/button'
import { Image, Trash, Upload } from 'lucide-vue-next'
import Common from '@/utils/common'
export default defineComponent({
name: 'ProfileForm',
components: {
Image, Upload, Trash,
Image,
Tooltip,
Button,
Label,
Avatar, AvatarImage, AvatarFallback,
CircularLoading,
Input,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage
},
data()
{

View File

@ -43,14 +43,13 @@
<script lang="ts">
import { defineComponent, inject, ref } from 'vue'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import UserService from '@/services/user'
import { UserPasswordModel } from '@/model/user'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import { ToastUtils } from '@/utils/toast'
import Common from '@/utils/common'
import { Loader2 } from 'lucide-vue-next'
import { Button } from '@/components/ui/button'
import * as z from 'zod'
import { toTypedSchema } from '@vee-validate/zod'
@ -61,10 +60,8 @@ export default defineComponent({
name: 'PasswordForm',
components: {
Button,
Loader2,
CircularLoading,
Input,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage
},
setup()
{

View File

@ -41,24 +41,21 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import UserService from '@/services/user'
import { UsernameModel } from '@/model/user'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import { ToastUtils } from '@/utils/toast'
import Common from '@/utils/common'
import { Loader2 } from 'lucide-vue-next'
import { Button } from '@/components/ui/button'
export default defineComponent({
name: 'UsernameForm',
components: {
Button,
Loader2,
CircularLoading,
Input,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage
},
data()
{

View File

@ -28,7 +28,7 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
import { Loader2 } from 'lucide-vue-next'
import { HttpUtils } from '@/utils/http'
import UserService from '@/services/user'
import { DataCapCard } from '@/views/ui/card'
@ -37,7 +37,6 @@ export default defineComponent({
name: 'DashboardHome',
components: {
DataCapCard,
Loader2,
CardContent, CardTitle, CardHeader, Card
},
data()

View File

@ -61,7 +61,6 @@
import { defineComponent } from 'vue'
import { DataCapCard } from '@/views/ui/card'
import TableCommon from '@/views/components/table/TableCommon.vue'
import { Cog, Import, Pencil, Plus } from 'lucide-vue-next'
import { FilterModel } from '@/model/filter'
import { createHeaders } from '@/views/pages/system/function/FunctionUtils'
import { useI18n } from 'vue-i18n'

View File

@ -86,7 +86,7 @@ import FunctionService from '@/services/function'
import SourceService from '@/services/source'
import { ToastUtils } from '@/utils/toast'
import { Button } from '@/components/ui/button'
import { Loader2 } from 'lucide-vue-next'
import { Label } from '@/components/ui/label'
import { Input } from '@/components/ui/input'
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '@/components/ui/select'
@ -101,7 +101,6 @@ export default defineComponent({
SelectItem, SelectLabel, SelectValue, SelectTrigger, SelectGroup, SelectContent, Select,
Input,
Label,
Loader2,
Button,
Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger,
Tabs, TabsContent, TabsList, TabsTrigger,

View File

@ -61,7 +61,7 @@ import FunctionService from '@/services/function'
import SourceService from '@/services/source'
import { ToastUtils } from '@/utils/toast'
import { Button } from '@/components/ui/button'
import { Loader2 } from 'lucide-vue-next'
import { Label } from '@/components/ui/label'
import { Input } from '@/components/ui/input'
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '@/components/ui/select'
@ -79,7 +79,6 @@ export default defineComponent({
SelectItem, SelectLabel, SelectValue, SelectTrigger, SelectGroup, SelectContent, Select,
Input,
Label,
Loader2,
Button,
Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger
},

View File

@ -32,7 +32,6 @@
import { defineComponent } from 'vue'
import { DataCapCard } from '@/views/ui/card'
import TableCommon from '@/views/components/table/TableCommon.vue'
import { Pencil, Plus } from 'lucide-vue-next'
import { Button } from '@/components/ui/button'
import { FilterModel } from '@/model/filter'
import { useI18n } from 'vue-i18n'

View File

@ -149,7 +149,6 @@ import Drawer from '@/views/ui/drawer'
import { cloneDeep } from 'lodash'
import { Label } from '@/components/ui/label'
import { Input } from '@/components/ui/input'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '@/components/ui/select'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import MenuService from '@/services/menu'
@ -157,7 +156,7 @@ import { FilterModel } from '@/model/filter'
import { Switch } from '@/components/ui/switch'
import { Textarea } from '@/components/ui/textarea'
import { Button } from '@/components/ui/button'
import { Loader2 } from 'lucide-vue-next'
import { ToastUtils } from '@/utils/toast'
export default defineComponent({
@ -170,9 +169,7 @@ export default defineComponent({
Input,
Label,
Drawer,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue,
Loader2
},
props: {
isVisible: {

View File

@ -48,7 +48,6 @@ import { defineComponent } from 'vue'
import TableCommon from '@/views/components/table/TableCommon.vue'
import { Button } from '@/components/ui/button'
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
import { Menu, Pencil, Plus } from 'lucide-vue-next'
import { FilterModel } from '@/model/filter'
import { createHeaders } from '@/views/pages/system/role/RoleUtils'
import { useI18n } from 'vue-i18n'

View File

@ -48,9 +48,8 @@ import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, D
import { RoleModel, RoleRequest } from '@/model/role'
import { StringUtils } from '@/utils/string'
import { CardContent } from '@/components/ui/card'
import { FormControl, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import { Loader2 } from 'lucide-vue-next'
import * as z from 'zod'
import { toTypedSchema } from '@vee-validate/zod'
import { useForm } from 'vee-validate'
@ -62,9 +61,7 @@ import RoleService from '@/services/role'
export default defineComponent({
name: 'RoleInfo',
components: {
FormField, FormControl, FormMessage, FormLabel, FormItem,
DialogFooter, DialogDescription, DialogTitle, DialogHeader, DialogContent, DialogTrigger, Dialog,
Loader2,
CardContent,
Button, Textarea, Input
},

View File

@ -21,7 +21,7 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { Loader2 } from 'lucide-vue-next'
import { CardContent } from '@/components/ui/card'
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '@/components/ui/dialog'
import { RoleModel } from '@/model/role'
@ -41,7 +41,6 @@ export default defineComponent({
Button,
DialogFooter, DialogDescription, DialogTitle, DialogHeader, DialogContent, DialogTrigger, Dialog,
CardContent,
Loader2,
Tree
},
props: {

View File

@ -35,7 +35,6 @@ import { DataCapCard } from '@/views/ui/card'
import TableCommon from '@/views/components/table/TableCommon.vue'
import { Button } from '@/components/ui/button'
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
import { ArrowBigUp, History, Pencil } from 'lucide-vue-next'
import { FilterModel } from '@/model/filter'
import { createHeaders } from './ScheduleUtils'
import { useI18n } from 'vue-i18n'

View File

@ -45,7 +45,6 @@
import { defineComponent } from 'vue'
import { DataCapCard } from '@/views/ui/card'
import TableCommon from '@/views/components/table/TableCommon.vue'
import { Cog, Import, Pencil, Plus } from 'lucide-vue-next'
import { Button } from '@/components/ui/button'
import { FilterModel } from '@/model/filter'
import { createHeaders } from '@/views/pages/system/template/TemplateUtils'

View File

@ -70,7 +70,7 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { TemplateModel, TemplateRequest } from '@/model/template'
import { Loader2 } from 'lucide-vue-next'
import { Textarea } from '@/components/ui/textarea'
import { Sheet, SheetClose, SheetContent, SheetFooter, SheetHeader, SheetTitle } from '@/components/ui/sheet'
import { ToastUtils } from '@/utils/toast'
@ -82,7 +82,6 @@ import { Button } from '@/components/ui/button'
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from '@/components/ui/dropdown-menu'
import { cloneDeep } from 'lodash'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import AceEditor from '@/views/components/editor/AceEditor.vue'
export default defineComponent({
@ -95,9 +94,7 @@ export default defineComponent({
Label,
SheetClose, SheetFooter, SheetTitle, SheetHeader, Sheet, SheetContent,
Textarea,
Loader2,
DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage
},
computed: {
visible: {

View File

@ -41,7 +41,6 @@ import UserService from '@/services/user'
import TableCommon from '@/views/components/table/TableCommon.vue'
import { useI18n } from 'vue-i18n'
import { createHeaders } from './UserUtils'
import { ArrowUpFromLine, Loader2, Plus } from 'lucide-vue-next'
import { DataCapCard } from '@/views/ui/card'
import { PaginationModel, PaginationRequest } from '@/model/pagination'
import { Button } from '@/components/ui/button'
@ -63,7 +62,6 @@ export default defineComponent({
TooltipContent, TooltipTrigger, Tooltip, TooltipProvider,
Button,
TableCommon,
Loader2, ArrowUpFromLine, Plus
},
setup()
{

View File

@ -38,11 +38,10 @@
<script lang="ts">
import { defineComponent, inject, ref } from 'vue'
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
import { Input } from '@/components/ui/input'
import { UserModel } from '@/model/user'
import CircularLoading from '@/views/components/loading/CircularLoading.vue'
import { Loader2 } from 'lucide-vue-next'
import { Button } from '@/components/ui/button'
import * as z from 'zod'
import { toTypedSchema } from '@vee-validate/zod'
@ -54,10 +53,8 @@ export default defineComponent({
name: 'UserForm',
components: {
Button,
Loader2,
CircularLoading,
Input,
FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage
},
setup(props, { emit })
{

View File

@ -39,7 +39,7 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog'
import { Loader2 } from 'lucide-vue-next'
import { CardContent } from '@/components/ui/card'
import { StringUtils } from '@/utils/string'
import { UserModel, UserRoleModel } from '@/model/user'
@ -47,7 +47,6 @@ import { Button } from '@/components/ui/button'
import { FilterModel } from '@/model/filter'
import RoleService from '@/services/role'
import { Checkbox } from '@/components/ui/checkbox'
import { FormControl, FormField, FormItem, FormLabel } from '@/components/ui/form'
import { useForm } from 'vee-validate'
import { RoleModel } from '@/model/role'
import { ToastUtils } from '@/utils/toast'
@ -59,8 +58,6 @@ export default defineComponent({
Checkbox, Button,
CardContent,
DialogDescription, DialogTitle, Dialog, DialogFooter, DialogContent, DialogHeader,
Loader2,
FormField, FormItem, FormLabel, FormControl
},
props: {
isVisible: {

View File

@ -11,13 +11,11 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { Button } from '@/components/ui/button'
import { Loader2 } from 'lucide-vue-next'
export default defineComponent({
name: 'DcButton',
components: {
Button,
Loader2
},
props: {
size: {

View File

@ -33,7 +33,7 @@ import { ref, watchEffect } from 'vue'
import { cn } from '@/lib/utils'
import { Shadow } from '@/enums/shadow.ts'
import { Card, CardContent, CardFooter, CardHeader, CardTitle } from '@/components/ui/card'
import { Loader2 } from 'lucide-vue-next'
const props = defineProps<{
title?: string

View File

@ -1,93 +0,0 @@
const animate = require("tailwindcss-animate")
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
safelist: ["dark"],
prefix: "",
content: [
'./pages/**/*.{ts,tsx,vue}',
'./components/**/*.{ts,tsx,vue}',
'./app/**/*.{ts,tsx,vue}',
'./src/**/*.{ts,tsx,vue}',
],
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
},
borderRadius: {
xl: "calc(var(--radius) + 4px)",
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
keyframes: {
"accordion-down": {
from: {height: 0},
to: {height: "var(--radix-accordion-content-height)"},
},
"accordion-up": {
from: {height: "var(--radix-accordion-content-height)"},
to: {height: 0},
},
"collapsible-down": {
from: {height: 0},
to: {height: 'var(--radix-collapsible-content-height)'},
},
"collapsible-up": {
from: {height: 'var(--radix-collapsible-content-height)'},
to: {height: 0},
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"collapsible-down": "collapsible-down 0.2s ease-in-out",
"collapsible-up": "collapsible-up 0.2s ease-in-out",
},
},
},
plugins: [animate],
}

View File

@ -1,20 +1,12 @@
import path from 'path'
import vue from '@vitejs/plugin-vue'
import {defineConfig} from 'vite'
import tailwind from 'tailwindcss'
import autoprefixer from 'autoprefixer'
import { defineConfig } from 'vite'
export default defineConfig({
css: {
postcss: {
plugins: [tailwind(), autoprefixer()],
},
},
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
'@': path.resolve(__dirname, './src')
}
}
})

File diff suppressed because it is too large Load Diff

View File

@ -34,7 +34,7 @@ public class SeatunnelExecutorTest
ExecutorConfigure input = new ExecutorConfigure("ClickHouse", properties, supportOptions);
ExecutorConfigure output = new ExecutorConfigure("Console");
request = new ExecutorRequest(System.getProperty("user.dir"), input, output);
request = new ExecutorRequest(System.getProperty("user.dir"), input, input);
}
@Test

View File

@ -2,5 +2,6 @@ package io.edurt.datacap.executor.common
enum class RunProtocol {
NONE,
JDBC
JDBC,
NATIVE
}