Add basic user interface for application repos
Adds support for creating app repos, viewing app repos and seeing the list of app repos in the Quay UI.
This commit is contained in:
parent
3dd6e6919d
commit
f9e6110f73
47 changed files with 1009 additions and 106 deletions
30
static/partials/app-list.html
Normal file
30
static/partials/app-list.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<div class="repo-list page-content">
|
||||
<div class="cor-title">
|
||||
<span class="cor-title-link"></span>
|
||||
<span class="cor-title-content">Applications</span>
|
||||
</div>
|
||||
|
||||
<!-- Loading -->
|
||||
<div class="cor-loader" ng-if="loading || user.beforeload"></div>
|
||||
|
||||
<!-- Not signed in -->
|
||||
<div class="co-main-content-panel" ng-if="!loading && user.anonymous && !user.beforeload">
|
||||
<!-- The user is not logged in -->
|
||||
<div class="cor-container signin-container row">
|
||||
<!-- Sign In -->
|
||||
<div class="user-setup" redirect-url="redirectUrl"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Signed in -->
|
||||
<div class="row" ng-if="!loading && !user.anonymous">
|
||||
<div class="col-md-12">
|
||||
<div class="repo-list-panel co-main-content-panel">
|
||||
<div class="repo-list-view" namespaces="namespaces" repo-kind="application">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
5
static/partials/app-view.html
Normal file
5
static/partials/app-view.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<div class="resource-view repository-view"
|
||||
resource="repositoryResource"
|
||||
error-message="'Application not found'">
|
||||
<app-public-view repository="viewScope.repository"></app-public-view>
|
||||
</div>
|
|
@ -31,6 +31,14 @@
|
|||
<div class="section">
|
||||
<div class="new-header">
|
||||
<div class="namespace-selector-header">
|
||||
<span quay-show="Features.APP_REGISTRY">
|
||||
<span class="visible-xs xs-label">Repository Kind:</span>
|
||||
<select class="form-control repo-kind-select" ng-model="repo.repo_kind">
|
||||
<option value="image">Container Image Repository</option>
|
||||
<option value="application">Application Repository</option>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
<span class="visible-xs xs-label">Namespace:</span>
|
||||
<span class="namespace-selector" user="user" namespace="repo.namespace" require-create="true"></span>
|
||||
|
||||
|
@ -49,6 +57,7 @@
|
|||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
|
@ -96,9 +105,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-show="repo.is_public == '1' || (!planRequired && !checkingPlan)">
|
||||
<div class="row" ng-show="Features.BUILD_SUPPORT">
|
||||
<div class="row" ng-show="Features.BUILD_SUPPORT && repo.repo_kind == 'image'">
|
||||
<div class="col-md-12">
|
||||
<div class="section">
|
||||
<div class="section-title">Initialize repository</div>
|
||||
|
@ -132,7 +140,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" ng-show="repo.initialize == 'dockerfile' || repo.initialize == 'zipfile'">
|
||||
<div class="row" ng-show="(repo.initialize == 'dockerfile' || repo.initialize == 'zipfile') && repo.repo_kind == 'image'">
|
||||
<div class="col-md-12">
|
||||
<div class="section">
|
||||
<div class="section-title">Initialize from Dockerfile</div>
|
||||
|
@ -149,7 +157,7 @@
|
|||
|
||||
<div class="row"
|
||||
ng-repeat="type in TriggerService.getTypes()"
|
||||
ng-if="TriggerService.isEnabled(type) && repo.initialize == type">
|
||||
ng-if="TriggerService.isEnabled(type) && repo.initialize == type && repo.repo_kind == 'image'">
|
||||
<div class="col-md-12">
|
||||
<div class="co-alert co-alert-info">
|
||||
You will be redirected to authorize for {{ TriggerService.getTitle(type) }} once the repository has been created
|
||||
|
|
|
@ -57,7 +57,8 @@
|
|||
<div class="repo-list-panel co-main-content-panel">
|
||||
<div class="repo-list-view" namespaces="namespaces"
|
||||
star-toggled="starToggled(repository)"
|
||||
starred-repositories="starred_repositories">
|
||||
starred-repositories="starred_repositories"
|
||||
repo-kind="image">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue