aboutsummaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2021-09-06 23:13:22 +0200
committerGravatar piotrruss <mail@pruss.it> 2021-09-06 23:13:22 +0200
commit569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a (patch)
tree8d1cb94a56d60b9d726222277b7516fc59895613 /configs
parent275bd1d0a9aea90696c145cf992d522a0d6b0aa8 (diff)
downloadmy_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.tar.gz
my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.tar.bz2
my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.zip
added stadard linter
Diffstat (limited to 'configs')
-rw-r--r--configs/appList.js8
-rw-r--r--configs/dbConnect.js6
-rw-r--r--configs/sendMail.js7
-rw-r--r--configs/translations.js8
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? '
}
}