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}
|
{:else}
|
||||||
<VirtualList
|
<VirtualList
|
||||||
id="feed"
|
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}
|
items={posts}
|
||||||
{initialOffset}
|
{initialOffset}
|
||||||
overscan={3}
|
overscan={3}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
<div class="min-h-screen flex flex-col">
|
<div class="min-h-screen flex flex-col">
|
||||||
<div
|
<div
|
||||||
class={['shell-navbar-holder', !dockVisible && 'max-md:-bottom-24']}
|
class={['shell-navbar-holder', !dockVisible && 'max-md:-bottom-24!']}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
<div class="md:hidden flex justify-between" dir="ltr">
|
<div class="md:hidden flex justify-between" dir="ltr">
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
.nav-btn {
|
.nav-btn {
|
||||||
width: calc(var(--spacing) * 10);
|
width: calc(var(--spacing) * 10);
|
||||||
height: 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);
|
color: var(--color-slate-500);
|
||||||
|
|
||||||
@@ -127,20 +128,28 @@
|
|||||||
|
|
||||||
.nav-btn-sm-primary .prefix {
|
.nav-btn-sm-primary .prefix {
|
||||||
@variant max-md {
|
@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);
|
color: var(--color-slate-50);
|
||||||
border-radius: var(--radius-xl);
|
border-radius: var(--radius-xl);
|
||||||
|
|
||||||
@variant hover {
|
@variant hover {
|
||||||
color: var(--color-slate-50);
|
filter: brightness(120%);
|
||||||
|
@variant dark {
|
||||||
|
filter: brightness(90%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@variant dark {
|
@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);
|
color: var(--color-zinc-900);
|
||||||
@variant hover {
|
|
||||||
color: var(--color-zinc-900);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -275,11 +275,6 @@ export function getGroups(
|
|||||||
name: t.get('account.addGuest'),
|
name: t.get('account.addGuest'),
|
||||||
icon: Plus,
|
icon: Plus,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
href: '/accounts',
|
|
||||||
name: t.get('account.accounts'),
|
|
||||||
icon: UserGroup,
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
: [
|
: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
{#if removing.shown && removing.account}
|
{#if removing.shown && removing.account}
|
||||||
<Modal bind:open={removing.shown}>
|
<Modal bind:open={removing.shown}>
|
||||||
{#snippet customTitle()}
|
{#snippet customTitle()}
|
||||||
<span>Removing Account</span>
|
<span>{$t('account.logout')}</span>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
<div class="flex flex-row items-center gap-2">
|
<div class="flex flex-row items-center gap-2">
|
||||||
<ProfileAvatar profile={removing.account} selected={true} />
|
<ProfileAvatar profile={removing.account} selected={true} />
|
||||||
@@ -76,7 +76,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<div class="flex flex-row gap-2 items-center">
|
||||||
<Button size="lg" class="flex-1" onclick={() => (removing.shown = false)}>
|
<Button size="lg" class="flex-1" onclick={() => (removing.shown = false)}>
|
||||||
Cancel
|
Cancel
|
||||||
|
|||||||
@@ -55,7 +55,8 @@
|
|||||||
clearErrorScope(page.route.id)
|
clearErrorScope(page.route.id)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
data.instance = data.instance.trim()
|
// leading HTTPS is redundant
|
||||||
|
data.instance = data.instance.trim().replace(/^https:\/\//, '')
|
||||||
|
|
||||||
const response = await client({
|
const response = await client({
|
||||||
instanceURL: data.instance,
|
instanceURL: data.instance,
|
||||||
@@ -143,7 +144,7 @@
|
|||||||
required
|
required
|
||||||
pattern={DOMAIN_REGEX_FORMS}
|
pattern={DOMAIN_REGEX_FORMS}
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
autocapitalize="none"
|
autocapitalize="off"
|
||||||
>
|
>
|
||||||
{#snippet suffix()}
|
{#snippet suffix()}
|
||||||
<Select
|
<Select
|
||||||
@@ -160,7 +161,9 @@
|
|||||||
}
|
}
|
||||||
class="border-y-0! border-r-0! rounded-none! border-l max-w-24"
|
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="lemmyv3">Lemmy</Option>
|
||||||
<Option value="piefedvalpha">Piefed</Option>
|
<Option value="piefedvalpha">Piefed</Option>
|
||||||
</Select>
|
</Select>
|
||||||
|
|||||||
Reference in new issue
Block a user