Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,591 changes: 605 additions & 986 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
"devDependencies": {
"@crxjs/vite-plugin": "^3.0.0",
"@eslint/js": "^10.0.1",
"@tailwindcss/postcss": "^4.3.3",
"@types/chrome": "^0.0.268",
"@vitejs/plugin-vue": "^6.0.10",
"@vitest/coverage-v8": "^5.0.4",
"@vitest/ui": "^5.0.4",
"autoprefixer": "^10.4.19",
"daisyui": "^4.12.2",
"daisyui": "^5.7.50",
"eslint": "^10.12.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.7",
Expand All @@ -41,7 +41,7 @@
"jsdom": "^30.1.2",
"postcss": "^8.4.38",
"prettier": "^3.3.3",
"tailwindcss": "^3.4.13",
"tailwindcss": "^4.3.3",
"typescript": "^5.9.3",
"typescript-eslint": "^8.71.2",
"vite": "^8.3.4",
Expand Down
9 changes: 4 additions & 5 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
plugins: {
'@tailwindcss/postcss': {},
},
};
10 changes: 5 additions & 5 deletions src/Options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!-- Search bar for Rules -->
<label
v-if="hasRules && currentContent.component === 'TabRulesPane'"
class="input input-xs input-bordered flex items-center gap-2 w-48 focus-within:w-64 transition-all"
class="input input-xs flex items-center gap-2 w-48 focus-within:w-64 transition-all"
>
<input
ref="searchInput"
Expand All @@ -50,7 +50,7 @@
class="btn btn-xs btn-ghost btn-circle"
@click="clearSearch"
>
<CloseIcon class="!w-3 !h-3" />
<CloseIcon class="w-3! h-3!" />
</button>
<template v-else>
<kbd class="kbd kbd-xs">{{ isMac ? '⌘' : 'Ctrl' }}</kbd>
Expand All @@ -67,22 +67,22 @@
data-tip="Paste rule from clipboard"
@click="pasteRule"
>
<ClipboardIcon class="!w-4 !h-4" />
<ClipboardIcon class="w-4! h-4!" />
Paste rule
</button>
<a
v-if="hasRules && currentContent.component === 'TabRulesPane'"
class="btn btn-xs btn-circle btn-primary"
@click="openAddModal"
>
<PlusIcon class="!w-3 !h-3" />
<PlusIcon class="w-3! h-3!" />
</a>
<a
v-if="hasGroups && currentContent.component === 'TabGroupsPane'"
class="btn btn-xs btn-circle btn-primary"
@click="openAddGroupModal"
>
<PlusIcon class="!w-3 !h-3" />
<PlusIcon class="w-3! h-3!" />
</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/SidePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</div>

<!-- Tabs -->
<div role="tablist" class="tabs tabs-bordered tabs-lg bg-base-200 relative z-10">
<div role="tablist" class="tabs tabs-border tabs-lg bg-base-200 relative z-10">
<a
role="tab"
class="tab text-sm"
Expand Down
12 changes: 6 additions & 6 deletions src/components/TabHive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
v-model="searchQuery"
type="text"
placeholder="🔍 Search tabs..."
class="input input-sm input-bordered w-full pr-8"
class="input input-sm w-full pr-8"
/>
<button
v-if="searchQuery"
Expand All @@ -30,7 +30,7 @@
</svg>
</button>
</div>
<button class="btn btn-xs btn-ghost flex-shrink-0" title="Clear all" @click="clearAllTabs">
<button class="btn btn-xs btn-ghost shrink-0" title="Clear all" @click="clearAllTabs">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
Expand Down Expand Up @@ -87,12 +87,12 @@
<div
v-for="tab in tabs"
:key="tab.id"
class="card bg-base-200 shadow-sm hover:shadow-md transition-shadow"
class="card bg-base-200 shadow-xs hover:shadow-md transition-shadow"
>
<div class="card-body p-3">
<div class="flex items-start gap-3">
<div class="avatar flex-shrink-0">
<div class="w-6 h-6 rounded">
<div class="avatar shrink-0">
<div class="w-6 h-6 rounded-sm">
<img
v-if="tab.favIconUrl"
:src="tab.favIconUrl"
Expand Down Expand Up @@ -131,7 +131,7 @@
</p>
</div>

<div class="flex flex-col items-end justify-center gap-1 flex-shrink-0">
<div class="flex flex-col items-end justify-center gap-1 shrink-0">
<button
class="btn btn-xs btn-ghost btn-square"
title="Remove from list"
Expand Down
6 changes: 3 additions & 3 deletions src/components/TabHiveSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
type="number"
min="1"
max="1440"
class="input input-xs input-bordered w-full"
class="input input-xs w-full"
@change="saveSettings"
/>
</div>
Expand Down Expand Up @@ -124,7 +124,7 @@
<label class="label">
<span class="label-text">Type</span>
</label>
<select v-model="newPatternType" class="select select-sm select-bordered">
<select v-model="newPatternType" class="select select-sm">
<option value="domain">Domain</option>
<option value="url">URL</option>
</select>
Expand All @@ -138,7 +138,7 @@
v-model="newPatternValue"
type="text"
:placeholder="newPatternType === 'domain' ? 'example.com' : 'https://example.com/page'"
class="input input-sm input-bordered"
class="input input-sm"
/>
<label class="label">
<span class="label-text-alt opacity-70">
Expand Down
10 changes: 5 additions & 5 deletions src/components/global/CustomSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
v-if="currentItem?.color"
:color="currentItem.color"
alt="_color"
class="!w-3 !h-3 mr-2"
class="w-3! h-3! mr-2"
/>

<template v-if="showLabel">
Expand All @@ -24,7 +24,7 @@
</summary>
<ul
v-show="props.items.length > 0"
class="w-full p-0 shadow menu dropdown-content z-[1] bg-base-300 rounded-md max-h-36 overflow-x-hidden overflow-y-auto flex flex-row"
class="w-full p-0 shadow-sm menu dropdown-content z-1 bg-base-300 rounded-md max-h-36 overflow-x-hidden overflow-y-auto flex flex-row"
tabindex="0"
>
<li
Expand All @@ -34,8 +34,8 @@
@click="onItemSelected(item)"
>
<a>
<img v-if="item.icon" :src="item.icon" alt="_icon" class="!w-4 !h-4 mr-2" />
<ColorVisualizer v-if="item.color" :color="item.color" class="!w-4 !h-4 mr-2" />
<img v-if="item.icon" :src="item.icon" alt="_icon" class="w-4! h-4! mr-2" />
<ColorVisualizer v-if="item.color" :color="item.color" class="w-4! h-4! mr-2" />
<template v-if="showLabel">
{{ item.label }}
</template>
Expand All @@ -44,7 +44,7 @@
</ul>
</details>
<div v-if="showClearBtn" class="px-1 btn btn-xs btn-accent rounded-l-none" @click="clearValue">
<CloseIcon class="!w-4 !h-4" />
<CloseIcon class="w-4! h-4!" />
</div>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/global/RefreshButton.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<button @click="onRefreshClicked">
<RefreshIcon class="!w-4 !h-4 text-accent" :class="{ 'rotate-animation': isRefreshRotating }" />
<RefreshIcon class="w-4! h-4! text-accent" :class="{ 'rotate-animation': isRefreshRotating }" />
</button>
</template>
<script setup lang="ts">
Expand Down
9 changes: 2 additions & 7 deletions src/components/global/RegexVisualizer.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
<template>
<div class="w-full">
<form class="mb-4" @submit.prevent="visualizeRegex">
<div class="form-control w-full md:flex-0">
<div class="form-control w-full">
<div class="label">
<span class="label-text text-xs text-accent">Test string</span>
</div>

<div class="flex">
<input
id="text"
v-model="text"
type="text"
class="input input-xs input-bordered border-accent w-full"
/>
<input id="text" v-model="text" type="text" class="input input-xs border-accent w-full" />
</div>
</div>
</form>
Expand Down
6 changes: 3 additions & 3 deletions src/components/options/center/resources/DonationPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
<div class="grid grid-cols-1 md:grid-cols-3 gap-2 text-md">
<DonationCard link="https://www.buymeacoffee.com/xyugxh7bk" name="Buy Me a Coffee">
<template #icon>
<BuyMeACoffeeIcon class="!h-4" />
<BuyMeACoffeeIcon class="h-4!" />
</template>
</DonationCard>
<DonationCard link="https://donate.stripe.com/fZeg1Sgml971dbieUU" name="Credit Card">
<template #icon>
<DonationIcon class="!h-4 text-black" />
<DonationIcon class="h-4! text-black" />
</template>
</DonationCard>
<DonationCard
link="https://www.paypal.com/donate/?hosted_button_id=T7KZA4MLT5XTU"
name="Paypal"
>
<template #icon>
<PayPalIcon class="!h-4" />
<PayPalIcon class="h-4!" />
</template>
</DonationCard>
</div>
Expand Down
14 changes: 8 additions & 6 deletions src/components/options/center/sections/HelpPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,23 +159,25 @@
<p>This action will rewrite the website title.</p>
<p>You can use special variables in your title:</p>
<ul class="list-disc ml-3 space-y-1">
<li><code class="bg-base-300 px-1 rounded">{title}</code> - The original page title</li>
<li>
<code class="bg-base-300 px-1 rounded">{.css-selector}</code> - Extract text from any
<code class="bg-base-300 px-1 rounded-sm">{title}</code> - The original page title
</li>
<li>
<code class="bg-base-300 px-1 rounded-sm">{.css-selector}</code> - Extract text from any
element on the page using a CSS selector
</li>
</ul>
<p class="mt-2">
<strong>Example for YouTube:</strong> To prepend the channel name to video titles, use:
</p>
<p>
<code class="bg-base-300 px-1 rounded">{.ytd-channel-name a} - {title}</code>
<code class="bg-base-300 px-1 rounded-sm">{.ytd-channel-name a} - {title}</code>
</p>
<p class="mt-2">
This works with any valid CSS selector:
<code class="bg-base-300 px-1 rounded">{#header h1}</code>,
<code class="bg-base-300 px-1 rounded">{.author-name}</code>,
<code class="bg-base-300 px-1 rounded">{[data-testid="username"]}</code>, etc.
<code class="bg-base-300 px-1 rounded-sm">{#header h1}</code>,
<code class="bg-base-300 px-1 rounded-sm">{.author-name}</code>,
<code class="bg-base-300 px-1 rounded-sm">{[data-testid="username"]}</code>, etc.
</p>
<p class="mt-2">
<strong>Advanced:</strong> You can also inject parts of the URL with the dollar ($)
Expand Down
8 changes: 4 additions & 4 deletions src/components/options/center/sections/SettingsPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<label class="label">
<span class="label-text">Type</span>
</label>
<select v-model="newPattern.type" class="select select-bordered select-xs">
<select v-model="newPattern.type" class="select select-xs">
<option value="domain">Domain (simple matching)</option>
<option value="regex">Regex (advanced)</option>
</select>
Expand All @@ -160,7 +160,7 @@
v-model="newPattern.pattern"
type="text"
placeholder="e.g., example.com or ^https://.*\\.example\\.com"
class="input input-bordered input-xs w-full"
class="input input-xs w-full"
/>
<label class="label">
<span class="label-text-alt">
Expand Down Expand Up @@ -214,7 +214,7 @@
type="number"
min="1"
max="1440"
class="input input-bordered input-xs w-24"
class="input input-xs w-24"
/>
<span class="text-xs">minute(s)</span>
</div>
Expand Down Expand Up @@ -247,7 +247,7 @@
ref="fileInput"
type="file"
accept=".json"
class="file-input file-input-xs file-input-bordered w-full"
class="file-input file-input-xs w-full"
@change="onFileChanged"
/>
</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<input
ref="currentGroupTitleInput"
v-model="currentGroup.title"
class="input input-xs input-bordered w-full"
class="input input-xs w-full"
placeholder="e.g. Google"
required
type="text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
data-tip="Delete"
@click.prevent="(event) => deleteGroup(event, group.id)"
>
<DeleteIcon class="!w-4 !h-4" />
<DeleteIcon class="w-4! h-4!" />
</button>
</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion src/components/options/center/sections/TabHivePane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="flex justify-center items-start pt-8 pb-20 px-4">
<div class="w-full max-w-4xl">
<!-- Tabs Navigation -->
<div role="tablist" class="tabs tabs-bordered mb-6">
<div role="tablist" class="tabs tabs-border mb-6">
<a
role="tab"
class="tab"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
v-model="searchQuery"
type="text"
placeholder="Search..."
class="input input-xs input-bordered w-full"
class="input input-xs w-full"
@keydown.escape="isOpen = false"
/>
</div>
Expand Down
Loading
Loading