notes-to-strapi-export-article-ai 1.0.19 → 1.0.20
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/manifest.json +1 -1
- package/package.json +1 -1
- package/src/settings.ts +26 -26
- package/versions.json +2 -1
package/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "notes-to-strapi-export-article-ai",
|
|
3
3
|
"name": "Strapi Exporter AI",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.20",
|
|
5
5
|
"minAppVersion": "1.5.0",
|
|
6
6
|
"description": "Effortlessly export your notes to Strapi CMS with AI-powered handling and SEO optimization.",
|
|
7
7
|
"author": "Cinquin Andy",
|
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.20",
|
|
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": {
|
package/src/settings.ts
CHANGED
|
@@ -70,6 +70,19 @@ export class StrapiExporterSettingTab extends PluginSettingTab {
|
|
|
70
70
|
})
|
|
71
71
|
)
|
|
72
72
|
|
|
73
|
+
new Setting(containerEl)
|
|
74
|
+
.setName('Strapi article create URL')
|
|
75
|
+
.setDesc('Enter the URL to create articles in Strapi')
|
|
76
|
+
.addText(text =>
|
|
77
|
+
text
|
|
78
|
+
.setPlaceholder('https://your-strapi-url/api/articles')
|
|
79
|
+
.setValue(this.plugin.settings.strapiArticleCreateUrl)
|
|
80
|
+
.onChange(async value => {
|
|
81
|
+
this.plugin.settings.strapiArticleCreateUrl = value
|
|
82
|
+
await this.plugin.saveSettings()
|
|
83
|
+
})
|
|
84
|
+
)
|
|
85
|
+
|
|
73
86
|
new Setting(containerEl)
|
|
74
87
|
.setName('JSON template')
|
|
75
88
|
.setDesc('Enter the JSON template for the fields needed')
|
|
@@ -98,19 +111,6 @@ export class StrapiExporterSettingTab extends PluginSettingTab {
|
|
|
98
111
|
})
|
|
99
112
|
)
|
|
100
113
|
|
|
101
|
-
new Setting(containerEl)
|
|
102
|
-
.setName('Strapi article create URL')
|
|
103
|
-
.setDesc('Enter the URL to create articles in Strapi')
|
|
104
|
-
.addText(text =>
|
|
105
|
-
text
|
|
106
|
-
.setPlaceholder('https://your-strapi-url/api/articles')
|
|
107
|
-
.setValue(this.plugin.settings.strapiArticleCreateUrl)
|
|
108
|
-
.onChange(async value => {
|
|
109
|
-
this.plugin.settings.strapiArticleCreateUrl = value
|
|
110
|
-
await this.plugin.saveSettings()
|
|
111
|
-
})
|
|
112
|
-
)
|
|
113
|
-
|
|
114
114
|
new Setting(containerEl)
|
|
115
115
|
.setName('Strapi content attribute name')
|
|
116
116
|
.setDesc('Enter the attribute name for the content field in Strapi')
|
|
@@ -242,6 +242,19 @@ export class StrapiExporterSettingTab extends PluginSettingTab {
|
|
|
242
242
|
)
|
|
243
243
|
|
|
244
244
|
if (this.plugin.settings.enableAdditionalApiCall) {
|
|
245
|
+
new Setting(containerEl)
|
|
246
|
+
.setName('Additional API URL')
|
|
247
|
+
.setDesc('Enter the URL to create content for the additional API')
|
|
248
|
+
.addText(text =>
|
|
249
|
+
text
|
|
250
|
+
.setPlaceholder('https://your-strapi-url/api/additional-content')
|
|
251
|
+
.setValue(this.plugin.settings.additionalUrl)
|
|
252
|
+
.onChange(async value => {
|
|
253
|
+
this.plugin.settings.additionalUrl = value
|
|
254
|
+
await this.plugin.saveSettings()
|
|
255
|
+
})
|
|
256
|
+
)
|
|
257
|
+
|
|
245
258
|
new Setting(containerEl)
|
|
246
259
|
.setName('Additional JSON template')
|
|
247
260
|
.setDesc(
|
|
@@ -274,19 +287,6 @@ export class StrapiExporterSettingTab extends PluginSettingTab {
|
|
|
274
287
|
})
|
|
275
288
|
)
|
|
276
289
|
|
|
277
|
-
new Setting(containerEl)
|
|
278
|
-
.setName('Additional API URL')
|
|
279
|
-
.setDesc('Enter the URL to create content for the additional API')
|
|
280
|
-
.addText(text =>
|
|
281
|
-
text
|
|
282
|
-
.setPlaceholder('https://your-strapi-url/api/additional-content')
|
|
283
|
-
.setValue(this.plugin.settings.additionalUrl)
|
|
284
|
-
.onChange(async value => {
|
|
285
|
-
this.plugin.settings.additionalUrl = value
|
|
286
|
-
await this.plugin.saveSettings()
|
|
287
|
-
})
|
|
288
|
-
)
|
|
289
|
-
|
|
290
290
|
new Setting(containerEl)
|
|
291
291
|
.setName('Additional API content attribute name')
|
|
292
292
|
.setDesc(
|