Skip to content

Commit 3a130e3

Browse files
committed
feat: name attribute and variable renamed to key
1 parent 4e317ef commit 3a130e3

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

demo/atomic-css.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
sizes="32x32"
1212
href="https://cocreate.app/images/favicon.ico" />
1313
<meta
14-
name="description"
14+
key="description"
1515
content="Utility first css framework, design faster and improve on your css by using native inline styles as classes. No learning curve, use what you already know" />
1616
<meta
17-
name="keywords"
17+
key="keywords"
1818
content="helper classes, utility classes, css framework, css library, inline style classes" />
1919
<meta name="robots" content="index,follow" />
2020
<meta
@@ -25,7 +25,7 @@
2525
href="/docs/index.css"
2626
array="files"
2727
object="60888216117c640e7596303f"
28-
name="src"
28+
key="src"
2929
type="text/css"
3030
save="true" />
3131

@@ -42,7 +42,7 @@
4242
</head>
4343

4444
<body class="margin:15px_10px">
45-
<div array="" object="" name="" id="CoCreateCSS">
45+
<div array="" object="" key="" id="CoCreateCSS">
4646
<div
4747
class="display:flex flex-wrap:wrap justify-content:space-between">
4848
<div class="display:flex align-items:center">
@@ -1025,7 +1025,7 @@ <h2 class="padding:5px_0px">Demo</h2>
10251025
lang="html"
10261026
array="demos"
10271027
object=""
1028-
name="demo"
1028+
key="demo"
10291029
save="false"
10301030
id="demo"
10311031
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>

demo/test.1.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<title>CoCreateCSS - A utility first, atomic CSS framework</title>
88
<meta
9-
name="description"
9+
key="description"
1010
content="A Low-code JavaScript framework for building collaborative No-code platforms, apps and UI" />
1111
<link
1212
rel="icon"
@@ -19,13 +19,13 @@
1919
rel="stylesheet"
2020
href="https://cdn.cocreate.app/latest/CoCreate.min.css"
2121
type="text/css" />
22-
<!--<link rel="stylesheet" href="https://ws.cocreate.app/docs/index.css" type="text/css" save="true" array="files" object="60888216117c640e7596303f" name="src" />-->
22+
<!--<link rel="stylesheet" href="https://ws.cocreate.app/docs/index.css" type="text/css" save="true" array="files" object="60888216117c640e7596303f" key="src" />-->
2323
<link
2424
rel="stylesheet"
2525
href="../src/index.css"
2626
array="files"
2727
object="60888216117c640e7596303f"
28-
name="src"
28+
key="src"
2929
type="text/css"
3030
parse="true"
3131
save="true" />

demo/test.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<title>CoCreateCSS - A utility first, atomic CSS framework</title>
88
<meta
9-
name="description"
9+
key="description"
1010
content="A Low-code JavaScript framework for building collaborative No-code platforms, apps and UI" />
1111
<link
1212
rel="icon"
@@ -24,7 +24,7 @@
2424
href="../test.css"
2525
array="files"
2626
object="60888216117c640e7596303f"
27-
name="src"
27+
key="src"
2828
type="text/css"
2929
parse="true"
3030
save="true" />
@@ -93,7 +93,7 @@ <h1 class="color:white@dark color:yellow@light">
9393
scroll-down="10"
9494
array="files"
9595
object="60395ef42b3ac232657040fd"
96-
name="src"></nav>
96+
key="src"></nav>
9797
<sidenav
9898
id="menuL"
9999
class="position:fixed top:0px left:0px background:whitesmoke height:100vh width:50px width:300px:hover width:0px@xs"
@@ -104,7 +104,7 @@ <h1 class="color:white@dark color:yellow@light">
104104
<menu
105105
array="files"
106106
object="603717b07de7fb350ae9fec8"
107-
name="src"></menu>
107+
key="src"></menu>
108108
<div resize="right"></div>
109109
</sidenav>
110110

@@ -129,7 +129,7 @@ <h1 class="color:white@dark color:yellow@light">
129129
</div>
130130
<div
131131
class="display:flex flex-wrap:wrap align-items:center flex-direction:row-reverse"
132-
classname="test">
132+
classkey="test">
133133
hehehe
134134
</div>
135135
<div class="test">first one</div>

docs/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
sizes="32x32"
1212
href="https://cocreate.app/images/favicon.ico" />
1313
<meta
14-
name="description"
14+
key="description"
1515
content="Utility first css framework, design faster and improve on your css by using native inline styles as classes. No learning curve, use what you already know" />
1616
<meta
17-
name="keywords"
17+
key="keywords"
1818
content="utility classes, helper classes, css framework, css library, inline style classes" />
1919
<meta name="robots" content="index,follow" />
2020
<meta
@@ -31,7 +31,7 @@
3131
href="/docs/index.css"
3232
array="files"
3333
object="60888216117c640e7596303f"
34-
name="src"
34+
key="src"
3535
type="text/css"
3636
save="true" />
3737
<link rel="manifest" href="/manifest.webmanifest" />
@@ -56,7 +56,7 @@
5656
scroll-down="10"
5757
array="files"
5858
object="60395ef42b3ac232657040fd"
59-
name="src"></nav>
59+
key="src"></nav>
6060
<sidenav
6161
id="menuL"
6262
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
@@ -67,7 +67,7 @@
6767
<menu
6868
array="files"
6969
object="603717b07de7fb350ae9fec8"
70-
name="src"></menu>
70+
key="src"></menu>
7171
<div resize="right"></div>
7272
</sidenav>
7373
<main
@@ -1074,7 +1074,7 @@ <h2 class="padding:5px_0px">Demo</h2>
10741074
lang="html"
10751075
array="demos"
10761076
object=""
1077-
name="demo"
1077+
key="demo"
10781078
save="false"
10791079
id="demo"
10801080
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ observer.init({
321321
}
322322
});
323323

324-
let linkTag = document.querySelector('link[parse], link[array][object][name]');
324+
let linkTag = document.querySelector('link[parse], link[array][object][key]');
325325
if (linkTag)
326326
init(linkTag);
327327

0 commit comments

Comments
 (0)