fix: strip leading https://, close #668
This commit is contained in:
1 parent
23eb816dc2
commit
98d56a0a0f
6 files changed
+24
-18
No files matched your search
@@ -176,7 +176,7 @@
|
||||
{:else}
|
||||
<VirtualList
|
||||
id="feed"
|
||||
class="divide-y-2 -mx-3 sm:-mx-6 divide-slate-100 dark:divide-zinc-900"
|
||||
class="divide-y -mx-3 sm:-mx-6 divide-slate-100 dark:divide-zinc-900"
|
||||
items={posts}
|
||||
{initialOffset}
|
||||
overscan={3}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
{@render children?.()}
|
||||
<div class="min-h-screen flex flex-col">
|
||||
<div
|
||||
class={['shell-navbar-holder', !dockVisible && 'max-md:-bottom-24']}
|
||||
class={['shell-navbar-holder', !dockVisible && 'max-md:-bottom-24!']}
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div class="md:hidden flex justify-between" dir="ltr">
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
.nav-btn {
|
||||
width: calc(var(--spacing) * 10);
|
||||
height: calc(var(--spacing) * 10);
|
||||
transition: 75ms cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||
|
||||
color: var(--color-slate-500);
|
||||
|
||||
@@ -127,20 +128,28 @@
|
||||
|
||||
.nav-btn-sm-primary .prefix {
|
||||
@variant max-md {
|
||||
background-color: var(--color-primary-900);
|
||||
background: radial-gradient(
|
||||
circle at 20% 0%,
|
||||
var(--color-primary-800),
|
||||
var(--color-primary-900)
|
||||
);
|
||||
color: var(--color-slate-50);
|
||||
border-radius: var(--radius-xl);
|
||||
|
||||
@variant hover {
|
||||
color: var(--color-slate-50);
|
||||
filter: brightness(120%);
|
||||
@variant dark {
|
||||
filter: brightness(90%);
|
||||
}
|
||||
}
|
||||
|
||||
@variant dark {
|
||||
background-color: var(--color-primary-100);
|
||||
background: radial-gradient(
|
||||
circle at bottom right,
|
||||
var(--color-primary-200),
|
||||
var(--color-primary-100)
|
||||
);
|
||||
color: var(--color-zinc-900);
|
||||
@variant hover {
|
||||
color: var(--color-zinc-900);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,11 +275,6 @@ export function getGroups(
|
||||
name: t.get('account.addGuest'),
|
||||
icon: Plus,
|
||||
},
|
||||
{
|
||||
href: '/accounts',
|
||||
name: t.get('account.accounts'),
|
||||
icon: UserGroup,
|
||||
},
|
||||
]
|
||||
: [
|
||||
{
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
{#if removing.shown && removing.account}
|
||||
<Modal bind:open={removing.shown}>
|
||||
{#snippet customTitle()}
|
||||
<span>Removing Account</span>
|
||||
<span>{$t('account.logout')}</span>
|
||||
{/snippet}
|
||||
<div class="flex flex-row items-center gap-2">
|
||||
<ProfileAvatar profile={removing.account} selected={true} />
|
||||
@@ -76,7 +76,6 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<p>This removes the account from Photon, it does not delete the account.</p>
|
||||
<div class="flex flex-row gap-2 items-center">
|
||||
<Button size="lg" class="flex-1" onclick={() => (removing.shown = false)}>
|
||||
Cancel
|
||||
|
||||
@@ -55,7 +55,8 @@
|
||||
clearErrorScope(page.route.id)
|
||||
|
||||
try {
|
||||
data.instance = data.instance.trim()
|
||||
// leading HTTPS is redundant
|
||||
data.instance = data.instance.trim().replace(/^https:\/\//, '')
|
||||
|
||||
const response = await client({
|
||||
instanceURL: data.instance,
|
||||
@@ -143,7 +144,7 @@
|
||||
required
|
||||
pattern={DOMAIN_REGEX_FORMS}
|
||||
autocorrect="off"
|
||||
autocapitalize="none"
|
||||
autocapitalize="off"
|
||||
>
|
||||
{#snippet suffix()}
|
||||
<Select
|
||||
@@ -160,7 +161,9 @@
|
||||
}
|
||||
class="border-y-0! border-r-0! rounded-none! border-l max-w-24"
|
||||
>
|
||||
<Option data-label="true" value="placeholder" disabled>{$t('form.instanceType')}</Option>
|
||||
<Option data-label="true" value="placeholder" disabled>
|
||||
{$t('form.instanceType')}
|
||||
</Option>
|
||||
<Option value="lemmyv3">Lemmy</Option>
|
||||
<Option value="piefedvalpha">Piefed</Option>
|
||||
</Select>
|
||||
|
||||
Reference in new issue
Block a user