mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Update links to messaging docs
This commit is contained in:
1 parent
97ba01d2a8
commit
74f09e341a
7 files changed
+54
-34
No files matched your search
@@ -230,19 +230,14 @@
|
||||
total={data.messages.total} />
|
||||
{:else if $hasPageQueries}
|
||||
<EmptyFilter resource="messages" />
|
||||
<!-- TODO: remove data.search != 'empty' when the API is ready with data -->
|
||||
{:else if data.search && data.search != 'empty'}
|
||||
{:else if data.search}
|
||||
<EmptySearch>
|
||||
<div class="u-text-center">
|
||||
<b>Sorry, we couldn't find '{data.search}'</b>
|
||||
<p>There are no messages that match your search.</p>
|
||||
</div>
|
||||
<div class="u-flex u-gap-16">
|
||||
<!-- TODO: update docs link -->
|
||||
<Button
|
||||
external
|
||||
href="https://appwrite.io/docs/products/storage/upload-download"
|
||||
text>
|
||||
<Button external href="https://appwrite.io/docs/products/messaging/messages" text>
|
||||
Documentation
|
||||
</Button>
|
||||
<Button secondary href={`/console/project-${$page.params.project}/messaging`}>
|
||||
@@ -251,12 +246,7 @@
|
||||
</div>
|
||||
</EmptySearch>
|
||||
{:else}
|
||||
<!-- TODO: update docs link -->
|
||||
<Empty
|
||||
single
|
||||
href="https://appwrite.io/docs"
|
||||
target="message"
|
||||
on:click={() => ($showCreate = true)}>
|
||||
<Empty single target="message" on:click={() => ($showCreate = true)}>
|
||||
<div class="u-text-center">
|
||||
<Heading size="7" tag="h2" trimmed={false}>
|
||||
Create your first message to get started.
|
||||
@@ -268,7 +258,7 @@
|
||||
<div class="u-flex u-flex-wrap u-gap-16 u-main-center">
|
||||
<Button
|
||||
external
|
||||
href="https://appwrite.io/docs/references/cloud/client-web/messages"
|
||||
href="https://appwrite.io/docs/products/messaging/messages"
|
||||
text
|
||||
event="empty_documentation"
|
||||
ariaLabel={`create message`}>
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
</Button>
|
||||
</EmptySearch>
|
||||
{:else}
|
||||
<!-- TODO: Update docs links -->
|
||||
<Empty single target="provider">
|
||||
<div class="u-text-center">
|
||||
<Heading size="7" tag="h2" trimmed={false}>
|
||||
@@ -95,7 +94,7 @@
|
||||
<div class="u-flex u-flex-wrap u-gap-16 u-main-center">
|
||||
<Button
|
||||
external
|
||||
href="https://appwrite.io/docs/references/cloud/client-web/providers"
|
||||
href="https://appwrite.io/docs/products/messaging/providers"
|
||||
text
|
||||
event="empty_documentation"
|
||||
ariaLabel={`create provider`}>
|
||||
|
||||
@@ -82,8 +82,7 @@
|
||||
total={data.topics.total} />
|
||||
{:else if $hasPageQueries}
|
||||
<EmptyFilter resource="topics" />
|
||||
<!-- TODO: remove data.search != 'empty' when the API is ready with data -->
|
||||
{:else if data.search && data.search != 'empty'}
|
||||
{:else if data.search}
|
||||
<EmptySearch>
|
||||
<div class="u-text-center">
|
||||
<b>Sorry, we couldn't find '{data.search}'</b>
|
||||
@@ -94,11 +93,10 @@
|
||||
</Button>
|
||||
</EmptySearch>
|
||||
{:else}
|
||||
<!-- TODO: update docs link -->
|
||||
<Empty
|
||||
single
|
||||
on:click={() => ($showCreate = true)}
|
||||
href="https://appwrite.io/docs/references/cloud/client-web/teams"
|
||||
href="https://appwrite.io/docs/products/messaging/topics"
|
||||
target="topic" />
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
+2
-4
@@ -125,8 +125,7 @@
|
||||
total={data.subscribers.total} />
|
||||
{:else if $hasPageQueries}
|
||||
<EmptyFilter resource="subscribers" />
|
||||
<!-- TODO: remove data.search != 'empty' when the API is ready with data -->
|
||||
{:else if data.search && data.search != 'empty'}
|
||||
{:else if data.search}
|
||||
<EmptySearch>
|
||||
<div class="u-text-center">
|
||||
<b>Sorry, we couldn't find '{data.search}'</b>
|
||||
@@ -139,11 +138,10 @@
|
||||
</Button>
|
||||
</EmptySearch>
|
||||
{:else}
|
||||
<!-- TODO: update docs link -->
|
||||
<Empty
|
||||
single
|
||||
on:click={() => (showAdd = true)}
|
||||
href="https://appwrite.io/docs/references/cloud/client-web/teams"
|
||||
href="https://appwrite.io/docs/products/messaging/topics/#subscribe-targets-to-topics"
|
||||
target="subscriber" />
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<p>There are no topics that match your search.</p>
|
||||
</div>
|
||||
<div class="u-flex u-gap-16 common-section u-main-center">
|
||||
<Button external href="https://appwrite.io/docs/products/auth/accounts" text
|
||||
<Button external href="https://appwrite.io/docs/products/messaging/topics" text
|
||||
>Documentation</Button>
|
||||
<Button secondary on:click={() => (search = '')}>Clear search</Button>
|
||||
</div>
|
||||
@@ -134,10 +134,9 @@
|
||||
<p class="text u-line-height-1-5">
|
||||
You have no topics. Create a topic to see them here.
|
||||
</p>
|
||||
<!-- TODO: link to topics docs -->
|
||||
<p class="text u-line-height-1-5">
|
||||
Need a hand? Learn more in our <a
|
||||
href="https://appwrite.io/docs/products/auth/quick-start"
|
||||
href="https://appwrite.io/docs/products/messaging/topics"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer">
|
||||
documentation</a
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
import SmsFormList from './smsFormList.svelte';
|
||||
import PushFormList, { validateData } from './pushFormList.svelte';
|
||||
import { MessagingProviderType } from '@appwrite.io/console';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
|
||||
let docsUrl = `https://appwrite.io/docs/products/messaging`;
|
||||
|
||||
async function beforeSubmit() {}
|
||||
|
||||
@@ -17,8 +20,20 @@
|
||||
article = lastLetter === 's' ? '' : article;
|
||||
|
||||
providerText = providerText.toLowerCase() === 'sms' ? 'SMS messages' : providerText;
|
||||
return `Create ${article} ${providerText} that will be displayed to your subscribers. Learn more in our documentation.`;
|
||||
return `Create ${article} ${providerText} that will be displayed to your subscribers.`;
|
||||
};
|
||||
|
||||
switch ($providerType) {
|
||||
case MessagingProviderType.Email:
|
||||
docsUrl += '/send-email-messages';
|
||||
break;
|
||||
case MessagingProviderType.Sms:
|
||||
docsUrl += '/send-sms-messages';
|
||||
break;
|
||||
case MessagingProviderType.Push:
|
||||
docsUrl += '/send-push-notifications';
|
||||
break;
|
||||
}
|
||||
</script>
|
||||
|
||||
<WizardStep
|
||||
@@ -27,8 +42,12 @@
|
||||
!!validateData($messageParams[MessagingProviderType.Push].data)}>
|
||||
<svelte:fragment slot="title">Message</svelte:fragment>
|
||||
<svelte:fragment slot="subtitle">
|
||||
<!-- TODO: update documentation link -->
|
||||
{createMessage(providers[$providerType].text)}
|
||||
{createMessage(providers[$providerType].text)} Learn more in our <Button
|
||||
link
|
||||
external
|
||||
text
|
||||
href={docsUrl}>documentation</Button
|
||||
>.
|
||||
</svelte:fragment>
|
||||
{#if $providerType === MessagingProviderType.Email}
|
||||
<EmailFormList />
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts">
|
||||
import { FormList, InputDate, InputSelect, InputTime } from '$lib/elements/forms';
|
||||
import { Button, FormList, InputDate, InputSelect, InputTime } from '$lib/elements/forms';
|
||||
import Helper from '$lib/elements/forms/helper.svelte';
|
||||
import { WizardStep } from '$lib/layout';
|
||||
import { MessageType } from '@appwrite.io/console';
|
||||
import { MessageType, MessagingProviderType } from '@appwrite.io/console';
|
||||
import { messageParams, providerType } from './store';
|
||||
|
||||
let when: 'now' | 'later' = 'now';
|
||||
@@ -12,6 +12,19 @@
|
||||
let date: string;
|
||||
let time: string;
|
||||
let dateTime: Date;
|
||||
let docsUrl = `https://appwrite.io/docs/products/messaging`;
|
||||
|
||||
switch ($providerType) {
|
||||
case MessagingProviderType.Email:
|
||||
docsUrl += '/send-email-messages';
|
||||
break;
|
||||
case MessagingProviderType.Sms:
|
||||
docsUrl += '/send-sms-messages';
|
||||
break;
|
||||
case MessagingProviderType.Push:
|
||||
docsUrl += '/send-push-notifications';
|
||||
break;
|
||||
}
|
||||
|
||||
const options = [
|
||||
{ label: 'Now', value: 'now' },
|
||||
@@ -52,9 +65,13 @@
|
||||
|
||||
<WizardStep {beforeSubmit}>
|
||||
<svelte:fragment slot="title">Schedule</svelte:fragment>
|
||||
<!-- TODO: Add link to docs -->
|
||||
<svelte:fragment slot="subtitle"
|
||||
>Schedule the time you want to deliver this message. Learn more in our documentation.</svelte:fragment>
|
||||
>Schedule the time you want to deliver this message. Learn more in our <Button
|
||||
link
|
||||
external
|
||||
text
|
||||
href={docsUrl}>documentation</Button
|
||||
>.</svelte:fragment>
|
||||
<FormList>
|
||||
<div
|
||||
class="u-grid u-gap-24"
|
||||
|
||||
Reference in new issue
Block a user