-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### What changes were proposed in this pull request? This pull request replaces TypeScript with JavaScript in the web directory. Key changes include: - Converted files in `web/types` from TypeScript to JavaScript. - Converted files in `web/lib/enums` from TypeScript to JavaScript. - Converted files in `web/lib/utils/axios` from TypeScript to JavaScript. - Updated `web/src/components/ColumnTypeChip.js` to ensure it conforms to JavaScript standards. - Replaced `web/tsconfig.json` with `web/jsconfig.json`. ### Why are the changes needed? These changes are needed to maintain consistency in the frontend codebase by using JavaScript instead of TypeScript. This helps to: 1. Simplify the development process by using a single language (JavaScript) for the frontend. 2. Reduce complexity and potential issues arising from maintaining both TypeScript and JavaScript files. Fix: #2643 ### Does this PR introduce _any_ user-facing change? No, this PR does not introduce any user-facing changes. It only involves internal code refactoring. ### How was this patch tested? This patch was tested by: 1. Running the existing unit and integration tests to ensure that all functionalities work as expected. 2. Manually verifying that the application builds and runs without errors after the refactor. 3. Ensuring that all references and imports in the converted files are correctly updated. --------- Co-authored-by: LanceLin <[email protected]>
- Loading branch information
Showing
18 changed files
with
374 additions
and
337 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
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
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,35 @@ | ||
/* | ||
* Copyright 2024 Datastrato Pvt Ltd. | ||
* This software is licensed under the Apache License version 2. | ||
*/ | ||
|
||
/** | ||
* @enum {string} | ||
*/ | ||
const ColumnTypeColorEnum = Object.freeze({ | ||
boolean: 'primary', | ||
short: 'primary', | ||
integer: 'primary', | ||
long: 'primary', | ||
float: 'primary', | ||
double: 'primary', | ||
decimal: 'primary', | ||
fixed: 'primary', | ||
|
||
date: 'info', | ||
time: 'info', | ||
timestamp: 'info', | ||
timestamp_tz: 'info', | ||
interval_day: 'info', | ||
interval_year: 'info', | ||
|
||
string: 'warning', | ||
char: 'warning', | ||
varchar: 'warning', | ||
|
||
byte: 'success', | ||
uuid: 'success', | ||
binary: 'success' | ||
}) | ||
|
||
export { ColumnTypeColorEnum } |
This file was deleted.
Oops, something went wrong.
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.