-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v5/develop' into v6/develop
# Conflicts: # panel/package-lock.json # panel/package.json
- Loading branch information
Showing
150 changed files
with
3,195 additions
and
2,226 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
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 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
return [ | ||
'docs' => 'k-login-form' | ||
]; |
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,26 @@ | ||
<template> | ||
<k-lab-examples> | ||
<k-lab-example label="Default"> | ||
<k-login-form /> | ||
</k-lab-example> | ||
<k-lab-example label="With password"> | ||
<k-login-form :methods="['password']" /> | ||
</k-lab-example> | ||
<k-lab-example label="Prefilled"> | ||
<k-login-form | ||
:methods="['password']" | ||
:value="{ | ||
email: '[email protected]', | ||
password: 'password1', | ||
remember: true | ||
}" | ||
/> | ||
</k-lab-example> | ||
<k-lab-example label="Toggle between login methods"> | ||
<k-login-form :methods="['password', 'code']" /> | ||
</k-lab-example> | ||
<k-lab-example label="Password reset"> | ||
<k-login-form :methods="['password', 'password-reset']" /> | ||
</k-lab-example> | ||
</k-lab-examples> | ||
</template> |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
'docs' => 'k-login-code-form' | ||
]; |
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,15 @@ | ||
<template> | ||
<k-lab-examples> | ||
<k-lab-example label="Default"> | ||
<k-login-code-form /> | ||
</k-lab-example> | ||
<k-lab-example label="Prefilled"> | ||
<k-login-code-form value="123456" /> | ||
</k-lab-example> | ||
<k-lab-example label="Pending info"> | ||
<k-login-code-form | ||
:pending="{ email: '[email protected]', challenge: 'totp' }" | ||
/> | ||
</k-lab-example> | ||
</k-lab-examples> | ||
</template> |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
'docs' => 'k-upload-items', | ||
]; |
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,54 @@ | ||
<template> | ||
<k-lab-examples> | ||
<k-lab-example label="Upload Items"> | ||
<k-upload-items :items="items" @remove="remove" @rename="rename" /> | ||
</k-lab-example> | ||
</k-lab-examples> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
computed: { | ||
items() { | ||
return [ | ||
{ | ||
extension: "jpeg", | ||
type: "image/jpeg", | ||
name: "test", | ||
niceSize: "128 KB", | ||
url: "https://picsum.photos/200/200" | ||
}, | ||
{ | ||
extension: "pdf", | ||
type: "application/pdf", | ||
name: "document", | ||
niceSize: "1.5 MB", | ||
url: "/some.pdf" | ||
}, | ||
{ | ||
extension: "mp4", | ||
type: "video/mp4", | ||
name: "screencast", | ||
niceSize: "3 GB", | ||
url: "/some.mp4" | ||
}, | ||
{ | ||
extension: "mp3", | ||
type: "audio/mp3", | ||
name: "song", | ||
niceSize: "2.5 MB", | ||
url: "/some.mp3" | ||
} | ||
]; | ||
} | ||
}, | ||
methods: { | ||
remove(file) { | ||
console.log("Remove", { file }); | ||
}, | ||
rename(file, name) { | ||
console.log("Rename", { file, name }); | ||
} | ||
} | ||
}; | ||
</script> |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
'docs' => 'k-upload-item', | ||
]; |
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,74 @@ | ||
<template> | ||
<k-lab-examples> | ||
<k-lab-example label="Upload Item"> | ||
<k-upload-item | ||
extension="jpeg" | ||
type="image/jpeg" | ||
name="test" | ||
niceSize="128 kB" | ||
url="https://picsum.photos/200/200" | ||
@remove="remove" | ||
@rename="rename" | ||
/> | ||
</k-lab-example> | ||
<k-lab-example label="Progress"> | ||
<k-upload-item | ||
:progress="80" | ||
extension="jpeg" | ||
type="image/jpeg" | ||
name="test" | ||
niceSize="128 kB" | ||
url="https://picsum.photos/200/200" | ||
@remove="remove" | ||
@rename="rename" | ||
/> | ||
</k-lab-example> | ||
<k-lab-example label="Completed"> | ||
<k-upload-item | ||
:completed="true" | ||
extension="jpeg" | ||
type="image/jpeg" | ||
name="test" | ||
niceSize="128 kB" | ||
url="https://picsum.photos/200/200" | ||
@remove="remove" | ||
@rename="rename" | ||
/> | ||
</k-lab-example> | ||
<k-lab-example label="Not editable"> | ||
<k-upload-item | ||
:editable="false" | ||
extension="jpeg" | ||
type="image/jpeg" | ||
name="test" | ||
niceSize="128 kB" | ||
url="https://picsum.photos/200/200" | ||
/> | ||
</k-lab-example> | ||
<k-lab-example label="Error"> | ||
<k-upload-item | ||
extension="jpeg" | ||
type="image/jpeg" | ||
name="test" | ||
niceSize="128 kB" | ||
error="The file could not be uploaded" | ||
url="https://picsum.photos/200/200" | ||
@remove="remove" | ||
@rename="rename" | ||
/> | ||
</k-lab-example> | ||
</k-lab-examples> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
methods: { | ||
remove() { | ||
console.log("Remove"); | ||
}, | ||
rename(name) { | ||
console.log("Rename to", name); | ||
} | ||
} | ||
}; | ||
</script> |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
'docs' => 'k-upload-item-preview', | ||
]; |
34 changes: 34 additions & 0 deletions
34
panel/lab/components/uploads/3_upload-item-preview/index.vue
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,34 @@ | ||
<template> | ||
<k-lab-examples> | ||
<k-lab-example label="Image with preview"> | ||
<k-upload-item-preview | ||
type="image/jpeg" | ||
url="https://picsum.photos/200/200" | ||
/> | ||
</k-lab-example> | ||
<k-lab-example label="Image without preview"> | ||
<k-upload-item-preview | ||
type="image/bitmap" | ||
url="https://picsum.photos/200/200" | ||
/> | ||
</k-lab-example> | ||
<k-lab-example label="Audio"> | ||
<k-upload-item-preview type="audio/mp3" url="/some.mp3" /> | ||
</k-lab-example> | ||
<k-lab-example label="Video"> | ||
<k-upload-item-preview type="video/mp4" url="/some.mp4" /> | ||
</k-lab-example> | ||
<k-lab-example label="Icon"> | ||
<k-upload-item-preview icon="image" url="/some.mp4" /> | ||
</k-lab-example> | ||
<k-lab-example label="Color"> | ||
<k-upload-item-preview color="pink-500" icon="heart" url="/some.mp4" /> | ||
</k-lab-example> | ||
</k-lab-examples> | ||
</template> | ||
|
||
<style> | ||
.k-lab-example .k-upload-item-preview { | ||
width: 6rem; | ||
} | ||
</style> |
Oops, something went wrong.