@@ -102,117 +102,121 @@ APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject(page.params.region, page.params.proj
102
102
});
103
103
</script >
104
104
105
- <Wizard title =" Add Apple platform" bind:showExitModal confirmExit >
106
- <Form onSubmit ={createApplePlatform }>
107
- <Layout .Stack gap =" xxl" >
108
- <!-- Step One -->
109
- <Layout .Grid gap ="l" rowGap ="l" columns ={4 } columnsXS ={2 }>
110
- {#each Object .entries (platforms ) as [key, value]}
111
- <Pink2Card .Selector
112
- {value }
113
- id ={key }
114
- title ={key }
115
- imageRadius =" s"
116
- name =" framework"
117
- bind:group ={platform }
118
- disabled ={isCreatingPlatform || isPlatformCreated } />
119
- {/each }
120
- </Layout .Grid >
121
-
122
- <!-- Step Two -->
123
- {#if ! isPlatformCreated }
124
- <Fieldset legend =" Details" >
125
- <Layout .Stack gap =" l" alignItems =" flex-end" >
126
- <Layout .Stack gap =" s" >
127
- <InputText
128
- id =" name"
129
- label =" Name"
130
- placeholder =" My Apple App"
131
- required
132
- bind:value ={$createPlatform .name } />
105
+ <Wizard title ="Add Apple platform" bind:showExitModal confirmExit ={! isPlatformCreated }>
106
+ <Layout .Stack gap =" xxl" >
107
+ <Form onSubmit ={createApplePlatform }>
108
+ <Layout .Stack gap =" xxl" >
109
+ <!-- Step One -->
110
+ <Layout .Grid gap ="l" rowGap ="l" columns ={4 } columnsXS ={2 }>
111
+ {#each Object .entries (platforms ) as [key, value]}
112
+ <Pink2Card .Selector
113
+ {value }
114
+ id ={key }
115
+ title ={key }
116
+ imageRadius =" s"
117
+ name =" framework"
118
+ bind:group ={platform }
119
+ disabled ={isCreatingPlatform || isPlatformCreated } />
120
+ {/each }
121
+ </Layout .Grid >
133
122
134
- <!-- Tooltips on InputText don't work as of now -->
135
- <InputText
136
- id =" hostname"
137
- label =" Bundle ID"
138
- placeholder =" com.company.appname"
139
- required
140
- bind:value ={$createPlatform .key }>
141
- <Tooltip slot =" info" maxWidth =" 15rem" >
142
- <Icon icon ={IconInfo } size =" s" />
143
- <Typography .Caption variant =" 400" slot =" tooltip" >
144
- You can find your Bundle Identifier in the General tab for
145
- your app's primary target in Xcode.
146
- </Typography .Caption >
147
- </Tooltip >
148
- </InputText >
149
- </Layout .Stack >
123
+ <!-- Step Two -->
124
+ {#if ! isPlatformCreated }
125
+ <Fieldset legend =" Details" >
126
+ <Layout .Stack gap =" l" alignItems =" flex-end" >
127
+ <Layout .Stack gap =" s" >
128
+ <InputText
129
+ id =" name"
130
+ label =" Name"
131
+ placeholder =" My Apple App"
132
+ required
133
+ bind:value ={$createPlatform .name } />
150
134
151
- <Button
152
- fullWidthMobile
153
- size =" s"
154
- submit
155
- forceShowLoader
156
- submissionLoader ={isCreatingPlatform }
157
- disabled ={! platform ||
158
- ! $createPlatform .name ||
159
- ! $createPlatform .key ||
160
- isCreatingPlatform }>
161
- Create platform
162
- </Button >
163
- </Layout .Stack >
164
- </Fieldset >
165
- {:else }
166
- <Layout .Stack gap =" xxl" >
167
- <Card padding =" s" radius =" s" >
168
- <Layout .Stack
169
- direction =" row"
170
- justifyContent =" space-between"
171
- alignItems =" center"
172
- gap =" xs" >
173
- <Layout .Stack direction =" row" alignItems =" center" gap =" s" >
174
- <Icon size ="m" icon ={IconApple } />
175
- <Typography .Text variant =" m-400" color =" --fgcolor-neutral-primary" >
176
- {$createPlatform .name } ({$createPlatform .key })
177
- </Typography .Text >
135
+ <!-- Tooltips on InputText don't work as of now -->
136
+ <InputText
137
+ id =" hostname"
138
+ label =" Bundle ID"
139
+ placeholder =" com.company.appname"
140
+ required
141
+ bind:value ={$createPlatform .key }>
142
+ <Tooltip slot =" info" maxWidth =" 15rem" >
143
+ <Icon icon ={IconInfo } size =" s" />
144
+ <Typography .Caption variant =" 400" slot =" tooltip" >
145
+ You can find your Bundle Identifier in the General tab
146
+ for your app's primary target in Xcode.
147
+ </Typography .Caption >
148
+ </Tooltip >
149
+ </InputText >
178
150
</Layout .Stack >
151
+
152
+ <Button
153
+ fullWidthMobile
154
+ size =" s"
155
+ submit
156
+ forceShowLoader
157
+ submissionLoader ={isCreatingPlatform }
158
+ disabled ={! platform ||
159
+ ! $createPlatform .name ||
160
+ ! $createPlatform .key ||
161
+ isCreatingPlatform }>
162
+ Create platform
163
+ </Button >
179
164
</Layout .Stack >
180
- </Card >
181
- </Layout .Stack >
182
- {/if }
165
+ </Fieldset >
166
+ {:else }
167
+ <Layout .Stack gap =" xxl" >
168
+ <Card padding =" s" radius =" s" >
169
+ <Layout .Stack
170
+ direction =" row"
171
+ justifyContent =" space-between"
172
+ alignItems =" center"
173
+ gap =" xs" >
174
+ <Layout .Stack direction =" row" alignItems =" center" gap =" s" >
175
+ <Icon size ="m" icon ={IconApple } />
176
+ <Typography .Text
177
+ variant =" m-400"
178
+ color =" --fgcolor-neutral-primary" >
179
+ {$createPlatform .name } ({$createPlatform .key })
180
+ </Typography .Text >
181
+ </Layout .Stack >
182
+ </Layout .Stack >
183
+ </Card >
184
+ </Layout .Stack >
185
+ {/if }
186
+ </Layout .Stack >
187
+ </Form >
183
188
184
- <!-- Step Three -->
185
- {#if isPlatformCreated }
186
- <Fieldset legend =" Clone starter" >
187
- <Layout .Stack gap =" l" >
188
- <Typography .Text variant =" m-500" >
189
- 1. If you're starting a new project, you can clone our starter kit from
190
- GitHub using the terminal or XCode.
191
- </Typography .Text >
189
+ <!-- Step Three -->
190
+ {#if isPlatformCreated }
191
+ <Fieldset legend =" Clone starter" >
192
+ <Layout .Stack gap =" l" >
193
+ <Typography .Text variant =" m-500" >
194
+ 1. If you're starting a new project, you can clone our starter kit from
195
+ GitHub using the terminal or XCode.
196
+ </Typography .Text >
192
197
193
- <!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->
194
- <div class =" pink2-code-margin-fix" >
195
- <Code lang ="bash" lineNumbers code ={gitCloneCode } />
196
- </div >
198
+ <!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->
199
+ <div class =" pink2-code-margin-fix" >
200
+ <Code lang ="bash" lineNumbers code ={gitCloneCode } />
201
+ </div >
197
202
198
- <Typography .Text variant =" m-500"
199
- >2. Open the file <InlineCode size =" s" code =" Sources/Config.plist" /> and
200
- update the configuration settings.</Typography .Text >
203
+ <Typography .Text variant =" m-500"
204
+ >2. Open the file <InlineCode size =" s" code =" Sources/Config.plist" /> and update
205
+ the configuration settings.</Typography .Text >
201
206
202
- <!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->
203
- <div class =" pink2-code-margin-fix" >
204
- <Code lang ="plaintext" lineNumbers code ={updateConfigCode } />
205
- </div >
207
+ <!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->
208
+ <div class =" pink2-code-margin-fix" >
209
+ <Code lang ="plaintext" lineNumbers code ={updateConfigCode } />
210
+ </div >
206
211
207
- <Typography .Text variant =" m-500"
208
- >3. Run the app on a connected device or simulator, then click the <InlineCode
209
- size =" s"
210
- code =" Send a ping" /> button to verify the setup.</Typography .Text >
211
- </Layout .Stack >
212
- </Fieldset >
213
- {/if }
214
- </Layout .Stack >
215
- </Form >
212
+ <Typography .Text variant =" m-500"
213
+ >3. Run the app on a connected device or simulator, then click the <InlineCode
214
+ size =" s"
215
+ code =" Send a ping" /> button to verify the setup.</Typography .Text >
216
+ </Layout .Stack >
217
+ </Fieldset >
218
+ {/if }
219
+ </Layout .Stack >
216
220
<svelte:fragment slot =" aside" >
217
221
<Card padding =" l" class =" responsive-padding" >
218
222
<Layout .Stack gap =" xxl" >
0 commit comments