Skip to content

Commit 53b92aa

Browse files
committed
docs: update docs :D
1 parent 7f83e63 commit 53b92aa

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</details>
2828

2929
## NOTE!!
30-
`vue-modern-cropper` uses `cropperjs@next` (v2), which is not yet stable release and is missing a lot of documentations, if you use the package in the current time, prepare to dive into `cropperjs@next` source code / type defs to figure out the APIs.
30+
`vue-modern-cropper` uses `cropperjs@next` (v2), which is not yet stable release, you can check it's documentation [HERE](https://fengyuanchen.github.io/cropperjs/v2/api/)
3131

3232
Feel free to submit PRs to add helper functions.
3333

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
<meta charset="UTF-8" />
6-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<title>Vue Modern Cropper</title>
99
</head>

public/favicon.svg

Lines changed: 7 additions & 0 deletions
Loading

public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/App.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ onMounted(() => {
5757
<nav class="h-20 py-4 flex-between text-primary">
5858
<div class="font-semibold text-xl flex-center gap-2">
5959
<Logo class="h-6 w-6" />
60-
Vue Modern Cropper
60+
<span class="text-#327959">Vue</span>Modern Cropper
6161
</div>
6262
<div class="flex-center gap-4">
6363
<button class="!bg-transparent opacity-50 hover:opacity-100 transition" @click="(e) => toggleDarkmode()">
@@ -106,7 +106,8 @@ onMounted(() => {
106106
<Highlight :autodetect="false" language="javascript" :code="demoCode0" />
107107
</main>
108108

109-
<div class="my-2">
109+
<div class="my-2 text-primary">
110+
Check out cropperjs@next document: <a href="https://fengyuanchen.github.io/cropperjs/v2/api/" class="text-#3399ff">https://fengyuanchen.github.io/cropperjs/v2/api/</a>
110111
<ModernCropper :src="srcImg" class="h-40"/>
111112
</div>
112113

src/components/Logo.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<template>
22
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
3-
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
4-
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
5-
<path d="M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2" />
6-
<path d="M14 17a1 1 0 1 0 2 0a1 1 0 1 0-2 0m-6 0a1 1 0 1 0 2 0a1 1 0 1 0-2 0m1 0l6-6m0 6l-6-6" />
7-
</g>
3+
<g fill="none" stroke="#327959" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
4+
<path d="M14 3v4a1 1 0 0 0 1 1h4"></path>
5+
<path d="M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2"></path>
6+
<path d="M14 17a1 1 0 1 0 2 0a1 1 0 1 0-2 0m-6 0a1 1 0 1 0 2 0a1 1 0 1 0-2 0m1 0l6-6m0 6l-6-6"></path>
7+
</g>
88
</svg>
9+
910
</template>

0 commit comments

Comments
 (0)