Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
83dcb9b
feat: databases,database, settings screens
ArmanNik Jul 14, 2022
cbf21b1
feat: update table with sticky column
ArmanNik Jul 14, 2022
2a05dba
feat: start work collection screen
ArmanNik Jul 14, 2022
e4432f6
feat: work on collections & attributes pages
ArmanNik Jul 15, 2022
498bd2e
feat: create, delete attribute
ArmanNik Jul 18, 2022
b37209f
feat: add readonly to inputs
ArmanNik Jul 18, 2022
9d58246
feat: add overview
ArmanNik Jul 18, 2022
19653d9
Merge branch 'storage' of github.com:appwrite/appwrite-console-poc in…
ArmanNik Jul 20, 2022
7e182e5
fix: new layout
ArmanNik Jul 20, 2022
056a09c
fix: default values shown
ArmanNik Jul 20, 2022
9591869
fix: made main optional
ArmanNik Jul 20, 2022
eff2c3f
fix: use is-main correctly
ArmanNik Jul 20, 2022
260b3ba
Merge branch 'storage' of github.com:appwrite/appwrite-console-poc in…
ArmanNik Jul 20, 2022
194f993
style: spacing between key and pill
ArmanNik Jul 20, 2022
bfcbc07
fix: use correct name for attribute
ArmanNik Jul 20, 2022
7a9a43a
feat: add placeholder to inputSelect
ArmanNik Jul 21, 2022
fc9dba9
feat: attributes and indexes pages
ArmanNik Jul 21, 2022
a977dc5
Merge branch 'users' of github.com:appwrite/appwrite-console-poc into…
ArmanNik Jul 22, 2022
4ca8fbc
feat: add status pill
ArmanNik Jul 22, 2022
d5ce2c8
fix: implic type
ArmanNik Jul 22, 2022
0aef6e5
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Jul 22, 2022
5dd5898
feat: create indexOverview
ArmanNik Jul 25, 2022
dcc8ec0
feat: create steps component
ArmanNik Jul 25, 2022
b9fd179
feat: start implementin wizard component
ArmanNik Jul 25, 2022
974e68c
chore: bump css to 0.0.0-33
ArmanNik Jul 25, 2022
f546ceb
feat: more wizard implementation
ArmanNik Jul 25, 2022
bf6e9a4
feat: dynamically show inputs
ArmanNik Jul 25, 2022
9cb2cf9
feat: add wizard media
ArmanNik Jul 25, 2022
e644a05
feaet: start work on array attributes
ArmanNik Jul 25, 2022
0814de4
chore: bump to 0.0.0-34
ArmanNik Jul 25, 2022
f5257c6
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Jul 25, 2022
7cbcb6c
more work on wizard
ArmanNik Jul 26, 2022
f6cfb6e
feat: update layout
ArmanNik Jul 26, 2022
82fcce0
feat: document view
ArmanNik Jul 26, 2022
2a01b31
chore: bump to 0.0.0-35
ArmanNik Jul 27, 2022
80bb165
feat: document creation and update (WIP)
ArmanNik Jul 27, 2022
58eb5be
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Aug 1, 2022
57f151f
feat: add empty buckets
ArmanNik Aug 2, 2022
0d56abc
fix: remove transition from wizard
ArmanNik Aug 2, 2022
ab40b03
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Aug 2, 2022
f4dfa71
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Aug 3, 2022
b2824bf
fix: cell and tables
ArmanNik Aug 3, 2022
3bb68b5
feat: add some logic to the steps component
ArmanNik Aug 4, 2022
27e1b16
feat: add substeps
ArmanNik Aug 5, 2022
b0ec082
chore: bump to 0.0.0-38
ArmanNik Aug 5, 2022
c8275bb
feat: document creation
ArmanNik Aug 5, 2022
1c249d3
chore: remove unused route
ArmanNik Aug 5, 2022
404e391
typo fixes
ArmanNik Aug 5, 2022
c7c503b
feat: add steps to number input to support float
ArmanNik Aug 5, 2022
fa52094
feat: create & implement choice input
ArmanNik Aug 5, 2022
f49b301
Merge branch 'main' of https://github.com/appwrite/appwrite-console-p…
TorstenDittmann Aug 16, 2022
bb1e52f
sync
TorstenDittmann Aug 16, 2022
7f5c249
Merge branch 'main' of https://github.com/appwrite/appwrite-console-p…
TorstenDittmann Aug 16, 2022
3eba0ab
small fixes
ArmanNik Aug 25, 2022
2b3cdc5
chore: bump to 0.0.0-48
ArmanNik Aug 25, 2022
21a0109
feat: add table scroll component
ArmanNik Aug 25, 2022
ff0d57f
fix: racing condition for tabs
ArmanNik Aug 25, 2022
64512a5
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Aug 26, 2022
24924e4
typo: capitalization
ArmanNik Aug 26, 2022
9d8b78a
feat: small design improvement
ArmanNik Sep 1, 2022
9c347e3
feat: number of coll and docs, + small fixes
ArmanNik Sep 1, 2022
f9ff29b
fix: text and removed database total
ArmanNik Sep 1, 2022
716e75a
fix: wizard not loading
ArmanNik Sep 1, 2022
adada43
Merge branch 'main' of https://github.com/appwrite/appwrite-console-p…
TorstenDittmann Sep 6, 2022
c3a9d8b
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Sep 7, 2022
fdc6d37
fix: renamed components
ArmanNik Sep 7, 2022
16d4a60
fix: route
ArmanNik Sep 8, 2022
57f257a
refacto: remove subStep, implement svelte:self
ArmanNik Sep 8, 2022
45abf6d
fix: wrong data used for testing
ArmanNik Sep 8, 2022
931d24a
fix: back btn route, render condition
ArmanNik Sep 9, 2022
89e1146
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Sep 9, 2022
4d415af
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Sep 9, 2022
e7cbf8c
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Sep 9, 2022
08ebcaf
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Sep 9, 2022
451b6e9
fix: broken routes
ArmanNik Sep 9, 2022
da76ead
fix: renamed function
ArmanNik Sep 9, 2022
5417e5a
fix: renamed function
ArmanNik Sep 9, 2022
9bf03c4
fix: merge problem
ArmanNik Sep 9, 2022
7de2d53
fix: remove call not needed
ArmanNik Sep 9, 2022
94076c5
fix: dropListItem preventDefault by default
ArmanNik Sep 9, 2022
be72d81
fix: function names
ArmanNik Sep 9, 2022
57d1d33
fix: variable name
ArmanNik Sep 9, 2022
e041637
refactor: array comparison
ArmanNik Sep 9, 2022
8d52891
feat: update console package and implement changes
ArmanNik Sep 13, 2022
73a00db
Merge branch 'main' of github.com:appwrite/appwrite-console-poc into …
ArmanNik Sep 13, 2022
722196c
chore: bump console to 5.0.5
ArmanNik Sep 13, 2022
cb0fc87
feat: upgrade stores to new caching
ArmanNik Sep 13, 2022
fb6ad26
feat: update missing stores to abstracted caching
ArmanNik Sep 13, 2022
d406930
chore: remove unused dependencies
ArmanNik Sep 13, 2022
25d205d
fix: typings for attributeList store
TorstenDittmann Sep 15, 2022
f157c4b
fix: some minor stuff in database
TorstenDittmann Sep 15, 2022
6ab5a8a
chore: remove console.log
TorstenDittmann Sep 15, 2022
f94f10c
fix: realtime for attributes
TorstenDittmann Sep 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 13 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"e2e": "playwright test tests/e2e"
},
"dependencies": {
"@aw-labs/appwrite-console": "^1.0.0-0",
"@aw-labs/appwrite-console": "^5.0.5",
"@aw-labs/icons": "0.0.0-54",
"@aw-labs/ui": "0.0.0-54",
"echarts": "^5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/cardGrid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/dropListItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</script>

<li class="drop-list-item">
<button class="drop-button" on:click>
<button class="drop-button" on:click|preventDefault>
<span class="text"><slot /></span>
{#if icon}
<span class={`icon-${icon}`} aria-hidden="true" />
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ export { default as Box } from './box.svelte';
export { default as Search } from './search.svelte';
export { default as GridItem1 } from './gridItem1.svelte';
export { default as EmptyGridItem } from './emptyGridItem.svelte';
export { default as Steps } from './steps.svelte';
export { default as Step } from './step.svelte';
10 changes: 6 additions & 4 deletions src/lib/components/modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@
{/if}
<slot />
</div>
<div class="modal-footer">
<div class="u-flex u-main-end u-gap-12">
<slot name="footer" />
{#if $$slots.footer}
<div class="modal-footer">
<div class="u-flex u-main-end u-gap-12">
<slot name="footer" />
</div>
</div>
</div>
{/if}
</section>
</div>
{/if}
33 changes: 33 additions & 0 deletions src/lib/components/step.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<script lang="ts">
export let completed = false;
export let current = false;
export let currentSub = 0;
export let isSub = false;
export let step: { text: string; substeps?: { text: string }[] };
</script>

<li
class:steps-item={!isSub}
class:steps-sub-item={isSub}
class:is-done={completed}
class:is-current={current}
aria-label={` ${completed ? 'done' : current ? 'current' : ''} step`}>
{#if isSub}
<span class="text">{step.text}</span>
{:else}
<div class="step-item-content">
<span class="text">{step.text}</span>
{#if step?.substeps}
<ul class="steps-sub">
{#each step.substeps as subStep, index}
<svelte:self
isSub={true}
step={subStep}
current={currentSub === index}
completed={index < currentSub} />
{/each}
</ul>
{/if}
</div>
{/if}
</li>
19 changes: 19 additions & 0 deletions src/lib/components/steps.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<script lang="ts">
import Step from './step.svelte';

export let steps: { text: string; substeps?: { text: string }[] }[];
export let currentStep = 0;
export let currentSub = 0;
</script>

<ol class="steps">
{#if steps}
{#each steps as step, index}
<Step
bind:currentSub
current={currentStep === index}
completed={index < currentStep}
{step} />
{/each}
{/if}
</ol>
2 changes: 2 additions & 0 deletions src/lib/elements/forms/inputEmail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
export let placeholder = '';
export let required = false;
export let disabled = false;
export let readonly = false;
export let autofocus = false;
export let autocomplete = false;

Expand Down Expand Up @@ -47,6 +48,7 @@
{placeholder}
{disabled}
{required}
{readonly}
type="email"
class="input-text"
autocomplete={autocomplete ? 'on' : 'off'}
Expand Down
4 changes: 4 additions & 0 deletions src/lib/elements/forms/inputNumber.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
export let placeholder = '';
export let required = false;
export let disabled = false;
export let readonly = false;
export let autofocus = false;
export let maxlength: number = null;
export let minlength: number = null;
export let step: number | 'any' = 1;

let element: HTMLInputElement;
let error: string;
Expand Down Expand Up @@ -48,6 +50,8 @@
{required}
{minlength}
{maxlength}
{readonly}
{step}
type="number"
class="input-text"
bind:value
Expand Down
3 changes: 2 additions & 1 deletion src/lib/elements/forms/inputPhone.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
export let placeholder = '';
export let required = false;
export let disabled = false;
export let readonly = false;
export let autofocus = false;
export let autocomplete = false;
export let maxlength: number = null;
Expand Down Expand Up @@ -54,9 +55,9 @@
{required}
{maxlength}
{pattern}
{readonly}
type="text"
autocomplete={autocomplete ? 'on' : 'off'}
class="input-text"
bind:value
bind:this={element}
on:invalid={handleInvalid} />
Expand Down
8 changes: 6 additions & 2 deletions src/lib/elements/forms/inputSelect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
export let label: string;
export let showLabel = true;
export let id: string;
export let value: string;
export let value: string | number | boolean;
export let placeholder = '';
export let required = false;
export let disabled = false;
export let options: {
value: string;
value: string | boolean | number;
label: string;
}[];

Expand Down Expand Up @@ -40,6 +41,9 @@
bind:this={element}
bind:value
on:invalid={handleInvalid}>
{#if placeholder}
<option value={null} disabled selected hidden>{placeholder}</option>
{/if}
{#each options as option}
<option value={option.value} selected={option.value === value}>
{option.label}
Expand Down
4 changes: 4 additions & 0 deletions src/lib/elements/forms/inputTags.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
export let tags: string[] = [];
export let placeholder = '';
export let autofocus = false;
export let disabled = false;
export let readonly = false;

let value = '';
let element: HTMLInputElement;
Expand Down Expand Up @@ -89,6 +91,8 @@
<input
{id}
placeholder={!tags.length ? placeholder : ''}
{disabled}
{readonly}
type="text"
class="tags-input-text"
bind:value
Expand Down
2 changes: 2 additions & 0 deletions src/lib/elements/forms/inputText.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
export let placeholder = '';
export let required = false;
export let disabled = false;
export let readonly = false;
export let autofocus = false;
export let autocomplete = false;
export let maxlength: number = null;
Expand Down Expand Up @@ -45,6 +46,7 @@
{id}
{placeholder}
{disabled}
{readonly}
{required}
{maxlength}
autocomplete={autocomplete ? 'on' : 'off'}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/elements/forms/inputTextarea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
export let placeholder = '';
export let required = false;
export let disabled = false;
export let readonly = false;
export let autofocus = false;
export let maxlength: number = null;

Expand Down Expand Up @@ -42,6 +43,7 @@
{id}
{placeholder}
{disabled}
{readonly}
{required}
{maxlength}
class="input-text"
Expand Down
1 change: 1 addition & 0 deletions src/lib/elements/table/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { default as Table } from './table.svelte';
export { default as TableScroll } from './tableScroll.svelte';
export { default as TableBody } from './body.svelte';
export { default as TableHeader } from './header.svelte';
export { default as TableFooter } from './footer.svelte';
Expand Down
7 changes: 7 additions & 0 deletions src/lib/elements/table/tableScroll.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class="table-with-scroll u-margin-block-start-32">
<div class="table-wrapper">
<div class="table is-sticky-scroll" role="table">
<slot />
</div>
</div>
</div>
10 changes: 10 additions & 0 deletions src/lib/helpers/array.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export function intersection(arr1: unknown[], arr2: unknown[]) {
const set = new Set(arr2);
const intersection = new Set(arr1.filter((elem) => set.has(elem)));
return Array.from(intersection);
}
export function difference(arr1: unknown[], arr2: unknown[]) {
const set = new Set(arr2);
const intersection = new Set(arr1.filter((elem) => !set.has(elem)));
return Array.from(intersection);
}
Loading