notes-to-strapi-export-article-ai 1.0.3 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/deploy.yml +9 -8
- package/.github/workflows/publish.yml +1 -1
- package/README.md +0 -10
- package/main.ts +16 -12
- package/manifest.json +9 -9
- package/package.json +3 -3
- package/versions.json +6 -2
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
- name: Configure Git
|
|
21
21
|
run: |
|
|
22
22
|
git config --local user.email "cinquin.andy@gmail.com"
|
|
23
|
-
git config --local user.name "
|
|
23
|
+
git config --local user.name "CINQUIN Andy"
|
|
24
24
|
|
|
25
25
|
- name: Use Node.js
|
|
26
26
|
uses: actions/setup-node@v4
|
|
@@ -41,18 +41,19 @@ jobs:
|
|
|
41
41
|
new_version=$(npx semver -i patch $current_version)
|
|
42
42
|
echo "New version: $new_version"
|
|
43
43
|
|
|
44
|
-
while git rev-parse
|
|
44
|
+
while git rev-parse $new_version >/dev/null 2>&1; do
|
|
45
45
|
new_version=$(npx semver -i patch $new_version)
|
|
46
|
-
echo "Tag
|
|
46
|
+
echo "Tag $new_version already exists. Trying next version..."
|
|
47
47
|
done
|
|
48
48
|
|
|
49
49
|
npm version $new_version --no-git-tag-version
|
|
50
|
-
|
|
50
|
+
sed -i "s/\"version\": \".*\"/\"version\": \"$new_version\"/" manifest.json
|
|
51
|
+
echo "version=$new_version" >> $GITHUB_OUTPUT
|
|
51
52
|
|
|
52
53
|
- name: Commit and Push Version Update
|
|
53
54
|
run: |
|
|
54
|
-
git add package.json
|
|
55
|
-
git commit -m "chore(release): ${{ steps.version-bump.outputs.
|
|
56
|
-
git tag
|
|
55
|
+
git add package.json manifest.json
|
|
56
|
+
git commit -m "chore(release): ${{ steps.version-bump.outputs.version }}"
|
|
57
|
+
git tag ${{ steps.version-bump.outputs.version }}
|
|
57
58
|
git push origin main --follow-tags
|
|
58
|
-
git push origin refs/tags
|
|
59
|
+
git push origin refs/tags/${{ steps.version-bump.outputs.version }}
|
package/README.md
CHANGED
|
@@ -167,13 +167,3 @@ This project is licensed under the MIT License. See the [LICENSE](LICENSE) file
|
|
|
167
167
|
|
|
168
168
|
🌟 Elevate your content workflow with Strapi Exporter and unleash the full potential of your Obsidian notes! 🌟
|
|
169
169
|
|
|
170
|
-
### Roadmap
|
|
171
|
-
|
|
172
|
-
- [ ] Make it available as a plugin in Obsidian
|
|
173
|
-
- [ ] Add tests
|
|
174
|
-
- [ ] Renovate
|
|
175
|
-
- [ ] ajouter l'étape de création du plugin (création du folder)
|
|
176
|
-
- [ ] ajouter l'étape de redémarrage d'obsidian
|
|
177
|
-
- [ ] ajouter l'étape de configuration du plugin
|
|
178
|
-
- [ ] ajouter l'étape de configuration du token d'access de strapi (accès etc)
|
|
179
|
-
|
package/main.ts
CHANGED
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
} from 'obsidian'
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The settings for the plugin
|
|
13
|
+
* The settings for the Strapi Exporter plugin
|
|
14
14
|
*/
|
|
15
|
-
interface
|
|
15
|
+
interface StrapiExporterSettings {
|
|
16
16
|
strapiUrl: string
|
|
17
17
|
strapiApiToken: string
|
|
18
18
|
openaiApiKey: string
|
|
@@ -26,7 +26,7 @@ interface MyPluginSettings {
|
|
|
26
26
|
/**
|
|
27
27
|
* The default settings for the plugin
|
|
28
28
|
*/
|
|
29
|
-
const
|
|
29
|
+
const DEFAULT_STRAPI_EXPORTER_SETTINGS: StrapiExporterSettings = {
|
|
30
30
|
strapiUrl: '',
|
|
31
31
|
strapiApiToken: '',
|
|
32
32
|
openaiApiKey: '',
|
|
@@ -79,8 +79,8 @@ const DEFAULT_SETTINGS: MyPluginSettings = {
|
|
|
79
79
|
/**
|
|
80
80
|
* The main plugin class
|
|
81
81
|
*/
|
|
82
|
-
export default class
|
|
83
|
-
settings:
|
|
82
|
+
export default class StrapiExporterPlugin extends Plugin {
|
|
83
|
+
settings: StrapiExporterSettings
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* The main entry point for the plugin
|
|
@@ -318,9 +318,9 @@ export default class MyPlugin extends Plugin {
|
|
|
318
318
|
)
|
|
319
319
|
}
|
|
320
320
|
)
|
|
321
|
-
ribbonIconEl.addClass('
|
|
321
|
+
ribbonIconEl.addClass('strapi-exporter-ribbon-class')
|
|
322
322
|
|
|
323
|
-
this.addSettingTab(new
|
|
323
|
+
this.addSettingTab(new StrapiExporterSettingTab(this.app, this))
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
onunload() {}
|
|
@@ -329,7 +329,11 @@ export default class MyPlugin extends Plugin {
|
|
|
329
329
|
* Load the settings for the plugin
|
|
330
330
|
*/
|
|
331
331
|
async loadSettings() {
|
|
332
|
-
this.settings = Object.assign(
|
|
332
|
+
this.settings = Object.assign(
|
|
333
|
+
{},
|
|
334
|
+
DEFAULT_STRAPI_EXPORTER_SETTINGS,
|
|
335
|
+
await this.loadData()
|
|
336
|
+
)
|
|
333
337
|
}
|
|
334
338
|
|
|
335
339
|
/**
|
|
@@ -560,12 +564,12 @@ export default class MyPlugin extends Plugin {
|
|
|
560
564
|
}
|
|
561
565
|
|
|
562
566
|
/**
|
|
563
|
-
* The settings tab for the plugin
|
|
567
|
+
* The settings tab for the Strapi Exporter plugin
|
|
564
568
|
*/
|
|
565
|
-
class
|
|
566
|
-
plugin:
|
|
569
|
+
class StrapiExporterSettingTab extends PluginSettingTab {
|
|
570
|
+
plugin: StrapiExporterPlugin
|
|
567
571
|
|
|
568
|
-
constructor(app: App, plugin:
|
|
572
|
+
constructor(app: App, plugin: StrapiExporterPlugin) {
|
|
569
573
|
super(app, plugin)
|
|
570
574
|
this.plugin = plugin
|
|
571
575
|
}
|
package/manifest.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"id": "notes-to-strapi-export-article-ai",
|
|
3
|
+
"name": "Strapi Exporter, Notes to Strapi article AI enhanced",
|
|
4
|
+
"version": "1.0.7",
|
|
5
|
+
"minAppVersion": "1.5.0",
|
|
6
|
+
"description": "Effortlessly export your notes to Strapi CMS with AI-powered image handling and SEO optimization. Replace all the images in your notes by uploaded images in Strapi, and add SEO metadata to uploaded images.",
|
|
7
|
+
"author": "Cinquin Andy",
|
|
8
|
+
"authorUrl": "https://andy.cinquin.com",
|
|
9
|
+
"isDesktopOnly": true,
|
|
10
|
+
"fundingUrl": "https://github.com/sponsors/CinquinAndy"
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notes-to-strapi-export-article-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Effortlessly export your Obsidian notes to Strapi CMS with AI-powered image handling and SEO optimization. Replace all the images in your notes by uploaded images in Strapi, and add SEO metadata to uploaded images.",
|
|
5
5
|
"main": "main.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"author": "Cinquin Andy",
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@types/node": "20.11.30",
|
|
15
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
16
|
-
"@typescript-eslint/parser": "7.
|
|
15
|
+
"@typescript-eslint/eslint-plugin": "7.4.0",
|
|
16
|
+
"@typescript-eslint/parser": "7.4.0",
|
|
17
17
|
"builtin-modules": "3.3.0",
|
|
18
18
|
"esbuild": "0.20.2",
|
|
19
19
|
"obsidian": "latest",
|