Inneall cúil agus SDK

Stóráil agus ríomhphost

Uaslódáil comhaid agus seol ríomhphost idirbhirt.

Uaslódáil comhad

const input = document.querySelector('input[type=file]');
const { url, name, size } = await m77.storage.upload(input.files[0]);
await m77.db.create('photos', { url, caption: 'Sunset' });

Comhaid suas le 10 MB. Úsáideann gach uaslódáil 1 chreidmheas comhtháthaithe. Liostaítear comhaid uaslódáilte sa chluaisín Sonraí.

Ríomhphost

await m77.email.send({
  to: '[email protected]',
  subject: 'Your booking is confirmed',
  html: '<h1>See you Friday!</h1><p>Table for 2 at 19:30.</p>',
});

Úsáideann gach ríomhphost 1 chreidmheas comhtháthaithe. Is féidir le haipeanna suas le 50 ríomhphost a sheoladh in aghaidh na huaire.

Fógraí (toasts)

m77.toast('Saved!');
m77.toast('Something went wrong', 'error');