feat: improve Clipboard Sniffer extension integration and UI fixes
This commit is contained in:
@@ -71,9 +71,16 @@ const generatePasswords = () => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="tool-container">
|
||||
<div class="tool-container full-width">
|
||||
<div class="tool-panel">
|
||||
<h2 class="tool-title">Bulk Passwords Generator</h2>
|
||||
<div class="panel-header">
|
||||
<h2 class="tool-title">Bulk Passwords Generator</h2>
|
||||
<div class="action-area">
|
||||
<button class="btn-neon generate-btn" @click="generatePasswords" v-ripple>
|
||||
Generate
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="options-grid">
|
||||
<div class="checkbox-group">
|
||||
@@ -100,13 +107,13 @@ const generatePasswords = () => {
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" v-model="skipSimilar">
|
||||
<span class="checkmark"></span>
|
||||
Skip Similar Chars (I, l, 1, O, 0, o)
|
||||
Skip Similar (I, l, 1, O, 0, o)
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="inputs-group">
|
||||
<div class="input-wrapper">
|
||||
<label>Password Length</label>
|
||||
<label>Length</label>
|
||||
<div class="number-control">
|
||||
<button class="control-btn" @click="length > 4 ? length-- : null">-</button>
|
||||
<input type="number" v-model="length" min="4" max="128" class="number-input">
|
||||
@@ -114,7 +121,7 @@ const generatePasswords = () => {
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-wrapper">
|
||||
<label>Passwords Number</label>
|
||||
<label>Count</label>
|
||||
<div class="number-control">
|
||||
<button class="control-btn" @click="count > 1 ? count-- : null">-</button>
|
||||
<input type="number" v-model="count" min="1" max="1000" class="number-input">
|
||||
@@ -124,37 +131,74 @@ const generatePasswords = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="action-area">
|
||||
<button class="btn-neon generate-btn" @click="generatePasswords" v-ripple>
|
||||
Generate
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="result-area">
|
||||
<label>Passwords</label>
|
||||
<div ref="textareaRef" :style="{ height: textareaHeight, width: '100%' }">
|
||||
<textarea
|
||||
class="tool-textarea"
|
||||
v-model="result"
|
||||
placeholder="Generated passwords will appear here..."
|
||||
></textarea>
|
||||
</div>
|
||||
<div class="result-area" :style="{ height: textareaHeight }">
|
||||
<textarea
|
||||
class="tool-textarea"
|
||||
v-model="result"
|
||||
placeholder="Generated passwords will appear here..."
|
||||
readonly
|
||||
></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.options-grid {
|
||||
.tool-container.full-width {
|
||||
max-width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.tool-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.tool-title {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.options-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 2rem;
|
||||
padding: 1rem;
|
||||
background: var(--toggle-bg);
|
||||
border: 1px solid var(--toggle-border);
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.checkbox-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
gap: 1.5rem;
|
||||
flex: 2;
|
||||
}
|
||||
|
||||
.inputs-group {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
flex: 1;
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
.input-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
@@ -166,9 +210,9 @@ const generatePasswords = () => {
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
|
||||
/* Custom Checkbox */
|
||||
.checkbox-label input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
@@ -212,86 +256,63 @@ const generatePasswords = () => {
|
||||
top: 2px;
|
||||
width: 5px;
|
||||
height: 10px;
|
||||
border: solid white;
|
||||
border: solid #000;
|
||||
border-width: 0 2px 2px 0;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.inputs-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.input-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
flex: 1;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.input-wrapper label {
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Number Control */
|
||||
.number-control {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
background: var(--toggle-bg);
|
||||
border: 1px solid var(--toggle-border);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.control-btn {
|
||||
width: 42px;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-color);
|
||||
font-size: 1.2rem;
|
||||
width: 40px;
|
||||
height: auto;
|
||||
min-height: 40px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--toggle-bg);
|
||||
border: 1px solid var(--toggle-border);
|
||||
color: var(--text-color);
|
||||
border-radius: 0;
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.control-btn:first-child {
|
||||
border-top-left-radius: 8px;
|
||||
border-bottom-left-radius: 8px;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.control-btn:last-child {
|
||||
border-top-right-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
.control-btn:hover {
|
||||
background-color: var(--button-hover-bg);
|
||||
border-color: var(--toggle-hover-border);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.control-btn:active {
|
||||
transform: scale(0.98);
|
||||
background: var(--button-hover-bg);
|
||||
}
|
||||
|
||||
.number-input {
|
||||
flex: 1;
|
||||
padding: 0.8rem;
|
||||
background-color: var(--toggle-bg);
|
||||
border: 1px solid var(--toggle-border);
|
||||
border-radius: 0;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-color);
|
||||
font-size: 1rem;
|
||||
transition: border-color 0.3s;
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
appearance: textfield; /* Remove default spinner */
|
||||
min-width: 0;
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
appearance: textfield;
|
||||
-moz-appearance: textfield;
|
||||
height: 100%;
|
||||
border-radius: 0;
|
||||
min-width: 60px;
|
||||
}
|
||||
|
||||
.number-input:focus {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.number-input::-webkit-outer-spin-button,
|
||||
@@ -300,90 +321,54 @@ const generatePasswords = () => {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.number-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-accent);
|
||||
box-shadow: 0 0 0 2px var(--toggle-active-shadow);
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.action-area {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 1rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn-neon {
|
||||
width: 100%;
|
||||
background: var(--button-bg);
|
||||
border: 1px solid var(--button-border);
|
||||
color: var(--button-text);
|
||||
padding: 0.8rem 2rem;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.btn-neon:hover {
|
||||
background: var(--button-hover-bg);
|
||||
box-shadow: var(--button-hover-shadow);
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--toggle-hover-border);
|
||||
}
|
||||
|
||||
.btn-neon:active {
|
||||
transform: translateY(1px);
|
||||
box-shadow: var(--button-active-shadow);
|
||||
}
|
||||
|
||||
.result-area {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
flex: 1;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.result-area label {
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
font-size: 0.9rem;margin-top: auto;
|
||||
}
|
||||
|
||||
.tool-textarea {
|
||||
min-height: 200px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.result-textarea:focus {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 1rem;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--glass-border);
|
||||
background: var(--glass-bg);
|
||||
color: var(--text-color);
|
||||
font-family: monospace;
|
||||
font-size: 0.9rem;
|
||||
resize: none;
|
||||
outline: none;
|
||||
border-color: var(--primary-accent);
|
||||
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* Scrollbar for textarea */
|
||||
.result-textarea::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
.generate-btn {
|
||||
padding: 0.75rem 2rem;
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.result-textarea::-webkit-scrollbar-track {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
border-radius: 4px;
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.options-grid {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.result-textarea::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.inputs-group {
|
||||
flex-direction: column;
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
.result-textarea::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
.panel-header {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.generate-btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user