forked from RobinYang11/goji
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c949f79
commit 3ce97a3
Showing
36 changed files
with
24,992 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
|
||
/node_modules/ | ||
|
||
/examples/node_modules/ |
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,9 @@ | ||
|
||
|
||
|
||
module.exports = { | ||
presets: [ | ||
'@babel/preset-env', | ||
['@babel/preset-react', { runtime: 'automatic' }], | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 @@ | ||
/// <reference types="react" /> | ||
interface props { | ||
locale: string; | ||
} | ||
export default function _8d(config: props): (props: any) => JSX.Element; | ||
export {}; |
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 @@ | ||
export {}; |
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,2 @@ | ||
export { default as Upload } from './upload'; | ||
export { default as Modal } from './modal/modal'; |
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,34 @@ | ||
import { ReactElement } from 'react'; | ||
type ModalProps = { | ||
/** | ||
* css class name | ||
*/ | ||
className?: string; | ||
children: ReactElement; | ||
/** | ||
* visible control | ||
*/ | ||
visible?: boolean; | ||
/** | ||
* modal content width | ||
*/ | ||
width?: number; | ||
/** | ||
* callback of mask clicked | ||
*/ | ||
onClose?: Function; | ||
/** | ||
* | ||
*/ | ||
dontDestroyOnClose?: boolean; | ||
/** | ||
* inline style | ||
*/ | ||
style?: any; | ||
/** | ||
* framer-motion configaration please refer ## https://www.framer.com/motion/motion-config/ | ||
* */ | ||
motionConfig?: any; | ||
}; | ||
export default function Modal(props: ModalProps): JSX.Element | null; | ||
export {}; |
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,8 @@ | ||
/// <reference types="react" /> | ||
interface IUploadProps { | ||
url: string; | ||
name: string; | ||
onClick(): void; | ||
} | ||
export default function Upload(props: IUploadProps): JSX.Element; | ||
export {}; |
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 @@ | ||
export * from './components'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 @@ | ||
/// <reference types="react" /> | ||
interface props { | ||
locale: string; | ||
} | ||
export default function _8d(config: props): (props: any) => JSX.Element; | ||
export {}; |
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 @@ | ||
export {}; |
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,2 @@ | ||
export { default as Upload } from './upload'; | ||
export { default as Modal } from './modal/modal'; |
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,34 @@ | ||
import { ReactElement } from 'react'; | ||
type ModalProps = { | ||
/** | ||
* css class name | ||
*/ | ||
className?: string; | ||
children: ReactElement; | ||
/** | ||
* visible control | ||
*/ | ||
visible?: boolean; | ||
/** | ||
* modal content width | ||
*/ | ||
width?: number; | ||
/** | ||
* callback of mask clicked | ||
*/ | ||
onClose?: Function; | ||
/** | ||
* | ||
*/ | ||
dontDestroyOnClose?: boolean; | ||
/** | ||
* inline style | ||
*/ | ||
style?: any; | ||
/** | ||
* framer-motion configaration please refer ## https://www.framer.com/motion/motion-config/ | ||
* */ | ||
motionConfig?: any; | ||
}; | ||
export default function Modal(props: ModalProps): JSX.Element | null; | ||
export {}; |
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,8 @@ | ||
/// <reference types="react" /> | ||
interface IUploadProps { | ||
url: string; | ||
name: string; | ||
onClick(): void; | ||
} | ||
export default function Upload(props: IUploadProps): JSX.Element; | ||
export {}; |
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 @@ | ||
export * from './components'; |
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,44 @@ | ||
/// <reference types="react" /> | ||
import { ReactElement } from 'react'; | ||
|
||
interface IUploadProps { | ||
url: string; | ||
name: string; | ||
onClick(): void; | ||
} | ||
declare function Upload(props: IUploadProps): JSX.Element; | ||
|
||
type ModalProps = { | ||
/** | ||
* css class name | ||
*/ | ||
className?: string; | ||
children: ReactElement; | ||
/** | ||
* visible control | ||
*/ | ||
visible?: boolean; | ||
/** | ||
* modal content width | ||
*/ | ||
width?: number; | ||
/** | ||
* callback of mask clicked | ||
*/ | ||
onClose?: Function; | ||
/** | ||
* | ||
*/ | ||
dontDestroyOnClose?: boolean; | ||
/** | ||
* inline style | ||
*/ | ||
style?: any; | ||
/** | ||
* framer-motion configaration please refer ## https://www.framer.com/motion/motion-config/ | ||
* */ | ||
motionConfig?: any; | ||
}; | ||
declare function Modal(props: ModalProps): JSX.Element | null; | ||
|
||
export { Modal, Upload }; |
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,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
</body> | ||
|
||
</html> |
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,13 @@ | ||
|
||
|
||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'jsdom', | ||
moduleNameMapper: { | ||
// 模块名称映射,以便在测试代码中导入模块时使用 | ||
// 这里将 CSS、图片等静态资源的导入映射为 'mocks/fileMock.js' | ||
'\\.(css|less|sass|scss)$': 'identity-obj-proxy', | ||
'\\.(gif|ttf|eot|svg)$': '<rootDir>/mocks/fileMock.js', | ||
}, | ||
// setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'], | ||
}; |
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,2 @@ | ||
|
||
module.exports = 'test-file-stub'; |
Oops, something went wrong.