This repository was archived by the owner on Jan 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Refactor: migrating Flow to Typescript #47
Merged
juanpicado
merged 69 commits into
4.x-master
from
refactor/7_convert_flow_type_to_typescript
Jun 20, 2019
Merged
Changes from 2 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
13b1d89
refactor: refactoring to typescript
priscilawebdev 66632ac
refactor: migrating to typescript
priscilawebdev 64c8b7f
refactor: applied feedbacks
priscilawebdev c54c256
Merge branch '4.x-master' into refactor/7_convert_flow_type_to_typesc…
priscilawebdev c225d77
fix: fixed conflicts
priscilawebdev 8ee20c6
refactored: changed registry
priscilawebdev 23c281a
refactor: updated registry & removed unnecessary lib
priscilawebdev a329d7e
fix: fixed registry ur
priscilawebdev 8c82c92
fix: fixed page load
priscilawebdev 274bc2c
refactor: refactored footer wip
priscilawebdev f0fde1d
Merge branch '4.x-master' into refactor/7_convert_flow_type_to_typesc…
juanpicado a863612
refactor: converting to ts..wip
priscilawebdev 85a140e
Merge branch 'refactor/7_convert_flow_type_to_typescript' of https://…
priscilawebdev 59f7815
refactor: converting to ts. wip
priscilawebdev e40849b
refactor: converting to ts. wip
priscilawebdev b3ed8f5
refactor: converting to ts
priscilawebdev 682ab3b
refactor: converting to ts
priscilawebdev a0413ac
fix: fixed load errors
priscilawebdev 089cb5b
refactor: converted files to ts
priscilawebdev a7c8ad5
refactor: removed flow from tests
priscilawebdev ede2d0b
fix: removed transpiled files
priscilawebdev 47520be
refactor: added ts-ignore
priscilawebdev 99d3451
fix: fixed errors
priscilawebdev e1768b3
Merge branch '4.x-master' into refactor/7_convert_flow_type_to_typesc…
verdacciobot 17ddd9f
fix: fixed types
priscilawebdev dc0bec4
Merge branch 'refactor/7_convert_flow_type_to_typescript' of https://…
priscilawebdev b07d18d
fix: fixing jest import -.-
priscilawebdev 442ce7c
fix: fixing lint errors
priscilawebdev db7efdb
Merge branch '4.x-master' into refactor/7_convert_flow_type_to_typesc…
juanpicado 46c8c7c
Merge branch '4.x-master' into refactor/7_convert_flow_type_to_typesc…
priscilawebdev 589b26b
fix: fixing lint errors
priscilawebdev af73e7e
fix: fixed lint errors
priscilawebdev c245ec5
refactor: removed unnecessary tsconfig's config
priscilawebdev c930301
fix: fixing errors
priscilawebdev 781d8e3
fix: fixed warning
priscilawebdev b90ae4b
Merge branch '4.x-master' into refactor/7_convert_flow_type_to_typesc…
priscilawebdev 9a5d884
fix: fixed test
priscilawebdev 3fb3ad6
Merge branch '4.x-master' into refactor/7_convert_flow_type_to_typesc…
priscilawebdev 303abc2
refactor: wip
priscilawebdev 60974c3
refactor: wip
priscilawebdev 4d92a6e
refactor: wip
priscilawebdev bd66f87
fix: fixing tests: wip
priscilawebdev 9647666
wip
priscilawebdev a3e8229
wip
priscilawebdev 0b7f4fb
fix: fixed search test
priscilawebdev fee8d72
wip
priscilawebdev 9d93f1d
fix: fixing lint errors
priscilawebdev 28c7632
Merge branch 'refactor/7_convert_flow_type_to_typescript' of https://…
priscilawebdev b58fde7
fix: re-added stylelint
priscilawebdev 3edbbdc
refactor: updated stylelint script
priscilawebdev 2a85821
fix: fixed: 'styles.js' were found.
priscilawebdev 998a5fd
Merge branch '4.x-master' into refactor/7_convert_flow_type_to_typesc…
juanpicado 6f08526
Merge remote-tracking branch 'origin/4.x-master' into refactor/7_conv…
juanpicado f29d153
Merge branch '4.x-master' into refactor/7_convert_flow_type_to_typesc…
juanpicado a740a9a
fix: fixed Search tests
priscilawebdev 0b497cb
chore: enable eslint
juanpicado a2812c9
chore: vcode eslint settings
juanpicado a045626
chore: restore eslint previous conf
juanpicado 803f6ca
chore: clean jest config
juanpicado e91b738
chore: fix eslint warnings
juanpicado 07493be
chore: eslint errors cleared
juanpicado 462d744
chore: update handler name
juanpicado e573713
chore: restore logo from img to url css prop
juanpicado b25e19e
chore: update stylelint linting
juanpicado f205bb3
chore: update stylelint linting
juanpicado deb918d
chore: fix a mistake on move tabs to a function
juanpicado 6cf5d28
chore: eanble bundlezie
juanpicado 5a39ebe
chore: use default_executor in circleci
juanpicado 1599cc3
chore: update readme
juanpicado File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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 |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| /** | ||
| * @prettier | ||
| * @flow | ||
| */ | ||
|
|
||
| const path = require('path'); | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -2,8 +2,6 @@ | |
| * @prettier | ||
| */ | ||
|
|
||
| // @flow | ||
|
|
||
| export const DIST_TAGS = 'dist-tags'; | ||
|
|
||
| export const HEADERS = { | ||
|
|
||
16 changes: 7 additions & 9 deletions
16
...webui/components/CopyToClipBoard/index.js → ...nents/CopyToClipBoard/CopyToClipBoard.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
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 @@ | ||
| export { default } from './CopyToClipBoard' |
6 changes: 3 additions & 3 deletions
6
...ebui/components/CopyToClipBoard/styles.js → ...ebui/components/CopyToClipBoard/styles.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 deletion
1
...webui/components/CopyToClipBoard/types.js → ...webui/components/CopyToClipBoard/types.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| /** | ||
| * @prettier | ||
| * @flow | ||
| */ | ||
|
|
||
| export interface IProps { | ||
|
|
||
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,50 @@ | ||
| /** | ||
| * @prettier | ||
| */ | ||
|
|
||
| import Button from '@material-ui/core/Button'; | ||
| import CardActions from '@material-ui/core/CardActions'; | ||
| import CardContent from '@material-ui/core/CardContent'; | ||
| import Typography from '@material-ui/core/Typography'; | ||
| import React from 'react'; | ||
|
|
||
| import { getRegistryURL } from '../../utils/url'; | ||
| import CopyToClipBoard from '../CopyToClipBoard'; | ||
|
|
||
| import { CardStyled as Card, HelpTitle } from './styles'; | ||
|
|
||
| function renderHeadingClipboardSegments(title: string, text: string) { | ||
| return ( | ||
| <> | ||
| <Typography variant={'body2'}>{title}</Typography> | ||
| <CopyToClipBoard text={text} /> | ||
| </> | ||
| ); | ||
| } | ||
|
|
||
| const Help: React.FC = () => { | ||
| const registryUrl = getRegistryURL(); | ||
|
|
||
| return ( | ||
| <Card id="help-card"> | ||
| <CardContent> | ||
| <Typography component="h2" gutterBottom id="help-card__title" variant="headline"> | ||
| No Package Published Yet. | ||
| </Typography> | ||
| <HelpTitle color="textSecondary" gutterBottom> | ||
| To publish your first package just: | ||
| </HelpTitle> | ||
| {renderHeadingClipboardSegments('1. Login', `npm adduser --registry ${registryUrl}`)} | ||
| {renderHeadingClipboardSegments('2. Publish', `npm publish --registry ${registryUrl}`)} | ||
| <Typography variant="body2">3. Refresh this page.</Typography> | ||
| </CardContent> | ||
| <CardActions> | ||
| <Button color="primary" href="https://verdaccio.org/docs/en/installation" size="small" target="_blank"> | ||
| Learn More | ||
| </Button> | ||
| </CardActions> | ||
| </Card> | ||
| ); | ||
| }; | ||
|
|
||
| export default Help; |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
| export { default } from './Help' |
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
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
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 @@ | ||
| export { default } from './Install' |
7 changes: 3 additions & 4 deletions
7
src/webui/components/Install/styles.js → src/webui/components/Install/styles.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
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
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 @@ | ||
| export { default } from './Logo' |
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
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 @@ | ||
| export { default } from './NotFound' |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.