Skip to content

Commit 5b29081

Browse files
committed
fix: update pass to state
1 parent 791730a commit 5b29081

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+3660
-3658
lines changed

json/blocks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
"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> ",
264264
"category": "6115b5f5442fe32fc88700a8",
265265
"position": 2,
266-
"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",
266+
"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",
267267
"type": "6115b5f5442fe32fc88700a8"
268268
},
269269
{

src/activities/datatable.html

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -90,61 +90,61 @@
9090
<!-- Render Module Form -->
9191
<li class="margin-right:15px">
9292
<a
93-
actions="pass, openModal"
93+
actions="state, openModal"
9494
modal-src="./modules/form.html"
9595
modal-width="320px">
9696
<i
9797
class="display:flex height:18px fill:#505050"
9898
src="./assets/svg/cog.svg"></i>
9999
<div
100-
pass_id="module-form"
101-
pass-array="modules"
102-
pass-object=""
103-
pass_to="form-fields"></div>
100+
state_id="module-form"
101+
state-array="modules"
102+
state-object=""
103+
state_to="form-fields"></div>
104104
<div
105-
pass_id="module_id"
106-
pass-filter-value=""
107-
pass_to="module_id"></div>
105+
state_id="module_id"
106+
state-filter-value=""
107+
state_to="module_id"></div>
108108
</a>
109109
</li>
110110

111111
<!-- Render Code Editor -->
112112
<li class="margin-right:15px">
113113
<a
114-
actions="pass, openModal"
114+
actions="state, openModal"
115115
modal-src="./code-editor/index.html">
116116
<i
117117
class="display:flex height:18px fill:#505050"
118118
src="./assets/svg/code.svg"></i>
119119
<div
120-
pass_id="render"
121-
pass-array=""
122-
pass-object=""
123-
pass-key=""
124-
pass_to="code-editor"></div>
120+
state_id="render"
121+
state-array=""
122+
state-object=""
123+
state-key=""
124+
state_to="code-editor"></div>
125125
</a>
126126
</li>
127127

128128
<!-- Render Builder -->
129129
<li class="margin-right:15px">
130130
<a
131-
actions="pass, openModal"
131+
actions="state, openModal"
132132
modal-src="./builder/index.html">
133133
<i
134134
class="display:flex height:18px fill:#505050"
135135
src="./assets/svg/palette.svg"></i>
136136
<div
137-
pass_id="render"
138-
pass-array=""
139-
pass-object=""
140-
pass-key=""
141-
pass_to="builder"></div>
137+
state_id="render"
138+
state-array=""
139+
state-object=""
140+
state-key=""
141+
state_to="builder"></div>
142142
</a>
143143
</li>
144144

145145
<!-- Datatable Controls -->
146146
<li class="margin-right:15px">
147-
<a actions="delete" array="" pass_id="datatable"
147+
<a actions="delete" array="" state_id="datatable"
148148
><i
149149
class="height:18px fill:#505050"
150150
src="./assets/svg/trash-alt.svg"></i
@@ -162,21 +162,21 @@
162162
actions="export"
163163
export-type="csv"
164164
export-selector=""
165-
pass_id="datatable"
165+
state_id="datatable"
166166
><i
167167
class="height:18px fill:#505050"
168168
src="./assets/svg/file-csv.svg"></i
169169
></a>
170170
</li>
171171
<li class="margin-right:15px">
172-
<a actions="export" export-selector="" pass_id="datatable"
172+
<a actions="export" export-selector="" state_id="datatable"
173173
><i
174174
class="height:18px fill:#505050"
175175
src="./assets/svg/file-download.svg"></i
176176
></a>
177177
</li>
178178
<li class="margin-right:15px">
179-
<a actions="import" array="" pass_id="datatable"
179+
<a actions="import" array="" state_id="datatable"
180180
><i
181181
class="height:18px fill:#505050"
182182
src="./assets/svg/file-upload.svg"></i
@@ -217,7 +217,7 @@
217217
class="floating-label"
218218
filter-key="_id"
219219
filter-selector=""
220-
pass_id="datatable"
220+
state_id="datatable"
221221
placeholder="Name" />
222222
</floating-label>
223223
<span
@@ -228,7 +228,7 @@
228228
click-value="desc, asc"
229229
click-attribute="filter-sort-direction"
230230
filter-selector=""
231-
pass_id="datatable">
231+
state_id="datatable">
232232
<i
233233
toggle-attribute="src"
234234
toggle-value="./assets/svg/sort-down.svg, /assets/svg/sort-up.svg"
@@ -255,7 +255,7 @@
255255
click-value="desc, asc"
256256
click-attribute="filter-sort-direction"
257257
filter-selector=""
258-
pass_id="datatable">
258+
state_id="datatable">
259259
<i
260260
toggle-attribute="src"
261261
toggle-value="./assets/svg/sort-down.svg, /assets/svg/sort-up.svg"
@@ -274,11 +274,11 @@
274274
filter-value=""
275275
filter-sort-key="name"
276276
filter-sort-direction="asc"
277-
pass_id="datatable">
277+
state_id="datatable">
278278
<tr
279279
class="background:gainsboro:hover border-bottom:1px_solid_darkgray"
280280
template
281-
pass_id="datatable"
281+
state_id="datatable"
282282
object="{{object._id}}"
283283
toggle="selected">
284284
<td class="padding:10px">
@@ -289,15 +289,15 @@
289289
</div>
290290
<div class="margin-left:10px">
291291
<a
292-
actions="pass, openModal"
292+
actions="state, openModal"
293293
modal-src="./activities/form.html"
294294
modal-width="320px"
295295
modal-color="#229954">
296296
<h4>{{object.name}}</h4>
297297
<div
298-
pass-array="{{object.array}}"
299-
pass-object="{{object._id}}"
300-
pass_to="form-fields"></div>
298+
state-array="{{object.array}}"
299+
state-object="{{object._id}}"
300+
state_to="form-fields"></div>
301301
</a>
302302
<h5
303303
key="description"
@@ -307,15 +307,15 @@ <h4>{{object.name}}</h4>
307307
</td>
308308
<td class="padding:10px">
309309
<a
310-
actions="pass, openModal"
310+
actions="state, openModal"
311311
modal-src="./activities/form.html"
312312
modal-width="320px"
313313
modal-color="#229954">
314314
<b>{{object._id}}</b>
315315
<div
316-
pass-array="{{object.array}}"
317-
pass-object="{{object._id}}"
318-
pass_to="form-fields"></div>
316+
state-array="{{object.array}}"
317+
state-object="{{object._id}}"
318+
state_to="form-fields"></div>
319319
</a>
320320
</td>
321321
</tr>
@@ -326,29 +326,29 @@ <h4>{{object.name}}</h4>
326326
<button
327327
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)">
328328
<a
329-
actions="pass, openModal"
329+
actions="state, openModal"
330330
modal-src="./activities/form.html"
331331
modal-width="320px"
332332
modal-color="#229954">
333333
<i
334334
class="height:20px fill:#505050"
335335
src="./assets/svg/plus.svg"></i>
336-
<div pass_to="form-fields" pass-object=""></div>
336+
<div state_to="form-fields" state-object=""></div>
337337
<div
338-
pass_id="form"
339-
pass-array=""
340-
pass-object=""
341-
pass-key=""
342-
pass_to="render"></div>
338+
state_id="form"
339+
state-array=""
340+
state-object=""
341+
state-key=""
342+
state_to="render"></div>
343343
<div
344-
pass_id="module_id"
345-
pass-value=""
346-
pass-filter-value=""
347-
pass_to="module_id"></div>
344+
state_id="module_id"
345+
state-value=""
346+
state-filter-value=""
347+
state_to="module_id"></div>
348348
<div
349-
pass_id="module-form"
350-
pass-object=""
351-
pass_to="module-form"></div>
349+
state_id="module-form"
350+
state-object=""
351+
state_to="module-form"></div>
352352
</a>
353353
</button>
354354

0 commit comments

Comments
 (0)