-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1123 from shangyian/add-field-sorting
Add Sorting to Node Table in Explore View
- Loading branch information
Showing
5 changed files
with
115 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
export default function AddNodeDropDown({ namespace }) { | ||
return ( | ||
<span className="menu-link"> | ||
<span className="menu-title"> | ||
<div className="dropdown"> | ||
<span className="add_node">+ Add Node</span> | ||
<div className="dropdown-content"> | ||
<a href={`/create/source`}> | ||
<div className="node_type__source node_type_creation_heading"> | ||
Register Table | ||
</div> | ||
</a> | ||
<a href={`/create/transform/${namespace}`}> | ||
<div className="node_type__transform node_type_creation_heading"> | ||
Transform | ||
</div> | ||
</a> | ||
<a href={`/create/metric/${namespace}`}> | ||
<div className="node_type__metric node_type_creation_heading"> | ||
Metric | ||
</div> | ||
</a> | ||
<a href={`/create/dimension/${namespace}`}> | ||
<div className="node_type__dimension node_type_creation_heading"> | ||
Dimension | ||
</div> | ||
</a> | ||
<a href={`/create/tag`}> | ||
<div className="entity__tag node_type_creation_heading"> | ||
Tag | ||
</div> | ||
</a> | ||
<a href={`/create/cube/${namespace}`}> | ||
<div className="node_type__cube node_type_creation_heading"> | ||
Cube | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</span> | ||
</span> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.sortable { | ||
background: none; | ||
border: none; | ||
cursor: pointer; | ||
font-weight: bold; | ||
font-family: inherit; | ||
color: inherit; | ||
text-transform: uppercase; | ||
} | ||
.sortable.ascending::after { | ||
content: ' ▲'; | ||
} | ||
.sortable.descending::after { | ||
content: ' ▼'; | ||
} |