diff --git a/gui/src/components/Button.svelte b/gui/src/components/Button.svelte index 81fcd94ea..fc7f4d41d 100644 --- a/gui/src/components/Button.svelte +++ b/gui/src/components/Button.svelte @@ -1,5 +1,10 @@ - + diff --git a/gui/src/components/CheckeredTableWrapper.svelte b/gui/src/components/CheckeredTableWrapper.svelte index ce0756c9e..1c13e1899 100644 --- a/gui/src/components/CheckeredTableWrapper.svelte +++ b/gui/src/components/CheckeredTableWrapper.svelte @@ -25,6 +25,12 @@ overflow: hidden; } + div :global(th) { + font-size: 0.85em; + font-weight: 450; + color: var(--grey-5-color); + } + div :global(td), div :global(th) { text-align: left; diff --git a/gui/src/components/Icon.svelte b/gui/src/components/Icon.svelte index ae35130a2..b796dddea 100644 --- a/gui/src/components/Icon.svelte +++ b/gui/src/components/Icon.svelte @@ -16,6 +16,7 @@ | 'Home' | 'Layers' | 'LeftUp' + | 'Lock' | 'LogoDeno' | 'LogoDiscord' | 'LogoDjango' @@ -60,6 +61,7 @@ import HomeGlyph from './icon/glyphs/Home.svelte'; import LayersGlyph from './icon/glyphs/Layers.svelte'; import LeftUpGlyph from './icon/glyphs/LeftUp.svelte'; + import LockGlyph from './icon/glyphs/Lock.svelte'; import LogoDenoGlyph from './icon/glyphs/LogoDeno.svelte'; import LogoDiscordGlyph from './icon/glyphs/LogoDiscord.svelte'; import LogoDjangoGlyph from './icon/glyphs/LogoDjango.svelte'; @@ -117,6 +119,8 @@ {:else if glyph === 'LeftUp'} +{:else if glyph === 'Lock'} + {:else if glyph === 'LogoDeno'} {:else if glyph === 'LogoDiscord'} diff --git a/gui/src/components/Link.svelte b/gui/src/components/Link.svelte index ec476d072..0839b54ba 100644 --- a/gui/src/components/Link.svelte +++ b/gui/src/components/Link.svelte @@ -1,5 +1,6 @@ @@ -7,7 +8,7 @@ { - if (href.startsWith('#')) { + if (!absoluteUrl.test(href)) { router.push(href); event.preventDefault(); } diff --git a/gui/src/components/icon/glyphs/Add.svelte b/gui/src/components/icon/glyphs/Add.svelte index 22b76a956..64c033713 100644 --- a/gui/src/components/icon/glyphs/Add.svelte +++ b/gui/src/components/icon/glyphs/Add.svelte @@ -1,5 +1,5 @@ diff --git a/gui/src/components/icon/glyphs/Lock.svelte b/gui/src/components/icon/glyphs/Lock.svelte new file mode 100644 index 000000000..fc66604ed --- /dev/null +++ b/gui/src/components/icon/glyphs/Lock.svelte @@ -0,0 +1,12 @@ + + + diff --git a/gui/src/lib/regex.ts b/gui/src/lib/regex.ts new file mode 100644 index 000000000..cc3081206 --- /dev/null +++ b/gui/src/lib/regex.ts @@ -0,0 +1 @@ +export const absoluteUrl = /^https?:\/\//i; diff --git a/gui/src/pages/WorkspaceAddVault.svelte b/gui/src/pages/WorkspaceAddVault.svelte index f1ed554fe..eee553775 100644 --- a/gui/src/pages/WorkspaceAddVault.svelte +++ b/gui/src/pages/WorkspaceAddVault.svelte @@ -1,16 +1,18 @@