fixed windows issues

This commit is contained in:
DecDuck
2024-10-09 17:55:19 +11:00
parent 0c0cfebc1e
commit 959dad383e
11 changed files with 40 additions and 28 deletions

View File

@ -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

View File

@ -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")