mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 01:58:35 +01:00
Merge pull request #6061 from zhoumeina/hide_repo
hide the popular repositories by default
This commit is contained in:
commit
7c43420cfd
@ -1,4 +1,4 @@
|
|||||||
<div class="login-wrapper login-wrapper-override" [ngStyle]="{'background-image': customLoginBgImg? 'url(static/images/' + customLoginBgImg + ')': ''}">
|
<div class="login-wrapper" [ngStyle]="{'background-image': customLoginBgImg? 'url(static/images/' + customLoginBgImg + ')': ''}">
|
||||||
<form #signInForm="ngForm" class="login">
|
<form #signInForm="ngForm" class="login">
|
||||||
<label class="title"> {{customAppTitle? customAppTitle:(appTitle | translate)}}
|
<label class="title"> {{customAppTitle? customAppTitle:(appTitle | translate)}}
|
||||||
</label>
|
</label>
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<a href="https://github.com/goharbor/harbor" target="_blank" class="more-info-link">{{ 'BUTTON.MORE_INFO' | translate }}</a>
|
<a href="https://github.com/goharbor/harbor" target="_blank" class="more-info-link">{{ 'BUTTON.MORE_INFO' | translate }}</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div id="pop_repo" class="popular-repo-wrapper">
|
<div *ngIf="appConfig.show_popular_repo" id="pop_repo" class="popular-repo-wrapper" >
|
||||||
<top-repo class="repo-container"></top-repo>
|
<top-repo class="repo-container"></top-repo>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,10 +27,6 @@
|
|||||||
border-left: 1px solid #eee;
|
border-left: 1px solid #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-wrapper-override {
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.repo-container {
|
.repo-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: -210px;
|
margin-top: -210px;
|
||||||
@ -48,4 +44,20 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
top: -9px;
|
top: -9px;
|
||||||
}
|
}
|
||||||
.bg{position: absolute;top: 60px; right: 0px;width: 100%; height: 100%; background-size: cover;}
|
.bg{
|
||||||
|
position: absolute;
|
||||||
|
top: 60px;
|
||||||
|
right: 0px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-wrapper {
|
||||||
|
background: transparent;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-top:-20px;
|
||||||
|
.login {
|
||||||
|
background:transparent;
|
||||||
|
}
|
||||||
|
}
|
@ -28,7 +28,7 @@ import { AppConfig } from '../../app-config';
|
|||||||
import { User } from '../../user/user';
|
import { User } from '../../user/user';
|
||||||
|
|
||||||
import { CookieService, CookieOptions } from 'ngx-cookie';
|
import { CookieService, CookieOptions } from 'ngx-cookie';
|
||||||
import {SkinableConfig} from "../../skinable-config.service";
|
import { SkinableConfig } from "../../skinable-config.service";
|
||||||
|
|
||||||
// Define status flags for signing in states
|
// Define status flags for signing in states
|
||||||
export const signInStatusNormal = 0;
|
export const signInStatusNormal = 0;
|
||||||
|
@ -29,6 +29,7 @@ export class AppConfig {
|
|||||||
registry_storage_provider_name: string;
|
registry_storage_provider_name: string;
|
||||||
read_only: boolean;
|
read_only: boolean;
|
||||||
with_chartmuseum: boolean;
|
with_chartmuseum: boolean;
|
||||||
|
show_popular_repo: boolean;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
// Set default value
|
// Set default value
|
||||||
@ -50,5 +51,6 @@ export class AppConfig {
|
|||||||
this.registry_storage_provider_name = "";
|
this.registry_storage_provider_name = "";
|
||||||
this.read_only = false;
|
this.read_only = false;
|
||||||
this.with_chartmuseum = false;
|
this.with_chartmuseum = false;
|
||||||
|
this.show_popular_repo = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user