@aj-shadow/z-abs-complayer-codeeditor-client 0.0.0-aj-beta.221

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 (39) hide show
  1. package/.gitattributes +26 -0
  2. package/LICENSE.txt +96 -0
  3. package/README.md +5 -0
  4. package/npm-shrinkwrap.json +13 -0
  5. package/package.json +10 -0
  6. package/project/client/_build/Bundle-CompLayer-Codeeditor-client.bld +41 -0
  7. package/project/client/_build/Client-CompLayer-Codeeditor-client-jsx.bld +10 -0
  8. package/project/client/_build/Client-CompLayer-Codeeditor-client.bld +10 -0
  9. package/project/client/_build/Client-css-CompLayer-Codeeditor-bundle.bld +9 -0
  10. package/project/client/_build/z-abs-complayer-codeeditor-client.prj +36 -0
  11. package/project/client/actions/action-code-editor-file.js +78 -0
  12. package/project/client/actions/action-code-editor-folder.js +41 -0
  13. package/project/client/actions/action-code-editor-persistent-data.js +23 -0
  14. package/project/client/actions/action-code-editor-project.js +23 -0
  15. package/project/client/actions/action-code-editor-workspace.js +35 -0
  16. package/project/client/actions/data-action-code-editor-file.js +41 -0
  17. package/project/client/actions/data-action-code-editor-folder.js +33 -0
  18. package/project/client/actions/data-action-code-editor-persistent-data.js +27 -0
  19. package/project/client/actions/data-action-code-editor-project.js +20 -0
  20. package/project/client/actions/data-action-code-editor-workspace.js +27 -0
  21. package/project/client/components/middle-code-editor-sidebar.jsx +117 -0
  22. package/project/client/components/middle-code-editor-toolbar.jsx +638 -0
  23. package/project/client/components/middle-code-editor-view.jsx +400 -0
  24. package/project/client/components/middle-code-editor.jsx +50 -0
  25. package/project/client/css/code-editor.css +44 -0
  26. package/project/client/css/scrollbar-dark.css +8 -0
  27. package/project/client/css/scrollbar-light.css +6 -0
  28. package/project/client/css/search.css +40 -0
  29. package/project/client/css/search_light.css +8 -0
  30. package/project/client/css/serach_dark.css +8 -0
  31. package/project/client/css/sidebar-dark.css +21 -0
  32. package/project/client/css/sidebar-light.css +18 -0
  33. package/project/client/css/tab.css +19 -0
  34. package/project/client/css/tab_dark.css +9 -0
  35. package/project/client/css/tab_light.css +9 -0
  36. package/project/client/css/view-dark.css +11 -0
  37. package/project/client/css/view-light.css +10 -0
  38. package/project/client/stores/code-editor-store.js +1044 -0
  39. package/project/z-abs-complayer-codeeditor-client.tree +40 -0
