Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature: Overview of tag history content #58

Merged
merged 31 commits into from
Dec 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
20861bb
Add .idea directory to .ignore
lennartblom Nov 30, 2018
3b1b6f2
Add new "tag-history" column for tag overview
lennartblom Nov 30, 2018
3f860cd
Define taghistory object
lennartblom Nov 30, 2018
96a9266
Include tag-history-button
lennartblom Nov 30, 2018
fe5e962
Format code
lennartblom Nov 30, 2018
c857bd8
Add functionality for new tag history view
lennartblom Nov 30, 2018
8ab6ecb
Define dynamic parsing of history elements
lennartblom Dec 1, 2018
f6bc4df
Styling elements and getting structure into data view
lennartblom Dec 1, 2018
6d798ca
Styling of history element headlines
lennartblom Dec 1, 2018
5bb7dfc
Optimize date format
lennartblom Dec 1, 2018
cf883cb
Optimize routing and code format
lennartblom Dec 1, 2018
66fe613
Optimize format
lennartblom Dec 1, 2018
39cf28e
Remove logging and format code
lennartblom Dec 1, 2018
f364564
Remove logging
lennartblom Dec 1, 2018
43af3ff
Remove logging
lennartblom Dec 1, 2018
86f78f7
Remove instance usage of registryUI.taghistory
lennartblom Dec 1, 2018
6d849a9
Add information text about the history elements
lennartblom Dec 1, 2018
292336c
Format code
lennartblom Dec 1, 2018
bf975cd
Formate code
lennartblom Dec 1, 2018
b94a65d
Remove space in front of function brackets
lennartblom Dec 2, 2018
246369f
Move go function to taghistory-namespace within app.tag
lennartblom Dec 2, 2018
e3437da
Use toLocaleString() instead of custom date format
lennartblom Dec 2, 2018
249d021
Formate code
lennartblom Dec 2, 2018
ae78b2d
Fix navigation bug
lennartblom Dec 3, 2018
472b485
Remove test logging
lennartblom Dec 3, 2018
04259ab
Change wording of headline
lennartblom Dec 6, 2018
06a11a7
Merge remote-tracking branch 'origin/master'
lennartblom Dec 6, 2018
67ad46a
Change wording of headline
lennartblom Dec 6, 2018
c176a08
Change wording of headline
lennartblom Dec 6, 2018
7163150
Optimize GUI elements and HTTP logic for content preperation
lennartblom Dec 6, 2018
4aa0160
Add more const
Joxit Dec 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules
package-lock.json
registry-data
.idea
192 changes: 192 additions & 0 deletions src/images/docker-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<!-- endbuild -->
<!-- build:js scripts/docker-registry-ui.js -->
<script src="tags/catalog.tag" type="riot/tag"></script>
<script src="tags/tag-history-button.tag" type="riot/tag"></script>
<script src="tags/tag-history.tag" type="riot/tag"></script>
<script src="tags/taglist.tag" type="riot/tag"></script>
<script src="tags/image-tag.tag" type="riot/tag"></script>
<script src="tags/remove-image.tag" type="riot/tag"></script>
Expand Down
1 change: 1 addition & 0 deletions src/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ registryUI.decodeURI = function(url) {
registryUI.isImageRemoveActivated = true;
registryUI.catalog = {};
registryUI.taglist = {};
registryUI.taghistory = {};

window.addEventListener('DOMContentLoaded', function() {
riot.mount('*');
Expand Down
1 change: 1 addition & 0 deletions src/scripts/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ registryUI.name = function() {
registryUI.isImageRemoveActivated = true;
registryUI.catalog = {};
registryUI.taglist = {};
registryUI.taghistory = {};

window.addEventListener('DOMContentLoaded', function() {
riot.mount('*');
Expand Down
118 changes: 113 additions & 5 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

html>body {
html > body {
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
}

Expand Down Expand Up @@ -94,20 +94,20 @@ h2 {
list-style: none;
}

.list.highlight>li:hover {
.list.highlight > li:hover {
background-color: #eee;
cursor: pointer;
}

.list>li {
.list > li {
box-sizing: border-box;
line-height: 1;
height: 48px;
padding: 0 16px;
overflow: hidden;
}

.list>li i.material-icons {
.list > li i.material-icons {
margin-right: 32px;
height: 24px;
width: 24px;
Expand All @@ -116,7 +116,7 @@ h2 {
color: #757575;
}

.list>li>span {
.list > li > span {
height: 100%;
text-decoration: none;
box-sizing: border-box;
Expand Down Expand Up @@ -322,6 +322,114 @@ select {
padding: 12px 5px;
}

.show-tag-history {
width: 30px;
text-align: center;
}

.remove-tag {
padding: 12px 5px;
width: 30px;
lennartblom marked this conversation as resolved.
Show resolved Hide resolved
text-align: center;
}

.copy-to-clipboard a:hover {
cursor: pointer;
}

material-card.tag-history{
margin-bottom: 0;
}
.tag-history-element {
margin-top:5px;
margin-bottom: 0;
}

.tag-history-element > div {
padding: 20px;
min-width: 100px;
}

.tag-history-element i {
font-size: 20px;
padding: 0px;
}

.tag-history-element .created i:after {
content: 'event';
}

.tag-history-element .config i:after {
content: 'build';
}

.tag-history-element .config .value:after,
.tag-history-element .container_config .value:after {
content: 'WIP for display of config value';
font-style: italic;
font-size: 12px;
}

.tag-history-element .container_config i:after {
content: 'code';
}

.tag-history-element .throwaway i:after {
content: 'eject';
}

.tag-history-element .parent i:after {
content: 'supervisor_account';
}

.tag-history-element .architecture i:after {
content: 'memory';
}

.tag-history-element .os i:after {
content: 'developer_board';
}

.tag-history-element .container i:after {
content: 'dns';
}

.tag-history-element .id i:after {
content: 'settings_ethernet';
}

.tag-history-element .docker_version {
background-size: 35px auto;
background-image: url("images/docker-logo.svg");
background-repeat: no-repeat;
background-position: 11px 20px;
}

.tag-history-element > div {
display: block;
width: 420px;
float: left;
}

.tag-history-element .docker_version div.headline {
padding-left: 10px;
}

.tag-history-element .headline p {
font-weight: bold;
line-height: 20px;
position: relative;
display: inline;
top: -4px;
}

.tag-history-element .id div.value,
.tag-history-element .container div.value,
.tag-history-element .parent div.value {
font-size: 12px;
}

tag-history-button button {
background: none;
border: none;
}
Loading