File tree Expand file tree Collapse file tree 6 files changed +6
-30
lines changed Expand file tree Collapse file tree 6 files changed +6
-30
lines changed Original file line number Diff line number Diff line change 1
1
import { Injectable } from '@angular/core' ;
2
2
import { StorageService } from '../services/storage.service' ;
3
3
4
- const BOOKMARK_FEED_LIST = 'bookmark_feed_list ' ;
4
+ const BOOKMARK_FEED_LIST = 'v3_bookmark_feed_list ' ;
5
5
6
6
@Injectable ( {
7
7
providedIn : 'root'
@@ -30,7 +30,6 @@ export class BookmarkService {
30
30
this . _bookmarkList . push ( entry ) ;
31
31
console . log ( '[BookmarkService] Adding new feed' ) ;
32
32
this . storageService . set ( BOOKMARK_FEED_LIST , this . _bookmarkList ) ;
33
- this . feedService . updateBookmarkStatus ( entry , true ) ;
34
33
}
35
34
36
35
public removeEntry ( entry : string ) {
@@ -40,7 +39,6 @@ export class BookmarkService {
40
39
this . _bookmarkList . splice ( index , 1 ) ;
41
40
}
42
41
this . storageService . set ( BOOKMARK_FEED_LIST , this . _bookmarkList ) ;
43
- this . feedService . updateBookmarkStatus ( entry , false ) ;
44
42
}
45
43
46
44
public getBookmarks ( ) {
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { StorageService } from './storage.service';
5
5
import { SourcesService } from './sources.service' ;
6
6
import { ISettingsDict , SettingsService } from './settings.service' ;
7
7
8
- const STORAGE_FEED_DATA = 'storage_list_feed_data ' ;
9
- const STORAGE_FEED_DATA_TIMESTAMP = 'storage_list_feed_data_timestamp ' ;
8
+ const STORAGE_FEED_DATA = 'v3_storage_list_feed_data ' ;
9
+ const STORAGE_FEED_DATA_TIMESTAMP = 'v3_storage_list_feed_data_timestamp ' ;
10
10
11
11
@Injectable ( {
12
12
providedIn : 'root'
Original file line number Diff line number Diff line change 1
1
import { Injectable } from '@angular/core' ;
2
2
import { StorageService } from '../services/storage.service' ;
3
3
4
- const SETTINGS_DICT = 'settings_dict ' ;
4
+ const SETTINGS_DICT = 'v3_settings_dict ' ;
5
5
6
6
export interface ISettingsDict {
7
7
preview : boolean ,
@@ -60,11 +60,6 @@ export class SettingsService {
60
60
const storage_feed = await this . storageService . getObjectFromStorage ( SETTINGS_DICT ) ;
61
61
62
62
if ( storage_feed !== null ) {
63
- // Backwards compatible check with <= 2.3.4
64
- if ( ! Array . isArray ( storage_feed . mutedWords ) ) {
65
- storage_feed . mutedWords = [ ] ;
66
- }
67
-
68
63
this . _settingsDict = storage_feed ;
69
64
}
70
65
else
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { Subject } from 'rxjs';
8
8
import { BookmarkService } from './bookmark.service' ;
9
9
declare const RSSParser : any ;
10
10
11
- const STORAGE_FEED_LIST = 'storage_feed_list ' ;
11
+ const STORAGE_FEED_LIST = 'v3_storage_feed_list ' ;
12
12
13
13
export interface IFeedDict {
14
14
url : string ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export class StorageService {
38
38
const storage_item = await this . get ( list_name ) ;
39
39
40
40
if ( storage_item !== undefined ) {
41
- const storage_item_json = this . legacyParseJson ( storage_item ) ;
41
+ const storage_item_json = storage_item ;
42
42
43
43
if ( storage_item_json !== null ) {
44
44
return storage_item_json ;
@@ -58,13 +58,4 @@ export class StorageService {
58
58
}
59
59
}
60
60
61
- // Support for legacy single encoded values in version before 2.6.0
62
- private legacyParseJson ( storage_item : string ) {
63
- try {
64
- return JSON . parse ( storage_item ) ;
65
- } catch ( e ) {
66
- console . log ( '[StorageService] Single encoded value, directly returning:' , e ) ;
67
- return storage_item ;
68
- }
69
- }
70
61
}
Original file line number Diff line number Diff line change @@ -70,10 +70,6 @@ export class SourcesPage {
70
70
}
71
71
}
72
72
73
- public load ( ) {
74
- this . sourcesService . loadSourcesList ( ) ;
75
- }
76
-
77
73
async editUrl ( feed : IFeedDict ) {
78
74
const temp_feed = feed ;
79
75
@@ -190,8 +186,4 @@ export class SourcesPage {
190
186
input . value = '' ;
191
187
}
192
188
193
- // removeUrl(url: string) {
194
- // this.sourcesService.removeSource(url);
195
- // }
196
-
197
189
}
You can’t perform that action at this time.
0 commit comments