@orangelogic/orange-dam-content-browser-sdk 2.1.54 → 2.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ApiService.d.ts +15 -0
- package/build/App.d.ts +62 -0
- package/build/AppContext.d.ts +18 -0
- package/build/GlobalConfigContext.d.ts +32 -0
- package/build/OrangeDAMContentBrowserSDK.min.css +2 -0
- package/build/OrangeDAMContentBrowserSDK.min.css.map +1 -0
- package/build/OrangeDAMContentBrowserSDK.min.js +11468 -0
- package/build/OrangeDAMContentBrowserSDK.min.js.map +1 -0
- package/build/asset-manifest.json +13 -0
- package/build/components/ArrayClamp/ArrayClamp.d.ts +10 -0
- package/build/components/ArrayClamp/ArrayClamp.styled.d.ts +1 -0
- package/build/components/ArrayClamp/index.d.ts +1 -0
- package/build/components/Browser/Browser.constants.d.ts +3 -0
- package/build/components/Browser/Browser.d.ts +21 -0
- package/build/components/Browser/Browser.styled.d.ts +2 -0
- package/build/components/Browser/BrowserItem.d.ts +13 -0
- package/build/components/Browser/LoadMoreButton.d.ts +9 -0
- package/build/components/ControlBar/ControlBar.constants.d.ts +10 -0
- package/build/components/ControlBar/ControlBar.d.ts +23 -0
- package/build/components/ControlBar/ControlBar.styled.d.ts +1 -0
- package/build/components/ControlBar/Facet/Facet.d.ts +14 -0
- package/build/components/ControlBar/Facet/index.d.ts +1 -0
- package/build/components/FormatDialog/CropPreviewer/CropPreviewer.d.ts +41 -0
- package/{src/components/FormatDialog/CropPreviewer/index.ts → build/components/FormatDialog/CropPreviewer/index.d.ts} +1 -1
- package/build/components/FormatDialog/CustomRendition/CustomRendition.constants.d.ts +5 -0
- package/build/components/FormatDialog/CustomRendition/CustomRendition.d.ts +56 -0
- package/build/components/FormatDialog/CustomRendition/CustomRendition.styled.d.ts +1 -0
- package/build/components/FormatDialog/CustomRendition/index.d.ts +1 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Crop.d.ts +26 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Extension.d.ts +11 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Format.d.ts +10 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Metadata.d.ts +7 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Quality.d.ts +7 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Resize.d.ts +18 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Rotate.d.ts +8 -0
- package/{src/components/FormatDialog/CustomRendition/transformations/index.ts → build/components/FormatDialog/CustomRendition/transformations/index.d.ts} +3 -1
- package/build/components/FormatDialog/FormatDialog.d.ts +49 -0
- package/build/components/FormatDialog/FormatDialog.styled.d.ts +3 -0
- package/build/components/FormatDialog/Previewer/Previewer.d.ts +17 -0
- package/build/components/FormatDialog/Previewer/Previewer.styled.d.ts +1 -0
- package/build/components/FormatDialog/Previewer/index.d.ts +1 -0
- package/build/components/FormatDialog/ProxyMenu/ProxyMenu.d.ts +20 -0
- package/build/components/FormatDialog/ProxyMenu/ProxyMenu.styled.d.ts +2 -0
- package/build/components/FormatDialog/ProxyMenu/index.d.ts +1 -0
- package/build/components/FormatDialog/TrackingParameters/TrackingParameters.d.ts +13 -0
- package/build/components/FormatDialog/TrackingParameters/index.d.ts +1 -0
- package/build/components/FormatDialog/VersionHistory/VersionHistory.d.ts +6 -0
- package/build/components/FormatDialog/VersionHistory/VersionHistory.styled.d.ts +1 -0
- package/build/components/FormatDialog/VersionHistory/index.d.ts +1 -0
- package/build/components/FormatDialog/index.d.ts +1 -0
- package/build/components/Header/Header.d.ts +15 -0
- package/build/components/Header/Header.styled.d.ts +5 -0
- package/build/components/Loader/Loader.d.ts +7 -0
- package/build/components/Loader/index.d.ts +1 -0
- package/build/components/NoResult/NoResult.d.ts +7 -0
- package/build/components/NoResult/index.d.ts +1 -0
- package/build/components/Result/AssetCard/AssetCard.d.ts +15 -0
- package/build/components/Result/AssetCard/AssetCard.styled.d.ts +2 -0
- package/build/components/Result/AssetCard/AssetCardWrapper.d.ts +18 -0
- package/build/components/Result/AssetCard/AssetCardWrapper.styled.d.ts +1 -0
- package/build/components/Result/AssetCard/index.d.ts +1 -0
- package/build/components/Result/AssetPreview/AssetPreview.d.ts +11 -0
- package/build/components/Result/AssetPreview/AssetPreview.styled.d.ts +1 -0
- package/build/components/Result/AssetPreview/ImagePreview/ImagePreview.d.ts +11 -0
- package/build/components/Result/AssetPreview/ImagePreview/index.d.ts +1 -0
- package/build/components/Result/AssetPreview/OtherPreview/OtherPreview.d.ts +9 -0
- package/build/components/Result/AssetPreview/OtherPreview/OtherPreview.styled.d.ts +1 -0
- package/build/components/Result/AssetPreview/OtherPreview/index.d.ts +1 -0
- package/build/components/Result/AssetPreview/VideoPreview/VideoPreview.d.ts +11 -0
- package/build/components/Result/AssetPreview/VideoPreview/index.d.ts +1 -0
- package/build/components/Result/AssetPreview/index.d.ts +1 -0
- package/build/consts/asset.d.ts +14 -0
- package/build/consts/auth.d.ts +4 -0
- package/build/consts/data.d.ts +21 -0
- package/build/index.d.ts +225 -0
- package/build/index.html +1 -0
- package/build/page/Authenticate/Authenticate.d.ts +2 -0
- package/build/page/Authenticate/ConnectingBackground.d.ts +8 -0
- package/build/page/Authenticate/index.d.ts +2 -0
- package/build/page/Home/Home.d.ts +6 -0
- package/build/page/Home/Home.styled.d.ts +2 -0
- package/build/setupTests.d.ts +1 -0
- package/build/store/assets/assets.api.d.ts +66 -0
- package/build/store/assets/assets.service.d.ts +23 -0
- package/build/store/assets/assets.slice.d.ts +65 -0
- package/build/store/auth/auth.service.d.ts +10 -0
- package/build/store/auth/auth.slice.d.ts +76 -0
- package/build/store/index.d.ts +368 -0
- package/build/store/search/search.api.d.ts +39 -0
- package/build/store/search/search.slice.d.ts +12 -0
- package/build/store/user/user.api.d.ts +5 -0
- package/build/types/assets.d.ts +68 -0
- package/build/types/auth.d.ts +35 -0
- package/build/types/common.d.ts +11 -0
- package/build/types/download.d.ts +8 -0
- package/build/types/navigation.d.ts +3 -0
- package/build/types/search.d.ts +148 -0
- package/{src/types/storage.ts → build/types/storage.d.ts} +1 -1
- package/build/types/user.d.ts +7 -0
- package/build/utils/api.d.ts +27 -0
- package/build/utils/array.d.ts +13 -0
- package/build/utils/constants.d.ts +11 -0
- package/build/utils/function.d.ts +1 -0
- package/build/utils/getRequestUrl.d.ts +1 -0
- package/build/utils/hooks.d.ts +1 -0
- package/build/utils/icon.d.ts +3 -0
- package/build/utils/image.d.ts +24 -0
- package/build/utils/number.d.ts +4 -0
- package/build/utils/rotate.d.ts +4 -0
- package/build/utils/storage.d.ts +23 -0
- package/build/utils/string.d.ts +12 -0
- package/build/view/AssetsPicker.d.ts +6 -0
- package/package.json +49 -8
- package/.env +0 -1
- package/.eslintignore +0 -2
- package/.eslintrc.json +0 -82
- package/.releaserc +0 -17
- package/.travis.yml +0 -20
- package/CBSDKdemo.html +0 -315
- package/GitVersion.yml +0 -18
- package/azure-pipeline.yaml +0 -93
- package/clientlib.config.js +0 -36
- package/config/env.js +0 -105
- package/config/getHttpsConfig.js +0 -67
- package/config/jest/babelTransform.js +0 -30
- package/config/jest/cssTransform.js +0 -14
- package/config/jest/fileTransform.js +0 -41
- package/config/modules.js +0 -135
- package/config/paths.js +0 -79
- package/config/webpack/persistentCache/createEnvironmentHash.js +0 -10
- package/config/webpack.config.js +0 -762
- package/config/webpackDevServer.config.js +0 -128
- package/config-overrides.js +0 -8
- package/gab_extension/GAB.html +0 -85
- package/gab_extension/GoogleChrome/manifest.json +0 -28
- package/gab_extension/GoogleChrome/src/assets/icon48.png +0 -0
- package/gab_extension/GoogleChrome/src/background/index.js +0 -6
- package/gab_extension/GoogleChrome/src/scripts/index.js +0 -347
- package/gab_extension/MozillaFirefox/manifest.json +0 -20
- package/gab_extension/MozillaFirefox/src/assets/icon.png +0 -0
- package/gab_extension/MozillaFirefox/src/background/index.js +0 -5
- package/gab_extension/MozillaFirefox/src/scripts/index.js +0 -347
- package/gab_extension/README.md +0 -11
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Orange DAM Asset Browser Extension.xcodeproj/project.pbxproj +0 -927
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Orange DAM Asset Browser Extension.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Orange DAM Asset Browser Extension.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Orange DAM Asset Browser Extension.xcodeproj/project.xcworkspace/xcuserdata/oldevmac01.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Orange DAM Asset Browser Extension.xcodeproj/xcuserdata/oldevmac01.xcuserdatad/xcschemes/xcschememanagement.plist +0 -19
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Assets.xcassets/AccentColor.colorset/Contents.json +0 -11
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -63
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Assets.xcassets/Contents.json +0 -6
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Assets.xcassets/LargeIcon.imageset/Contents.json +0 -20
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Base.lproj/Main.html +0 -23
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Resources/Icon.png +0 -0
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Resources/Script.js +0 -24
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Resources/Style.css +0 -61
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/ViewController.swift +0 -81
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (Extension)/SafariWebExtensionHandler.swift +0 -26
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (App)/AppDelegate.swift +0 -24
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (App)/Base.lproj/LaunchScreen.storyboard +0 -36
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (App)/Base.lproj/Main.storyboard +0 -38
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (App)/Info.plist +0 -27
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (App)/SceneDelegate.swift +0 -18
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (Extension)/Info.plist +0 -13
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (App)/AppDelegate.swift +0 -21
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (App)/Base.lproj/Main.storyboard +0 -125
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (App)/Info.plist +0 -8
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (App)/Orange DAM Asset Browser Extension.entitlements +0 -12
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (Extension)/Info.plist +0 -13
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (Extension)/Orange DAM Asset Browser Extension.entitlements +0 -10
- package/public/index.html +0 -92
- package/scripts/build.js +0 -218
- package/scripts/start.js +0 -154
- package/scripts/test.js +0 -53
- package/src/App.tsx +0 -98
- package/src/AppContext.ts +0 -18
- package/src/GlobalConfigContext.ts +0 -46
- package/src/components/ArrayClamp/ArrayClamp.styled.ts +0 -42
- package/src/components/ArrayClamp/ArrayClamp.tsx +0 -167
- package/src/components/ArrayClamp/index.ts +0 -1
- package/src/components/Browser/Browser.styled.ts +0 -82
- package/src/components/Browser/Browser.tsx +0 -284
- package/src/components/Browser/BrowserItem.tsx +0 -98
- package/src/components/ControlBar/ControlBar.constants.tsx +0 -66
- package/src/components/ControlBar/ControlBar.styled.ts +0 -82
- package/src/components/ControlBar/ControlBar.tsx +0 -528
- package/src/components/ControlBar/Facet/Facet.tsx +0 -113
- package/src/components/ControlBar/Facet/index.ts +0 -1
- package/src/components/FormatDialog/CropPreviewer/CropPreviewer.tsx +0 -224
- package/src/components/FormatDialog/CustomRendition/CustomRendition.constants.ts +0 -24
- package/src/components/FormatDialog/CustomRendition/CustomRendition.styled.ts +0 -57
- package/src/components/FormatDialog/CustomRendition/CustomRendition.tsx +0 -178
- package/src/components/FormatDialog/CustomRendition/index.ts +0 -1
- package/src/components/FormatDialog/CustomRendition/transformations/Crop.tsx +0 -249
- package/src/components/FormatDialog/CustomRendition/transformations/Extension.tsx +0 -54
- package/src/components/FormatDialog/CustomRendition/transformations/Format.tsx +0 -86
- package/src/components/FormatDialog/CustomRendition/transformations/Resize.tsx +0 -176
- package/src/components/FormatDialog/CustomRendition/transformations/Rotate.tsx +0 -101
- package/src/components/FormatDialog/FormatDialog.styled.ts +0 -137
- package/src/components/FormatDialog/FormatDialog.tsx +0 -1533
- package/src/components/FormatDialog/Previewer/Previewer.styled.ts +0 -31
- package/src/components/FormatDialog/Previewer/Previewer.tsx +0 -143
- package/src/components/FormatDialog/Previewer/index.ts +0 -1
- package/src/components/FormatDialog/ProxyMenu/ProxyMenu.styled.ts +0 -88
- package/src/components/FormatDialog/ProxyMenu/ProxyMenu.tsx +0 -74
- package/src/components/FormatDialog/ProxyMenu/index.ts +0 -1
- package/src/components/FormatDialog/TrackingParameters/TrackingParameters.tsx +0 -59
- package/src/components/FormatDialog/TrackingParameters/index.ts +0 -1
- package/src/components/FormatDialog/index.ts +0 -1
- package/src/components/Header/Header.styled.ts +0 -51
- package/src/components/Header/Header.tsx +0 -118
- package/src/components/Loader/Loader.tsx +0 -37
- package/src/components/Loader/index.ts +0 -1
- package/src/components/NoResult/NoResult.tsx +0 -37
- package/src/components/NoResult/index.tsx +0 -1
- package/src/components/Result/AssetCard/AssetCard.styled.ts +0 -120
- package/src/components/Result/AssetCard/AssetCard.tsx +0 -192
- package/src/components/Result/AssetCard/AssetCardWrapper.styled.ts +0 -35
- package/src/components/Result/AssetCard/AssetCardWrapper.tsx +0 -165
- package/src/components/Result/AssetCard/index.ts +0 -1
- package/src/components/Result/AssetPreview/AssetPreview.styled.ts +0 -108
- package/src/components/Result/AssetPreview/AssetPreview.tsx +0 -78
- package/src/components/Result/AssetPreview/ImagePreview/ImagePreview.tsx +0 -42
- package/src/components/Result/AssetPreview/ImagePreview/index.ts +0 -1
- package/src/components/Result/AssetPreview/OtherPreview/OtherPreview.styled.ts +0 -23
- package/src/components/Result/AssetPreview/OtherPreview/OtherPreview.tsx +0 -28
- package/src/components/Result/AssetPreview/OtherPreview/index.ts +0 -1
- package/src/components/Result/AssetPreview/VideoPreview/VideoPreview.tsx +0 -132
- package/src/components/Result/AssetPreview/VideoPreview/index.ts +0 -1
- package/src/components/Result/AssetPreview/index.ts +0 -1
- package/src/consts/asset.ts +0 -16
- package/src/consts/data.ts +0 -17
- package/src/index.tsx +0 -305
- package/src/page/Authenticate/Authenticate.tsx +0 -232
- package/src/page/Authenticate/ConnectingBackground.tsx +0 -44
- package/src/page/Authenticate/index.tsx +0 -94
- package/src/page/Home/Home.styled.ts +0 -46
- package/src/page/Home/Home.tsx +0 -941
- package/src/react-web-component.d.ts +0 -4617
- package/src/store/assets/assets.api.ts +0 -167
- package/src/store/assets/assets.service.ts +0 -223
- package/src/store/assets/assets.slice.ts +0 -104
- package/src/store/auth/auth.service.ts +0 -71
- package/src/store/auth/auth.slice.ts +0 -295
- package/src/store/index.ts +0 -27
- package/src/store/search/search.api.ts +0 -319
- package/src/store/search/search.slice.ts +0 -28
- package/src/store/user/user.api.ts +0 -29
- package/src/styles.css +0 -42
- package/src/types/assets.ts +0 -71
- package/src/types/auth.ts +0 -42
- package/src/types/common.ts +0 -11
- package/src/types/download.ts +0 -8
- package/src/types/navigation.ts +0 -3
- package/src/types/search.ts +0 -116
- package/src/types/user.ts +0 -6
- package/src/utils/api.ts +0 -186
- package/src/utils/array.ts +0 -25
- package/src/utils/constants.ts +0 -12
- package/src/utils/fetch.ts +0 -116
- package/src/utils/getRequestUrl.ts +0 -15
- package/src/utils/hooks.ts +0 -36
- package/src/utils/icon.ts +0 -22
- package/src/utils/image.ts +0 -157
- package/src/utils/number.ts +0 -11
- package/src/utils/rotate.ts +0 -23
- package/src/utils/storage.ts +0 -184
- package/src/utils/string.ts +0 -24
- package/src/view/AssetsPicker.tsx +0 -24
- package/src/web-component.d.ts +0 -8151
- package/tsconfig.eslint.json +0 -10
- package/tsconfig.json +0 -37
- /package/{src/components/Browser/index.ts → build/components/Browser/index.d.ts} +0 -0
- /package/{src/components/ControlBar/index.ts → build/components/ControlBar/index.d.ts} +0 -0
- /package/{src/components/Header/index.ts → build/components/Header/index.d.ts} +0 -0
- /package/{public → build}/favicon.ico +0 -0
- /package/{public → build}/logo192.png +0 -0
- /package/{public → build}/logo512.png +0 -0
- /package/{public → build}/manifest.json +0 -0
- /package/{src/page/Home/index.ts → build/page/Home/index.d.ts} +0 -0
- /package/{public → build}/robots.txt +0 -0
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const Container = styled.div`
|
|
4
|
-
position: relative;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 350px;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
|
|
11
|
-
.loading {
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 100%;
|
|
14
|
-
position: absolute;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.loading__skeleton {
|
|
18
|
-
--border-radius: 0;
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.loading__spinner {
|
|
24
|
-
--track-width: 0.2rem;
|
|
25
|
-
font-size: var(--cx-font-size-3x-large);
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: 50%;
|
|
28
|
-
left: 50%;
|
|
29
|
-
transform: translate(-50%, -50%);
|
|
30
|
-
}
|
|
31
|
-
`;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, FC, useCallback, useRef, useState } from 'react';
|
|
2
|
-
|
|
3
|
-
import OtherPreview from '@/components/Result/AssetPreview/OtherPreview';
|
|
4
|
-
import { MediaType } from '@/types/search';
|
|
5
|
-
|
|
6
|
-
import { Container } from './Previewer.styled';
|
|
7
|
-
|
|
8
|
-
type Props = {
|
|
9
|
-
loadable: boolean;
|
|
10
|
-
asset: {
|
|
11
|
-
docType?: MediaType;
|
|
12
|
-
imageUrl?: string;
|
|
13
|
-
videoUrl?: string;
|
|
14
|
-
extension?: string;
|
|
15
|
-
};
|
|
16
|
-
onLoad?: ({ width, height }: { width: number, height: number }) => void;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const Previewer: FC<Props> = ({
|
|
20
|
-
loadable,
|
|
21
|
-
asset = {
|
|
22
|
-
docType: MediaType.Image,
|
|
23
|
-
imageUrl: '',
|
|
24
|
-
},
|
|
25
|
-
onLoad,
|
|
26
|
-
}) => {
|
|
27
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
28
|
-
const [isLoadFailed, setIsLoadFailed] = useState(false);
|
|
29
|
-
const containerRef = useRef<HTMLDivElement>(null);
|
|
30
|
-
const imageRef = useRef<HTMLImageElement>(null);
|
|
31
|
-
const [assetDirection, setAssetDirection] = useState<'vertical' | 'horizontal'>('horizontal');
|
|
32
|
-
|
|
33
|
-
const onLoadAsset = useCallback((rect: { width: number, height: number }) => {
|
|
34
|
-
if (onLoad) {
|
|
35
|
-
onLoad(rect);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
setAssetDirection(rect.width > rect.height ? 'horizontal' : 'vertical');
|
|
39
|
-
}, [onLoad]);
|
|
40
|
-
|
|
41
|
-
const renderPreview = useCallback(() => {
|
|
42
|
-
if (!loadable) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const otherPreview = (
|
|
47
|
-
<OtherPreview
|
|
48
|
-
type={asset.docType}
|
|
49
|
-
style={
|
|
50
|
-
{
|
|
51
|
-
'--text-font-size': 'var(--cx-font-size-x-large)',
|
|
52
|
-
'--icon-font-size': '56px',
|
|
53
|
-
'--gap': 'var(--cx-spacing-small)',
|
|
54
|
-
} as CSSProperties
|
|
55
|
-
}
|
|
56
|
-
>
|
|
57
|
-
{asset.extension?.toUpperCase() ?? asset.docType}
|
|
58
|
-
</OtherPreview>
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
if (isLoadFailed) {
|
|
62
|
-
return otherPreview;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (asset.docType === MediaType.Video && asset.videoUrl) {
|
|
66
|
-
return (
|
|
67
|
-
<video
|
|
68
|
-
src={asset.videoUrl}
|
|
69
|
-
controls
|
|
70
|
-
controlsList="nodownload noremoteplayback noplaybackrate"
|
|
71
|
-
disablePictureInPicture
|
|
72
|
-
disableRemotePlayback
|
|
73
|
-
style={{
|
|
74
|
-
maxWidth: '100%',
|
|
75
|
-
maxHeight: '100%',
|
|
76
|
-
objectFit: 'contain',
|
|
77
|
-
width: assetDirection === 'horizontal' ? '100%' : 'auto',
|
|
78
|
-
height: assetDirection === 'vertical' ? '100%' : 'auto',
|
|
79
|
-
}}
|
|
80
|
-
onLoadedMetadata={(e) => {
|
|
81
|
-
setIsLoading(false);
|
|
82
|
-
onLoadAsset({
|
|
83
|
-
width: e.currentTarget.videoWidth,
|
|
84
|
-
height: e.currentTarget.videoHeight,
|
|
85
|
-
});
|
|
86
|
-
}}
|
|
87
|
-
onError={() => {
|
|
88
|
-
setIsLoading(false);
|
|
89
|
-
setIsLoadFailed(true);
|
|
90
|
-
}}
|
|
91
|
-
>
|
|
92
|
-
</video>
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (asset.docType === MediaType.Image || asset.imageUrl) {
|
|
97
|
-
return (
|
|
98
|
-
<img
|
|
99
|
-
ref={imageRef}
|
|
100
|
-
src={asset.imageUrl}
|
|
101
|
-
alt={asset.docType}
|
|
102
|
-
style={{
|
|
103
|
-
maxWidth: '100%',
|
|
104
|
-
maxHeight: '100%',
|
|
105
|
-
objectFit: 'contain',
|
|
106
|
-
width: assetDirection === 'horizontal' ? '100%' : 'auto',
|
|
107
|
-
height: assetDirection === 'vertical' ? '100%' : 'auto',
|
|
108
|
-
}}
|
|
109
|
-
onLoad={() => {
|
|
110
|
-
if (!imageRef.current) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
setIsLoading(false);
|
|
114
|
-
onLoadAsset({
|
|
115
|
-
width: imageRef.current.naturalWidth,
|
|
116
|
-
height: imageRef.current.naturalHeight,
|
|
117
|
-
});
|
|
118
|
-
}}
|
|
119
|
-
onError={() => {
|
|
120
|
-
setIsLoading(false);
|
|
121
|
-
setIsLoadFailed(true);
|
|
122
|
-
}}
|
|
123
|
-
/>
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return otherPreview;
|
|
128
|
-
}, [asset.docType, asset.extension, asset.imageUrl, asset.videoUrl, assetDirection, isLoadFailed, loadable, onLoadAsset]);
|
|
129
|
-
|
|
130
|
-
return (
|
|
131
|
-
<Container ref={containerRef}>
|
|
132
|
-
{renderPreview()}
|
|
133
|
-
{isLoading && (
|
|
134
|
-
<div className="loading">
|
|
135
|
-
<cx-skeleton className="loading__skeleton"></cx-skeleton>
|
|
136
|
-
<cx-spinner className="loading__spinner"></cx-spinner>
|
|
137
|
-
</div>
|
|
138
|
-
)}
|
|
139
|
-
</Container>
|
|
140
|
-
);
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
export default Previewer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Previewer';
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { CxMenuProps } from '@/react-web-component';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
export const Container = styled('cx-menu')<CxMenuProps>`
|
|
5
|
-
border-radius: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
|
|
8
|
-
cx-menu-item {
|
|
9
|
-
&::part(base) {
|
|
10
|
-
height: 60px;
|
|
11
|
-
padding: var(--cx-spacing-x-small) var(--cx-spacing-medium);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&::part(label) {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&::part(checked-icon) {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&::part(submenu-icon) {
|
|
24
|
-
display: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&::part(suffix) {
|
|
28
|
-
color: var(--cx-color-neutral-600);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.icon--primary {
|
|
32
|
-
color: var(--cx-color-primary);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.proxy--switch::part(label) {
|
|
36
|
-
justify-content: space-between;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.proxy__name {
|
|
40
|
-
color: var(--cx-color-neutral-900);
|
|
41
|
-
|
|
42
|
-
&::part(base) {
|
|
43
|
-
font-weight: var(--cx-font-weight-medium);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.proxy__name.selected {
|
|
48
|
-
--color: var(--cx-color-primary);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.proxy__thumbnail {
|
|
52
|
-
background-color: var(--cx-color-neutral-100);
|
|
53
|
-
width: 54px;
|
|
54
|
-
height: 40px;
|
|
55
|
-
object-fit: cover;
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
|
|
60
|
-
img {
|
|
61
|
-
width: auto;
|
|
62
|
-
max-width: 100%;
|
|
63
|
-
max-height: 100%;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.proxy__details {
|
|
68
|
-
--color: var(--cx-color-neutral-500);
|
|
69
|
-
&::part(base) {
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
gap: var(--cx-spacing-2x-small);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.proxy__extension-dot {
|
|
77
|
-
display: inline-block;
|
|
78
|
-
width: 3px;
|
|
79
|
-
height: 3px;
|
|
80
|
-
border-radius: 50%;
|
|
81
|
-
background-color: var(--cx-color-neutral-500);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&:not(:last-child) {
|
|
85
|
-
border-bottom: var(--cx-panel-border-width) solid var(--cx-panel-border-color);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
`;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import { Container } from './ProxyMenu.styled';
|
|
3
|
-
import { MediaType } from '@/types/search';
|
|
4
|
-
|
|
5
|
-
type MenuItemProps = {
|
|
6
|
-
cdnName?: string | null;
|
|
7
|
-
docType?: string;
|
|
8
|
-
extension?: string;
|
|
9
|
-
height?: string;
|
|
10
|
-
image?: string;
|
|
11
|
-
name: string;
|
|
12
|
-
value: string;
|
|
13
|
-
width?: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
type Props = {
|
|
17
|
-
items?: MenuItemProps[];
|
|
18
|
-
selectedItem?: string;
|
|
19
|
-
children?: ReactNode;
|
|
20
|
-
style?: CSSProperties;
|
|
21
|
-
selectedDisabled?: boolean;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const ProxyMenu = ({ items, selectedItem, children, style, selectedDisabled }: Props) => {
|
|
25
|
-
return (
|
|
26
|
-
<Container style={style}>
|
|
27
|
-
{items?.map((item) => {
|
|
28
|
-
const selected = selectedItem === item.value && !selectedDisabled;
|
|
29
|
-
const showDimensions = Boolean(Number(item.width)) && Boolean(Number(item.height)) && item.docType !== MediaType.Audio && item.docType !== MediaType.Multimedia;
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<cx-menu-item key={item.value} value={item.value} className={selected ? 'disable-hover' : ''}>
|
|
33
|
-
{item.image && (
|
|
34
|
-
<div slot="prefix" className="proxy__thumbnail">
|
|
35
|
-
<img src={item.image} alt={item.name} />
|
|
36
|
-
</div>
|
|
37
|
-
)}
|
|
38
|
-
<div>
|
|
39
|
-
<cx-typography
|
|
40
|
-
variant="body3"
|
|
41
|
-
className={`proxy__name ${selected ? 'selected' : ''}`}
|
|
42
|
-
>
|
|
43
|
-
{item.name}
|
|
44
|
-
</cx-typography>
|
|
45
|
-
<cx-typography variant="body3" className="proxy__details">
|
|
46
|
-
{showDimensions && `${item.width} x ${item.height}`}
|
|
47
|
-
{showDimensions && item.extension && (
|
|
48
|
-
<div className="proxy__extension-dot"></div>
|
|
49
|
-
)}
|
|
50
|
-
{item.extension?.replace(/^\./, '').toUpperCase()}
|
|
51
|
-
{item.cdnName && (
|
|
52
|
-
<>
|
|
53
|
-
<div className="proxy__extension-dot"></div>
|
|
54
|
-
<span className="proxy__cdn-name">{item.cdnName}</span>
|
|
55
|
-
</>
|
|
56
|
-
)}
|
|
57
|
-
</cx-typography>
|
|
58
|
-
</div>
|
|
59
|
-
<cx-icon
|
|
60
|
-
slot="suffix"
|
|
61
|
-
name={selected ? 'check' : ''}
|
|
62
|
-
style={{
|
|
63
|
-
color: 'var(--cx-color-primary)',
|
|
64
|
-
}}
|
|
65
|
-
></cx-icon>
|
|
66
|
-
</cx-menu-item>
|
|
67
|
-
);
|
|
68
|
-
})}
|
|
69
|
-
{children}
|
|
70
|
-
</Container>
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export default ProxyMenu;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ProxyMenu';
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
values: { key: string; value: string }[];
|
|
5
|
-
onChange: (values: { key: string; value: string }[]) => void;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const TrackingParameters: FC<Props> = ({
|
|
9
|
-
values,
|
|
10
|
-
onChange,
|
|
11
|
-
}) => {
|
|
12
|
-
const addParameter = () => {
|
|
13
|
-
onChange([...values, { key: '', value: '' }]);
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const removeParameter = (index: number) => {
|
|
17
|
-
onChange(values.filter((_, i) => i !== index));
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const updateParameter = (index: number, key: string, value: string) => {
|
|
21
|
-
const newParameters = [...values];
|
|
22
|
-
newParameters[index] = { key, value };
|
|
23
|
-
onChange(newParameters);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
return (
|
|
27
|
-
<cx-space direction="vertical" spacing="medium" className="dialog__tracking" align-items='flex-start'>
|
|
28
|
-
{values.map((param, index) => (
|
|
29
|
-
<cx-space key={index} spacing="small" wrap="nowrap" align-items="center">
|
|
30
|
-
<cx-input-group>
|
|
31
|
-
<cx-input
|
|
32
|
-
label="Name"
|
|
33
|
-
size="small"
|
|
34
|
-
value={param.key}
|
|
35
|
-
onInput={(e) => updateParameter(index, (e.target as HTMLInputElement).value, param.value)}
|
|
36
|
-
></cx-input>
|
|
37
|
-
<cx-input
|
|
38
|
-
label="Value"
|
|
39
|
-
size="small"
|
|
40
|
-
value={param.value}
|
|
41
|
-
onInput={(e) => updateParameter(index, param.key, (e.target as HTMLInputElement).value)}
|
|
42
|
-
></cx-input>
|
|
43
|
-
</cx-input-group>
|
|
44
|
-
<cx-icon-button
|
|
45
|
-
name="close"
|
|
46
|
-
onClick={() => removeParameter(index)}
|
|
47
|
-
></cx-icon-button>
|
|
48
|
-
</cx-space>
|
|
49
|
-
))}
|
|
50
|
-
<cx-button variant="neutral" onClick={addParameter}>
|
|
51
|
-
<cx-icon slot="prefix" name="add"></cx-icon>
|
|
52
|
-
Add parameter
|
|
53
|
-
</cx-button>
|
|
54
|
-
</cx-space>
|
|
55
|
-
);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export default TrackingParameters;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TrackingParameters';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './FormatDialog';
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
import { CxSpaceProps } from '@/react-web-component';
|
|
4
|
-
|
|
5
|
-
export const Container = styled('cx-space')<CxSpaceProps & { bordered?: boolean }>`
|
|
6
|
-
border-bottom: ${({ bordered }) => (bordered ? '1px solid var(--cx-color-neutral-300)' : 'none')};
|
|
7
|
-
padding: var(--cx-spacing-medium);
|
|
8
|
-
|
|
9
|
-
cx-avatar {
|
|
10
|
-
--size: var(--cx-font-size-3x-large);
|
|
11
|
-
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
cx-skeleton {
|
|
16
|
-
--color: var(--cx-color-primary);
|
|
17
|
-
|
|
18
|
-
width: var(--cx-font-size-3x-large);
|
|
19
|
-
height: var(--cx-font-size-3x-large);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
cx-menu-item::part(checked-icon) {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.header {
|
|
27
|
-
flex-wrap: nowrap;
|
|
28
|
-
width: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.header__title {
|
|
32
|
-
display: flex;
|
|
33
|
-
align-items: center;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.header__menu {
|
|
37
|
-
display: flex;
|
|
38
|
-
gap: var(--cx-spacing-2x-small);
|
|
39
|
-
align-items: center;
|
|
40
|
-
width: fit-content;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.header__user-info:hover::part(base) {
|
|
44
|
-
background-color: unset;
|
|
45
|
-
cursor: default;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.header__user-info cx-avatar {
|
|
49
|
-
cursor: default;
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, FC, ReactNode, useContext, useEffect, useMemo } from 'react';
|
|
2
|
-
|
|
3
|
-
import { AppContext } from '@/AppContext';
|
|
4
|
-
import { GlobalConfigContext } from '@/GlobalConfigContext';
|
|
5
|
-
import { useGetUserInfoQuery } from '@/store/user/user.api';
|
|
6
|
-
import { Folder } from '@/types/search';
|
|
7
|
-
|
|
8
|
-
import { Container } from './Header.styled';
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
authenticated: boolean;
|
|
12
|
-
bordered?: boolean;
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
currentFolder: Folder;
|
|
15
|
-
onMenuClick: () => void;
|
|
16
|
-
onLogout: () => void;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const Header: FC<Props> = ({
|
|
20
|
-
authenticated,
|
|
21
|
-
bordered,
|
|
22
|
-
children,
|
|
23
|
-
currentFolder,
|
|
24
|
-
onMenuClick,
|
|
25
|
-
onLogout,
|
|
26
|
-
}) => {
|
|
27
|
-
const { isContentBrowserPopedup, pluginInfo } = useContext(GlobalConfigContext);
|
|
28
|
-
const { onClose } = useContext(AppContext);
|
|
29
|
-
const { data, isFetching, isLoading, refetch: refetchUserInfo } = useGetUserInfoQuery({});
|
|
30
|
-
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
if (authenticated) {
|
|
33
|
-
refetchUserInfo();
|
|
34
|
-
}
|
|
35
|
-
}, [authenticated, refetchUserInfo]);
|
|
36
|
-
|
|
37
|
-
const title = useMemo(() => {
|
|
38
|
-
if (!currentFolder.fullPath) {
|
|
39
|
-
return (
|
|
40
|
-
<cx-line-clamp lines={1}>
|
|
41
|
-
<cx-typography variant="h4">{pluginInfo.publicApplicationName}</cx-typography>
|
|
42
|
-
</cx-line-clamp>
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return (
|
|
47
|
-
<cx-space direction="horizontal" align-items="center" spacing="2x-small">
|
|
48
|
-
<cx-typography variant="h4">{currentFolder.title}</cx-typography>
|
|
49
|
-
</cx-space>
|
|
50
|
-
);
|
|
51
|
-
}, [currentFolder.fullPath, currentFolder.title, pluginInfo.publicApplicationName]);
|
|
52
|
-
|
|
53
|
-
const Dropdown = useMemo(() => {
|
|
54
|
-
return isLoading || isFetching ? (
|
|
55
|
-
<cx-skeleton></cx-skeleton>
|
|
56
|
-
) : (
|
|
57
|
-
<cx-dropdown distance={4}>
|
|
58
|
-
<cx-avatar
|
|
59
|
-
slot="trigger"
|
|
60
|
-
label="User avatar"
|
|
61
|
-
image={data?.avatar}
|
|
62
|
-
loading="lazy"
|
|
63
|
-
></cx-avatar>
|
|
64
|
-
<cx-menu>
|
|
65
|
-
<cx-menu-item className='header__user-info' readonly>
|
|
66
|
-
{data?.fullName}
|
|
67
|
-
<cx-avatar
|
|
68
|
-
slot="prefix"
|
|
69
|
-
label="User avatar"
|
|
70
|
-
image={data?.avatar}
|
|
71
|
-
loading="lazy"
|
|
72
|
-
style={
|
|
73
|
-
{
|
|
74
|
-
'--size': 'var(--cx-font-size-x-large)',
|
|
75
|
-
} as CSSProperties
|
|
76
|
-
}
|
|
77
|
-
></cx-avatar>
|
|
78
|
-
</cx-menu-item>
|
|
79
|
-
<cx-divider></cx-divider>
|
|
80
|
-
<cx-menu-item value="logout" onClick={onLogout}>
|
|
81
|
-
Logout
|
|
82
|
-
<cx-icon slot="prefix" name="logout"></cx-icon>
|
|
83
|
-
</cx-menu-item>
|
|
84
|
-
</cx-menu>
|
|
85
|
-
</cx-dropdown>
|
|
86
|
-
);
|
|
87
|
-
}, [isLoading, isFetching, data?.avatar, data?.fullName, onLogout]);
|
|
88
|
-
|
|
89
|
-
return (
|
|
90
|
-
<Container direction="vertical" spacing="small" bordered={bordered}>
|
|
91
|
-
<cx-space className="header" justify-content="space-between" align-items="center">
|
|
92
|
-
<div className="header__title">
|
|
93
|
-
<cx-space className="header" justify-content="space-between" align-items="center" spacing="x-small">
|
|
94
|
-
<cx-icon-button
|
|
95
|
-
name="menu"
|
|
96
|
-
label="Menu"
|
|
97
|
-
onClick={onMenuClick}
|
|
98
|
-
></cx-icon-button>
|
|
99
|
-
{title}
|
|
100
|
-
</cx-space>
|
|
101
|
-
</div>
|
|
102
|
-
<div className="header__menu">
|
|
103
|
-
{Dropdown}
|
|
104
|
-
{isContentBrowserPopedup && (
|
|
105
|
-
<cx-icon-button
|
|
106
|
-
name="close"
|
|
107
|
-
label="Close"
|
|
108
|
-
onClick={onClose}
|
|
109
|
-
></cx-icon-button>
|
|
110
|
-
)}
|
|
111
|
-
</div>
|
|
112
|
-
</cx-space>
|
|
113
|
-
{children}
|
|
114
|
-
</Container>
|
|
115
|
-
);
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export default Header;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, FC } from 'react';
|
|
2
|
-
|
|
3
|
-
import { MESSAGE_NEW_LINE } from '@/consts/data';
|
|
4
|
-
|
|
5
|
-
type Props = {
|
|
6
|
-
message?: string;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const Loader: FC<Props> = ({ message, children }) => {
|
|
11
|
-
return (
|
|
12
|
-
<cx-space direction="vertical" align-items="center">
|
|
13
|
-
<cx-spinner
|
|
14
|
-
style={
|
|
15
|
-
{
|
|
16
|
-
'--track-width': '0.2rem',
|
|
17
|
-
fontSize: 'var(--cx-font-size-3x-large)',
|
|
18
|
-
} as CSSProperties
|
|
19
|
-
}
|
|
20
|
-
></cx-spinner>
|
|
21
|
-
{message?.split(MESSAGE_NEW_LINE).map((line, index) =>
|
|
22
|
-
line.indexOf('http') !== -1 ? (
|
|
23
|
-
<cx-button key={index} href={line} target="_blank">
|
|
24
|
-
{line}
|
|
25
|
-
</cx-button>
|
|
26
|
-
) : (
|
|
27
|
-
<cx-typography key={index} variant="body2">
|
|
28
|
-
{line}
|
|
29
|
-
</cx-typography>
|
|
30
|
-
),
|
|
31
|
-
)}
|
|
32
|
-
{children}
|
|
33
|
-
</cx-space>
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default Loader;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Loader';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
icon: string;
|
|
5
|
-
message: string;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const NoResult: FC<Props> = ({
|
|
9
|
-
icon,
|
|
10
|
-
message,
|
|
11
|
-
}: Props) => {
|
|
12
|
-
return (
|
|
13
|
-
<div
|
|
14
|
-
style={{
|
|
15
|
-
alignItems: 'center',
|
|
16
|
-
color: 'var(--cx-color-neutral)',
|
|
17
|
-
display: 'flex',
|
|
18
|
-
flexDirection: 'column',
|
|
19
|
-
gap: 'var(--cx-spacing-medium)',
|
|
20
|
-
height: '100%',
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
textAlign: 'center',
|
|
23
|
-
width: '100%',
|
|
24
|
-
}}
|
|
25
|
-
>
|
|
26
|
-
<cx-icon
|
|
27
|
-
name={icon}
|
|
28
|
-
style={{
|
|
29
|
-
fontSize: '96px',
|
|
30
|
-
}}
|
|
31
|
-
></cx-icon>
|
|
32
|
-
{message}
|
|
33
|
-
</div>
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default NoResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './NoResult';
|