saltcorn-sql-import 0.0.0 → 0.0.3

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.
Files changed (2) hide show
  1. package/index.js +6 -7
  2. package/package.json +7 -9
package/index.js CHANGED
@@ -1,13 +1,12 @@
1
1
  module.exports = {
2
2
  sc_plugin_api_version: 1,
3
- plugin_name: "my_plugin",
3
+ plugin_name: "sql_import",
4
4
 
5
- // Exemple : ajouter un type de champ
6
- fieldviews: {
7
- my_custom_view: {
8
- isEdit: true,
9
- run: (field_name, value, attrs, cls) => {
10
- return `<input type="text" name="${field_name}" value="${value || ""}" class="${cls}">`;
5
+ actions: {
6
+ test_sql_import: {
7
+ description: "Test action to verify plugin loading",
8
+ run: async () => {
9
+ return "Le plugin sql_import fonctionne.";
11
10
  }
12
11
  }
13
12
  }
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "saltcorn-sql-import",
3
- "version": "0.0.0",
4
- "description": "SQL script importation",
3
+ "version": "0.0.3",
4
+ "description": "Plugin Saltcorn minimaliste pour test",
5
5
  "main": "index.js",
6
- "dependencies": {},
7
- "author": "SkillSept",
6
+ "author": "Franck",
8
7
  "license": "MIT",
9
- "repository": "github:skillsept/saltcorn-sql-import",
10
- "saltcorn": {
11
- "plugin_name": "saltcorn-sql-import",
12
- "version": 1
13
- },
14
8
  "publishConfig": {
15
9
  "access": "public"
10
+ },
11
+ "saltcorn": {
12
+ "plugin_name": "sql_import",
13
+ "version": 1
16
14
  }
17
15
  }