[DEV] contiunue some upgrade
This commit is contained in:
parent
8d9b3d8448
commit
8916ad33c8
@ -53,31 +53,36 @@
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<!-- ------------------------- Cover section --------------------------------- -->
|
||||
<div class="title" *ngIf="!itemIsRemoved && !itemIsNotFound && !itemIsLoading">
|
||||
Covers
|
||||
</div>
|
||||
<div class="fill-all" *ngIf="!itemIsRemoved && !itemIsNotFound && !itemIsLoading">
|
||||
<div class="request_raw">
|
||||
<div class="label">
|
||||
Add cover:
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="file"
|
||||
(change)="onChangeCover($event.target)"
|
||||
placeholder="Select a cover file"
|
||||
accept=".png,.jpg,.jpeg,.webp"/>{{upload_file_value}}
|
||||
</div>
|
||||
<div class="hide-element">
|
||||
<input type="file"
|
||||
#fileInput
|
||||
(change)="onChangeCover($event.target)"
|
||||
placeholder="Select a cover file"
|
||||
accept=".png,.jpg,.jpeg,.webp"/>
|
||||
</div>
|
||||
<div class="request_raw">
|
||||
<div class="label">
|
||||
Actual Covers:
|
||||
</div>
|
||||
<div class="input">
|
||||
<div *ngFor="let element of covers_display" class="cover_div">
|
||||
<img src="{{element.url}}" class="cover"/>
|
||||
<div class="cover_remove_div">
|
||||
<button class="button color-button-cancel color-shadow-black" (click)="removeCover(element.id)" type="submit">
|
||||
<i class="material-icons">delete</i> Remove Cover
|
||||
<div class="cover" *ngFor="let element of covers_display">
|
||||
<div class="cover-image">
|
||||
<img src="{{element.url}}"/>
|
||||
</div>
|
||||
<div class="cover-button">
|
||||
<button (click)="removeCover(element.id)">
|
||||
<i class="material-icons button-remove">highlight_off</i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cover">
|
||||
<div class="cover-no-image">
|
||||
</div>
|
||||
<div class="cover-button">
|
||||
<button (click)="fileInput.click()">
|
||||
<i class="material-icons button-add">add_circle_outline</i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -85,6 +90,7 @@
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<!-- ------------------------- ADMIN section --------------------------------- -->
|
||||
<div class="title" *ngIf="!itemIsRemoved && !itemIsNotFound && !itemIsLoading">
|
||||
Administration
|
||||
</div>
|
||||
|
@ -1,55 +1,2 @@
|
||||
|
||||
|
||||
.item {
|
||||
font-size: 20px;
|
||||
height: 21%;
|
||||
width: 23%;
|
||||
margin: 1%;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
//box-shadow: 0 1px 1.5px 0 rgba(0,0,0,.12),0 1px 1px 0 rgba(0,0,0,.24);
|
||||
box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.6);
|
||||
line-height: normal;
|
||||
border: none;
|
||||
font-family: "Roboto","Helvetica","Arial",sans-serif;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0;
|
||||
will-change: box-shadow;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
transition-duration: 0.4s;
|
||||
float:left;
|
||||
display:block;
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: #F00;
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: ~"translate(-12px,-12px)";
|
||||
line-height: 24px;
|
||||
width: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.item-video {
|
||||
&:hover {
|
||||
background-color: #0F0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -65,31 +65,36 @@
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<!-- ------------------------- Cover section --------------------------------- -->
|
||||
<div class="title" *ngIf="!itemIsRemoved && !itemIsNotFound && !itemIsLoading">
|
||||
Covers
|
||||
</div>
|
||||
<div class="fill-all" *ngIf="!itemIsRemoved && !itemIsNotFound && !itemIsLoading">
|
||||
<div class="request_raw">
|
||||
<div class="label">
|
||||
Add cover:
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="file"
|
||||
(change)="onChangeCover($event.target)"
|
||||
placeholder="Select a cover file"
|
||||
accept=".png,.jpg,.jpeg,.webp"/>{{upload_file_value}}
|
||||
</div>
|
||||
<div class="hide-element">
|
||||
<input type="file"
|
||||
#fileInput
|
||||
(change)="onChangeCover($event.target)"
|
||||
placeholder="Select a cover file"
|
||||
accept=".png,.jpg,.jpeg,.webp"/>
|
||||
</div>
|
||||
<div class="request_raw">
|
||||
<div class="label">
|
||||
Actual Covers:
|
||||
</div>
|
||||
<div class="input">
|
||||
<div *ngFor="let element of covers_display" class="cover_div">
|
||||
<img src="{{element.url}}" class="cover"/>
|
||||
<div class="cover_remove_div">
|
||||
<button class="button color-button-cancel color-shadow-black" (click)="removeCover(element.id)" type="submit">
|
||||
<i class="material-icons">delete</i> Remove Cover
|
||||
<div class="cover" *ngFor="let element of covers_display">
|
||||
<div class="cover-image">
|
||||
<img src="{{element.url}}"/>
|
||||
</div>
|
||||
<div class="cover-button">
|
||||
<button (click)="removeCover(element.id)">
|
||||
<i class="material-icons button-remove">highlight_off</i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cover">
|
||||
<div class="cover-no-image">
|
||||
</div>
|
||||
<div class="cover-button">
|
||||
<button (click)="fileInput.click()">
|
||||
<i class="material-icons button-add">add_circle_outline</i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -97,6 +102,7 @@
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<!-- ------------------------- ADMIN section --------------------------------- -->
|
||||
<div class="title" *ngIf="!itemIsRemoved && !itemIsNotFound && !itemIsLoading">
|
||||
Administration
|
||||
</div>
|
||||
|
@ -1,54 +0,0 @@
|
||||
|
||||
.item {
|
||||
font-size: 20px;
|
||||
height: 21%;
|
||||
width: 23%;
|
||||
margin: 1%;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
//box-shadow: 0 1px 1.5px 0 rgba(0,0,0,.12),0 1px 1px 0 rgba(0,0,0,.24);
|
||||
box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.6);
|
||||
line-height: normal;
|
||||
border: none;
|
||||
font-family: "Roboto","Helvetica","Arial",sans-serif;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0;
|
||||
will-change: box-shadow;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
transition-duration: 0.4s;
|
||||
float:left;
|
||||
display:block;
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: #F00;
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: ~"translate(-12px,-12px)";
|
||||
line-height: 24px;
|
||||
width: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.item-video {
|
||||
&:hover {
|
||||
background-color: #0F0;
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
* @license PROPRIETARY (see license file)
|
||||
*/
|
||||
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component, OnInit, ElementRef } from '@angular/core';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { Location } from '@angular/common';
|
||||
import { fadeInAnimation } from '../../_animations/index';
|
||||
@ -230,7 +230,6 @@ export class SeriesEditScene implements OnInit {
|
||||
console.log("Can not add the cover in the video...");
|
||||
});
|
||||
}
|
||||
|
||||
removeCover(_id:number) {
|
||||
this.cleanConfirm();
|
||||
this.confirmDeleteComment = "Delete the cover ID: " + _id;
|
||||
|
@ -143,31 +143,36 @@
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<!-- ------------------------- Cover section --------------------------------- -->
|
||||
<div class="title" *ngIf="!itemIsRemoved && !itemIsNotFound && !itemIsLoading">
|
||||
Covers
|
||||
</div>
|
||||
<div class="fill-all" *ngIf="!itemIsRemoved && !itemIsNotFound && !itemIsLoading">
|
||||
<div class="request_raw">
|
||||
<div class="label">
|
||||
Add covers:
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="file"
|
||||
(change)="onChangeCover($event.target)"
|
||||
placeholder="Select a cover file"
|
||||
accept=".png,.jpg,.jpeg,.webp"/>{{upload_file_value}}
|
||||
</div>
|
||||
<div class="hide-element">
|
||||
<input type="file"
|
||||
#fileInput
|
||||
(change)="onChangeCover($event.target)"
|
||||
placeholder="Select a cover file"
|
||||
accept=".png,.jpg,.jpeg,.webp"/>
|
||||
</div>
|
||||
<div class="request_raw">
|
||||
<div class="label">
|
||||
Actual Covers:
|
||||
</div>
|
||||
<div class="input">
|
||||
<div *ngFor="let element of covers_display" class="cover_div">
|
||||
<img src="{{element.url}}" class="cover"/>
|
||||
<div class="cover_remove_div">
|
||||
<button class="button color-button-cancel color-shadow-black" (click)="removeCover(element.id)" type="submit">
|
||||
<i class="material-icons">delete</i> Remove Cover
|
||||
<div class="cover" *ngFor="let element of covers_display">
|
||||
<div class="cover-image">
|
||||
<img src="{{element.url}}"/>
|
||||
</div>
|
||||
<div class="cover-button">
|
||||
<button (click)="removeCover(element.id)">
|
||||
<i class="material-icons button-remove">highlight_off</i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cover">
|
||||
<div class="cover-no-image">
|
||||
</div>
|
||||
<div class="cover-button">
|
||||
<button (click)="fileInput.click()">
|
||||
<i class="material-icons button-add">add_circle_outline</i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -175,6 +180,7 @@
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<!-- ------------------------- ADMIN section --------------------------------- -->
|
||||
<div class="title" *ngIf="!itemIsRemoved && !itemIsNotFound && !itemIsLoading">
|
||||
Administration
|
||||
</div>
|
||||
|
@ -1,54 +0,0 @@
|
||||
|
||||
.item {
|
||||
font-size: 20px;
|
||||
height: 21%;
|
||||
width: 23%;
|
||||
margin: 1%;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
//box-shadow: 0 1px 1.5px 0 rgba(0,0,0,.12),0 1px 1px 0 rgba(0,0,0,.24);
|
||||
box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.6);
|
||||
line-height: normal;
|
||||
border: none;
|
||||
font-family: "Roboto","Helvetica","Arial",sans-serif;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0;
|
||||
will-change: box-shadow;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
transition-duration: 0.4s;
|
||||
float:left;
|
||||
display:block;
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: #F00;
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: ~"translate(-12px,-12px)";
|
||||
line-height: 24px;
|
||||
width: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.item-video {
|
||||
&:hover {
|
||||
background-color: #0F0;
|
||||
}
|
||||
}
|
||||
|
@ -257,15 +257,14 @@ export class VideoEditScene implements OnInit {
|
||||
if (this.data.type_id == undefined) {
|
||||
this.data.type_id = null;
|
||||
}
|
||||
//this.data.series_id = null;
|
||||
//this.data.season_id = null;
|
||||
//this.listSeries = [{value: undefined, label: '---'}];
|
||||
//this.listSeason = [{value: undefined, label: '---'}];
|
||||
this.data.series_id = null;
|
||||
this.data.season_id = null;
|
||||
this.listSeries = [{value: undefined, label: '---'}];
|
||||
this.listSeason = [{value: undefined, label: '---'}];
|
||||
let self = this;
|
||||
this.updateNeedSend();
|
||||
/*
|
||||
if (this.type_id != undefined) {
|
||||
self.typeService.getSubSeries(this.type_id, ["id", "name"])
|
||||
if (this.data.type_id != undefined) {
|
||||
self.typeService.getSubSeries(this.data.type_id, ["id", "name"])
|
||||
.then(function(response2) {
|
||||
for(let iii= 0; iii < response2.length; iii++) {
|
||||
self.listSeries.push({value: response2[iii].id, label: response2[iii].name});
|
||||
@ -274,7 +273,6 @@ export class VideoEditScene implements OnInit {
|
||||
console.log("get response22 : " + JSON.stringify(response2, null, 2));
|
||||
});
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
onChangeUniverse(_value:any):void {
|
||||
|
@ -137,6 +137,8 @@ export class VideoScene implements OnInit {
|
||||
}
|
||||
}
|
||||
this.generated_name += this.name;
|
||||
this.generated_name = this.generated_name.replace(new RegExp("&", "g"), "_");
|
||||
this.generated_name = this.generated_name.replace(new RegExp("/", "g"), "_");
|
||||
}
|
||||
|
||||
myPeriodicCheckFunction() {
|
||||
|
@ -342,7 +342,7 @@ export class ArianeService {
|
||||
}
|
||||
navigateSeries(_id:number, _newWindows:boolean, _ctrl:boolean = false):void {
|
||||
if (_ctrl == true) {
|
||||
this.navigateTypeEdit(_id, _newWindows);
|
||||
this.navigateSeriesEdit(_id, _newWindows);
|
||||
return;
|
||||
}
|
||||
this.genericNavigate('series', this.universe_id, this.type_id, _id, null, null, _newWindows);
|
||||
|
@ -214,17 +214,6 @@
|
||||
float: right;
|
||||
display: block;
|
||||
}
|
||||
.cover_div {
|
||||
float: left;
|
||||
display: block;
|
||||
}
|
||||
.cover_remove_div {
|
||||
float: left;
|
||||
display: block;
|
||||
}
|
||||
.cover {
|
||||
max-width: 30%;
|
||||
}
|
||||
}
|
||||
.send_value {
|
||||
width: 300px;
|
||||
@ -232,7 +221,57 @@
|
||||
padding: 10px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
.hide-element {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.cover {
|
||||
position:relative;
|
||||
width: 200px;
|
||||
height: 250px;
|
||||
//margin: 0 auto;
|
||||
overflow:hidden;
|
||||
float: left;
|
||||
display: block;
|
||||
|
||||
.cover-image {
|
||||
position:absolute;
|
||||
width: 200px;
|
||||
height: 250px;
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
height: auto;
|
||||
}
|
||||
};
|
||||
.cover-no-image {
|
||||
position:absolute;
|
||||
width: 190px;
|
||||
height: 240px;
|
||||
margin: 0 auto;
|
||||
border: solid 5px;
|
||||
border-color: rgba(0, 0, 0, 0.7);
|
||||
};
|
||||
.cover-button {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
-ms-transform: translate(-50%, -50%);
|
||||
transform: translate(-50%, -50%);
|
||||
};
|
||||
|
||||
button {
|
||||
border: none;
|
||||
background: none;
|
||||
};
|
||||
.button-remove {
|
||||
font-size:75px;
|
||||
color: #F00000;
|
||||
}
|
||||
.button-add {
|
||||
font-size:75px;
|
||||
color: #00F000;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user