docs: add svg icon for error link

This commit is contained in:
oiov
2025-05-04 21:34:21 +08:00
parent 01ca3ad732
commit 82f8ec33f5
8 changed files with 78 additions and 3 deletions
+34 -2
View File
@@ -95,23 +95,55 @@ Add the header `wrdo-api-key: YOUR_API_KEY` to your request.
}
```
## Problems
## Short Link Issues
### Expired Links
<img className='size-20 mx-auto mt-4' src="/_static/docs/link/expired.svg"/>
<Callout type="error" twClass="">
If you see this, it means that this short link has expired.
Please contact the creator of this short link to reactivate, or create a new short link.
</Callout>
### Missing links
<img className='size-20 mx-auto mt-4' src="/_static/docs/link/error-404.svg"/>
<Callout type="error" twClass="">
If you see this, it means that this short link does not exist.
Please contact the creator of this short link to reactivate, or create a new short link.
</Callout>
### Disabled links
<img className='size-20 mx-auto mt-4' src="/_static/docs/link/disabled.svg"/>
<Callout type="error" twClass="">
If you see this, it means that this short link has been disabled.
Please contact the creator of this short link to reactivate, or create a new short link.
</Callout>
### Error links
If you see this, it means that this short link has an error. Please contact administrator.
<img className='size-20 mx-auto mt-4' src="/_static/docs/link/error.svg"/>
<Callout type="error" twClass="">
If you see this, it means that this short link has an error. Please contact the creator of this short link or administrator.
</Callout>
### Password Required
<img className='size-20 mx-auto mt-4' src="/_static/docs/link/password.svg"/>
<Callout type="error" twClass="">
This short link requires a password. Enter the correct password to access it.
</Callout>
### Incorrect Password
<img className='size-20 mx-auto mt-4' src="/_static/docs/link/password-error.svg"/>
<Callout type="error" twClass="">
The password provided is incorrect. Try again or contact the link creator for the correct password.
</Callout>
+9
View File
@@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link-off" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9 15l3 -3m2 -2l1 -1"/>
<path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"/>
<path d="M3 3l18 18"/>
<path d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463"/>
</svg>

After

Width:  |  Height:  |  Size: 512 B

+10
View File
@@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-error-404" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M3 7v4a1 1 0 0 0 1 1h3"/>
<path d="M7 7v10"/>
<path d="M10 8v8a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-8a1 1 0 0 0 -1 -1h-2a1 1 0 0 0 -1 1z"/>
<path d="M17 7v4a1 1 0 0 0 1 1h3"/>
<path d="M21 7v10"/>
</svg>

After

Width:  |  Height:  |  Size: 503 B

+1
View File
@@ -0,0 +1 @@
<svg id="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><style>.cls-1{fill:none;}</style></defs><title>data-error</title><circle cx="11" cy="8" r="1"/><circle cx="11" cy="16" r="1"/><circle cx="11" cy="24" r="1"/><path d="M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2h8V27H8V21H26V5A2,2,0,0,0,24,3Zm0,16H8V13H24Zm0-8H8V5H24Z"/><polygon points="29.24 29.58 26.41 26.75 29.24 23.92 27.83 22.51 25 25.33 22.17 22.51 20.76 23.92 23.59 26.75 20.76 29.58 22.17 30.99 25 28.16 27.83 30.99 29.24 29.58"/><rect id="_Transparent_Rectangle_" data-name="&lt;Transparent Rectangle&gt;" class="cls-1" width="32" height="32"/></svg>

After

Width:  |  Height:  |  Size: 630 B

+15
View File
@@ -0,0 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
<title>expire</title>
<g id="Layer_2" data-name="Layer 2">
<g id="invisible_box" data-name="invisible box">
<rect width="48" height="48" fill="none"/>
</g>
<g id="Q3_icons" data-name="Q3 icons">
<g>
<path d="M14.2,31.9h0a2,2,0,0,0-.9-2.9A11.8,11.8,0,0,1,6.1,16.8,12,12,0,0,1,16.9,6a12.1,12.1,0,0,1,11.2,5.6,2.3,2.3,0,0,0,2.3.9h0a2,2,0,0,0,1.1-3,15.8,15.8,0,0,0-15-7.4,16,16,0,0,0-4.8,30.6A2,2,0,0,0,14.2,31.9Z"/>
<path d="M16.5,11.5v5h-5a2,2,0,0,0,0,4h9v-9a2,2,0,0,0-4,0Z"/>
<path d="M45.7,43l-15-26a2,2,0,0,0-3.4,0l-15,26A2,2,0,0,0,14,46H44A2,2,0,0,0,45.7,43ZM29,42a2,2,0,1,1,2-2A2,2,0,0,1,29,42Zm2-8a2,2,0,0,1-4,0V26a2,2,0,0,1,4,0Z"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 806 B

@@ -0,0 +1,7 @@
<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15.1213 20.364L17.2427 18.2427M17.2427 18.2427L19.364 16.1213M17.2427 18.2427L15.1213 16.1213M17.2427 18.2427L19.364 20.364" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M21 13V8C21 6.89543 20.1046 6 19 6H5C3.89543 6 3 6.89543 3 8V14C3 15.1046 3.89543 16 5 16H11" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12 11.01L12.01 10.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16 11.01L16.01 10.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8 11.01L8.01 10.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 815 B

+1
View File
@@ -0,0 +1 @@
<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M11.78 10.22a.75.75 0 0 0-1.06 1.06l.72.72-.72.72a.75.75 0 1 0 1.06 1.06l.72-.72.72.72a.75.75 0 0 0 1.06-1.062L13.561 12l.72-.72a.75.75 0 1 0-1.061-1.06l-.72.72-.72-.72ZM5.22 10.22a.75.75 0 0 1 1.06 0l.72.72.72-.72a.75.75 0 1 1 1.06 1.06l-.719.72.72.718A.75.75 0 1 1 7.72 13.78L7 13.06l-.72.72a.75.75 0 0 1-1.06-1.06l.72-.72-.72-.72a.75.75 0 0 1 0-1.06ZM16.5 13.5a.75.75 0 0 0 0 1.5h1.75a.75.75 0 0 0 0-1.5H16.5Z" fill="#212121"/><path d="M5.25 5A3.25 3.25 0 0 0 2 8.25v7.5A3.25 3.25 0 0 0 5.25 19h13.5A3.25 3.25 0 0 0 22 15.75v-7.5A3.25 3.25 0 0 0 18.75 5H5.25ZM3.5 8.25c0-.967.783-1.75 1.75-1.75h13.5c.967 0 1.75.783 1.75 1.75v7.5a1.75 1.75 0 0 1-1.75 1.75H5.25a1.75 1.75 0 0 1-1.75-1.75v-7.5Z" fill="#212121"/></svg>

After

Width:  |  Height:  |  Size: 823 B

+1 -1
View File
File diff suppressed because one or more lines are too long