Skip to content
Open
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
351 changes: 202 additions & 149 deletions frontend/src/css/global.css

Large diffs are not rendered by default.

539 changes: 273 additions & 266 deletions frontend/src/i18n/common/en.ts

Large diffs are not rendered by default.

134 changes: 67 additions & 67 deletions frontend/src/lib/LabeledValue.svelte
Original file line number Diff line number Diff line change
@@ -1,81 +1,81 @@
<script lang="ts">
import type {Snippet} from "svelte";
import IconClipboard from "$icons/IconClipboard.svelte";
import Button from "$lib/button/Button.svelte";
import {useI18n} from "$state/i18n.svelte";
import {useI18nAdmin} from "$state/i18n_admin.svelte";
import Tooltip from "$lib/Tooltip.svelte";
import type { Snippet } from 'svelte';
import IconClipboard from '$icons/IconClipboard.svelte';
import Button from '$lib/button/Button.svelte';
import { useI18n } from '$state/i18n.svelte';
import { useI18nAdmin } from '$state/i18n_admin.svelte';
import Tooltip from '$lib/Tooltip.svelte';

let {
label,
title,
mono,
copyToClip,
button,
children,
}: {
label?: string,
title?: string,
mono?: boolean,
copyToClip?: string,
button?: Snippet,
children: Snippet,
} = $props();
let {
label,
title,
mono,
copyToClip,
button,
children
}: {
label?: string;
title?: string;
mono?: boolean;
copyToClip?: string;
button?: Snippet;
children: Snippet;
} = $props();

let t = useI18n();
let ta = useI18nAdmin();
let t = useI18n();
let ta = useI18nAdmin();

let text = $state(t.common.copyToClip);
let text = $state(t.common.copyToClip);

function copy(value: string) {
navigator.clipboard.writeText(value);
text = ta.common.copiedToClip;
setTimeout(() => {
text = t.common.copyToClip;
}, 3000);
}
function copy(value: string) {
navigator.clipboard.writeText(value);
text = ta.common.copiedToClip;
setTimeout(() => {
text = t.common.copyToClip;
}, 3000);
}
</script>

<div class="container">
{#if label}
<div class="label font-label">
{label}
</div>
{/if}
<div class="flex gap-05">
<div title={title || label || ''} class={mono ? 'font-mono' : ''}>
{@render children()}
</div>
{#if button}
<div class="button">
{@render button()}
</div>
{/if}
{#if copyToClip}
<div class="button">
<Button invisible onclick={() => copy(copyToClip)}>
<Tooltip {text} xOffset={-150} yOffset={20}>
<IconClipboard width="1.25rem"/>
</Tooltip>
</Button>
</div>
{/if}
</div>
{#if label}
<div class="label font-label">
{label}
</div>
{/if}
<div class="flex gap-05">
<div title={title || label || ''} class="{mono ? 'font-mono' : ''} input">
{@render children()}
</div>
{#if button}
<div class="button">
{@render button()}
</div>
{/if}
{#if copyToClip}
<div class="button">
<Button invisible onclick={() => copy(copyToClip)}>
<Tooltip {text} xOffset={-150} yOffset={20}>
<IconClipboard width="1.25rem" />
</Tooltip>
</Button>
</div>
{/if}
</div>
</div>

<style>
.button {
margin-top: -.15rem;
margin-bottom: -.5rem;
}
.button {
margin-top: -0.15rem;
margin-bottom: -0.5rem;
}

.container {
margin: .35rem 0;
}
.container {
margin: 0.35rem 0;
}

.label {
margin-bottom: -.45rem;
font-size: .85rem;
color: hsla(var(--text) / .7);
}
.label {
margin-bottom: -0.45rem;
font-size: 0.85rem;
color: hsla(var(--text) / 0.7);
}
</style>
4 changes: 2 additions & 2 deletions frontend/src/lib/Options.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
</div>
{/snippet}

<div role="listbox" tabindex="0" class="popover" style:max-height={maxHeight} {onkeydown}>
<div role="listbox" tabindex="0" class="popover 1234" style:max-height={maxHeight} {onkeydown}>
{#if withSearch}
<SearchBar
bind:value={searchValue}
Expand Down Expand Up @@ -237,7 +237,7 @@

.optPopover {
text-align: left;
padding: .25rem .5rem;
padding: .25rem 0.7rem;
color: hsl(var(--text));
font-weight: normal;
border-radius: var(--border-radius);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/account/AccMain.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
{:else}
<div class="wide">
{#if !viewModeWideCompact}
<div clasS="info">
<div class="info">
<AccInfo bind:user {pamUser} {webIdData} {providers} {authProvider}/>
</div>
{/if}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/button/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@

.l2 {
color: hsl(var(--action));
border: 1px solid hsl(var(--action));
//border: 1px solid hsl(var(--action));
background: transparent;
}

.l3 {
color: hsla(var(--action) / .9);
border: none;
//border: none;
background: transparent;
}

Expand Down
Loading