-
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.
website(deps): update markdown preview.
- Loading branch information
1 parent
b6472a0
commit 49b11b4
Showing
30 changed files
with
399 additions
and
268 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no-install lint-staged |
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,12 @@ | ||
**/*.md | ||
**/*.svg | ||
**/*.ejs | ||
**/*.yml | ||
package.json | ||
node_modules | ||
dist | ||
build | ||
lib | ||
esm | ||
cjs | ||
test |
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,11 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 120, | ||
"overrides": [ | ||
{ | ||
"files": ".prettierrc", | ||
"options": { "parser": "json" } | ||
} | ||
] | ||
} |
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,18 @@ | ||
import { LoaderConfOptions, WebpackConfiguration } from 'kkt'; | ||
import lessModules from '@kkt/less-modules'; | ||
|
||
export default (conf: WebpackConfiguration, env: 'production' | 'development', options: LoaderConfOptions) => { | ||
conf = lessModules(conf, env, options); | ||
if (options.bundle) { | ||
conf.output!.library = '@uiw/react-clock'; | ||
conf.externals = { | ||
react: { | ||
root: 'React', | ||
commonjs2: 'react', | ||
commonjs: 'react', | ||
amd: 'react', | ||
}, | ||
}; | ||
} | ||
return conf; | ||
}; |
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,75 @@ | ||
<!--rehype:ignore:start--> | ||
<p align="center"> | ||
<h2>React Clock</h2> | ||
<a href="https://uiwjs.github.io/react-clock"> | ||
<img src="https://user-images.githubusercontent.com/1680273/99911627-b3040f80-2d30-11eb-9c48-669f1745f348.png"> | ||
</a> | ||
</p> | ||
|
||
<!--rehype:ignore:end--> | ||
|
||
[![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-clock.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-clock) | ||
[![Build & Deploy](https://github.com/uiwjs/react-clock/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-clock/actions/workflows/ci.yml) | ||
[![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-clock/file/README.md) | ||
[![npm version](https://img.shields.io/npm/v/@uiw/react-clock.svg)](https://www.npmjs.com/package/@uiw/react-clock) | ||
[![Open in Gitpod](https://shields.io/badge/Open%20in-Gitpod-green?logo=Gitpod)](https://gitpod.io/#https://github.com/uiwjs/react-clock) | ||
|
||
An analog clock for your react app. | ||
|
||
## Quick Start | ||
|
||
```jsx mdx:preview | ||
import React from "react"; | ||
import ReactClock from '@uiw/react-clock'; | ||
|
||
export default function Demo() { | ||
return ( | ||
<ReactClock /> | ||
); | ||
} | ||
``` | ||
|
||
## Props | ||
|
||
```typescript | ||
type ClockProps = { | ||
width?: number; | ||
height?: number; | ||
value?: Date; | ||
run?: boolean | ||
} & React.SVGProps<SVGSVGElement>; | ||
``` | ||
|
||
## Development | ||
|
||
Runs the project in development mode. | ||
|
||
```bash | ||
# Step 1, run first, listen to the component compile and output the .js and type .d.ts file | ||
npm run watch | ||
# Step 2, development mode, listen to compile preview website instance | ||
npm run start | ||
``` | ||
|
||
Builds the app for production to the build folder. | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
The build is minified and the filenames include the hashes. | ||
Your app is ready to be deployed! | ||
|
||
## Contributors | ||
|
||
As always, thanks to our amazing contributors! | ||
|
||
<a href="https://github.com/uiwjs/react-clock/graphs/contributors"> | ||
<img src="https://uiwjs.github.io/react-clock/CONTRIBUTORS.svg" /> | ||
</a> | ||
|
||
Made with [contributors](https://github.com/jaywcjlove/github-action-contributors). | ||
|
||
### License | ||
|
||
Licensed under the MIT License. |
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,40 @@ | ||
{ | ||
"name": "@uiw/react-clock", | ||
"version": "1.2.5", | ||
"description": "An analog clock for your React app.", | ||
"homepage": "https://uiwjs.github.io/react-clock", | ||
"main": "cjs/index.js", | ||
"module": "esm/index.js", | ||
"types": "esm/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/uiwjs/react-clock.git" | ||
}, | ||
"license": "MIT", | ||
"files": [ | ||
"dist.css", | ||
"dist", | ||
"cjs", | ||
"esm", | ||
"src" | ||
], | ||
"keywords": [ | ||
"react-clock", | ||
"react.js", | ||
"react", | ||
"react-component", | ||
"component", | ||
"components", | ||
"clock" | ||
], | ||
"peerDependencies": { | ||
"react": ">=16.8.0", | ||
"react-dom": ">=16.8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.0.33", | ||
"@types/react-dom": "^18.0.11", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
} | ||
} |
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
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,9 +1,9 @@ | ||
{ | ||
"extends": "../tsconfig", | ||
"include": ["./"], | ||
"include": ["src"], | ||
"compilerOptions": { | ||
"outDir": "./cjs", | ||
"baseUrl": ".", | ||
"emitDeclarationOnly": true, | ||
"noEmit": false | ||
} | ||
} | ||
} |
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,4 @@ | ||
{ | ||
"version": "1.2.5", | ||
"packages": ["www", "core"] | ||
} |
Oops, something went wrong.