🎨 Configure standardJS

This commit is contained in:
divlo
2020-08-03 12:04:07 +02:00
parent e22e62a749
commit 58f47c7480
120 changed files with 12271 additions and 10025 deletions

View File

@ -1,11 +1,11 @@
import axios from 'axios';
import { API_URL } from './config/config';
import axios from 'axios'
import { API_URL } from './config/config'
const api = axios.create({
baseURL: API_URL,
headers: {
'Content-Type': 'application/json'
}
});
baseURL: API_URL,
headers: {
'Content-Type': 'application/json'
}
})
export default api;
export default api

View File

@ -1 +0,0 @@
export const API_URL = "http://localhost:8080";

View File

@ -1 +1 @@
export const API_URL = "http://localhost:8080";
export const API_URL = process.env.NEXT_PUBLIC_API_URL

View File

@ -1 +0,0 @@
export const API_URL = "https://api.function.divlo.fr";

View File

@ -1,10 +1,10 @@
function copyToClipboard(text) {
const element = document.createElement('textarea');
element.value = text;
document.body.appendChild(element);
element.select();
document.execCommand('copy');
document.body.removeChild(element);
function copyToClipboard (text) {
const element = document.createElement('textarea')
element.value = text
document.body.appendChild(element)
element.select()
document.execCommand('copy')
document.body.removeChild(element)
}
export default copyToClipboard;
export default copyToClipboard

View File

@ -1,10 +1,10 @@
function redirect(ctx, path) {
if (ctx.res != undefined) {
ctx.res.writeHead(302, { Location: path });
ctx.res.end();
} else {
document.location.href = path;
}
function redirect (ctx, path) {
if (ctx.res != null) {
ctx.res.writeHead(302, { Location: path })
ctx.res.end()
} else {
document.location.href = path
}
}
module.exports = redirect;
module.exports = redirect

View File

@ -1,14 +1,14 @@
export const complex = [
["undo", "redo"],
["font", "fontSize", "formatBlock"],
["bold", "underline", "italic", "strike", "subscript", "superscript"],
["removeFormat"],
"/",
["fontColor", "hiliteColor"],
["outdent", "indent"],
["align", "horizontalRule", "list", "table"],
["link", "image", "video"],
["fullScreen", "showBlocks", "codeView"],
["preview", "print"],
["save", "template"]
];
['undo', 'redo'],
['font', 'fontSize', 'formatBlock'],
['bold', 'underline', 'italic', 'strike', 'subscript', 'superscript'],
['removeFormat'],
'/',
['fontColor', 'hiliteColor'],
['outdent', 'indent'],
['align', 'horizontalRule', 'list', 'table'],
['link', 'image', 'video'],
['fullScreen', 'showBlocks', 'codeView'],
['preview', 'print'],
['save', 'template']
]