-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(file-uploader): Updated @uploadcare/blocks to @uploadcare/file-u…
…ploader
- Loading branch information
1 parent
114d177
commit 25d4053
Showing
15 changed files
with
76 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,17 +58,22 @@ PyUploadcare takes assets from CDN by default, e.g.: | |
|
||
.. code-block:: html | ||
|
||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/uc-file-uploader-regular.min.css" | ||
> | ||
|
||
|
||
<script type="module"> | ||
import * as LR from "https://cdn.jsdelivr.net/npm/@uploadcare/[email protected]/web/blocks.min.js"; | ||
LR.registerBlocks(LR); | ||
import * as UC from "https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/file-uploader.min.js"; | ||
UC.defineComponents(UC); | ||
</script> | ||
|
||
<!-- ... --> | ||
|
||
<lr-file-uploader-inline | ||
css-src="https://cdn.jsdelivr.net/npm/@uploadcare/[email protected]/web/lr-file-uploader-regular.min.css" | ||
<uc-file-uploader-inline | ||
ctx-name="my-uploader" | ||
></lr-file-uploader-inline> | ||
></uc-file-uploader-inline> | ||
|
||
If you don't want to use hosted assets you have to turn off this feature: | ||
|
||
|
@@ -91,9 +96,9 @@ widget url: | |
"widget": { | ||
"override_js_url": "http://path.to/your/blocks.js", | ||
"override_css_url": { | ||
"regular": "http://path.to/your/lr-file-uploader-regular.css", | ||
"inline": "http://path.to/your/lr-file-uploader-inline.css", | ||
"minimal": "http://path.to/your/lr-file-uploader-minimal.css", | ||
"regular": "http://path.to/your/uc-file-uploader-regular.css", | ||
"inline": "http://path.to/your/uc-file-uploader-inline.css", | ||
"minimal": "http://path.to/your/uc-file-uploader-minimal.css", | ||
}, | ||
}, | ||
} | ||
|
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.
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pyuploadcare/dj/static/uploadcare/lr-file-uploader-inline.min.css
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pyuploadcare/dj/static/uploadcare/lr-file-uploader-minimal.min.css
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pyuploadcare/dj/static/uploadcare/lr-file-uploader-regular.min.css
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
pyuploadcare/dj/static/uploadcare/uc-file-uploader-inline.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
pyuploadcare/dj/static/uploadcare/uc-file-uploader-minimal.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
pyuploadcare/dj/static/uploadcare/uc-file-uploader-regular.min.css
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