Complete workbench P0 resource tab cutover
This commit is contained in:
@@ -2043,7 +2043,13 @@ const SIDEBAR_TREE_JS: &str = r##"
|
||||
|
||||
function buildOnlyOfficeOpenUrl(input) {
|
||||
var target = new URL('/onlyoffice', window.location.origin);
|
||||
target.searchParams.set('fileUrl', input.fileUrl || '');
|
||||
var fileUrl = String(input.fileUrl || '').trim();
|
||||
if (fileUrl) {
|
||||
try {
|
||||
fileUrl = new URL(fileUrl, window.location.origin).toString();
|
||||
} catch (_error) {}
|
||||
}
|
||||
target.searchParams.set('fileUrl', fileUrl);
|
||||
target.searchParams.set('fileName', input.fileName || '未命名资源');
|
||||
target.searchParams.set('fileType', input.fileType || 'docx');
|
||||
if (input.assetId) target.searchParams.set('assetId', input.assetId);
|
||||
|
||||
@@ -2522,6 +2522,46 @@ body {
|
||||
padding: 34px 48px;
|
||||
}
|
||||
|
||||
.mnote-resource-tab-error {
|
||||
display: flex;
|
||||
place-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
min-height: calc(100vh - 80px);
|
||||
background: #FFF;
|
||||
color: #73726e;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
padding: 48px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.mnote-resource-tab-error[data-resource-tab-error="true"] {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.mnote-resource-tab-error-inner {
|
||||
max-width: 420px;
|
||||
text-align: center;
|
||||
border: 1px solid var(--color-basic-200, #E3E3E0);
|
||||
border-radius: 6px;
|
||||
padding: 24px 28px;
|
||||
background: var(--color-basic-50, #F7F7F5);
|
||||
}
|
||||
|
||||
.mnote-resource-tab-error-inner h1 {
|
||||
margin: 0 0 8px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--color-basic-900, #37352F);
|
||||
}
|
||||
|
||||
.mnote-resource-tab-error-inner p {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
color: var(--color-basic-600, #9B9A97);
|
||||
}
|
||||
|
||||
.mnote-resource-tab-editor-root {
|
||||
min-height: calc(100vh - 112px);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user