Wangbo 4 недель назад
Родитель
Сommit
25383c9bfc

+ 1 - 1
app/(commonLayout)/database/Container.tsx

@@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next'
 import { useDebounceFn } from 'ahooks'
 
 // Components
-import ExternalAPIPanel from '../../components/datasets/external-api/external-api-panel'
+import ExternalAPIPanel from '@/app/components/datasets/external-api/external-api-panel'
 import Datasets from './Datasets'
 import Database from './Database'
 

+ 1 - 1
app/(commonLayout)/database/datasets/Container.tsx

@@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next'
 import { useDebounceFn } from 'ahooks'
 
 // Components
-import ExternalAPIPanel from '../../components/datasets/external-api/external-api-panel'
+import ExternalAPIPanel from '@/app/components/datasets/external-api/external-api-panel'
 import Datasets from './Datasets'
 import Database from './Database'
 

+ 1 - 1
app/(commonLayout)/datasets/Container.tsx

@@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next'
 import { useDebounceFn } from 'ahooks'
 
 // Components
-import ExternalAPIPanel from '../../components/datasets/external-api/external-api-panel'
+import ExternalAPIPanel from '@/app/components/datasets/external-api/external-api-panel'
 import Datasets from './Datasets'
 
 import DatasetFooter from './DatasetFooter'

+ 1 - 0
app/components/base/icons/src/vender/line/files/index.ts

@@ -9,3 +9,4 @@ export { default as FilePlus02 } from './FilePlus02'
 export { default as FileText } from './FileText'
 export { default as FileUpload } from './FileUpload'
 export { default as Folder } from './Folder'
+// export { default as Folder } from './Folder'

+ 1 - 1
app/components/base/input/index.tsx

