Skip to content

Commit

Permalink
Merge pull request #214 from DominikPieper/dev
Browse files Browse the repository at this point in the history
Release 0.11.0
  • Loading branch information
adamluckdev authored Jan 12, 2025
2 parents 6359869 + cf64469 commit 2c2182d
Show file tree
Hide file tree
Showing 20 changed files with 1,408 additions and 322 deletions.
174 changes: 118 additions & 56 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "obsidian-read-it-later",
"name": "ReadItLater",
"version": "0.10.1",
"minAppVersion": "1.7.2",
"version": "0.11.0",
"minAppVersion": "1.7.7",
"description": "Save online content to your Vault, utilize embedded template engine and organize your reading list to your needs. Preserve the web with ReadItLater.",
"author": "Dominik Pieper",
"authorUrl": "https://github.com/DominikPieper",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-ReadItLater",
"version": "0.10.1",
"version": "0.11.0",
"description": "Save online content to your Vault, utilize embedded template engine and organize your reading list to your needs. Preserve the web with ReadItLater.",
"main": "main.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/helpers/error.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Notice } from 'obsidian';

export function handleError(e: Error) {
new Notice('Error occured. Please check console output for detailed information.');
throw e;
export function handleError(error: Error, noticeMessage: string) {
new Notice(`${noticeMessage} Check the console output.`);
throw error;
}
5 changes: 4 additions & 1 deletion src/helpers/fileutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export function getBaseUrl(url: string, origin: string): string {
}

export function normalizeFilename(fileName: string): string {
return fileName.replace(/[:#/\\|?*<>"]/g, '');
return fileName.replace(
/[:#/\\()|?*<>"[\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,
'',
);
}

export function getOsOptimizedPath(
Expand Down
4 changes: 4 additions & 0 deletions src/helpers/networkUtils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const desktopBrowserUserAgent = {
'user-agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
};
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import { VaultRepository } from './repository/VaultRepository';
import DefaultVaultRepository from './repository/DefaultVaultRepository';
import { NoteService } from './NoteService';
import { ReadItLaterApi } from './ReadtItLaterApi';
import { BlueskyParser } from './parsers/BlueskyParser';
import { PinterestParser } from './parsers/PinterestParser';

export default class ReadItLaterPlugin extends Plugin {
public api: ReadItLaterApi;
Expand Down Expand Up @@ -52,10 +54,12 @@ export default class ReadItLaterPlugin extends Plugin {
new BilibiliParser(this.app, this, this.templateEngine),
new TwitterParser(this.app, this, this.templateEngine),
new StackExchangeParser(this.app, this, this.templateEngine),
new MastodonParser(this.app, this, this.templateEngine),
new TikTokParser(this.app, this, this.templateEngine),
new GithubParser(this.app, this, this.templateEngine),
new WikipediaParser(this.app, this, this.templateEngine),
new BlueskyParser(this.app, this, this.templateEngine),
new PinterestParser(this.app, this, this.templateEngine),
new MastodonParser(this.app, this, this.templateEngine),
new WebsiteParser(this.app, this, this.templateEngine),
new TextSnippetParser(this.app, this, this.templateEngine),
]);
Expand Down
Loading

0 comments on commit 2c2182d

Please sign in to comment.