generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Support for importing & exporting OPML(closes #1)
+ Support for Video & Youtube(closes #47) + Automatic suggestion for folder names(closes #3) + Filename can be defined with template(closes #36) + better error handling when refreshing settings file + CleanupModal(closes #31) + Support for subfolders in filtered folders(closes #35) ~ fixed a bug where $ in the content would duplicate data(closes #48) ~ switched from rollup to esbuild ~ started preparations for unit tests
- Loading branch information
Showing
37 changed files
with
1,440 additions
and
745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"extension": ["ts"], | ||
"spec": "src/**/*.spec.ts", | ||
"require": "ts-node/register" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": ["stylelint-config-recommended"], | ||
"rules": { | ||
"font-family-no-missing-generic-family-keyword": null, | ||
"no-descending-specificity": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import esbuild from "esbuild"; | ||
import process from "process"; | ||
import builtins from 'builtin-modules'; | ||
import sveltePlugin from "esbuild-svelte"; | ||
import sveltePreprocess from "svelte-preprocess"; | ||
|
||
const banner = | ||
`/* | ||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD | ||
if you want to view the source, please visit the github repository of this plugin | ||
https://github.com/joethei/obisidian-rss | ||
*/ | ||
`; | ||
|
||
const prod = (process.argv[2] === 'production'); | ||
|
||
esbuild.build({ | ||
banner: { | ||
js: banner, | ||
}, | ||
entryPoints: ['src/main.ts'], | ||
bundle: true, | ||
external: ['obsidian', 'electron', ...builtins], | ||
plugins: [sveltePlugin({ | ||
preprocess: sveltePreprocess() | ||
})], | ||
format: 'cjs', | ||
watch: !prod, | ||
target: 'es2016', | ||
logLevel: "info", | ||
sourcemap: prod ? false : 'inline', | ||
treeShaking: true, | ||
outfile: 'main.js', | ||
}).catch(() => process.exit(1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,53 @@ | ||
{ | ||
"name": "rss-reader", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "Read RSS Feeds from inside obsidian", | ||
"main": "main.js", | ||
"scripts": { | ||
"dev": "rollup --config rollup.config.js -w", | ||
"build": "rollup --config rollup.config.js --environment BUILD:production", | ||
"lint": "eslint . --ext .ts" | ||
"dev": "node esbuild.config.mjs", | ||
"build": "node esbuild.config.mjs production", | ||
"lint": "eslint . --ext .ts", | ||
"lint-css": "stylelint styles.css", | ||
"test": "mocha" | ||
}, | ||
"keywords": [], | ||
"author": "Johannes Theiner", | ||
"license": "GPL-3.0", | ||
"devDependencies": { | ||
"@popperjs/core": "^2.10.2", | ||
"@rollup/plugin-commonjs": "^18.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^11.2.1", | ||
"@rollup/plugin-typescript": "^8.2.1", | ||
"@types/chai": "^4.3.0", | ||
"@types/lodash.groupby": "^4.6.6", | ||
"@types/lodash.keyby": "^4.6.6", | ||
"@types/lodash.mergewith": "^4.6.6", | ||
"@types/lodash.sortby": "^4.7.6", | ||
"@types/lodash.values": "^4.3.6", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^14.14.37", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"chai": "^4.3.4", | ||
"esbuild": "^0.14.2", | ||
"esbuild-svelte": "^0.6.0", | ||
"eslint": "^7.32.0", | ||
"jsdom": "^19.0.0", | ||
"jsdom-global": "^3.0.2", | ||
"lodash.groupby": "^4.6.0", | ||
"lodash.keyby": "^4.6.0", | ||
"lodash.mergewith": "^4.6.2", | ||
"lodash.sortby": "^4.7.0", | ||
"lodash.values": "^4.3.0", | ||
"mocha": "^9.1.3", | ||
"obsidian": "^0.12.0", | ||
"obsidian-community-lib": "1.2.0", | ||
"rollup": "^2.32.1", | ||
"rollup-plugin-svelte": "^7.1.0", | ||
"obsimian": "^0.4.0", | ||
"stylelint": "^14.1.0", | ||
"stylelint-config-standard": "^24.0.0", | ||
"svelte": "^3.43.1", | ||
"svelte-preprocess": "^4.9.8", | ||
"ts-md5": "^1.2.10", | ||
"ts-node": "^10.4.0", | ||
"tslib": "^2.2.0", | ||
"tslint": "^6.1.3", | ||
"typescript": "^4.2.4" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Localization | ||
|
||
The plugin has full localization support, and will attempt to load the current Obsidian locale. If one does not exist, it will fall back to English. | ||
|
||
### Adding a new Locale | ||
|
||
New locales can be added by creating a pull request. Two things should be done in this pull request: | ||
|
||
1. Create the locale in the `locales` folder by copying the `en.ts` file. This file should be given a name matching the [ISO 639-1](https://www.loc.gov/standards/iso639-2/php/English_list.php) code for that language. | ||
2. Create the translation by editing the value of each property. | ||
3. Add the import in `locales.ts`. | ||
4. Add the language to the `localeMap` variable. | ||
|
||
#### Wildcards | ||
|
||
Some strings in the locale have wildcards in them, such as `%1`. This is used by the plugin to insert dynamic data into the translated string. | ||
|
||
For example: | ||
|
||
`Loading RSS Reader v%1`: The plugin will insert the version number for `%1`. | ||
|
||
This allows control of plural syntaxes or placement of file names in the sentence. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.