Add feature to send share with email

This commit is contained in:
Elias Schneider
2022-05-06 10:25:10 +02:00
parent 506e6b0cab
commit ce19d22c68
22 changed files with 365 additions and 189 deletions

View File

@@ -10,16 +10,22 @@ export default [
{
key: "securityID",
type: "string",
status: "available",
required: false,
array: false,
size: 255,
default: null,
},
{
key: "users",
type: "string",
required: false,
array: true,
size: 255,
default: null,
},
{
key: "createdAt",
type: "integer",
status: "available",
required: true,
array: false,
min: 0,
@@ -29,7 +35,6 @@ export default [
{
key: "expiresAt",
type: "integer",
status: "available",
required: true,
array: false,
min: 0,
@@ -39,7 +44,6 @@ export default [
{
key: "visitorCount",
type: "integer",
status: "available",
required: false,
array: false,
min: 0,
@@ -49,7 +53,6 @@ export default [
{
key: "enabled",
type: "boolean",
status: "available",
required: false,
array: false,
default: false,
@@ -75,7 +78,6 @@ export default [
{
key: "password",
type: "string",
status: "available",
required: false,
array: false,
size: 128,
@@ -84,7 +86,6 @@ export default [
{
key: "maxVisitors",
type: "integer",
status: "available",
required: false,
array: false,
min: 0,

View File

@@ -12,6 +12,12 @@ export default () => {
vars: {
APPWRITE_FUNCTION_ENDPOINT: host,
APPWRITE_FUNCTION_API_KEY: process.env["APPWRITE_FUNCTION_API_KEY"],
SMTP_HOST: "",
SMTP_PORT: "",
SMTP_USER: "",
SMTP_PASSWORD: "",
SMTP_FROM: "",
FRONTEND_URL: "",
},
events: [],
schedule: "",

View File

@@ -41,7 +41,7 @@ import rl from "readline-sync";
console.info("Creating function deployments...");
await setupService.createFunctionDeployments();
console.info("Adding frontend url...");
console.info("Adding frontend host...");
await setupService.addPlatform(
rl.question("Frontend host of Pingvin Share (localhost): ", {
defaultInput: "localhost",