Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
e486ef4
default hide xwiki-menu
fpichler Mar 12, 2026
cac380e
format all css and js to reduce further PR diffs
fpichler Mar 18, 2026
380b243
replace xwiki.get('...').use
fpichler Mar 10, 2026
fefceb8
remove unused xwiki-sheets and move xwiki-js-misc to disc
fpichler Mar 10, 2026
393f140
drop Panels.SyntaxHelp
fpichler Mar 10, 2026
5a6a706
fix path and js loading order
fpichler Mar 10, 2026
53a34cd
add debugging comment
fpichler Mar 10, 2026
ae14bac
remove use of $xwiki.getSkinFile for urls in CSS
cbspichler Mar 10, 2026
c418f2a
replace colorThemeInit.vm with defaultColors.css and use CSS variable…
cbspichler Mar 10, 2026
7534edb
correct javascript.vm to load in view
fpichler Mar 10, 2026
096fc66
add missing eof
cbspichler Mar 10, 2026
eeea69f
reduce use of $msg in JS-Files
cbspichler Mar 10, 2026
a15360d
add body css class and improve screenlayout.css
fpichler Mar 12, 2026
73ca67a
flatten cascating @import for stylesheets
fpichler Mar 12, 2026
d3a075b
move styles.css imports to stylesheets.vm
fpichler Mar 12, 2026
6b344cc
reformat minified files
cbspichler Mar 12, 2026
899d6f3
remove velocity from notification.css
cbspichler Mar 12, 2026
5985329
reduce use of $msg further
cbspichler Mar 12, 2026
f0c0fc9
undo wrong replacement for $msg
cbspichler Mar 12, 2026
db88b5d
replace $msg uses
cbspichler Mar 12, 2026
c33a802
replace more $msg uses in JS Files
cbspichler Mar 12, 2026
b7b0ec8
delete unused code
cbspichler Mar 12, 2026
efe544c
move translations into local context
cbspichler Mar 12, 2026
bec1c2c
use absolute image paths in tablefilterNsort.js
fpichler Mar 12, 2026
4754cf7
fix mistake
cbspichler Mar 12, 2026
15ca5b4
replace velocity $xwiki in Javascript
cbspichler Mar 12, 2026
8e52e0e
fix wrong path
cbspichler Mar 12, 2026
01c2b5a
replace velocity code in js files
fpichler Mar 12, 2026
cba9f37
rewrite xwiki-misc.js without using prototype
cbspichler Mar 16, 2026
f766812
fix initialisation of translations and celMeta in xwiki.js
cbspichler Mar 16, 2026
991ce67
remove font Terminal-Dosis and it's use
cbspichler Mar 16, 2026
ab0b7e5
delete imports for deleted files
cbspichler Mar 16, 2026
468005f
remove fullScreenEditing
cbspichler Mar 16, 2026
74efea7
remove imports for deleted files
cbspichler Mar 16, 2026
b1672ec
fix imports for google-fonts
cbspichler Mar 16, 2026
51075a0
remove simpleedittoolbar.vm
cbspichler Mar 16, 2026
8dc1de0
fix access to messages in xwiki.js
cbspichler Mar 16, 2026
12efcd4
fix initializer of xwiki.js
cbspichler Mar 16, 2026
9a84f68
remove all uses of XWiki.widgets.Suggest and delete xxxsuggest.js
cbspichler Mar 16, 2026
bafecfc
remove jumpToPage
cbspichler Mar 16, 2026
db0a9a4
delete mappings for velocity in JS
cbspichler Mar 16, 2026
aa1a06d
delete uses of tags.js, delete tags.css
cbspichler Mar 17, 2026
c8bd13c
Revert "remove font Terminal-Dosis and it's use"
cbspichler Mar 17, 2026
14e83c5
fix paths to Terminal Dosis files
cbspichler Mar 17, 2026
a66375e
correct filepath for font imports
fpichler Mar 17, 2026
6117789
replace skin with file action for resources
fpichler Mar 17, 2026
f49c4b4
correct filepath for Terminal-Dosis font in tabMenu.css
fpichler Mar 17, 2026
5a1c1c6
correct skin-path usages in initCelements.js
fpichler Mar 17, 2026
2ed80aa
syntax and loading order of js
fpichler Mar 18, 2026
64625fa
correct syntax of screenlayout.css
fpichler Mar 18, 2026
a276420
css syntax, delete unused
fpichler Mar 18, 2026
a1f7b1e
js syntax
fpichler Mar 18, 2026
b1d8000
syntax and linebreaks before comment
fpichler Mar 18, 2026
88a12f4
update formatter config
fpichler Mar 20, 2026
7b19b67
format css,js and xml
fpichler Mar 20, 2026
cd4dc44
Merge branch 'dev' into major7-replace-velocity-in-css-js
fpichler Mar 20, 2026
c5b240d
remove intendation
fpichler Mar 20, 2026
56aaf2c
remove intendation
fpichler Mar 20, 2026
b51c0de
format css
fpichler Mar 20, 2026
7e554dd
remove empty lines
fpichler Mar 20, 2026
5e6ed7a
Revert "remove empty lines"
fpichler Mar 20, 2026
7dd9b10
remove empty lines in bootstrap-multiselect.css
fpichler Mar 20, 2026
50f8434
remove empty lines in ImageAndFilePicker.css
fpichler Mar 20, 2026
76a4f25
reset celements2medialib.css to dev
fpichler Mar 20, 2026
779ceee
remove empty lines in celements2.css
fpichler Mar 20, 2026
cc1eb01
remove empty lines in celements2.css
fpichler Mar 20, 2026
68d9cfa
remove empty lines in CelLayout.css
fpichler Mar 20, 2026
a013ac9
remove empty lines in lightbox.css
fpichler Mar 20, 2026
db9393a
remove empty lines in lightbox.css
fpichler Mar 20, 2026
835d3ff
remove empty lines
fpichler Mar 20, 2026
f70dfa9
remove empty lines
fpichler Mar 20, 2026
99eb838
remove empty lines and readd
fpichler Mar 21, 2026
cdccaf7
reset screenlayout.css
fpichler Mar 21, 2026
1f732be
reset wiki.css
fpichler Mar 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions src/main/webapp/WEB-INF/hibernate.cfg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@
<hibernate-configuration>
<session-factory>

