Skip to content

Commit c31d0f9

Browse files
Project rename
1 parent 0d9a821 commit c31d0f9

File tree

11 files changed

+19
-18
lines changed

11 files changed

+19
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Caché Visual Builder
1+
# Caché Visual Editor
22

33
A Web-based user interface for InterSystems Caché which allows to create and manage classes
44
literally without touching any code.
@@ -13,7 +13,7 @@ Find the latest release [nowhere for now] and import XML file into Caché by one
1313

1414
Then check the installation output, it should say "Installation is complete!".
1515

16-
After this, open the next web-application: `http://[host]/VisualBuilder/`
16+
After this, open the next web-application: `http://[host]/VisualEditor/`
1717
(slash at the end is required).
1818

1919
### Development

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"name": "cache-visual-builder",
3-
"printableName": "Cache Visual Builder",
2+
"name": "cache-visual-editor",
3+
"printableName": "Cache Visual Editor",
44
"version": "0.1.0",
55
"description": "Visual class editor for InterSystems Caché",
66
"main": "index.js",
77
"keywords": [
88
"visual",
9+
"editor",
910
"builder",
1011
"cache",
1112
"intersystems"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
/// This class installs and removes <!-- @echo package.printableName -->. Once the class is
33
/// compiled, the application will be installed into Caché system. Then open the web-application
44
/// [host]/<!-- @echo config.webApplicationName -->/ (slash at the end is required).
5-
Class VisualBuilder.Installer Extends %Projection.AbstractProjection [ CompileAfter = (Router, StaticContent) ]
5+
Class VisualEditor.Installer Extends %Projection.AbstractProjection [ CompileAfter = (VisualEditor.Router, VisualEditor.REST.StaticContent, VisualEditor.REST.Informer, VisualEditor.REST.Content) ]
66
{
77

88
Projection Reference As Installer;
99

10-
Parameter DispatchClass = "VisualBuilder.Router";
10+
Parameter DispatchClass = "VisualEditor.Router";
1111

1212
Parameter RESTAppName = "/<!-- @echo config.webApplicationName -->";
1313

source/cache/VisualBuilder.REST.Content.cls renamed to source/cache/VisualEditor.REST.Content.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// [ <!-- @echo package.printableName --> v<!-- @echo package.version --> ]
22
/// This class is a base class for classes that serve resources.
3-
Class VisualBuilder.REST.Content {
3+
Class VisualEditor.REST.Content {
44

55
/// Identifies the compilation time, which is used to form "Last-Modified" HTTP header.
66
Parameter CompileTime = {"""" _ $zd($h, 11) _ ", "_ $zdt($NOW(0), 2,1) _ " GMT"""};

source/cache/VisualBuilder.REST.Informer.cls renamed to source/cache/VisualEditor.REST.Informer.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// [ <!-- @echo package.printableName --> v<!-- @echo package.version --> ]
22
/// This is a REST WEB application that serves different information for the client.
3-
Class VisualBuilder.REST.Informer extends %CSP.REST {
3+
Class VisualEditor.REST.Informer extends %CSP.REST {
44

55
XData UrlMap
66
{

source/cache/VisualBuilder.REST.StaticContent.cls renamed to source/cache/VisualEditor.REST.StaticContent.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// [ <!-- @echo package.printableName --> v<!-- @echo package.version --> ]
22
/// This class handles all the static data. Note that this class is generated automatically by
33
/// performing build from the sources.
4-
Class VisualBuilder.REST.StaticContent extends VisualBuilder.REST.Content {
4+
Class VisualEditor.REST.StaticContent extends VisualEditor.REST.Content {
55

66
/// This block handles HTML markup.
77
XData HTML [ MimeType = text/html ]
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// [ <!-- @echo package.printableName --> v<!-- @echo package.version --> ]
2-
/// This is a REST WEB application entry point for Caché Visual Builder WEB application.
3-
Class VisualBuilder.Router extends %CSP.REST [ CompileAfter = StaticContent ] {
2+
/// This is a REST WEB application entry point for <!-- @echo package.printableName --> WEB application.
3+
Class VisualEditor.Router extends %CSP.REST [ CompileAfter = VisualEditor.REST.StaticContent ] {
44

55
XData UrlMap
66
{
@@ -9,22 +9,22 @@ XData UrlMap
99
<Route Url="/index" Method="GET" Call="Index"/>
1010
<Route Url="/css/index.css" Method="GET" Call="Css"/>
1111
<Route Url="/js/index.js" Method="GET" Call="Js"/>
12-
<Map Prefix="/Informer" Forward="VisualBuilder.REST.Informer"/>
13-
<Map Prefix="/Resources" Forward="VisualBuilder.REST.Resources"/>
12+
<Map Prefix="/Informer" Forward="VisualEditor.REST.Informer"/>
13+
<Map Prefix="/Resources" Forward="VisualEditor.REST.Resources"/>
1414
</Routes>
1515
}
1616

1717
ClassMethod PrintData(DataName as %String = "") As %Status [ Private ]
1818
{
19-
set cTime = ##class(VisualBuilder.REST.StaticContent).#CompileTime
19+
set cTime = ##class(VisualEditor.REST.StaticContent).#CompileTime
2020
set %response.CharSet = "utf-8"
21-
set %response.ContentType = ##class(VisualBuilder.REST.StaticContent).GetMimeType(DataName)
21+
set %response.ContentType = ##class(VisualEditor.REST.StaticContent).GetMimeType(DataName)
2222
do %response.SetHeader("Last-Modified", cTime)
2323
if (%request.GetCgiEnv("HTTP_IF_MODIFIED_SINCE") = cTime) {
2424
set %response.Status = "304 Not Modified"
2525
return $$$OK
2626
} else {
27-
if ($$$ISERR(##class(VisualBuilder.REST.StaticContent).PrintContent(DataName))) {
27+
if ($$$ISERR(##class(VisualEditor.REST.StaticContent).PrintContent(DataName))) {
2828
return ..ReportHttpStatusCode(404)
2929
} else {
3030
return $$$OK

source/client/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { init } from "./classBuilder";
1+
import { init } from "./classEditor";
22

33
window.addEventListener("load", () => {
44

0 commit comments

Comments
 (0)