Skip to content

Commit

Permalink
UI Components Add-On (#942)
Browse files Browse the repository at this point in the history
* Base in-repo addon for ui components

* ui/search-field

* Ui/action-checkbox

* ui/clear-button ui/reload-button

* ui/disclosure-triangle

* ui/open-links-in-new-window

* ui/send-to-console

* ui/sidebar-toggle

* Toolbar CSS into ui add-on

* Simplify ui/sidebar-toggle

* ui/disclosure-triangle styles to addon

* Prefix toolbar components with "toolbar"

* Transparent pill background

* More sidebar-toggle styles to add-on

* Nav cleanup

* Remove unused content_menu css

* Send to Console CSS to addon

* Remove page-refresh partial

* Warning message cleanup

* ui/empty-message

- used in object inspector when no object is selected

* New external link icon

* Use ui/empty-message for more empty screens

* Move more styles to ui add-on

- drag handle
- split
- list

* ui/error-page cleanup

* Add alt attribute to error page image

* More ui/error-page cleanup

* Pill inherits cursor
  • Loading branch information
nummi authored and RobbieTheWagner committed Feb 27, 2019
1 parent 4e2e872 commit bd5219f
Show file tree
Hide file tree
Showing 114 changed files with 722 additions and 854 deletions.
5 changes: 0 additions & 5 deletions app/components/clear-button.js

This file was deleted.

5 changes: 0 additions & 5 deletions app/components/reload-button.js

This file was deleted.

7 changes: 7 additions & 0 deletions app/helpers/console.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { helper } from '@ember/component/helper';

export function console(_) {
return console.log(_);
}

export default helper(console);
13 changes: 0 additions & 13 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,9 @@
@import "base";
@import "colors";
@import "component_tree";
@import "context_menu";
@import "drag_handle";
@import "dropdown";
@import "error_page";
@import "external_link";
@import "list";
@import "mixin";
@import "nav";
@import "notice";
@import "object_inspector";
@import "pill";
@import "route_tree";
@import "send_to_console";
@import "sidebar_toggle";
@import "split";
@import "toolbar";
@import "warning";
@import "whats-new";
@import "ember-table";
12 changes: 10 additions & 2 deletions app/styles/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@
--spec07: #cd61a7;
--spec08: #7fb56d;
--spec09: #328509;
--white: #ffffff;
--inherit: inherit;
--transparent: transparent;
--focus: #3F81EE;
--focus-text: #ffffff;
--focus-text: var(--white);
--component-text: #7c027c;
--component-brackets-selected: rgba(255, 255, 255, 0.4);
--pill-bg: rgba(0, 0, 0, 0.1);
--pill-bg-active: rgba(255, 255, 255, 0.3);
--warning-text: #735c0f;
}

.theme--dark {
Expand Down Expand Up @@ -64,10 +68,14 @@
--spec07: #cd61a7;
--spec08: #7fb56d;
--spec09: #328509;
--white: #ffffff;
--inherit: inherit;
--transparent: transparent;
--focus: #2270EC;
--focus-text: #ffffff;
--focus-text: var(--white);
--component-text: #FF8BC9;
--component-brackets-selected: rgba(255, 255, 255, 0.4);
--pill-bg: rgba(255, 255, 255, 0.2);
--pill-bg-active: rgba(255, 255, 255, 0.3);
--warning-text: #8ca3f0;
}
21 changes: 0 additions & 21 deletions app/styles/component_tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,6 @@
content: '}}';
}

.component-tree-item__expand {
background: transparent;
border: 0;
cursor: pointer;
display: inline-block;
padding: 0 2px;

&:focus {
outline: none;
}

svg {
transition-duration: 0.1s;
transition-property: transform;
}

&.collapsed svg {
transform: rotate(-90deg);
}
}

/**
* Modifier
*/
Expand Down
11 changes: 0 additions & 11 deletions app/styles/context_menu.scss

This file was deleted.

1 change: 0 additions & 1 deletion app/styles/ember-table.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
$blue: #174fff;
$green: #009900;
$red: #ff2717;
$white: #ffffff;

.ember-table {
background: var(--base00);
Expand Down
15 changes: 0 additions & 15 deletions app/styles/external_link.scss

This file was deleted.

10 changes: 0 additions & 10 deletions app/styles/notice.scss

This file was deleted.

10 changes: 8 additions & 2 deletions app/styles/object_inspector.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
at the far right of the screen
*/

$white: #ffffff;
.object-inspector-object-name {
flex: auto;
font-weight: 700;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.object-trail {
margin-bottom: 4px;
Expand Down Expand Up @@ -85,7 +91,7 @@ $white: #ffffff;

.mixin__property-icon {
border-radius: 3px;
color: $white;
color: var(--white);
display: inline-block;
font-family: var(--font-monospace);
font-size: 13px;
Expand Down
29 changes: 0 additions & 29 deletions app/styles/sidebar_toggle.scss

This file was deleted.

Loading

0 comments on commit bd5219f

Please sign in to comment.