diff --git a/frontend/packages/cli/index.ts b/frontend/packages/cli/index.ts index e34528e88d0b6e9be85a81f6ef1699efb1925ac0..a6475a72530f72ad85c064d2cc72b508c741101c 100755 --- a/frontend/packages/cli/index.ts +++ b/frontend/packages/cli/index.ts @@ -1,5 +1,21 @@ #!/usr/bin/env node +/** + * 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 */ diff --git a/frontend/packages/core/babel.config.js b/frontend/packages/core/babel.config.js index 500abba37e3ad96123297cbad3819278ce3f1fe5..bfcac8d35020982f78f90676f59bc26b5420fb1f 100644 --- a/frontend/packages/core/babel.config.js +++ b/frontend/packages/core/babel.config.js @@ -14,6 +14,8 @@ * limitations under the License. */ +// cSpell:words esmodules + module.exports = { extends: '@snowpack/app-scripts-react/babel.config.json', presets: [ diff --git a/frontend/packages/core/src/App.tsx b/frontend/packages/core/src/App.tsx index 9891a4381900de05538ed7f3baaba06d7ef303c8..1685fd4b9531f60c433e8adc58848feec9bf2b71 100644 --- a/frontend/packages/core/src/App.tsx +++ b/frontend/packages/core/src/App.tsx @@ -14,6 +14,8 @@ * limitations under the License. */ +// cSpell:words pageview inited + 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'; diff --git a/frontend/packages/core/src/components/Chart.tsx b/frontend/packages/core/src/components/Chart.tsx index ee1998ac20355d9facc0a6926108e73e417a8b7e..bfab2b74ad89410393c0842751a535d66ae32e30 100644 --- a/frontend/packages/core/src/components/Chart.tsx +++ b/frontend/packages/core/src/components/Chart.tsx @@ -45,7 +45,7 @@ type ChartProps = { const Chart: FunctionComponent = ({cid, width, height, className, children}) => { const [maximized, setMaximized] = useState(false); - const toggleMaximze = useCallback( + const toggleMaximize = useCallback( (id: symbol, value: boolean) => { if (id === cid) { setMaximized(value); @@ -54,11 +54,11 @@ const Chart: FunctionComponent = ({cid, width, height, [cid] ); useEffect(() => { - ee.on('toggle-chart-size', toggleMaximze); + ee.on('toggle-chart-size', toggleMaximize); return () => { - ee.off('toggle-chart-size', toggleMaximze); + ee.off('toggle-chart-size', toggleMaximize); }; - }, [toggleMaximze]); + }, [toggleMaximize]); return (
unknown; } & BaseChartToolboxItem; -export type ChartTooboxItem = NormalChartToolboxItem | ToggleChartToolboxItem; +export type ChartToolboxItem = NormalChartToolboxItem | ToggleChartToolboxItem; type ChartToolboxProps = { - items: ChartTooboxItem[]; + items: ChartToolboxItem[]; reversed?: boolean; tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right'; }; @@ -98,7 +98,7 @@ const ChartToolbox: FunctionComponent = ({ ); const getToolboxItem = useCallback( - (item: ChartTooboxItem, index: number) => ( + (item: ChartToolboxItem, index: number) => ( unknown; + showNodeDocumentation?: () => unknown; }; -const Argument: FunctionComponent = ({value, expand, showNodeDodumentation}) => { +const Argument: FunctionComponent = ({value, expand, showNodeDocumentation}) => { const [expanded, setExpanded] = useState(expand ?? false); const expandable = useMemo(() => { @@ -105,7 +105,7 @@ const Argument: FunctionComponent = ({value, expand, showNodeDodu )} {(value as PropertyType).documentation && ( - showNodeDodumentation?.()}> + showNodeDocumentation?.()}> )} diff --git a/frontend/packages/core/src/components/GraphPage/NodeDocumentationSidebar.tsx b/frontend/packages/core/src/components/GraphPage/NodeDocumentationSidebar.tsx index a9c86525ed7598a41982f376e2c59189de14d17a..bf9a0ed19b204f76e9ea428f045b2351caeb664f 100644 --- a/frontend/packages/core/src/components/GraphPage/NodeDocumentationSidebar.tsx +++ b/frontend/packages/core/src/components/GraphPage/NodeDocumentationSidebar.tsx @@ -14,6 +14,8 @@ * limitations under the License. */ +// cSpell:words strs + import React, {FunctionComponent, useCallback} from 'react'; import {Trans, useTranslation} from 'react-i18next'; import {borderRadius, em, transitionProps} from '~/utils/style'; diff --git a/frontend/packages/core/src/components/GraphPage/NodePropertiesSidebar.tsx b/frontend/packages/core/src/components/GraphPage/NodePropertiesSidebar.tsx index ac7cd129b069fb626296d2402fd746f3f138c185..930b912584cb62e97905379a44e48cfa96d4cfc5 100644 --- a/frontend/packages/core/src/components/GraphPage/NodePropertiesSidebar.tsx +++ b/frontend/packages/core/src/components/GraphPage/NodePropertiesSidebar.tsx @@ -24,19 +24,19 @@ import {useTranslation} from 'react-i18next'; type NodePropertiesSidebarProps = { data?: PropertiesType | null; onClose?: () => unknown; - showNodeDodumentation?: () => unknown; + showNodeDocumentation?: () => unknown; }; const NodePropertiesSidebar: FunctionComponent = ({ data, onClose, - showNodeDodumentation + showNodeDocumentation }) => { const {t} = useTranslation('graph'); return ( - + ); }; diff --git a/frontend/packages/core/src/components/GraphPage/Properties.tsx b/frontend/packages/core/src/components/GraphPage/Properties.tsx index ac719bdf2e4eb48502f9726aa7cb7eab17cc8007..da9b3de695c29ea6e432ebbcc10d210868db3f8e 100644 --- a/frontend/packages/core/src/components/GraphPage/Properties.tsx +++ b/frontend/packages/core/src/components/GraphPage/Properties.tsx @@ -30,10 +30,10 @@ const Header = styled.div` type PropertiesProps = PropertiesType & { expand?: boolean; - showNodeDodumentation?: () => unknown; + showNodeDocumentation?: () => unknown; }; -const Properties: FunctionComponent = ({properties, groups, expand, showNodeDodumentation}) => { +const Properties: FunctionComponent = ({properties, groups, expand, showNodeDocumentation}) => { const {t} = useTranslation('graph'); return ( @@ -43,7 +43,7 @@ const Properties: FunctionComponent = ({properties, groups, exp name={t(`graph:properties.${property.name}`)} values={property.values} key={index} - showNodeDodumentation={showNodeDodumentation} + showNodeDocumentation={showNodeDocumentation} /> ))} {groups?.map((group, index) => ( @@ -54,7 +54,7 @@ const Properties: FunctionComponent = ({properties, groups, exp {...property} key={anotherIndex} expand={expand} - showNodeDodumentation={showNodeDodumentation} + showNodeDocumentation={showNodeDocumentation} /> ))} diff --git a/frontend/packages/core/src/components/GraphPage/Property.tsx b/frontend/packages/core/src/components/GraphPage/Property.tsx index 00648d26c5cf0af875800399beac33536f47fcf6..cdbffb57dc392cee77775461b8552ebbcd5f6266 100644 --- a/frontend/packages/core/src/components/GraphPage/Property.tsx +++ b/frontend/packages/core/src/components/GraphPage/Property.tsx @@ -49,10 +49,10 @@ const Wrapper = styled.div` type PropertyProps = NameValues & { expand?: boolean; - showNodeDodumentation?: () => unknown; + showNodeDocumentation?: () => unknown; }; -const Property: FunctionComponent = ({name, values, expand, showNodeDodumentation}) => { +const Property: FunctionComponent = ({name, values, expand, showNodeDocumentation}) => { return (
{values.map((value, index) => ( - + ))}
diff --git a/frontend/packages/core/src/components/GraphPage/Uploader.tsx b/frontend/packages/core/src/components/GraphPage/Uploader.tsx index 27986a6deaf8ddc4b327a35eb4c2b2d83a657478..b82445da3b6ed97e3314a4451c68f67e04237099 100644 --- a/frontend/packages/core/src/components/GraphPage/Uploader.tsx +++ b/frontend/packages/core/src/components/GraphPage/Uploader.tsx @@ -22,16 +22,16 @@ import Icon from '~/components/Icon'; import styled from 'styled-components'; import {useTranslation} from 'react-i18next'; -const DropZone = styled.div<{actived: boolean}>` +const DropZone = styled.div<{active: boolean}>` ${props => sameBorder({ width: '1px', type: 'dashed', radius: em(16), - color: props.actived ? 'var(--primary-color)' : undefined + color: props.active ? 'var(--primary-color)' : undefined })} background-color: ${props => - props.actived ? 'var(--graph-uploader-active-background-color)' : 'var(--graph-uploader-background-color)'}; + props.active ? 'var(--graph-uploader-active-background-color)' : 'var(--graph-uploader-background-color)'}; ${size('43.2%', '68%')} display: flex; flex-direction: column; @@ -82,12 +82,12 @@ type UploaderProps = { const Uploader: FunctionComponent = ({onClickUpload, onDropFiles}) => { const {t} = useTranslation('graph'); - const [actived, setActived] = useState(false); + const [active, setActive] = useState(false); const onClick = useCallback(() => onClickUpload?.(), [onClickUpload]); const onDrop = useCallback( (e: React.DragEvent) => { e.preventDefault(); - setActived(false); + setActive(false); if (e.dataTransfer && e.dataTransfer.files && e.dataTransfer.files.length) { onDropFiles?.(e.dataTransfer.files); } @@ -99,16 +99,16 @@ const Uploader: FunctionComponent = ({onClickUpload, onDropFiles} if (e.currentTarget.contains(e.relatedTarget as Node | null)) { return; } - setActived(false); + setActive(false); }, []); return ( <> e.preventDefault()} - onDragEnter={() => setActived(true)} + onDragEnter={() => setActive(true)} onDragLeave={onDragLeave} > diff --git a/frontend/packages/core/src/components/HistogramPage/HistogramChart.tsx b/frontend/packages/core/src/components/HistogramPage/HistogramChart.tsx index 5f43715762c3ceb3f939d423cdc0f1e6622b2879..59eeaef3853f3e5354fe2c3cc27c7281c1d3199d 100644 --- a/frontend/packages/core/src/components/HistogramPage/HistogramChart.tsx +++ b/frontend/packages/core/src/components/HistogramPage/HistogramChart.tsx @@ -14,6 +14,8 @@ * limitations under the License. */ +// cSpell:words npts + import type {EChartOption, ECharts, EChartsConvertFinder} from 'echarts'; import type {HistogramData, OffsetData, OverlayData, OverlayDataItem} from '~/resource/histogram'; import LineChart, {LineChartRef} from '~/components/LineChart'; diff --git a/frontend/packages/core/src/components/Input.tsx b/frontend/packages/core/src/components/Input.tsx index 20c2d5acbe9f54af48a8a9ac978dcbc67038fb71..8385e20a2ef854f43f2fa77126f572cb44d8c4bc 100644 --- a/frontend/packages/core/src/components/Input.tsx +++ b/frontend/packages/core/src/components/Input.tsx @@ -45,14 +45,14 @@ const StyledInput = styled.input<{rounded?: boolean}>` } `; -type CustomeInputProps = { +type CustomInputProps = { rounded?: boolean; value?: string; onChange?: (value: string) => unknown; }; -export type InputProps = Omit, keyof CustomeInputProps | 'type' | 'className'> & - CustomeInputProps; +export type InputProps = Omit, keyof CustomInputProps | 'type' | 'className'> & + CustomInputProps; const Input = React.forwardRef( ({rounded, value, onChange, className, ...props}, ref) => ( diff --git a/frontend/packages/core/src/components/SamplePage/ImagePreviewer.tsx b/frontend/packages/core/src/components/SamplePage/ImagePreviewer.tsx index bcbb19f56533b4fe3a82ba22b7ba1f40d1a7b665..ee529f6e53a70f79eeb690d27bdcc274735dc237 100644 --- a/frontend/packages/core/src/components/SamplePage/ImagePreviewer.tsx +++ b/frontend/packages/core/src/components/SamplePage/ImagePreviewer.tsx @@ -61,7 +61,7 @@ const Header = styled.div` font-size: ${em(10)}; > a { - display: inline-blcok; + display: inline-block; line-height: 1; height: ${em(14)}; diff --git a/frontend/packages/core/src/components/SamplePage/SampleChart.tsx b/frontend/packages/core/src/components/SamplePage/SampleChart.tsx index 5ae1363daf3859421c621569f382083de07414f0..6f613a9a858be3ee0fc3bc213b2bf0d2f523fe6e 100644 --- a/frontend/packages/core/src/components/SamplePage/SampleChart.tsx +++ b/frontend/packages/core/src/components/SamplePage/SampleChart.tsx @@ -301,7 +301,7 @@ const SampleChart: FunctionComponent = ({ return null; }, [viewed, loading, error, data, step, entityProps, t, content]); - const Previewer = useMemo(() => { + const Previewer = useMemo(() => { if (!previewer) { return null; } diff --git a/frontend/packages/core/src/components/SamplePage/StepSlider.tsx b/frontend/packages/core/src/components/SamplePage/StepSlider.tsx index 3eadba2e9feb7df2118784585d8c62315e3bef78..d622142a8d6cca4bd3fc0e5cb405b59c59720d1b 100644 --- a/frontend/packages/core/src/components/SamplePage/StepSlider.tsx +++ b/frontend/packages/core/src/components/SamplePage/StepSlider.tsx @@ -47,7 +47,8 @@ const Label = styled.div` font-size: ${em(10)}; > a { - display: inline-blcok; + display: inline-block; + cursor: pointer; line-height: 1; height: ${em(14)}; @@ -112,10 +113,10 @@ const StepSlider: FunctionComponent = ({onChange, onChangeCompl
{`${t('sample:step')}: ${steps[step] ?? '...'}`}
diff --git a/frontend/packages/core/src/components/StackChart.tsx b/frontend/packages/core/src/components/StackChart.tsx index 9675a90980ad16147668e40f2d5339834360c4fe..f858e22ca5e03d7255cb905b2cabffbf208bbf5a 100644 --- a/frontend/packages/core/src/components/StackChart.tsx +++ b/frontend/packages/core/src/components/StackChart.tsx @@ -14,6 +14,8 @@ * limitations under the License. */ +// cSpell:words coord zlevel + import * as chart from '~/utils/chart'; import type {EChartOption, ECharts, EChartsConvertFinder} from 'echarts'; diff --git a/frontend/packages/core/src/hooks/useECharts.ts b/frontend/packages/core/src/hooks/useECharts.ts index a0fe7d7014c9051cb025a344cc78f2a5e28f3903..ef228e2347de186bff7446548b949ac027b7e361 100644 --- a/frontend/packages/core/src/hooks/useECharts.ts +++ b/frontend/packages/core/src/hooks/useECharts.ts @@ -14,6 +14,8 @@ * limitations under the License. */ +// cSpell:words zlevel + import {MutableRefObject, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState} from 'react'; import {position, primaryColor, size} from '~/utils/style'; diff --git a/frontend/packages/core/src/pages/graph.tsx b/frontend/packages/core/src/pages/graph.tsx index c4e2f23a07ea483edb006f3e9045c1d30fbb54c2..7efdd1e39cbf7b2f70681caffa6059ecbbf9fad9 100644 --- a/frontend/packages/core/src/pages/graph.tsx +++ b/frontend/packages/core/src/pages/graph.tsx @@ -115,7 +115,7 @@ const Graph: FunctionComponent = () => { useEffect(() => { if (data?.data.size) { - setFiles([new File([data.data], data.filename || 'unknwon_model')]); + setFiles([new File([data.data], data.filename || 'unknown_model')]); } }, [data]); @@ -185,7 +185,7 @@ const Graph: FunctionComponent = () => { setNodeData(null)} - showNodeDodumentation={() => graph.current?.showNodeDocumentation(nodeData)} + showNodeDocumentation={() => graph.current?.showNodeDocumentation(nodeData)} /> ); diff --git a/frontend/packages/core/src/resource/graph/types.ts b/frontend/packages/core/src/resource/graph/types.ts index fd9bfaee3e77ddfb07195f2a7f41016435872c41..94efd8c5eb6d280ffd56c4046997d713a36241ec 100644 --- a/frontend/packages/core/src/resource/graph/types.ts +++ b/frontend/packages/core/src/resource/graph/types.ts @@ -14,6 +14,8 @@ * limitations under the License. */ +// cSpell:words strs + export type Property = { name?: string; value: string; diff --git a/frontend/packages/core/src/routes/index.ts b/frontend/packages/core/src/routes/index.ts index 9113405d7a0a8bf171bd8d44cf73c638d2c1e995..a4b5c3f2b2255fa878e305f362c3e3052bccd08c 100644 --- a/frontend/packages/core/src/routes/index.ts +++ b/frontend/packages/core/src/routes/index.ts @@ -1,3 +1,19 @@ +/** + * 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, LazyExoticComponent} from 'react'; export enum Pages { diff --git a/frontend/packages/core/src/store/graph/actions.ts b/frontend/packages/core/src/store/graph/actions.ts index e48ec4a0058c5d0936d2adda9221845fc9b8752b..1c52c8950341618a3602c4bc23057cd9a4596b4c 100644 --- a/frontend/packages/core/src/store/graph/actions.ts +++ b/frontend/packages/core/src/store/graph/actions.ts @@ -1,3 +1,19 @@ +/** + * 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 {ActionTypes} from './types'; import type {Model} from './types'; diff --git a/frontend/packages/core/src/store/graph/reducers.ts b/frontend/packages/core/src/store/graph/reducers.ts index 215d2d67c485a62cf2dafddb031fc2770bf593b0..1c9d0f795d42635aec665c9bd64953f827c02bc8 100644 --- a/frontend/packages/core/src/store/graph/reducers.ts +++ b/frontend/packages/core/src/store/graph/reducers.ts @@ -1,3 +1,19 @@ +/** + * 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 {GraphActionTypes, GraphState} from './types'; import {ActionTypes} from './types'; diff --git a/frontend/packages/core/src/store/graph/selectors.ts b/frontend/packages/core/src/store/graph/selectors.ts index ce48d420ad32b2129207921fcfee267957e4e579..98b113b1f3a200785476c0d464d386d4e11dd323 100644 --- a/frontend/packages/core/src/store/graph/selectors.ts +++ b/frontend/packages/core/src/store/graph/selectors.ts @@ -1,3 +1,19 @@ +/** + * 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 {RootState} from '../index'; export const model = (state: RootState) => state.graph.model; diff --git a/frontend/packages/core/src/store/graph/types.ts b/frontend/packages/core/src/store/graph/types.ts index 006281ce58faf2a2be227137488346514f88607e..52b2801b9a46769653e63542798b82cca481767c 100644 --- a/frontend/packages/core/src/store/graph/types.ts +++ b/frontend/packages/core/src/store/graph/types.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + export type Model = FileList | File[] | null; export enum ActionTypes { diff --git a/frontend/packages/core/src/store/index.ts b/frontend/packages/core/src/store/index.ts index 2d7440bb0a8018ed4c799691f2e4212711d32251..ff176b424d832936b3c442a9bc0344cd871e7f85 100644 --- a/frontend/packages/core/src/store/index.ts +++ b/frontend/packages/core/src/store/index.ts @@ -1,3 +1,19 @@ +/** + * 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 graphActions from './graph/actions'; import * as graphSelectors from './graph/selectors'; import * as runsActions from './runs/actions'; diff --git a/frontend/packages/core/src/store/runs/actions.ts b/frontend/packages/core/src/store/runs/actions.ts index e80d89209e9bb8af7ced667347afb1d53a53517d..278ba5e14dba22ec474e768abb04fc8a64694dbf 100644 --- a/frontend/packages/core/src/store/runs/actions.ts +++ b/frontend/packages/core/src/store/runs/actions.ts @@ -1,3 +1,19 @@ +/** + * 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 {Page, Runs} from './types'; import {ActionTypes} from './types'; diff --git a/frontend/packages/core/src/store/runs/reducers.ts b/frontend/packages/core/src/store/runs/reducers.ts index 02c52a89cc22ee719ebdeafdd841af1f2d411ef0..a8ac17898b6adc1712abd3e0d7ae0fe4ba0b9f19 100644 --- a/frontend/packages/core/src/store/runs/reducers.ts +++ b/frontend/packages/core/src/store/runs/reducers.ts @@ -1,3 +1,19 @@ +/** + * 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 {RunsActionTypes, RunsState} from './types'; import {ActionTypes} from './types'; diff --git a/frontend/packages/core/src/store/runs/selectors.ts b/frontend/packages/core/src/store/runs/selectors.ts index 1a27219e4da5d1bf117d04f0cc295e0171c5a89f..e951031276afb82778e008bf7980a702bb531398 100644 --- a/frontend/packages/core/src/store/runs/selectors.ts +++ b/frontend/packages/core/src/store/runs/selectors.ts @@ -1,3 +1,19 @@ +/** + * 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 {Page} from './types'; import type {RootState} from '../index'; diff --git a/frontend/packages/core/src/store/runs/types.ts b/frontend/packages/core/src/store/runs/types.ts index ae24045b246c2ee1d951a23f1bce98dd87edf1ff..bff16a95a336bf4a9aac55a44984438b753306dd 100644 --- a/frontend/packages/core/src/store/runs/types.ts +++ b/frontend/packages/core/src/store/runs/types.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + export type Runs = string[]; export enum ActionTypes { diff --git a/frontend/packages/core/src/store/theme/actions.ts b/frontend/packages/core/src/store/theme/actions.ts index a1537dd92b9715062afff82401e3934246aafb9a..356968865fa442a63bdb1f33f39f624c813c1006 100644 --- a/frontend/packages/core/src/store/theme/actions.ts +++ b/frontend/packages/core/src/store/theme/actions.ts @@ -1,3 +1,19 @@ +/** + * 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 {ActionTypes} from './types'; import type {Theme} from './types'; diff --git a/frontend/packages/core/src/store/theme/reducers.ts b/frontend/packages/core/src/store/theme/reducers.ts index 290e9dd2f2ecabf2c8850dd6434e2c294f47cb03..35b644c8e328946bb392f19bdb9111d9b6f728e4 100644 --- a/frontend/packages/core/src/store/theme/reducers.ts +++ b/frontend/packages/core/src/store/theme/reducers.ts @@ -1,3 +1,19 @@ +/** + * 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 {THEME, autoTheme} from '~/utils/theme'; import type {ThemeActionTypes, ThemeState} from './types'; diff --git a/frontend/packages/core/src/store/theme/selectors.ts b/frontend/packages/core/src/store/theme/selectors.ts index e4eca40d52ff9db1f37a2c500931bd69fceecf11..95191d02c1d3f43d91d497ac753b97fb08d9f1d1 100644 --- a/frontend/packages/core/src/store/theme/selectors.ts +++ b/frontend/packages/core/src/store/theme/selectors.ts @@ -1,3 +1,19 @@ +/** + * 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 {RootState} from '../index'; export const theme = (state: RootState) => state.theme.theme; diff --git a/frontend/packages/core/src/store/theme/types.ts b/frontend/packages/core/src/store/theme/types.ts index 7f81881be167fb3af1d9f3dede627e9da7462652..3decc3bbb8730ed000f4174ec6295efc865c9ec6 100644 --- a/frontend/packages/core/src/store/theme/types.ts +++ b/frontend/packages/core/src/store/theme/types.ts @@ -1,3 +1,19 @@ +/** + * 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 {Theme} from '~/utils/theme'; export type {Theme} from '~/utils/theme'; diff --git a/frontend/packages/core/src/utils/audio.ts b/frontend/packages/core/src/utils/audio.ts index 259b2dae0b3ab554a9ad93079867654264b258a7..40aa7c2087614b9efe8ef158130a51e9f71da777 100644 --- a/frontend/packages/core/src/utils/audio.ts +++ b/frontend/packages/core/src/utils/audio.ts @@ -14,6 +14,8 @@ * limitations under the License. */ +// cSpell:words mpga + interface AudioPlayerOptions { context?: AudioContext; volume?: number; diff --git a/frontend/packages/core/types/ResizeObserver.d.ts b/frontend/packages/core/types/ResizeObserver.d.ts index 2399bba55d02540de8ce478d71a5e560354a5055..09f9fb157d7429edb1c03f6a5928de79c13ca993 100644 --- a/frontend/packages/core/types/ResizeObserver.d.ts +++ b/frontend/packages/core/types/ResizeObserver.d.ts @@ -1,3 +1,21 @@ +/** + * 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 unobserves + /** * The **ResizeObserver** interface reports changes to the dimensions of an * [Element](https://developer.mozilla.org/en-US/docs/Web/API/Element)'s content diff --git a/frontend/packages/core/types/echarts.d.ts b/frontend/packages/core/types/echarts.d.ts index 03a1cc6ee3908e098d441ee874335d43cfff602a..4e441fcca410da0baf0b8efcf5ea5784a2d24162 100644 --- a/frontend/packages/core/types/echarts.d.ts +++ b/frontend/packages/core/types/echarts.d.ts @@ -1 +1,17 @@ +/** + * 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. + */ + declare module 'echarts-gl'; diff --git a/frontend/packages/core/types/global.d.ts b/frontend/packages/core/types/global.d.ts index 5281f474198bd8d78c29c732c012e8772f7260f1..56955d4059046eff0076b008936b94ca3f0ef58c 100644 --- a/frontend/packages/core/types/global.d.ts +++ b/frontend/packages/core/types/global.d.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + declare global { interface Window { webkitAudioContext: AudioContext; diff --git a/frontend/packages/core/types/static.d.ts b/frontend/packages/core/types/static.d.ts index fccc9a9d4644c41d5eb424024b5f5e4a2d7a2b2d..1f883c73a658f89325d267adc39b6f819fda8703 100644 --- a/frontend/packages/core/types/static.d.ts +++ b/frontend/packages/core/types/static.d.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + /* Use this file to declare any custom file extensions for importing */ /* Use this folder to also add/extend a package d.ts file, if needed. */ diff --git a/frontend/packages/demo/builder/audio.ts b/frontend/packages/demo/builder/audio.ts index 6665ce61d918a775389fbe18f63c15a985b7d613..e48e0e4b11c4981dd15b997d27ae99841ea479a4 100644 --- a/frontend/packages/demo/builder/audio.ts +++ b/frontend/packages/demo/builder/audio.ts @@ -1,3 +1,19 @@ +/** + * 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 {Data, Worker} from './types'; interface Audio { diff --git a/frontend/packages/demo/builder/common.ts b/frontend/packages/demo/builder/common.ts index 550c65d74778f5c8ffd5223ca6ba9c0522f4d014..f6f95783b827a13b194a804810f854911d708bf5 100644 --- a/frontend/packages/demo/builder/common.ts +++ b/frontend/packages/demo/builder/common.ts @@ -1,3 +1,19 @@ +/** + * 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 {Worker} from './types'; const worker: Worker = async io => { diff --git a/frontend/packages/demo/builder/graph.ts b/frontend/packages/demo/builder/graph.ts index fbbfc264f33cb264a49e38f89c34ff6b71088d50..9eb0e2921554f3f83e92ab18d10ee8cc154f88c5 100644 --- a/frontend/packages/demo/builder/graph.ts +++ b/frontend/packages/demo/builder/graph.ts @@ -1,3 +1,19 @@ +/** + * 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 {Worker} from './types'; const worker: Worker = async io => { diff --git a/frontend/packages/demo/builder/high-dimensional.ts b/frontend/packages/demo/builder/high-dimensional.ts index 9cee830ac6d902eec3ba3fd83111094d1ad27a39..91767a57805cd2c4ad0a1b4bbd50777c0a8a3e94 100644 --- a/frontend/packages/demo/builder/high-dimensional.ts +++ b/frontend/packages/demo/builder/high-dimensional.ts @@ -1,3 +1,19 @@ +/** + * 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 {Worker} from './types'; const worker: Worker = async io => { diff --git a/frontend/packages/demo/builder/histogram.ts b/frontend/packages/demo/builder/histogram.ts index ba6875f98b60da4bae02a4cb0090ccea652a898d..90456fbd60c04fad1f89d7d5833ccddd480529ce 100644 --- a/frontend/packages/demo/builder/histogram.ts +++ b/frontend/packages/demo/builder/histogram.ts @@ -1,3 +1,19 @@ +/** + * 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 {Data, Worker} from './types'; const worker: Worker = async io => { diff --git a/frontend/packages/demo/builder/image.ts b/frontend/packages/demo/builder/image.ts index 0dd0fcb165d3cda9be8ab486a29efdac83484112..dcf03c0f970dd4ed5aaa0bbdc3b749919c5a2bd9 100644 --- a/frontend/packages/demo/builder/image.ts +++ b/frontend/packages/demo/builder/image.ts @@ -1,3 +1,19 @@ +/** + * 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 {Data, Worker} from './types'; interface Image { diff --git a/frontend/packages/demo/builder/index.ts b/frontend/packages/demo/builder/index.ts index e3acea4960ae26ebbc335cd73ece28d94c804b01..42731ba5d27707e83d45d71d6da11e156b377fd2 100644 --- a/frontend/packages/demo/builder/index.ts +++ b/frontend/packages/demo/builder/index.ts @@ -1,3 +1,19 @@ +/** + * 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 */ import IO from './io'; diff --git a/frontend/packages/demo/builder/io.ts b/frontend/packages/demo/builder/io.ts index 75d487344696d2632fc41fb62120af4ac31015e8..13cc54a01ef9883c553ee14237e159098f30b48d 100644 --- a/frontend/packages/demo/builder/io.ts +++ b/frontend/packages/demo/builder/io.ts @@ -1,3 +1,19 @@ +/** + * 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 */ import crypto, {BinaryLike} from 'crypto'; diff --git a/frontend/packages/demo/builder/pr-curve.ts b/frontend/packages/demo/builder/pr-curve.ts index 4663e18004c537f0031e021e0490dbfe6a2c7af7..1ac77d9ecb3d5e9f817c7392a0ff89c5f861648b 100644 --- a/frontend/packages/demo/builder/pr-curve.ts +++ b/frontend/packages/demo/builder/pr-curve.ts @@ -1,3 +1,19 @@ +/** + * 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 {Data, Worker} from './types'; const worker: Worker = async io => { diff --git a/frontend/packages/demo/builder/scalar.ts b/frontend/packages/demo/builder/scalar.ts index 118a10cc9e1f6aee97e387d7996231769950bb9b..4ab584db4a430bceac663e315b4bdb0497acc548 100644 --- a/frontend/packages/demo/builder/scalar.ts +++ b/frontend/packages/demo/builder/scalar.ts @@ -1,3 +1,19 @@ +/** + * 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 {Data, Worker} from './types'; const worker: Worker = async io => { diff --git a/frontend/packages/demo/builder/types.ts b/frontend/packages/demo/builder/types.ts index 360b533e995d0971cf1e2a52a1983e086c3d0334..529bf092616f737905d9a5ce11ea64f32f1ed270 100644 --- a/frontend/packages/demo/builder/types.ts +++ b/frontend/packages/demo/builder/types.ts @@ -1,3 +1,19 @@ +/** + * 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 IO from './io'; export type Worker = (io: IO) => Promise; diff --git a/frontend/packages/demo/index.ts b/frontend/packages/demo/index.ts index da4eeb495e39de3b32b516d813d888713683790f..21f635d9b6e68adfcd69e9cd4743aa1d432e1660 100644 --- a/frontend/packages/demo/index.ts +++ b/frontend/packages/demo/index.ts @@ -1,3 +1,19 @@ +/** + * 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 {Request, Response} from 'express'; import IO from './builder/io'; diff --git a/frontend/packages/mock/assets/image/8.jpeg b/frontend/packages/mock/assets/image/8.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..da1615aa19a35c7b0aa3bcc5721da95498a13785 Binary files /dev/null and b/frontend/packages/mock/assets/image/8.jpeg differ diff --git a/frontend/packages/mock/data/audio/audio.ts b/frontend/packages/mock/data/audio/audio.ts index 16d7d55b9bf533996d1ea37327503940d9b57930..95ba3b66b6d075cd32bb2dccf6f3cee47147a972 100644 --- a/frontend/packages/mock/data/audio/audio.ts +++ b/frontend/packages/mock/data/audio/audio.ts @@ -1,3 +1,19 @@ +/** + * 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 {Request, Response} from 'express'; import fs from 'fs/promises'; diff --git a/frontend/packages/mock/data/audio/list.ts b/frontend/packages/mock/data/audio/list.ts index e521a586a734bf29d92bced62b6b62fb4e6f8e92..5e12bd2b3734e5f9df3d57fd0209023f3dc012b8 100644 --- a/frontend/packages/mock/data/audio/list.ts +++ b/frontend/packages/mock/data/audio/list.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + export default [ { wallTime: 1512549785061.623, diff --git a/frontend/packages/mock/data/audio/tags.ts b/frontend/packages/mock/data/audio/tags.ts index e98589b5e5dce55f0581e8e6d551366bacdcf2bb..ec7d5137f8d3bdbd47c5f90eecca67d0765445a7 100644 --- a/frontend/packages/mock/data/audio/tags.ts +++ b/frontend/packages/mock/data/audio/tags.ts @@ -1,3 +1,21 @@ +/** + * 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:disable + export default { runs: ['train', 'test'], tags: [ diff --git a/frontend/packages/mock/data/components.ts b/frontend/packages/mock/data/components.ts index 2ded8800686531f094bf31c89b0cfbb4b2a5c0af..2fcc7c4ed41ca04e34e11dbb08d91c35e8b16397 100644 --- a/frontend/packages/mock/data/components.ts +++ b/frontend/packages/mock/data/components.ts @@ -1 +1,17 @@ +/** + * 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. + */ + export default ['embeddings', 'scalar', 'image', 'audio', 'graph', 'histogram', 'pr_curve']; diff --git a/frontend/packages/mock/data/embedding/embedding.ts b/frontend/packages/mock/data/embedding/embedding.ts index 9a2b1e567e0ca6dd0e261d52224d897eb7d38ae2..3de27716466deed52818751b2d13c19bbb743bd5 100644 --- a/frontend/packages/mock/data/embedding/embedding.ts +++ b/frontend/packages/mock/data/embedding/embedding.ts @@ -1,3 +1,19 @@ +/** + * 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 {Request} from 'express'; export default (req: Request) => { diff --git a/frontend/packages/mock/data/embedding/tags.ts b/frontend/packages/mock/data/embedding/tags.ts index a439d1ad1d2cb67eeb429523ff26a71f864d4cbc..e79e9fe25495c2bd02e95dfb29119d1a6bd0f803 100644 --- a/frontend/packages/mock/data/embedding/tags.ts +++ b/frontend/packages/mock/data/embedding/tags.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + export default { runs: ['train', 'test'], tags: [ diff --git a/frontend/packages/mock/data/graph/graph.ts b/frontend/packages/mock/data/graph/graph.ts index d1f6f9a89f7c8d32c77a986ef58cad0145bc4d92..9b92e26480cab8c32c57701ed53a27caad2aadb4 100644 --- a/frontend/packages/mock/data/graph/graph.ts +++ b/frontend/packages/mock/data/graph/graph.ts @@ -1,3 +1,21 @@ +/** + * 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:disable + import {Request, Response} from 'express'; import fetch from 'isomorphic-unfetch'; diff --git a/frontend/packages/mock/data/histogram/list.ts b/frontend/packages/mock/data/histogram/list.ts index adbabff86bab3b429a7c663643f3ef804f080045..2954ea6906bc5815a4ed5bcee7d9d0b8657f76d2 100644 --- a/frontend/packages/mock/data/histogram/list.ts +++ b/frontend/packages/mock/data/histogram/list.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + export default [ [ 1515224840945.252, diff --git a/frontend/packages/mock/data/histogram/tags.ts b/frontend/packages/mock/data/histogram/tags.ts index 8645d5ed619dd78d3527821010724803a3edd0d0..54538f02a4d231f5e3cc2347107ffd0fa15a4dcb 100644 --- a/frontend/packages/mock/data/histogram/tags.ts +++ b/frontend/packages/mock/data/histogram/tags.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + export default { runs: ['train', 'test'], tags: [ diff --git a/frontend/packages/mock/data/image/image.ts b/frontend/packages/mock/data/image/image.ts index b77837c89167342b41f3aea0d4c39b97eea01c41..9ef121a6aba6bedb43878a361f7c15f0ee71ac8a 100644 --- a/frontend/packages/mock/data/image/image.ts +++ b/frontend/packages/mock/data/image/image.ts @@ -1,10 +1,26 @@ +/** + * 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 {Request, Response} from 'express'; import fs from 'fs/promises'; import mime from 'mime-types'; import path from 'path'; -const images = ['1.jpeg', '2.jpeg', '3.jpeg', '4.jpeg', '5.gif', '6.gif', '7.gif']; +const images = ['1.jpeg', '2.jpeg', '3.jpeg', '4.jpeg', '5.gif', '6.gif', '7.gif', '8.jpeg']; export default async (req: Request, res: Response) => { const index = (+req.query.index ?? 0) % images.length; diff --git a/frontend/packages/mock/data/image/list.ts b/frontend/packages/mock/data/image/list.ts index e521a586a734bf29d92bced62b6b62fb4e6f8e92..5e12bd2b3734e5f9df3d57fd0209023f3dc012b8 100644 --- a/frontend/packages/mock/data/image/list.ts +++ b/frontend/packages/mock/data/image/list.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + export default [ { wallTime: 1512549785061.623, diff --git a/frontend/packages/mock/data/image/tags.ts b/frontend/packages/mock/data/image/tags.ts index eb149ac5f1dbc2a2bea8162fd03a38320274114d..ac792039a042b2e69d223608a4d87d83b1f3abde 100644 --- a/frontend/packages/mock/data/image/tags.ts +++ b/frontend/packages/mock/data/image/tags.ts @@ -1,3 +1,21 @@ +/** + * 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:disable + export default { runs: ['train', 'test'], tags: [ diff --git a/frontend/packages/mock/data/pr-curve/list.ts b/frontend/packages/mock/data/pr-curve/list.ts index 3ddb98d8b674f8c1b8e7b87d0eb610c00b6fb928..e895500613d69e8ee4d8ea68e88bcd77aa844dc5 100644 --- a/frontend/packages/mock/data/pr-curve/list.ts +++ b/frontend/packages/mock/data/pr-curve/list.ts @@ -1,3 +1,19 @@ +/** + * 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 {Request} from 'express'; export default (request: Request) => { diff --git a/frontend/packages/mock/data/pr-curve/steps.ts b/frontend/packages/mock/data/pr-curve/steps.ts index e5632b6a4ea12c542ba04b3890eadde11603bd33..2c324d6bd94339b9ff4944efbe521388ff6f31db 100644 --- a/frontend/packages/mock/data/pr-curve/steps.ts +++ b/frontend/packages/mock/data/pr-curve/steps.ts @@ -1,3 +1,19 @@ +/** + * 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 {Request} from 'express'; export default (request: Request) => { diff --git a/frontend/packages/mock/data/pr-curve/tags.ts b/frontend/packages/mock/data/pr-curve/tags.ts index a439d1ad1d2cb67eeb429523ff26a71f864d4cbc..e79e9fe25495c2bd02e95dfb29119d1a6bd0f803 100644 --- a/frontend/packages/mock/data/pr-curve/tags.ts +++ b/frontend/packages/mock/data/pr-curve/tags.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + export default { runs: ['train', 'test'], tags: [ diff --git a/frontend/packages/mock/data/scalar/list.ts b/frontend/packages/mock/data/scalar/list.ts index 39f10cccd16b413c6242a3148b0a5e9f0c20fe41..50a34e50c5cde5a0aafa420eb383ddf736789547 100644 --- a/frontend/packages/mock/data/scalar/list.ts +++ b/frontend/packages/mock/data/scalar/list.ts @@ -1,3 +1,19 @@ +/** + * 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 {Request} from 'express'; export default (request: Request) => { diff --git a/frontend/packages/mock/data/scalar/tags.ts b/frontend/packages/mock/data/scalar/tags.ts index a439d1ad1d2cb67eeb429523ff26a71f864d4cbc..e79e9fe25495c2bd02e95dfb29119d1a6bd0f803 100644 --- a/frontend/packages/mock/data/scalar/tags.ts +++ b/frontend/packages/mock/data/scalar/tags.ts @@ -1,3 +1,19 @@ +/** + * 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. + */ + export default { runs: ['train', 'test'], tags: [ diff --git a/frontend/packages/mock/index.ts b/frontend/packages/mock/index.ts index dc8d3ad8b01b27641cbb7e4818b4e04a7d2220b5..09b65f36fec2acc40f5db54b3ad45fab3d5c92eb 100644 --- a/frontend/packages/mock/index.ts +++ b/frontend/packages/mock/index.ts @@ -1,3 +1,19 @@ +/** + * 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 */ import express from 'express'; diff --git a/frontend/packages/mock/middleware.ts b/frontend/packages/mock/middleware.ts index f9fd9e34af6656e08209d115e357f360566e2005..38641900b74c35ecc920d55856492f9015e2f74c 100644 --- a/frontend/packages/mock/middleware.ts +++ b/frontend/packages/mock/middleware.ts @@ -1,3 +1,19 @@ +/** + * 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 {Request, Response} from 'express'; import faker from 'faker'; diff --git a/frontend/packages/netron/src/index.js b/frontend/packages/netron/src/index.js index 278060a0e0db75dd5e67db3c12c9fcec3def05e3..64ca6850b7c02a61b98b9f35817559828f26a5af 100644 --- a/frontend/packages/netron/src/index.js +++ b/frontend/packages/netron/src/index.js @@ -14,6 +14,8 @@ * limitations under the License. */ +// cSpell:words actived nextcode + const view = require('./view'); const host = {}; diff --git a/frontend/packages/netron/src/view.js b/frontend/packages/netron/src/view.js index 6505068f92fc43946196178387fd4a880dc7d7f3..7ad3c509dd9546d3a2fb722f219051bbd46120e4 100644 --- a/frontend/packages/netron/src/view.js +++ b/frontend/packages/netron/src/view.js @@ -14,6 +14,8 @@ * limitations under the License. */ +// cSpell:words grapher selectall nodesep ranksep rankdir pbtxt + const zip = require('netron/src/zip'); const gzip = require('netron/src/gzip'); const tar = require('netron/src/tar'); @@ -1337,7 +1339,7 @@ view.ModelFactoryService = class { _filter(context) { const identifier = context.identifier.toLowerCase(); - const list = this._extensions.filter(entry => identifier.endsWith(entry.extension)).map(extry => extry.id); + const list = this._extensions.filter(entry => identifier.endsWith(entry.extension)).map(entry => entry.id); return Array.from(new Set(list)); } @@ -1347,6 +1349,7 @@ view.ModelFactoryService = class { return Promise.reject(new ModelError('File has no content.', true)); } const list = [ + // cSpell:disable {name: 'ELF executable', value: /^\x7FELF/}, {name: 'Git LFS header', value: /^version https:\/\/git-lfs.github.com\/spec\/v1\n/}, {name: 'Git LFS header', value: /^oid sha256:/}, @@ -1358,6 +1361,7 @@ view.ModelFactoryService = class { {name: 'StringIntLabelMapProto data', value: /^item\s*{\r?\n\s*id:/}, {name: 'StringIntLabelMapProto data', value: /^item\s*{\r?\n\s*name:/}, {name: 'Python source code', value: /^\s*import sys, types, os;/} + // cSpell:enable ]; const text = new TextDecoder().decode(buffer.subarray(0, Math.min(1024, buffer.length))); for (const item of list) { diff --git a/frontend/packages/server/ecosystem.config.d.ts b/frontend/packages/server/ecosystem.config.d.ts index 2421a1334fd123e79dca07e3b258dde56172fa01..4c8eb09fc634aabc5778c6b1b316962e9a6c6643 100644 --- a/frontend/packages/server/ecosystem.config.d.ts +++ b/frontend/packages/server/ecosystem.config.d.ts @@ -1,3 +1,21 @@ +/** + * 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 autorestart + declare type App = { name: string; script: string; diff --git a/frontend/packages/server/global.d.ts b/frontend/packages/server/global.d.ts index 1f082efa972dc85e2d998c6a6e71a307e2aa8f85..55892e602b5b8950097c8e368cf4b6c13591c9c3 100644 --- a/frontend/packages/server/global.d.ts +++ b/frontend/packages/server/global.d.ts @@ -1 +1,17 @@ +/** + * 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. + */ + declare module '@visualdl/core/builder/environment'; diff --git a/frontend/packages/server/index.ts b/frontend/packages/server/index.ts index 88b19491a9288abc48d89abc537d4864a2f42af2..76f6caab08798df54c9ca7f03fe089676a0c5144 100644 --- a/frontend/packages/server/index.ts +++ b/frontend/packages/server/index.ts @@ -1,3 +1,19 @@ +/** + * 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 */ import {config} from 'dotenv';