mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
Merge pull request '[home] fix bug 74932' (#308) from fix/fix-bugs into release/v9.0.0
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/desktop-apps/pulls/308
This commit is contained in:
@ -42,6 +42,7 @@
|
||||
--text-link: #acbfff;
|
||||
--text-inverse: #121212;
|
||||
--text-contrast-background: #fff;
|
||||
--text-negative: #f62211;
|
||||
|
||||
--icon-normal: #e8e8e8;
|
||||
|
||||
|
||||
@ -42,6 +42,7 @@
|
||||
--text-link: #acbfff;
|
||||
--text-inverse: #333;
|
||||
--text-contrast-background: #fff;
|
||||
--text-negative: #f62211;
|
||||
|
||||
--icon-normal: fade(#fff, 80%);
|
||||
|
||||
|
||||
@ -821,7 +821,12 @@ li.menu-item {
|
||||
}
|
||||
|
||||
#box-recent {
|
||||
display: flex;
|
||||
padding-bottom: 32px;
|
||||
|
||||
&.empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#box-recovery {
|
||||
@ -2091,9 +2096,40 @@ li.menu-item {
|
||||
}
|
||||
}
|
||||
|
||||
.status-field.hbox {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
#idx-update-status-text {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#idx-update-status-icon {
|
||||
min-width: 28px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-right: 8px;
|
||||
|
||||
&[data-icon=success] {
|
||||
fill: #95C038;
|
||||
}
|
||||
&[data-icon=error] {
|
||||
fill: #FF6F3D;
|
||||
}
|
||||
&[data-icon=load], &[data-icon=lastcheck] {
|
||||
fill: #5DC0E8;
|
||||
}
|
||||
|
||||
&[data-icon=load] {
|
||||
animation: rotate 1.5s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#idx-update-btnaction {
|
||||
|
||||
@ -18,7 +18,7 @@ window.DnDFileZone = function () {
|
||||
$parent = parentElement;
|
||||
$el = $parent.append(_template).find('.dnd-zone');
|
||||
|
||||
$el.find('a').bind('click', function () {
|
||||
$el.find('button').bind('click', function () {
|
||||
openFile(OPEN_FILE_FOLDER, '');
|
||||
});
|
||||
},
|
||||
|
||||
@ -72,13 +72,16 @@
|
||||
|
||||
var _lang = utils.Lang;
|
||||
const _updates_status = `<section id="idx-update-cnt">
|
||||
<div class="status-field">
|
||||
<label id="idx-update-status-text"></label>
|
||||
</div>
|
||||
<div class="status-field">
|
||||
<button id="idx-update-btnaction" class="btn btn--landing"></button>
|
||||
</div>
|
||||
</section>`;
|
||||
<div class="status-field hbox">
|
||||
<svg class="icon" id="idx-update-status-icon">
|
||||
<use href=""></use>
|
||||
</svg>
|
||||
<label id="idx-update-status-text"></label>
|
||||
</div>
|
||||
<div class="status-field">
|
||||
<button id="idx-update-btnaction" class="btn btn--landing"></button>
|
||||
</div>
|
||||
</section>`;
|
||||
let _html = `<div class="flexbox">
|
||||
<div class="box-ver">
|
||||
<section class="hbox">
|
||||
|
||||
@ -141,13 +141,13 @@
|
||||
<div ${id} class="row text-normal">
|
||||
<div class="col-name">
|
||||
<div class="icon">
|
||||
<svg class="icon" data-iconname="${info.type == 'folder' ? 'folder' : `${info.format}`}" data-precls="tool-icon">
|
||||
<use xlink:href="#${info.type == 'folder' ? 'folder-small' : info.format}"></use>
|
||||
<svg class="icon" data-iconname="${info.type === 'folder' ? 'folder' : `${info.format}`}" data-precls="tool-icon">
|
||||
<use xlink:href="#${info.type === 'folder' ? 'folder-small' : info.format}"></use>
|
||||
</svg>
|
||||
${info.crypted ? `<svg class="icon" data-iconname="shield" data-precls="tool-icon">
|
||||
<use xlink:href="#shield"></use>
|
||||
</svg>` : ''}
|
||||
${!isSvgIcons ? `<i class="icon tool-icon ${info.type == 'folder' ? 'folder' : `${info.format}`}"></i>` :''}
|
||||
${!isSvgIcons ? `<i class="icon tool-icon ${info.type === 'folder' ? 'folder' : `${info.format}`}"></i>` :''}
|
||||
</div>
|
||||
<p class="name">${info.name}</p>
|
||||
<span class="ext">${info.ext}</span>
|
||||
@ -290,7 +290,7 @@
|
||||
this.rawRecents = undefined;
|
||||
}
|
||||
|
||||
this.view.$boxRecent.css('display', collectionRecents.size() > 0 ? 'flex' : 'none');
|
||||
// this.view.$boxRecent.css('display', collectionRecents.size() > 0 ? 'flex' : 'none');
|
||||
// requestAnimationFrame(() => this.view.updateListSize());
|
||||
|
||||
if (collectionRecents.size() > 0 || collectionRecovers.size() > 0) {
|
||||
@ -421,19 +421,33 @@
|
||||
menu.actionlist == 'recent' ?
|
||||
openFile(OPEN_FILE_RECENT, data) :
|
||||
openFile(OPEN_FILE_RECOVERY, data);
|
||||
} else
|
||||
if (/\:clear/.test(action)) {
|
||||
menu.actionlist == 'recent' ?
|
||||
window.sdk.LocalFileRemoveAllRecents() :
|
||||
} else if (/\:clear/.test(action)) {
|
||||
if (menu.actionlist === 'recent') {
|
||||
window.sdk.LocalFileRemoveAllRecents();
|
||||
if (collectionRecovers.size() === 0) {
|
||||
this.dndZone.show();
|
||||
}
|
||||
} else {
|
||||
window.sdk.LocalFileRemoveAllRecovers();
|
||||
if (collectionRecents.size() === 0) {
|
||||
this.dndZone.show();
|
||||
}
|
||||
}
|
||||
} else
|
||||
if (/\:forget/.test(action)) {
|
||||
$('#' + data.uid, this.view.$panel).addClass('lost');
|
||||
setTimeout(e => {
|
||||
menu.actionlist == 'recent' ?
|
||||
window.sdk.LocalFileRemoveRecent(parseInt(data.fileid)) :
|
||||
window.sdk.LocalFileRemoveRecover(parseInt(data.fileid));}
|
||||
, 300); // 300ms - duration of item's 'collapse' transition
|
||||
|
||||
if (menu.actionlist === 'recent') {
|
||||
window.sdk.LocalFileRemoveRecent(parseInt(data.fileid));
|
||||
if (collectionRecovers.size() === 0) {
|
||||
this.dndZone.show();
|
||||
}
|
||||
} else {
|
||||
window.sdk.LocalFileRemoveRecover(parseInt(data.fileid));
|
||||
if (collectionRecents.size() === 0) {
|
||||
this.dndZone.show();
|
||||
}
|
||||
}
|
||||
} else
|
||||
if (/\:explore/.test(action)) {
|
||||
if (menu.actionlist == 'recent') {
|
||||
@ -518,11 +532,6 @@
|
||||
console.log('portal authorized');
|
||||
});
|
||||
|
||||
$('#box-recent .table-box').scroll(e => {
|
||||
if ( Menu.opened )
|
||||
Menu.closeAll();
|
||||
});
|
||||
|
||||
this.dndZone = new DnDFileZone();
|
||||
this.dndZone.render(this.view.$panel.find("#area-dnd-file"));
|
||||
|
||||
|
||||
@ -275,7 +275,7 @@
|
||||
isLoading = true;
|
||||
|
||||
const _domain = localStorage.templatesdomain ? localStorage.templatesdomain : 'https://oforms.onlyoffice.com'; // https://oforms.teamlab.info
|
||||
const _url = `{_domain}/dashboard/api/oforms?populate=*&locale=en&pagination[page]=${_page_num}`;
|
||||
const _url = `${_domain}/dashboard/api/oforms?populate=*&locale=en&pagination[page]=${_page_num}`;
|
||||
fetch(_url)
|
||||
.then(r => r.json())
|
||||
.then(d => {
|
||||
|
||||
@ -294,7 +294,7 @@
|
||||
<STRING lang="ro" value="PDF nou"/>
|
||||
<STRING lang="ru" value="Новый PDF"/>
|
||||
<STRING lang="sk" value="Nový PDF"/>
|
||||
<STRING lang="sl" value="Novi PDF />
|
||||
<STRING lang="sl" value="Novi PDF"/>
|
||||
<STRING lang="sq" value="PDF i ri"/>
|
||||
<STRING lang="sr_SP_Cyrillic" value="Нови PDF"/>
|
||||
<STRING lang="sr_SP_Latin" value="Novi PDF"/>
|
||||
|
||||
Reference in New Issue
Block a user