/* * Copyright (c) 2024 LangChat. TyCoding All Rights Reserved. * * Licensed under the GNU Affero General Public License, Version 3 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.gnu.org/licenses/agpl-3.0.html * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { App } from 'vue'; import { create, NAlert, NAutoComplete, NAvatar, NBackTop, NBadge, NBreadcrumb, NBreadcrumbItem, NButton, NCard, NCascader, NCheckbox, NCheckboxGroup, NCol, NCollapse, NCollapseItem, NColorPicker, NConfigProvider, NCountdown, NDataTable, NDatePicker, NDescriptions, NDescriptionsItem, NDialogProvider, NDivider, NDrawer, NDrawerContent, NDropdown, NElement, NEllipsis, NEmpty, NForm, NFormItem, NGradientText, NGrid, NGridItem, NIcon, NInput, NInputGroup, NInputNumber, NLayout, NLayoutContent, NLayoutFooter, NLayoutHeader, NLayoutSider, NList, NListItem, NLoadingBarProvider, NMenu, NMessageProvider, NModal, NNotificationProvider, NP, NPagination, NPopconfirm, NPopover, NPopselect, NProgress, NRadio, NRadioGroup, NResult, NRow, NScrollbar, NSelect, NSkeleton, NSlider, NSpace, NSpin, NSplit, NStep, NSteps, NSwitch, NTab, NTable, NTabPane, NTabs, NTag, NText, NThing, NTimePicker, NTooltip, NTree, NUpload, NUploadDragger, } from 'naive-ui'; // https://www.naiveui.com/en-US/os-theme/docs/import-on-demand const naive = create({ components: [ NMessageProvider, NDialogProvider, NConfigProvider, NInput, NButton, NForm, NFormItem, NCheckboxGroup, NCheckbox, NIcon, NLayout, NLayoutHeader, NLayoutContent, NLayoutFooter, NLayoutSider, NMenu, NBreadcrumb, NBreadcrumbItem, NDropdown, NSpace, NTooltip, NAvatar, NTabs, NTab, NTabPane, NCard, NRow, NCol, NDrawer, NDrawerContent, NDivider, NSwitch, NBadge, NAlert, NElement, NTag, NNotificationProvider, NProgress, NDatePicker, NGrid, NGridItem, NList, NListItem, NThing, NDataTable, NPopover, NPagination, NSelect, NRadioGroup, NRadio, NSteps, NStep, NInputGroup, NResult, NDescriptions, NDescriptionsItem, NTable, NInputNumber, NLoadingBarProvider, NModal, NUpload, NUploadDragger, NTree, NSpin, NTimePicker, NBackTop, NSkeleton, NCascader, NGradientText, NEllipsis, NSlider, NPopconfirm, NScrollbar, NAutoComplete, NCountdown, NText, NP, NCollapse, NCollapseItem, NColorPicker, NEmpty, NPopselect, NSplit, ], }); export function setupNaive(app: App) { app.use(naive); }