forked from buefy/buefy
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TypeScript Rollout Tier 8 - Upload (#369)
* chore: initial changes to migrate Upload - This commit has been pushed to allow collaboration in debugging issue #267 * chore: fixed all type issues from the upload component * chore: implemented all reviewed changes (upload) * test(lib): rewrite Upload.spec in TS * chore(lib): lib bundle Upload in TS `rollup.config.mjs` removes "upload" from `JS_COMPONENTS`. * chore(test): replace upload test snapshot Replace the test snapshot in `components/upload/__snapshots__`: - `Upload.spec.js.snap` → `Upload.spec.ts.snap` * feat(docs): rewrite Upload examples in TS * chore(lib): fix all Upload linting errors * chore(lib): remove extra param from Upload invalid event * chore(docs): imports and register Buefy components (upload) * chore(docs): revert indenting (upload) * chore(docs): import docs components in upload example `src/pages/components/upload/Upload.vue` explicitly imports and registers the following components: - `ApiView` - `Example` --------- Co-authored-by: Wesley Ford <[email protected]>
- Loading branch information
Showing
14 changed files
with
128 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,6 @@ const JS_COMPONENTS = [ | |
'numberinput', | ||
'table', | ||
'timepicker', | ||
'upload', | ||
] | ||
|
||
const entries = { | ||
|
6 changes: 4 additions & 2 deletions
6
...next/src/components/upload/Upload.spec.js → ...next/src/components/upload/Upload.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
3 changes: 0 additions & 3 deletions
3
packages/buefy-next/src/components/upload/__snapshots__/Upload.spec.js.snap
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/buefy-next/src/components/upload/__snapshots__/Upload.spec.ts.snap
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,3 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`BUpload > render correctly 1`] = `"<label class=\\"upload control\\"><input type=\\"file\\"></label>"`; |
4 changes: 2 additions & 2 deletions
4
...buefy-next/src/components/upload/index.js → ...buefy-next/src/components/upload/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
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
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