1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-14 17:35:35 +01:00
foris-js/src/utils/forisUrls.js

42 lines
1.4 KiB
JavaScript
Raw Normal View History

2019-10-07 17:16:27 +02:00
/*
2021-04-20 22:39:55 +02:00
* Copyright (C) 2019-2021 CZ.NIC z.s.p.o. (http://www.nic.cz/)
2019-10-07 17:16:27 +02:00
*
* This is free software, licensed under the GNU General Public License v3.
* See /LICENSE for more information.
*/
2019-11-27 17:23:08 +01:00
export const REFORIS_URL_PREFIX = "/reforis";
export const REFORIS_API_URL_PREFIX = `${REFORIS_URL_PREFIX}/api`;
2019-08-23 15:20:22 +02:00
export const ForisURLs = {
2021-08-27 20:08:19 +02:00
login: `/login?${REFORIS_URL_PREFIX}/`,
logout: `/logout`,
2020-03-06 14:00:18 +01:00
2019-08-23 15:20:22 +02:00
static: `${REFORIS_URL_PREFIX}/static/reforis`,
wifi: `${REFORIS_URL_PREFIX}/network-settings/wifi`,
2019-09-02 09:30:28 +02:00
packageManagement: {
updateSettings: `${REFORIS_URL_PREFIX}/package-management/update-settings`,
updates: `${REFORIS_URL_PREFIX}/package-management/updates`,
2021-04-20 22:39:55 +02:00
packages: `${REFORIS_URL_PREFIX}/package-management/packages`,
2019-09-02 09:30:28 +02:00
},
2019-08-23 15:20:22 +02:00
// Plugins
2020-11-27 14:43:06 +01:00
storage: `${REFORIS_URL_PREFIX}/storage`,
sentinelAgreement: `${REFORIS_URL_PREFIX}/sentinel/agreement`,
2020-11-27 14:43:06 +01:00
2019-08-23 15:20:22 +02:00
// Notifications links are used with <Link/> inside Router, thus url subdir is not required.
2020-07-30 11:40:11 +02:00
overview: "/overview",
notifications: "/overview#notifications",
2019-08-23 15:20:22 +02:00
notificationsSettings: "/administration/notifications-settings",
approveUpdates: "/package-management/updates",
languages: "/package-management/languages",
maintenance: "/administration/maintenance",
2019-08-23 15:20:22 +02:00
luci: "/cgi-bin/luci",
// API
2022-02-10 11:14:32 +01:00
about: `${REFORIS_API_URL_PREFIX}/about`,
2019-11-27 17:23:08 +01:00
reboot: `${REFORIS_API_URL_PREFIX}/reboot`,
2019-08-23 15:20:22 +02:00
};