hf200012 commented on a change in pull request #5:
URL:
https://github.com/apache/incubator-doris-manager/pull/5#discussion_r826566766
##########
File path: frontend/src/common/common.context.ts
##########
@@ -0,0 +1,5 @@
+import React from 'react';
Review comment:
add license head
##########
File path: frontend/src/common/common.api.ts
##########
@@ -0,0 +1,30 @@
+import { http } from '@src/utils/http';
Review comment:
add license head
##########
File path: frontend/src/components/dot/dot.less
##########
@@ -0,0 +1,6 @@
+.dot {
Review comment:
add license head
##########
File path: frontend/src/components/dot/dot.tsx
##########
@@ -0,0 +1,8 @@
+import React from "react";
Review comment:
add license head
##########
File path: frontend/src/components/status-mark/index.tsx
##########
@@ -0,0 +1,22 @@
+import React, { PropsWithChildren } from 'react';
Review comment:
```suggestion
// 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, { PropsWithChildren } from 'react';
```
##########
File path: frontend/src/components/tabs-header/index.tsx
##########
@@ -0,0 +1,34 @@
+import React from 'react';
Review comment:
add license head
##########
File path: frontend/src/hooks/use-async.ts
##########
@@ -0,0 +1,90 @@
+import { useReducer, useCallback, useRef, useEffect } from 'react';
Review comment:
```suggestion
// 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 { useReducer, useCallback, useRef, useEffect } from 'react';
```
##########
File path: frontend/src/routes/admin/admin.module.less
##########
@@ -0,0 +1,9 @@
+.container {
Review comment:
add license head
##########
File path: frontend/src/common/common.interface.ts
##########
@@ -0,0 +1,34 @@
+export interface UserInfo {
Review comment:
add license head
##########
File path: frontend/src/routes/admin/people/role/member/member.tsx
##########
@@ -0,0 +1,187 @@
+import { ExclamationCircleOutlined } from '@ant-design/icons';
Review comment:
add license head
##########
File path: frontend/src/routes/admin/people/role/role.tsx
##########
@@ -0,0 +1,17 @@
+import React from 'react';
Review comment:
add license head
##########
File path: frontend/src/components/doris-modal/doris-modal.jsx
##########
@@ -0,0 +1,41 @@
+import Swal from 'sweetalert2';
Review comment:
add license head
##########
File path: frontend/src/components/flatbtn/index.tsx
##########
@@ -0,0 +1,5 @@
+import FlatBtn from './flat-btn';
Review comment:
add license head
##########
File path: frontend/public/locales/en-us.json
##########
@@ -0,0 +1,318 @@
+{
Review comment:
add license head
##########
File path: frontend/public/locales/zh-cn.json
##########
@@ -0,0 +1,332 @@
+{
Review comment:
add license head
##########
File path: frontend/src/routes/admin/people/user/user.hooks.ts
##########
@@ -0,0 +1,47 @@
+import { useCallback, useEffect } from 'react';
Review comment:
add license head
##########
File path: frontend/src/components/flatbtn/flat-btn-group.less
##########
@@ -0,0 +1,42 @@
+@import '~antd/lib/style/themes/default.less';
Review comment:
add license head
##########
File path: frontend/src/routes/admin/people/role/role.api.ts
##########
@@ -0,0 +1,30 @@
+import { IRole } from "@src/common/common.interface";
Review comment:
add license head
##########
File path:
frontend/src/routes/settings/components/settings-header/settings-header.less
##########
@@ -0,0 +1,36 @@
+.admin-header {
Review comment:
add license head
##########
File path: frontend/src/components/flatbtn/style.less
##########
@@ -0,0 +1,47 @@
+.flat-btn {
Review comment:
add license head
##########
File path: frontend/src/components/flatbtn/flat-btn-group.tsx
##########
@@ -0,0 +1,75 @@
+import React, { FunctionComponent, useRef } from 'react';
Review comment:
add license head
##########
File path: frontend/src/routes/settings/components/tabs-header/index.tsx
##########
@@ -0,0 +1,23 @@
+import React from 'react';
Review comment:
add license head
##########
File path:
frontend/src/routes/settings/global/components/loading-layout/index.tsx
##########
@@ -0,0 +1,23 @@
+import React, { CSSProperties, PropsWithChildren } from 'react';
Review comment:
add license head
##########
File path: frontend/src/components/status-mark/index.module.less
##########
@@ -0,0 +1,25 @@
+.wrapper {
Review comment:
```suggestion
// 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.
.wrapper {
```
##########
File path: frontend/src/components/flatbtn/flat-btn.tsx
##########
@@ -0,0 +1,58 @@
+import React, { HTMLAttributes } from 'react';
Review comment:
add license head
##########
File path: frontend/src/components/loading-layout/index.tsx
##########
@@ -0,0 +1,23 @@
+import React, { CSSProperties, PropsWithChildren } from 'react';
Review comment:
```suggestion
// 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, { CSSProperties, PropsWithChildren } from 'react';
```
##########
File path: frontend/src/components/studio-header/header.tsx
##########
@@ -0,0 +1,131 @@
+import logo from '@assets/logo_nav.png';
Review comment:
```suggestion
// 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 logo from '@assets/logo_nav.png';
```
##########
File path: frontend/src/components/studio-header/index.module.less
##########
@@ -0,0 +1,68 @@
+.palo-header {
Review comment:
```suggestion
// 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.
.palo-header {
```
##########
File path: frontend/src/hooks/use-auth.ts
##########
@@ -0,0 +1,37 @@
+import { AuthTypeEnum } from '@src/common/common.data';
Review comment:
add license head
##########
File path: frontend/src/routes/settings/global/components/sidebar/index.tsx
##########
@@ -0,0 +1,35 @@
+import React, { useContext } from 'react';
Review comment:
add license head
##########
File path: frontend/src/hooks/use-users.hooks.ts
##########
@@ -0,0 +1,41 @@
+import { CommonAPI } from '@src/common/common.api';
Review comment:
add license head
##########
File path: frontend/src/routes/admin/people/people.less
##########
@@ -0,0 +1,14 @@
+.optionContent {
Review comment:
add license head
##########
File path: frontend/src/components/initialized-route/initialized-route.tsx
##########
@@ -0,0 +1,16 @@
+import { auth } from "@src/utils/auth";
Review comment:
add license head
##########
File path: frontend/src/hooks/use-userinfo.hooks.ts
##########
@@ -0,0 +1,18 @@
+import { CommonAPI } from "@src/common/common.api";
Review comment:
add license head
##########
File path: frontend/src/routes/admin/admin.tsx
##########
@@ -0,0 +1,58 @@
+import React, { Suspense, useEffect, useMemo, useState } from 'react';
Review comment:
add license head
##########
File path: frontend/src/routes/admin/people/role/list/list.tsx
##########
@@ -0,0 +1,136 @@
+import { ExclamationCircleOutlined } from '@ant-design/icons';
Review comment:
add license head
##########
File path: frontend/src/hooks/use-roles.hooks.ts
##########
@@ -0,0 +1,64 @@
+import { CommonAPI } from "@src/common/common.api";
Review comment:
add license head
##########
File path: frontend/src/routes/admin/people/role/list/create-or-edit-modal.tsx
##########
@@ -0,0 +1,86 @@
+import { isSuccess } from '@src/utils/http';
Review comment:
add license head
##########
File path: frontend/src/routes/admin/people/people.tsx
##########
@@ -0,0 +1,18 @@
+import React from 'react';
Review comment:
add license head
##########
File path: frontend/src/routes/admin/people/user/user.api.tsx
##########
@@ -0,0 +1,22 @@
+import { http, isSuccess } from '@src/utils/http';
Review comment:
add license head
##########
File path: frontend/src/routes/initialize/initialize.route.tsx
##########
@@ -0,0 +1,57 @@
+import { AuthTypeEnum } from '@src/common/common.data';
Review comment:
add license head
##########
File path: frontend/src/routes/query/query-details/code.css
##########
@@ -0,0 +1,126 @@
+/*!
Review comment:
add license head
##########
File path: frontend/src/routes/query/query-details/code.css
##########
@@ -0,0 +1,126 @@
+/*!
+ Theme: GitHub
+ Description: Light theme as seen on github.com
+ Author: github.com
+ Maintainer: @Hirse
Review comment:
remove author info
##########
File path:
frontend/src/routes/settings/global/components/setting-item-layout/index.tsx
##########
@@ -0,0 +1,23 @@
+import { Typography, Row } from 'antd';
Review comment:
add license head
##########
File path: frontend/src/routes/initialize/initialize.tsx
##########
@@ -0,0 +1,42 @@
+import { AuthTypeEnum } from '@src/common/common.data';
Review comment:
add license head
##########
File path: frontend/src/routes/admin/people/user/create-modal.tsx
##########
@@ -0,0 +1,80 @@
+import React from 'react';
Review comment:
add license head
##########
File path: frontend/src/routes/initialize/initialize.less
##########
@@ -0,0 +1,15 @@
+.initialize {
Review comment:
add license head
##########
File path:
frontend/src/routes/settings/components/settings-header/settings-header.tsx
##########
@@ -0,0 +1,55 @@
+import { SettingOutlined } from '@ant-design/icons';
Review comment:
add license head
##########
File path: frontend/src/routes/settings/global/constants.ts
##########
@@ -0,0 +1,9 @@
+import { CSSProperties } from 'react';
Review comment:
add license head
##########
File path:
frontend/src/routes/settings/global/context/global-settings-context.tsx
##########
@@ -0,0 +1,55 @@
+import React, { PropsWithChildren, useCallback, useEffect } from 'react';
Review comment:
add license head
##########
File path: frontend/src/routes/settings/global/context/index.tsx
##########
@@ -0,0 +1,8 @@
+import React, { PropsWithChildren } from 'react';
Review comment:
add license head
##########
File path: frontend/src/routes/initialize/auths/components/finish/finish.tsx
##########
@@ -0,0 +1,22 @@
+import { Result, Button } from 'antd';
Review comment:
add license head
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]