Skip to content

Commit

Permalink
Merge branch 'merge-deps-1-22' into dependabot/npm_and_yarn/sveltejs/…
Browse files Browse the repository at this point in the history
…kit-2.16.1
  • Loading branch information
JamesPeck authored Jan 22, 2025
2 parents 3d33303 + 125db32 commit 0cb97e8
Show file tree
Hide file tree
Showing 27 changed files with 250 additions and 189 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Step 1: Build the app with node
FROM node:23.0.0-alpine3.19 AS builder
FROM node:23.3.0-alpine3.19 AS builder
WORKDIR /app
COPY package*.json .
COPY .env .
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.bdc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Step 1: Build the app with node
FROM node:23.0.0-alpine3.19 AS builder
FROM node:23.3.0-alpine3.19 AS builder
WORKDIR /app
COPY package*.json .
COPY .env .
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Step 1: Build the app with node
FROM node:23.0.0-alpine3.19 AS builder
FROM node:23.3.0-alpine3.19 AS builder
WORKDIR /app
COPY package*.json .
COPY .env .
Expand Down
83 changes: 33 additions & 50 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"@skeletonlabs/skeleton": "2.10.3",
"@skeletonlabs/tw-plugin": "0.4.0",
"@sveltejs/adapter-auto": "^3.2.4",
"@sveltejs/adapter-node": "^2.1.2",
"@sveltejs/kit": "^2.16.1",
"@sveltejs/adapter-node": "^5.2.10",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"@tailwindcss/forms": "0.5.7",
"@tailwindcss/typography": "0.5.15",
Expand All @@ -42,7 +42,7 @@
"svelte-check": "^3.8.5",
"svelte-eslint-parser": "^0.40.0",
"tailwindcss": "3.3.6",
"tslib": "^2.6.3",
"tslib": "^2.8.1",
"typescript": "^5.6.3",
"vite": "^5.4.8",
"vite-plugin-tailwind-purgecss": "0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/HelpInfoPopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
data-popup={id}
>
{text}
<div class="arrow variant-filled-surface" />
<div class="arrow variant-filled-surface"></div>
</div>
</div>
{/if}
4 changes: 2 additions & 2 deletions src/lib/components/Navigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { AppBar, popup, type PopupSettings } from '@skeletonlabs/skeleton';
import { page } from '$app/stores';
import { goto } from '$app/navigation';
import { user, userRoutes, logout } from '$lib/stores/User';
import { user, userRoutes, isLoggedIn, logout } from '$lib/stores/User';
import type { Route } from '$lib/models/Route';
import Logo from '$lib/components/Logo.svelte';
import type AuthData from '$lib/models/AuthProvider.ts';
Expand Down Expand Up @@ -113,7 +113,7 @@
</nav>
<svelte:fragment slot="trail">
<div id="user-session-avatar">
{#if $user.privileges && $user.email}
{#if $user.privileges && $user.email && $isLoggedIn}
<!-- Logout -->
<button id="user-session-popout" use:popup={logoutClick}>
<span
Expand Down
4 changes: 4 additions & 0 deletions src/lib/components/admin/user/cell/Actions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
data-testid={`user-view-btn-${data.cell}`}
type="button"
title="View"
aria-label="View"
class="btn-icon-color"
on:click|stopPropagation={() => goto(`/admin/users/${data.cell}`)}
>
Expand All @@ -75,6 +76,7 @@
data-testid={`user-edit-btn-${data.cell}`}
type="button"
title="Edit"
aria-label="Edit"
class="btn-icon-color"
on:click|stopPropagation={() => goto(`/admin/users/${data.cell}/edit`)}
>
Expand All @@ -84,6 +86,7 @@
data-testid={`user-deactivate-btn-${data.cell}`}
type="button"
title="Deactivate user"
aria-label="Deactivate user"
class="btn-icon-color"
on:click|stopPropagation={() => userActivation(false)}
>
Expand All @@ -94,6 +97,7 @@
data-testid={`user-activate-btn-${data.cell}`}
type="button"
title="Reactivate user"
aria-label="Reactivate user"
class="btn-icon-color"
on:click|stopPropagation={() => userActivation(true)}
>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/buttons/CardButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
rel={disabled ? 'nofollow' : undefined}
tabindex="0"
>
{#if icon}<i class="icon {icon}" />{/if}
{#if icon}<i class="icon {icon}"></i>{/if}
<div class="title">{title}</div>
{#if subtitle && !['sm', 'md'].includes(size)}<div class="subtitle">{subtitle}</div>{/if}
</a>
Expand All @@ -41,7 +41,7 @@
on:click={onClick}
{disabled}
>
{#if icon}<i class="icon {icon}" />{/if}
{#if icon}<i class="icon {icon}"></i>{/if}
<div class="title">{title}</div>
{#if subtitle && !['sm', 'md'].includes(size)}<div class="subtitle">{subtitle}</div>{/if}
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/buttons/CopyButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
data-popup={buttonId}
>
{altText}
<div class="arrow variant-filled-surface" />
<div class="arrow variant-filled-surface"></div>
</div>
</button>
{:else}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/dataset/cell/Actions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
data-testid={`dataset-action-restore-${data.cell}`}
type="button"
title="Restore"
aria-label="Restore"
class="btn-icon-color"
on:click|stopPropagation={toggleArchive}
>
Expand All @@ -46,6 +47,7 @@
data-testid={`dataset-action-archive-${data.cell}`}
type="button"
title="Delete"
aria-label="Delete"
class="btn-icon-color"
on:click|stopPropagation={toggleArchive}
>
Expand Down
5 changes: 0 additions & 5 deletions src/lib/components/datatable/RemoteTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,6 @@
</div>

<style>
.pic-sure-table-compact tbody td:not(.expandable-component) {
padding-top: 0.75rem !important;
padding-bottom: 0.75rem !important;
}
table thead th {
font-weight: normal !important;
}
Expand Down
5 changes: 0 additions & 5 deletions src/lib/components/datatable/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@
</div>

<style>
.pic-sure-table-compact tbody td:not(.expandable-component) {
padding-top: 0.75rem !important;
padding-bottom: 0.75rem !important;
}
table thead th {
font-weight: normal !important;
}
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/explorer/AddFilter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@
<button
class="btn btn-icon variant-filled-primary m-1"
data-testid="add-filter"
aria-label="Add Filter"
on:click={addNewFilter}
disabled={data.type === 'Categorical' && valuesSelected.length === 0}
>
Expand Down
8 changes: 6 additions & 2 deletions src/lib/components/explorer/FacetCategory.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
/>
{/if}
{#each facetsToDisplay as facet}
<FacetItem {facet} {facetCategory} facetParent={undefined} {textFilterValue} />
<FacetItem {facet} {facetCategory} {textFilterValue} />
{/each}
{#if facets?.length > numFacetsToShow && !textFilterValue}
<button
Expand All @@ -165,7 +165,11 @@
<span class="overflow-hidden text-ellipsis whitespace-nowrap min-w-0">
{facet.display}
</span>
<button class="chip-close ml-1 flex-shrink-0" on:click={() => updateFacets([facet])}>
<button
class="chip-close ml-1 flex-shrink-0"
aria-label="Remove Facet"
on:click={() => updateFacets([facet])}
>
<i class="fa-solid fa-times hover:text-secondary-500"></i>
</button>
</span>
Expand Down
20 changes: 2 additions & 18 deletions src/lib/components/explorer/FacetItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,8 @@
export let facet: Facet;
export let facetCategory: DictionaryFacetResult;
export let facetParent: Facet | undefined;
export let textFilterValue: string | undefined;
if (facetParent) {
facet.parentRef = {
name: facetParent.name,
display: facetParent.display,
description: facetParent.description,
};
}
if (facetCategory) {
facet.categoryRef = {
name: facetCategory.name,
display: facetCategory.display,
description: facetCategory.description,
};
}
let open = false;
function toggleOpen() {
Expand Down Expand Up @@ -100,6 +83,7 @@
<button
type="button"
class="arrow-button"
aria-label="Toggle Facet {open ? 'open' : 'closed'}"
data-testId={`facet-${facet.name}-arrow`}
on:click={toggleOpen}
>
Expand All @@ -124,7 +108,7 @@
{#if open && facetsToDisplay !== undefined && facetsToDisplay?.length > 0}
<div class="flex flex-col ml-4" data-testId={`facet-${facet.name}-children`}>
{#each facetsToDisplay as child}
<svelte:self facet={child} {facetCategory} facetParent={facet} {textFilterValue} />
<svelte:self facet={child} {facetCategory} {textFilterValue} />
{/each}
</div>
{/if}
Expand Down
Loading

0 comments on commit 0cb97e8

Please sign in to comment.