Skip to content

Commit

Permalink
App Header React migration (#4245)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbena authored Oct 19, 2019
1 parent f165cad commit a2e21dd
Show file tree
Hide file tree
Showing 23 changed files with 553 additions and 623 deletions.
1 change: 1 addition & 0 deletions client/app/assets/less/ant.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
@zindex-dropdown: 2050;
@zindex-picker: 2050;
@zindex-tooltip: 2060;
@item-hover-bg: #e5f8ff;

.@{drawer-prefix-cls} {
&.help-drawer {
Expand Down
4 changes: 2 additions & 2 deletions client/app/assets/less/inc/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ body {
padding-bottom: 0;
}

.nav.app-header, .navbar {
.app-header-wrapper {
display: none;
}
}
Expand Down Expand Up @@ -187,7 +187,7 @@ text.slicetext {
color: #111;
}

.profile__image--navbar {
.profile__image--sidebar {
border-radius: 100%;
margin-right: 3px;
margin-top: -2px;
Expand Down
295 changes: 0 additions & 295 deletions client/app/assets/less/inc/navbar.less

This file was deleted.

1 change: 0 additions & 1 deletion client/app/assets/less/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
@import 'inc/profile';
@import 'inc/404';
@import 'inc/ie-warning';
@import 'inc/navbar';
@import 'inc/edit-in-place';
@import 'inc/growl';
@import 'inc/flex';
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/BeaconConsent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Card from 'antd/lib/card';
import Button from 'antd/lib/button';
import Typography from 'antd/lib/typography';
import { clientConfig } from '@/services/auth';
import { HelpTrigger } from '@/components/HelpTrigger';
import HelpTrigger from '@/components/HelpTrigger';
import DynamicComponent from '@/components/DynamicComponent';
import OrgSettings from '@/services/organizationSettings';

Expand Down
2 changes: 1 addition & 1 deletion client/app/components/CreateSourceDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { PreviewCard } from '@/components/PreviewCard';
import EmptyState from '@/components/items-list/components/EmptyState';
import DynamicForm from '@/components/dynamic-form/DynamicForm';
import helper from '@/components/dynamic-form/dynamicFormHelper';
import { HelpTrigger, TYPES as HELP_TRIGGER_TYPES } from '@/components/HelpTrigger';
import HelpTrigger, { TYPES as HELP_TRIGGER_TYPES } from '@/components/HelpTrigger';

const { Step } = Steps;
const { Search } = Input;
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/EmailSettingsWarning.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cx from 'classnames';
import { clientConfig, currentUser } from '@/services/auth';
import Tooltip from 'antd/lib/tooltip';
import Alert from 'antd/lib/alert';
import { HelpTrigger } from '@/components/HelpTrigger';
import HelpTrigger from '@/components/HelpTrigger';

export default function EmailSettingsWarning({ featureName, className, mode, adminOnly }) {
if (!clientConfig.mailSettingsMissing) {
Expand Down
13 changes: 5 additions & 8 deletions client/app/components/HelpTrigger.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { react2angular } from 'react2angular';
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
Expand Down Expand Up @@ -80,9 +79,13 @@ export const TYPES = {
'/user-guide/alerts/custom-alert-notifications',
'Guide: Custom Alerts Notifications',
],
FAVORITES: [
'/user-guide/querying/favorites-tagging/#Favorites',
'Guide: Favorites',
],
};

export class HelpTrigger extends React.Component {
export default class HelpTrigger extends React.Component {
static propTypes = {
type: PropTypes.oneOf(Object.keys(TYPES)).isRequired,
className: PropTypes.string,
Expand Down Expand Up @@ -236,9 +239,3 @@ export class HelpTrigger extends React.Component {
);
}
}

export default function init(ngModule) {
ngModule.component('helpTrigger', react2angular(HelpTrigger));
}

init.init = true;
2 changes: 1 addition & 1 deletion client/app/components/ParameterMappingInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Tooltip from 'antd/lib/tooltip';
import ParameterValueInput from '@/components/ParameterValueInput';
import { ParameterMappingType } from '@/services/widget';
import { Parameter } from '@/services/query';
import { HelpTrigger } from '@/components/HelpTrigger';
import HelpTrigger from '@/components/HelpTrigger';

import './ParameterMappingInput.less';

Expand Down
Loading

0 comments on commit a2e21dd

Please sign in to comment.