@adminforth/clone-row 1.1.0 → 1.1.2

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/build.log CHANGED
@@ -7,5 +7,5 @@ custom/
7
7
  custom/CloneRowButton.vue
8
8
  custom/tsconfig.json
9
9
 
10
- sent 2,106 bytes received 58 bytes 4,328.00 bytes/sec
11
- total size is 1,888 speedup is 0.87
10
+ sent 1,899 bytes received 58 bytes 3,914.00 bytes/sec
11
+ total size is 1,681 speedup is 0.86
@@ -1,17 +1,14 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "baseUrl": ".", // This should point to your project root
3
+ "baseUrl": ".",
4
4
  "paths": {
5
5
  "@/*": [
6
- // "node_modules/adminforth/dist/spa/src/*"
7
6
  "../../../adminforth/spa/src/*"
8
7
  ],
9
8
  "*": [
10
- // "node_modules/adminforth/dist/spa/node_modules/*"
11
9
  "../../../adminforth/spa/node_modules/*"
12
10
  ],
13
11
  "@@/*": [
14
- // "node_modules/adminforth/dist/spa/src/*"
15
12
  "."
16
13
  ]
17
14
  }
@@ -1,17 +1,14 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "baseUrl": ".", // This should point to your project root
3
+ "baseUrl": ".",
4
4
  "paths": {
5
5
  "@/*": [
6
- // "node_modules/adminforth/dist/spa/src/*"
7
6
  "../../../adminforth/spa/src/*"
8
7
  ],
9
8
  "*": [
10
- // "node_modules/adminforth/dist/spa/node_modules/*"
11
9
  "../../../adminforth/spa/node_modules/*"
12
10
  ],
13
11
  "@@/*": [
14
- // "node_modules/adminforth/dist/spa/src/*"
15
12
  "."
16
13
  ]
17
14
  }
package/dist/index.js CHANGED
@@ -38,16 +38,6 @@ export default class extends AdminForthPlugin {
38
38
  instanceUniqueRepresentation(pluginOptions) {
39
39
  // optional method to return unique string representation of plugin instance.
40
40
  // Needed if plugin can have multiple instances on one resource
41
- return `single`;
42
- }
43
- setupEndpoints(server) {
44
- server.endpoint({
45
- method: 'POST',
46
- path: `/plugin/${this.pluginInstanceId}/example`,
47
- handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body }) {
48
- const { name } = body;
49
- return { hey: `Hello ${name}` };
50
- })
51
- });
41
+ return `${this.resourceConfig.resourceId}-clone-row`;
52
42
  }
53
43
  }
package/index.ts CHANGED
@@ -37,18 +37,6 @@ export default class extends AdminForthPlugin {
37
37
  instanceUniqueRepresentation(pluginOptions: any) : string {
38
38
  // optional method to return unique string representation of plugin instance.
39
39
  // Needed if plugin can have multiple instances on one resource
40
- return `single`;
40
+ return `${this.resourceConfig.resourceId}-clone-row`;
41
41
  }
42
-
43
- setupEndpoints(server: IHttpServer) {
44
- server.endpoint({
45
- method: 'POST',
46
- path: `/plugin/${this.pluginInstanceId}/example`,
47
- handler: async ({ body }) => {
48
- const { name } = body;
49
- return { hey: `Hello ${name}` };
50
- }
51
- });
52
- }
53
-
54
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/clone-row",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",