Skip to content

Commit 5b8509f

Browse files
committed
material theme
1 parent afc6e2b commit 5b8509f

File tree

344 files changed

+50861
-26861
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+50861
-26861
lines changed

config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
theme = "hugo-now-ui"
1+
theme = "hugo-material"
22
baseurl = "/"
33
relativeurls = true
44
title = "The CodeMeta Project"
@@ -41,7 +41,7 @@ publishDir = "../website"
4141
[params]
4242
name = "codemeta"
4343
github = "codemeta"
44-
custom_css = ["cboettig.css"]
44+
#custom_css = ["cboettig.css"]
4545
repo = "codemeta.github.io"
4646
background = "img/pyramids.jpg"
4747

static/form.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
<html>
3+
<head>
4+
<title>React JSONSchemaForm Demo</title>
5+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
10+
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.4.2/umd/react.production.min.js"></script>
11+
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.4.2/umd/react-dom.production.min.js"></script>
12+
<script src="https://unpkg.com/react-jsonschema-form/dist/react-jsonschema-form.js"></script>
13+
<script type="text/javascript" src="/schema.json"></script>
14+
<script>
15+
const Form = JSONSchemaForm.default;
16+
const uiSchema= {
17+
firstName: {
18+
"ui:autofocus": true,
19+
"ui:emptyValue": "",
20+
},
21+
age: {
22+
"ui:widget": "updown",
23+
"ui:title": "Age of person",
24+
"ui:description": "(earthian year)",
25+
},
26+
};
27+
28+
const formData= {
29+
30+
}
31+
32+
const log = (type) => console.log.bind(console, type);
33+
34+
ReactDOM.render(React.createElement(Form, {
35+
schema: schema,
36+
uiSchema: uiSchema,
37+
formData: formData,
38+
onChange: log("changed"),
39+
onSubmit: log("submitted"),
40+
onError: log("errors")
41+
}), document.getElementById("app"));
42+
</script>
43+
</body>
44+
</html>

static/img/untitled folder/R.png

16 KB
Loading
45.4 KB
Loading
22.5 KB
Loading
8.42 KB
Loading
145 KB
Loading
25.4 KB
Loading
34.6 KB
Loading
16.1 KB
Loading

0 commit comments

Comments
 (0)