更新前端独立版本

This commit is contained in:
pengluan 2022-08-02 16:06:51 +08:00
parent 1460428b6c
commit 3372a6586e
11 changed files with 8 additions and 815 deletions

View File

@ -10,7 +10,6 @@
"@emotion/styled": "^11.8.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
"@svgr/webpack": "^5.5.0",
"@tencent/aegis-web-sdk": "^1.38.0",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",

View File

@ -12,7 +12,6 @@ import {
BrowserRouter, HashRouter
} from "react-router-dom";
import { handleTips } from './api';
import Aegis from '@tencent/aegis-web-sdk';
import { changeTheme } from './theme';
import LoadingStar from './components/LoadingStar/LoadingStar';
@ -24,17 +23,6 @@ const userName = cookies.get('myapp_username')
if (!!userName) {
isLogin = true
if (process.env.NODE_ENV !== 'development') {
// 如果使用 cdn 的话Aegis 会自动绑定在 window 对象上
const aegis = new Aegis({
id: 'NUehmRjuAcfkWgtOTM', // 项目key
uin: userName, // 用户唯一 ID可选
reportApiSpeed: true, // 接口测速
reportAssetSpeed: true, // 静态资源测速
spa: true, // spa 页面需要开启页面切换的时候上报pv
})
}
} else {
handleTips.gotoLogin()
}

View File

@ -1,56 +0,0 @@
import React from 'react';
import QueueAnim from 'rc-queue-anim';
import TweenOne from 'rc-tween-one';
import { getChildrenToRender } from './utils';
class Banner extends React.PureComponent {
render() {
const { ...tagProps } = this.props;
const { dataSource } = tagProps;
delete tagProps.dataSource;
delete tagProps.isMobile;
const animType = {
queue: 'bottom',
one: {
y: '+=30',
opacity: 0,
type: 'from',
ease: 'easeOutQuad',
},
};
return (
<div {...tagProps} {...dataSource.wrapper}>
<div {...dataSource.page}>
<QueueAnim
key="text"
type={animType.queue}
leaveReverse
ease={['easeOutQuad', 'easeInQuad']}
{...dataSource.childWrapper}
componentProps={{
md: dataSource.childWrapper.md,
xs: dataSource.childWrapper.xs,
}}
>
{/* {dataSource.childWrapper.children.map(getChildrenToRender)} */}
{/* <div className="banner5-title-wrapper">阿斯顿发斯蒂芬</div> */}
<>
<div style={{ marginBottom: -16 }}>
<img style={{ height: 100 }} src={require('../../images/logoStar.svg').default} />
</div>
<h1 name="title" className="banner5-title mb16" style={{ letterSpacing: 6 }}>cube数据平台 </h1>
{/* <div name="explain" className="banner5-explain"><img style={{ height: 36 }} src={require('../../images/logoStar.svg').default} /></div> */}
<div name="content" className="banner5-content">数据资产服务旗下有星画SupersetSwallow等多款数据产品</div>
<div name="button" className="banner5-button-wrapper">
<a href="https://iwiki.woa.com/space/TMEDI" className="ant-btn ant-btn-primary banner5-button">
<span>了解更多</span>
</a>
</div>
</>
</QueueAnim>
</div>
</div>
);
}
}
export default Banner;

View File

@ -1,738 +0,0 @@
import React from 'react';
export const Nav20DataSource = {
isScrollLink: true,
wrapper: { className: 'header home-page-wrapper' },
page: { className: 'home-page' },
logo: {
className: 'header-logo',
children: 'https://os.alipayobjects.com/rmsportal/mlcYmsRilwraoAe.svg',
},
LinkMenu: {
className: 'header-menu',
},
mobileMenu: { className: 'header-mobile-menu' },
};
export const Banner50DataSource = {
wrapper: { className: 'home-page-wrapper banner5' },
page: { className: 'home-page banner5-page' },
childWrapper: {
className: 'banner5-title-wrapper',
children: [
{ name: 'title', children: 'cube数据平台', className: 'banner5-title' },
{
name: 'explain',
className: 'banner5-explain',
children: 'Data leap',
},
{
name: 'content',
className: 'banner5-content',
children: '数据资产服务旗下有星画SupersetSwallow等多款数据产品',
},
{
name: 'button',
className: 'banner5-button-wrapper',
children: {
href: 'https://iwiki.woa.com/space/TMEDI',
className: 'banner5-button',
type: 'primary',
children: '了解更多',
},
},
],
},
image: {
className: 'banner5-image',
children:
'https://gw.alipayobjects.com/mdn/rms_ae7ad9/afts/img/A*-wAhRYnWQscAAAAAAAAAAABkARQnAQ',
},
};
export const Feature60DataSource = {
wrapper: { className: 'home-page-wrapper feature6-wrapper' },
OverPack: { className: 'home-page feature6', playScale: 0.3 },
Carousel: {
className: 'feature6-content',
dots: false,
wrapper: { className: 'feature6-content-wrapper' },
titleWrapper: {
className: 'feature6-title-wrapper',
barWrapper: {
className: 'feature6-title-bar-wrapper',
children: { className: 'feature6-title-bar' },
},
title: { className: 'feature6-title' },
},
children: [
{
title: { className: 'feature6-title-text', children: '服务指标' },
className: 'feature6-item',
name: 'block0',
children: [
{
md: 8,
xs: 24,
className: 'feature6-number-wrapper',
name: 'child0',
number: {
className: 'feature6-number',
unit: { className: 'feature6-unit', children: '千' },
toText: true,
children: '5',
},
children: { className: 'feature6-text', children: '图表数量' },
},
{
md: 8,
xs: 24,
className: 'feature6-number-wrapper',
name: 'child1',
number: {
className: 'feature6-number',
unit: { className: 'feature6-unit', children: '万' },
toText: true,
children: '5.53',
},
children: { className: 'feature6-text', children: '看板数量' },
},
{
md: 8,
xs: 24,
className: 'feature6-number-wrapper',
name: 'child2',
number: {
className: 'feature6-number',
unit: { className: 'feature6-unit', children: '万' },
toText: true,
children: '458',
},
children: { className: 'feature6-text', children: '每月sql查询数' },
},
],
},
],
},
};
export const Feature70DataSource = {
wrapper: { className: 'home-page-wrapper feature7-wrapper' },
page: { className: 'home-page feature7' },
OverPack: { playScale: 0.3 },
titleWrapper: {
className: 'feature7-title-wrapper',
children: [
{
name: 'title',
className: 'feature7-title-h1',
children: '图像在线服务',
},
{
name: 'content',
className: 'feature7-title-content',
children: '你可以直接快速接入图像能力',
},
],
},
blockWrapper: {
className: 'feature7-block-wrapper',
gutter: 24,
children: [
{
md: 6,
xs: 24,
name: 'block0',
className: 'feature7-block',
children: {
className: 'feature7-block-group',
children: [
{
name: 'image',
className: 'feature7-block-image',
children:
'https://gw.alipayobjects.com/zos/basement_prod/e339fc34-b022-4cde-9607-675ca9e05231.svg',
},
{
name: 'title',
className: 'feature7-block-title',
children: '身份证',
},
{
name: 'content',
className: 'feature7-block-content',
children: '识别身份证正反面姓名、身份证号、发证机关等相关信息',
},
],
},
},
{
md: 6,
xs: 24,
name: 'block1',
className: 'feature7-block',
children: {
className: 'feature7-block-group',
children: [
{
name: 'image',
className: 'feature7-block-image',
children:
'https://gw.alipayobjects.com/zos/basement_prod/e339fc34-b022-4cde-9607-675ca9e05231.svg',
},
{
name: 'title',
className: 'feature7-block-title',
children: '身份证',
},
{
name: 'content',
className: 'feature7-block-content',
children: '识别身份证正反面姓名、身份证号、发证机关等相关信息',
},
],
},
},
{
md: 6,
xs: 24,
name: 'block2',
className: 'feature7-block',
children: {
className: 'feature7-block-group',
children: [
{
name: 'image',
className: 'feature7-block-image',
children:
'https://gw.alipayobjects.com/zos/basement_prod/e339fc34-b022-4cde-9607-675ca9e05231.svg',
},
{
name: 'title',
className: 'feature7-block-title',
children: '身份证',
},
{
name: 'content',
className: 'feature7-block-content',
children: '识别身份证正反面姓名、身份证号、发证机关等相关信息',
},
],
},
},
{
md: 6,
xs: 24,
name: 'block3',
className: 'feature7-block',
children: {
className: 'feature7-block-group',
children: [
{
name: 'image',
className: 'feature7-block-image',
children:
'https://gw.alipayobjects.com/zos/basement_prod/e339fc34-b022-4cde-9607-675ca9e05231.svg',
},
{
name: 'title',
className: 'feature7-block-title',
children: '身份证',
},
{
name: 'content',
className: 'feature7-block-content',
children: '识别身份证正反面姓名、身份证号、发证机关等相关信息',
},
],
},
},
{
md: 6,
xs: 24,
name: 'block4',
className: 'feature7-block',
children: {
className: 'feature7-block-group',
children: [
{
name: 'image',
className: 'feature7-block-image',
children:
'https://gw.alipayobjects.com/zos/basement_prod/e339fc34-b022-4cde-9607-675ca9e05231.svg',
},
{
name: 'title',
className: 'feature7-block-title',
children: '身份证',
},
{
name: 'content',
className: 'feature7-block-content',
children: '识别身份证正反面姓名、身份证号、发证机关等相关信息',
},
],
},
},
{
md: 6,
xs: 24,
name: 'block5',
className: 'feature7-block',
children: {
className: 'feature7-block-group',
children: [
{
name: 'image',
className: 'feature7-block-image',
children:
'https://gw.alipayobjects.com/zos/basement_prod/e339fc34-b022-4cde-9607-675ca9e05231.svg',
},
{
name: 'title',
className: 'feature7-block-title',
children: '身份证',
},
{
name: 'content',
className: 'feature7-block-content',
children: '识别身份证正反面姓名、身份证号、发证机关等相关信息',
},
],
},
},
{
md: 6,
xs: 24,
name: 'block6',
className: 'feature7-block',
children: {
className: 'feature7-block-group',
children: [
{
name: 'image',
className: 'feature7-block-image',
children:
'https://gw.alipayobjects.com/zos/basement_prod/e339fc34-b022-4cde-9607-675ca9e05231.svg',
},
{
name: 'title',
className: 'feature7-block-title',
children: '身份证',
},
{
name: 'content',
className: 'feature7-block-content',
children: '识别身份证正反面姓名、身份证号、发证机关等相关信息',
},
],
},
},
{
md: 6,
xs: 24,
name: 'block7',
className: 'feature7-block',
children: {
className: 'feature7-block-group',
children: [
{
name: 'image',
className: 'feature7-block-image',
children:
'https://gw.alipayobjects.com/zos/basement_prod/e339fc34-b022-4cde-9607-675ca9e05231.svg',
},
{
name: 'title',
className: 'feature7-block-title',
children: '身份证',
},
{
name: 'content',
className: 'feature7-block-content',
children: '识别身份证正反面姓名、身份证号、发证机关等相关信息',
},
],
},
},
],
},
};
export const Feature00DataSource = {
wrapper: { className: 'home-page-wrapper content0-wrapper' },
page: { className: 'home-page content0' },
OverPack: { playScale: 0.3, className: '' },
titleWrapper: {
className: 'title-wrapper',
children: [{ name: 'title', children: '更多服务' }],
},
childWrapper: {
className: 'content0-block-wrapper',
children: [
{
name: 'block0',
className: 'jzjn8afnsxb-editor_css content0-block',
md: 6,
xs: 24,
children: {
className: 'content0-block-item jzjgrrupf2c-editor_css',
children: [
{
name: 'image',
className: 'content0-block-icon jzjgrlz134-editor_css',
children:
'https://gw.alipayobjects.com/mdn/rms_ae7ad9/afts/img/A*CTp8T7RT-VkAAAAAAAAAAABkARQnAQ',
},
{
name: 'title',
className: 'content0-block-title jzj8xt5kgv7-editor_css',
children: '机器学习平台',
},
{
name: 'content',
children: '支付、结算、核算接入产品效率翻四倍',
className: 'jzj8z9sya9-editor_css',
},
],
},
},
{
name: 'block1',
className: 'content0-block',
md: 6,
xs: 24,
children: {
className: 'content0-block-item',
children: [
{
name: 'image',
className: 'content0-block-icon jzjncn210ql-editor_css',
children:
'https://gw.alipayobjects.com/mdn/rms_ae7ad9/afts/img/A*CTp8T7RT-VkAAAAAAAAAAABkARQnAQ',
},
{
name: 'title',
className: 'content0-block-title jzjne54fwqm-editor_css',
children: 'IDMapping',
},
{
name: 'content',
children: '在所有需求配置环节事前风险控制和质量控制能力',
},
],
},
},
{
name: 'block2',
className: 'content0-block',
md: 6,
xs: 24,
children: {
className: 'content0-block-item',
children: [
{
name: 'image',
className: 'content0-block-icon jzjndq0dueg-editor_css',
children:
'https://gw.alipayobjects.com/mdn/rms_ae7ad9/afts/img/A*CTp8T7RT-VkAAAAAAAAAAABkARQnAQ',
},
{
name: 'title',
className: 'content0-block-title jzjne24af8c-editor_css',
children: 'Swallow',
},
{
name: 'content',
children: '沉淀产品接入效率和运营小二工作效率数据',
},
],
},
},
{
name: 'block~jzjn87bmyc7',
className: 'content0-block',
md: 6,
xs: 24,
children: {
className: 'content0-block-item',
children: [
{
name: 'image',
className: 'content0-block-icon jzjndsyw8sf-editor_css',
children:
'https://gw.alipayobjects.com/mdn/rms_ae7ad9/afts/img/A*CTp8T7RT-VkAAAAAAAAAAABkARQnAQ',
},
{
name: 'title',
className: 'content0-block-title jzjndw5oerk-editor_css',
children: '数据成本平台',
},
{
name: 'content',
children: '沉淀产品接入效率和运营小二工作效率数据',
},
],
},
},
],
},
};
export const Feature80DataSource = {
wrapper: { className: 'home-page-wrapper feature8-wrapper' },
page: { className: 'home-page feature8' },
OverPack: { playScale: 0.3 },
titleWrapper: {
className: 'feature8-title-wrapper',
children: [
{ name: 'title', className: 'feature8-title-h1', children: '需求流程' },
{
name: 'content',
className: 'feature8-title-content',
children: '流程简单清晰,快速响应需求',
},
],
},
childWrapper: {
className: 'feature8-button-wrapper',
children: [
{
name: 'button',
className: 'feature8-button',
children: { href: '#', children: '立即体验' },
},
],
},
Carousel: {
dots: false,
className: 'feature8-carousel',
wrapper: { className: 'feature8-block-wrapper' },
children: {
className: 'feature8-block',
titleWrapper: {
className: 'feature8-carousel-title-wrapper',
title: { className: 'feature8-carousel-title' },
},
children: [
{
name: 'block0',
className: 'feature8-block-row',
gutter: 120,
title: {
className: 'feature8-carousel-title-block',
children: '平台自主训练流程',
},
children: [
{
className: 'feature8-block-col',
md: 6,
xs: 24,
name: 'child0',
arrow: {
className: 'feature8-block-arrow',
children:
'',
},
children: {
className: 'feature8-block-child',
children: [
{
name: 'image',
className: 'feature8-block-image',
children:
'../../images/cost.svg'
},
{
name: 'title',
className: 'feature8-block-title',
children: '需求沟通',
},
{
name: 'content',
className: 'feature8-block-content',
children: '沟通业务需求,可与各个板块的负责人联系',
},
],
},
},
{
className: 'feature8-block-col',
md: 6,
xs: 24,
name: 'child1',
arrow: {
className: 'feature8-block-arrow',
children:
'https://gw.alipayobjects.com/zos/basement_prod/167bee48-fbc0-436a-ba9e-c116b4044293.svg',
},
children: {
className: 'feature8-block-child',
children: [
{
name: 'image',
className: 'feature8-block-image',
children:
'../../images/cost.svg'
},
{
name: 'title',
className: 'feature8-block-title',
children: '需求排期',
},
{
name: 'content',
className: 'feature8-block-content',
children:
'收集上一个阶段收集的需求信息,对需求进行优先级排序,有分高,中,低,以及建议',
},
],
},
},
{
className: 'feature8-block-col',
md: 6,
xs: 24,
name: 'child2',
arrow: {
className: 'feature8-block-arrow',
children:
'https://gw.alipayobjects.com/zos/basement_prod/167bee48-fbc0-436a-ba9e-c116b4044293.svg',
},
children: {
className: 'feature8-block-child',
children: [
{
name: 'image',
className: 'feature8-block-image',
children:
'../../images/cost.svg'
},
{
name: 'title',
className: 'feature8-block-title',
children: '开发功能',
},
{
name: 'content',
className: 'feature8-block-content',
children:
'各个板块的同学对需求池里的任务加紧开发',
},
],
},
},
{
className: 'feature8-block-col',
md: 6,
xs: 24,
name: 'child3',
arrow: {
className: 'feature8-block-arrow',
children:
'https://gw.alipayobjects.com/zos/basement_prod/167bee48-fbc0-436a-ba9e-c116b4044293.svg',
},
children: {
className: 'feature8-block-child',
children: [
{
name: 'image',
className: 'feature8-block-image',
children:
'../../images/cost.svg'
},
{
name: 'title',
className: 'feature8-block-title',
children: '交付上线',
},
{
name: 'content',
className: 'feature8-block-content',
children:
'经过充分测试之后,功能会在合适的时间段发布上线',
},
],
},
},
],
},
],
},
},
};
export const Footer10DataSource = {
wrapper: { className: 'home-page-wrapper footer1-wrapper' },
OverPack: { className: 'footer1', playScale: 0.2 },
block: {
className: 'home-page',
gutter: 0,
children: [
// {
// name: 'block0',
// xs: 24,
// md: 6,
// className: 'block',
// title: {
// className: 'logo',
// children:
// '',
// },
// childWrapper: {
// className: 'slogan',
// children: [
// {
// name: 'content0',
// children: 'Data Intelligence Center',
// },
// ],
// },
// },
{
name: 'block1',
xs: 24,
md: 6,
className: 'block',
title: { children: '产品' },
childWrapper: {
children: [
{ name: 'link0', href: '#', children: '更新记录' },
{ name: 'link1', href: '#', children: '需求记录' },
{ name: 'link2', href: '#', children: '新手指引' },
],
},
},
{
name: 'block2',
xs: 24,
md: 6,
className: 'block',
title: { children: '关于' },
childWrapper: {
children: [
{ href: '#', name: 'link0', children: 'FAQ' },
{ href: '#', name: 'link1', children: '联系我们' },
],
},
},
// {
// name: 'block3',
// xs: 24,
// md: 6,
// className: 'block',
// title: { children: '资源' },
// childWrapper: {
// children: [
// { href: '#', name: 'link0', children: 'Ant Design' },
// { href: '#', name: 'link1', children: 'Ant Motion' },
// ],
// },
// },
],
},
copyrightWrapper: { className: 'copyright-wrapper' },
copyrightPage: { className: 'home-page' },
copyright: {
className: 'copyright',
children: (
<span>
©2022 by <a href="">Data Leap</a> All Rights
Reserved
</span>
),
},
};

View File

@ -1,7 +1,7 @@
{
"files": {
"main.css": "/frontend/static/css/main.6bd4c3d7.css",
"main.js": "/frontend/static/js/main.c9806b32.js",
"main.js": "/frontend/static/js/main.edff74dd.js",
"static/js/886.dc9af4fc.chunk.js": "/frontend/static/js/886.dc9af4fc.chunk.js",
"static/js/254.cb8a2509.chunk.js": "/frontend/static/js/254.cb8a2509.chunk.js",
"static/css/672.894fd2e5.chunk.css": "/frontend/static/css/672.894fd2e5.chunk.css",
@ -16,7 +16,7 @@
"static/media/emptyBg.png": "/frontend/static/media/emptyBg.15fdf5f39309784ac66e.png",
"static/media/male.png": "/frontend/static/media/male.2f17f063b1a6dbb35bc6.png",
"main.6bd4c3d7.css.map": "/frontend/static/css/main.6bd4c3d7.css.map",
"main.c9806b32.js.map": "/frontend/static/js/main.c9806b32.js.map",
"main.edff74dd.js.map": "/frontend/static/js/main.edff74dd.js.map",
"886.dc9af4fc.chunk.js.map": "/frontend/static/js/886.dc9af4fc.chunk.js.map",
"254.cb8a2509.chunk.js.map": "/frontend/static/js/254.cb8a2509.chunk.js.map",
"672.894fd2e5.chunk.css.map": "/frontend/static/css/672.894fd2e5.chunk.css.map",
@ -27,6 +27,6 @@
},
"entrypoints": [
"static/css/main.6bd4c3d7.css",
"static/js/main.c9806b32.js"
"static/js/main.edff74dd.js"
]
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long