Skip to content

Commit e58ec5b

Browse files
authored
Feature/dsl graph SettingsWorkflowHistory container (Part 1) (#253)
* add containers shortcut * moving settings-workflow-history into containers * fixing lint
1 parent 40d3720 commit e58ec5b

File tree

5 files changed

+41
-10
lines changed

5 files changed

+41
-10
lines changed

client/components/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export { default as NavigationLink } from './navigation-link';
3939
export { default as NewsModal } from './news-modal';
4040
export { default as NoResults } from './no-results';
4141
export { default as NotificationBar } from './notification-bar';
42-
export { default as SettingsModal } from './settings-modal';
4342
export { default as TextInput } from './text-input';
43+
export { default as SettingsFooter } from './settings-modal/components/settings-footer';
44+
export { default as SettingsToggle } from './settings-modal/components/settings-toggle';
45+
export { default as SettingsModal } from './settings-modal';
4446
export { default as WorkflowGrid } from './workflow-grid';

client/components/settings-modal/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
2323
import FlexGrid from '../flex-grid';
2424
import FlexGridItem from '../flex-grid-item';
25+
import { SettingsWorkflowHistory } from '../../containers';
2526
import SettingsDateFormat from './components/settings-date-format';
2627
import SettingsHeader from './components/settings-header';
2728
import SettingsList from './components/settings-list';
28-
import SettingsWorkflowHistory from './components/settings-workflow-history';
2929
import { SETTINGS_VIEW_LIST } from './constants';
3030
3131
export default {

client/containers/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@
1919
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2020
// THE SOFTWARE.
2121

22+
export { component as SettingsWorkflowHistory } from './settings-workflow-history';
2223
export { component as WorkflowHistory } from './workflow-history';

client/components/settings-modal/components/settings-workflow-history.vue renamed to client/containers/settings-workflow-history/component.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@
2121
// THE SOFTWARE.
2222
2323
import { ToggleButton } from 'vue-js-toggle-button';
24-
import ButtonFill from '../../button-fill';
25-
import ButtonIcon from '../../button-icon';
26-
import FlexGrid from '../../flex-grid';
27-
import FlexGridItem from '../../flex-grid-item';
28-
import TextInput from '../../text-input';
29-
import SettingsFooter from './settings-footer';
30-
import SettingsToggle from './settings-toggle';
24+
import {
25+
ButtonFill,
26+
ButtonIcon,
27+
FlexGrid,
28+
FlexGridItem,
29+
SettingsFooter,
30+
SettingsToggle,
31+
TextInput,
32+
} from '~components';
33+
import { WORKFLOW_EVENT_TYPES } from '~constants';
3134
import {
3235
workflowHistoryEventHighlightListAddOrUpdate,
3336
workflowHistoryEventHighlightListRemove,
3437
} from '~helpers';
35-
import { WORKFLOW_EVENT_TYPES } from '~constants';
3638
3739
export default {
3840
name: 'settings-workflow-history',
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) 2021 Uber Technologies Inc.
2+
//
3+
//
4+
// Permission is hereby granted, free of charge, to any person obtaining a copy
5+
// of this software and associated documentation files (the "Software"), to deal
6+
// in the Software without restriction, including without limitation the rights
7+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
// copies of the Software, and to permit persons to whom the Software is
9+
// furnished to do so, subject to the following conditions:
10+
//
11+
// The above copyright notice and this permission notice shall be included in
12+
// all copies or substantial portions of the Software.
13+
//
14+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
// THE SOFTWARE.
21+
22+
import Component from './component';
23+
24+
const component = Component;
25+
26+
export { component };

0 commit comments

Comments
 (0)