Skip to content

Commit

Permalink
fix: update filter-query-key
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Dec 18, 2024
1 parent b20ee0e commit 27b95e4
Showing 1 changed file with 190 additions and 191 deletions.
381 changes: 190 additions & 191 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,199 +1,198 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="icon"
href="https://cdn.cocreate.app/favicon.ico"
type="image/ico"
sizes="16x16"
parse="true" />
<title>Kanban | CoCreate</title>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="icon"
href="https://cdn.cocreate.app/favicon.ico"
type="image/ico"
sizes="16x16"
parse="true" />
<title>Kanban | CoCreate</title>

<link rel="manifest" href="/manifest.webmanifest" />
</head>
<link rel="manifest" href="/manifest.webmanifest" />
</head>

<body>
<main class="padding:10px" content_id="content">
<div id="board" class="display:flex overflow:auto">
<div
array="testtags"
object
filter-sort-key="position"
render_id="column"
droppable
dnd-group-key="column"
render-selector=":last-child"
class="display:flex flex-wrap:nowrap flex-direction:row">
<!-- Column -->
<div
template
render-as="column"
object="{{column._id}}"
draggable
class="position:relative width:300px margin:10px background:whitesmoke height:calc(100vh_-_45px)">
<div
class="display:flex margin:15px font-size:18px color-dark-gray">
<div class="flex-grow:1">
<span
array="{{column.array}}"
object="{{column._id}}"
key="name"
contenteditable
class="padding:5px"></span>
</div>
<div>
<a
actions="deleteObject"
array="{{column.array}}"
object="{{column._id}}"
><i
class="height:18px"
src="/assets/svg/times.svg"></i
></a>
</div>
</div>
<div
class="height:calc(100vh_-_145px) padding:10px overflow:auto">
<div
array="testcontacts"
filter-key="tags"
filter-value="{{column._id}}"
filter-operator="$eq"
filter-sort-key="position"
filter-sort-direction="asc"
render-selector=":last-child"
droppable
dnd-group-key="card"
class="display:flex flex-direction:column height:100%">
<!-- Card -->
<div
class="card position:relative margin-bottom:10px padding:10px background:white"
template
value="{{object._id}}"
object="{{object._id}}"
draggable>
<a
actions="deleteObject"
array="{{object.array}}"
object="{{object._id}}"
class="position:absolute right:15px top:15px"
><i
class="height:18px"
src="/assets/svg/times.svg"></i
></a>
<body>
<main class="padding:10px" content_id="content">
<div id="board" class="display:flex overflow:auto">
<div
array="testtags"
object
filter-sort-key="position"
render_id="column"
droppable
dnd-group-key="column"
render-selector=":last-child"
class="display:flex flex-wrap:nowrap flex-direction:row">
<!-- Column -->
<div
template
render-as="column"
object="{{column._id}}"
draggable
class="position:relative width:300px margin:10px background:whitesmoke height:calc(100vh_-_45px)">
<div
class="display:flex margin:15px font-size:18px color-dark-gray">
<div class="flex-grow:1">
<span
array="{{column.array}}"
object="{{column._id}}"
key="name"
contenteditable
class="padding:5px"></span>
</div>
<div>
<a
actions="deleteObject"
array="{{column.array}}"
object="{{column._id}}"
><i
class="height:18px"
src="/assets/svg/times.svg"></i
></a>
</div>
</div>
<div
class="height:calc(100vh_-_145px) padding:10px overflow:auto">
<div
array="testcontacts"
filter-query-key="tags.$eq"
filter-query-value="{{column._id}}"
filter-sort-key="position"
filter-sort-direction="asc"
render-selector=":last-child"
droppable
dnd-group-key="card"
class="display:flex flex-direction:column height:100%">
<!-- Card -->
<div
class="card position:relative margin-bottom:10px padding:10px background:white"
template
value="{{object._id}}"
object="{{object._id}}"
draggable>
<a
actions="deleteObject"
array="{{object.array}}"
object="{{object._id}}"
class="position:absolute right:15px top:15px"
><i
class="height:18px"
src="/assets/svg/times.svg"></i
></a>

