Add svelte as a view engine to swaf #33

Merged
ashpie merged 97 commits from svelte into develop 2021-11-09 19:31:22 +01:00
3 changed files with 100 additions and 100 deletions
Showing only changes of commit faab9e4894 - Show all commits

View File

@ -1,62 +1,62 @@
{ {
app: { app: {
name: 'Example App', name: 'Example App',
contact_email: 'contact@example.net', contact_email: 'contact@example.net',
display_email_warning: true, display_email_warning: true,
}, },
log: { log: {
level: "DEBUG", level: "DEBUG",
verbose: true, verbose: true,
db_level: "ERROR", db_level: "ERROR",
}, },
public_url: "http://localhost:4899", public_url: "http://localhost:4899",
public_websocket_url: "ws://localhost:4899", public_websocket_url: "ws://localhost:4899",
listen_addr: '127.0.0.1', listen_addr: '127.0.0.1',
port: 4899, port: 4899,
gitlab_webhook_token: 'default', gitlab_webhook_token: 'default',
mysql: { mysql: {
connectionLimit: 10, connectionLimit: 10,
host: "localhost", host: "localhost",
user: "root", user: "root",
password: "", password: "",
database: "swaf", database: "swaf",
create_database_automatically: false, create_database_automatically: false,
}, },
redis: { redis: {
host: "127.0.0.1", host: "127.0.0.1",
port: 6379, port: 6379,
prefix: 'swaf', prefix: 'swaf',
}, },
session: { session: {
secret: 'default', secret: 'default',
cookie: { cookie: {
secure: false, secure: false,
// 1 year // 1 year
maxAge: 31557600000, maxAge: 31557600000,
}, },
}, },
mail: { mail: {
host: "127.0.0.1", host: "127.0.0.1",
port: "1025", port: "1025",
secure: false, secure: false,
username: "", username: "",
password: "", password: "",
allow_invalid_tls: true, allow_invalid_tls: true,
from: 'contact@example.net', from: 'contact@example.net',
from_name: 'Example App', from_name: 'Example App',
}, },
view: { view: {
cache: false, cache: false,
enable_asset_cache: false, enable_asset_cache: false,
dev: true, dev: true,
}, },
magic_link: { magic_link: {
validity_period: 20, validity_period: 20,
}, },
auth: { auth: {
// Registered accounts need to be approved by an administrator // Registered accounts need to be approved by an administrator
approval_mode: false, approval_mode: false,
// 30 days // 30 days
name_change_wait_period: 2592000000, name_change_wait_period: 2592000000,
}, },
} }

View File

@ -1,26 +1,26 @@
{ {
log: { log: {
level: "DEV", level: "DEV",
verbose: false, verbose: false,
db_level: "ERROR", db_level: "ERROR",
}, },
public_url: "https://swaf.example", public_url: "https://swaf.example",
public_websocket_url: "wss://swaf.example", public_websocket_url: "wss://swaf.example",
session: { session: {
cookie: { cookie: {
secure: true, secure: true,
}, },
}, },
mail: { mail: {
secure: true, secure: true,
allow_invalid_tls: false, allow_invalid_tls: false,
}, },
magic_link: { magic_link: {
validity_period: 900, validity_period: 900,
}, },
view: { view: {
cache: true, cache: true,
enable_asset_cache: true, enable_asset_cache: true,
dev: false, dev: false,
}, },
} }

View File

@ -1,18 +1,18 @@
{ {
mysql: { mysql: {
host: "localhost", host: "localhost",
user: "root", user: "root",
password: "", password: "",
database: "swaf_test", database: "swaf_test",
create_database_automatically: true, create_database_automatically: true,
}, },
session: { session: {
cookie: { cookie: {
// 1s // 1s
maxAge: 1000, maxAge: 1000,
}, },
}, },
auth: { auth: {
approval_mode: true, approval_mode: true,
}, },
} }