mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-25 00:11:36 +01:00
Copyright.
This commit is contained in:
parent
4a481ea642
commit
7a14ed1b60
|
@ -1,3 +1,10 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
||||||
|
*
|
||||||
|
* This is free software, licensed under the GNU General Public License v3.
|
||||||
|
* See /LICENSE for more information.
|
||||||
|
*/
|
||||||
|
|
||||||
export const REFORIS_URL_PREFIX = process.env.LIGHTTPD ? "/reforis" : "";
|
export const REFORIS_URL_PREFIX = process.env.LIGHTTPD ? "/reforis" : "";
|
||||||
|
|
||||||
export const ForisURLs = {
|
export const ForisURLs = {
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
||||||
|
*
|
||||||
|
* This is free software, licensed under the GNU General Public License v3.
|
||||||
|
* See /LICENSE for more information.
|
||||||
|
*/
|
||||||
|
|
||||||
// API
|
// API
|
||||||
export { useAPIGet } from "api/get";
|
export { useAPIGet } from "api/get";
|
||||||
export { useAPIPost } from "api/post";
|
export { useAPIPost } from "api/post";
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
||||||
|
*
|
||||||
|
* This is free software, licensed under the GNU General Public License v3.
|
||||||
|
* See /LICENSE for more information.
|
||||||
|
*/
|
||||||
|
|
||||||
/** Return undefined if object has no keys, otherwise return object. */
|
/** Return undefined if object has no keys, otherwise return object. */
|
||||||
export function undefinedIfEmpty(instance) {
|
export function undefinedIfEmpty(instance) {
|
||||||
if (Object.keys(instance).length > 0) {
|
if (Object.keys(instance).length > 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user