saltcorn-sql-import 0.0.0

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 +14 -0
  2. package/package.json +17 -0
package/index.js ADDED
@@ -0,0 +1,14 @@
1
+ module.exports = {
2
+ sc_plugin_api_version: 1,
3
+ plugin_name: "my_plugin",
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}">`;
11
+ }
12
+ }
13
+ }
14
+ };
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "saltcorn-sql-import",
3
+ "version": "0.0.0",
4
+ "description": "SQL script importation",
5
+ "main": "index.js",
6
+ "dependencies": {},
7
+ "author": "SkillSept",
8
+ "license": "MIT",
9
+ "repository": "github:skillsept/saltcorn-sql-import",
10
+ "saltcorn": {
11
+ "plugin_name": "saltcorn-sql-import",
12
+ "version": 1
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ }
17
+ }