@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 +2 -2
- package/custom/tsconfig.json +1 -4
- package/dist/custom/tsconfig.json +1 -4
- package/dist/index.js +1 -11
- package/index.ts +1 -13
- package/package.json +1 -1
package/build.log
CHANGED
package/custom/tsconfig.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
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": ".",
|
|
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
|
|
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
|
|
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
|
}
|