Skip to content

Commit

Permalink
added reproductions
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech committed Sep 13, 2024
1 parent 7fc4aba commit 9e692dc
Show file tree
Hide file tree
Showing 12 changed files with 16,960 additions and 30,755 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/packages/*/node_modules
/reproductions/dist
/reproductions/node_modules
/reproductions/.parcel-cache
/website/.cache-loader
/website/.docusaurus
/website/build
Expand Down
41,585 changes: 10,830 additions & 30,755 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions reproductions/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';
// import { AutoForm } from 'uniforms-unstyled';
// import { AutoForm } from 'uniforms-antd';
// import { AutoForm } from 'uniforms-bootstrap4';
// import { AutoForm } from 'uniforms-bootstrap5';
import { AutoForm } from 'uniforms-mui';
// import { AutoForm } from 'uniforms-semantic';

// import { bridge as schema } from './schema/json-schema';
// import { bridge as schema } from './schema/simple-schema-2';
import { bridge as schema } from './schema/all-fields-schema';

export function App() {
return (
<AutoForm
schema={schema}
onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}
/>
);
}
26 changes: 26 additions & 0 deletions reproductions/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>uniforms</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />

<!--
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" integrity="sha256-9mbkOfVho3ZPXfM7W8sV2SndrGDuh7wuyLjtsWeTI1Q=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css" integrity="sha512-N415hCJJdJx+1UBfULt+i+ihvOn42V/kOjOpp1UTh4CZ70Hx5bDlKryWaqEKfY/8EYOu/C2MuyaluJryK1Lb5Q==" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha256-L/W5Wfqfa0sdBNIKN9cG6QA5F2qx4qICmU2VgLruv9Y=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/antd/3.25.3/antd.min.css" integrity="sha256-ezkI8P4X6ooQyI-cpiqtQZpWVOYRtagYu4DAHG7viflQ=" crossorigin="anonymous" />
-->

</head>

<body>
<div id="root"></div>
<script type="module" src="./index.tsx"></script>
</body>

</html>
6 changes: 6 additions & 0 deletions reproductions/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';

import { App } from './App';

ReactDOM.render(<App />, document.getElementById('root'));
Loading

0 comments on commit 9e692dc

Please sign in to comment.