Point to 1.5.x rc branch

This commit is contained in:
Vincent (Wen Yu) Ge
2024-02-13 19:10:05 -05:00
parent dfd0d06ebb
commit a3babb0076
10 changed files with 22 additions and 10 deletions

View File

@@ -60,7 +60,7 @@
"dependencies": { "dependencies": {
"@appwrite.io/pink": "0.1.0-next.9", "@appwrite.io/pink": "0.1.0-next.9",
"@appwrite.io/pink-icons": "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", "@splinetool/viewer": "0.9.455",
"compression": "^1.7.4", "compression": "^1.7.4",
"express": "^4.18.2", "express": "^4.18.2",

8
pnpm-lock.yaml generated
View File

@@ -12,8 +12,8 @@ dependencies:
specifier: 0.1.0-next.9 specifier: 0.1.0-next.9
version: 0.1.0-next.9 version: 0.1.0-next.9
'@appwrite.io/repo': '@appwrite.io/repo':
specifier: github:appwrite/appwrite#main specifier: github:appwrite/appwrite#feat-rc-sdks
version: github.com/appwrite/appwrite/5a715ff68cba4171bf3473eabc83b84a4ae5876c version: github.com/appwrite/appwrite/96cd47862446001ada9e791bbf4b118d892e0f28
'@splinetool/viewer': '@splinetool/viewer':
specifier: 0.9.455 specifier: 0.9.455
version: 0.9.455 version: 0.9.455
@@ -6577,8 +6577,8 @@ packages:
engines: {node: '>=12.20'} engines: {node: '>=12.20'}
dev: true dev: true
github.com/appwrite/appwrite/5a715ff68cba4171bf3473eabc83b84a4ae5876c: github.com/appwrite/appwrite/96cd47862446001ada9e791bbf4b118d892e0f28:
resolution: {tarball: https://codeload.github.com/appwrite/appwrite/tar.gz/5a715ff68cba4171bf3473eabc83b84a4ae5876c} resolution: {tarball: https://codeload.github.com/appwrite/appwrite/tar.gz/96cd47862446001ada9e791bbf4b118d892e0f28}
name: '@appwrite.io/repo' name: '@appwrite.io/repo'
version: 0.0.0 version: 0.0.0
dev: false dev: false

View File

@@ -2,7 +2,7 @@ import { writable } from 'svelte/store';
import type { Language } from './code'; import type { Language } from './code';
import { browser } from '$app/environment'; 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]; export type Version = (typeof allVersions)[number];
@@ -15,6 +15,7 @@ export enum Service {
Avatars = 'avatars', Avatars = 'avatars',
Databases = 'databases', Databases = 'databases',
Functions = 'functions', Functions = 'functions',
Messaging = 'messaging',
Health = 'health', Health = 'health',
Locale = 'locale', Locale = 'locale',
Storage = 'storage', Storage = 'storage',
@@ -106,6 +107,7 @@ export const serviceMap: Record<Service, string> = {
[Service.Avatars]: 'Avatars', [Service.Avatars]: 'Avatars',
[Service.Databases]: 'Databases', [Service.Databases]: 'Databases',
[Service.Functions]: 'Functions', [Service.Functions]: 'Functions',
[Service.Messaging]: 'Messaging',
[Service.Health]: 'Health', [Service.Health]: 'Health',
[Service.Locale]: 'Locale', [Service.Locale]: 'Locale',
[Service.Storage]: 'Storage', [Service.Storage]: 'Storage',

View File

@@ -74,6 +74,10 @@ function getExamples(version: string) {
return import.meta.glob('$appwrite/docs/examples/1.4.x/**/*.md', { return import.meta.glob('$appwrite/docs/examples/1.4.x/**/*.md', {
as: 'raw' as: 'raw'
}); });
case '1.5.x':
return import.meta.glob('$appwrite/docs/examples/1.5.x/**/*.md', {
as: 'raw'
});
} }
} }

View File

@@ -32,7 +32,7 @@ Passwords are hashed with [Argon2](https://github.com/P-H-C/phc-winner-argon2),
# Login {% #login %} # 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 ```js
import { Client, Account } from "appwrite"; import { Client, Account } from "appwrite";

View File

@@ -89,7 +89,7 @@ mutation {
# Login {% #login %} # 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 %} {% multicode %}
```js ```js

View File

@@ -53,6 +53,11 @@
icon: 'icon-lightning-bolt', icon: 'icon-lightning-bolt',
href: `${prefix}/functions` href: `${prefix}/functions`
}, },
{
label: 'Messaging',
icon: 'icon-lightning-bolt',
href: `${prefix}/messaging`
},
{ {
label: 'Localization', label: 'Localization',
icon: 'icon-location-marker', icon: 'icon-location-marker',

View File

@@ -18,7 +18,7 @@ export const entries: EntryGenerator = () => {
export const load: PageServerLoad = async ({ params }) => { export const load: PageServerLoad = async ({ params }) => {
const { platform, service } = 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 (!versions.includes(version)) throw error(404, 'Invalid version');
if (!services.includes(service as Service)) throw error(404, 'Invalid service'); if (!services.includes(service as Service)) throw error(404, 'Invalid service');
if (!platforms.includes(platform as Platform)) throw error(404, 'Invalid platform'); if (!platforms.includes(platform as Platform)) throw error(404, 'Invalid platform');

View File

@@ -24,7 +24,7 @@ type Model = {
}; };
export const load: PageServerLoad = async ({ params }) => { 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 api = await getApi(version, 'console-web');
const schema = getSchema(params.model, api); const schema = getSchema(params.model, api);
const props = Object.entries(schema.properties ?? {}); const props = Object.entries(schema.properties ?? {});