mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 13:37:28 +00:00
* Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Bugfixes/whitelabelling apis (#13180) * white-labelling apis * removed consoles logs * reverts * fixes for white-labelling * fixes * reverted breadcrumb changes (#13194) * fixes for getting public sso configurations * fix for enable signup on cloud * Cloud Trial and Banners (#13182) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Cloud Trial and Banners * revert * initial commit * Added website onboarding APIs * moved ai onboarding controller to auth module * ee banners * fix --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Bugfixes/minor UI fixes-CLoud (#13203) * Bugfixes/UI bugs platform 1 (#13205) * cleanup * Audit logs fix * gitignore changes * postgrest configs removed * removed unused import * improvements * fix * improved startup logs * Platform cypress fix (#13192) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Bugfixes/whitelabelling apis (#13180) * white-labelling apis * removed consoles logs * reverts * fixes for white-labelling * fixes * Cypress fix * reverted breadcrumb changes (#13194) * cypress fix * title fix * fixes for getting public sso configurations --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * deployment fix * added interfaces and permissions * Bugfixes/lts 3.6 branch 1 platform (#13238) * fix * Licensing Banners Fixes Cloud and EE (#13241) * design: Adds license buttons to header * Refactor header actions * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * subscription page * fix banners --------- Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> * fix for public apps * fix * CE Instance Signup bug (#13254) * CE Instance Signup bug * improvement * fix * Add WEBSITE_SIGNUP_URL to deployment environment variables * Add WEBSITE_SIGNUP_URL to environment variables for deployment * Super admin banner fix (#13262) * Git Sync Fixes (#13249) * git-sync module changes * git sync fixes * added app resource guard * git-sync fixes * removed require feature * fix * review comment changes * ypress fix * App logo fix inside app builder * fix for subpath cache * fix (#13274) * platform-cypress-fix (#13271) * git sync fixes (#13277) * fix * Add data-cy for new components (#13289) --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: Rudhra Deep Biswas <98055396+rudeUltra@users.noreply.github.com> Co-authored-by: Ajith KV <ajith.jaban@gmail.com> Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: rohanlahori <rohanlahori99@gmail.com> Co-authored-by: Adish M <adish.madhu@gmail.com> Co-authored-by: Rudra deep Biswas <rudra21ultra@gmail.com>
57 lines
2.7 KiB
JavaScript
57 lines
2.7 KiB
JavaScript
import React, { useContext } from 'react';
|
|
import { Link, useLocation } from 'react-router-dom';
|
|
import SolidIcon from '../Icon/SolidIcons';
|
|
import { BreadCrumbContext } from '../../App/App';
|
|
import cx from 'classnames';
|
|
|
|
// define some custom breadcrumbs for certain routes (optional)
|
|
const routes = [
|
|
{ path: '/:worspace_id', breadcrumb: 'Applications' },
|
|
{ path: '/:workspace_id/modules', breadcrumb: 'All modules' },
|
|
{ path: '/:worspace_id/database', breadcrumb: 'Tables', props: { dataCy: 'tables-page-header' } },
|
|
{ path: '/:workspace_id/modules', breadcrumb: 'All modules' },
|
|
{ path: '/workspace-settings', breadcrumb: 'Workspace settings' },
|
|
{ path: '/:worpsace_id/audit-logs', breadcrumb: ' ' },
|
|
{ path: '/data-sources', breadcrumb: 'Data sources' },
|
|
{ path: '/:worspace_id/workspace-constants', breadcrumb: 'Workspace constants' },
|
|
{ path: '/integrations', breadcrumb: 'Integrations / plugins', props: { beta: true } },
|
|
{ path: '/license', breadcrumb: 'Enterprise Edition' },
|
|
{ path: '/settings/all-users', breadcrumb: 'Settings' },
|
|
{ path: '/settings/manage-instance-settings', breadcrumb: 'Settings' },
|
|
{ path: '/settings/all-workspaces', breadcrumb: 'Settings' },
|
|
{ path: '/settings/white-labelling', breadcrumb: 'Settings' },
|
|
{ path: '/settings/license', breadcrumb: 'Settings' },
|
|
{ path: '/settings/smtp', breadcrumb: 'Settings' },
|
|
{ path: '/settings/instance-login', breadcrumb: 'Settings' },
|
|
{ path: '/:worspace_id/workflows', breadcrumb: 'Workflows', props: { beta: true } },
|
|
{ path: '/integrations/installed', breadcrumb: 'Integrations' },
|
|
{ path: '/integrations/marketplace', breadcrumb: 'Integrations' },
|
|
];
|
|
import useBreadcrumbs from 'use-react-router-breadcrumbs';
|
|
import { decodeEntities } from '@/_helpers/utils';
|
|
|
|
export const Breadcrumbs = ({ darkMode, dataCy }) => {
|
|
const { sidebarNav } = useContext(BreadCrumbContext);
|
|
const breadcrumbs = useBreadcrumbs(routes, { excludePaths: ['/'] });
|
|
const location = useLocation();
|
|
const search = location.search || '';
|
|
|
|
return (
|
|
<ol className="breadcrumb breadcrumb-arrows">
|
|
{breadcrumbs.map(({ breadcrumb, beta }, i) => {
|
|
if (i == 1 || breadcrumbs?.length == 1) {
|
|
return (
|
|
<div key={breadcrumb.key} className="tj-dashboard-header-title-wrap" data-cy={dataCy ?? ''}>
|
|
<p className=" tj-text-xsm ">{breadcrumb}</p>
|
|
{sidebarNav?.length > 0 && <SolidIcon name="cheveronright" fill={darkMode ? '#FDFDFE' : '#131620'} />}
|
|
<li className="breadcrumb-item font-weight-500" data-cy="breadcrumb-page-title">
|
|
{' '}
|
|
{sidebarNav && decodeEntities(sidebarNav)}
|
|
</li>
|
|
</div>
|
|
);
|
|
}
|
|
})}
|
|
</ol>
|
|
);
|
|
};
|