Skip to content

Commit faf3b1f

Browse files
Parameters of properties edit, add; Manifest to some parameters, controls add
1 parent 6ef9605 commit faf3b1f

File tree

10 files changed

+512
-29
lines changed

10 files changed

+512
-29
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cache-visual-editor",
33
"printableName": "Cache Visual Editor",
4-
"version": "0.4.3",
4+
"version": "0.4.7",
55
"description": "Visual class editor for InterSystems Caché",
66
"main": "index.js",
77
"keywords": [

source/cache/VisualEditor.REST.Editor.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ClassMethod Save() As %Status
7676
set st = $system.OBJ.Compile(className, "cuk-d", .errorLog)
7777

7878
if (errorLog '= 0) {
79-
set response.error = response.error _ $CHAR(10) _ errorLog
79+
set response.error = response.error _ errorLog(1) _ $CHAR(10)
8080
set className = $order(classes(className))
8181
continue
8282
}

source/client/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<div class="page" id="classBuilder">
1818
<div class="header">
1919
<div class="panel">
20-
<div class="medium menu icon"></div>
21-
<div class="medium back icon" id="backButton"></div>
20+
<div class="interactive medium menu icon"></div>
21+
<div class="interactive medium back icon" id="backButton"></div>
2222
<span class="title">
2323
<select id="topNamespace" class="topNamespace">
2424
<option>Loading...</option>

source/client/js/classEditor/card.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import { enableItem } from "./card/item";
55
function getPropertyBlock (classData, classBlockName, classBlockPropName) {
66
let prop = classData[classBlockName][classBlockPropName],
77
item = block(`div`, `header`),
8+
iconBlock = block(`div`, `icons`),
89
icon = block(`div`, `icon ${ prop["Private"] ? "private" : "public" }`),
910
text = block(`span`, `label`),
1011
pName = block(`span`, `name`),
1112
type = prop["Type"] || prop["ReturnType"] || prop["MimeType"] || "",
1213
pTypeText = type ? block(`span`) : null,
1314
pType = type ? block(`span`, `type`) : null;
14-
item.appendChild(icon);
15+
iconBlock.appendChild(icon);
16+
item.appendChild(iconBlock);
1517
pName.textContent = prop["Name"];
1618
text.appendChild(pName);
1719
if (type) {
@@ -21,7 +23,7 @@ function getPropertyBlock (classData, classBlockName, classBlockPropName) {
2123
text.appendChild(pType);
2224
}
2325
item.appendChild(text);
24-
enableItem(item, classData, classBlockName, classBlockPropName);
26+
enableItem({headerElement: item, classData, classBlockName, classBlockPropName});
2527
return item;
2628
}
2729

0 commit comments

Comments
 (0)