🎨 Configure standardJS
This commit is contained in:
@ -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
|
||||
|
@ -1 +0,0 @@
|
||||
export const API_URL = "http://localhost:8080";
|
@ -1 +1 @@
|
||||
export const API_URL = "http://localhost:8080";
|
||||
export const API_URL = process.env.NEXT_PUBLIC_API_URL
|
||||
|
@ -1 +0,0 @@
|
||||
export const API_URL = "https://api.function.divlo.fr";
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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']
|
||||
]
|
||||
|
Reference in New Issue
Block a user