diff --git a/eventmesh-dashboard-view/src/app.const.ts b/eventmesh-dashboard-view/src/app.const.ts index 9e274e41..229ee9fb 100644 --- a/eventmesh-dashboard-view/src/app.const.ts +++ b/eventmesh-dashboard-view/src/app.const.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 const AppSectionBoxShadow = '2px 2px 40px 2px rgba(0,0,0,.05)' export const AppBackgroundColor = '#f9fafb' export const AppThemeConfig = { diff --git a/eventmesh-dashboard-view/src/assets/icons/index.ts b/eventmesh-dashboard-view/src/assets/icons/index.ts index 77aa3bd0..7b959256 100644 --- a/eventmesh-dashboard-view/src/assets/icons/index.ts +++ b/eventmesh-dashboard-view/src/assets/icons/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 HomeOutlinedIcon from '@mui/icons-material/HomeOutlined' import AddCircleOutlineOutlinedIcon from '@mui/icons-material/AddCircleOutlineOutlined' import FoundationIcon from '@mui/icons-material/Foundation' diff --git a/eventmesh-dashboard-view/src/components/page/RootLayout.tsx b/eventmesh-dashboard-view/src/components/page/RootLayout.tsx index 3eb41b70..462b3bb5 100644 --- a/eventmesh-dashboard-view/src/components/page/RootLayout.tsx +++ b/eventmesh-dashboard-view/src/components/page/RootLayout.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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, { forwardRef } from 'react' import { Box, Stack, StackProps } from '@mui/material' diff --git a/eventmesh-dashboard-view/src/routes/cluster/Clusters.tsx b/eventmesh-dashboard-view/src/routes/cluster/Clusters.tsx index 680e5b29..060a18d0 100644 --- a/eventmesh-dashboard-view/src/routes/cluster/Clusters.tsx +++ b/eventmesh-dashboard-view/src/routes/cluster/Clusters.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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, { forwardRef } from 'react' import { Box, BoxProps } from '@mui/material' import RootLayout from '../../components/page/RootLayout' diff --git a/eventmesh-dashboard-view/src/routes/cluster/overview/Overview.tsx b/eventmesh-dashboard-view/src/routes/cluster/overview/Overview.tsx index 1fd0c6b5..61c2c89c 100644 --- a/eventmesh-dashboard-view/src/routes/cluster/overview/Overview.tsx +++ b/eventmesh-dashboard-view/src/routes/cluster/overview/Overview.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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, { forwardRef } from 'react' import { Box, BoxProps } from '@mui/material' import Construction from '../../../components/Construction' diff --git a/eventmesh-dashboard-view/src/routes/cluster/topic/Topic.tsx b/eventmesh-dashboard-view/src/routes/cluster/topic/Topic.tsx index 0677f37f..d0ec53c6 100644 --- a/eventmesh-dashboard-view/src/routes/cluster/topic/Topic.tsx +++ b/eventmesh-dashboard-view/src/routes/cluster/topic/Topic.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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, { forwardRef } from 'react' import { Box, BoxProps, Stack } from '@mui/material' import Page from '../../../components/page/Layout' diff --git a/eventmesh-dashboard-view/src/routes/cluster/topic/stats/Stats.tsx b/eventmesh-dashboard-view/src/routes/cluster/topic/stats/Stats.tsx index 3f6ba800..479dcb94 100644 --- a/eventmesh-dashboard-view/src/routes/cluster/topic/stats/Stats.tsx +++ b/eventmesh-dashboard-view/src/routes/cluster/topic/stats/Stats.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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, { forwardRef, useState, useEffect } from 'react' import { Stack, StackProps, Select, MenuItem, Grid } from '@mui/material' import TopicCount from './TopicCount' diff --git a/eventmesh-dashboard-view/src/routes/cluster/topic/stats/TopicCount.tsx b/eventmesh-dashboard-view/src/routes/cluster/topic/stats/TopicCount.tsx index c1451c03..304f5796 100644 --- a/eventmesh-dashboard-view/src/routes/cluster/topic/stats/TopicCount.tsx +++ b/eventmesh-dashboard-view/src/routes/cluster/topic/stats/TopicCount.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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, { forwardRef, useEffect, useState } from 'react' import { Paper, PaperProps, Stack, Typography, Button } from '@mui/material' import { grey } from '@mui/material/colors' diff --git a/eventmesh-dashboard-view/src/routes/cluster/topic/stats/stats.types.ts b/eventmesh-dashboard-view/src/routes/cluster/topic/stats/stats.types.ts index 63498a11..ee45c6be 100644 --- a/eventmesh-dashboard-view/src/routes/cluster/topic/stats/stats.types.ts +++ b/eventmesh-dashboard-view/src/routes/cluster/topic/stats/stats.types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 ResourceStats = { connectionsNum: number topicsNum: number diff --git a/eventmesh-dashboard-view/src/routes/cluster/topic/stats/topic-stats.types.ts b/eventmesh-dashboard-view/src/routes/cluster/topic/stats/topic-stats.types.ts index 6c509777..50c4ff90 100644 --- a/eventmesh-dashboard-view/src/routes/cluster/topic/stats/topic-stats.types.ts +++ b/eventmesh-dashboard-view/src/routes/cluster/topic/stats/topic-stats.types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 TopicStats = { abnormalNum: number allNum: number diff --git a/eventmesh-dashboard-view/src/routes/cluster/topic/topic-list/TopicList.tsx b/eventmesh-dashboard-view/src/routes/cluster/topic/topic-list/TopicList.tsx index ca8d2b21..a1a8e6c2 100644 --- a/eventmesh-dashboard-view/src/routes/cluster/topic/topic-list/TopicList.tsx +++ b/eventmesh-dashboard-view/src/routes/cluster/topic/topic-list/TopicList.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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, { forwardRef, useEffect, useState } from 'react' import { Stack, diff --git a/eventmesh-dashboard-view/src/routes/cluster/topic/topic.const.ts b/eventmesh-dashboard-view/src/routes/cluster/topic/topic.const.ts index 45e34ca7..839e7b9c 100644 --- a/eventmesh-dashboard-view/src/routes/cluster/topic/topic.const.ts +++ b/eventmesh-dashboard-view/src/routes/cluster/topic/topic.const.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 { TopicCreationStatusEnum, TopicHealthStatusEnum } from './topic.types' export const TopicHealthStatusText = { diff --git a/eventmesh-dashboard-view/src/routes/cluster/topic/topic.types.ts b/eventmesh-dashboard-view/src/routes/cluster/topic/topic.types.ts index 2ee56707..a3a06b7b 100644 --- a/eventmesh-dashboard-view/src/routes/cluster/topic/topic.types.ts +++ b/eventmesh-dashboard-view/src/routes/cluster/topic/topic.types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 enum TopicHealthStatusEnum { // 失败; Failed = 0, diff --git a/eventmesh-dashboard-view/src/routes/login/Login.tsx b/eventmesh-dashboard-view/src/routes/login/Login.tsx index d9a65ba9..878a6c80 100644 --- a/eventmesh-dashboard-view/src/routes/login/Login.tsx +++ b/eventmesh-dashboard-view/src/routes/login/Login.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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, { forwardRef } from "react"; import { Box, BoxProps, Stack } from "@mui/material"; import { LoginOutlined } from "@mui/icons-material"; diff --git a/eventmesh-dashboard-view/src/routes/navigation/Navigation.tsx b/eventmesh-dashboard-view/src/routes/navigation/Navigation.tsx index 8171e262..366fc0d2 100644 --- a/eventmesh-dashboard-view/src/routes/navigation/Navigation.tsx +++ b/eventmesh-dashboard-view/src/routes/navigation/Navigation.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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, { forwardRef, useEffect, useState } from 'react' import { Stack, diff --git a/eventmesh-dashboard-view/src/routes/navigation/NavigationSubMenu.tsx b/eventmesh-dashboard-view/src/routes/navigation/NavigationSubMenu.tsx index 0eee0e62..49a5d82f 100644 --- a/eventmesh-dashboard-view/src/routes/navigation/NavigationSubMenu.tsx +++ b/eventmesh-dashboard-view/src/routes/navigation/NavigationSubMenu.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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, { forwardRef } from 'react' import { Button, diff --git a/eventmesh-dashboard-view/src/service/request.types.ts b/eventmesh-dashboard-view/src/service/request.types.ts index be71e3b0..5eb12979 100644 --- a/eventmesh-dashboard-view/src/service/request.types.ts +++ b/eventmesh-dashboard-view/src/service/request.types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 ListApiRespone = { code: number message: string diff --git a/eventmesh-dashboard-view/src/service/topics.ts b/eventmesh-dashboard-view/src/service/topics.ts index d621227f..a06f52ac 100644 --- a/eventmesh-dashboard-view/src/service/topics.ts +++ b/eventmesh-dashboard-view/src/service/topics.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 { ResourceStats } from '../routes/navigation/navigation.types' import { TopicStats } from '../routes/cluster/topic/stats/topic-stats.types' import { diff --git a/eventmesh-dashboard-view/src/store/index.ts b/eventmesh-dashboard-view/src/store/index.ts index b6faa182..d7194c40 100644 --- a/eventmesh-dashboard-view/src/store/index.ts +++ b/eventmesh-dashboard-view/src/store/index.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 { configureStore } from '@reduxjs/toolkit' import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux' import publicSlice from './reducers/public/public.slice' diff --git a/eventmesh-dashboard-view/src/store/reducers/public/public.slice.ts b/eventmesh-dashboard-view/src/store/reducers/public/public.slice.ts index 26059b14..28d11818 100644 --- a/eventmesh-dashboard-view/src/store/reducers/public/public.slice.ts +++ b/eventmesh-dashboard-view/src/store/reducers/public/public.slice.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 { createSlice, PayloadAction } from '@reduxjs/toolkit' import { PublicState } from './public.types' import { NavMenuIdEnum } from '../../../routes/navigation/navigation.types' diff --git a/eventmesh-dashboard-view/src/store/reducers/public/public.thunks.ts b/eventmesh-dashboard-view/src/store/reducers/public/public.thunks.ts index 1da1fb2d..3ad953cc 100644 --- a/eventmesh-dashboard-view/src/store/reducers/public/public.thunks.ts +++ b/eventmesh-dashboard-view/src/store/reducers/public/public.thunks.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 { createAsyncThunk } from '@reduxjs/toolkit' import { IValidationErrors } from '../store.types' diff --git a/eventmesh-dashboard-view/src/store/reducers/public/public.types.ts b/eventmesh-dashboard-view/src/store/reducers/public/public.types.ts index d822ed2d..40ab2805 100644 --- a/eventmesh-dashboard-view/src/store/reducers/public/public.types.ts +++ b/eventmesh-dashboard-view/src/store/reducers/public/public.types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 { NavMenuIdEnum } from '../../../routes/navigation/navigation.types' export interface PublicState { diff --git a/eventmesh-dashboard-view/src/store/reducers/store.types.ts b/eventmesh-dashboard-view/src/store/reducers/store.types.ts index 481704c0..9a8b1eea 100644 --- a/eventmesh-dashboard-view/src/store/reducers/store.types.ts +++ b/eventmesh-dashboard-view/src/store/reducers/store.types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 interface IValidationErrors { errorMessage: string field_errors: Record diff --git a/eventmesh-dashboard-view/src/types/types.ts b/eventmesh-dashboard-view/src/types/types.ts index 5e252d96..5f5c477c 100644 --- a/eventmesh-dashboard-view/src/types/types.ts +++ b/eventmesh-dashboard-view/src/types/types.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 enum InstanceTypeEnum { Cluster = 1, Runtime = 2,