Web: delete duplicate img by modules

This commit is contained in:
Timofey Boyko 2022-12-26 15:04:05 +03:00
parent b6882e0766
commit 7262a5f3b2
16 changed files with 17 additions and 67 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 9.5 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -1,5 +0,0 @@
<svg width="26" height="24" viewBox="0 0 26 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.411 23.7059L0.685256 18.7649C-0.228419 18.3335 -0.228419 17.6669 0.685256 17.2748L4.4194 15.5493L11.3713 18.7649C12.285 19.1963 13.7548 19.1963 14.6287 18.7649L21.5806 15.5493L25.3147 17.2748C26.2284 17.7061 26.2284 18.3728 25.3147 18.7649L14.589 23.7059C13.7548 24.0981 12.285 24.0981 11.411 23.7059Z" fill="#FF6F3D"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.3762 17.5917L0.683168 12.6449C-0.227723 12.213 -0.227723 11.5456 0.683168 11.153L4.32673 9.46484L11.3762 12.7234C12.2871 13.1553 13.7525 13.1553 14.6238 12.7234L21.6733 9.46484L25.3168 11.153C26.2277 11.5849 26.2277 12.2523 25.3168 12.6449L14.6238 17.5917C13.7129 18.0235 12.2475 18.0235 11.3762 17.5917Z" fill="#95C038"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.3762 11.5408L0.683168 6.66521C-0.227723 6.23956 -0.227723 5.58175 0.683168 5.1948L11.3762 0.319234C12.2871 -0.106411 13.7525 -0.106411 14.6238 0.319234L25.3168 5.1948C26.2277 5.62044 26.2277 6.27826 25.3168 6.66521L14.6238 11.5408C13.7129 11.9277 12.2475 11.9277 11.3762 11.5408Z" fill="#5DC0E8"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -1,3 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 1C0.895431 1 0 1.89543 0 3V5H2V3H6.58579L9 5.41421C9.37507 5.78929 9.88378 6 10.4142 6H14V13H2V11H0V13C0 14.1046 0.895431 15 2 15H14C15.1046 15 16 14.1046 16 13V6C16 4.89543 15.1046 4 14 4H10.4142L8 1.58579C7.62493 1.21071 7.11622 1 6.58579 1H2ZM3.29289 5.70711L4.58577 6.99998L6.3888e-05 6.99994L4.80408e-05 8.99994L4.58581 8.99998L3.29289 10.2929L4.70711 11.7071L7.70711 8.70711C8.09763 8.31658 8.09763 7.68342 7.70711 7.29289L4.70711 4.29289L3.29289 5.70711Z" fill="#333333"/>
</svg>

Before

Width:  |  Height:  |  Size: 635 B

View File

