-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from uploadcare/feature/blocks-new-theming
Feature/blocks-new-theming
- Loading branch information
Showing
53 changed files
with
2,838 additions
and
6,237 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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 was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
examples/composition/src/custom-source/CustomFileUploader.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite App</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="./src/main.js"></script> | ||
<lr-config ctx-name="my-uploader" pubkey="a6ca334c3520777c0045" source-list="unsplash"></lr-config> | ||
<lr-custom-file-uploader ctx-name="my-uploader" class="uc-light"></lr-custom-file-uploader> | ||
</body> | ||
</html> |
65 changes: 37 additions & 28 deletions
65
examples/composition/package-lock.json → examples/js-custom-tab/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,6 @@ | |
"vite": "4.5.2" | ||
}, | ||
"dependencies": { | ||
"@uploadcare/blocks": "0.30.5" | ||
"@uploadcare/blocks": "0.44.0" | ||
} | ||
} |
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,23 @@ | ||
import { FileUploaderRegular } from "@uploadcare/blocks"; | ||
|
||
export class CustomFileUploader extends FileUploaderRegular {} | ||
CustomFileUploader.template = /* HTML */ ` | ||
<lr-simple-btn></lr-simple-btn> | ||
<lr-modal strokes block-body-scrolling> | ||
<lr-start-from> | ||
<lr-drop-area with-icon clickable></lr-drop-area> | ||
<lr-source-list wrap></lr-source-list> | ||
<lr-copyright></lr-copyright> | ||
</lr-start-from> | ||
<lr-upload-list></lr-upload-list> | ||
<lr-camera-source></lr-camera-source> | ||
<lr-url-source></lr-url-source> | ||
<lr-external-source></lr-external-source> | ||
<lr-cloud-image-editor-activity></lr-cloud-image-editor-activity> | ||
<lr-unsplash-source token="${import.meta.env.VITE_UNSPLASH_TOKEN}"></lr-unsplash-source> | ||
</lr-modal> | ||
<lr-message-box></lr-message-box> | ||
<lr-progress-bar-common></lr-progress-bar-common> | ||
`; |
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.
Oops, something went wrong.