Skip to content

Commit d563aa6

Browse files
authored
Merge pull request #2024 from appwrite/fix-pro-1929
Fix: platform wizard copies
2 parents 3ecaba5 + 7bf0ebc commit d563aa6

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

src/routes/(console)/project-[region]-[project]/overview/platforms/createAndroid.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ const val APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.region, page.
161161
<Fieldset legend="Clone starter">
162162
<Layout.Stack gap="l">
163163
<Typography.Text variant="m-500">
164-
1. Clone the starter kit from GitHub using the terminal or Android Studio.
164+
1. If you're starting a new project, you can clone our starter kit from
165+
GitHub using the terminal, VSCode or Android Studio.
165166
</Typography.Text>
166167

167168
<!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->

src/routes/(console)/project-[region]-[project]/overview/platforms/createApple.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject(page.params.region, page.params.proj
191191
<Fieldset legend="Clone starter">
192192
<Layout.Stack gap="l">
193193
<Typography.Text variant="m-500">
194-
1. Clone the starter kit from GitHub using the terminal or XCode.
194+
1. If you're starting a new project, you can clone our starter kit from
195+
GitHub using the terminal or XCode.
195196
</Typography.Text>
196197

197198
<!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->

src/routes/(console)/project-[region]-[project]/overview/platforms/createFlutter.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.reg
266266
<Fieldset legend="Clone starter">
267267
<Layout.Stack gap="l">
268268
<Typography.Text variant="m-500">
269-
1. Clone the starter kit from GitHub using the terminal, Android Studio or
270-
VSCode.
269+
1. If you're starting a new project, you can clone our starter kit from
270+
GitHub using the terminal, VSCode or Android Studio.
271271
</Typography.Text>
272272

273273
<!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->

src/routes/(console)/project-[region]-[project]/overview/platforms/createReactNative.svelte

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import ConnectionLine from './components/ConnectionLine.svelte';
2626
import OnboardingPlatformCard from './components/OnboardingPlatformCard.svelte';
2727
import { PlatformType } from '@appwrite.io/console';
28-
import { isCloud } from '$lib/system';
2928
3029
let showExitModal = false;
3130
let isPlatformCreated = false;
@@ -36,10 +35,8 @@
3635
const gitCloneCode =
3736
'\ngit clone https://github.com/appwrite/starter-for-react-native\ncd starter-for-react-native\n';
3837
39-
const updateConfigCode = isCloud
40-
? `const APPWRITE_PROJECT_ID = "${projectId}";`
41-
: `const APPWRITE_PROJECT_ID = "${projectId}";
42-
const APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.region, page.params.project).client.config.endpoint}";
38+
const updateConfigCode = `const EXPO_PUBLIC_APPWRITE_PROJECT_ID = "${projectId}";
39+
const EXPO_PUBLIC_APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.project).client.config.endpoint}";
4340
`;
4441
4542
export let platform: PlatformType = PlatformType.Reactnativeandroid;
@@ -217,7 +214,8 @@ const APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.region, page.para
217214
<Fieldset legend="Clone starter">
218215
<Layout.Stack gap="l">
219216
<Typography.Text variant="m-500">
220-
1. Clone the starter kit from GitHub using the terminal or VSCode.
217+
1. If you're starting a new project, you can clone our starter kit from
218+
GitHub using the terminal or VSCode.
221219
</Typography.Text>
222220

223221
<!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->
@@ -226,8 +224,11 @@ const APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.region, page.para
226224
</div>
227225

228226
<Typography.Text variant="m-500"
229-
>2. Open the file <InlineCode size="s" code="lib/constants/appwrite.js" /> and
230-
update the configuration settings.</Typography.Text>
227+
>2. Add your Appwrite credentials to <InlineCode
228+
size="s"
229+
code=".env.example" /> then rename it to <InlineCode
230+
size="s"
231+
code=".env" /> if needed.</Typography.Text>
231232

232233
<!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->
233234
<div class="pink2-code-margin-fix">

src/routes/(console)/project-[region]-[project]/overview/platforms/createWeb.svelte

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p
273273
<Fieldset legend="Clone starter">
274274
<Layout.Stack gap="l">
275275
<Typography.Text variant="m-500">
276-
1. Clone the starter kit from GitHub using the terminal or VSCode.
276+
1. If you're starting a new project, you can clone our starter kit from
277+
GitHub using the terminal or VSCode.
277278
</Typography.Text>
278279

279280
<!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->
@@ -292,9 +293,11 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p
292293
to reflect the values below:</Typography.Text>
293294
{:else}
294295
<Typography.Text variant="m-500"
295-
>2. Rename <InlineCode size="s" code=".env.example" /> into <InlineCode
296+
>2. Add your Appwrite credentials to <InlineCode
296297
size="s"
297-
code=".env" /> and update the values.</Typography.Text>
298+
code=".env.example" /> then rename it to <InlineCode
299+
size="s"
300+
code=".env" /> if needed.</Typography.Text>
298301
{/if}
299302

300303
<!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->

0 commit comments

Comments
 (0)