updated changelog and ui/dist

This commit is contained in:
Gani Georgiev
2023-03-27 19:43:46 +03:00
parent 05adb8c018
commit d0239f25ed
44 changed files with 131 additions and 120 deletions
+3 -3
View File
@@ -65,7 +65,7 @@
// clear default sort if created field is not available
if (
$activeCollection?.isView &&
$activeCollection?.$isView &&
!CommonHelper.extractColumnsFromQuery($activeCollection.options.query).includes("created")
) {
sort = "";
@@ -139,7 +139,7 @@
<span class="txt">API Preview</span>
</button>
{#if !$activeCollection.isView}
{#if !$activeCollection.$isView}
<button type="button" class="btn btn-expanded" on:click={() => recordUpsertPanel?.show()}>
<i class="ri-add-line" />
<span class="txt">New record</span>
@@ -161,7 +161,7 @@
bind:filter
bind:sort
on:select={(e) => {
$activeCollection.isView
$activeCollection.$isView
? recordPreviewPanel.show(e?.detail)
: recordUpsertPanel?.show(e?.detail);
}}
@@ -293,7 +293,7 @@
<button type="button" aria-label="More" class="btn btn-sm btn-circle btn-transparent flex-gap-0">
<i class="ri-more-line" />
<Toggler class="dropdown dropdown-right dropdown-nowrap">
{#if collection.isAuth && !original.verified && original.email}
{#if collection.$isAuth && !original.verified && original.email}
<button
type="button"
class="dropdown-item closable"
@@ -303,7 +303,7 @@
<span class="txt">Send verification email</span>
</button>
{/if}
{#if collection.isAuth && original.email}
{#if collection.$isAuth && original.email}
<button
type="button"
class="dropdown-item closable"
@@ -329,7 +329,7 @@
</button>
{/if}
{#if collection.isAuth && !isNew}
{#if collection.$isAuth && !isNew}
<div class="tabs-header stretched">
<button
type="button"
@@ -426,7 +426,7 @@
{/each}
</form>
{#if collection.isAuth && !isNew}
{#if collection.$isAuth && !isNew}
<div class="tab-item" class:active={activeTab === TAB_PROVIDERS}>
<ExternalAuthsList {record} />
</div>
+10 -10
View File
@@ -57,12 +57,12 @@
updateStoredHiddenColumns();
}
$: hasCreated = !collection?.isView || (records.length > 0 && records[0].created != "");
$: hasCreated = !collection?.$isView || (records.length > 0 && records[0].created != "");
$: hasUpdated = !collection?.isView || (records.length > 0 && records[0].updated != "");
$: hasUpdated = !collection?.$isView || (records.length > 0 && records[0].updated != "");
$: collumnsToHide = [].concat(
collection.isAuth
collection.$isAuth
? [
{ id: "@username", name: "username" },
{ id: "@email", name: "email" },
@@ -276,7 +276,7 @@
<table class="table" class:table-loading={isLoading}>
<thead>
<tr>
{#if !collection.isView}
{#if !collection.$isView}
<th class="bulk-select-col min-width">
{#if isLoading}
<span class="loader loader-sm" />
@@ -304,7 +304,7 @@
</SortHeader>
{/if}
{#if collection.isAuth}
{#if collection.$isAuth}
{#if !hiddenColumns.includes("@username")}
<SortHeader class="col-type-text col-field-id" name="username" bind:sort>
<div class="col-header-content">
@@ -369,7 +369,7 @@
</tr>
</thead>
<tbody>
{#each records as record (!collection.isView ? record.id : record)}
{#each records as record (!collection.$isView ? record.id : record)}
<tr
tabindex="0"
class="row-handle"
@@ -381,7 +381,7 @@
}
}}
>
{#if !collection.isView}
{#if !collection.$isView}
<td class="bulk-select-col min-width">
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="form-field" on:click|stopPropagation>
@@ -404,7 +404,7 @@
<div class="txt">{record.id}</div>
</div>
{#if collection.isAuth}
{#if collection.$isAuth}
{#if record.verified}
<i
class="ri-checkbox-circle-fill txt-sm txt-success"
@@ -421,7 +421,7 @@
</td>
{/if}
{#if collection.isAuth}
{#if collection.$isAuth}
{#if !hiddenColumns.includes("@username")}
<td class="col-type-text col-field-username">
{#if CommonHelper.isEmpty(record.username)}
@@ -487,7 +487,7 @@
>
<span class="txt">Clear filters</span>
</button>
{:else if !collection?.isView}
{:else if !collection?.$isView}
<button
type="button"
class="btn btn-secondary btn-expanded m-t-sm"
@@ -134,7 +134,7 @@
const result = await ApiClient.collection(collectionId).getList(page, batchSize, {
filter: filter,
sort: !collection?.isView ? "-created" : "",
sort: !collection?.$isView ? "-created" : "",
$cancelKey: uniqueId + "loadList",
});
@@ -199,7 +199,7 @@
autocompleteCollection={collection}
on:submit={(e) => (filter = e.detail)}
/>
{#if !collection?.isView}
{#if !collection?.$isView}
<button
type="button"
class="btn btn-transparent btn-hint p-l-sm p-r-sm"
@@ -243,7 +243,7 @@
<div class="content">
<RecordInfo {record} {displayFields} />
</div>
{#if !collection?.isView}
{#if !collection?.$isView}
<div class="actions nonintrusive">
<button
type="button"