-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
233e554
commit 3e4d9cf
Showing
9 changed files
with
172 additions
and
3 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,16 @@ | ||
{% extends "layout/base.html" %} | ||
{% from "macros/layout/title.html" import title %} | ||
{% from "macros/card.html" import card %} | ||
{% block title %}SOTERIA: Public Projects{% endblock %} | ||
{% block page_class %}subpage{% endblock %} | ||
{% block body_class %}container{% endblock %} | ||
{% block body %} | ||
<div class="row justify-content-center"> | ||
<div class="col-12 col-md-12 col-lg-11 col-xl-10 col-xxl-8"> | ||
{{ title("Tag Statistics") }} | ||
<iframe src="https://atlas-kibana.mwt2.org:5601/s/soteria/app/dashboards?auth_provider_hint=anonymous1#/view/39fc9f20-4d9f-11ee-aeb0-9f90ba762c30?embed=true&_g=()&_a=(controlGroupInput:(chainingSystem:HIERARCHICAL,controlStyle:oneLine,ignoreParentSettings:(ignoreFilters:!f,ignoreQuery:!f,ignoreTimerange:!f,ignoreValidations:!f),panels:('0b9ed559-6ccf-4d20-aa66-129ac39538b6':(explicitInput:(dataViewId:bfb237db-54b3-450a-8558-866d0d871631,enhancements:(),existsSelected:!t,fieldName:Hash,id:'0b9ed559-6ccf-4d20-aa66-129ac39538b6',selectedOptions:!(),singleSelect:!t,title:Hash),grow:!t,order:3,type:optionsListControl,width:medium),'68dae7ac-601b-4399-a607-9c9a10347225':(explicitInput:(dataViewId:bfb237db-54b3-450a-8558-866d0d871631,enhancements:(),fieldName:Image_tag,id:'68dae7ac-601b-4399-a607-9c9a10347225',selectedOptions:!('{{ tag }}'),singleSelect:!t,title:Image_tag),grow:!t,order:2,type:optionsListControl,width:medium),'85da83db-b01d-49dc-af7b-b870a4d00ad8':(explicitInput:(dataViewId:bfb237db-54b3-450a-8558-866d0d871631,enhancements:(),fieldName:Image_name,id:'85da83db-b01d-49dc-af7b-b870a4d00ad8',selectedOptions:!({{ repository }}),singleSelect:!t,title:Image_name),grow:!t,order:1,type:optionsListControl,width:medium),e05b51c0-a062-4d66-aec8-1a3eb62a07d1:(explicitInput:(dataViewId:bfb237db-54b3-450a-8558-866d0d871631,enhancements:(),fieldName:Project,id:e05b51c0-a062-4d66-aec8-1a3eb62a07d1,selectedOptions:!({{ project }}),singleSelect:!t,title:Project),grow:!t,order:0,type:optionsListControl,width:medium))))&hide-filter-bar=true" height="600" width="800"></iframe> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% block scripts %} | ||
{% endblock %} |
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,50 @@ | ||
{% extends "layout/base.html" %} | ||
{% from "macros/layout/title.html" import title %} | ||
{% from "macros/card.html" import card %} | ||
{% block title %}SOTERIA: Public Projects{% endblock %} | ||
{% block page_class %}subpage{% endblock %} | ||
{% block body_class %}container{% endblock %} | ||
{% block body %} | ||
<div class="row justify-content-center"> | ||
<div class="col-12 col-md-12 col-lg-11 col-xl-10 col-xxl-8"> | ||
{{ title(project + "/" + repository) }} | ||
<iframe src="https://atlas-kibana.mwt2.org:5601/s/soteria/app/dashboards?auth_provider_hint=anonymous1#/view/f3339290-4da5-11ee-aeb0-9f90ba762c30?embed=true&_g=()&_a=(controlGroupInput:(chainingSystem:HIERARCHICAL,controlStyle:oneLine,ignoreParentSettings:(ignoreFilters:!f,ignoreQuery:!f,ignoreTimerange:!f,ignoreValidations:!f),panels:('9719ad97-0c87-4708-9f20-77ec43f51b56':(explicitInput:(dataViewId:bfb237db-54b3-450a-8558-866d0d871631,enhancements:(),fieldName:Project,id:'9719ad97-0c87-4708-9f20-77ec43f51b56',selectedOptions:!({{ project }}),title:Project),grow:!t,order:0,type:optionsListControl,width:medium),c794eb11-d9f1-45d3-9b04-79da547f29d7:(explicitInput:(dataViewId:bfb237db-54b3-450a-8558-866d0d871631,enhancements:(),existsSelected:!f,fieldName:Image_name,id:c794eb11-d9f1-45d3-9b04-79da547f29d7,selectedOptions:!({{ repository }}),title:Image_name),grow:!t,order:1,type:optionsListControl,width:medium))))&hide-filter-bar=true" height="600" width="100%"></iframe> | ||
<div id="tags"></div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% block scripts %} | ||
<script type="module" async> | ||
import { h, Component, render } from 'https://cdn.skypack.dev/[email protected]'; | ||
import { TagCard } from "/static/js/components/card.js"; | ||
import { HarborList} from "/static/js/components/list.js"; | ||
|
||
const TagList = () => { | ||
|
||
return ( | ||
h(HarborList, { | ||
url: "/harbor/get/projects/{{ project }}/repositories/{{ repository }}/artifacts", | ||
card: TagCard, | ||
cardOptions: (data) => { | ||
console.log(data) | ||
return { | ||
href: `/public/projects/${data['name']}/repositories`, | ||
project: '{{ project }}', | ||
repository: '{{ repository }}', | ||
...data | ||
}}, | ||
pageSize:10, | ||
paginatorOptions: { | ||
className: "pt-3" | ||
}, | ||
sortOptions: { | ||
"": "Default", | ||
"-update_time": "Recently Updated" | ||
} | ||
}) | ||
) | ||
} | ||
|
||
render(h(TagList, {}), document.getElementById("tags")) | ||
</script> | ||
{% endblock %} |