Revert breaking docs changes and add disclaimers for new features until 1.5 on Cloud

This commit is contained in:
Vincent (Wen Yu) Ge
2024-03-11 10:56:25 +01:00
parent 549424e6e2
commit 333a0d5a6f
75 changed files with 410 additions and 559 deletions

View File

@@ -2,5 +2,5 @@ import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
export const load: PageLoad = async () => {
redirect(303, '/docs/tutorials/nuxt/step-1');
throw redirect(303, '/docs/tutorials/nuxt/step-1');
};

View File

@@ -39,7 +39,7 @@ export const useUserSession = () => {
};
const login = async (email: string, password: string): Promise<void> => {
const authUser = await account.createEmailPasswordSession(email, password); // Open user session in Appwrite
const authUser = await account.createEmailSession(email, password); // Open user session in Appwrite
current.value = authUser; // Pass user data to current ref
navigateTo("/");
};
@@ -127,7 +127,7 @@ We will also show buttons to toggle between the two different types of forms.
# Authentication forms {% #auth-forms %}
In the previous step, we defined a `AuthForm` to handle signup and login.
In the previous step, we defined a `AuthForm` to handle signup and login.
Let's build this form now.
Create a new file `components/authForm.vue` and add the following code.

View File

@@ -27,7 +27,7 @@ const user = useUserSession();
<!-- Email and logout button if logged in user -->
<div
class="main-header-end u-margin-inline-end-16"
v-if="user.current.value"
v-if="user.current.value"
>
<p>{{ user.current.providerUid }}</p>
<button class="button" type="button" @click="user.logout()">

View File

@@ -103,7 +103,7 @@ const user = useUserSession();
<IdeasList />
</div>
</template>
<style>
article.box {
background-color: hsl(var(--color-neutral-0));