<!-- spotless:off -->
<!-- Please refer to the installation guide on
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation for configuring your
database. You'll need to do 2 things:
1) Copy your database driver JAR in WEB-INF/lib or in some shared lib directory
2) Uncomment the properties below for your specific DB (and comment the default
database configuration if it doesn't match your DB)
-->
<!-- spotless:on -->
<!-- Please refer to the installation guide on http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation for configuring
your database. You'll need to do 2 things: 1) Copy your database driver JAR in WEB-INF/lib or in some shared lib directory
2) Uncomment the properties below for your specific DB (and comment the default database configuration if it doesn't match
your DB) -->

<!-- Generic parameters common to all Databases -->

Expand Down
20 changes: 3 additions & 17 deletions src/main/webapp/WEB-INF/struts-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,9 @@

<struts-config>

<!-- spotless:off -->
<!-- ========== Data Source Configuration =============================== -->
<!--
<data-sources>
<data-source
autoCommit="false"
description="Example Data Source Configuration"
driverClass="org.postgresql.Driver"
maxCount="4"
minCount="2"
password="mypassword"
url="jdbc:postgresql://localhost/mydatabase"
user="myusername"
/>
</data-sources>
-->
<!-- spotless:on -->
<!-- ========== Data Source Configuration =============================== -->
<!-- <data-sources> <data-source autoCommit="false" description="Example Data Source Configuration" driverClass="org.postgresql.Driver"
maxCount="4" minCount="2" password="mypassword" url="jdbc:postgresql://localhost/mydatabase" user="myusername" /> </data-sources> -->

<!-- ========== Form Bean Definitions =================================== -->
<form-beans>
Expand Down
33 changes: 11 additions & 22 deletions src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
</filter>

