Skip to content

Commit

Permalink
fix: update pass to state
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Nov 24, 2023
1 parent 791730a commit 5b29081
Show file tree
Hide file tree
Showing 86 changed files with 3,660 additions and 3,658 deletions.
2 changes: 1 addition & 1 deletion json/blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
"icon": "<svg class=\"width:40px\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M22,5.5 C22,5.2 21.5,5 20.75,5 L3.25,5 C2.5,5 2,5.2 2,5.5 L2,8.5 C2,8.8 2.5,9 3.25,9 L20.75,9 C21.5,9 22,8.8 22,8.5 L22,5.5 Z M21,8 L3,8 L3,6 L21,6 L21,8 Z\" fill-rule=\"nonzero\"></path>\n <path d=\"M22,10.5 C22,10.2 21.5,10 20.75,10 L3.25,10 C2.5,10 2,10.2 2,10.5 L2,13.5 C2,13.8 2.5,14 3.25,14 L20.75,14 C21.5,14 22,13.8 22,13.5 L22,10.5 Z M21,13 L3,13 L3,11 L21,11 L21,13 Z\" fill-rule=\"nonzero\"></path>\n <rect x=\"2\" y=\"15\" width=\"10\" height=\"3\" rx=\"0.5\"></rect>\n </svg> ",
"category": "6115b5f5442fe32fc88700a8",
"position": 2,
"html": "\t\t\t<form array=\"\" object=\"\">\n\t\t\t\t<input type=\"hidden\" name=\"module_id\" data-pass_id=\"module_id\">\n\t\t\t\t<input type=\"text\" name=\"name\" class=\"floating-label\" placeholder=\"Name\">\n\t\t\t\t<textarea name=\"Description\" class=\"floating-label\" placeholder=\"Description\"></textarea>\n\t\t\t\t<button class=\"submitBtn padding:15px background:dodgerblue grow-hover border-radius:50%\">\n\t\t\t\t\t<i class=\"far fa-save\"></i> \n\t\t\t\t</button>\n\t\t\t</form>\n",
"html": "\t\t\t<form array=\"\" object=\"\">\n\t\t\t\t<input type=\"hidden\" name=\"module_id\" data-state_id=\"module_id\">\n\t\t\t\t<input type=\"text\" name=\"name\" class=\"floating-label\" placeholder=\"Name\">\n\t\t\t\t<textarea name=\"Description\" class=\"floating-label\" placeholder=\"Description\"></textarea>\n\t\t\t\t<button class=\"submitBtn padding:15px background:dodgerblue grow-hover border-radius:50%\">\n\t\t\t\t\t<i class=\"far fa-save\"></i> \n\t\t\t\t</button>\n\t\t\t</form>\n",
"type": "6115b5f5442fe32fc88700a8"
},
{
Expand Down
102 changes: 51 additions & 51 deletions src/activities/datatable.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,61 +90,61 @@
<!-- Render Module Form -->
<li class="margin-right:15px">
<a
actions="pass, openModal"
actions="state, openModal"
modal-src="./modules/form.html"
modal-width="320px">
<i
class="display:flex height:18px fill:#505050"
src="./assets/svg/cog.svg"></i>
<div
pass_id="module-form"
pass-array="modules"
pass-object=""
pass_to="form-fields"></div>
state_id="module-form"
state-array="modules"
state-object=""
state_to="form-fields"></div>
<div
pass_id="module_id"
pass-filter-value=""
pass_to="module_id"></div>
state_id="module_id"
state-filter-value=""
state_to="module_id"></div>
</a>
</li>

<!-- Render Code Editor -->
<li class="margin-right:15px">
<a
actions="pass, openModal"
actions="state, openModal"
modal-src="./code-editor/index.html">
<i
class="display:flex height:18px fill:#505050"
src="./assets/svg/code.svg"></i>
<div
pass_id="render"
pass-array=""
pass-object=""
pass-key=""
pass_to="code-editor"></div>
state_id="render"
state-array=""
state-object=""
state-key=""
state_to="code-editor"></div>
</a>
</li>

<!-- Render Builder -->
<li class="margin-right:15px">
<a
actions="pass, openModal"
actions="state, openModal"
modal-src="./builder/index.html">
<i
class="display:flex height:18px fill:#505050"
src="./assets/svg/palette.svg"></i>
<div
pass_id="render"
pass-array=""
pass-object=""
pass-key=""
pass_to="builder"></div>
state_id="render"
state-array=""
state-object=""
state-key=""
state_to="builder"></div>
</a>
</li>

<!-- Datatable Controls -->
<li class="margin-right:15px">
<a actions="delete" array="" pass_id="datatable"
<a actions="delete" array="" state_id="datatable"
><i
class="height:18px fill:#505050"
src="./assets/svg/trash-alt.svg"></i
Expand All @@ -162,21 +162,21 @@
actions="export"
export-type="csv"
export-selector=""
pass_id="datatable"
state_id="datatable"
><i
class="height:18px fill:#505050"
src="./assets/svg/file-csv.svg"></i
></a>
</li>
<li class="margin-right:15px">
<a actions="export" export-selector="" pass_id="datatable"
<a actions="export" export-selector="" state_id="datatable"
><i
class="height:18px fill:#505050"
src="./assets/svg/file-download.svg"></i
></a>
</li>
<li class="margin-right:15px">
<a actions="import" array="" pass_id="datatable"
<a actions="import" array="" state_id="datatable"
><i
class="height:18px fill:#505050"
src="./assets/svg/file-upload.svg"></i
Expand Down Expand Up @@ -217,7 +217,7 @@
class="floating-label"
filter-key="_id"
filter-selector=""
pass_id="datatable"
state_id="datatable"
placeholder="Name" />
</floating-label>
<span
Expand All @@ -228,7 +228,7 @@
click-value="desc, asc"
click-attribute="filter-sort-direction"
filter-selector=""
pass_id="datatable">
state_id="datatable">
<i
toggle-attribute="src"
toggle-value="./assets/svg/sort-down.svg, /assets/svg/sort-up.svg"
Expand All @@ -255,7 +255,7 @@
click-value="desc, asc"
click-attribute="filter-sort-direction"
filter-selector=""
pass_id="datatable">
state_id="datatable">
<i
toggle-attribute="src"
toggle-value="./assets/svg/sort-down.svg, /assets/svg/sort-up.svg"
Expand All @@ -274,11 +274,11 @@
filter-value=""
filter-sort-key="name"
filter-sort-direction="asc"
pass_id="datatable">
state_id="datatable">
<tr
class="background:gainsboro:hover border-bottom:1px_solid_darkgray"
template
pass_id="datatable"
state_id="datatable"
object="{{object._id}}"
toggle="selected">
<td class="padding:10px">
Expand All @@ -289,15 +289,15 @@
</div>
<div class="margin-left:10px">
<a
actions="pass, openModal"
actions="state, openModal"
modal-src="./activities/form.html"
modal-width="320px"
modal-color="#229954">
<h4>{{object.name}}</h4>
<div
pass-array="{{object.array}}"
pass-object="{{object._id}}"
pass_to="form-fields"></div>
state-array="{{object.array}}"
state-object="{{object._id}}"
state_to="form-fields"></div>
</a>
<h5
key="description"
Expand All @@ -307,15 +307,15 @@ <h4>{{object.name}}</h4>
</td>
<td class="padding:10px">
<a
actions="pass, openModal"
actions="state, openModal"
modal-src="./activities/form.html"
modal-width="320px"
modal-color="#229954">
<b>{{object._id}}</b>
<div
pass-array="{{object.array}}"
pass-object="{{object._id}}"
pass_to="form-fields"></div>
state-array="{{object.array}}"
state-object="{{object._id}}"
state_to="form-fields"></div>
</a>
</td>
</tr>
Expand All @@ -326,29 +326,29 @@ <h4>{{object.name}}</h4>
<button
class="position:absolute bottom:15px right:15px line-height:50px width:50px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
<a
actions="pass, openModal"
actions="state, openModal"
modal-src="./activities/form.html"
modal-width="320px"
modal-color="#229954">
<i
class="height:20px fill:#505050"
src="./assets/svg/plus.svg"></i>
<div pass_to="form-fields" pass-object=""></div>
<div state_to="form-fields" state-object=""></div>
<div
pass_id="form"
pass-array=""
pass-object=""
pass-key=""
pass_to="render"></div>
state_id="form"
state-array=""
state-object=""
state-key=""
state_to="render"></div>
<div
pass_id="module_id"
pass-value=""
pass-filter-value=""
pass_to="module_id"></div>
state_id="module_id"
state-value=""
state-filter-value=""
state_to="module_id"></div>
<div
pass_id="module-form"
pass-object=""
pass_to="module-form"></div>
state_id="module-form"
state-object=""
state_to="module-form"></div>
</a>
</button>

Expand Down
Loading

0 comments on commit 5b29081

Please sign in to comment.