Skip to content

Commit 8ef1b3b

Browse files
committed
fix: crud attributes renamed
1 parent f82fb07 commit 8ef1b3b

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

CoCreate.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ module.exports = {
44
"host": "",
55
"sources": [
66
{
7-
"collection": "files",
8-
"document": {
7+
"array": "files",
8+
"object": {
99
"_id": "6019b2844eea0817df303b06",
1010
"name": "index.html",
1111
"path": "/docs/attributes/index.html",

docs/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<link
2727
rel="stylesheet"
2828
href="/docs/index.css"
29-
collection="files"
30-
document_id="60888216117c640e7596303f"
29+
array="files"
30+
object="60888216117c640e7596303f"
3131
name="src"
3232
type="text/css"
3333
save="true" />
@@ -41,8 +41,8 @@
4141
scroll="sticky-nav,hide-nav"
4242
scroll-up="10"
4343
scroll-down="10"
44-
collection="files"
45-
document_id="60395ef42b3ac232657040fd"
44+
array="files"
45+
object="60395ef42b3ac232657040fd"
4646
name="src"></nav>
4747
<sidenav
4848
id="menuL"
@@ -52,8 +52,8 @@
5252
resize-property="margin-left"
5353
resize-value="width">
5454
<menu
55-
collection="files"
56-
document_id="603717b07de7fb350ae9fec8"
55+
array="files"
56+
object="603717b07de7fb350ae9fec8"
5757
name="src"></menu>
5858
<div resize="right"></div>
5959
</sidenav>
@@ -293,8 +293,8 @@ <h2 class="padding:5px_0px">Demo</h2>
293293
<textarea
294294
type="code"
295295
lang="html"
296-
collection="demos"
297-
document_id=""
296+
array="demos"
297+
object=""
298298
name="demo"
299299
save="false"
300300
id="demo"

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,8 @@ function setInputValue(input, value) {
473473
return;
474474
if (input.getAttribute('crdt') == 'true')
475475
crdt.replaceText({
476-
collection: input.getAttribute('collection'),
477-
document_id: input.getAttribute('document_id'),
476+
array: input.getAttribute('array'),
477+
object: input.getAttribute('object'),
478478
name: input.getAttribute('name'),
479479
value: value + '',
480480
save: input.getAttribute('save'),

0 commit comments

Comments
 (0)