UNPKG

@devgateway/dvz-ui-react

Version:

A modular, embeddable React component library for data visualization and UI, built with TypeScript. Provides reusable components for charts, maps, dashboards, and more, with built-in support for internationalization and Redux integration.

2 lines (1 loc) 536 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../conf/index.js"),o=require("../../api/commons.js"),r=s.Config.REACT_APP_API_ROOT;function i(t){return Object.keys(t).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(t[e])).join("&")}const g=({app:t,params:e})=>{const n=`${r??""}/api/${t}/categories${e?"?"+i(e):""}`;return o.get(n)},a=({source:t,app:e,params:n})=>{const c=`${r??""}/api/${e}/stats/${t}${n?"?"+i(n):""}`;return o.get(c)};exports.getCategories=g;exports.getData=a;