mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
* init map view * switching off 3d buildings when sattelite view is on * rename menu items * upgrading dependencies, adding provider to popups * adding screenshot for map view * fixing readme * next release version
16 lines
521 B
JavaScript
16 lines
521 B
JavaScript
/*
|
|
* Copyright (c) 2026 by Christian Kellner.
|
|
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
|
|
*/
|
|
|
|
import queryString from 'query-string';
|
|
export default (_url, sortByDateParam) => {
|
|
//if no mutation is necessary, just return the original url
|
|
if (sortByDateParam == null) {
|
|
return _url;
|
|
}
|
|
const original = queryString.parseUrl(_url);
|
|
const mutate = queryString.parse(sortByDateParam);
|
|
return `${original.url}?${queryString.stringify({ ...original.query, ...mutate })}`;
|
|
};
|