Skip to content

Commit

Permalink
Merge pull request #248 from appwrite/feat-update-labels
Browse files Browse the repository at this point in the history
Updated labels
  • Loading branch information
TorstenDittmann authored Feb 6, 2023
2 parents 5ea4622 + 1c9e3fc commit 37c45aa
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/lib/elements/forms/inputCron.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
if (element.validity.patternMismatch) {
error = 'Please enter a valid CRON expression';
error = 'Please enter a valid Cron expression';
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/elements/forms/inputFile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<span class="icon-folder" aria-hidden="true" />
</div>
<div class="u-grid u-gap-16 u-min-width-0">
<p>Drag and drop files here to upload</p>
<p>Drag and drop files here</p>
<div class="u-flex u-gap-8 u-min-width-0">
<Button secondary on:click={() => input.click()}>
<span class="icon-upload" aria-hidden="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</Table>
{:else}
<Empty single>
<p>No session available</p>
<p>No sessions available</p>
<Button
external
secondary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
href="https://appwrite.io/docs/permissions"
target="_blank"
rel="noopener noreferrer"
class="link">Permissions Guide</a> in our documentation.
class="link">
Permissions Guide
</a>.
</p>
<svelte:fragment slot="aside">
{#if collectionPermissions}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
href="https://appwrite.io/docs/permissions"
target="_blank"
rel="noopener noreferrer"
class="link">Permissions Guide</a> in our documentation.
class="link">
Permissions Guide
</a>.
</svelte:fragment>
{#if $collection.documentSecurity}
<div class="common-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
const stepsComponents: WizardStepsType = new Map();
stepsComponents.set(1, {
label: 'Function Details',
label: 'Details',
component: Step1
});
stepsComponents.set(2, {
Expand All @@ -82,7 +82,7 @@
optional: true
});
stepsComponents.set(4, {
label: 'Scheduling',
label: 'Schedule',
component: Step4,
optional: true
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
addNotification({
type: 'success',
message: 'CRON Schedule has been updated'
message: 'Cron Schedule has been updated'
});
trackEvent('submit_function_update_schedule');
} catch (error) {
Expand Down Expand Up @@ -359,7 +359,8 @@
target="_blank"
rel="noopener noreferrer"
class="link">
Permissions Guide</a> in our documentation.
Permissions Guide
</a>.
</p>
<svelte:fragment slot="aside">
<Roles bind:roles={permissions} />
Expand Down Expand Up @@ -417,20 +418,20 @@

<Form on:submit={updateSchedule}>
<CardGrid>
<Heading tag="h6" size="7">Update CRON Schedule</Heading>
<Heading tag="h6" size="7">Update Schedule</Heading>
<p>
Set a CRON schedule to trigger your function. Leave blank for no schedule. <a
Set a Cron schedule to trigger your function. Leave blank for no schedule. <a
href="https://en.wikipedia.org/wiki/Cron"
target="_blank"
rel="noopener noreferrer"
class="link">
More details on CRON syntax here.</a>
More details on Cron syntax here.</a>
</p>
<svelte:fragment slot="aside">
<FormList>
<InputCron
bind:value={functionSchedule}
label="Schedule (CRON Syntax)"
label="Schedule (Cron Syntax)"
id="schedule" />
</FormList>
</svelte:fragment>
Expand All @@ -442,7 +443,7 @@
</Form>

<CardGrid>
<Heading tag="h6" size="7">Update Function Variables</Heading>
<Heading tag="h6" size="7">Update Variables</Heading>
<p>Set the variables (or secret keys) that will be passed to your function at runtime.</p>
<svelte:fragment slot="aside">
<div class="u-flex u-margin-inline-start-auto u-gap-16">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
required />

<InputSelect
label="Runtimes"
id="runtimes"
label="Runtime"
id="runtime"
placeholder="Select runtime"
bind:value={$createFunction.runtime}
{options}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<WizardStep>
<svelte:fragment slot="title">Execute access</svelte:fragment>
<svelte:fragment slot="subtitle">
Choose who can execute this function using the client API. Check out our documentation for
more on <a
Choose who can execute this function using the client API. For more information, check out
the <a
href="https://appwrite.io/docs/permissions"
target="_blank"
rel="noopener noreferrer"
class="link">
Permissions</a
>.
Permissions Guide
</a>.
</svelte:fragment>

<Roles bind:roles={$createFunction.execute} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
</script>

<WizardStep>
<svelte:fragment slot="title">Scheduling</svelte:fragment>
<svelte:fragment slot="title">Schedule</svelte:fragment>
<svelte:fragment slot="subtitle">
Set a CRON schedule to trigger your function. Leave blank for no schedule. <a
Set a Cron schedule to trigger your function. Leave blank for no schedule. <a
href="https://appwrite.io/docs/functions#createFunction"
target="_blank"
rel="noopener noreferrer"
class="link">More details on CRON syntax here</a
class="link">More details on Cron syntax here</a
>.
</svelte:fragment>
<FormList>
<InputCron
bind:value={$createFunction.schedule}
label="Schedule (CRON Syntax)"
label="Schedule (Cron Syntax)"
id="schedule" />
</FormList>
</WizardStep>
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@
href="https://appwrite.io/docs/permissions"
target="_blank"
rel="noopener noreferrer"
class="link">Permissions Guide</a> in our documentation.
class="link">
Permissions Guide
</a>.
</p>
{#if $bucket.fileSecurity}
<div class="common-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@
href="https://appwrite.io/docs/permissions"
target="_blank"
rel="noopener noreferrer"
class="link">Permissions Guide</a> in our documentation.
class="link">
Permissions Guide
</a>.
</p>
<svelte:fragment slot="aside">
{#if bucketPermissions}
Expand Down

1 comment on commit 37c45aa

@vercel
Copy link

@vercel vercel bot commented on 37c45aa Feb 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.