-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
1,931 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#### Azure DevOps tells you: | ||
|
||
1. How much code have you submitted? | ||
![1](/onboard/assets/gitlab/1.png) | ||
2. How are your Pull Requests handled? | ||
![2](/onboard/assets/gitlab/2.png) | ||
3. How fast is your Code Review process? | ||
![3](/onboard/assets/gitlab/3.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#### Bitbucket tells you: | ||
|
||
1. How much code have you submitted? | ||
![1](/onboard/assets/gitlab/1.png) | ||
2. How are your Pull Requests handled? | ||
![2](/onboard/assets/gitlab/2.png) | ||
3. How fast is your Code Review process? | ||
![3](/onboard/assets/gitlab/3.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#### What is a data connection? | ||
|
||
- On a high level, a project can be viewed as a real-world project or product line. It represents a specific initiative or endeavor within the software development domain. | ||
- On a lower level, a project is a way of organizing and grouping data from different domains. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#### GitHub tells you: | ||
|
||
1. What is your issue lead time? | ||
![1](/onboard/assets/github/1.png) | ||
2. How fast is your Code Review process? | ||
![2](/onboard/assets/github/2.png) | ||
3. How is your CI/CD process? | ||
![3](/onboard/assets/github/3.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#### GitLab tells you: | ||
|
||
1. How much code have you submitted? | ||
![1](/onboard/assets/gitlab/1.png) | ||
2. How are your Merge Requests handled? | ||
![2](/onboard/assets/gitlab/2.png) | ||
3. How fast is your Code Review process? | ||
![3](/onboard/assets/gitlab/3.png) |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* 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 { request } from '@/utils'; | ||
|
||
export const get = (key: string) => request(`/store/${key}`); | ||
|
||
export const set = (key: string, value: any) => request(`/store/${key}`, { method: 'PUT', data: value }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
config-ui/src/plugins/components/connection-select/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* 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 { theme, Select, SelectProps } from 'antd'; | ||
import styled from 'styled-components'; | ||
|
||
import { getPluginConfig } from '@/plugins'; | ||
|
||
const Option = styled.div` | ||
display: flex; | ||
align-items: center; | ||
.icon { | ||
display: inline-block; | ||
width: 24px; | ||
height: 24px; | ||
& > svg { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} | ||
.name { | ||
margin-left: 8px; | ||
max-width: 90%; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
} | ||
`; | ||
|
||
interface Props extends Omit<SelectProps, 'optionRender'> {} | ||
|
||
export const ConnectionSelect = ({ ...props }: Props) => { | ||
const { | ||
token: { colorPrimary }, | ||
} = theme.useToken(); | ||
|
||
return ( | ||
<Select | ||
style={{ width: 384 }} | ||
placeholder="Select..." | ||
optionRender={(option) => { | ||
const plugin = getPluginConfig(option.data.plugin); | ||
return ( | ||
<Option> | ||
<span className="icon">{plugin.icon({ color: colorPrimary })}</span> | ||
<span className="name">{option.label}</span> | ||
</Option> | ||
); | ||
}} | ||
{...props} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.