- Notifications
You must be signed in to change notification settings - Fork254
Add error component on invalid URL and managed-obj endpoint#1694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
5 commits Select commitHold shift + click to select a range
7ead10b
Fix link managed issue for the deployable items
iamfaran60f9b34
Fix filters response for the APPS
iamfaraned55d12
remove console logs
iamfaran29a4fae
add err component and fix errors
iamfaran392a4ad
Merge branch 'ee-setup' of github.com:lowcoder-org/lowcoder into fix/…
iamfaranFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
46 changes: 7 additions & 39 deletionsclient/packages/lowcoder/src/pages/setting/environments/EnvironmentDetail.tsx
This file contains hidden or 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
10 changes: 2 additions & 8 deletionsclient/packages/lowcoder/src/pages/setting/environments/EnvironmentsList.tsx
This file contains hidden or 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
14 changes: 7 additions & 7 deletionsclient/packages/lowcoder/src/pages/setting/environments/WorkspaceDetail.tsx
This file contains hidden or 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
38 changes: 38 additions & 0 deletionsclient/packages/lowcoder/src/pages/setting/environments/components/ErrorComponent.tsx
This file contains hidden or 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,38 @@ | ||
import React from 'react'; | ||
import { Card, Button, Typography } from 'antd'; | ||
import { HomeOutlined } from '@ant-design/icons'; | ||
import history from '@lowcoder-ee/util/history'; | ||
const { Title, Text } = Typography; | ||
interface ErrorComponentProps { | ||
errorMessage: string; | ||
returnPath: string; | ||
returnLabel: string; | ||
} | ||
const ErrorComponent: React.FC<ErrorComponentProps> = ({ errorMessage, returnPath, returnLabel }) => { | ||
return ( | ||
<div style={{ padding: '24px', flex: 1 }}> | ||
<Card style={{ borderRadius: '8px', boxShadow: '0 2px 8px rgba(0,0,0,0.05)' }}> | ||
<div style={{ textAlign: 'center', padding: '40px 0' }}> | ||
<Title level={3} style={{ color: '#ff4d4f' }}> | ||
{errorMessage} | ||
</Title> | ||
<Text type="secondary" style={{ display: 'block', margin: '16px 0' }}> | ||
The item you're looking for doesn't exist or you don't have permission to view it. | ||
</Text> | ||
<Button | ||
type="primary" | ||
onClick={() => history.push(returnPath)} | ||
style={{ marginTop: '16px' }} | ||
> | ||
<HomeOutlined /> {returnLabel} | ||
</Button> | ||
</div> | ||
</Card> | ||
</div> | ||
); | ||
}; | ||
export default ErrorComponent; |
1 change: 1 addition & 0 deletionsclient/packages/lowcoder/src/pages/setting/environments/config/apps.config.tsx
This file contains hidden or 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
3 changes: 2 additions & 1 deletionclient/packages/lowcoder/src/pages/setting/environments/config/data-sources.config.tsx
This file contains hidden or 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
3 changes: 2 additions & 1 deletionclient/packages/lowcoder/src/pages/setting/environments/config/query.config.tsx
This file contains hidden or 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
5 changes: 3 additions & 2 deletionsclient/packages/lowcoder/src/pages/setting/environments/services/apps.service.ts
This file contains hidden or 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
7 changes: 4 additions & 3 deletionsclient/packages/lowcoder/src/pages/setting/environments/services/datasources.service.ts
This file contains hidden or 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
1 change: 0 additions & 1 deletionclient/packages/lowcoder/src/pages/setting/environments/services/enterprise.service.ts
This file contains hidden or 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
8 changes: 2 additions & 6 deletionsclient/packages/lowcoder/src/pages/setting/environments/services/environments.service.ts
This file contains hidden or 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
12 changes: 2 additions & 10 deletionsclient/packages/lowcoder/src/pages/setting/environments/services/query.service.ts
This file contains hidden or 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
2 changes: 1 addition & 1 deletionclient/packages/lowcoder/src/pages/setting/environments/services/workspace.service.ts
This file contains hidden or 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.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.