News
parent
8e7e9115b0
commit
a9534bd3a3
|
|
@ -44,3 +44,5 @@ testem.log
|
|||
# System Files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
/src/environments/environment.ts
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
border: var(--blue-1) dashed 1px;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
font-size: 20px;
|
||||
&.hover {
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
<div class="area" [class.hover]="dragOver">
|
||||
<input #fileInput type="file" accept="image/*" [id]="field.name" (change)="onFileInput($event)" />
|
||||
<p>Перетащите сюда или <span (click)="fileInput.click()">выберите файл</span> в формате JPEG или PNG общим объемом не более 10 Мбайт.</p>
|
||||
<p>Перетащите сюда или
|
||||
<a (click)="fileInput.click()">выберите файл</a>
|
||||
<!-- в формате JPEG или PNG общим объемом не более 10 Мбайт. -->
|
||||
</p>
|
||||
<div class="indicator" *ngIf="upload.file">
|
||||
<div class="label">Загружается файл {{upload.file?.name}}</div>
|
||||
<div class="progress"><div class="fill" [style.width]="upload.progress + '%'"></div></div>
|
||||
|
|
@ -9,6 +12,6 @@
|
|||
<div class="values" *ngIf="asset">
|
||||
<div class="item">
|
||||
<div class="preview"><img [src]="asset.links?.thumb" alt="" /></div>
|
||||
<button type="button" class="btn icon remove" (click)="clear()"></button>
|
||||
<button type="button" class="btn clear trash" (click)="clear()"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<div class="items">
|
||||
<div *ngIf="editMode" class="add">
|
||||
<div class="toggle"><div class="button" (click)="add()"></div></div>
|
||||
<div class="toggle"><div class="button" (click)="add()">Добавить публикацию</div></div>
|
||||
</div>
|
||||
<pagination></pagination>
|
||||
<publications-list-item *ngFor="let item of items" [item]="item" [editMode]="editMode"></publications-list-item>
|
||||
|
|
|
|||
|
|
@ -6,20 +6,27 @@
|
|||
margin: 24px 0;
|
||||
width: 100%;
|
||||
.toggle {
|
||||
height: 2px;
|
||||
background-color: #CFD1D4;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
margin-bottom: 24px;
|
||||
|
||||
.button {
|
||||
top: -11px;
|
||||
left: calc(50% - 12px);
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
font-size: 20px;
|
||||
color: var(--blue-1);
|
||||
vertical-align: 4px;
|
||||
padding-left: 8px;
|
||||
&:hover{
|
||||
color: var(--blue-2);
|
||||
}
|
||||
};
|
||||
&::before{
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: url("~src/assets/images/icons/add_24dp.svg") no-repeat center #ffffff;
|
||||
cursor: pointer;
|
||||
background: url('~src/assets/images/icons/add_cirle_24dp.svg') center no-repeat;
|
||||
}
|
||||
&:hover::before{
|
||||
background: url('~src/assets/images/icons/add_cirle_hover_24dp.svg') center no-repeat;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M11 17H13V13H17V11H13V7H11V11H7V13H11V17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z" fill="#005799"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
|
|
@ -6,7 +6,7 @@ export const environment = {
|
|||
production: false,
|
||||
apiUrl: 'http://api.vniigazv2.lc',
|
||||
clientId: 2,
|
||||
clientSecret: 'SmnyQ492ZRhPX4tQKCg9VHyXK6dP1qrawnFhy8aM',
|
||||
clientSecret: 'tsfYTWRzbK1okzbN1jX0JeGkMu3c42H6hJF3NhBv',
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue