8 Commits

Author SHA1 Message Date
06b2815dd9 0.4.5
All checks were successful
Deploy to Production / deploy (push) Successful in 13s
2026-02-27 08:51:31 +00:00
1346de684c feat: url cleaner multiline support and ui tweaks 2026-02-27 08:51:05 +00:00
cfc9ac73b2 0.4.4
All checks were successful
Deploy to Production / deploy (push) Successful in 12s
2026-02-27 07:43:26 +00:00
e095c0190b style: restore danger styling for stop sniffing button 2026-02-27 07:43:12 +00:00
45342d456a 0.4.3
All checks were successful
Deploy to Production / deploy (push) Successful in 12s
2026-02-27 07:09:38 +00:00
3ea7f63b83 style: remove panel borders and backgrounds on mobile for cleaner look 2026-02-27 07:09:27 +00:00
8b5705c12f 0.4.2
All checks were successful
Deploy to Production / deploy (push) Successful in 13s
2026-02-27 07:03:14 +00:00
a3bc069029 fix: responsive layout for url cleaner and sniffer icon alignment 2026-02-27 07:02:58 +00:00
8 changed files with 171 additions and 18 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "tools-app",
"version": "0.4.1",
"version": "0.4.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "tools-app",
"version": "0.4.1",
"version": "0.4.5",
"dependencies": {
"lucide-vue-next": "^0.575.0",
"vue": "^3.5.25",

View File

@@ -1,7 +1,7 @@
{
"name": "tools-app",
"private": true,
"version": "0.4.1",
"version": "0.4.5",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -74,6 +74,13 @@ onUnmounted(() => {
padding-bottom: calc(2rem + 40px + env(safe-area-inset-bottom));
}
@media (max-width: 640px) {
.main-content {
padding: 1rem;
padding-bottom: calc(1rem + 40px + env(safe-area-inset-bottom));
}
}
@media (min-width: 768px) {
.app-body {
overflow: hidden;

View File

@@ -51,7 +51,9 @@ const clearText = () => {
<div class="tool-panel">
<div class="tool-header">
<h2 class="tool-title">Clipboard Sniffer</h2>
<ExtensionStatus :isReady="isExtensionReady" class="extension-indicator" />
<div class="extension-indicator-wrapper">
<ExtensionStatus :isReady="isExtensionReady" />
</div>
</div>
<div class="controls">
@@ -67,7 +69,7 @@ const clearText = () => {
</button>
<button
v-else
class="btn-neon active"
class="btn-neon danger"
@click="stopListening"
v-ripple
>
@@ -145,10 +147,11 @@ const clearText = () => {
border-color: var(--primary-accent);
}
.extension-indicator {
.extension-indicator-wrapper {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
display: flex;
}
</style>

View File

@@ -1,6 +1,6 @@
<script setup>
import { ref, watch, onUnmounted } from 'vue'
import { Copy, Trash2, ExternalLink, Power, Zap, X, Settings } from 'lucide-vue-next'
import { Copy, Trash2, ExternalLink, Power, Zap, X, Settings, Download } from 'lucide-vue-next'
import { useExtension } from '../../composables/useExtension'
import { useLocalStorage } from '../../composables/useLocalStorage'
import ExtensionStatus from './common/ExtensionStatus.vue'
@@ -57,10 +57,45 @@ const toggleWatch = () => {
isWatchEnabled.value = !isWatchEnabled.value
}
const copyAllUrls = async () => {
if (cleanedHistory.value.length === 0) return
const text = cleanedHistory.value.map(item => item.cleaned).join('\n')
try {
await navigator.clipboard.writeText(text)
} catch (err) {
console.error('Failed to copy URLs', err)
}
}
const downloadJson = () => {
if (cleanedHistory.value.length === 0) return
const exportData = cleanedHistory.value.map(item => ({
url: item.cleaned,
original: item.original,
timestamp: item.timestamp
}))
const data = JSON.stringify(exportData, null, 2)
const blob = new Blob([data], { type: 'application/json' })
const url = URL.createObjectURL(blob)
const a = document.createElement('a')
a.href = url
a.download = `cleaned-urls-${new Date().toISOString().slice(0, 10)}.json`
document.body.appendChild(a)
a.click()
document.body.removeChild(a)
URL.revokeObjectURL(url)
}
// Manual clean
const handleClean = () => {
if (inputUrl.value) {
processUrl(inputUrl.value, false)
const urls = inputUrl.value.split(/\r?\n/).filter(line => line.trim().length > 0)
urls.forEach(url => {
processUrl(url.trim(), false)
})
inputUrl.value = ''
}
}
@@ -189,13 +224,13 @@ onUnmounted(() => {
<div class="input-section">
<div class="input-wrapper">
<input
<textarea
v-model="inputUrl"
type="text"
placeholder="Paste URL here to clean..."
placeholder="Paste URL(s) here to clean..."
class="url-input"
@keyup.enter="handleClean"
>
@keydown.enter.prevent="handleClean"
rows="1"
></textarea>
<button class="btn-neon" @click="handleClean">
Clean
</button>
@@ -219,9 +254,17 @@ onUnmounted(() => {
<div class="history-section" v-if="cleanedHistory.length > 0">
<div class="history-header">
<h3>Cleaned URLs</h3>
<button class="icon-btn" @click="clearHistory" title="Clear History">
<Trash2 size="18" />
</button>
<div class="history-actions">
<button class="icon-btn" @click="copyAllUrls" title="Copy all URLs">
<Copy size="18" />
</button>
<button class="icon-btn" @click="downloadJson" title="Download JSON">
<Download size="18" />
</button>
<button class="icon-btn delete-btn" @click="clearHistory" title="Clear History">
<Trash2 size="18" />
</button>
</div>
</div>
<div class="history-list">
@@ -300,11 +343,35 @@ onUnmounted(() => {
border-radius: 12px;
}
@media (max-width: 640px) {
.input-section {
background: transparent;
border: none;
border-radius: 0;
padding: 0;
}
}
.input-wrapper {
display: flex;
gap: 1rem;
}
@media (max-width: 640px) {
.input-wrapper {
flex-direction: column;
}
.watch-toggle {
justify-content: center;
}
.toggle-btn {
width: 100%;
justify-content: center;
}
}
.url-input {
flex: 1;
padding: 0.8rem 1rem;
@@ -315,6 +382,9 @@ onUnmounted(() => {
font-size: 1rem;
outline: none;
transition: all 0.2s;
resize: vertical;
min-height: 46px;
font-family: inherit;
}
.url-input:focus {
@@ -380,10 +450,16 @@ onUnmounted(() => {
color: var(--text-strong);
}
.history-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.history-list {
flex: 1;
overflow-y: auto;
padding: 0.5rem;
padding: 0;
}
.history-item {

View File

@@ -299,6 +299,12 @@ const resetToDefault = (ruleId) => {
align-items: center;
}
@media (max-width: 640px) {
.modal-header {
padding: 0.8rem 1.2rem;
}
}
.modal-header h3 {
margin: 0;
font-size: 1.4rem;
@@ -325,6 +331,12 @@ const resetToDefault = (ruleId) => {
overflow-y: auto;
}
@media (max-width: 640px) {
.modal-body {
padding: 1rem 1.2rem;
}
}
.description {
color: var(--text-secondary);
margin-bottom: 1.5rem;
@@ -353,6 +365,29 @@ const resetToDefault = (ruleId) => {
margin-bottom: 0.8rem;
}
@media (max-width: 640px) {
.form-row {
flex-direction: column;
}
.checkbox-row {
flex-direction: column;
align-items: stretch;
gap: 1rem;
}
.checkbox-group {
flex-direction: column;
align-items: flex-start;
gap: 0.8rem;
}
.btn-neon {
width: 100%;
justify-content: center;
}
}
.checkbox-row {
align-items: center;
justify-content: space-between;

View File

@@ -1,3 +1,9 @@
<script>
export default {
inheritAttrs: false
}
</script>
<script setup>
import { ref } from 'vue'
import { Plug, Plus, X } from 'lucide-vue-next'
@@ -10,7 +16,7 @@ const showModal = ref(false)
</script>
<template>
<div class="extension-status" :class="{ 'is-ready': isReady }" @click="showModal = true" :title="isReady ? 'Extension Connected' : 'Extension Not Connected'">
<div class="extension-status" v-bind="$attrs" :class="{ 'is-ready': isReady }" @click="showModal = true" :title="isReady ? 'Extension Connected' : 'Extension Not Connected'">
<Plug v-if="isReady" size="18" />
<Plus v-else size="18" />
</div>

View File

@@ -239,6 +239,16 @@ body {
box-shadow: var(--glass-shadow);
}
@media (max-width: 640px) {
.glass-panel:not(.modal-content) {
background: transparent;
backdrop-filter: none;
-webkit-backdrop-filter: none;
border: none;
box-shadow: none;
}
}
.btn-neon {
background: var(--button-bg);
border: 1px solid var(--button-border);
@@ -279,6 +289,22 @@ button:focus {
box-shadow: var(--button-active-shadow);
}
.btn-neon.danger {
background: rgba(239, 68, 68, 0.2);
border-color: rgba(239, 68, 68, 0.6);
color: #fee2e2;
}
.btn-neon.danger:hover {
background: rgba(239, 68, 68, 0.3);
border-color: rgba(239, 68, 68, 0.85);
box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}
:root[data-theme="light"] .btn-neon.danger {
color: #7f1d1d;
}
.icon-only {
padding: 8px;
border-radius: 50%;