Skip to content

Commit a141425

Browse files
committed
fix: update query selector attributes to *-query
1 parent 42c48fe commit a141425

Some content is hidden

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

82 files changed

+1208
-1308
lines changed

src/account/components/navbar.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<a
33
menu-icon
44
toggle="width:275px,"
5-
toggle-document="#menuL"
5+
toggle-query="$document #menuL"
66
toggle-attribute="style">
77
<span></span>
88
<span></span>
@@ -28,7 +28,7 @@
2828
<a
2929
class="avatar round"
3030
toggle="dropdown"
31-
toggle-next
31+
toggle-query="$next"
3232
toggle-attribute="hidden"
3333
toggle-value="">
3434
<div array="users" object="$user_id" key="firstname" class="avatar-name">
@@ -56,7 +56,7 @@
5656
actions="state"
5757
state-src="./profile/index.html"
5858
state_to="main"
59-
click-parent
59+
click-query="$parent"
6060
click-attribute="hidden"
6161
click-value=""
6262
class="display:flex align-items:center gap:10px">

src/account/components/sidenav.html

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
resize-attribute="menu-icon"
44
resize-value="active"
55
resize-if="275px"
6-
resize-document="[menu-icon][]"></div>
6+
resize-query="$document [menu-icon][]"></div>
77
<div
88
class="width:100%"
99
resize-attribute="menu-icon"
1010
resize-value="false"
1111
resize-if="50px"
12-
resize-document="[menu-icon][]"></div>
12+
resize-query="$document [menu-icon][]"></div>
1313
<div
1414
class="width:100%"
1515
resize-attribute="menu-icon"
1616
resize-value="false"
1717
resize-if="0px"
18-
resize-document="[menu-icon][]"></div>
18+
resize-query="$document [menu-icon][]"></div>
1919

2020
<div class="header height:70px">
2121
<style>
@@ -46,7 +46,7 @@
4646
state_to="main"
4747
state-src="./organization/create.html"
4848
state-overwrite
49-
click-closest="sidenav"
49+
click-query="$closest sidenav"
5050
click-attribute="style"
5151
click-value="width:0px"
5252
click-if="<575px"
@@ -67,7 +67,7 @@
6767
object=""
6868
state_id="accountOrg"
6969
toggle="dropdown"
70-
toggle-closest=".header .org-dropdown"
70+
toggle-query="$closest .header .org-dropdown"
7171
toggle-attribute="is-hidden"
7272
toggle-value="true, false">
7373
<img
@@ -80,14 +80,14 @@
8080
<span
8181
class="org-name font-size:22px font-weight:bold"
8282
key="name"
83-
input-closest="div[organization]"
83+
input-query="$closest div[organization]"
8484
input-attribute="organization"
8585
input-value="true">
8686
<div
8787
observe-target=".org:not([template])"
88-
observe-document=".org:not([template])"
88+
observe-query="$document .org:not([template])"
8989
observe-attribute="$click"
90-
observe-delay="2000"
90+
observe-setTimeout="2000"
9191
hidden></div>
9292
</span>
9393

@@ -102,7 +102,7 @@
102102
filter-sort-key="name"
103103
filter-sort-direction="asc"
104104
filter-limit
105-
render-selector="[template]"
105+
render-query="[template]"
106106
click-attribute="is-hidden"
107107
click-value="true"
108108
is-hidden="true">
@@ -116,7 +116,7 @@
116116
state-organization_id="{{object._id}}"
117117
state-host
118118
state-overwrite
119-
click-closest="sidenav"
119+
click-query="$closest sidenav"
120120
click-attribute="style"
121121
click-value="width:0px"
122122
click-if="<575px"
@@ -135,15 +135,15 @@
135135
filter-query-value="^$subdomain\."
136136
filter-query-key="host.$"
137137
filter-query-value="1"
138-
filter-next></div>
138+
filter-query="$next"></div>
139139

140140
<input
141141
array="organizations"
142142
object="{{object._id}}"
143143
key="host[0].name"
144144
input-attribute="state-host"
145-
input-parent
146-
input-next
145+
input-query="$parent"
146+
input-query="$next"
147147
value-replace="/\[\]/g"
148148
hidden />
149149
<div
@@ -158,7 +158,7 @@
158158
state_to="main"
159159
state-src="./organization/create.html"
160160
state-overwrite
161-
click-closest="sidenav"
161+
click-query="$closest sidenav"
162162
click-attribute="style"
163163
click-value="width:0px"
164164
click-if="<575px"
@@ -179,7 +179,7 @@
179179
<a
180180
menu-icon
181181
toggle="width:0px,"
182-
toggle-document="#menuL"
182+
toggle-query="$document #menuL"
183183
toggle-attribute="style"
184184
class="display:none!important display:block!important@xs margin-right:10px">
185185
<span></span>
@@ -198,7 +198,7 @@ <h3 class="display:flex">
198198
</h3>
199199

200200
<li
201-
click-closest="sidenav"
201+
click-query="$closest sidenav"
202202
click-attribute="style"
203203
click-value="width:0px"
204204
click-if="<575px"
@@ -211,7 +211,7 @@ <h3 class="display:flex">
211211
</a>
212212
</li>
213213
<li
214-
click-closest="sidenav"
214+
click-query="$closest sidenav"
215215
click-attribute="style"
216216
click-value="width:0px"
217217
click-if="<575px"
@@ -227,7 +227,7 @@ <h3 class="display:flex">
227227
</a>
228228
</li>
229229
<li
230-
click-closest="sidenav"
230+
click-query="$closest sidenav"
231231
click-attribute="style"
232232
click-value="width:0px"
233233
click-if="<575px"
@@ -244,7 +244,7 @@ <h3 class="display:flex">
244244
</a>
245245
</li>
246246
<li
247-
click-closest="sidenav"
247+
click-query="$closest sidenav"
248248
click-attribute="style"
249249
click-value="width:0px"
250250
click-if="<575px"
@@ -261,7 +261,7 @@ <h3 class="display:flex">
261261
</a>
262262
</li>
263263
<li
264-
click-closest="sidenav"
264+
click-query="$closest sidenav"
265265
click-attribute="style"
266266
click-value="width:0px"
267267
click-if="<575px"
@@ -286,7 +286,7 @@ <h3 class="display:flex">
286286
array="keys"
287287
object="645be06f200770138f1a7f54"
288288
key="key"
289-
input-parent
289+
input-query="$parent"
290290
input-attribute="admin"
291291
input-value="true" />
292292

@@ -296,7 +296,7 @@ <h3 class="display:flex">
296296
</h3>
297297
<!-- Organizations -->
298298
<li
299-
click-closest="sidenav"
299+
click-query="$closest sidenav"
300300
click-attribute="style"
301301
click-value="width:0px"
302302
click-if="<575px"
@@ -323,7 +323,7 @@ <h3 class="display:flex">
323323

324324
<!-- Servers -->
325325
<li
326-
click-closest="sidenav"
326+
click-query="$closest sidenav"
327327
click-attribute="style"
328328
click-value="width:0px"
329329
click-if="<575px"
@@ -350,7 +350,7 @@ <h3 class="display:flex">
350350

351351
<!-- Domains -->
352352
<li
353-
click-closest="sidenav"
353+
click-query="$closest sidenav"
354354
click-attribute="style"
355355
click-value="width:0px"
356356
click-if="<575px"
@@ -368,7 +368,7 @@ <h3 class="display:flex">
368368

369369
<!-- Databases -->
370370
<li
371-
click-closest="sidenav"
371+
click-query="$closest sidenav"
372372
click-attribute="style"
373373
click-value="width:0px"
374374
click-if="<575px"
@@ -387,7 +387,7 @@ <h3 class="display:flex">
387387

388388
<!-- Keys -->
389389
<li
390-
click-closest="sidenav"
390+
click-query="$closest sidenav"
391391
click-attribute="style"
392392
click-value="width:0px"
393393
click-if="<575px"
@@ -414,7 +414,7 @@ <h3 class="display:flex">
414414

415415
<!-- Users -->
416416
<li
417-
click-closest="sidenav"
417+
click-query="$closest sidenav"
418418
click-attribute="style"
419419
click-value="width:0px"
420420
click-if="<575px"
@@ -441,7 +441,7 @@ <h3 class="display:flex">
441441

