forked from litmuschaos/litmus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added account setting screens (litmuschaos#4119)
* feat: Done with new routing setup for account screens and started with account screen implementations Signed-off-by: Hrishav <[email protected]> * feat: Added support for React-Query and automatic API generation using swagger file Signed-off-by: Hrishav <[email protected]> * chore: Updated createAt swagger issue Signed-off-by: Hrishav <[email protected]> * chore: Updated invitation_state Signed-off-by: Hrishav <[email protected]> * chore: Updated invitation_state again Signed-off-by: Hrishav <[email protected]> * feat: Added swagger API generation and several account setting screens Signed-off-by: Hrishav <[email protected]> * feat: Added user interaction modals in settings overview Signed-off-by: Hrishav <[email protected]> * feat: Added new automatic API generations and account setting screens Signed-off-by: Hrishav <[email protected]> * chore: updated testUtils Signed-off-by: Hrishav <[email protected]> * chore: updated testUtils and fixed errors Signed-off-by: Hrishav <[email protected]> * chore: Fixed review comments Signed-off-by: Hrishav <[email protected]> * chore: updated user search function Signed-off-by: Hrishav <[email protected]> * chore: fixed request comments Signed-off-by: Hrishav <[email protected]> --------- Signed-off-by: Hrishav <[email protected]> Signed-off-by: punithnayak <[email protected]>
- Loading branch information
1 parent
e277162
commit c9606e1
Showing
160 changed files
with
5,436 additions
and
2,513 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { defineConfig } from '@harnessio/oats-cli'; | ||
import reactQueryPlugin from '@harnessio/oats-plugin-react-query'; | ||
import { mapKeys, omit } from 'lodash-es'; | ||
|
||
function normalizePath(url: string): string { | ||
return url.replace(/\/{2,}/g, '/'); | ||
} | ||
|
||
export default defineConfig({ | ||
services: { | ||
auth: { | ||
url: 'https://raw.githubusercontent.com/litmuschaos/litmus/master/mkdocs/docs/auth/v3.0.0/auth-api.json', | ||
output: 'src/api/auth', | ||
transformer(spec) { | ||
return { | ||
...spec, | ||
components: { | ||
...spec.components, | ||
schemas: omit(spec.components?.schemas, ['OauthSettings']) | ||
}, | ||
paths: mapKeys(spec.paths, (_val, key) => normalizePath(`/auth/${key}`)) | ||
}; | ||
}, | ||
genOnlyUsed: true, | ||
plugins: [ | ||
reactQueryPlugin({ | ||
customFetcher: 'services/fetcher', | ||
overrides: {} | ||
}) | ||
] | ||
} | ||
} | ||
}); |
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,27 @@ | ||
import prompts from 'prompts'; | ||
import { $ } from 'zx'; | ||
|
||
(async () => { | ||
const services = ['auth']; | ||
|
||
services.sort(); | ||
|
||
const response = await prompts({ | ||
type: 'multiselect', | ||
name: 'services', | ||
message: 'Please select the services you want to generate', | ||
choices: services.map(title => ({ title })) | ||
}); | ||
|
||
if (!response.services || response.services.length === 0) { | ||
console.log('No services selected. Exiting...'); | ||
process.exit(0); | ||
} | ||
|
||
for (const index of response.services) { | ||
const service = services[index]; | ||
await $`npx oats import --config config/oats.config.ts --service ${service} --clean`; | ||
} | ||
|
||
await $`npx prettier --write \"src/services/**/*.{ts,tsx,json,scss}\"`; | ||
})(); |
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.