package/.gitattributes ADDED
@@ -0,0 +1,26 @@
1
+
2
+ # Set the default behavior, in case people don't have core.autocrlf set.
3
+ * text=auto
4
+
5
+ # Explicitly declare text files you want to always be normalized and converted
6
+ # to native line endings on checkout.
7
+ *.json text
8
+ *.js text
9
+ *.jsx text
10
+ *.txt text
11
+ *.md text
12
+ *.bld text
13
+ *.tsk text
14
+ *.css text
15
+ *.html text
16
+
17
+
18
+ # Declare files that will always have CRLF line endings on checkout.
19
+ #*.sln text eol=crlf
20
+
21
+ # Declare files that will always have LF line endings on checkout.
22
+ #*.txt text eol=lf
23
+
24
+ # Denote all files that are truly binary and should not be modified.
25
+ *.png binary
26
+ *.jpg binary
package/LICENSE.txt ADDED
@@ -0,0 +1,96 @@
1
+
2
+ LICENSE AGREEMENT
3
+
4
+ Effective: 1st of November 2020
5
+ This License Agreement is between Licensee and Hagnell Konsulting AB (a company incorporated in Sweden with
6
+ company registration number: 559476-0570) (“Hagnell Konsulting”) and governs the use by Licensee of ActorJs
7
+ (as defined below).
8
+ By installing the Software (as defined below), Licensee agrees to be bound by the terms of this License Agreement.
9
+
10
+ DEFENITIONS
11
+ ActorJs The test tool developed by Hagnell Konsulting, utilizing the Patent and the Software.
12
+ Derivative Works Any work, whether in source or object code, which is based on the Software and which
13
+ does not constitute a new and independent work pursuant to paragraph 2 of article 4 of
14
+ the Swedish Act (1960:729) on Copyright in Literary and Artistic Works.
15
+ Documentation The manuals and instruction materials furnished by Hagnell Konsulting in connection
16
+ with ActorJs.
17
+ Licensee The physical or legal person to which the License hereunder has been granted by
18
+ Hagnell Konsulting.
19
+ Patent The patent application for a system and method for testing of systems under test, patent
20
+ application number:19218798.7 (European Patent Office).
21
+ Software The software developed and owned by Hagnell Konsulting, identified as ActorJs.
22
+
23
+ § 1 - LICENSE
24
+ Licensee is hereby granted a limited, non-exclusive and non-transferable license to use ActorJs (including any
25
+ Derivative Works created by Licensee hereunder) (the “License”). The License is granted subject to the terms and
26
+ conditions set forth below.
27
+ The Software is licensed to Licensee on an open source basis. The License includes the right to create Derivative
28
+ Works pursuant to sub-clause 3 below.
29
+ ActorJs may be used only by Licensee himself/herself/itself, or (if, for instance, Licensee is a company), by the
30
+ employees and consultants of Licensee.
31
+ The License does not include any updates to the Software, or any support services. Notwithstanding the foregoing,
32
+ should Hagnell Konsulting furnish any updates to Licensee, such updates shall be subject to the License granted hereunder.
33
+ As regards the Documentation provided by Hagnell Konsulting, Licensee may use this Documentation for the purpose of
34
+ the License hereunder (only). Licensee shall not be entitled to distribute copies of the Documentation, or electronically
35
+ communicate the Documentation, to recipients who are not employees or consultants of Licensee.
36
+
37
+ § 2 - LICENSE RESTRICTIONS
38
+ Licensee may not:
39
+ i) Rent, lease, lend, sell, distribute, transfer or otherwise make available ActorJs (and/or a Derivative Work)
40
+ (whether for value or otherwise) to third parties without Hagnell Konsulting´s written approval. Any such approval
41
+ will be subject to the third party acknowledging in writing (vis-à-vis Hagnell Konsulting) that its use of ActorJs
42
+ (and/or the Derivative Work) shall be subject to the terms and conditions of this Agreement.
43
+
44
+ ii) Distribute copies of the Software (and/or a Derivate Work), or electronically communicate the Software
45
+ (and/or a Derivative Work), to recipients who are not employees or consultants of Licensee.
46
+
47
+ § 3 – DERITATIVE WORKS
48
+ Should Licensee, or (if applicable) any of its employees or consultants, create a Derivative Work, Licensee shall
49
+ inform Hagnell Konsulting thereof in writing (an e-mail shall be sufficient). Licensee may use the Derivative Work to the
50
+ same extent as it may use the Software hereunder, but Hagnell Konsulting shall be the sole and exclusive owner of any
51
+ and all rights in the Derivative Work, including the copyright. At the request of Hagnell Konsulting, Licensee and
52
+ Hagnell Konsulting shall formalize the rights transfer in a written contract, which shall, inter alia, confirm that all rights
53
+ in the Derivative Work have been irrevocably transferred to Hagnell Konsulting, that Hagnell Konsulting is be entitled to
54
+ exploit the Derivative Work without limitation in time or any other kind of limitation, that Hagnell Konsulting may transfer
55
+ its rights to the Derivative Work to third parties and that the rights transfer from Licensee to Hagnell Konsulting shall be
56
+ free of charge.
57
+
58
+ § 4 – IMPROVEMENTS TO THE PATENT
59
+ Any improvement to the Patent, whether patentable or not, which Licensee, or (if applicable) any of its employees or
60
+ consultants, may discover, create or develop or otherwise have at its disposal, directly or indirectly, without restraints
61
+ as to the use thereof (“Improvements”), shall be disclosed promptly to Hagnell Konsulting and Hagnell Konsulting shall
62
+ have the exclusive right of perpetual duration to use the Improvements as well as to grant the use thereof to other licensees
63
+ in the whole world without compensation to Licensee, except that Licensee shall during the life of this Agreement have
64
+ the non-exclusive right to use such Improvements including corresponding patents, if any, in accordance with the
65
+ provisions of this Agreement. If Licensee decides not to apply for a patent relating to an Improvement made by
66
+ Licensee or if Licensee no longer wishes to maintain such a patent or patent application then Hagnell Konsulting may in its
67
+ sole discretion and at its own expense apply for such a patent or maintain such a patent or patent application (as the
68
+ case may be).
69
+
70
+ § 5 - COPYRIGHT AND INTELLECTUAL PROPERTY RIGHTS
71
+ The Software, the Patent and the Documentation are protected by copyright and patent laws and international
72
+ copyright and patent treaties, as well other intellectual property laws and treaties. Any such intellectual property
73
+ rights are owned and especially reserved by Hagnell Konsulting, without limitation. For the avoidance of doubt, no
74
+ ownership rights are transferred to Licensee hereunder.
75
+ “ActorJs” is a registered trademark of Hagnell Konsulting. This Agreement does not include a license to use the
76
+ trademark “ActorJs”.
77
+
78
+ § 6 - LIMITITATION ON LIABILITY
79
+ ActorJs is licensed to Licensee “as is”. Hagnell Konsulting gives no guarantees as regards the use, functionality
80
+ or performance of ActorJs and assumes no liability (whatsoever) as regards any defaults in ActorJs or any possible
81
+ infringements on third party statutory or contractual rights. Hagnell Konsulting expressly disclaims any and all warranties
82
+ not expressly given in this Agreement, including any implied warranties of merchantability, satisfactory quality, fitness
83
+ for a particular purpose, title and non-infringement. Thus, the entire risk arising out of any use of ActorJs hereunder
84
+ remains with Licensee.
85
+ The limitation of liability hereunder shall be to the maximum extent permitted by applicable law. Under no
86
+ circumstances shall Hagnell Konsulting be liable for any cost of substitute products or services, for any indirect losses or
87
+ for any consequential damages (including any loss of profits, interruptions or loss of business information).
88
+
89
+ § 7 - MISCELLANEOUS
90
+ Licensee may not, either wholly or partly, assign or pledge its rights or obligations under this Agreement to any third
91
+ party without the prior written consent of Hagnell Konsulting.
92
+
93
+ § 8 - DISPUTES
94
+ This agreement shall be governed by Swedish law. Any dispute, controversy or claim arising out of or in connection
95
+ with this contract, or the breach, termination or invalidity thereof, shall be settled by the general courts of Sweden,
96
+ with the district court of Stockholm in the first instance.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # README #
2
+
3
+ # ActorJs
4
+
5
+ **Library used by @actorjs/actorjs**
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@aj-shadow/z-abs-complayer-codeeditor-client",
3
+ "version": "0.0.0-aj-beta.221",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "@aj-shadow/z-abs-complayer-codeeditor-client",
9
+ "version": "0.0.0-aj-beta.221",
10
+ "license": "SEE LICENSE IN LICENSE.txt"
11
+ }
12
+ }
13
+ }
package/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@aj-shadow/z-abs-complayer-codeeditor-client",
3
+ "version": "0.0.0-aj-beta.221",
4
+ "release-step": "delivery",
5
+ "description": "Library used by @actorjs/actorjs",
6
+ "author": "ActorJs",
7
+ "license": "SEE LICENSE IN LICENSE.txt",
8
+ "repository": "https://gitlab.com/actorjs-shadow-delivery-public/z-abs-complayer-codeeditor-client.git",
9
+ "dependencies": {}
10
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "layer": "Comp",
3
+ "part": "Codeeditor-client",
4
+ "source": {
5
+ "path": "./build/z-abs-complayer-codeeditor-client/client",
6
+ "filters": ["js"]
7
+ },
8
+ "dest": "./dist/scripts",
9
+ "_bundle": true,
10
+ "ignores": null,
11
+ "externals": [
12
+ "react"
13
+ ],
14
+ "externalGlobs": [
15
+ "./build/z-abs-complayer-bootstrap-client/**/*.js",
16
+ "./build/z-abs-complayer-codemirror-client/**/*.js",
17
+ "./build/z-abs-complayer-modaldialog-client/**/*.js",
18
+ "./build/z-abs-complayer-tree-client/**/*.js",
19
+ "./build/z-abs-complayer-router-client/**/*.js",
20
+ "./build/z-abs-corelayer-client/**/*.js",
21
+ "./build/z-abs-corelayer-cs/**/*.js"
22
+ ],
23
+ "exports": null,
24
+ "exportSource": true,
25
+ "dependencyNames": [
26
+ "Client:CompLayer/Codeeditor-client",
27
+ "Client:CompLayer/Codeeditor-client-jsx",
28
+ "Client:CompLayer/Bootstrap-client",
29
+ "Client:CompLayer/Bootstrap-client-jsx",
30
+ "Client:CompLayer/Codemirror-client",
31
+ "Client:CompLayer/Codemirror-client-jsx",
32
+ "Client:CompLayer/Modaldialog-client",
33
+ "Client:CompLayer/Modaldialog-client-jsx",
34
+ "Client:CompLayer/Tree-client-jsx",
35
+ "Client:CompLayer/Router-client-jsx",
36
+ "Client:CoreLayer/client",
37
+ "Client:CoreLayer/client-jsx",
38
+ "Client:CoreLayer/cs",
39
+ "Client:3ppLayer/React-client"
40
+ ]
41
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "layer": "Comp",
3
+ "part": "Codeeditor-client",
4
+ "source": {
5
+ "path": "./project/client",
6
+ "filters": ["jsx"]
7
+ },
8
+ "dest": "./build/z-abs-complayer-codeeditor-client/client",
9
+ "dependencyNames": []
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "layer": "Comp",
3
+ "part": "Codeeditor-client",
4
+ "source": {
5
+ "path": "./project/client",
6
+ "filters": ["js"]
7
+ },
8
+ "dest": "./build/z-abs-complayer-codeeditor-client/client",
9
+ "dependencyNames": ["Client:CompLayer/Codeeditor-client-jsx"]
10
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "part": "CompLayer-Codeeditor",
3
+ "source": {
4
+ "path": "./project/client/css",
5
+ "filters": ["css"]
6
+ },
7
+ "dest": "./dist/css",
8
+ "dependencyNames": []
9
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "builds": [
3
+ {
4
+ "name": "Client:CompLayer/Codeeditor-client-jsx",
5
+ "type": "client",
6
+ "fileName": "Client-CompLayer-Codeeditor-client-jsx",
7
+ "requireName": "build-client-jsx",
8
+ "repo": "z-abs-complayer-codeeditor-client",
9
+ "repoPath": "."
10
+ },
11
+ {
12
+ "name": "Client:CompLayer/Codeeditor-client",
13
+ "type": "client",
14
+ "fileName": "Client-CompLayer-Codeeditor-client",
15
+ "requireName": "build-client-js",
16
+ "repo": "z-abs-complayer-codeeditor-client",
17
+ "repoPath": "."
18
+ },
19
+ {
20
+ "name": "Bundle:CompLayer/Codeeditor-client",
21
+ "type": "client",
22
+ "fileName": "Bundle-CompLayer-Codeeditor-client",
23
+ "requireName": "build-client-bundle",
24
+ "repo": null,
25
+ "repoPath": "."
26
+ },
27
+ {
28
+ "name": "client-css-compLayer-Codeeditor-bundle",
29
+ "type": "client",
30
+ "fileName": "Client-css-CompLayer-Codeeditor-bundle",
31
+ "requireName": "build-client-rc-bundle",
32
+ "repo": "z-abs-complayer-codeeditor-client",
33
+ "repoPath": "."
34
+ }
35
+ ]
36
+ }
@@ -0,0 +1,78 @@
1
+
2
+ 'use strict';
3
+
4
+ import Action from 'z-abs-corelayer-client/client/communication/action';
5
+
6
+
7
+ export class ActionCodeEditorFileGet extends Action {
8
+ constructor(projectId, key, title, path, type, plugin, workspaceName, filesData) {
9
+ super(projectId, key, title, path, type, plugin, workspaceName, filesData);
10
+ }
11
+ }
12
+
13
+ export class ActionCodeEditorFileSet extends Action {
14
+ constructor(url, name, line, type) {
15
+ super(url, name, line, type);
16
+ }
17
+ }
18
+
19
+ export class ActionCodeEditorFileAdd extends Action {
20
+ constructor(projectId, title, path, type, plugin) {
21
+ super(projectId, title, path, type, plugin);
22
+ }
23
+ }
24
+
25
+ export class ActionCodeEditorFileNew extends Action {
26
+ constructor(projectId, path, name, type, templateName, plugin, workspaceName) {
27
+ super(projectId, path, name, type, templateName, plugin, workspaceName);
28
+ }
29
+ }
30
+
31
+ export class ActionCodeEditorFileRename extends Action {
32
+ constructor(projectId, path, title, newTitle, workspaceName) {
33
+ super(projectId, path, title, newTitle, workspaceName);
34
+ }
35
+ }
36
+
37
+ export class ActionCodeEditorFileUpdate extends Action {
38
+ constructor(key, workspaceName) {
39
+ super(key, workspaceName);
40
+ }
41
+ }
42
+
43
+ export class ActionCodeEditorFileUpdateAll extends Action {
44
+ constructor(keys) {
45
+ super(keys);
46
+ }
47
+ }
48
+
49
+ export class ActionCodeEditorFileClose extends Action {
50
+ constructor(key) {
51
+ super(key);
52
+ }
53
+ }
54
+
55
+ export class ActionCodeEditorFileRemove extends Action {
56
+ constructor(projectId, key) {
57
+ super(projectId, key);
58
+ }
59
+ }
60
+
61
+ export class ActionCodeEditorFileDelete extends Action {
62
+ constructor(projectId, key, plugin, workspaceName) {
63
+ super(projectId, key, plugin, workspaceName);
64
+ }
65
+ }
66
+
67
+ export class ActionCodeEditorFileEdit extends Action {
68
+ constructor(projectId, key, content) {
69
+ super(projectId, key, content);
70
+ }
71
+ }
72
+
73
+ export class ActionCodeEditorFileMove extends Action {
74
+ constructor(fromKey, toKey) {
75
+ super(fromKey, toKey);
76
+ }
77
+ }
78
+
@@ -0,0 +1,41 @@
1
+
2
+ 'use strict';
3
+
4
+ import Action from 'z-abs-corelayer-client/client/communication/action';
5
+
6
+
7
+ export class ActionCodeEditorFolderGet extends Action {
8
+ constructor(projectId, key, title, data, workspaceName) {
9
+ super(projectId, key, title, data, workspaceName);
10
+ }
11
+ }
12
+
13
+ export class ActionCodeEditorFolderNew extends Action {
14
+ constructor(projectId, title, data, workspaceName) {
15
+ super(projectId, title, data, workspaceName);
16
+ }
17
+ }
18
+
19
+ export class ActionCodeEditorFolderAdd extends Action {
20
+ constructor(projectId, title, data) {
21
+ super(projectId, title, data);
22
+ }
23
+ }
24
+
25
+ export class ActionCodeEditorFolderUpdate extends Action {
26
+ constructor(projectId, title, newTitle, data, workspaceName) {
27
+ super(projectId, title, newTitle, data, workspaceName);
28
+ }
29
+ }
30
+
31
+ export class ActionCodeEditorFolderRemove extends Action {
32
+ constructor(projectId, title, key, data) {
33
+ super(projectId, title, key, data);
34
+ }
35
+ }
36
+
37
+ export class ActionCodeEditorFolderDelete extends Action {
38
+ constructor(projectId, title, key, data, workspaceName) {
39
+ super(projectId, title, key, data, workspaceName);
40
+ }
41
+ }
@@ -0,0 +1,23 @@
1
+
2
+ 'use strict';
3
+
4
+ import Action from 'z-abs-corelayer-client/client/communication/action';
5
+
6
+
7
+ export class ActionCodeEditorPersistentDataAdd extends Action {
8
+ constructor() {
9
+ super();
10
+ }
11
+ }
12
+
13
+ export class ActionCodeEditorPersistentDataGet extends Action {
14
+ constructor() {
15
+ super();
16
+ }
17
+ }
18
+
19
+ export class ActionCodeEditorPersistentDataUpdate extends Action {
20
+ constructor(parentName, name, value) {
21
+ super(parentName, name, value);
22
+ }
23
+ }
@@ -0,0 +1,23 @@
1
+
2
+ 'use strict';
3
+
4
+ import Action from 'z-abs-corelayer-client/client/communication/action';
5
+
6
+
7
+ export class ActionCodeEditorProjectUpdate extends Action {
8
+ constructor(projectId) {
9
+ super(projectId);
10
+ }
11
+ }
12
+
13
+ export class ActionCodeEditorProjectUpdateAll extends Action {
14
+ constructor(projectIds) {
15
+ super(projectIds);
16
+ }
17
+ }
18
+
19
+ export class ActionCodeEditorProjectToggle extends Action {
20
+ constructor(projectId, key, expanded, name) {
21
+ super(projectId, key, expanded, name);
22
+ }
23
+ }
@@ -0,0 +1,35 @@
1
+
2
+ 'use strict';
3
+
4
+ import Action from 'z-abs-corelayer-client/client/communication/action';
5
+
6
+
7
+ export class ActionCodeEditorWorkspaceNew extends Action {
8
+ constructor(appName, workspaceName) {
9
+ super(appName, workspaceName);
10
+ }
11
+ }
12
+
13
+ export class ActionCodeEditorWorkspaceGet extends Action {
14
+ constructor(appName, workspaceName, open) {
15
+ super(appName, workspaceName, open);
16
+ }
17
+ }
18
+
19
+ export class ActionCodeEditorWorkspaceUpdate extends Action {
20
+ constructor(projectId) {
21
+ super(projectId);
22
+ }
23
+ }
24
+
25
+ export class ActionCodeEditorWorkspaceSearch extends Action {
26
+ constructor(search, rules, index, filesData) {
27
+ super(search, rules, index, filesData);
28
+ }
29
+ }
30
+
31
+ export class ActionCodeEditorWorkspaceSearchSet extends Action {
32
+ constructor(key) {
33
+ super(key);
34
+ }
35
+ }
@@ -0,0 +1,41 @@
1
+
2
+ 'use strict';
3
+
4
+ import { ActionCodeEditorFileGet, ActionCodeEditorFileUpdate } from './action-code-editor-file';
5
+ import DataAction from 'z-abs-corelayer-client/client/communication/data-action';
6
+
7
+
8
+ export class DataActionCodeEditorFileGet extends DataAction {
9
+ constructor(file, projectId, key, title, path, type, projectType, plugin, workspaceName, filesData) {
10
+ super();
11
+ this.addRequest(new ActionCodeEditorFileGet(projectId, key, title, path, type, plugin, workspaceName, filesData), file, projectType, plugin, workspaceName);
12
+ }
13
+ }
14
+
15
+ export class DataActionCodeEditorFileNew extends DataAction {
16
+ constructor(action, projectType, plugin, workspaceName) {
17
+ super();
18
+ this.addRequest(action, action.path, action.name, action.type, action.templateName, projectType, plugin, workspaceName);
19
+ }
20
+ }
21
+
22
+ export class DataActionCodeEditorFileRename extends DataAction {
23
+ constructor(oldPath, newPath, projectType, plugin, action, workspaceName) {
24
+ super();
25
+ this.addRequest(action, oldPath, newPath, projectType, plugin, workspaceName);
26
+ }
27
+ }
28
+
29
+ export class DataActionCodeEditorFileUpdate extends DataAction {
30
+ constructor(key, title, path, content, projectType, plugin, workspaceName) {
31
+ super();
32
+ this.addRequest(new ActionCodeEditorFileUpdate(key), `${path}/${title}`, content, projectType, plugin, workspaceName);
33
+ }
34
+ }
35
+
36
+ export class DataActionCodeEditorFileDelete extends DataAction {
37
+ constructor(file, projectType, plugin, action, workspaceName) {
38
+ super();
39
+ this.addRequest(action, file, projectType, plugin, workspaceName);
40
+ }
41
+ }
@@ -0,0 +1,33 @@
1
+
2
+ 'use strict';
3
+
4
+ import DataAction from 'z-abs-corelayer-client/client/communication/data-action';
5
+
6
+
7
+ export class DataActionCodeEditorFolderGet extends DataAction {
8
+ constructor(action, projectType, plugin, workspaceName) {
9
+ super();
10
+ this.addRequest(action, `${action.data.path}/${action.title}`, projectType, plugin, workspaceName);
11
+ }
12
+ }
13
+
14
+ export class DataActionCodeEditorFolderNew extends DataAction {
15
+ constructor(action, projectType, plugin, workspaceName) {
16
+ super();
17
+ this.addRequest(action, `${action.data.path}/${action.title}`, projectType, plugin, workspaceName);
18
+ }
19
+ }
20
+
21
+ export class DataActionCodeEditorFolderUpdate extends DataAction {
22
+ constructor(oldPath, newPath, action, projectType, plugin, workspaceName) {
23
+ super();
24
+ this.addRequest(action, oldPath, newPath, projectType, plugin, workspaceName);
25
+ }
26
+ }
27
+
28
+ export class DataActionCodeEditorFolderDelete extends DataAction {
29
+ constructor(action, projectType, plugin, workspaceName) {
30
+ super();
31
+ this.addRequest(action, `${action.data.path}/${action.title}`, projectType, plugin, workspaceName);
32
+ }
33
+ }
@@ -0,0 +1,27 @@
1
+
2
+ 'use strict';
3
+
4
+ import { ActionCodeEditorPersistentDataAdd, ActionCodeEditorPersistentDataGet } from './action-code-editor-persistent-data';
5
+ import DataAction from 'z-abs-corelayer-client/client/communication/data-action';
6
+
7
+
8
+ export class DataActionCodeEditorPersistentDataAdd extends DataAction {
9
+ constructor(key, valueObject) {
10
+ super();
11
+ this.addRequest(new ActionCodeEditorPersistentDataAdd(), key, valueObject);
12
+ }
13
+ }
14
+
15
+ export class DataActionCodeEditorPersistentDataGet extends DataAction {
16
+ constructor(key) {
17
+ super();
18
+ this.addRequest(new ActionCodeEditorPersistentDataGet(), key);
19
+ }
20
+ }
21
+
22
+ export class DataActionCodeEditorPersistentDataUpdate extends DataAction {
23
+ constructor(action, key, valueObject) {
24
+ super();
25
+ this.addRequest(action, key, valueObject);
26
+ }
27
+ }
@@ -0,0 +1,20 @@
1
+
2
+ 'use strict';
3
+
4
+ import { ActionCodeEditorProjectUpdate } from './action-code-editor-project';
5
+ import DataAction from 'z-abs-corelayer-client/client/communication/data-action';
6
+
7
+
8
+ export class DataActionCodeEditorProjectUpdate extends DataAction {
9
+ constructor(projectId, content, name, type, plugin) {
10
+ super();
11
+ this.addRequest(new ActionCodeEditorProjectUpdate(projectId), content, name, type, plugin);
12
+ }
13
+ }
14
+
15
+ export class DataActionCodeEditorProjectToggle extends DataAction {
16
+ constructor(action, content, name, type) {
17
+ super();
18
+ this.addRequest(action, content, name, type);
19
+ }
20
+ }
@@ -0,0 +1,27 @@
1
+
2
+ 'use strict';
3
+
4
+ import { ActionCodeEditorWorkspaceNew, ActionCodeEditorWorkspaceGet, ActionCodeEditorWorkspaceUpdate } from './action-code-editor-workspace';
5
+ import DataAction from 'z-abs-corelayer-client/client/communication/data-action';
6
+
7
+
8
+ export class DataActionCodeEditorWorkspaceGet extends DataAction {
9
+ constructor(appName, workspaceName, open) {
10
+ super();
11
+ this.addRequest(new ActionCodeEditorWorkspaceGet(appName, workspaceName, open), appName, workspaceName);
12
+ }
13
+ }
14
+
15
+ export class DataActionCodeEditorWorkspaceNew extends DataAction {
16
+ constructor(appName, appType) {
17
+ super();
18
+ this.addRequest(new ActionCodeEditorWorkspaceNew(appName, appType), appName, appType);
19
+ }
20
+ }
21
+
22
+ export class DataActionCodeEditorWorkspaceSearch extends DataAction {
23
+ constructor(action) {
24
+ super();
25
+ this.addRequest(action, action.search, action.rules);
26
+ }
27
+ }