-
Notifications
You must be signed in to change notification settings - Fork 168
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[full-ci] TypeScript almost everything #8289
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
4782af5
Rename .js files to .ts
dschmidt 0c4ede4
Fix imports
dschmidt 0058ff7
Fix global variables usage
dschmidt fa61396
fixup! Fix imports
dschmidt 340e071
Fix exports
dschmidt 9af4d52
Fix non-isolated modules
dschmidt 2328411
Fix types in clientRegistration
dschmidt be1cd98
Fix breadcrumbs unit test
dschmidt 92e4946
Fix jest config
dschmidt ba2f386
Fix remaining type issues
dschmidt a4a27a4
Fix textUtils.naturalSortCompare
dschmidt 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 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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/design-system/src/utils/uniqueId.js → packages/design-system/src/utils/uniqueId.ts
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
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
packages/web-app-draw-io/src/index.js → packages/web-app-draw-io/src/index.ts
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
2 changes: 1 addition & 1 deletion
2
packages/web-app-external/src/index.js → packages/web-app-external/src/index.ts
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,25 +1,26 @@ | ||
import Vue, { ComponentOptions } from 'vue' | ||
import { defineComponent } from 'vue' | ||
|
||
/** | ||
* we need to inject the vue files into the route builders, | ||
* this is because we also import the provided helpers from other js|ts files | ||
* like mixins, rollup seems to have a problem to import files which contain vue file imports | ||
* into js files which then again get imported by other vue files... | ||
*/ | ||
|
||
type Component = ReturnType<typeof defineComponent> | ||
|
||
export interface RouteComponents { | ||
App: ComponentOptions<typeof Vue> | ||
Favorites: ComponentOptions<typeof Vue> | ||
FilesDrop: ComponentOptions<typeof Vue> | ||
PrivateLink: ComponentOptions<typeof Vue> | ||
SearchResults: ComponentOptions<typeof Vue> | ||
PublicLink: ComponentOptions<typeof Vue> | ||
App: Component | ||
Favorites: Component | ||
FilesDrop: Component | ||
SearchResults: Component | ||
Shares: { | ||
SharedWithMe: ComponentOptions<typeof Vue> | ||
SharedWithOthers: ComponentOptions<typeof Vue> | ||
SharedViaLink: ComponentOptions<typeof Vue> | ||
SharedWithMe: Component | ||
SharedWithOthers: Component | ||
SharedViaLink: Component | ||
} | ||
Spaces: { | ||
DriveResolver: ComponentOptions<typeof Vue> | ||
Projects: ComponentOptions<typeof Vue> | ||
DriveResolver: Component | ||
Projects: Component | ||
} | ||
} |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/web-app-files/tests/unit/components/SideBar/Actions/FileActions.spec.ts
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...es/tests/unit/helpers/permissions.spec.js → ...es/tests/unit/helpers/permissions.spec.ts
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
2 changes: 2 additions & 0 deletions
2
...ests/unit/helpers/statusIndicator.spec.js → ...ests/unit/helpers/statusIndicator.spec.ts
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
34 changes: 0 additions & 34 deletions
34
packages/web-app-files/tests/unit/helpers/textUtils.spec.js
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
packages/web-app-files/tests/unit/helpers/textUtils.spec.ts
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,49 @@ | ||
import { describe, it } from '@jest/globals' | ||
import { textUtils } from '../../../src/helpers/textUtils' | ||
|
||
describe('textUtils', () => { | ||
// textUtils compares two strings to provide a natural sort | ||
describe('naturalSortCompare', () => { | ||
it('sorts a list naturally', () => { | ||
const actual = ['Brian Murphy', 'Alice Hansen', 'grp1', 'grp11'] | ||
|
||
actual.sort(textUtils.naturalSortCompare) | ||
|
||
expect(actual.join(',')).toBe('Alice Hansen,Brian Murphy,grp1,grp11') | ||
}) | ||
|
||
/** | ||
* variations | ||
* | ||
[ | ||
{ firstString: 'b', secondString: 'a' }, | ||
{ firstString: 'bb', secondString: 'ba' }, | ||
{ firstString: '1', secondString: '0' } | ||
] | ||
*/ | ||
it.todo('should return negative integer if "b" comes before "a"') | ||
|
||
/** | ||
* variations | ||
* | ||
[ | ||
{ firstString: 'a', secondString: 'b' }, | ||
{ firstString: 'aa', secondString: 'ab' }, | ||
{ firstString: '0', secondString: '1' } | ||
] | ||
*/ | ||
it.todo('should return positive integer if "a" comes before "b"') | ||
|
||
/** | ||
* variations | ||
* | ||
[ | ||
{ firstString: '0', secondString: '0' }, | ||
{ firstString: 'a', secondString: 'a' }, | ||
{ firstString: 'aa', secondString: 'aa' }, | ||
{ firstString: 'ab', secondString: 'ab' } | ||
] | ||
*/ | ||
it.todo('should return 0 if the provided strings are identical') | ||
}) | ||
}) |
2 changes: 1 addition & 1 deletion
2
packages/web-app-files/tests/unit/mixins/actions/clearSelection.spec.ts
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
2 changes: 1 addition & 1 deletion
2
packages/web-app-files/tests/unit/mixins/actions/delete.spec.ts
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
2 changes: 1 addition & 1 deletion
2
packages/web-app-files/tests/unit/mixins/actions/emptyTrashBin.spec.ts
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
2 changes: 1 addition & 1 deletion
2
packages/web-app-files/tests/unit/mixins/spaces/uploadImage.spec.ts
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
2 changes: 1 addition & 1 deletion
2
packages/web-app-pdf-viewer/src/index.js → packages/web-app-pdf-viewer/src/index.ts
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
5 changes: 3 additions & 2 deletions
5
packages/web-app-preview/src/index.js → packages/web-app-preview/src/index.ts
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO this test was completely broken as
breadCrumbsFromPath
was not spread intoconcatBreadcrumbs
which just accepts a single rest args parameter.