Skip to content

Commit 7f0a689

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 47cb585 + 8db9262 commit 7f0a689

11 files changed

+9398
-22453
lines changed

cache/projectTemplate.xml

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -643,9 +643,17 @@ Write the contents of xData tag</Description>
643643

644644
<Class name="ClassExplorer.WebAppInstaller">
645645
<Super>%Projection.AbstractProjection</Super>
646-
<TimeChanged>63696,65168.289869</TimeChanged>
646+
<TimeChanged>63958,46205.449903</TimeChanged>
647647
<TimeCreated>63696,64041.85537</TimeCreated>
648648

649+
<Parameter name="Name">
650+
<Default>/ClassExplorer</Default>
651+
</Parameter>
652+
653+
<Parameter name="DispatchClass">
654+
<Default>ClassExplorer.Router</Default>
655+
</Parameter>
656+
649657
<Projection name="Reference">
650658
<Type>WebAppInstaller</Type>
651659
</Projection>
@@ -657,28 +665,29 @@ This method is invoked when a class is compiled.</Description>
657665
<FormalSpec><![CDATA[cls:%String,&params]]></FormalSpec>
658666
<ReturnType>%Status</ReturnType>
659667
<Implementation><![CDATA[
660-
set ns = $NAMESPACE
661-
zn:ns'="%SYS" "%SYS"
668+
set properties("NameSpace") = $Namespace
669+
set properties("Description") = "A WEB application for Cache UML Explorer."
670+
set properties("IsNameSpaceDefault") = $$$YES
671+
set properties("DispatchClass") = ..#DispatchClass
672+
673+
new $Namespace
674+
set $Namespace = "%SYS"
662675
do ##class(Security.System).GetInstallationSecuritySetting(.security)
663676
if (security="None") {
664-
set cspProperties("AutheEnabled") = 64 // Unauthenticated
677+
set properties("AutheEnabled") = $$$AutheUnauthenticated
665678
} else {
666-
set cspProperties("AutheEnabled") = 32 // Password
667-
}
668-
set cspProperties("NameSpace") = ns
669-
set cspProperties("Description") = "A WEB application for Cache Class Explorer."
670-
set cspProperties("IsNameSpaceDefault") = 1
671-
set cspProperties("DispatchClass") = "ClassExplorer.Router"
672-
if ('##class(Security.Applications).Exists("/ClassExplorer")) {
673-
w !, "Creating WEB application ""/ClassExplorer""..."
674-
set tSC = ##class(Security.Applications).Create("/ClassExplorer", .cspProperties)
675-
if $$$ISERR(tSC) throw ##class(%Installer.Exception).CreateFromStatus(tSC)
676-
w !, "WEB application ""/ClassExplorer"" created."
679+
set properties("AutheEnabled") = $$$AutheCache
680+
}
681+
682+
if ('##class(Security.Applications).Exists(..#Name)) {
683+
write !, "Creating WEB application " _ ..#Name _ "..."
684+
set st = ##class(Security.Applications).Create(..#Name, .properties)
685+
write !, "WEB application " _ ..#Name _ " created."
677686
} else {
678-
w !, "WEB application ""/ClassExplorer"" already exists, so it is ready to use."
687+
set st = $$$OK
688+
write !, "WEB application " _ ..#Name _ " already exists, so it is ready to use."
679689
}
680-
zn:ns'="%SYS" ns
681-
quit $$$OK
690+
quit st
682691
]]></Implementation>
683692
</Method>
684693

@@ -689,15 +698,15 @@ This method is invoked when a class is 'uncompiled'.</Description>
689698
<FormalSpec><![CDATA[cls:%String,&params,recompile:%Boolean]]></FormalSpec>
690699
<ReturnType>%Status</ReturnType>
691700
<Implementation><![CDATA[
692-
set ns = $NAMESPACE
693-
zn:ns'="%SYS" "%SYS"
694-
if (##class(Security.Applications).Exists("/ClassExplorer")) {
695-
w !, "Deleting WEB application ""/ClassExplorer""..."
696-
do ##class(Security.Applications).Delete("/ClassExplorer")
697-
w !, "WEB application ""/ClassExplorer"" was successfully removed."
701+
new $Namespace
702+
set $Namespace = "%SYS"
703+
set st = $$$OK
704+
if (##class(Security.Applications).Exists(..#Name)) {
705+
write !, "Deleting WEB application " _ ..#Name _"..."
706+
set st = ##class(Security.Applications).Delete(..#Name)
707+
write !, "WEB application " _ ..#Name _ " was successfully removed."
698708
}
699-
zn:ns'="%SYS" ns
700-
QUIT $$$OK
709+
quit st
701710
]]></Implementation>
702711
</Method>
703712
</Class>

gulpfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ gulp.task("clean", function () {
4242

4343
gulp.task("gatherLibs", ["clean"], function () {
4444
return gulp.src([
45+
"web/jsLib/jquery.min.js",
46+
"web/jsLib/lodash.min.js",
47+
"web/jsLib/backbone-min.js",
4548
"web/jsLib/joint.js",
4649
"web/jsLib/joint.shapes.uml.js",
4750
"web/jsLib/ImageExporter.js"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CacheClassExplorer",
3-
"version": "1.14.3",
3+
"version": "1.15.0",
44
"description": "Class Explorer for InterSystems Caché",
55
"directories": {
66
"test": "test"

web/css/joint.min.css

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
<link rel="stylesheet" href="css/hoverMessage.css"/>
1717
<!-- endbuild -->
1818
<!-- build:js -->
19+
<script type="text/javascript" src="jsLib/jquery.min.js"></script>
20+
<script type="text/javascript" src="jsLib/lodash.min.js"></script>
21+
<script type="text/javascript" src="jsLib/backbone-min.js"></script>
1922
<script type="text/javascript" src="jsLib/joint.js"></script>
2023
<script type="text/javascript" src="jsLib/joint.shapes.uml.js"></script>
2124
<script type="text/javascript" src="jsLib/joint.layout.DirectedGraph.min.js"></script>

web/js/Lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Lib.prototype.load = function (url, data, callback) {
1919
try {
2020
return callback(null, JSON.parse(xhr.responseText) || {});
2121
} catch (e) {
22-
console.error(url, "Unable to parse:", { data: xhr.responseText });
22+
console.error(e, url, "Unable to parse:", { data: xhr.responseText });
2323
return {};
2424
}
2525
} else if (xhr.readyState === 4) {

web/js/Source.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var Source = function (cacheUMLExplorer) {
22

33
this.URL = window.location.protocol + "//" + window.location.hostname + ":" +
4-
57776/*build.replace:window.location.port*/ + "/ClassExplorer";
4+
57772/*build.replace:window.location.port*/ + "/ClassExplorer";
55

66
this.cue = cacheUMLExplorer;
77

web/jsLib/backbone-min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)