Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
54 changes: 28 additions & 26 deletions src/routes/console/organization-[organization]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -135,35 +135,37 @@
event="project"
on:click={() => (showCreate = true)}>
{#each data.projects.projects as project}
<GridItem1 href={`${base}/console/project-${project.$id}`}>
<svelte:fragment slot="eyebrow">
{project?.platforms?.length ? project?.platforms?.length : 'No'} apps
</svelte:fragment>
<svelte:fragment slot="title">
{project.name}
</svelte:fragment>
{#if allServiceDisabled(project)}
<p>
<span class="icon-pause" aria-hidden="true" /> All services are disabled.
</p>
{/if}
{@const platforms = filterPlatforms(
project.platforms.map((platform) => getPlatformInfo(platform.type))
)}
{#each platforms as platform, i}
{#if i < 3}
<li>
<GridItem1 href={`${base}/console/project-${project.$id}`}>
<svelte:fragment slot="eyebrow">
{project?.platforms?.length ? project?.platforms?.length : 'No'} apps
</svelte:fragment>
<svelte:fragment slot="title">
{project.name}
</svelte:fragment>
{#if allServiceDisabled(project)}
<p>
<span class="icon-pause" aria-hidden="true" /> All services are disabled.
</p>
{/if}
{@const platforms = filterPlatforms(
project.platforms.map((platform) => getPlatformInfo(platform.type))
)}
{#each platforms as platform, i}
{#if i < 3}
<Pill>
<span class={`icon-${platform.icon}`} aria-hidden="true" />
{platform.name}
</Pill>
{/if}
{/each}
{#if platforms?.length > 3}
<Pill>
<span class={`icon-${platform.icon}`} aria-hidden="true" />
{platform.name}
+{project.platforms.length - 3}
</Pill>
{/if}
{/each}
{#if platforms?.length > 3}
<Pill>
+{project.platforms.length - 3}
</Pill>
{/if}
</GridItem1>
</GridItem1>
</li>
{/each}
<svelte:fragment slot="empty">
<p>Create a new project</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@
Indicate whether this is a required attribute
</InputChoice>
<InputChoice id="array" label="Array" bind:value={data.array} disabled={data.required || editing}>
Indicate whether this attribute should act as an array
Indicate whether this attribute should act as an array, with the default value set as an empty
array.
</InputChoice>
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@
Indicate whether this is a required attribute
</InputChoice>
<InputChoice id="array" label="Array" bind:value={data.array} disabled={data.required || editing}>
Indicate whether this attribute should act as an array
Indicate whether this attribute should act as an array, with the default value set as an empty
array.
</InputChoice>
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@
Indicate whether this is a required attribute
</InputChoice>
<InputChoice id="array" label="Array" bind:value={data.array} disabled={data.required || editing}>
Indicate whether this attribute should act as an array
Indicate whether this attribute should act as an array, with the default value set as an empty
array.
</InputChoice>
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,6 @@
Indicate whether this is a required attribute
</InputChoice>
<InputChoice id="array" label="Array" bind:value={data.array} disabled={data.required || editing}>
Indicate whether this attribute should act as an array
Indicate whether this attribute should act as an array, with the default value set as an empty
array.
</InputChoice>
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,6 @@
Indicate whether this is a required attribute
</InputChoice>
<InputChoice id="array" label="Array" bind:value={data.array} disabled={data.required || editing}>
Indicate whether this attribute should act as an array
Indicate whether this attribute should act as an array, with the default value set as an empty
array.
</InputChoice>
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@
Indicate whether this is a required attribute
</InputChoice>
<InputChoice id="array" label="Array" bind:value={data.array} disabled={data.required || editing}>
Indicate whether this attribute should act as an array
Indicate whether this attribute should act as an array, with the default value set as an empty
array.
</InputChoice>
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,6 @@
Indicate whether this is a required attribute
</InputChoice>
<InputChoice id="array" label="Array" bind:value={data.array} disabled={data.required || editing}>
Indicate whether this attribute should act as an array
Indicate whether this attribute should act as an array, with the default value set as an empty
array.
</InputChoice>
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,6 @@
Indicate whether this is a required attribute
</InputChoice>
<InputChoice id="array" label="Array" bind:value={data.array} disabled={data.required || editing}>
Indicate whether this attribute should act as an array
Indicate whether this attribute should act as an array, with the default value set as an empty
array.
</InputChoice>
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,6 @@
Indicate whether this is a required attribute
</InputChoice>
<InputChoice id="array" label="Array" bind:value={data.array} disabled={data.required || editing}>
Indicate whether this attribute should act as an array
Indicate whether this attribute should act as an array, with the default value set as an empty
array.
</InputChoice>