Skip to content

Commit

Permalink
feat: renamed CRUD attributes and params
Browse files Browse the repository at this point in the history
- `collection` to `array`
- `name` to `key`
- `document_id` to `object`
  • Loading branch information
frankpagan committed Aug 8, 2023
1 parent 820f5b2 commit 5969a59
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions superadmin/builder/components/left-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
class="fetch-files margin-left:10px"
sortable
array=""
document
object
filter-key="directory"
filter-value="/"
filter-operator="$eq"
Expand Down Expand Up @@ -365,7 +365,7 @@
class="fetch-files margin-left:10px"
sortable
array=""
document
object
filter-key="directory"
filter-value="/"
filter-operator="$eq"
Expand Down Expand Up @@ -424,7 +424,7 @@
id="fetch-assets"
class="display:flex flex-wrap:wrap justify-content:center width:100% text-align:center padding-bottom:20px"
array=""
document
object
filter-key="content-type"
filter-value="image, video"
filter-sort-key="path"
Expand Down
2 changes: 1 addition & 1 deletion superadmin/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ <h2 key="name">Visits</h2>
<h2>
$<span
array=""
document
object
filter-key="total"
chart-operator="sum"
>4000</span
Expand Down
6 changes: 3 additions & 3 deletions superadmin/database/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
</tr>
<tbody
array=""
document
object
filter-limit="5"
pass-refresh
pass_id="array-view"
Expand All @@ -146,7 +146,7 @@
class="visibility:hidden tools{{object._id}}">
<a
class="float:right margin-right:15px"
actions="deletedocument="
actions="deleteObject"
array="{{object.array}}"
object=""
><i
Expand All @@ -157,7 +157,7 @@
</div>
<div
class="template display:flex"
render="document="
render="object"
render-as="one"
render-exclude="db, database, array"
hover="visibility:visible!important"
Expand Down
2 changes: 1 addition & 1 deletion superadmin/files/datatable.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
<tbody
render-selector=""
array="files"
document
object
filter-sort-key="path"
filter-sort-direction="asc"
filter-limit="20"
Expand Down
2 changes: 1 addition & 1 deletion superadmin/users/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ <h5>{{object._id}}</h5>
<input placeholder="Search" filter-next filter-search />
<ul
array="users"
document=""
object=""
key="connected_orgs"
render-selector="[template]"
class="options overflow:auto">
Expand Down
8 changes: 4 additions & 4 deletions superadmin/websites/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<input placeholder="Search" filter-next filter-search />
<cc-options
array=""
document
object
filter-key=""
filter-value=""
filter-sort-key="name"
Expand Down Expand Up @@ -188,7 +188,7 @@
<!--<input type="hidden" filter-key="module-view" filter-value="module-view" filter-next">-->
<div
array=""
document
object
filter-key=""
filter-value=""
filter-operator="$eq"
Expand Down Expand Up @@ -234,7 +234,7 @@
</a>

<a
actions="deletedocument="
actions="deleteObject"
array="{{object.array}}"
object="{{object._id}}"
class="float:right padding:5px">
Expand Down Expand Up @@ -284,7 +284,7 @@
<div
class="display:flex flex-wrap:wrap"
array=""
document
object
pass-refresh="true"
filter-sort-key="name"
filter-sort-direction="asc"
Expand Down
2 changes: 1 addition & 1 deletion superadmin/websites/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<div
class="display:grid gap:15px grid-template-columns:repeat(auto-fill,minmax(290px,1fr))"
array=""
document
object
filter-key="module_id"
filter-value=""
filter-sort-key="name"
Expand Down

0 comments on commit 5969a59

Please sign in to comment.