Skip to content

Commit a42182e

Browse files
clean: new feature
1 parent 7d10e22 commit a42182e

File tree

12 files changed

+23
-37
lines changed

12 files changed

+23
-37
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Tab Modifier",
4-
"version": "1.0.14",
4+
"version": "1.0.16",
55
"description": "Take control of your tabs",
66
"homepage_url": "https://github.com/furybee/chrome-tab-modifier",
77
"action": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tab-modifier",
33
"private": true,
4-
"version": "1.0.14",
4+
"version": "1.0.16",
55
"type": "module",
66
"scripts": {
77
"test": "vitest --run",

src/Options.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262

6363
<script lang="ts" setup>
6464
import Menu from './components/options/left/Menu.vue';
65-
import { GLOBAL_EVENTS, Components, MenuItem } from './common/types.ts';
66-
import { inject, onMounted, ref, computed } from 'vue';
65+
import { Components, GLOBAL_EVENTS, MenuItem } from './common/types.ts';
66+
import { computed, inject, onMounted, ref } from 'vue';
6767
import TabRulesPane from './components/options/center/sections/TabRulesPane.vue';
6868
import TabGroupsPane from './components/options/center/sections/TabGroupsPane.vue';
6969
import SettingsPane from './components/options/center/sections/SettingsPane.vue';

src/Popup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import { useRulesStore } from './stores/rules.store.ts';
1313
import { onMounted, ref } from 'vue';
1414
import RuleForm from './components/options/center/sections/TabRules/RuleForm.vue';
15-
import { _getRuleFromUrl, _getDefaultRule, _getStorageAsync } from './common/storage.ts';
15+
import { _getDefaultRule, _getRuleFromUrl } from './common/storage.ts';
1616
1717
const rulesStore = useRulesStore();
1818
const isInit = ref(false);

src/common/storage.test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
import { describe, it, expect, beforeEach, vi } from 'vitest';
1+
import { beforeEach, describe, expect, it, vi } from 'vitest';
22
import {
3-
_getDefaultTabModifierSettings,
4-
_getDefaultRule,
3+
_clearStorage,
54
_getDefaultGroup,
5+
_getDefaultRule,
6+
_getDefaultTabModifierSettings,
7+
_getRuleFromUrl,
68
_getStorageAsync,
7-
_clearStorage,
89
_setStorage,
9-
_getRuleFromUrl,
1010
STORAGE_KEY,
1111
} from './storage';
1212
import { chrome } from '../__mocks__/chrome';
13+
1314
global.chrome = chrome;
1415

1516
beforeEach(() => {

src/components/options/center/sections/HelpPane.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
<li>You can rename a tab.</li>
2121
<li>You can change any tab (fav)icon.</li>
2222
<li>You can pin a website without effort.</li>
23-
<li>
24-
You can group your tabs easily.
25-
<NewFeature />
26-
</li>
23+
<li>You can group your tabs easily.</li>
2724
<li>You can protect some websites from accidental closure with a confirm box.</li>
2825
<li>You can avoid duplicate tabs by setting up the unique property.</li>
2926
<li>You can mute the sound of any website before it plays it.</li>
@@ -153,9 +150,7 @@
153150
</div>
154151
</template>
155152

156-
<script lang="ts" setup>
157-
import NewFeature from '../../../global/NewFeature.vue';
158-
</script>
153+
<script lang="ts" setup></script>
159154

160155
<style scoped>
161156
h3 {

src/components/options/center/sections/SettingsPane.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66

77
<div class="grid grid-cols-6">
88
<div class="col-span-5">
9-
<h3 class="font-bold">
10-
Theme -
11-
<NewFeature />
12-
</h3>
9+
<h3 class="font-bold">Theme</h3>
1310
<p>Change Tab Modifier theme</p>
1411
</div>
1512
<div class="col-span-1">
@@ -123,7 +120,6 @@
123120
import CustomSelect from '../../../global/CustomSelect.vue';
124121
import { inject, ref, watch } from 'vue';
125122
import { useRulesStore } from '../../../../stores/rules.store.ts';
126-
import NewFeature from '../../../global/NewFeature.vue';
127123
import { GLOBAL_EVENTS } from '../../../../common/types.ts';
128124
import { _getThemes } from '../../../../common/helpers.ts';
129125

src/components/options/center/sections/TabRules/RuleForm.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<div class="flex flex-wrap md:flex-nowrap gap-2 mt-4">
7272
<div v-if="!isGroupFormVisible" class="form-control w-full md:max-w-xs md:flex-0">
7373
<div class="label">
74-
<span class="label-text text-sm">Group <NewFeature /></span>
74+
<span class="label-text text-sm">Group</span>
7575
</div>
7676

7777
<CustomSelect v-model="currentRule.tab.group_id" :items="availableGroups" />
@@ -83,7 +83,7 @@
8383
<div v-else class="bg-base-300 rounded-md w-full md:max-w-xs md:flex-0 px-2 pb-2">
8484
<div class="flex justify-between items-center">
8585
<div class="label">
86-
<span class="label-text text-sm">Group <NewFeature /></span>
86+
<span class="label-text text-sm">Group</span>
8787
</div>
8888
<CloseIcon class="cursor-pointer hover:text-error !h-4 !w-4" @click="hideGroupForm" />
8989
</div>
@@ -301,7 +301,6 @@
301301
import { useRulesStore } from '../../../../../stores/rules.store.ts';
302302
import { computed, inject, onMounted, ref, watch } from 'vue';
303303
import CustomSelect, { SelectItem } from '../../../../global/CustomSelect.vue';
304-
import NewFeature from '../../../../global/NewFeature.vue';
305304
import {
306305
_chromeGroupColor,
307306
_clone,

src/components/options/center/sections/TabRules/TableRules.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,12 @@
8989
<script lang="ts" setup>
9090
import DuplicateIcon from '../../../../icons/DuplicateIcon.vue';
9191
import DeleteIcon from '../../../../icons/DeleteIcon.vue';
92-
import { inject, ref } from 'vue';
92+
import { computed, inject, ref, watch } from 'vue';
9393
import { GLOBAL_EVENTS, Group, Rule, RuleModalParams } from '../../../../../common/types.ts';
9494
import { useRulesStore } from '../../../../../stores/rules.store.ts';
9595
import RefreshButton from '../../../../global/RefreshButton.vue';
9696
import { _chromeGroupColor, _shortify } from '../../../../../common/helpers.ts';
9797
import ColorVisualizer from '../TabGroups/ColorVisualizer.vue';
98-
import { computed, watch } from 'vue';
9998
import draggable from 'vuedraggable';
10099
101100
const props = defineProps<{

src/components/options/left/Menu.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
>
88
<component :is="icons[menuItem.icon]" class="menuItem-icon" />
99
{{ menuItem.title }}
10-
<template v-if="menuItem.component === 'TabGroupsPane'">
11-
<NewFeature />
12-
</template>
1310
<template v-if="menuItem.link">
1411
<ExternalIcon class="!w-3 !h-3" />
1512
</template>
@@ -27,7 +24,6 @@ import HelpIcon from '../../icons/HelpIcon.vue';
2724
import GithubIcon from '../../icons/GithubIcon.vue';
2825
import DonationIcon from '../../icons/DonationIcon.vue';
2926
import ChromeIcon from '../../icons/ChromeIcon.vue';
30-
import NewFeature from '../../global/NewFeature.vue';
3127
import ExternalIcon from '../../icons/ExternalIcon.vue';
3228
import { useMenuStore } from '../../../stores/menu.store.ts';
3329

0 commit comments

Comments
 (0)