Skip to content

Commit 2c2182d

Browse files
authored
Merge pull request #214 from DominikPieper/dev
Release 0.11.0
2 parents 6359869 + cf64469 commit 2c2182d

20 files changed

+1408
-322
lines changed

README.md

+118-56
Large diffs are not rendered by default.

manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"id": "obsidian-read-it-later",
33
"name": "ReadItLater",
4-
"version": "0.10.1",
5-
"minAppVersion": "1.7.2",
4+
"version": "0.11.0",
5+
"minAppVersion": "1.7.7",
66
"description": "Save online content to your Vault, utilize embedded template engine and organize your reading list to your needs. Preserve the web with ReadItLater.",
77
"author": "Dominik Pieper",
88
"authorUrl": "https://github.com/DominikPieper",

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-ReadItLater",
3-
"version": "0.10.1",
3+
"version": "0.11.0",
44
"description": "Save online content to your Vault, utilize embedded template engine and organize your reading list to your needs. Preserve the web with ReadItLater.",
55
"main": "main.js",
66
"scripts": {

src/helpers/error.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Notice } from 'obsidian';
22

3-
export function handleError(e: Error) {
4-
new Notice('Error occured. Please check console output for detailed information.');
5-
throw e;
3+
export function handleError(error: Error, noticeMessage: string) {
4+
new Notice(`${noticeMessage} Check the console output.`);
5+
throw error;
66
}

src/helpers/fileutils.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export function getBaseUrl(url: string, origin: string): string {
2828
}
2929

3030
export function normalizeFilename(fileName: string): string {
31-
return fileName.replace(/[:#/\\|?*<>"]/g, '');
31+
return fileName.replace(
32+
/[:#/\\()|?*<>"[\u{1F300}-\u{1F9FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}\u{1F000}-\u{1F02F}\u{1F0A0}-\u{1F0FF}\u{1F100}-\u{1F64F}\u{1F680}-\u{1F6FF}]/gu,
33+
'',
34+
);
3235
}
3336

3437
export function getOsOptimizedPath(

src/helpers/networkUtils.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const desktopBrowserUserAgent = {
2+
'user-agent':
3+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
4+
};

src/main.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import { VaultRepository } from './repository/VaultRepository';
2121
import DefaultVaultRepository from './repository/DefaultVaultRepository';
2222
import { NoteService } from './NoteService';
2323
import { ReadItLaterApi } from './ReadtItLaterApi';
24+
import { BlueskyParser } from './parsers/BlueskyParser';
25+
import { PinterestParser } from './parsers/PinterestParser';
2426

2527
export default class ReadItLaterPlugin extends Plugin {
2628
public api: ReadItLaterApi;
@@ -52,10 +54,12 @@ export default class ReadItLaterPlugin extends Plugin {
5254
new BilibiliParser(this.app, this, this.templateEngine),
5355
new TwitterParser(this.app, this, this.templateEngine),
5456
new StackExchangeParser(this.app, this, this.templateEngine),
55-
new MastodonParser(this.app, this, this.templateEngine),
5657
new TikTokParser(this.app, this, this.templateEngine),
5758
new GithubParser(this.app, this, this.templateEngine),
5859
new WikipediaParser(this.app, this, this.templateEngine),
60+
new BlueskyParser(this.app, this, this.templateEngine),
61+
new PinterestParser(this.app, this, this.templateEngine),
62+
new MastodonParser(this.app, this, this.templateEngine),
5963
new WebsiteParser(this.app, this, this.templateEngine),
6064
new TextSnippetParser(this.app, this, this.templateEngine),
6165
]);

0 commit comments

Comments
 (0)