Formatting codebase.
This commit is contained in:
parent
ca9012d07d
commit
9a38294449
|
@ -73,7 +73,7 @@
|
|||
<Label extraSmall grey>Current Users</Label>
|
||||
{#await fetchUsersPromise}
|
||||
Loading...
|
||||
{:then users}
|
||||
{:then [object Object]}
|
||||
<ul>
|
||||
{#each users as user}
|
||||
<li>
|
||||
|
@ -83,7 +83,7 @@
|
|||
<li>No Users found</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{:catch error}
|
||||
{:catch [object Object]}
|
||||
Something went wrong when trying to fetch users. Please refresh (CMD + R /
|
||||
CTRL + R) the page and try again.
|
||||
{/await}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<div class="spinner-container">
|
||||
<Spinner size="30" />
|
||||
</div>
|
||||
{:then apps}
|
||||
{:then [object Object]}
|
||||
<div class="inner">
|
||||
<div>
|
||||
<div>
|
||||
|
@ -36,7 +36,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{:catch err}
|
||||
{:catch [object Object]}
|
||||
<h1 style="color:red">{err}</h1>
|
||||
{/await}
|
||||
</div>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<div class="spinner-container">
|
||||
<Spinner size="30" />
|
||||
</div>
|
||||
{:then templates}
|
||||
{:then [object Object]}
|
||||
<div class="templates">
|
||||
{#each templates as template}
|
||||
<div class="templates-card">
|
||||
|
@ -39,7 +39,7 @@
|
|||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
{:catch err}
|
||||
{:catch [object Object]}
|
||||
<h1 style="color:red">{err}</h1>
|
||||
{/await}
|
||||
</div>
|
||||
|
|
|
@ -77,9 +77,9 @@
|
|||
{#await promise}
|
||||
<!-- This should probably be some kind of loading state? -->
|
||||
<div />
|
||||
{:then _}
|
||||
{:then [object Object]}
|
||||
<slot />
|
||||
{:catch error}
|
||||
{:catch [object Object]}
|
||||
<p>Something went wrong: {error.message}</p>
|
||||
{/await}
|
||||
</div>
|
||||
|
|
|
@ -52,9 +52,7 @@
|
|||
const tableObj = await fetchTable(row.tableId)
|
||||
for (let key of Object.keys(tableObj.schema)) {
|
||||
if (tableObj.schema[key].type === "link") {
|
||||
row[`${key}_count`] = Array.isArray(row[key])
|
||||
? row[key].length
|
||||
: 0
|
||||
row[`${key}_count`] = Array.isArray(row[key]) ? row[key].length : 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
{#await _appPromise}
|
||||
loading
|
||||
{:then _bb}
|
||||
{:then [object Object]}
|
||||
<div id="current_component" bind:this={currentComponent} />
|
||||
{/await}
|
||||
|
||||
|
|
|
@ -20,9 +20,7 @@ export default async function fetchData(datasource, store) {
|
|||
rows.forEach(row => {
|
||||
for (let key of keys) {
|
||||
if (table.schema[key].type === "link") {
|
||||
row[`${key}_count`] = Array.isArray(row[key])
|
||||
? row[key].length
|
||||
: 0
|
||||
row[`${key}_count`] = Array.isArray(row[key]) ? row[key].length : 0
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue