Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
dc3bebb8
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
1 年多 前同步成功
通知
88
Star
4655
Fork
642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VisualDL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
dc3bebb8
编写于
6月 23, 2020
作者:
P
Peter Pan
提交者:
GitHub
6月 23, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix
#674
(#677)
* chore: update dependencies * fix: compatibility of safari (
#674
)
上级
cb3508e4
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
363 addition
and
327 deletion
+363
-327
frontend/package.json
frontend/package.json
+5
-5
frontend/packages/core/components/LineChart.tsx
frontend/packages/core/components/LineChart.tsx
+2
-19
frontend/packages/core/components/StackChart.tsx
frontend/packages/core/components/StackChart.tsx
+2
-21
frontend/packages/core/hooks/useECharts.ts
frontend/packages/core/hooks/useECharts.ts
+21
-1
frontend/packages/core/package.json
frontend/packages/core/package.json
+12
-12
frontend/packages/i18n/package.json
frontend/packages/i18n/package.json
+5
-5
frontend/packages/netron/package.json
frontend/packages/netron/package.json
+4
-4
frontend/packages/server/package.json
frontend/packages/server/package.json
+1
-1
frontend/yarn.lock
frontend/yarn.lock
+311
-259
未找到文件。
frontend/package.json
浏览文件 @
dc3bebb8
...
...
@@ -38,16 +38,16 @@
"version"
:
"yarn format && git add -A"
},
"devDependencies"
:
{
"@typescript-eslint/eslint-plugin"
:
"3.
2
.0"
,
"@typescript-eslint/parser"
:
"3.
2
.0"
,
"eslint"
:
"7.
2.0
"
,
"@typescript-eslint/eslint-plugin"
:
"3.
4
.0"
,
"@typescript-eslint/parser"
:
"3.
4
.0"
,
"eslint"
:
"7.
3.1
"
,
"eslint-config-prettier"
:
"6.11.0"
,
"eslint-plugin-prettier"
:
"3.1.
3
"
,
"eslint-plugin-prettier"
:
"3.1.
4
"
,
"eslint-plugin-react"
:
"7.20.0"
,
"eslint-plugin-react-hooks"
:
"4.0.0"
,
"husky"
:
"4.2.5"
,
"lerna"
:
"3.22.1"
,
"lint-staged"
:
"10.2.
9
"
,
"lint-staged"
:
"10.2.
11
"
,
"prettier"
:
"2.0.5"
,
"rimraf"
:
"3.0.2"
,
"typescript"
:
"3.9.5"
,
...
...
frontend/packages/core/components/LineChart.tsx
浏览文件 @
dc3bebb8
import
*
as
chart
from
'
~/utils/chart
'
;
import
React
,
{
useEffect
,
useImperativeHandle
}
from
'
react
'
;
import
{
WithStyled
,
position
,
primaryColor
,
size
}
from
'
~/utils/style
'
;
import
{
WithStyled
,
primaryColor
}
from
'
~/utils/style
'
;
import
useECharts
,
{
Wrapper
}
from
'
~/hooks/useECharts
'
;
import
{
EChartOption
}
from
'
echarts
'
;
import
GridLoader
from
'
react-spinners/GridLoader
'
;
import
defaultsDeep
from
'
lodash/defaultsDeep
'
;
import
{
formatTime
}
from
'
~/utils
'
;
import
styled
from
'
styled-components
'
;
import
useECharts
from
'
~/hooks/useECharts
'
;
import
{
useTranslation
}
from
'
~/utils/i18n
'
;
const
Wrapper
=
styled
.
div
`
position: relative;
> .echarts {
height: 100%;
}
> .loading {
${
size
(
'
100%
'
)}
${
position
(
'
absolute
'
,
0
,
null
,
null
,
0
)}
display: flex;
justify-content: center;
align-items: center;
}
`
;
type
LineChartProps
=
{
options
?:
EChartOption
;
title
?:
string
;
...
...
frontend/packages/core/components/StackChart.tsx
浏览文件 @
dc3bebb8
import
*
as
chart
from
'
~/utils/chart
'
;
import
React
,
{
useCallback
,
useEffect
,
useImperativeHandle
}
from
'
react
'
;
import
{
WithStyled
,
position
,
primaryColor
,
size
}
from
'
~/utils/style
'
;
import
{
WithStyled
,
primaryColor
}
from
'
~/utils/style
'
;
import
useECharts
,
{
Wrapper
}
from
'
~/hooks/useECharts
'
;
import
{
EChartOption
}
from
'
echarts
'
;
import
GridLoader
from
'
react-spinners/GridLoader
'
;
import
{
dataURL2Blob
}
from
'
~/utils/image
'
;
import
defaultsDeep
from
'
lodash/defaultsDeep
'
;
import
{
saveAs
}
from
'
file-saver
'
;
import
styled
from
'
styled-components
'
;
import
useECharts
from
'
~/hooks/useECharts
'
;
import
{
useTranslation
}
from
'
~/utils/i18n
'
;
const
Wrapper
=
styled
.
div
`
position: relative;
> .echarts {
height: 100%;
}
> .loading {
${
size
(
'
100%
'
)}
${
position
(
'
absolute
'
,
0
,
null
,
null
,
0
)}
display: flex;
justify-content: center;
align-items: center;
}
`
;
type
renderItem
=
NonNullable
<
EChartOption
.
SeriesCustom
[
'
renderItem
'
]
>
;
type
renderItemArguments
=
NonNullable
<
renderItem
[
'
arguments
'
]
>
;
type
RenderItem
=
(
...
...
frontend/packages/core/hooks/useECharts.ts
浏览文件 @
dc3bebb8
import
{
MutableRefObject
,
useCallback
,
useEffect
,
useLayoutEffect
,
useRef
,
useState
}
from
'
react
'
;
import
{
maskColor
,
p
rimaryColor
,
textColor
}
from
'
~/utils/style
'
;
import
{
maskColor
,
p
osition
,
primaryColor
,
size
,
textColor
}
from
'
~/utils/style
'
;
import
{
ECharts
}
from
'
echarts
'
;
import
{
dataURL2Blob
}
from
'
~/utils/image
'
;
import
{
saveAs
}
from
'
file-saver
'
;
import
styled
from
'
styled-components
'
;
const
useECharts
=
<
T
extends
HTMLElement
,
W
extends
HTMLElement
=
HTMLDivElement
>
(
options
:
{
loading
?:
boolean
;
...
...
@@ -99,3 +100,22 @@ const useECharts = <T extends HTMLElement, W extends HTMLElement = HTMLDivElemen
};
export
default
useECharts
;
export
const
Wrapper
=
styled
.
div
`
position: relative;
display: flex;
justify-content: center;
align-items: stretch;
> .echarts {
width: 100%;
}
> .loading {
${
size
(
'
100%
'
)}
${
position
(
'
absolute
'
,
0
,
null
,
null
,
0
)}
display: flex;
justify-content: center;
align-items: center;
}
`
;
frontend/packages/core/package.json
浏览文件 @
dc3bebb8
...
...
@@ -32,7 +32,7 @@
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 0"
},
"dependencies"
:
{
"@tippyjs/react"
:
"4.0.
2
"
,
"@tippyjs/react"
:
"4.0.
4
"
,
"@visualdl/i18n"
:
"2.0.0-beta.43"
,
"@visualdl/netron"
:
"2.0.0-beta.43"
,
"@visualdl/wasm"
:
"2.0.0-beta.43"
,
...
...
@@ -45,33 +45,33 @@
"isomorphic-unfetch"
:
"3.0.0"
,
"lodash"
:
"4.17.15"
,
"mime-types"
:
"2.1.27"
,
"moment"
:
"2.2
6
.0"
,
"moment"
:
"2.2
7
.0"
,
"next"
:
"9.4.4"
,
"nprogress"
:
"0.2.0"
,
"polished"
:
"3.6.
4
"
,
"polished"
:
"3.6.
5
"
,
"prop-types"
:
"15.7.2"
,
"query-string"
:
"6.13.1"
,
"react"
:
"16.13.1"
,
"react-dom"
:
"16.13.1"
,
"react-input-range"
:
"1.3.0"
,
"react-is"
:
"16.13.1"
,
"react-spinners"
:
"0.
8.3
"
,
"react-toastify"
:
"6.0.
5
"
,
"react-spinners"
:
"0.
9.0
"
,
"react-toastify"
:
"6.0.
6
"
,
"save-svg-as-png"
:
"1.4.17"
,
"styled-components"
:
"5.1.1"
,
"swr"
:
"0.2.
2
"
,
"swr"
:
"0.2.
3
"
,
"tippy.js"
:
"6.2.3"
},
"devDependencies"
:
{
"@babel/core"
:
"7.10.
2
"
,
"@babel/core"
:
"7.10.
3
"
,
"@types/d3-format"
:
"1.3.1"
,
"@types/echarts"
:
"4.6.
1
"
,
"@types/echarts"
:
"4.6.
2
"
,
"@types/file-saver"
:
"2.0.1"
,
"@types/lodash"
:
"4.14.15
5
"
,
"@types/lodash"
:
"4.14.15
6
"
,
"@types/mime-types"
:
"2.1.0"
,
"@types/node"
:
"14.0.13"
,
"@types/nprogress"
:
"0.2.0"
,
"@types/react"
:
"16.9.3
6
"
,
"@types/react"
:
"16.9.3
8
"
,
"@types/react-dom"
:
"16.9.8"
,
"@types/styled-components"
:
"5.1.0"
,
"@visualdl/mock"
:
"2.0.0-beta.43"
,
...
...
@@ -81,8 +81,8 @@
"copy-webpack-plugin"
:
"6.0.2"
,
"core-js"
:
"3.6.5"
,
"cross-env"
:
"7.0.2"
,
"css-loader"
:
"3.
5.3
"
,
"enhanced-resolve"
:
"4.
1.1
"
,
"css-loader"
:
"3.
6.0
"
,
"enhanced-resolve"
:
"4.
2.0
"
,
"ora"
:
"4.0.4"
,
"typescript"
:
"3.9.5"
,
"worker-plugin"
:
"4.0.3"
...
...
frontend/packages/i18n/package.json
浏览文件 @
dc3bebb8
...
...
@@ -37,21 +37,21 @@
"dependencies"
:
{
"detect-node"
:
"2.0.4"
,
"hoist-non-react-statics"
:
"3.3.2"
,
"i18next"
:
"19.
4.5
"
,
"i18next-browser-languagedetector"
:
"
4.2
.0"
,
"i18next"
:
"19.
5.1
"
,
"i18next-browser-languagedetector"
:
"
5.0
.0"
,
"i18next-fs-backend"
:
"1.0.6"
,
"i18next-http-backend"
:
"1.0.15"
,
"i18next-http-middleware"
:
"
2.1.2
"
,
"i18next-http-middleware"
:
"
3.0.0
"
,
"path-match"
:
"1.2.4"
,
"prop-types"
:
"15.7.2"
,
"react-i18next"
:
"11.
5
.0"
,
"react-i18next"
:
"11.
7
.0"
,
"url"
:
"0.11.0"
},
"devDependencies"
:
{
"@types/express"
:
"4.17.6"
,
"@types/hoist-non-react-statics"
:
"3.3.1"
,
"@types/node"
:
"14.0.13"
,
"@types/react"
:
"16.9.3
6
"
,
"@types/react"
:
"16.9.3
8
"
,
"@types/react-dom"
:
"16.9.8"
,
"typescript"
:
"3.9.5"
},
...
...
frontend/packages/netron/package.json
浏览文件 @
dc3bebb8
...
...
@@ -40,16 +40,16 @@
"protobufjs"
:
"lutzroeder/protobuf.js#b9a9d027589356226f4704f9d77f2639f52172f3"
},
"devDependencies"
:
{
"autoprefixer"
:
"9.8.
0
"
,
"autoprefixer"
:
"9.8.
2
"
,
"copy-webpack-plugin"
:
"6.0.2"
,
"css-loader"
:
"3.
5.3
"
,
"css-loader"
:
"3.
6.0
"
,
"html-webpack-plugin"
:
"4.3.0"
,
"mini-css-extract-plugin"
:
"0.9.0"
,
"postcss-loader"
:
"3.0.0"
,
"rimraf"
:
"3.0.2"
,
"sass"
:
"1.26.
8
"
,
"sass"
:
"1.26.
9
"
,
"sass-loader"
:
"8.0.2"
,
"terser"
:
"4.
7
.0"
,
"terser"
:
"4.
8
.0"
,
"webpack"
:
"4.43.0"
},
"engines"
:
{
...
...
frontend/packages/server/package.json
浏览文件 @
dc3bebb8
...
...
@@ -58,7 +58,7 @@
"ts-node"
:
"8.10.2"
,
"typescript"
:
"3.9.5"
,
"webpack"
:
"4.43.0"
,
"webpack-cli"
:
"3.3.1
1
"
,
"webpack-cli"
:
"3.3.1
2
"
,
"webpack-dev-middleware"
:
"3.7.2"
},
"engines"
:
{
...
...
frontend/yarn.lock
浏览文件 @
dc3bebb8
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录