Skip to content

Commit 9bc9522

Browse files
authored
Merge pull request #50 from cloudoptlab/fix/2.1.0/fix-batch-of-issues
Fix/2.1.0/fix batch of issues
2 parents 471a40b + a36cdf2 commit 9bc9522

File tree

12 files changed

+26
-8
lines changed

12 files changed

+26
-8
lines changed

_locales/en/messages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@
427427
"popupManualSubtitle": {
428428
"message": "Click to open manual blocker"
429429
},
430+
"popupNoNeedManual": {
431+
"message": "No ads to be blocked in this page"
432+
},
430433
"popupMoreTitle": {
431434
"message": "More setting options"
432435
},

_locales/ko/messages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@
427427
"popupManualSubtitle": {
428428
"message": "수동 차단기를 열려면 클릭하십시오"
429429
},
430+
"popupNoNeedManual": {
431+
"message": "이 페이지에서 차단할 광고가 없습니다"
432+
},
430433
"popupMoreTitle": {
431434
"message": "추가 설정 옵션"
432435
},

_locales/zh_CN/messages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@
427427
"popupManualSubtitle": {
428428
"message": "点击打开手动拦截器"
429429
},
430+
"popupNoNeedManual": {
431+
"message": "此页面不需要拦截广告"
432+
},
430433
"popupMoreTitle": {
431434
"message": "更多设置选项"
432435
},

_locales/zh_TW/messages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@
427427
"popupManualSubtitle": {
428428
"message": "点击打开手动拦截器"
429429
},
430+
"popupNoNeedManual": {
431+
"message": "此頁面不需要攔截廣告"
432+
},
430433
"popupMoreTitle": {
431434
"message": "更多设置选项"
432435
},

manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
77
"description": "__MSG_infoDescription__",
88
"default_locale": "en",
9-
"update_url": "https://cdn.cloudopt.net/extensions/update/updates.xml",
109
"icons": {
1110
"64": "image/icon/default/icon64.png",
1211
"128": "image/icon/default/icon128.png",

src/guide/common/switchInfo/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import rtpl from 'art-template/lib/template-web.js'
88
export interface ISwitchInfo {
99
icon: string;
1010
title: string;
11-
content: string;
11+
content?: string;
1212
key: string;
1313
on: boolean;
1414
i18n?: string;
@@ -30,7 +30,7 @@ export class SwitchInfo {
3030
{{ /if }}
3131
<div class="description">
3232
<span class="title">{{ title }}</span>
33-
<span class="content" i18n="{{ i18n }}">{{ content }}</span>
33+
<span class="content" {{ if i18n }} i18n="{{ i18n }}" {{ /if }}>{{ content || ' ' }}</span>
3434
</div>
3535
</div>
3636
<div class="right" key="{{ key }}">

src/guide/guide.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ export class GuideManager {
198198
const switchElement = createSwitchInfoDom({
199199
icon: '',
200200
title: i18n.get('guideDataCollectionSwitchTitle'),
201-
content: ' ',
202201
i18n: 'guideDataCollectionSwitchContent',
203202
key: 'dataCollection',
204203
on: config.dataCollection

src/option/common/switchInfo/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import rtpl from 'art-template/lib/template-web.js'
88
export interface ISwitchInfo {
99
icon: string;
1010
title: string;
11-
content: string;
11+
content?: string;
1212
key: string;
1313
on: boolean;
14+
i18n?: string;
1415
}
1516

1617
export class SwitchInfo {
@@ -29,7 +30,7 @@ export class SwitchInfo {
2930
{{ /if }}
3031
<div class="description">
3132
<span class="title">{{ title }}</span>
32-
<span class="content">{{ content }}</span>
33+
<span class="content" {{ if i18n }} i18n="{{ i18n }}" {{ /if }}>{{ content || ' ' }}</span>
3334
</div>
3435
</div>
3536
<div class="right" key="{{ key }}">

src/option/component/adBlock/index.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@
9696
width: 15px;
9797
height: 15px;
9898
padding: 4px;
99+
&.disabled {
100+
background-color: #becad6;
101+
}
99102
}
100103
}
101104
}

src/option/component/adBlock/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ export default class AdBlockPages implements IBaseHTMLPages {
7676
`
7777
<li>
7878
<div class="left" for="${rule}">
79-
<img class="rule-icon" src="${config.disabledCustomSubs.inArray(rule) ? this.getIconPath('icons-unchecked_thick') : this.getIconPath('icons-checked_thick')}">
79+
<img class="rule-icon ${config.disabledCustomSubs.inArray(rule) && "disabled"}"
80+
src="${config.disabledCustomSubs.inArray(rule) ?
81+
this.getIconPath('icons-unchecked_thick') :
82+
this.getIconPath('icons-checked_thick')}">
8083
<span>${rule}</span>
8184
</div>
8285
<div class="right" for="${rule}">

0 commit comments

Comments
 (0)