Skip to content

Commit d96af43

Browse files
committed
new version of jsconsole:
- upgrade to codemirror 3 - implement jshint for js editor with dynamic globals (jshint version of fmaul) - new json output view (with validation of jsonlint and formatting) - new performancestats module (for javascript and freemarker processing) - better error handling (mark the errors in the appropriate line for javascript and freemarker) - theme support for codemirror (integrates all available themes) - new autocomplete module of codemirror integrated
1 parent 9e20e80 commit d96af43

File tree

206 files changed

+31098
-2971
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+31098
-2971
lines changed

javascript-console-repo/.classpath

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
<classpath>
33
<classpathentry kind="src" path="source/java"/>
44
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
5-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/alfresco-core-4.0.0.jar" sourcepath="/ALFRESCO_SDK_400/src/alfresco-core-src.zip"/>
6-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/alfresco-data-model-4.0.0.jar" sourcepath="/ALFRESCO_SDK_400/src/alfresco-datamodel-src.zip"/>
7-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/alfresco-remote-api-4.0.0.jar"/>
8-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/spring-surf/spring-surf-core-1.0.0.jar"/>
9-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/spring-surf/spring-webscripts-1.0.0.jar" sourcepath="/ALFRESCO_SDK_400"/>
10-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/commons/commons-lang-2.6.jar"/>
11-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/commons/commons-logging-1.1.1.jar"/>
12-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/j2ee/servlet.jar"/>
13-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/optional/log4j-1.2.15.jar"/>
14-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/json.jar"/>
15-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/rhino-js-1.6R7.jar"/>
16-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/spring-surf/spring-webscripts-api-1.0.0.jar"/>
17-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/alfresco-repository-4.0.0.jar" sourcepath="/ALFRESCO_SDK_400/src/alfresco-repository-src.zip"/>
18-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/org.springframework.context-3.0.5.RELEASE.jar"/>
19-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/org.springframework.core-3.0.5.RELEASE.jar"/>
20-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/org.springframework.beans-3.0.5.RELEASE.jar"/>
21-
<classpathentry kind="var" path="ALFRESCO_SDK_400/lib/server/dependencies/commons/commons-io-1.4.jar"/>
5+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/alfresco-core-4.1.2.jar" sourcepath="/ALFRESCO_SDK_412/src/alfresco-core-src.zip"/>
6+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/alfresco-data-model-4.1.2.jar" sourcepath="/ALFRESCO_SDK_412/src/alfresco-datamodel-src.zip"/>
7+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/alfresco-remote-api-4.1.2.jar" sourcepath="/ALFRESCO_SDK_412/src/alfresco-remote-api-src.zip"/>
8+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/alfresco-repository-4.1.2.jar" sourcepath="/ALFRESCO_SDK_412/src/alfresco-repository-src.zip"/>
9+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/commons/commons-io-1.4.jar"/>
10+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/commons/commons-lang-2.6.jar"/>
11+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/commons/commons-logging-1.1.1.jar"/>
12+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/j2ee/servlet.jar"/>
13+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/optional/log4j-1.2.15.jar"/>
14+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/json.jar"/>
15+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/org.springframework.beans-3.0.5.RELEASE.jar"/>
16+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/org.springframework.context-3.0.5.RELEASE.jar"/>
17+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/org.springframework.core-3.0.5.RELEASE.jar"/>
18+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/rhino-js-1.6R7.jar"/>
19+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/spring-surf/spring-surf-core-1.2.0-SNAPSHOT.jar"/>
20+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/spring-surf/spring-webscripts-1.2.0-SNAPSHOT.jar" sourcepath="/ALFRESCO_SDK_412/src/spring-webscripts-1.2.0-SNAPSHOT-sources.jar"/>
21+
<classpathentry kind="var" path="ALFRESCO_SDK_412/lib/server/dependencies/spring-surf/spring-webscripts-api-1.2.0-SNAPSHOT.jar" sourcepath="/ALFRESCO_SDK_412/src/spring-webscripts-api-1.2.0-SNAPSHOT-sources.jar"/>
2222
<classpathentry kind="output" path="bin"/>
2323
</classpath>

javascript-console-repo/.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
</buildSpec>
1414
<natures>
1515
<nature>org.eclipse.jdt.core.javanature</nature>
16+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
1617
</natures>
1718
</projectDescription>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
XDOCLETBUILDERACTIVE=true
2+
XDOCLETHOME=
3+
XDOCLETUSEGLOBAL=true
4+
XDOCLETVERSION=1.2.1
5+
eclipse.preferences.version=1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<faceted-project>
3+
<installed facet="java" version="1.6"/>
4+
</faceted-project>

javascript-console-repo/README.txt

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
Javascript Console Admin Console component for Alfresco Share
3+
=============================================================
4+
5+
Author: Florian Maul
6+
7+
This project defines a Javascript Console component for Share's Administration Console,
8+
that enables the execution of arbitrary javascript code in the repository.
9+
10+
11+
Installation
12+
------------
13+
14+
The component has been developed to install on top of an existing Alfresco
15+
3.4 or 4.0 installation. There are two different version in this archive with
16+
a specific folder for each of the Alfresco version.
17+
18+
When you have chosen the correct folder (3.4.x or 4.0.x) for your Alfresco version
19+
you'll find two jar files within that folder. The javascript-console-repo.jar needs
20+
to be copied into the Alfresco repository:
21+
22+
tomcat/webapps/alfresco/WEB-INF/lib/
23+
24+
The other file javascript-console-share.jar needs to be copied to the
25+
corresponding folder in the Share webapp:
26+
27+
tomcat/webapps/share/WEB-INF/lib/
28+
29+
The deployment location has changed recently (with Javascript Console 0.5)
30+
because the Javascript Console now uses Java classes that have to be deployed
31+
to these locations and can NOT reside in tomcat/shared/lib anymore.
32+
33+
34+
Building
35+
--------
36+
37+
To build the individual JAR files, run the following command from the base
38+
project directory.
39+
40+
ant -Dalfresco.sdk.dir=c:\dev\sdks\alfresco-enterprise-sdk-4.0.0 clean dist-jar
41+
42+
The command should build a JAR file named javascript-console-repo.jar or
43+
javascript-console-share.jar in the 'dist' directory within your project.
44+
45+
There also is the javascript-console-dist which builds both jar files and
46+
creates a patched version for Alfresco 3.4.x which does not support all the
47+
features of the version for 4.0.x
48+
49+
To deploy the extension files into a local Tomcat instance for testing, you can
50+
use the hotcopy-tomcat-jar task. You will need to set the tomcat.home
51+
property in Ant.
52+
53+
ant -Dtomcat.home=C:/Alfresco/tomcat clean hotcopy-tomcat-jar
54+
55+
Once you have run this you will need to restart Tomcat so that the classpath
56+
resources in the JAR file are picked up.
57+
58+
59+
Using the component
60+
-------------------
61+
62+
Log in to Alfresco Share as an admin user and navigate to the Administration
63+
page. Click 'Javascript Console' in the left hand side navigation.
64+
2.31 KB
Binary file not shown.
2.6 KB
Binary file not shown.
1.71 KB
Binary file not shown.
18.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)