<!-- This filter is an implementation of W3C's CORS (Cross-Origin Resource Sharing) specification, which is a mechanism
that enables cross-origin requests. -->
<!-- TODO [CELDEV-1169] instead use Spring MVC @CrossOrigin when struts is replaced -->
that enables cross-origin requests. TODO [CELDEV-1169] instead use Spring MVC @CrossOrigin when struts is replaced -->
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
Expand Down Expand Up @@ -174,9 +173,9 @@
<servlet>
<servlet-name>redirectHomeServlet</servlet-name>
<servlet-class>com.xpn.xwiki.web.HomePageRedirectServlet</servlet-class>
<!-- Uncomment and edit this if you want to redirect to a different home page, or if you have different mappings. -->
<!-- Note: the URL should not start with /, because it allows the context name to be changed. If it starts with /, then
it should be an absolute URL, including the application context path. -->
<!-- Uncomment and edit this if you want to redirect to a different home page, or if you have different mappings. Note:
the URL should not start with /, because it allows the context name to be changed. If it starts with /, then it should be
an absolute URL, including the application context path. -->
<init-param>
<description>The address to redirect to when the client hits the root of the application.</description>
<param-name>homePage</param-name>
Expand Down Expand Up @@ -230,23 +229,6 @@
<url-pattern>/api/*</url-pattern>
</servlet-mapping>

<!-- We override the mime type definition for javascript, javascript module and css files, as some containers don't provide
it, causing problems for javascript files containg velocity code, like fullscreenEdit.js -->
<mime-mapping>
<extension>js</extension>
<mime-type>text/javascript</mime-type>
</mime-mapping>

<mime-mapping>
<extension>mjs</extension>
<mime-type>text/javascript</mime-type>
</mime-mapping>

<mime-mapping>
<extension>css</extension>
<mime-type>text/css</mime-type>
</mime-mapping>

<!-- In order to properly work, HTML Components MUST have the proper MIME type starting with XP SP2 -->
<mime-mapping>
<extension>htc</extension>
Expand All @@ -258,6 +240,13 @@
<mime-type>image/bmp</mime-type>
</mime-mapping>

<!-- Redirects to the Main.WebHome page if the user calls the root of the webapp, i.e. http://server:port/xwiki/ Note 1:
for this to work fine the redirect file needs to exist in the WAR Note 2: with Servlet 2.4 it's possible to have a Servlet
directly specified in the welcome file list but right now we'd like XWiki to work out of the box with Servlet 2.3 -->
<welcome-file-list>
<welcome-file>redirect</welcome-file>
</welcome-file-list>

<error-page>
<error-code>404</error-code>
<location>/DocumentDoesNotExist</location>
Expand Down
43 changes: 4 additions & 39 deletions src/main/webapp/docs/celements2web/Panels/ClassEditorWelcome.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,44 +104,8 @@
<category>Information</category>
</property>
<property>
<content>#largepanelheader($msg.get("classEditorIntro"))
##$xwiki.jsx.use('Panels.ClassSwitcher')##
&lt;p&gt;$msg.get("xe.panels.classedit.youare") &lt;strong&gt;${doc.fullName}&lt;/strong&gt;. $msg.get("xe.panels.classedit.chooseproperty")&lt;/p&gt;
&lt;div&gt;
&lt;form id="changeclass" method="post" action="$doc.getURL("redirect")"&gt;
&lt;div&gt;
&lt;select id="classname" name="xredirect" size="1"&gt;
&lt;option value="-"&gt;Edit another class&lt;/option&gt;
##
## Existing classes are enumerated, grouped by space name.
## The list is already sorted alphabetically
##
#set($prevSpace = "")
#set($optGroupOpen = false)
#foreach ($classname in $xwiki.classList)
#if($!xwiki.hasAccessLevel("edit", $classname))
#set($classdoc = $xwiki.getDocument($classname))
#if($classdoc.space != $prevSpace)
#if($optGroupOpen)
&lt;/optgroup&gt;
#else
#set($optGroupOpen = true)
#end
&lt;optgroup label="$classdoc.space"&gt;
#set($prevSpace = $classdoc.space)
#end
&lt;option value="$classdoc.getURL("edit", "editor=class")"&gt;$classdoc.name&lt;/option&gt;
#end
#end
#if($optGroupOpen)
&lt;/optgroup&gt;
#end
&lt;/select&gt;
&lt;span class="buttonwrapper"&gt;&lt;input class="button" type="submit" value="$msg.get("changeclass")"/&gt;&lt;/span&gt;&lt;/div&gt;
#warning($msg.get('xe.panels.classedit.unsavedchanges'))
&lt;/form&gt;
&lt;/div&gt;
#panelfooter()</content>
<content>#largepanelheader($msg.get("classEditorIntro")) <p>$msg.get("xe.panels.classedit.youare") <strong>
${doc.fullName}</strong>. $msg.get("xe.panels.classedit.chooseproperty")</p> #panelfooter()</content>
</property>
<property>
<description>Class Editor welcome and brief information message.</description>
Expand All @@ -153,4 +117,5 @@
<type>edit</type>
</property>
</object>
<content>#includeForm("Panels.PanelSheet")</content></xwikidoc>
<content>#includeForm("Panels.PanelSheet")</content>
</xwikidoc>
139 changes: 18 additions & 121 deletions src/main/webapp/docs/celements2web/Panels/ClassSwitcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
</property>
<property>
<content>#largepanelheader('Class Switcher')
##$xwiki.jsx.use('Panels.ClassSwitcher')##
&lt;div&gt;
&lt;form id="changeclass" method="post" action="$doc.getURL("redirect")"&gt;
&lt;div&gt;
Expand All @@ -118,25 +117,26 @@
#set($prevSpace = "")
#set($optGroupOpen = false)
#foreach ($classname in $xwiki.classList)
#if($!xwiki.hasAccessLevel("edit", $classname))
#set($classdoc = $xwiki.getDocument($classname))
#if($classdoc.space != $prevSpace)
#if($optGroupOpen)
&lt;/optgroup&gt;
#else
#set($optGroupOpen = true)
#end
&lt;optgroup label="$classdoc.space"&gt;
#set($prevSpace = $classdoc.space)
#end
&lt;option value="$classdoc.getURL("edit", "editor=class")"&gt;$classdoc.name&lt;/option&gt;
#end
#if($!xwiki.hasAccessLevel("edit", $classname))
#set($classdoc = $xwiki.getDocument($classname))
#if($classdoc.space != $prevSpace)
#if($optGroupOpen)
&lt;/optgroup&gt;
#else
#set($optGroupOpen = true)
#end
&lt;optgroup label="$classdoc.space"&gt;
#set($prevSpace = $classdoc.space)
#end
&lt;option value="$classdoc.getURL("edit", "editor=class")"&gt;$classdoc.name&lt;/option&gt;
#end
#end
#if($optGroupOpen)
&lt;/optgroup&gt;
&lt;/optgroup&gt;
#end
&lt;/select&gt;
&lt;span class="buttonwrapper"&gt;&lt;input class="button" type="submit" value="$msg.get("changeclass")"/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class="buttonwrapper"&gt;&lt;input class="button" type="submit"
value="$msg.get("changeclass")"/&gt;&lt;/span&gt;&lt;/div&gt;
#warning($msg.get('xe.panels.classedit.unsavedchanges'))
&lt;/form&gt;
&lt;/div&gt;
Expand All @@ -152,108 +152,5 @@
<type>edit</type>
</property>
</object>
<object>
<class>
<name>XWiki.JavaScriptExtension</name>
<customClass></customClass>
<customMapping></customMapping>
<defaultViewSheet></defaultViewSheet>
<defaultEditSheet></defaultEditSheet>
<defaultWeb></defaultWeb>
<nameField></nameField>
<validationScript></validationScript>
<cache>
<cache>0</cache>
<disabled>0</disabled>
<displayType>select</displayType>
<multiSelect>0</multiSelect>
<name>cache</name>
<number>5</number>
<prettyName>Caching policy</prettyName>
<relationalStorage>0</relationalStorage>
<separator> </separator>
<separators> ,|</separators>
<size>1</size>
<unmodifiable>0</unmodifiable>
<values>long|short|default|forbid</values>
<classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
</cache>
<code>
<disabled>0</disabled>
<name>code</name>
<number>2</number>
<prettyName>Code</prettyName>
<rows>20</rows>
<size>50</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>
</code>
<name>
<disabled>0</disabled>
<name>name</name>
<number>1</number>
<prettyName>Name</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</name>
<parse>
<disabled>0</disabled>
<displayFormType>select</displayFormType>
<displayType>yesno</displayType>
<name>parse</name>
<number>4</number>
<prettyName>Parse content</prettyName>
<unmodifiable>0</unmodifiable>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</parse>
<use>
<cache>0</cache>
<disabled>0</disabled>
<displayType>select</displayType>
<multiSelect>0</multiSelect>
<name>use</name>
<number>3</number>
<prettyName>Use this extension</prettyName>
<relationalStorage>0</relationalStorage>
<separator> </separator>
<separators> ,|</separators>
<size>1</size>
<unmodifiable>0</unmodifiable>
<values>onDemand=On demand|always=Always</values>
<classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>
</use>
</class>
<name>Panels.ClassSwitcher</name>
<number>0</number>
<className>XWiki.JavaScriptExtension</className>
<guid>951b5864-df3e-46d0-bdbe-bac923e58dc8</guid>
<property>
<cache>long</cache>
</property>
<property>
<code>document.observe('dom:loaded', function() {
var switcher = $('classname');
if(typeof (switcher) != 'undefined') {
switcher.observe('change', function() {
var value = this.options[this.selectedIndex].value;
if (value != '-') {
window.self.location = value;
}
}.bindAsEventListener(switcher));
switcher.up('form').down("input[type='submit']").hide();
}
});
</code>
</property>
<property>
<name>Instant class switcher</name>
</property>
<property>
<parse>0</parse>
</property>
<property>
<use>onDemand</use>
</property>
</object>
<content>#includeForm("Panels.PanelSheet")</content></xwikidoc>
<content>#includeForm("Panels.PanelSheet")</content>
</xwikidoc>
Loading