@@ -52,7 +52,7 @@ const Input = ({
       <input
         style={styleCss}
         className={cn(
-          'w-full py-[7px] bg-components-input-bg-normal border border-transparent text-components-input-text-filled hover:bg-components-input-bg-hover hover:border-components-input-border-hover focus:bg-components-input-bg-active focus:border-components-input-border-active focus:shadow-xs placeholder:text-components-input-text-placeholder appearance-none outline-none caret-primary-600',
+          'w-full py-[7px] bg-gray-200 border border-transparent text-components-input-text-filled hover:bg-components-input-bg-hover hover:border-components-input-border-hover focus:bg-components-input-bg-active focus:border-components-input-border-active focus:shadow-xs placeholder:text-components-input-text-placeholder appearance-none outline-none caret-primary-600',
           inputVariants({ size }),
           showLeftIcon && 'pl-[26px]',
           showLeftIcon && size === 'large' && 'pl-7',

+ 15 - 5
app/components/base/logo/logo-site.tsx

@@ -18,11 +18,21 @@ const LogoSite: FC<LogoSiteProps> = ({
 
   const src = theme === 'light' ? '/logo/logo-site.png' : `/logo/logo-site-${theme}.png`
   return (
-    <img
-      src={src}
-      className={classNames('block w-auto h-10', className)}
-      alt='logo'
-    />
+    <div>
+      <img
+        src={src}
+        style={{display:'unset'}}
+        className={classNames('w-auto h-10', className)}
+        alt='logo'
+      />
+
+      <span className={classNames('w-auto', className)}
+        style={{ fontWeight: 'bold', fontSize: '20px', letterSpacing: '1px' }}>
+        智脑网络云平台
+      </span>
+    </div>
+
+
   )
 }
 

+ 2 - 2
app/components/base/select/locale.tsx

@@ -19,7 +19,7 @@ export default function Select({
 
   return (
     <div className="w-56 text-right">
-      <Menu as="div" className="relative inline-block text-left">
+      {/* <Menu as="div" className="relative inline-block text-left">
         <div>
           <Menu.Button className="inline-flex w-full h-[44px]justify-center items-center
           rounded-lg px-[10px] py-[6px]
@@ -62,7 +62,7 @@ export default function Select({
 
           </Menu.Items>
         </Transition>
-      </Menu>
+      </Menu> */}
     </div>
   )
 }

+ 2 - 2
app/components/base/tab-slider-new/index.tsx

@@ -1,6 +1,6 @@
 import type { FC } from 'react'
 import cn from '@/utils/classnames'
-
+import style from './page.module.css'
 type Option = {
   value: string
   text: string
@@ -26,7 +26,7 @@ const TabSliderNew: FC<TabSliderProps> = ({
           onClick={() => onChange(option.value)}
           className={cn(
             'mr-1 px-3 py-[7px] h-[32px] flex items-center rounded-lg border-[0.5px] border-transparent text-gray-700 text-[13px] font-medium leading-[18px] cursor-pointer hover:bg-gray-200',
-            value === option.value && 'bg-white border-gray-200 shadow-xs text-primary-600 hover:bg-white',
+            value === option.value &&style.tabcolor,'bg-white border-gray-200 shadow-xs hover:bg-white ',
           )}
         >
           {option.icon}

+ 4 - 0
app/components/base/tab-slider-new/page.module.css

@@ -0,0 +1,4 @@
+.tabcolor{
+    color: #fff !important;
+    background: linear-gradient(to right,#A3D8E7, #6F94F4);
+}

+ 4 - 4
app/components/base/tag-management/filter.tsx

@@ -78,10 +78,10 @@ const TagFilter: FC<TagFilterProps> = ({
           className='block'
         >
           <div className={cn(
-            'flex items-center gap-1 px-2 h-8 rounded-lg border-[0.5px] border-transparent bg-gray-200 cursor-pointer hover:bg-gray-300',
-            open && !value.length && '!bg-gray-300 hover:bg-gray-300',
-            !open && !!value.length && '!bg-white/80 shadow-xs !border-black/5 hover:!bg-gray-200',
-            open && !!value.length && '!bg-gray-200 !border-black/5 shadow-xs hover:!bg-gray-200',
+            'flex items-center gap-1 px-2 h-8 rounded-lg border-[0.5px] border-transparent bg-white cursor-pointer hover:bg-gray-300',
+            open && !value.length && '!bg-white hover:bg-white',
+            !open && !!value.length && '!bg-white shadow-xs !border-black/5 hover:!bg-white',
+            open && !!value.length && '!bg-white !border-black/5 shadow-xs hover:!bg-white',
           )}>
             <div className='p-[1px]'>
               <Tag01 className='h-3.5 w-3.5 text-gray-700' />

+ 4 - 4
app/components/header/index.tsx

@@ -13,7 +13,7 @@ import DatabaseNav from './database-nav'
 import EnvNav from './env-nav'
 import ExploreNav from './explore-nav'
 import ToolsNav from './tools-nav'
-import GithubStar from './github-star'
+// import GithubStar from './github-star'
 import LicenseNav from './license-env'
 import { WorkspaceProvider } from '@/context/workspace-context'
 import AppContext, { useAppContext } from '@/context/app-context'
@@ -64,7 +64,7 @@ const Header = () => {
           <Link href="/apps" className='flex items-center mr-4'>
             <LogoSite className='object-contain' />
           </Link>
-          {systemFeatures.license.status === LicenseStatus.NONE && <GithubStar />}
+          {/* {systemFeatures.license.status === LicenseStatus.NONE && <GithubStar />} */}
         </>}
       </div>
       {isMobile && (
@@ -72,7 +72,7 @@ const Header = () => {
           <Link href="/apps" className='flex items-center mr-4'>
             <LogoSite />
           </Link>
-          {systemFeatures.license.status === LicenseStatus.NONE && <GithubStar />}
+          {/* {systemFeatures.license.status === LicenseStatus.NONE && <GithubStar />} */}
         </div>
       )}
       {!isMobile && (
@@ -87,7 +87,7 @@ const Header = () => {
       )}
       <div className='flex items-center flex-shrink-0'>
         <LicenseNav />
-        <EnvNav />
+        {/* <EnvNav /> */}
         {enableBilling && (
           <div className='mr-3 select-none'>
             <HeaderBillingBtn onClick={handlePlanClick} />

+ 9 - 25
yarn.lock

@@ -12178,7 +12178,7 @@ string-length@^4.0.1:
     is-fullwidth-code-point "^3.0.0"
     strip-ansi "^6.0.1"
 
-string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
+string-width@^4.1.0, string-width@^4.2.0:
   version "4.2.3"
   resolved "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz"
   integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -12187,25 +12187,16 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
     is-fullwidth-code-point "^3.0.0"
     strip-ansi "^6.0.1"
 
-string-width@^5.0.0:
-  version "5.1.2"
-  resolved "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz"
-  integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==
-  dependencies:
-    eastasianwidth "^0.2.0"
-    emoji-regex "^9.2.2"
-    strip-ansi "^7.0.1"
-
-string-width@^5.0.1:
-  version "5.1.2"
-  resolved "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz"
-  integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==
+string-width@^4.2.3:
+  version "4.2.3"
+  resolved "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz"
+  integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
   dependencies:
-    eastasianwidth "^0.2.0"
-    emoji-regex "^9.2.2"
-    strip-ansi "^7.0.1"
+    emoji-regex "^8.0.0"
+    is-fullwidth-code-point "^3.0.0"
+    strip-ansi "^6.0.1"
 
-string-width@^5.1.2:
+string-width@^5.0.0, string-width@^5.0.1, string-width@^5.1.2:
   version "5.1.2"
   resolved "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz"
   integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==
@@ -12278,13 +12269,6 @@ strip-ansi@^6.0.0, strip-ansi@^6.0.1:
   dependencies:
     ansi-regex "^5.0.1"
 
-strip-ansi@^6.0.1:
-  version "6.0.1"
-  resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz"
-  integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
-  dependencies:
-    ansi-regex "^5.0.1"
-
 strip-ansi@^7.0.1, strip-ansi@^7.1.0:
   version "7.1.0"
   resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz"