-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 4540c45 🚀
- Loading branch information
egordidenko
authored and
egordidenko
committed
Feb 20, 2024
1 parent
fb8a2c0
commit 4ba20bc
Showing
217 changed files
with
441 additions
and
346 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 |
---|---|---|
@@ -1,22 +1,71 @@ | ||
:root { | ||
--light-hl-0: #000000; | ||
--dark-hl-0: #D4D4D4; | ||
--light-hl-1: #A31515; | ||
--dark-hl-1: #CE9178; | ||
--light-hl-2: #AF00DB; | ||
--dark-hl-2: #C586C0; | ||
--light-hl-3: #001080; | ||
--dark-hl-3: #9CDCFE; | ||
--light-hl-4: #0000FF; | ||
--dark-hl-4: #569CD6; | ||
--light-hl-5: #0070C1; | ||
--dark-hl-5: #4FC1FF; | ||
--light-hl-6: #795E26; | ||
--dark-hl-6: #DCDCAA; | ||
--light-code-background: #FFFFFF; | ||
--dark-code-background: #1E1E1E; | ||
} | ||
|
||
@media (prefers-color-scheme: light) { :root { | ||
--hl-0: var(--light-hl-0); | ||
--hl-1: var(--light-hl-1); | ||
--hl-2: var(--light-hl-2); | ||
--hl-3: var(--light-hl-3); | ||
--hl-4: var(--light-hl-4); | ||
--hl-5: var(--light-hl-5); | ||
--hl-6: var(--light-hl-6); | ||
--code-background: var(--light-code-background); | ||
} } | ||
|
||
@media (prefers-color-scheme: dark) { :root { | ||
--hl-0: var(--dark-hl-0); | ||
--hl-1: var(--dark-hl-1); | ||
--hl-2: var(--dark-hl-2); | ||
--hl-3: var(--dark-hl-3); | ||
--hl-4: var(--dark-hl-4); | ||
--hl-5: var(--dark-hl-5); | ||
--hl-6: var(--dark-hl-6); | ||
--code-background: var(--dark-code-background); | ||
} } | ||
|
||
:root[data-theme='light'] { | ||
--hl-0: var(--light-hl-0); | ||
--hl-1: var(--light-hl-1); | ||
--hl-2: var(--light-hl-2); | ||
--hl-3: var(--light-hl-3); | ||
--hl-4: var(--light-hl-4); | ||
--hl-5: var(--light-hl-5); | ||
--hl-6: var(--light-hl-6); | ||
--code-background: var(--light-code-background); | ||
} | ||
|
||
:root[data-theme='dark'] { | ||
--hl-0: var(--dark-hl-0); | ||
--hl-1: var(--dark-hl-1); | ||
--hl-2: var(--dark-hl-2); | ||
--hl-3: var(--dark-hl-3); | ||
--hl-4: var(--dark-hl-4); | ||
--hl-5: var(--dark-hl-5); | ||
--hl-6: var(--dark-hl-6); | ||
--code-background: var(--dark-code-background); | ||
} | ||
|
||
.hl-0 { color: var(--hl-0); } | ||
.hl-1 { color: var(--hl-1); } | ||
.hl-2 { color: var(--hl-2); } | ||
.hl-3 { color: var(--hl-3); } | ||
.hl-4 { color: var(--hl-4); } | ||
.hl-5 { color: var(--hl-5); } | ||
.hl-6 { color: var(--hl-6); } | ||
pre, code { background: var(--code-background); } |
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 |
---|---|---|
|
@@ -12,7 +12,40 @@ | |
<div class="col-content"> | ||
<div class="tsd-page-title"> | ||
<h2>@uploadcare/image-shrink</h2></div> | ||
<div class="tsd-panel tsd-typography"></div></div> | ||
<div class="tsd-panel tsd-typography"><a id="md:uploadcare-image-shrink" class="tsd-anchor"></a><h1><a href="#md:uploadcare-image-shrink">Uploadcare Image Shrink</a></h1><a href="https://uploadcare.com/?utm_source=github&utm_campaign=uploadcare-js-api-clients"> | ||
<img align="right" width="64" height="64" | ||
src="https://ucarecdn.com/edfdf045-34c0-4087-bbdd-e3834921f890/userpiccircletransparent.svg" | ||
alt=""> | ||
</a> | ||
|
||
<p>File Uploader lets you accept hi-res images and shrink them in size to a reasonable resolution, keeping the original aspect ratio. See docs <a href="https://uploadcare.com/docs/file-uploader/feature-shrink/">here</a> wrapper to work with browser.</p> | ||
<p><a href="https://uploadcare.github.io/uploadcare-js-api-clients/image-shrink/">API Reference</a></p> | ||
<p><a href="https://github.com/uploadcare/uploadcare-js-api-clients/actions/workflows/checks.yml"><img src="https://github.com/uploadcare/uploadcare-js-api-clients/actions/workflows/checks.yml/badge.svg" alt="Build Status"></a> | ||
<a href="https://www.npmjs.org/package/@uploadcare/signed-uploads"><img src="http://img.shields.io/npm/v/@uploadcare/signed-uploads.svg" alt="NPM version"></a> | ||
<a href="https://github.com/uploadcare/uploadcare-js-api-clients/releases"><img src="https://img.shields.io/github/release/uploadcare/uploadcare-js-api-clients.svg" alt="GitHub release"></a> | ||
<a href="https://stackshare.io/uploadcare/stacks/"><img src="https://img.shields.io/badge/tech-stack-0690fa.svg?style=flat" alt="Uploadcare stack on StackShare"></a></p> | ||
<!-- toc --> | ||
|
||
<ul> | ||
<li><a href="#install">Install</a></li> | ||
<li><a href="#usage">Usage</a></li> | ||
<li><a href="#security-issues">Security issues</a></li> | ||
<li><a href="#feedback">Feedback</a></li> | ||
</ul> | ||
<!-- tocstop --> | ||
|
||
<a id="md:install" class="tsd-anchor"></a><h2><a href="#md:install">Install</a></h2><pre><code class="language-bash"><span class="hl-0">npm </span><span class="hl-1">install</span><span class="hl-0"> </span><span class="hl-1">@uploadcare/image-shrink</span> | ||
</code><button>Copy</button></pre> | ||
<a id="md:usage" class="tsd-anchor"></a><h2><a href="#md:usage">Usage</a></h2><pre><code class="language-typescript"><span class="hl-2">import</span><span class="hl-0"> { </span><span class="hl-3">shrinkFile</span><span class="hl-0"> } </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-1">'@uploadcare/image-shrink'</span><br/><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-5">shrinkedBlob</span><span class="hl-0"> = </span><span class="hl-6">shrinkImage</span><span class="hl-0">(</span><span class="hl-3">blob</span><span class="hl-0">, {</span><br/><span class="hl-0"> </span><span class="hl-3">size:</span><span class="hl-0"> </span><span class="hl-3">number</span><span class="hl-0">,</span><br/><span class="hl-0"> quality?</span><span class="hl-3">:</span><span class="hl-0"> </span><span class="hl-3">number</span><br/><span class="hl-0">})</span> | ||
</code><button>Copy</button></pre> | ||
<a id="md:security-issues" class="tsd-anchor"></a><h2><a href="#md:security-issues">Security issues</a></h2><p>If you think you ran into something in Uploadcare libraries that might have | ||
security implications, please hit us up at | ||
<a href="mailto:[email protected]">[email protected]</a> or Hackerone.</p> | ||
<p>We'll contact you personally in a short time to fix an issue through co-op and | ||
prior to any public disclosure.</p> | ||
<a id="md:feedback" class="tsd-anchor"></a><h2><a href="#md:feedback">Feedback</a></h2><p>Issues and PRs are welcome. You can provide your feedback or drop us a support | ||
request at <a href="mailto:[email protected]">[email protected]</a>.</p> | ||
</div></div> | ||
<div class="col-sidebar"> | ||
<div class="page-menu"> | ||
<div class="tsd-navigation settings"> | ||
|
@@ -26,7 +59,20 @@ <h4 class="uppercase">Member Visibility</h4><form> | |
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li> | ||
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div> | ||
<div class="tsd-theme-toggle"> | ||
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div> | ||
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div> | ||
<details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"> | ||
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg>On This Page</h3></summary> | ||
<div class="tsd-accordion-details"> | ||
<ul> | ||
<li> | ||
<ul> | ||
<li><a href="#md:uploadcare-image-shrink"><span>Uploadcare <wbr/>Image <wbr/>Shrink</span></a></li> | ||
<li> | ||
<ul> | ||
<li><a href="#md:install"><span>Install</span></a></li> | ||
<li><a href="#md:usage"><span>Usage</span></a></li> | ||
<li><a href="#md:security-issues"><span>Security issues</span></a></li> | ||
<li><a href="#md:feedback"><span>Feedback</span></a></li></ul></li></ul></li></ul></div></details></div> | ||
<div class="site-menu"> | ||
<nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>@uploadcare/image-<wbr/>shrink</span></a> | ||
<ul class="tsd-small-nested-navigation"> | ||
|
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.