mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-09 21:07:46 +00:00
Point to 1.5.x rc branch
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
"dependencies": {
|
||||
"@appwrite.io/pink": "0.1.0-next.9",
|
||||
"@appwrite.io/pink-icons": "0.1.0-next.9",
|
||||
"@appwrite.io/repo": "github:appwrite/appwrite#main",
|
||||
"@appwrite.io/repo": "github:appwrite/appwrite#feat-rc-sdks",
|
||||
"@splinetool/viewer": "0.9.455",
|
||||
"compression": "^1.7.4",
|
||||
"express": "^4.18.2",
|
||||
|
||||
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@@ -12,8 +12,8 @@ dependencies:
|
||||
specifier: 0.1.0-next.9
|
||||
version: 0.1.0-next.9
|
||||
'@appwrite.io/repo':
|
||||
specifier: github:appwrite/appwrite#main
|
||||
version: github.com/appwrite/appwrite/5a715ff68cba4171bf3473eabc83b84a4ae5876c
|
||||
specifier: github:appwrite/appwrite#feat-rc-sdks
|
||||
version: github.com/appwrite/appwrite/96cd47862446001ada9e791bbf4b118d892e0f28
|
||||
'@splinetool/viewer':
|
||||
specifier: 0.9.455
|
||||
version: 0.9.455
|
||||
@@ -6577,8 +6577,8 @@ packages:
|
||||
engines: {node: '>=12.20'}
|
||||
dev: true
|
||||
|
||||
github.com/appwrite/appwrite/5a715ff68cba4171bf3473eabc83b84a4ae5876c:
|
||||
resolution: {tarball: https://codeload.github.com/appwrite/appwrite/tar.gz/5a715ff68cba4171bf3473eabc83b84a4ae5876c}
|
||||
github.com/appwrite/appwrite/96cd47862446001ada9e791bbf4b118d892e0f28:
|
||||
resolution: {tarball: https://codeload.github.com/appwrite/appwrite/tar.gz/96cd47862446001ada9e791bbf4b118d892e0f28}
|
||||
name: '@appwrite.io/repo'
|
||||
version: 0.0.0
|
||||
dev: false
|
||||
|
||||
@@ -2,7 +2,7 @@ import { writable } from 'svelte/store';
|
||||
import type { Language } from './code';
|
||||
import { browser } from '$app/environment';
|
||||
|
||||
const allVersions = ['1.4.x', '1.3.x', '1.2.x', '1.1.x', '1.0.x', '0.15.x', 'cloud'] as const;
|
||||
const allVersions = ['1.5.x', '1.4.x', '1.3.x', '1.2.x', '1.1.x', '1.0.x', '0.15.x', 'cloud'] as const;
|
||||
|
||||
export type Version = (typeof allVersions)[number];
|
||||
|
||||
@@ -15,6 +15,7 @@ export enum Service {
|
||||
Avatars = 'avatars',
|
||||
Databases = 'databases',
|
||||
Functions = 'functions',
|
||||
Messaging = 'messaging',
|
||||
Health = 'health',
|
||||
Locale = 'locale',
|
||||
Storage = 'storage',
|
||||
@@ -106,6 +107,7 @@ export const serviceMap: Record<Service, string> = {
|
||||
[Service.Avatars]: 'Avatars',
|
||||
[Service.Databases]: 'Databases',
|
||||
[Service.Functions]: 'Functions',
|
||||
[Service.Messaging]: 'Messaging',
|
||||
[Service.Health]: 'Health',
|
||||
[Service.Locale]: 'Locale',
|
||||
[Service.Storage]: 'Storage',
|
||||
|
||||
@@ -74,6 +74,10 @@ function getExamples(version: string) {
|
||||
return import.meta.glob('$appwrite/docs/examples/1.4.x/**/*.md', {
|
||||
as: 'raw'
|
||||
});
|
||||
case '1.5.x':
|
||||
return import.meta.glob('$appwrite/docs/examples/1.5.x/**/*.md', {
|
||||
as: 'raw'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ Passwords are hashed with [Argon2](https://github.com/P-H-C/phc-winner-argon2),
|
||||
|
||||
# Login {% #login %}
|
||||
|
||||
After you've created your account, users can be logged in using the [Create Email Password Session](/docs/references/cloud/client-web/account#createEmailPasswordSession) endpoint.
|
||||
After you've created your account, users can be logged in using the [Create Email Password Session](#) endpoint.
|
||||
|
||||
```js
|
||||
import { Client, Account } from "appwrite";
|
||||
|
||||
@@ -89,7 +89,7 @@ mutation {
|
||||
|
||||
# Login {% #login %}
|
||||
|
||||
After you've created your account, users can be logged in using the [Create Email Password Session](/docs/references/cloud/client-web/account#createEmailPasswordSession) endpoint.
|
||||
After you've created your account, users can be logged in using the [Create Email Password Session](#) endpoint.
|
||||
|
||||
{% multicode %}
|
||||
```js
|
||||
|
||||
@@ -53,6 +53,11 @@
|
||||
icon: 'icon-lightning-bolt',
|
||||
href: `${prefix}/functions`
|
||||
},
|
||||
{
|
||||
label: 'Messaging',
|
||||
icon: 'icon-lightning-bolt',
|
||||
href: `${prefix}/messaging`
|
||||
},
|
||||
{
|
||||
label: 'Localization',
|
||||
icon: 'icon-location-marker',
|
||||
|
||||
@@ -18,7 +18,7 @@ export const entries: EntryGenerator = () => {
|
||||
|
||||
export const load: PageServerLoad = async ({ params }) => {
|
||||
const { platform, service } = params;
|
||||
const version = params.version === 'cloud' ? '1.4.x' : params.version;
|
||||
const version = params.version === 'cloud' ? '1.5.x' : params.version;
|
||||
if (!versions.includes(version)) throw error(404, 'Invalid version');
|
||||
if (!services.includes(service as Service)) throw error(404, 'Invalid service');
|
||||
if (!platforms.includes(platform as Platform)) throw error(404, 'Invalid platform');
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
TODO
|
||||
@@ -24,7 +24,7 @@ type Model = {
|
||||
};
|
||||
|
||||
export const load: PageServerLoad = async ({ params }) => {
|
||||
const version = params.version === 'cloud' ? '1.4.x' : params.version;
|
||||
const version = params.version === 'cloud' ? '1.5.x' : params.version;
|
||||
const api = await getApi(version, 'console-web');
|
||||
const schema = getSchema(params.model, api);
|
||||
const props = Object.entries(schema.properties ?? {});
|
||||
|
||||
Reference in New Issue
Block a user