<div class="width:100%">
<img
array="{{object.array}}"
object="{{object._id}}"
key="image"
src="https://via.placeholder.com/150"
width="100%" />
</div>
<div
class="border-bottom:1px_solid_gray margin:0px_15px">
<div
class="display:flex margin:10px_0px">
<span
class="cocreate-badge margin-right:10px font-size:10px padding:0px_20px"></span>
<span
class="cocreate-badge margin-right:10px font-size:10px padding:0px_20px"></span>
</div>
<p
array="{{object.array}}"
object="{{object._id}}"
key="name"
contenteditable
class="padding:5px"></p>
<div
class="display:flex margin:10px_0px">
<span
class="cocreate-badge badge-danger margin-right:10px font-size:14px">
<i
class="height:16px"
src="/assets/svg/clock.svg"></i>
<span>Aug 29th 17</span>
</span>
<span
class="cocreate-badge margin-right:10px font-size:14px">
<i
class="height:16px"
src="/assets/svg/check-circle.svg"></i>
<span>2/7</span>
</span>
</div>
<div class="display:flex"></div>
</div>
<div class="display:flex margin:15px">
<span class="float:left"
><i
class="height:16px"
src="/assets/svg/eye.svg"></i
></span>
<div class="display:flex float:right">
<span class="margin-left:10px"
><i
class="height:16px"
src="/assets/svg/sticky-note.svg"></i
><span>0</span></span
>
<span class="margin-left:10px"
><i
class="height:16px"
src="/assets/svg/envelope.svg"></i
><span>8</span></span
>
</div>
</div>
</div>
</div>
</div>
<div
class="position:absolute bottom:0 margin:0px_15px padding:15px_0px">
<form>
<input
type="hidden"
array="testcontacts"
object=""
key="tags"
value="{{column._id}}" />
<input
type="hidden"
array="testcontacts"
object=""
key="name"
value="untitled" />
<a actions="save, reset"
><i
class="height:16px"
src="/assets/svg/plus.svg"></i>
New Card</a
>
</form>
</div>
</div>
</div>
</div>
<div class="width:100%">
<img
array="{{object.array}}"
object="{{object._id}}"
key="image"
src="https://via.placeholder.com/150"
width="100%" />
</div>
<div
class="border-bottom:1px_solid_gray margin:0px_15px">
<div
class="display:flex margin:10px_0px">
<span
class="cocreate-badge margin-right:10px font-size:10px padding:0px_20px"></span>
<span
class="cocreate-badge margin-right:10px font-size:10px padding:0px_20px"></span>
</div>
<p
array="{{object.array}}"
object="{{object._id}}"
key="name"
contenteditable
class="padding:5px"></p>
<div
class="display:flex margin:10px_0px">
<span
class="cocreate-badge badge-danger margin-right:10px font-size:14px">
<i
class="height:16px"
src="/assets/svg/clock.svg"></i>
<span>Aug 29th 17</span>
</span>
<span
class="cocreate-badge margin-right:10px font-size:14px">
<i
class="height:16px"
src="/assets/svg/check-circle.svg"></i>
<span>2/7</span>
</span>
</div>
<div class="display:flex"></div>
</div>
<div class="display:flex margin:15px">
<span class="float:left"
><i
class="height:16px"
src="/assets/svg/eye.svg"></i
></span>
<div class="display:flex float:right">
<span class="margin-left:10px"
><i
class="height:16px"
src="/assets/svg/sticky-note.svg"></i
><span>0</span></span
>
<span class="margin-left:10px"
><i
class="height:16px"
src="/assets/svg/envelope.svg"></i
><span>8</span></span
>
</div>
</div>
</div>
</div>
</div>
<div
class="position:absolute bottom:0 margin:0px_15px padding:15px_0px">
<form>
<input
type="hidden"
array="testcontacts"
object=""
key="tags"
value="{{column._id}}" />
<input
type="hidden"
array="testcontacts"
object=""
key="name"
value="untitled" />
<a actions="save, reset"
><i
class="height:16px"
src="/assets/svg/plus.svg"></i>
New Card</a
>
</form>
</div>
</div>
</div>
</div>

<form>
<input
type="hidden"
state_id="module_id"
array="testtags"
object=""
key="name"
value="untitled" />
<button
actions="save, reset"
class="position:fixed 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)">
<i class="height:16px" src="/assets/svg/plus.svg"></i>
</button>
</form>
</main>
<form>
<input
type="hidden"
state_id="module_id"
array="testtags"
object=""
key="name"
value="untitled" />
<button
actions="save, reset"
class="position:fixed 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)">
<i class="height:16px" src="/assets/svg/plus.svg"></i>
</button>
</form>
</main>

<script src="https://CoCreate.app/dist/CoCreate.js"></script>
</body>
<script src="https://CoCreate.app/dist/CoCreate.js"></script>
</body>
</html>

0 comments on commit 27b95e4

Please sign in to comment.