-
Notifications
You must be signed in to change notification settings - Fork 6
Feat/1.0.8 #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feat/1.0.8 #18
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ad2aaea
Feat: reintroduce API module with enhanced error handling and documen…
6b4bfcf
Feat: implement password generator utility function
4bf81e8
Feat: add file downloader utility function for browser downloads
0ce8837
Feat: implement PasswordInput component with visibility toggle and ra…
5519114
Feat: add SecretDisplay component for displaying and copying secrets …
62736d8
Feat: implement Create component for creating secrets with text and f…
296ad00
Feat: implement View component for displaying secrets with password p…
a3f4349
Refactor: clean up comments and formatting in main application entry …
c808cc8
Feat: reintroduce Vue Router setup with corrected import paths and ro…
52f859d
Feat: add 404 and general error components for improved user feedback
f056b9a
Fix: update getSend function to correctly append password as a query …
161b7ed
Fix: update handleFile function to correctly handle both single files…
a7e57ce
Feat: implement form reset functionality and update file handling in …
5e5ee45
Fix: correct import statement for router in main.js
2d5bf6d
Feat: enhance UI components with improved styling and theme support
6487ca8
Feat: update changelog for version 1.0.8 with UI enhancements, theme …
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,25 +1,38 @@ | ||
| /** | ||
| * Global styles for responsive and clean layout. | ||
| */ | ||
| html, body { | ||
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap'); | ||
|
|
||
| html, body { | ||
| margin: 0; | ||
| padding: 0; | ||
| font-family: Arial, sans-serif; | ||
| font-family: 'Inter', Arial, sans-serif; | ||
| color: #333; | ||
| } | ||
|
|
||
| a { | ||
| color: #007bff; | ||
| background: #f4f4f9; /* Fallback background */ | ||
| } | ||
|
|
||
| /* Add a subtle gradient background */ | ||
| body { | ||
| background: linear-gradient(180deg, rgba(232,222,248,0.3) 0%, rgba(255,255,255,1) 30%); | ||
| } | ||
|
|
||
| .v-application { | ||
| background: transparent !important; | ||
| } | ||
|
|
||
|
|
||
| a { | ||
| color: #6750A4; /* Using the new primary color */ | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| a:hover { | ||
| transition: color 0.3s ease; | ||
| } | ||
|
|
||
| a:hover { | ||
| text-decoration: underline; | ||
| } | ||
| @media (max-width: 600px) { | ||
| } | ||
|
|
||
| @media (max-width: 600px) { | ||
| main, header { | ||
| padding: 1rem; | ||
| padding: 0.5rem; | ||
| } | ||
| } | ||
|
|
||
| } |
This file contains hidden or 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,41 @@ | ||
| <template> | ||
| <v-text-field | ||
| label="Password (optional)" | ||
| :type="showPassword ? 'text' : 'password'" | ||
| :model-value="modelValue" | ||
| @update:modelValue="$emit('update:modelValue', $event)" | ||
| > | ||
| <template v-slot:append-inner> | ||
| <v-tooltip text="Toggle Password Visibility"> | ||
| <template v-slot:activator="{ on, attrs }"> | ||
| <v-btn icon v-bind="attrs" v-on="on" @click="showPassword = !showPassword" size="small"> | ||
| <v-icon>{{ showPassword ? 'mdi-eye-off' : 'mdi-eye' }}</v-icon> | ||
| </v-btn> | ||
| </template> | ||
| </v-tooltip> | ||
| <v-tooltip text="Generate Random Password"> | ||
| <template v-slot:activator="{ on, attrs }"> | ||
| <v-btn icon color="primary" v-bind="attrs" v-on="on" @click="generateNewPassword" size="small" style="margin-left: 4px"> | ||
| <v-icon>mdi-refresh</v-icon> | ||
| </v-btn> | ||
| </template> | ||
| </v-tooltip> | ||
| </template> | ||
| </v-text-field> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| import { ref } from 'vue'; | ||
| import { generatePassword } from '../utils/passwordGenerator.js'; | ||
|
|
||
| const props = defineProps({ | ||
| modelValue: String | ||
| }); | ||
| const emit = defineEmits(['update:modelValue']); | ||
|
|
||
| const showPassword = ref(false); | ||
|
|
||
| function generateNewPassword() { | ||
| emit('update:modelValue', generatePassword()); | ||
| } | ||
| </script> |
This file contains hidden or 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,47 @@ | ||
| <template> | ||
| <div> | ||
| <v-alert v-if="textContent" type="info" class="mb-4 text-left" variant="tonal"> | ||
| {{ textContent }} | ||
| </v-alert> | ||
|
|
||
| <div v-if="file"> | ||
| <v-btn color="primary" @click="download" block x-large height="50" rounded> | ||
| <v-icon left>mdi-download</v-icon> Download File | ||
| </v-btn> | ||
| </div> | ||
|
|
||
| <v-btn v-if="textContent" color="primary" @click="copy" block x-large height="50" rounded class="mt-4"> | ||
| <v-icon left>mdi-content-copy</v-icon> Copy Secret | ||
| </v-btn> | ||
|
|
||
| <v-snackbar v-model="snackbar" timeout="2000"> | ||
| Text copied to clipboard! | ||
| </v-snackbar> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| import { ref } from 'vue'; | ||
| import { downloadFile } from '../utils/fileDownloader.js'; | ||
|
|
||
| const props = defineProps({ | ||
| textContent: String, | ||
| file: Blob, | ||
| filename: String | ||
| }); | ||
|
|
||
| const snackbar = ref(false); | ||
|
|
||
| function download() { | ||
| if (props.file) { | ||
| downloadFile(props.file, props.filename); | ||
| } | ||
| } | ||
|
|
||
| function copy() { | ||
| if (props.textContent) { | ||
| navigator.clipboard.writeText(props.textContent); | ||
| snackbar.value = true; | ||
| } | ||
| } | ||
| </script> | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.