diff options
Diffstat (limited to 'configs')
-rw-r--r-- | configs/appList.js | 8 | ||||
-rw-r--r-- | configs/dbConnect.js | 6 | ||||
-rw-r--r-- | configs/sendMail.js | 7 | ||||
-rw-r--r-- | configs/translations.js | 8 |
4 files changed, 14 insertions, 15 deletions
diff --git a/configs/appList.js b/configs/appList.js index c8e49da..6268e15 100644 --- a/configs/appList.js +++ b/configs/appList.js @@ -1,8 +1,8 @@ -import {Notes, Settings} from 'apps' +import { Notes, Settings } from 'apps' const appList = { - Notes: {component: Notes, icon: true, buttons: ['min', 'max', 'close'], height: '48em', width: '64em'}, - Settings: {component: Settings, icon: false, buttons: ['min'], height: '23em', width: '16em'}, -}; + Notes: { component: Notes, icon: true, buttons: ['min', 'max', 'close'], height: '48em', width: '64em' }, + Settings: { component: Settings, icon: false, buttons: ['min'], height: '23em', width: '16em' } +} export default appList diff --git a/configs/dbConnect.js b/configs/dbConnect.js index 0a0d200..a585f80 100644 --- a/configs/dbConnect.js +++ b/configs/dbConnect.js @@ -17,10 +17,10 @@ if (!MONGODB_URI) { let cached = global.mongoose if (!cached) { - cached = global.mongoose = {conn: null, promise: null} + cached = global.mongoose = { conn: null, promise: null } } -async function dbConnect() { +async function dbConnect () { if (cached.conn) { return cached.conn } @@ -32,7 +32,7 @@ async function dbConnect() { bufferCommands: false, bufferMaxEntries: 0, useFindAndModify: false, - useCreateIndex: true, + useCreateIndex: true } cached.promise = mongoose.connect(MONGODB_URI, opts).then((mongoose) => { diff --git a/configs/sendMail.js b/configs/sendMail.js index f50eaf1..6405607 100644 --- a/configs/sendMail.js +++ b/configs/sendMail.js @@ -1,15 +1,14 @@ import nodemailer from 'nodemailer' const sendMail = (to, subject, text, html) => { - const transporter = nodemailer.createTransport({ port: 465, host: process.env.MYAPPS_MAIL_SMTP_SERVER, auth: { user: process.env.MYAPPS_MAIL_ADDRESS, - pass: process.env.MYAPPS_MAIL_PASSWORD, + pass: process.env.MYAPPS_MAIL_PASSWORD }, - secure: true, + secure: true }) const mailData = { @@ -17,7 +16,7 @@ const sendMail = (to, subject, text, html) => { to, subject, text, - html, + html } return transporter.sendMail(mailData) diff --git a/configs/translations.js b/configs/translations.js index 9e1d110..8e086d9 100644 --- a/configs/translations.js +++ b/configs/translations.js @@ -70,7 +70,7 @@ const translations = { notes_updated_error: 'Could not update note', notes_removed: 'Note was removed', notes_removed_error: 'Could not remove note', - notes_remove_confirm: 'Do you want to remove note?', + notes_remove_confirm: 'Do you want to remove note?' }, pl: { register_user: 'Zarejestruj użytkownika', @@ -143,7 +143,7 @@ const translations = { notes_updated_error: 'Błąd podczas zapisu zmian w notatce', notes_removed: 'Usunięto notatkę', notes_removed_error: 'Błąd podczas usuwania notatki', - notes_remove_confirm: 'Czy na pewno chcesz usunąć notatkę?', + notes_remove_confirm: 'Czy na pewno chcesz usunąć notatkę?' }, es: { register_user: 'Registrar al usuario', @@ -216,7 +216,7 @@ const translations = { notes_updated_error: 'Error al guardar cambios en la nota', notes_removed: 'Nota eliminada', notes_removed_error: 'Error al eliminar la nota', - notes_remove_confirm: '¿Estás seguro de que deseas eliminar la nota?', + notes_remove_confirm: '¿Estás seguro de que deseas eliminar la nota?' }, de: { register_user: 'Registrieren Sie den Benutzer', @@ -289,7 +289,7 @@ const translations = { notes_updated_error: 'Fehler beim Speichern der Änderungen an der Notiz', notes_removed: 'Notiz gelöscht', notes_removed_error: 'Fehler beim Löschen der Notiz', - notes_remove_confirm: 'Möchten Sie die Notiz wirklich löschen? ', + notes_remove_confirm: 'Möchten Sie die Notiz wirklich löschen? ' } } |