mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
refactor: several copy changes
This commit is contained in:
1 parent
84616ef99c
commit
8cc5b38beb
14 files changed
+55
-33
No files matched your search
@@ -47,8 +47,8 @@
|
||||
</script>
|
||||
|
||||
<Wizard
|
||||
title="Add an Android Project"
|
||||
title="Add an Android platform"
|
||||
steps={stepsComponents}
|
||||
on:finish={onFinish}
|
||||
on:exit={onFinish}
|
||||
finalAction="Take me to my Dashboard" />
|
||||
finalAction="Go to dashboard" />
|
||||
@@ -51,4 +51,4 @@
|
||||
steps={stepsComponents}
|
||||
on:finish={onFinish}
|
||||
on:exit={onFinish}
|
||||
finalAction="Take me to my Dashboard" />
|
||||
finalAction="Go to dashboard" />
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
const stepsComponents: WizardStepsType = new Map();
|
||||
stepsComponents.set(1, {
|
||||
label: 'Register your app',
|
||||
label: 'Register your platform',
|
||||
component: Step1
|
||||
});
|
||||
stepsComponents.set(2, {
|
||||
@@ -47,8 +47,8 @@
|
||||
</script>
|
||||
|
||||
<Wizard
|
||||
title="Add a Flutter Project"
|
||||
title="Add a Flutter platform"
|
||||
steps={stepsComponents}
|
||||
on:finish={onFinish}
|
||||
on:exit={onFinish}
|
||||
finalAction="Take me to my Dashboard" />
|
||||
finalAction="Go to dashboard" />
|
||||
@@ -51,4 +51,4 @@
|
||||
steps={stepsComponents}
|
||||
on:finish={onFinish}
|
||||
on:exit={onFinish}
|
||||
finalAction="Take me to my Dashboard" />
|
||||
finalAction="Go to dashboard" />
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<WizardStep>
|
||||
<svelte:fragment slot="title">Get the SDK</svelte:fragment>
|
||||
<p>First, add this to your root level build.gradle file:</p>
|
||||
<p>First, add this to your root level <code class="inline-code">build.gradle</code> file.</p>
|
||||
<Code label="Groovy" labelIcon="android" language="kotlin" code={example1} withCopy />
|
||||
<p class="common-section">And add this to your project's build.gradle file:</p>
|
||||
<Code label="Groovy" labelIcon="android" language="kotlin" code={example2} withCopy />
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { Code } from '$lib/components';
|
||||
import Id from '$lib/components/id.svelte';
|
||||
import { WizardStep } from '$lib/layout';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
|
||||
@@ -16,10 +17,10 @@ val client = Client(context)
|
||||
<WizardStep>
|
||||
<svelte:fragment slot="title">Let's get coding</svelte:fragment>
|
||||
|
||||
<h2 class="heading-level-7">Init your SDK</h2>
|
||||
<h2 class="heading-level-7">Initialize your SDK</h2>
|
||||
<p>
|
||||
Now that you've downloaded the SDK, it's time to initialze it. Use your project ID, which
|
||||
can be found in your project settings page.
|
||||
Initialize your SDK by pointing the client to your Appwrite project using your <Id
|
||||
value={project}>Project ID</Id>
|
||||
</p>
|
||||
<Code
|
||||
label="Android SDK"
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
<FormList isCommonSection>
|
||||
<FormItem>
|
||||
<p>Choose a platform</p>
|
||||
<p>Choose a device</p>
|
||||
<div class="u-flex u-gap-16 u-margin-block-start-8">
|
||||
<Pill
|
||||
button
|
||||
|
||||
@@ -42,7 +42,9 @@
|
||||
{#if method === Method.Xcode}
|
||||
<ol class="numeric-list">
|
||||
<li class="numeric-list-item">
|
||||
<span class="text"> Select File > Add Packages </span>
|
||||
<span class="text">
|
||||
In the menu bar under Select File, select Add Packages
|
||||
</span>
|
||||
</li>
|
||||
<li class="numeric-list-item">
|
||||
<span class="text">
|
||||
@@ -70,7 +72,7 @@
|
||||
</li>
|
||||
</ol>
|
||||
{:else if method === Method.Swift}
|
||||
<p>Add this to your Package.swift file:</p>
|
||||
<p>Add this to your <code class="inline-code">Package.swift</code> file.</p>
|
||||
<Code withCopy withLineNumbers label="Swift" language="swift" code={example1} />
|
||||
<p class="common-section">Then add the dependency to your target:</p>
|
||||
<Code withCopy withLineNumbers label="Swift" language="swift" code={example2} />
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import { WizardStep } from '$lib/layout';
|
||||
import { Mode, MODE } from '$lib/system';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import Id from '$lib/components/id.svelte';
|
||||
|
||||
const { endpoint, project } = sdk.forProject.client.config;
|
||||
const code = `import Appwrite
|
||||
@@ -18,22 +19,19 @@ let client = Client()
|
||||
<WizardStep>
|
||||
<svelte:fragment slot="title">Let's get coding</svelte:fragment>
|
||||
|
||||
<h2 class="heading-level-7">Init your SDK</h2>
|
||||
<h2 class="heading-level-7">Initialize your SDK</h2>
|
||||
<p>
|
||||
Now that you've downloaded the SDK, it's time to initialze it. Use your project ID, which
|
||||
can be found in your project settings page.
|
||||
Initialize your SDK by pointing the client to your Appwrite project using your <Id
|
||||
value={project}>Project ID</Id>
|
||||
</p>
|
||||
<Code label="Apple SDK" labelIcon="apple" language="swift" {code} withCopy withLineNumbers />
|
||||
<p>
|
||||
Before sending any API calls to your new Appwrite project, make sure your device or emulator
|
||||
has network access to your Appwrite project's hostname or IP address.
|
||||
</p>
|
||||
{#if showAlert}
|
||||
{#if showAlert && MODE === Mode.SELF_HOSTED}
|
||||
<div class="common-section">
|
||||
<Alert
|
||||
type="info"
|
||||
dismissible={MODE === Mode.CLOUD}
|
||||
on:dismiss={() => (showAlert = false)}>
|
||||
<Alert type="info" dismissible on:dismiss={() => (showAlert = false)}>
|
||||
<svelte:fragment slot="title">For self-hosted solutions</svelte:fragment>
|
||||
When connecting to a locally hosted Appwrite project from an emulator or a mobile device,
|
||||
you should use the private IP of the device running your Appwrite project as the hostname
|
||||
|
||||
+10
-1
@@ -106,10 +106,19 @@
|
||||
$createPlatform.$id = response.$id;
|
||||
$createPlatform.type = platform;
|
||||
}
|
||||
|
||||
$: registee = {
|
||||
[Platform.Android]: 'package name',
|
||||
[Platform.Ios]: 'bundle ID',
|
||||
[Platform.Linux]: 'package name',
|
||||
[Platform.Macos]: 'bundle ID',
|
||||
[Platform.Windows]: 'package name',
|
||||
[Platform.Web]: 'hostname'
|
||||
}[platform];
|
||||
</script>
|
||||
|
||||
<WizardStep {beforeSubmit}>
|
||||
<svelte:fragment slot="title">Register your Flutter app</svelte:fragment>
|
||||
<svelte:fragment slot="title">Register your {registee}</svelte:fragment>
|
||||
<svelte:fragment slot="subtitle">
|
||||
<div class="u-flex u-gap-16 u-margin-block-start-8 u-flex-wrap">
|
||||
<Pill
|
||||
|
||||
@@ -11,10 +11,13 @@
|
||||
<WizardStep>
|
||||
<svelte:fragment slot="title">Get the SDK</svelte:fragment>
|
||||
|
||||
<p>Add Appwrite SDK to your package's pubspec.yaml file. You can view an example here.</p>
|
||||
<p>
|
||||
Add Appwrite SDK to your package's <code class="inline-code">pubspec.yaml</code> file. You can
|
||||
view an example here.
|
||||
</p>
|
||||
<Code label="YAML" language="yml" code={example1} withCopy />
|
||||
<p class="common-section">
|
||||
You can also install the SDK using the Dart package manager from your terminal:
|
||||
You can also install the SDK using the Dart package manager from your terminal.
|
||||
</p>
|
||||
<Code label="Bash" language="sh" code={example2} withCopy />
|
||||
</WizardStep>
|
||||
@@ -3,6 +3,7 @@
|
||||
import { WizardStep } from '$lib/layout';
|
||||
import { Mode, MODE } from '$lib/system';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import Id from '$lib/components/id.svelte';
|
||||
|
||||
const { endpoint, project } = sdk.forProject.client.config;
|
||||
const code = `import 'package:appwrite/appwrite.dart';
|
||||
@@ -19,10 +20,10 @@ client
|
||||
<WizardStep>
|
||||
<svelte:fragment slot="title">Let's get coding</svelte:fragment>
|
||||
|
||||
<h2 class="heading-level-7">Init your SDK</h2>
|
||||
<h2 class="heading-level-7">Initialize your SDK</h2>
|
||||
<p>
|
||||
Now that you've downloaded the SDK, it's time to initialze it. Use your project ID, which
|
||||
can be found in your project settings page.
|
||||
Initialize your SDK by pointing the client to your Appwrite project using your <Id
|
||||
value={project}>Project ID</Id>
|
||||
</p>
|
||||
<Code label="Flutter SDK" labelIcon="flutter" language="dart" {code} withCopy withLineNumbers />
|
||||
<p class="common-section">
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { WizardStep } from '$lib/layout';
|
||||
|
||||
$: isFirstProject = $page.data.platforms.total === 0;
|
||||
</script>
|
||||
|
||||
<WizardStep>
|
||||
<svelte:fragment slot="title">You're ready to go 🎉</svelte:fragment>
|
||||
<p>
|
||||
Congrats, you've just added your first platform to your Appwrite dashboard! Are you ready to
|
||||
give it a go? Why not add a database to your project, or start uploading files? The choice
|
||||
is up to you.
|
||||
{#if isFirstProject}
|
||||
Congratulations on adding the first platform to your project! Start exploring by
|
||||
creating users, adding a database to your project, or uploading files to a bucket.
|
||||
{:else}
|
||||
Congratulations on adding another platform to your project! Start building by adding a
|
||||
database, uploading files to a bucket and more via your dashboard.
|
||||
{/if}
|
||||
</p>
|
||||
</WizardStep>
|
||||
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { Code } from '$lib/components';
|
||||
import Id from '$lib/components/id.svelte';
|
||||
import { WizardStep } from '$lib/layout';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
|
||||
@@ -16,8 +17,8 @@ client
|
||||
|
||||
<h2 class="heading-level-7">Initialize your SDK</h2>
|
||||
<p>
|
||||
Initialize your SDK by pointing the client to your Appwrite project using your
|
||||
<!-- TODO: insert ID here -->
|
||||
Initialize your SDK by pointing the client to your Appwrite project using your <Id
|
||||
value={project}>Project ID</Id>
|
||||
</p>
|
||||
<Code label="Web SDK" labelIcon="code" language="js" {code} withCopy withLineNumbers />
|
||||
</WizardStep>
|
||||
Reference in new issue
Block a user