mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-17 10:11:13 +10:00
fixed windows issues
This commit is contained in:
@ -12,8 +12,7 @@
|
||||
Let's get you set up
|
||||
</h1>
|
||||
<p class="mt-6 text-lg leading-8 text-zinc-400">
|
||||
Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem
|
||||
cupidatat commodo. Elit sunt amet fugiat veniam occaecat fugiat aliqua.
|
||||
You'll need to have set up a Drop instance and created an account on it. If you're connecting to another person's instance, you'll need the url and an account.
|
||||
</p>
|
||||
<div class="mt-10 flex items-center justify-center gap-x-6">
|
||||
<NuxtLink
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
class="flex rounded-md shadow-sm ring-1 ring-inset ring-zinc-700 focus-within:ring-2 focus-within:ring-inset focus-within:ring-blue-600 sm:max-w-md"
|
||||
>
|
||||
<span
|
||||
v-if="!url.startsWith('http')"
|
||||
v-if="showHttps"
|
||||
class="flex select-none items-center pl-3 text-zinc-500 -mr-2.5 sm:text-sm"
|
||||
>https://</span
|
||||
>
|
||||
@ -87,6 +87,13 @@ const error = ref(undefined);
|
||||
const loading = ref(false);
|
||||
|
||||
const router = useRouter();
|
||||
const showHttps = computed(() => {
|
||||
const prefixes = ["http://", "https://"];
|
||||
|
||||
const doesntHavePrefix = prefixes.findIndex((e) => url.value.startsWith(e.slice(0, url.value.length))) == -1;
|
||||
|
||||
return doesntHavePrefix;
|
||||
})
|
||||
|
||||
async function connect() {
|
||||
const newUrl = url.value.startsWith("http")
|
||||
|
||||
Reference in New Issue
Block a user