Skip to content

Commit 290b3ed

Browse files
committed
feat: name attribute and variable renamed to key
1 parent 3ec0ea4 commit 290b3ed

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

demo/CoCreate-xxx.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
sizes="16x16" />
1212
<title>CoCreate-docs | CoCreate</title>
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

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="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
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
@@ -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" />
@@ -46,7 +46,7 @@
4646
scroll-down="10"
4747
array="files"
4848
object="60395ef42b3ac232657040fd"
49-
name="src"></nav>
49+
key="src"></nav>
5050
<sidenav
5151
id="menuL"
5252
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
@@ -57,7 +57,7 @@
5757
<menu
5858
array="files"
5959
object="603717b07de7fb350ae9fec8"
60-
name="src"></menu>
60+
key="src"></menu>
6161
<div resize="right"></div>
6262
</sidenav>
6363
<main
@@ -283,7 +283,7 @@ <h2 class="padding:5px_0px">Demo</h2>
283283
lang="html"
284284
array="demos"
285285
object=""
286-
name="demo"
286+
key="demo"
287287
save="false"
288288
id="demo"
289289
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ExtractComment {
2828

2929
}
3030

31-
run(filePath, array, name) {
31+
run(filePath, array, key) {
3232
let content = fs.readFileSync(filePath, 'utf8');
3333
let extension = path.extname(filePath)
3434

@@ -46,8 +46,8 @@ class ExtractComment {
4646
if (ret_value) {
4747
docItems.push({
4848
array,
49-
data: {
50-
[name]: ret_value,
49+
object: {
50+
[key]: ret_value,
5151
extension,
5252
file_path: filePath
5353
},

0 commit comments

Comments
 (0)