generated from aniketmaurya/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c14cbb
commit a711888
Showing
4 changed files
with
29 additions
and
36 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="https://raw.githubusercontent.com/aniketmaurya/blog/main/assets/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet"> | ||
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet"> | ||
<title>FastServe 🧡</title> | ||
</head> | ||
|
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 |
---|---|---|
@@ -1,32 +1,17 @@ | ||
<template> | ||
<v-container> | ||
<v-card text="Chat with PDF"> | ||
<v-file-input | ||
show-size | ||
:rules="rules" | ||
accept="application/pdf" | ||
placeholder="Pick a PDF file or drag and drop it here" | ||
prepend-icon="mdi-document" | ||
label="PDF input" | ||
density="compact" | ||
|
||
></v-file-input> | ||
|
||
</v-card> | ||
|
||
</v-container> | ||
|
||
<v-file-input show-size :rules="rules" accept="application/pdf" placeholder="Pick a PDF file or drag and drop it here" | ||
prepend-icon="mdi-document" label="PDF input" density="compact"></v-file-input> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "FileUploadCard", | ||
data: () => ({ | ||
rules: [ | ||
value => { | ||
return !value || !value.length || value[0].size < 5000000 || 'PDF size should be less than 5 MB!' | ||
}, | ||
], | ||
}), | ||
} | ||
export default { | ||
name: "FileUploadCard", | ||
data: () => ({ | ||
rules: [ | ||
value => { | ||
return !value || !value.length || value[0].size < 5000000 || 'PDF size should be less than 5 MB!' | ||
}, | ||
], | ||
}), | ||
} | ||
</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