Skip to content

Commit 9e8016d

Browse files
committed
feat: name attribute and variable renamed to key
1 parent 739fd2e commit 9e8016d

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

docs/form.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
<!-- CoCreate CSS -->
1515
<!-- CoCreate CSS -->
1616
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17-
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" name="src" type="text/css" save="true" />
17+
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" key="src" type="text/css" save="true" />
1818
<link rel="manifest" href="/manifest.webmanifest" />
1919
</head>
2020

2121
<body>
22-
<nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" array="files" object="60395ef42b3ac232657040fd" name="src">
22+
<nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" array="files" object="60395ef42b3ac232657040fd" key="src">
2323
</nav>
2424
<sidenav id="menuL" class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl" resizable resize-selector="[content_id='content']" resize-property="margin-left" resize-value="width">
25-
<menu array="files" object="603717b07de7fb350ae9fec8" name="src"></menu>
25+
<menu array="files" object="603717b07de7fb350ae9fec8" key="src"></menu>
2626
<div resize="right"></div>
2727
</sidenav>
2828
<main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="CoCreate-api-form">
@@ -182,7 +182,7 @@ <h2 class="padding:5px_0px">Demo</h2>
182182
<div class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
183183

184184
<div id="demo-code" resizable class="position:relative height:50%">
185-
<textarea type="code" lang="html" array="demos" object="" name="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
185+
<textarea type="code" lang="html" array="demos" object="" key="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
186186
<div resize="bottom" class="background:lightgrey"></div>
187187
</div>
188188

docs/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414

1515
<!-- CoCreate CSS -->
1616
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17-
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" name="src" type="text/css" save="true" />
17+
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" key="src" type="text/css" save="true" />
1818

1919
<link rel="manifest" href="/manifest.webmanifest" />
2020
</head>
2121

2222
<body>
2323
<nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" array="files" object="60395ef42b3ac232657040fd"
24-
name="src">
24+
key="src">
2525
</nav>
2626
<sidenav id="menuL" class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl" resizable resize-selector="[content_id='content']" resize-property="margin-left" resize-value="width">
27-
<menu array="files" object="603717b07de7fb350ae9fec8" name="src"></menu>
27+
<menu array="files" object="603717b07de7fb350ae9fec8" key="src"></menu>
2828
<div resize="right"></div>
2929
</sidenav>
3030
<main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="CoCreate-api">
@@ -208,7 +208,7 @@ <h2 class="padding:5px_0px">Demo</h2>
208208
<div class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
209209

210210
<div id="demo-code" resizable class="position:relative height:50%">
211-
<textarea type="code" lang="html" array="demos" object="" name="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
211+
<textarea type="code" lang="html" array="demos" object="" key="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
212212
<div resize="bottom" class="background:lightgrey"></div>
213213
</div>
214214

docs/module.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414

1515
<!-- CoCreate CSS -->
1616
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17-
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" name="src" type="text/css" save="true" />
17+
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" key="src" type="text/css" save="true" />
1818
<link rel="manifest" href="/manifest.webmanifest">
1919
</head>
2020

2121
<body>
22-
<nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" array="files" object="60395ef42b3ac232657040fd" name="src">
22+
<nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" array="files" object="60395ef42b3ac232657040fd" key="src">
2323
</nav>
2424
<sidenav id="menuL" class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl" resizable resize-selector="[content_id='content']" resize-property="margin-left" resize-value="width">
25-
<menu array="files" object="603717b07de7fb350ae9fec8" name="src"></menu>
25+
<menu array="files" object="603717b07de7fb350ae9fec8" key="src"></menu>
2626
<div resize="right"></div>
2727
</sidenav>
2828
<main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="CoCreate-api-module">
@@ -172,7 +172,7 @@ <h2 class="padding:5px_0px">Demo</h2>
172172
<div class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
173173

174174
<div id="demo-code" resizable class="position:relative height:50%">
175-
<textarea type="code" lang="html" array="demos" object="" name="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
175+
<textarea type="code" lang="html" array="demos" object="" key="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
176176
<div resize="bottom" class="background:lightgrey"></div>
177177
</div>
178178

docs/server.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414

1515
<!-- CoCreate CSS -->
1616
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17-
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" name="src" type="text/css" save="true" />
17+
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" key="src" type="text/css" save="true" />
1818
<link rel="manifest" href="/manifest.webmanifest">
1919
</head>
2020

2121
<body>
22-
<nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" array="files" object="60395ef42b3ac232657040fd" name="src">
22+
<nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" array="files" object="60395ef42b3ac232657040fd" key="src">
2323
</nav>
2424
<sidenav id="menuL" class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl" resizable resize-selector="[content_id='content']" resize-property="margin-left" resize-value="width">
25-
<menu array="files" object="603717b07de7fb350ae9fec8" name="src"></menu>
25+
<menu array="files" object="603717b07de7fb350ae9fec8" key="src"></menu>
2626
<div resize="right"></div>
2727
</sidenav>
2828
<main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="CoCreate-api-server">
@@ -183,7 +183,7 @@ <h2 class="padding:5px_0px">Demo</h2>
183183
<div class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
184184

185185
<div id="demo-code" resizable class="position:relative height:50%">
186-
<textarea type="code" lang="html" array="demos" object="" name="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
186+
<textarea type="code" lang="html" array="demos" object="" key="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
187187
<div resize="bottom" class="background:lightgrey"></div>
188188
</div>
189189

src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var api = (() => {
6666
array: "organizations",
6767
filter: {
6868
query: [{
69-
name: 'host',
69+
key: 'host',
7070
operator: "$in",
7171
value: [hostname]
7272
}],

0 commit comments

Comments
 (0)