442442
<!-- Payments -->
443443
<li
444-
click-closest="sidenav"
444+
click-query="$closest sidenav"
445445
click-attribute="style"
446446
click-value="width:0px"
447447
click-if="<575px"
@@ -468,7 +468,7 @@ <h3 class="display:flex">
468468

469469
<!-- Files -->
470470
<li
471-
click-closest="sidenav"
471+
click-query="$closest sidenav"
472472
click-attribute="style"
473473
click-value="width:0px"
474474
click-if="<575px"
@@ -495,7 +495,7 @@ <h3 class="display:flex">
495495

496496
<!-- Builder -->
497497
<li
498-
click-closest="sidenav"
498+
click-query="$closest sidenav"
499499
click-attribute="style"
500500
click-value="width:0px"
501501
click-if="<575px"
@@ -513,7 +513,7 @@ <h3 class="display:flex">
513513

514514
<!-- AI -->
515515
<li
516-
click-closest="sidenav"
516+
click-query="$closest sidenav"
517517
click-attribute="style"
518518
click-value="width:0px"
519519
click-if="<575px"
@@ -540,7 +540,7 @@ <h3 class="display:flex">
540540

541541
<!-- Blog Posts -->
542542
<li
543-
click-closest="sidenav"
543+
click-query="$closest sidenav"
544544
click-attribute="style"
545545
click-value="width:0px"
546546
click-if="<575px"
@@ -567,7 +567,7 @@ <h3 class="display:flex">
567567

568568
<!-- Social Posts -->
569569
<li
570-
click-closest="sidenav"
570+
click-query="$closest sidenav"
571571
click-attribute="style"
572572
click-value="width:0px"
573573
click-if="<575px"
@@ -589,7 +589,7 @@ <h3 class="display:flex">
589589

590590
<!-- Email Campaigns -->
591591
<li
592-
click-closest="sidenav"
592+
click-query="$closest sidenav"
593593
click-attribute="style"
594594
click-value="width:0px"
595595
click-if="<575px"
@@ -614,7 +614,7 @@ <h3 class="display:flex">
614614

615615
<!-- SEO -->
616616
<li
617-
click-closest="sidenav"
617+
click-query="$closest sidenav"
618618
click-attribute="style"
619619
click-value="width:0px"
620620
click-if="<575px"

src/account/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
id="menuL"
8383
class="width:50px width:0px@xs"
8484
resizable
85-
resize-document="main, nav"
85+
resize-query="$document main, nav"
8686
resize-attribute="style"
8787
resize-property="margin-left"
8888
path="./"
@@ -107,7 +107,7 @@
107107
path="../"
108108
filter-query-key="name"
109109
filter-query-value="Sales Chat"
110-
filter-selector="#system-instructions"></div>
110+
filter-query="#system-instructions"></div>
111111

112112
<script src="../dist/CoCreate.js"></script>
113113
</body>

src/account/members/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
<floating-label>
1414
<input
1515
type="text"
16-
filter-document="tbody[render-selector]"
16+
filter-query="$document tbody[render-query]"
1717
filter-query-key="firstname.$regex"
1818
filter-query-options="i"
1919
placeholder="Current Members" />
2020
</floating-label>
2121
<span
2222
class="position:absolute bottom:18px right:18px float:right">
2323
<a
24-
filter-document="tbody[render-selector]"
24+
filter-query="$document tbody[render-query]"
2525
filter-sort-key="firstname"
2626
filter-sort-direction="asc"
2727
click-value="desc, asc"
@@ -40,7 +40,7 @@
4040
array="users"
4141
object="$user_id"
4242
key="members"
43-
render-selector="[template]">
43+
render-query="[template]">
4444
<tr
4545
class="border-bottom:1px_solid_darkgray"
4646
template
@@ -106,7 +106,7 @@ <h4>
106106
</tbody>
107107
</table>
108108
</div>
109-
<!-- <div filter-on="scroll" filter-previous="[render-selector]"></div> -->
109+
<!-- <div filter-on="scroll" filter-query="$previous [render-query]"></div> -->
110110

111111
<div class="position:fixed!important bottom:15px right:15px z-index:2">
112112
<div

0 commit comments

Comments
 (0)