feat: small design improvement

This commit is contained in:
Arman committed 2022-09-01 10:17:34 +02:00
1 parent 24924e49cd
commit 9d8b78aaa1
7 files changed
+30 -32

No files matched your search

+14 -14
View File
@@ -9,8 +9,8 @@
"version": "0.0.1",
"dependencies": {
"@aw-labs/appwrite-console": "^1.0.0-0",
"@aw-labs/icons": "0.0.0-48",
"@aw-labs/ui": "0.0.0-48",
"@aw-labs/icons": "0.0.0-52",
"@aw-labs/ui": "0.0.0-52",
"echarts": "^5.3.3",
"tippy.js": "^6.3.7",
"web-vitals": "^2.1.4"
@@ -77,14 +77,14 @@
}
},
"node_modules/@aw-labs/icons": {
"version": "0.0.0-48",
"resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-48.tgz",
"integrity": "sha512-1D+mVydwpQFu9VDq5e60Lq21Q/p1AOZvPMJ1SggHJbXwkmPFfERKwX8VsvfcSyI2jCLBVqQkntxvZ+06s5aw2Q=="
"version": "0.0.0-52",
"resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-52.tgz",
"integrity": "sha512-A2bqLMTETaWUYiXuruw8zkW292rjGOeAtII+FbgasHkoJvC8cf2Ne2av4rzqenJdx6zRDQTRmwJl8FW7hcwI8Q=="
},
"node_modules/@aw-labs/ui": {
"version": "0.0.0-48",
"resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-48.tgz",
"integrity": "sha512-BDUGW1jRAfY+sbPWdopu5yy7vBVb9Et4gFyJ/rPHXhQsagftWYXvUP4DCsNjVhCMy7S/r6gU6e8iIpJYXaE7BQ==",
"version": "0.0.0-52",
"resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-52.tgz",
"integrity": "sha512-4xS+rCd/UDI+p0JMceIbNO4uZ3HYz5TcfCWdgHFA5seBJ6rN0wS/bZPxjHd95BL0on5RtruME0t151gD4dFFxQ==",
"dependencies": {
"@aw-labs/icons": "*"
}
@@ -7668,14 +7668,14 @@
}
},
"@aw-labs/icons": {
"version": "0.0.0-48",
"resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-48.tgz",
"integrity": "sha512-1D+mVydwpQFu9VDq5e60Lq21Q/p1AOZvPMJ1SggHJbXwkmPFfERKwX8VsvfcSyI2jCLBVqQkntxvZ+06s5aw2Q=="
"version": "0.0.0-52",
"resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-52.tgz",
"integrity": "sha512-A2bqLMTETaWUYiXuruw8zkW292rjGOeAtII+FbgasHkoJvC8cf2Ne2av4rzqenJdx6zRDQTRmwJl8FW7hcwI8Q=="
},
"@aw-labs/ui": {
"version": "0.0.0-48",
"resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-48.tgz",
"integrity": "sha512-BDUGW1jRAfY+sbPWdopu5yy7vBVb9Et4gFyJ/rPHXhQsagftWYXvUP4DCsNjVhCMy7S/r6gU6e8iIpJYXaE7BQ==",
"version": "0.0.0-52",
"resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-52.tgz",
"integrity": "sha512-4xS+rCd/UDI+p0JMceIbNO4uZ3HYz5TcfCWdgHFA5seBJ6rN0wS/bZPxjHd95BL0on5RtruME0t151gD4dFFxQ==",
"requires": {
"@aw-labs/icons": "*"
}
+2 -2
View File
@@ -19,8 +19,8 @@
},
"dependencies": {
"@aw-labs/appwrite-console": "^1.0.0-0",
"@aw-labs/icons": "0.0.0-48",
"@aw-labs/ui": "0.0.0-48",
"@aw-labs/icons": "0.0.0-52",
"@aw-labs/ui": "0.0.0-52",
"echarts": "^5.3.3",
"tippy.js": "^6.3.7",
"web-vitals": "^2.1.4"
+1 -1
View File
@@ -7,7 +7,7 @@
<div class="grid-1-2-col-1 u-flex u-flex-vertical u-gap-16">
<slot />
</div>
<div class="grid-1-2-col-2 u-flex u-flex-vertical u-gap-32">
<div class="grid-1-2-col-2 u-flex u-flex-vertical u-gap-24">
<slot name="aside" />
</div>
</div>
+2 -4
View File
@@ -1,7 +1,5 @@
<button on:click class="card is-border-dashed u-grid u-cross-center">
<div class="bucket">
<div class="u-flex u-flex-vertical u-cross-center">
<slot />
</div>
<div class="u-flex u-flex-vertical u-cross-center">
<slot />
</div>
</button>
@@ -176,8 +176,8 @@
applied to individual documents are ignored.
</p>
<svelte:fragment slot="aside">
<ul class="u-flex u-gap-12 common-section">
<li>
<ul class="checkboxes-list">
<li class="checkboxes-item">
<label class="label">
<input
type="radio"
@@ -188,7 +188,7 @@
<span>Collection Level</span>
</label>
</li>
<li>
<li class="checkboxes-item">
<label class="label">
<input
type="radio"
@@ -203,11 +203,11 @@
<Alert type="info">
<p>
Tip: Add <b>role:all</b> for wildcards access. Check out our documentation
for more on <a href="/#">Permissions</a>
for more on <a class="link" href="/#">Permissions</a>
</p>
</Alert>
{#if collectionPermissions === 'collection'}
<ul class="common-section">
<ul class="form-list">
<InputTags
id="read"
label="Read Access"
@@ -14,7 +14,7 @@
let search = '';
let offset = 0;
const limit = 5;
const limit = 6;
const project = $page.params.project;
const databaseId = $page.params.database;
const handleCreate = async (event: CustomEvent<Models.Collection>) => {
@@ -39,7 +39,7 @@
</div>
{#if $collections?.total}
<div class="grid-box common-section" style="--grid-gap:2rem; --grid-item-size:25rem;">
<div class="grid-box common-section" style=" --grid-item-size:25rem;">
{#each $collections.collections as collection}
<Bucket
href={`${base}/console/${project}/databases/database/${databaseId}/collection/${collection.$id}`}>
@@ -55,7 +55,7 @@
</Copy>
</Bucket>
{/each}
{#if $collections.total % 2 !== 0}
{#if ($collections.total % 2 !== 0 || $collections.total % 4 !== 0) && $collections.total - offset <= limit}
<EmptyBucket on:click={() => (showCreate = true)}>
<div class="common-section">
<Button secondary round>
@@ -14,7 +14,7 @@
let search = '';
let offset = 0;
const limit = 5;
const limit = 6;
const project = $page.params.project;
const handleCreate = async (event: CustomEvent<Models.Database>) => {
showCreate = false;
@@ -35,7 +35,7 @@
</div>
{#if $databaseList?.total}
<div class="grid-box common-section" style="--grid-gap:2rem; --grid-item-size:25rem;">
<div class="grid-box common-section" style=" --grid-item-size:25rem;">
{#each $databaseList.databases as database}
<Bucket href={`${base}/console/${project}/databases/database/${database.$id}`}>
<svelte:fragment slot="eyebrow">XX Collections</svelte:fragment>
@@ -46,7 +46,7 @@
</Copy>
</Bucket>
{/each}
{#if $databaseList.total % 2 !== 0}
{#if ($databaseList.total % 2 !== 0 || $databaseList.total % 4 !== 0) && $databaseList.total - offset <= limit}
<EmptyBucket on:click={() => (showCreate = true)}>
<div class="common-section">
<Button secondary round>