Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
3d864aee
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看板
未验证
提交
3d864aee
编写于
9月 25, 2020
作者:
P
Peter Pan
提交者:
GitHub
9月 25, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: complete license (#831)
* chore: complete license * chore: fix typo
上级
ec6e76e4
变更
112
展开全部
隐藏空白更改
内联
并排
Showing
112 changed file
with
1714 addition
and
54 deletion
+1714
-54
LICENSE
LICENSE
+0
-25
frontend/.eslintrc.js
frontend/.eslintrc.js
+20
-2
frontend/LICENSE
frontend/LICENSE
+0
-25
frontend/README.md
frontend/README.md
+1
-1
frontend/README_cn.md
frontend/README_cn.md
+1
-1
frontend/license-header.js
frontend/license-header.js
+15
-0
frontend/lint-staged.config.js
frontend/lint-staged.config.js
+16
-0
frontend/package.json
frontend/package.json
+1
-0
frontend/packages/core/babel.config.js
frontend/packages/core/babel.config.js
+16
-0
frontend/packages/core/builder/cdn.js
frontend/packages/core/builder/cdn.js
+16
-0
frontend/packages/core/builder/dev-server.js
frontend/packages/core/builder/dev-server.js
+16
-0
frontend/packages/core/builder/environment.js
frontend/packages/core/builder/environment.js
+16
-0
frontend/packages/core/builder/icons.js
frontend/packages/core/builder/icons.js
+16
-0
frontend/packages/core/builder/inject-env.js
frontend/packages/core/builder/inject-env.js
+16
-0
frontend/packages/core/builder/inject-template.js
frontend/packages/core/builder/inject-template.js
+16
-0
frontend/packages/core/builder/mock.js
frontend/packages/core/builder/mock.js
+16
-0
frontend/packages/core/builder/netron.js
frontend/packages/core/builder/netron.js
+16
-0
frontend/packages/core/builder/post-build.js
frontend/packages/core/builder/post-build.js
+16
-0
frontend/packages/core/builder/wasm.js
frontend/packages/core/builder/wasm.js
+16
-0
frontend/packages/core/jest.config.js
frontend/packages/core/jest.config.js
+16
-0
frontend/packages/core/jest.setup.js
frontend/packages/core/jest.setup.js
+16
-0
frontend/packages/core/snowpack.config.js
frontend/packages/core/snowpack.config.js
+16
-0
frontend/packages/core/src/App.tsx
frontend/packages/core/src/App.tsx
+16
-0
frontend/packages/core/src/components/Aside.tsx
frontend/packages/core/src/components/Aside.tsx
+16
-0
frontend/packages/core/src/components/Audio.tsx
frontend/packages/core/src/components/Audio.tsx
+16
-0
frontend/packages/core/src/components/BodyLoading.tsx
frontend/packages/core/src/components/BodyLoading.tsx
+16
-0
frontend/packages/core/src/components/Button.tsx
frontend/packages/core/src/components/Button.tsx
+16
-0
frontend/packages/core/src/components/Chart.tsx
frontend/packages/core/src/components/Chart.tsx
+16
-0
frontend/packages/core/src/components/ChartCollapse.tsx
frontend/packages/core/src/components/ChartCollapse.tsx
+16
-0
frontend/packages/core/src/components/ChartPage.tsx
frontend/packages/core/src/components/ChartPage.tsx
+16
-0
frontend/packages/core/src/components/ChartToolbox.tsx
frontend/packages/core/src/components/ChartToolbox.tsx
+16
-0
frontend/packages/core/src/components/Checkbox.tsx
frontend/packages/core/src/components/Checkbox.tsx
+16
-0
frontend/packages/core/src/components/Content.tsx
frontend/packages/core/src/components/Content.tsx
+16
-0
frontend/packages/core/src/components/Error.tsx
frontend/packages/core/src/components/Error.tsx
+16
-0
frontend/packages/core/src/components/ErrorBoundary.tsx
frontend/packages/core/src/components/ErrorBoundary.tsx
+16
-0
frontend/packages/core/src/components/Field.tsx
frontend/packages/core/src/components/Field.tsx
+16
-0
frontend/packages/core/src/components/GraphPage/Argument.tsx
frontend/packages/core/src/components/GraphPage/Argument.tsx
+16
-0
frontend/packages/core/src/components/GraphPage/Graph.tsx
frontend/packages/core/src/components/GraphPage/Graph.tsx
+16
-0
frontend/packages/core/src/components/GraphPage/GraphSidebar.tsx
...d/packages/core/src/components/GraphPage/GraphSidebar.tsx
+16
-0
frontend/packages/core/src/components/GraphPage/ModelPropertiesDialog.tsx
...s/core/src/components/GraphPage/ModelPropertiesDialog.tsx
+16
-0
frontend/packages/core/src/components/GraphPage/NodeDocumentationSidebar.tsx
...ore/src/components/GraphPage/NodeDocumentationSidebar.tsx
+16
-0
frontend/packages/core/src/components/GraphPage/NodePropertiesSidebar.tsx
...s/core/src/components/GraphPage/NodePropertiesSidebar.tsx
+16
-0
frontend/packages/core/src/components/GraphPage/Properties.tsx
...end/packages/core/src/components/GraphPage/Properties.tsx
+16
-0
frontend/packages/core/src/components/GraphPage/Property.tsx
frontend/packages/core/src/components/GraphPage/Property.tsx
+16
-0
frontend/packages/core/src/components/GraphPage/Search.tsx
frontend/packages/core/src/components/GraphPage/Search.tsx
+16
-0
frontend/packages/core/src/components/GraphPage/Uploader.tsx
frontend/packages/core/src/components/GraphPage/Uploader.tsx
+16
-0
frontend/packages/core/src/components/HighDimensionalPage/HighDimensionalChart.tsx
...c/components/HighDimensionalPage/HighDimensionalChart.tsx
+16
-0
frontend/packages/core/src/components/HistogramPage/HistogramChart.tsx
...ages/core/src/components/HistogramPage/HistogramChart.tsx
+16
-0
frontend/packages/core/src/components/Icon.tsx
frontend/packages/core/src/components/Icon.tsx
+16
-0
frontend/packages/core/src/components/Image.tsx
frontend/packages/core/src/components/Image.tsx
+16
-0
frontend/packages/core/src/components/Input.tsx
frontend/packages/core/src/components/Input.tsx
+16
-0
frontend/packages/core/src/components/Language.tsx
frontend/packages/core/src/components/Language.tsx
+16
-0
frontend/packages/core/src/components/LineChart.tsx
frontend/packages/core/src/components/LineChart.tsx
+16
-0
frontend/packages/core/src/components/Navbar.tsx
frontend/packages/core/src/components/Navbar.tsx
+16
-0
frontend/packages/core/src/components/PRCurvePage/PRCurveChart.tsx
...packages/core/src/components/PRCurvePage/PRCurveChart.tsx
+16
-0
frontend/packages/core/src/components/PRCurvePage/StepSlider.tsx
...d/packages/core/src/components/PRCurvePage/StepSlider.tsx
+16
-0
frontend/packages/core/src/components/Pagination.tsx
frontend/packages/core/src/components/Pagination.tsx
+16
-0
frontend/packages/core/src/components/RadioButton.tsx
frontend/packages/core/src/components/RadioButton.tsx
+16
-0
frontend/packages/core/src/components/RadioGroup.tsx
frontend/packages/core/src/components/RadioGroup.tsx
+16
-0
frontend/packages/core/src/components/RangeSlider.tsx
frontend/packages/core/src/components/RangeSlider.tsx
+16
-0
frontend/packages/core/src/components/Route.tsx
frontend/packages/core/src/components/Route.tsx
+16
-0
frontend/packages/core/src/components/RunAside.tsx
frontend/packages/core/src/components/RunAside.tsx
+16
-0
frontend/packages/core/src/components/RunningToggle.tsx
frontend/packages/core/src/components/RunningToggle.tsx
+16
-0
frontend/packages/core/src/components/SamplePage/AudioChart.tsx
...nd/packages/core/src/components/SamplePage/AudioChart.tsx
+16
-0
frontend/packages/core/src/components/SamplePage/ImageChart.tsx
...nd/packages/core/src/components/SamplePage/ImageChart.tsx
+16
-0
frontend/packages/core/src/components/SamplePage/ImagePreviewer.tsx
...ackages/core/src/components/SamplePage/ImagePreviewer.tsx
+16
-0
frontend/packages/core/src/components/SamplePage/SampleChart.tsx
...d/packages/core/src/components/SamplePage/SampleChart.tsx
+16
-0
frontend/packages/core/src/components/SamplePage/StepSlider.tsx
...nd/packages/core/src/components/SamplePage/StepSlider.tsx
+16
-0
frontend/packages/core/src/components/ScalarPage/ScalarChart.tsx
...d/packages/core/src/components/ScalarPage/ScalarChart.tsx
+16
-0
frontend/packages/core/src/components/ScatterChart.tsx
frontend/packages/core/src/components/ScatterChart.tsx
+16
-0
frontend/packages/core/src/components/SearchInput.tsx
frontend/packages/core/src/components/SearchInput.tsx
+16
-0
frontend/packages/core/src/components/Select.tsx
frontend/packages/core/src/components/Select.tsx
+16
-0
frontend/packages/core/src/components/Slider.tsx
frontend/packages/core/src/components/Slider.tsx
+16
-0
frontend/packages/core/src/components/StackChart.tsx
frontend/packages/core/src/components/StackChart.tsx
+16
-0
frontend/packages/core/src/components/Tag.tsx
frontend/packages/core/src/components/Tag.tsx
+16
-0
frontend/packages/core/src/components/ThemeToggle.tsx
frontend/packages/core/src/components/ThemeToggle.tsx
+16
-0
frontend/packages/core/src/components/TimeModeSelect.tsx
frontend/packages/core/src/components/TimeModeSelect.tsx
+16
-0
frontend/packages/core/src/components/Title.tsx
frontend/packages/core/src/components/Title.tsx
+16
-0
frontend/packages/core/src/components/TooltipTable.tsx
frontend/packages/core/src/components/TooltipTable.tsx
+16
-0
frontend/packages/core/src/hooks/useClickOutside.ts
frontend/packages/core/src/hooks/useClickOutside.ts
+16
-0
frontend/packages/core/src/hooks/useCreation.ts
frontend/packages/core/src/hooks/useCreation.ts
+16
-0
frontend/packages/core/src/hooks/useDebounce.ts
frontend/packages/core/src/hooks/useDebounce.ts
+16
-0
frontend/packages/core/src/hooks/useECharts.ts
frontend/packages/core/src/hooks/useECharts.ts
+16
-0
frontend/packages/core/src/hooks/useHeavyWork.ts
frontend/packages/core/src/hooks/useHeavyWork.ts
+16
-0
frontend/packages/core/src/hooks/useLocalStorage.ts
frontend/packages/core/src/hooks/useLocalStorage.ts
+16
-0
frontend/packages/core/src/hooks/useNavItems.ts
frontend/packages/core/src/hooks/useNavItems.ts
+16
-0
frontend/packages/core/src/hooks/useQuery.ts
frontend/packages/core/src/hooks/useQuery.ts
+16
-0
frontend/packages/core/src/hooks/useRequest.ts
frontend/packages/core/src/hooks/useRequest.ts
+16
-0
frontend/packages/core/src/hooks/useSearchValue.ts
frontend/packages/core/src/hooks/useSearchValue.ts
+16
-0
frontend/packages/core/src/hooks/useTagFilter.ts
frontend/packages/core/src/hooks/useTagFilter.ts
+16
-0
frontend/packages/core/src/hooks/useTheme.ts
frontend/packages/core/src/hooks/useTheme.ts
+16
-0
frontend/packages/core/src/hooks/useThrottleFn.ts
frontend/packages/core/src/hooks/useThrottleFn.ts
+16
-0
frontend/packages/core/src/index.tsx
frontend/packages/core/src/index.tsx
+16
-0
frontend/packages/core/src/pages/error.tsx
frontend/packages/core/src/pages/error.tsx
+16
-0
frontend/packages/core/src/pages/graph.tsx
frontend/packages/core/src/pages/graph.tsx
+16
-0
frontend/packages/core/src/pages/high-dimensional.tsx
frontend/packages/core/src/pages/high-dimensional.tsx
+16
-0
frontend/packages/core/src/pages/histogram.tsx
frontend/packages/core/src/pages/histogram.tsx
+16
-0
frontend/packages/core/src/pages/index.tsx
frontend/packages/core/src/pages/index.tsx
+16
-0
frontend/packages/core/src/pages/pr-curve.tsx
frontend/packages/core/src/pages/pr-curve.tsx
+16
-0
frontend/packages/core/src/pages/sample/audio.tsx
frontend/packages/core/src/pages/sample/audio.tsx
+16
-0
frontend/packages/core/src/pages/sample/image.tsx
frontend/packages/core/src/pages/sample/image.tsx
+16
-0
frontend/packages/core/src/pages/scalar.tsx
frontend/packages/core/src/pages/scalar.tsx
+16
-0
frontend/packages/core/test/App.test.tsx
frontend/packages/core/test/App.test.tsx
+16
-0
frontend/packages/netron/postcss.config.js
frontend/packages/netron/postcss.config.js
+16
-0
frontend/packages/netron/src/index.js
frontend/packages/netron/src/index.js
+16
-0
frontend/packages/netron/src/shim.js
frontend/packages/netron/src/shim.js
+16
-0
frontend/packages/netron/src/sidebar.js
frontend/packages/netron/src/sidebar.js
+16
-0
frontend/packages/netron/src/view.js
frontend/packages/netron/src/view.js
+16
-0
frontend/packages/netron/webpack.config.js
frontend/packages/netron/webpack.config.js
+16
-0
frontend/packages/server/ecosystem.config.js
frontend/packages/server/ecosystem.config.js
+16
-0
frontend/prettier.config.js
frontend/prettier.config.js
+16
-0
frontend/yarn.lock
frontend/yarn.lock
+12
-0
未找到文件。
LICENSE
浏览文件 @
3d864aee
...
...
@@ -174,28 +174,3 @@
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
frontend/.eslintrc.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module
.
exports
=
{
env
:
{
browser
:
true
,
...
...
@@ -9,10 +25,12 @@ module.exports = {
ecmaVersion
:
2018
,
sourceType
:
'
module
'
},
ignorePatterns
:
[
'
node_modules/
'
,
'
dist/
'
,
'
output/
'
],
ignorePatterns
:
[
'
node_modules/
'
,
'
dist/
'
,
'
output/
'
,
'
license-header.js
'
],
plugins
:
[
'
license-header
'
],
rules
:
{
'
no-console
'
:
'
warn
'
,
'
sort-imports
'
:
'
error
'
'
sort-imports
'
:
'
error
'
,
'
license-header/header
'
:
[
'
error
'
,
'
./license-header.js
'
]
},
overrides
:
[
{
...
...
frontend/LICENSE
浏览文件 @
3d864aee
...
...
@@ -174,28 +174,3 @@
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
frontend/README.md
浏览文件 @
3d864aee
...
...
@@ -112,7 +112,7 @@ This project is based on following projects:
-
[
React
](
https://reactjs.org/
)
-
[
ECharts
](
https://echarts.apache.org/
)
-
[
Snowpack]
]
(
https://www.snowpack.dev/
)
-
[
Snowpack
](
https://www.snowpack.dev/
)
-
[
wasm-pack
](
https://rustwasm.github.io/wasm-pack/
)
-
[
Netron
](
https://github.com/lutzroeder/netron
)
...
...
frontend/README_cn.md
浏览文件 @
3d864aee
...
...
@@ -112,7 +112,7 @@ VisualDL 支持最新版本的 [Google Chrome](https://www.google.com/chrome/)
-
[
React
](
https://reactjs.org/
)
-
[
ECharts
](
https://echarts.apache.org/
)
-
[
Snowpack]
]
(
https://www.snowpack.dev/
)
-
[
Snowpack
](
https://www.snowpack.dev/
)
-
[
wasm-pack
](
https://rustwasm.github.io/wasm-pack/
)
-
[
Netron
](
https://github.com/lutzroeder/netron
)
...
...
frontend/license-header.js
0 → 100644
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
\ No newline at end of file
frontend/lint-staged.config.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const
path
=
require
(
'
path
'
);
const
fs
=
require
(
'
fs
'
);
...
...
frontend/package.json
浏览文件 @
3d864aee
...
...
@@ -42,6 +42,7 @@
"@typescript-eslint/parser"
:
"4.1.1"
,
"eslint"
:
"7.9.0"
,
"eslint-config-prettier"
:
"6.11.0"
,
"eslint-plugin-license-header"
:
"0.2.0"
,
"eslint-plugin-prettier"
:
"3.1.4"
,
"eslint-plugin-react"
:
"7.20.6"
,
"eslint-plugin-react-hooks"
:
"4.1.2"
,
...
...
frontend/packages/core/babel.config.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module
.
exports
=
{
extends
:
'
@snowpack/app-scripts-react/babel.config.json
'
,
presets
:
[
...
...
frontend/packages/core/builder/cdn.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-console */
...
...
frontend/packages/core/builder/dev-server.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-var-requires */
const
express
=
require
(
'
express
'
);
...
...
frontend/packages/core/builder/environment.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// This file is used to generate environment variables which used by the app
// PUBLIC_PATH is for assets, can be set to a CDN address
...
...
frontend/packages/core/builder/icons.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable no-console */
/* eslint-disable @typescript-eslint/no-var-requires */
...
...
frontend/packages/core/builder/inject-env.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-var-requires */
const
path
=
require
(
'
path
'
);
...
...
frontend/packages/core/builder/inject-template.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-var-requires */
const
path
=
require
(
'
path
'
);
...
...
frontend/packages/core/builder/mock.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-var-requires */
const
{
middleware
}
=
require
(
'
@visualdl/mock
'
);
...
...
frontend/packages/core/builder/netron.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable no-console */
/* eslint-disable @typescript-eslint/no-var-requires */
...
...
frontend/packages/core/builder/post-build.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-var-requires */
require
(
'
dotenv
'
).
config
();
...
...
frontend/packages/core/builder/wasm.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable no-console */
/* eslint-disable @typescript-eslint/no-var-requires */
...
...
frontend/packages/core/jest.config.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-var-requires */
module
.
exports
=
{
...
...
frontend/packages/core/jest.setup.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
...
...
frontend/packages/core/snowpack.config.js
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-var-requires */
require
(
'
./builder/environment
'
);
...
...
frontend/packages/core/src/App.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
Suspense
,
useCallback
,
useEffect
,
useMemo
,
useState
}
from
'
react
'
;
import
{
Redirect
,
Route
,
BrowserRouter
as
Router
,
Switch
,
useLocation
}
from
'
react-router-dom
'
;
import
{
THEME
,
matchMedia
}
from
'
~/utils/theme
'
;
...
...
frontend/packages/core/src/components/Aside.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
WithStyled
,
asideWidth
,
rem
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Audio.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useMemo
,
useRef
,
useState
}
from
'
react
'
;
import
{
WithStyled
,
primaryColor
,
rem
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/BodyLoading.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
position
,
primaryColor
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Button.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
WithStyled
,
borderRadius
,
css
,
ellipsis
,
em
,
half
,
sameBorder
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Chart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
import
{
WithStyled
,
borderRadius
,
headerHeight
,
math
,
rem
,
sameBorder
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/ChartCollapse.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useState
}
from
'
react
'
;
import
{
borderRadius
,
em
,
rem
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/ChartPage.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
PropsWithChildren
,
useCallback
,
useEffect
,
useMemo
,
useState
}
from
'
react
'
;
import
{
Trans
,
useTranslation
}
from
'
react-i18next
'
;
import
{
WithStyled
,
headerHeight
,
link
,
primaryColor
,
rem
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/ChartToolbox.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useState
}
from
'
react
'
;
import
{
WithStyled
,
em
,
rem
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Checkbox.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
import
{
WithStyled
,
ellipsis
,
em
,
half
,
math
,
position
,
sameBorder
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Content.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
contentHeight
,
contentMargin
,
headerHeight
,
position
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Error.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
Trans
,
useTranslation
}
from
'
react-i18next
'
;
import
{
WithStyled
,
em
,
link
,
rem
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/ErrorBoundary.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
from
'
react
'
;
class
ErrorBoundary
extends
React
.
Component
<
{
fallback
:
React
.
ReactNode
},
{
hasError
:
boolean
;
error
:
Error
|
null
}
>
{
...
...
frontend/packages/core/src/components/Field.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
WithStyled
,
rem
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/GraphPage/Argument.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
type
{
Argument
as
ArgumentType
,
Property
as
PropertyType
}
from
'
~/resource/graph/types
'
;
import
React
,
{
FunctionComponent
,
useMemo
,
useState
}
from
'
react
'
;
import
{
em
,
sameBorder
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/GraphPage/Graph.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
type
{
Documentation
,
OpenedResult
,
Properties
,
SearchItem
,
SearchResult
}
from
'
~/resource/graph/types
'
;
import
React
,
{
useCallback
,
useEffect
,
useImperativeHandle
,
useMemo
,
useRef
,
useState
}
from
'
react
'
;
import
{
contentHeight
,
position
,
primaryColor
,
rem
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/GraphPage/GraphSidebar.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
rem
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/GraphPage/ModelPropertiesDialog.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
em
,
size
,
transitionProps
,
zIndexes
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/GraphPage/NodeDocumentationSidebar.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
}
from
'
react
'
;
import
{
Trans
,
useTranslation
}
from
'
react-i18next
'
;
import
{
borderRadius
,
em
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/GraphPage/NodePropertiesSidebar.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
GraphSidebar
from
'
~/components/GraphPage/GraphSidebar
'
;
...
...
frontend/packages/core/src/components/GraphPage/Properties.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
type
{
Properties
as
PropertiesType
}
from
'
~/resource/graph/types
'
;
...
...
frontend/packages/core/src/components/GraphPage/Property.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
type
{
Argument
as
ArgumentType
,
NameValues
,
Property
as
PropertyType
}
from
'
~/resource/graph/types
'
;
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
ellipsis
,
em
,
sameBorder
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/GraphPage/Search.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
import
type
{
SearchItem
,
SearchResult
}
from
'
~/resource/graph/types
'
;
import
{
css
,
ellipsis
,
em
,
rem
,
sameBorder
,
size
,
transitionProps
,
triangle
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/GraphPage/Uploader.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useState
}
from
'
react
'
;
import
{
em
,
sameBorder
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/HighDimensionalPage/HighDimensionalChart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
type
{
Dimension
,
Reduction
}
from
'
~/resource/high-dimensional
'
;
import
React
,
{
FunctionComponent
,
useMemo
}
from
'
react
'
;
import
{
contentHeight
,
primaryColor
,
rem
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/HistogramPage/HistogramChart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
type
{
EChartOption
,
ECharts
,
EChartsConvertFinder
}
from
'
echarts
'
;
import
type
{
HistogramData
,
OffsetData
,
OverlayData
,
OverlayDataItem
}
from
'
~/resource/histogram
'
;
import
LineChart
,
{
LineChartRef
}
from
'
~/components/LineChart
'
;
...
...
frontend/packages/core/src/components/Icon.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
Suspense
,
useMemo
}
from
'
react
'
;
import
type
{
WithStyled
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Image.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useLayoutEffect
,
useState
}
from
'
react
'
;
import
{
WithStyled
,
primaryColor
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Input.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
WithStyled
,
em
,
half
,
sameBorder
,
transitionProps
}
from
'
~/utils/style
'
;
import
React
from
'
react
'
;
...
...
frontend/packages/core/src/components/Language.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
rem
,
size
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/LineChart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
*
as
chart
from
'
~/utils/chart
'
;
import
React
,
{
useEffect
,
useImperativeHandle
}
from
'
react
'
;
...
...
frontend/packages/core/src/components/Navbar.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
Link
,
LinkProps
,
useLocation
}
from
'
react-router-dom
'
;
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useMemo
,
useState
}
from
'
react
'
;
import
{
border
,
borderRadius
,
rem
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/PRCurvePage/PRCurveChart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
LineChart
,
{
LineChartRef
}
from
'
~/components/LineChart
'
;
import
type
{
PRCurveData
,
Run
}
from
'
~/resource/pr-curve
'
;
import
React
,
{
FunctionComponent
,
useCallback
,
useMemo
,
useRef
,
useState
}
from
'
react
'
;
...
...
frontend/packages/core/src/components/PRCurvePage/StepSlider.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useEffect
,
useState
}
from
'
react
'
;
import
{
ellipsis
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Pagination.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// cSpell:words hellip
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
...
...
frontend/packages/core/src/components/RadioButton.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
EventContext
,
ValueContext
}
from
'
~/components/RadioGroup
'
;
import
React
,
{
FunctionComponent
,
PropsWithChildren
,
useCallback
,
useContext
}
from
'
react
'
;
import
{
...
...
frontend/packages/core/src/components/RadioGroup.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
PropsWithChildren
,
createContext
,
useCallback
,
useState
}
from
'
react
'
;
import
type
{
WithStyled
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/RangeSlider.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
InputRange
,
{
Range
}
from
'
react-input-range
'
;
import
React
,
{
FunctionComponent
,
useCallback
}
from
'
react
'
;
import
{
WithStyled
,
em
,
half
,
position
,
sameBorder
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Route.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
Route
as
DomRouter
,
RouteProps
}
from
'
react-router-dom
'
;
import
React
,
{
FunctionComponent
,
useEffect
}
from
'
react
'
;
...
...
frontend/packages/core/src/components/RunAside.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
Aside
,
{
AsideSection
}
from
'
~/components/Aside
'
;
import
React
,
{
FunctionComponent
,
useCallback
,
useMemo
,
useState
}
from
'
react
'
;
import
{
ellipsis
,
em
,
rem
,
size
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/RunningToggle.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useEffect
,
useState
}
from
'
react
'
;
import
{
WithStyled
,
rem
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/SamplePage/AudioChart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
Audio
,
{
AudioProps
}
from
'
~/components/Audio
'
;
import
React
,
{
FunctionComponent
,
useCallback
,
useState
}
from
'
react
'
;
import
SampleChart
,
{
SampleChartBaseProps
,
SampleEntityProps
}
from
'
~/components/SamplePage/SampleChart
'
;
...
...
frontend/packages/core/src/components/SamplePage/ImageChart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
}
from
'
react
'
;
import
SampleChart
,
{
SampleChartBaseProps
,
...
...
frontend/packages/core/src/components/SamplePage/ImagePreviewer.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useLayoutEffect
,
useMemo
,
useRef
,
useState
}
from
'
react
'
;
import
{
em
,
headerHeight
,
primaryColor
,
rem
,
zIndexes
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/SamplePage/SampleChart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useMemo
,
useRef
,
useState
}
from
'
react
'
;
import
{
ellipsis
,
em
,
primaryColor
,
rem
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/SamplePage/StepSlider.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
import
{
em
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/ScalarPage/ScalarChart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
type
{
Dataset
,
Range
,
ScalarDataset
}
from
'
~/resource/scalar
'
;
import
LineChart
,
{
LineChartRef
,
XAxisType
,
YAxisType
}
from
'
~/components/LineChart
'
;
import
React
,
{
FunctionComponent
,
useCallback
,
useMemo
,
useRef
,
useState
}
from
'
react
'
;
...
...
frontend/packages/core/src/components/ScatterChart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useEffect
,
useMemo
}
from
'
react
'
;
import
{
WithStyled
,
position
,
primaryColor
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
import
useECharts
,
{
useChartTheme
}
from
'
~/hooks/useECharts
'
;
...
...
frontend/packages/core/src/components/SearchInput.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
Input
,
{
InputProps
,
padding
}
from
'
~/components/Input
'
;
import
React
,
{
FunctionComponent
,
useCallback
,
useRef
}
from
'
react
'
;
import
{
WithStyled
,
math
,
position
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/Select.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useMemo
,
useState
}
from
'
react
'
;
import
{
WithStyled
,
...
...
frontend/packages/core/src/components/Slider.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useState
}
from
'
react
'
;
import
{
height
,
padding
}
from
'
~/components/Input
'
;
import
{
rem
,
size
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/StackChart.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
*
as
chart
from
'
~/utils/chart
'
;
import
type
{
EChartOption
,
ECharts
,
EChartsConvertFinder
}
from
'
echarts
'
;
...
...
frontend/packages/core/src/components/Tag.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
WithStyled
,
em
,
half
,
transitionProps
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/components/ThemeToggle.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
actions
,
selectors
}
from
'
~/store
'
;
import
{
colors
,
themes
}
from
'
~/utils/theme
'
;
...
...
frontend/packages/core/src/components/TimeModeSelect.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
import
RadioButton
from
'
~/components/RadioButton
'
;
...
...
frontend/packages/core/src/components/Title.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
Helmet
}
from
'
react-helmet
'
;
...
...
frontend/packages/core/src/components/TooltipTable.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
{
rem
,
size
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/hooks/useClickOutside.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
useCallback
,
useEffect
,
useRef
}
from
'
react
'
;
const
useClickOutside
=
<
T
extends
HTMLElement
>
(
callback
:
()
=>
void
)
=>
{
...
...
frontend/packages/core/src/hooks/useCreation.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
useRef
}
from
'
react
'
;
export
default
function
useCreation
<
T
>
(
factory
:
()
=>
T
,
deps
:
unknown
[])
{
...
...
frontend/packages/core/src/hooks/useDebounce.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
useEffect
,
useState
}
from
'
react
'
;
const
useDebounce
=
<
T
>
(
value
:
T
,
delay
:
number
):
T
=>
{
...
...
frontend/packages/core/src/hooks/useECharts.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
MutableRefObject
,
useCallback
,
useEffect
,
useLayoutEffect
,
useMemo
,
useRef
,
useState
}
from
'
react
'
;
import
{
position
,
primaryColor
,
size
}
from
'
~/utils/style
'
;
...
...
frontend/packages/core/src/hooks/useHeavyWork.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
useCallback
,
useEffect
,
useRef
,
useState
}
from
'
react
'
;
const
useHeavyWork
=
<
T
=
unknown
,
P
=
unknown
>
(
...
...
frontend/packages/core/src/hooks/useLocalStorage.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
useCallback
,
useMemo
}
from
'
react
'
;
const
useLocalStorage
=
(
key
:
string
)
=>
{
...
...
frontend/packages/core/src/hooks/useNavItems.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
routes
,
{
Pages
,
Route
}
from
'
~/routes
'
;
import
{
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
...
...
frontend/packages/core/src/hooks/useQuery.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
type
{
ParseOptions
}
from
'
query-string
'
;
import
queryString
from
'
query-string
'
;
import
{
useLocation
}
from
'
react-router-dom
'
;
...
...
frontend/packages/core/src/hooks/useRequest.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
type
{
ConfigInterface
,
keyInterface
,
responseInterface
}
from
'
swr
'
;
import
{
useEffect
,
useMemo
}
from
'
react
'
;
...
...
frontend/packages/core/src/hooks/useSearchValue.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
useDebounce
from
'
~/hooks/useDebounce
'
;
const
isEmptyValue
=
(
value
:
unknown
):
boolean
=>
...
...
frontend/packages/core/src/hooks/useTagFilter.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
type
{
Run
,
Tag
,
TagWithSingleRun
,
TagsData
}
from
'
~/types
'
;
import
{
actions
,
selectors
}
from
'
~/store
'
;
import
{
color
,
colorAlt
}
from
'
~/utils/chart
'
;
...
...
frontend/packages/core/src/hooks/useTheme.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
selectors
}
from
'
~/store
'
;
import
{
useSelector
}
from
'
react-redux
'
;
...
...
frontend/packages/core/src/hooks/useThrottleFn.ts
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-explicit-any */
import
throttle
from
'
lodash/throttle
'
;
import
useCreation
from
'
~/hooks/useCreation
'
;
...
...
frontend/packages/core/src/index.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
'
~/utils/i18n
'
;
import
App
from
'
./App
'
;
...
...
frontend/packages/core/src/pages/error.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
}
from
'
react
'
;
import
Content
from
'
~/components/Content
'
;
...
...
frontend/packages/core/src/pages/graph.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
Aside
,
{
AsideSection
}
from
'
~/components/Aside
'
;
import
type
{
Documentation
,
OpenedResult
,
Properties
,
SearchItem
,
SearchResult
}
from
'
~/resource/graph/types
'
;
import
GraphComponent
,
{
GraphRef
}
from
'
~/components/GraphPage/Graph
'
;
...
...
frontend/packages/core/src/pages/high-dimensional.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
Aside
,
{
AsideSection
}
from
'
~/components/Aside
'
;
import
type
{
Dimension
,
Reduction
}
from
'
~/resource/high-dimensional
'
;
import
React
,
{
FunctionComponent
,
useEffect
,
useMemo
,
useState
}
from
'
react
'
;
...
...
frontend/packages/core/src/pages/histogram.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
ChartPage
,
{
WithChart
}
from
'
~/components/ChartPage
'
;
import
{
Modes
,
modes
}
from
'
~/resource/histogram
'
;
import
React
,
{
FunctionComponent
,
useCallback
,
useMemo
,
useState
}
from
'
react
'
;
...
...
frontend/packages/core/src/pages/index.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
React
,
{
FunctionComponent
,
useEffect
}
from
'
react
'
;
import
{
headerHeight
,
primaryColor
,
rem
,
size
}
from
'
~/utils/style
'
;
import
{
useHistory
,
useLocation
}
from
'
react-router-dom
'
;
...
...
frontend/packages/core/src/pages/pr-curve.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
ChartPage
,
{
WithChart
}
from
'
~/components/ChartPage
'
;
import
React
,
{
FunctionComponent
,
useCallback
,
useEffect
,
useMemo
,
useState
}
from
'
react
'
;
import
type
{
Run
,
StepInfo
,
Tag
}
from
'
~/resource/pr-curve
'
;
...
...
frontend/packages/core/src/pages/sample/audio.tsx
浏览文件 @
3d864aee
/**
* Copyright 2020 Baidu Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// cSpell:words ungrouped
import
ChartPage
,
{
WithChart
}
from
'
~/components/ChartPage
'
;
...
...
frontend/packages/core/src/pages/sample/image.tsx
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/packages/core/src/pages/scalar.tsx
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/packages/core/test/App.test.tsx
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/packages/netron/postcss.config.js
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/packages/netron/src/index.js
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/packages/netron/src/shim.js
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/packages/netron/src/sidebar.js
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/packages/netron/src/view.js
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/packages/netron/webpack.config.js
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/packages/server/ecosystem.config.js
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/prettier.config.js
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
frontend/yarn.lock
浏览文件 @
3d864aee
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录