diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0aea8e5..75820c9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,11 @@
## not released
+## v1.7.1 (2024-01-11)
+
+- Add: Translation of humanized dates
+- Add: Screenshots / icon for [https://joplinapp.org/plugins/](https://joplinapp.org/plugins/)
+
## v1.7.0 (2023-12-24)
- Add: Translation
diff --git a/GENERATOR_DOC.md b/GENERATOR_DOC.md
index b2a884a..db5bbc8 100644
--- a/GENERATOR_DOC.md
+++ b/GENERATOR_DOC.md
@@ -7,7 +7,7 @@ This documentation describes how to create a plugin, and how to work with the pl
First, install [Yeoman](http://yeoman.io) and generator-joplin using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).
```bash
-npm install -g yo
+npm install -g yo@4.3.1
npm install -g generator-joplin
```
diff --git a/README.md b/README.md
index aa1f811..6033179 100644
--- a/README.md
+++ b/README.md
@@ -3,11 +3,11 @@
-# Joplin note overview
+# Joplin note overview
A note overview is created based on the defined search and the specified fields.
-
+
diff --git a/img/icon.svg b/img/icon.svg
new file mode 100644
index 0000000..73fb0c3
--- /dev/null
+++ b/img/icon.svg
@@ -0,0 +1,33 @@
+
+
+
diff --git a/img/icon_256.png b/img/icon_256.png
new file mode 100644
index 0000000..c140862
Binary files /dev/null and b/img/icon_256.png differ
diff --git a/img/icon_32.png b/img/icon_32.png
new file mode 100644
index 0000000..407feb7
Binary files /dev/null and b/img/icon_32.png differ
diff --git a/img/main.jpg b/img/main.jpg
deleted file mode 100644
index 66af67c..0000000
Binary files a/img/main.jpg and /dev/null differ
diff --git a/img/main.png b/img/main.png
new file mode 100644
index 0000000..51a1d72
Binary files /dev/null and b/img/main.png differ
diff --git a/img/showcase1.png b/img/showcase1.png
new file mode 100644
index 0000000..9f31059
Binary files /dev/null and b/img/showcase1.png differ
diff --git a/img/showcase2.png b/img/showcase2.png
new file mode 100644
index 0000000..c7ee6a4
Binary files /dev/null and b/img/showcase2.png differ
diff --git a/package-lock.json b/package-lock.json
index 64361ca..301c59e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "joplin-plugin-note-overview",
- "version": "1.7.0",
+ "version": "1.7.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "joplin-plugin-note-overview",
- "version": "1.7.0",
+ "version": "1.7.1",
"license": "MIT",
"dependencies": {
"electron-log": "^4.4.1",
diff --git a/package.json b/package.json
index ae7392d..fe21b6f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "joplin-plugin-note-overview",
- "version": "1.7.0",
+ "version": "1.7.1",
"scripts": {
"dist": "webpack --env joplin-plugin-config=buildMain && webpack --env joplin-plugin-config=buildExtraScripts && webpack --env joplin-plugin-config=createArchive",
"prepare": "npm run dist && husky install",
diff --git a/src/manifest.json b/src/manifest.json
index e1ed74b..64d0dd1 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -2,11 +2,29 @@
"manifest_version": 1,
"id": "io.github.jackgruber.note-overview",
"app_min_version": "1.8.1",
- "version": "1.7.0",
+ "version": "1.7.1",
"name": "Note overview",
"description": "A note overview is created based on the defined search and the specified fields.",
"author": "JackGruber",
"homepage_url": "https://github.com/JackGruber/joplin-plugin-note-overview/blob/master/README.md",
"repository_url": "https://github.com/JackGruber/joplin-plugin-note-overview",
- "keywords": ["search", "overview", "savedsearch", "saved", "query"]
+ "keywords": ["search", "overview", "savedsearch", "saved", "query"],
+ "categories": ["productivity"],
+ "screenshots": [
+ {
+ "src": "img/main.png",
+ "label": "Screenshot: Main Screenshot"
+ },
+ {
+ "src": "img/showcase1.png",
+ "label": "Screenshot: Showcase 1"
+ },
+ {
+ "src": "img/showcase2.png",
+ "label": "Screenshot: Showcase 2"
+ }
+ ],
+ "icons": {
+ "256": "img/icon_256.png"
+ }
}
diff --git a/src/noteoverview.ts b/src/noteoverview.ts
index 347c798..05b99f5 100644
--- a/src/noteoverview.ts
+++ b/src/noteoverview.ts
@@ -1554,6 +1554,7 @@ export namespace noteoverview {
objectNotation: true,
});
i18n.setLocale(joplinLocale);
+ moment.locale(joplinLocale);
}
}
diff --git a/webpack.config.js b/webpack.config.js
index a905950..aeda377 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -93,19 +93,24 @@ function validateCategories(categories) {
function validateScreenshots(screenshots) {
if (!screenshots) return null;
- // eslint-disable-next-line github/array-foreach -- Old code before rule was applied
- screenshots.forEach(screenshot => {
+ for (const screenshot of screenshots) {
if (!screenshot.src) throw new Error('You must specify a src for each screenshot');
+ // Avoid attempting to download and verify URL screenshots.
+ if (screenshot.src.startsWith('https://') || screenshot.src.startsWith('http://')) {
+ continue;
+ }
+
const screenshotType = screenshot.src.split('.').pop();
if (!allPossibleScreenshotsType.includes(screenshotType)) throw new Error(`${screenshotType} is not a valid screenshot type. Valid types are: \n${allPossibleScreenshotsType}\n`);
- const screenshotPath = path.resolve(srcDir, screenshot.src);
+ const screenshotPath = path.resolve(rootDir, screenshot.src);
+
// Max file size is 1MB
const fileMaxSize = 1024;
const fileSize = fs.statSync(screenshotPath).size / 1024;
if (fileSize > fileMaxSize) throw new Error(`Max screenshot file size is ${fileMaxSize}KB. ${screenshotPath} is ${fileSize}KB`);
- });
+ }
}
function readManifest(manifestPath) {