12 implement twilio sms #37
19 changed files with 20 additions and 20 deletions
|
|
@ -58,4 +58,4 @@
|
||||||
{@render children()}
|
{@render children()}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<style></style>
|
<style></style>
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export { default as Button } from './Button.svelte';
|
export { default as Button } from './Button.svelte';
|
||||||
|
|
|
||||||
|
|
@ -51,4 +51,4 @@
|
||||||
|
|
||||||
<Story name="Text Label" args={{ color: 'primary', name: 'text', start: 'Text' }} />
|
<Story name="Text Label" args={{ color: 'primary', name: 'text', start: 'Text' }} />
|
||||||
<Story name="Icon Start" args={{ color: 'secondary', name: 'text', start: icon }} />
|
<Story name="Icon Start" args={{ color: 'secondary', name: 'text', start: icon }} />
|
||||||
<Story name="Icon End" args={{ color: 'secondary', name: 'text', end: icon }} />
|
<Story name="Icon End" args={{ color: 'secondary', name: 'text', end: icon }} />
|
||||||
|
|
|
||||||
|
|
@ -96,4 +96,4 @@
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -45,4 +45,4 @@
|
||||||
<Textarea {...props} />
|
<Textarea {...props} />
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
||||||
<Story name="Default" args={{ label: 'Label' }} children={template} />
|
<Story name="Default" args={{ label: 'Label' }} children={template} />
|
||||||
|
|
|
||||||
|
|
@ -57,4 +57,4 @@
|
||||||
class:textarea-error={color === 'error' || error}
|
class:textarea-error={color === 'error' || error}
|
||||||
{...props}
|
{...props}
|
||||||
></textarea>
|
></textarea>
|
||||||
</label>
|
</label>
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
export { default as Textarea } from './Textarea.svelte';
|
export { default as Textarea } from './Textarea.svelte';
|
||||||
export { default as TextInput } from './TextInput.svelte';
|
export { default as TextInput } from './TextInput.svelte';
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export * from './phone';
|
export * from './phone';
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export const PhoneRegex = /^\+?\d?(\d{3}\d{3}\d{4}|\d{3}-\d{3}-\d{4})$/;
|
export const PhoneRegex = /^\+?\d?(\d{3}\d{3}\d{4}|\d{3}-\d{3}-\d{4})$/;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ builder.queryType({});
|
||||||
builder.queryField('version', (t) =>
|
builder.queryField('version', (t) =>
|
||||||
t.string({
|
t.string({
|
||||||
description: 'Application version',
|
description: 'Application version',
|
||||||
resolve: () => version
|
resolve: () => version,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export * from './twilio.client';
|
export * from './twilio.client';
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import twilio from 'twilio';
|
import twilio from 'twilio';
|
||||||
import { TwilioConfig } from './twilio.config';
|
import { TwilioConfig } from './twilio.config';
|
||||||
|
|
||||||
export const twilioClient = twilio(TwilioConfig.twilio_account_sid, TwilioConfig.twilio_auth_token);
|
export const twilioClient = twilio(TwilioConfig.twilio_account_sid, TwilioConfig.twilio_auth_token);
|
||||||
|
|
|
||||||
|
|
@ -28,4 +28,4 @@ const LoadConfig = (): TwilioConfiguration => {
|
||||||
|
Add a script instead + add it to Add a script instead + add it to `bun dev`
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export const TwilioConfig = LoadConfig();
|
export const TwilioConfig = LoadConfig();
|
||||||
|
Add a script instead + add it to Add a script instead + add it to `bun dev`
Add a script instead + add it to Add a script instead + add it to `bun dev`
|
|||||||
|
|
|
||||||
|
Add a script instead + add it to Add a script instead + add it to `bun dev`
Add a script instead + add it to Add a script instead + add it to `bun dev`
|
|||||||
|
|
@ -3,4 +3,4 @@ import type { YogaInitialContext } from 'graphql-yoga';
|
||||||
export const Context = (initialContext: YogaInitialContext) => ({
|
export const Context = (initialContext: YogaInitialContext) => ({
|
||||||
...initialContext,
|
...initialContext,
|
||||||
config: {},
|
config: {},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a href="/app/sms" class="btn btn-ghost">SMS</a>
|
<a href="/app/sms" class="btn btn-ghost">SMS</a>
|
||||||
|
|
|
||||||
|
|
@ -46,4 +46,4 @@ export const actions = {
|
||||||
success: true,
|
success: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
} satisfies Actions;
|
} satisfies Actions;
|
||||||
|
|
|
||||||
|
|
@ -64,4 +64,4 @@
|
||||||
.page {
|
.page {
|
||||||
@apply flex flex-col items-center justify-around gap-24 py-[10%];
|
@apply flex flex-col items-center justify-around gap-24 py-[10%];
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -79,4 +79,4 @@
|
||||||
.page {
|
.page {
|
||||||
@apply flex flex-col items-center justify-around gap-24 py-[10%];
|
@apply flex flex-col items-center justify-around gap-24 py-[10%];
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ const config = {
|
||||||
|
|
||||||
kit: {
|
kit: {
|
||||||
version: {
|
version: {
|
||||||
name: '1.0.0-alpha'
|
name: '1.0.0-alpha',
|
||||||
},
|
},
|
||||||
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
|
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
|
||||||
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
||||||
|
|
@ -18,4 +18,4 @@ const config = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue
Add a script instead + add it to
bun dev