-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add loading to ChatContainer and set font family to inter and a…
…dd tooltip to Form.Item and download documents on the document list page (#136) * feat: download documents on the document list page * feat: add tooltip to Form.Item * feat: set font family to inter * feat: add loading to ChatContainer
- Loading branch information
Showing
65 changed files
with
434 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import { ConfigProvider } from 'antd'; | ||
import React, { ReactNode } from 'react'; | ||
import { Inspector } from 'react-dev-inspector'; | ||
|
||
export function rootContainer(container: ReactNode) { | ||
return React.createElement(Inspector, null, container); | ||
return React.createElement( | ||
ConfigProvider, | ||
{ | ||
theme: { | ||
token: { | ||
fontFamily: 'Inter', | ||
}, | ||
}, | ||
}, | ||
container, | ||
); | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import url(./inter.less); | ||
|
||
body { | ||
font-family: Inter; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,273 @@ | ||
/* Variable fonts usage: | ||
:root { font-family: "Inter", sans-serif; } | ||
@supports (font-variation-settings: normal) { | ||
:root { font-family: "InterVariable", sans-serif; font-optical-sizing: auto; } | ||
} */ | ||
@font-face { | ||
font-family: InterVariable; | ||
font-style: normal; | ||
font-weight: 100 900; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterVariable.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: InterVariable; | ||
font-style: italic; | ||
font-weight: 100 900; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterVariable-Italic.woff2') format('woff2'); | ||
} | ||
|
||
/* static fonts */ | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: normal; | ||
font-weight: 100; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-Thin.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: italic; | ||
font-weight: 100; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-ThinItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: normal; | ||
font-weight: 200; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-ExtraLight.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: italic; | ||
font-weight: 200; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-ExtraLightItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: normal; | ||
font-weight: 300; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-Light.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: italic; | ||
font-weight: 300; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-LightItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: normal; | ||
font-weight: 400; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-Regular.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: italic; | ||
font-weight: 400; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-Italic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-Medium.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: italic; | ||
font-weight: 500; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-MediumItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: normal; | ||
font-weight: 600; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-SemiBold.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: italic; | ||
font-weight: 600; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-SemiBoldItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: normal; | ||
font-weight: 700; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-Bold.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: italic; | ||
font-weight: 700; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-BoldItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: normal; | ||
font-weight: 800; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-ExtraBold.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: italic; | ||
font-weight: 800; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-ExtraBoldItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: normal; | ||
font-weight: 900; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-Black.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'Inter'; | ||
font-style: italic; | ||
font-weight: 900; | ||
font-display: swap; | ||
src: url('@/assets/inter/Inter-BlackItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: normal; | ||
font-weight: 100; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-Thin.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: italic; | ||
font-weight: 100; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-ThinItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: normal; | ||
font-weight: 200; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-ExtraLight.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: italic; | ||
font-weight: 200; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-ExtraLightItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: normal; | ||
font-weight: 300; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-Light.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: italic; | ||
font-weight: 300; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-LightItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: normal; | ||
font-weight: 400; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-Regular.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: italic; | ||
font-weight: 400; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-Italic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-Medium.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: italic; | ||
font-weight: 500; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-MediumItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: normal; | ||
font-weight: 600; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-SemiBold.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: italic; | ||
font-weight: 600; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-SemiBoldItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: normal; | ||
font-weight: 700; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-Bold.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: italic; | ||
font-weight: 700; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-BoldItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: normal; | ||
font-weight: 800; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-ExtraBold.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: italic; | ||
font-weight: 800; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-ExtraBoldItalic.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: normal; | ||
font-weight: 900; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-Black.woff2') format('woff2'); | ||
} | ||
@font-face { | ||
font-family: 'InterDisplay'; | ||
font-style: italic; | ||
font-weight: 900; | ||
font-display: swap; | ||
src: url('@/assets/inter/InterDisplay-BlackItalic.woff2') format('woff2'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,3 @@ | |
@fontSize14: 14px; | ||
@fontSize16: 16px; | ||
@fontSize18: 18px; | ||
|
||
@fontFamilyNunitoSans: 'Nunito Sans'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.