@ -1,5 +1,5 @@
import UnpinReactSvgUrl from "ASSETS_DIR/images/unpin.react.svg?url";
import AccessEditFormMediumReactSvgUrl from "PUBLIC_DIR/images/access.edit.form.medium.react.svg?url";
import FormFillRectSvgUrl from "PUBLIC_DIR/images/form.fill.rect.svg?url";
import AccessEditFormReactSvgUrl from "PUBLIC_DIR/images/access.edit.form.react.svg?url";
import FileActionsConvertEditDocReactSvgUrl from "PUBLIC_DIR/images/file.actions.convert.edit.doc.react.svg?url";
import RefreshReactSvgUrl from "PUBLIC_DIR/images/refresh.react.svg?url";
@ -107,13 +107,9 @@ const Badges = ({
const fontSizeBadge = isTile || tabletViewBadge ? "11px" : "9px";
const iconForm =
sizeBadge === "medium"
? AccessEditFormMediumReactSvgUrl
: AccessEditFormReactSvgUrl;
sizeBadge === "medium" ? FormFillRectSvgUrl : AccessEditFormReactSvgUrl;
const iconEdit = !isForm
? FileActionsConvertEditDocReactSvgUrl
: iconForm;
const iconEdit = !isForm ? FileActionsConvertEditDocReactSvgUrl : iconForm;
const iconRefresh = RefreshReactSvgUrl;

View File

@ -1,6 +1,6 @@
import CatalogFolderReactSvgUrl from "PUBLIC_DIR/images/catalog.folder.react.svg?url";
import CatalogUserReactSvgUrl from "PUBLIC_DIR/images/catalog.user.react.svg?url";
import CatalogShareReactSvgUrl from "PUBLIC_DIR/images/catalog.share.react.svg?url";
import CatalogSharedReactSvgUrl from "PUBLIC_DIR/images/catalog.shared.react.svg?url";
import CatalogPortfolioReactSvgUrl from "PUBLIC_DIR/images/catalog.portfolio.react.svg?url";
import CatalogFavoritesReactSvgUrl from "PUBLIC_DIR/images/catalog.favorites.react.svg?url";
import CatalogRecentReactSvgUrl from "PUBLIC_DIR/images/catalog.recent.react.svg?url";
@ -121,7 +121,7 @@ class TreeFolders extends React.Component {
iconUrl = CatalogUserReactSvgUrl;
break;
case FolderType.SHARE:
iconUrl = CatalogShareReactSvgUrl;
iconUrl = CatalogSharedReactSvgUrl;
break;
case FolderType.COMMON:
iconUrl = CatalogPortfolioReactSvgUrl;
@ -142,8 +142,7 @@ class TreeFolders extends React.Component {
break;
}
if (item.parentId !== 0)
iconUrl = CatalogFolderReactSvgUrl;
if (item.parentId !== 0) iconUrl = CatalogFolderReactSvgUrl;
switch (item.providerKey) {
case "GoogleDrive":

View File

@ -1,5 +1,5 @@
import CatalogShareSmallReactSvgUrl from "PUBLIC_DIR/images/catalog.share.small.react.svg?url";
import CatalogShareReactSvgUrl from "PUBLIC_DIR/images/catalog.share.react.svg?url";
import CatalogSharedReactSvgUrl from "PUBLIC_DIR/images/catalog.shared.react.svg?url";
import React from "react";
import Text from "@docspace/components/text";
import IconButton from "@docspace/components/icon-button";
@ -26,7 +26,7 @@ const SharedButton = ({
const icon = isSmallIcon
? CatalogShareSmallReactSvgUrl
: CatalogShareReactSvgUrl;
: CatalogSharedReactSvgUrl;
return (
<Text

View File

@ -211,25 +211,22 @@ export const getLogoFromPath = (path) => {
const name = path.split("/").pop();
switch (name) {
case "aboutpage.svg":
case "loginpage.svg":
return AboutPageSvgUrl;
case "dark_loginpage.svg":
return DarkLoginPageSvgUrl;
case "leftmenu.svg":
case "dark_leftmenu.svg":
return LeftMenuSvgUrl;
case "dark_aboutpage.svg":
case "dark_lightsmall.svg":
return DarkAboutPageSvgUrl;
case "docseditor.svg":
return DocseditorSvgUrl;
case "lightsmall.svg":
return LightSmallSvgUrl;
case "dark_leftmenu.svg":
return DarkLeftMenuSvgUrl;
case "docseditorembed.svg":
return DocsEditoRembedSvgUrl;
case "loginpage.svg":
return LoginPageSvgUrl;
case "dark_lightsmall.svg":
return DarkLightSmallSvgUrl;
default:
break;
}

View File

@ -9,7 +9,6 @@ import FormGalleryReactSvgUrl from "ASSETS_DIR/images/form.gallery.react.svg?url
import CatalogFolderReactSvgUrl from "ASSETS_DIR/images/catalog.folder.react.svg?url";
import ActionsUploadReactSvgUrl from "ASSETS_DIR/images/actions.upload.react.svg?url";
import ClearTrashReactSvgUrl from "ASSETS_DIR/images/clear.trash.react.svg?url";
import SubtractReactSvgUrl from "ASSETS_DIR/images/subtract.react.svg?url";
import ReconnectSvgUrl from "ASSETS_DIR/images/reconnect.svg?url";
import SettingsReactSvgUrl from "ASSETS_DIR/images/settings.react.svg?url";
import DownloadReactSvgUrl from "ASSETS_DIR/images/download.react.svg?url";
@ -411,7 +410,7 @@ class SectionHeaderContent extends React.Component {
label: t("RestoreAll"),
onClick: this.onRestoreAllArchiveAction,
disabled: !canRestoreAll,
icon: SubtractReactSvgUrl,
icon: MoveReactSvgUrl,
},
];
}
@ -455,7 +454,7 @@ class SectionHeaderContent extends React.Component {
label: t("RestoreAll"),
onClick: this.onRestoreAllAction,
disabled: !isRecycleBinFolder,
icon: SubtractReactSvgUrl,
icon: MoveReactSvgUrl,
},
{
id: "header_option_show-info",

View File

@ -13,7 +13,6 @@ import DownloadReactSvgUrl from "ASSETS_DIR/images/download.react.svg?url";
import DownloadAsReactSvgUrl from "ASSETS_DIR/images/download-as.react.svg?url";
import RenameReactSvgUrl from "ASSETS_DIR/images/rename.react.svg?url";
import RemoveSvgUrl from "ASSETS_DIR/images/remove.svg?url";
import SubtractReactSvgUrl from "ASSETS_DIR/images/subtract.react.svg?url";
import TrashReactSvgUrl from "ASSETS_DIR/images/trash.react.svg?url";
import LockedReactSvgUrl from "PUBLIC_DIR/images/locked.react.svg?url";
import CopyReactSvgUrl from "PUBLIC_DIR/images/copy.react.svg?url";
@ -971,7 +970,7 @@ class ContextOptionsStore {
id: "option_unarchive-room",
key: "unarchive-room",
label: t("Common:Restore"),
icon: SubtractReactSvgUrl,
icon: MoveReactSvgUrl,
onClick: (e) => this.onClickArchive(e),
disabled: false,
"data-action": "unarchive",
@ -1084,7 +1083,7 @@ class ContextOptionsStore {
archiveOptions = {
key: "unarchive-room",
label: t("Common:Restore"),
icon: SubtractReactSvgUrl,
icon: MoveReactSvgUrl,
onClick: (e) => this.onClickArchive(e),
disabled: false,
"data-action": "unarchive",

View File

@ -1,5 +1,4 @@
import SubtractReactSvgUrl from "ASSETS_DIR/images/subtract.react.svg?url";
import FavoritesReactSvgUrl from "ASSETS_DIR/images/favorites.react.svg?url";
import FavoritesReactSvgUrl from "ASSETS_DIR/images/favorites.react.svg?url";
import InfoOutlineReactSvgUrl from "PUBLIC_DIR/images/info.outline.react.svg?url";
import CopyToReactSvgUrl from "PUBLIC_DIR/images/copyTo.react.svg?url";
import DownloadReactSvgUrl from "PUBLIC_DIR/images/download.react.svg?url";
@ -1575,7 +1574,7 @@ class FilesActionStore {
id: "menu-unarchive",
key: "unarchive",
label: t("Common:Restore"),
iconUrl: SubtractReactSvgUrl,
iconUrl: MoveReactSvgUrl,
onClick: () => this.archiveRooms("unarchive"),
disabled: false,
};

View File

@ -1,3 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 1C0.447715 1 0 1.44772 0 2V6C0 6.55228 0.447715 7 1 7H15C15.5523 7 16 6.55228 16 6V2C16 1.44772 15.5523 1 15 1H1ZM1 9C0.447715 9 0 9.44771 0 10C0 10.5523 0.447715 11 1 11H15C15.5523 11 16 10.5523 16 10C16 9.44771 15.5523 9 15 9H1ZM6 14C6 13.4477 6.44772 13 7 13H15C15.5523 13 16 13.4477 16 14C16 14.5523 15.5523 15 15 15H7C6.44772 15 6 14.5523 6 14ZM2.5 3C2.22386 3 2 3.22386 2 3.5V4.5C2 4.77614 2.22386 5 2.5 5H13.5C13.7761 5 14 4.77614 14 4.5V3.5C14 3.22386 13.7761 3 13.5 3H2.5Z" fill="#657077"/>
</svg>

Before

Width:  |  Height:  |  Size: 655 B

View File

@ -1,3 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 1V3V5C9.47715 5 5 9.47715 5 15H3H1C1 7.26801 7.26801 1 15 1ZM7 15C7 10.5817 10.5817 7 15 7V13C15 14.1046 14.1046 15 13 15H7Z" fill="#657077"/>
</svg>

Before

Width:  |  Height:  |  Size: 299 B

View File

@ -1,10 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2383_59933)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.2929 1.29312C11.5119 0.074169 13.4882 0.0741679 14.7071 1.29312C15.9261 2.51207 15.9261 4.48838 14.7071 5.70733L5.70713 14.7073C5.57897 14.8355 5.41839 14.9264 5.24256 14.9704L1.24256 15.9704C0.901782 16.0556 0.541295 15.9557 0.292914 15.7073C0.0445341 15.459 -0.055315 15.0985 0.0298787 14.7577L1.02988 10.7577C1.07384 10.5819 1.16476 10.4213 1.29291 10.2931L10.2929 1.29312ZM13.2929 2.70733C12.855 2.26943 12.145 2.26943 11.7071 2.70733L10.9142 3.50023L12.5 5.08601L13.2929 4.29312C13.7308 3.85522 13.7308 3.14524 13.2929 2.70733ZM11.0858 6.50023L9.50002 4.91444L2.90299 11.5115L2.37439 13.6259L4.48877 13.0973L11.0858 6.50023Z" fill="#EB7B0C"/>
</g>
<defs>
<clipPath id="clip0_2383_59933">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 952 B

View File

@ -1,3 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 1V3V5C9.47715 5 5 9.47715 5 15H3H1C1 7.26801 7.26801 1 15 1ZM7 15C7 10.5817 10.5817 7 15 7V13C15 14.1046 14.1046 15 13 15H7Z" fill="#657077"/>
</svg>

Before

Width:  |  Height:  |  Size: 299 B