| #
bb8ef867 |
| 20-Mar-2018 |
Michael Große <grosse@cosmocode.de> |
feat(search): add search assistance for simple queries
This add some search assistance to simple, single-word search queries which may be restricted to a single namespace.
Further improvements: * b
feat(search): add search assistance for simple queries
This add some search assistance to simple, single-word search queries which may be restricted to a single namespace.
Further improvements: * better styling * trigger events for other plugins * set namespaces directly from fulltext search results * some more config options
show more ...
|
| #
034db885 |
| 11-Dec-2017 |
Michael Große <grosse@cosmocode.de> |
feat: DOKU_UH[N|C] to jsinfo and add deprecation message
I'm not sure that setting the constants in template.php is the best place. However if we set them in doku.php, we have to duplicate it in lib
feat: DOKU_UH[N|C] to jsinfo and add deprecation message
I'm not sure that setting the constants in template.php is the best place. However if we set them in doku.php, we have to duplicate it in lib/exe/mediamanager.php and lib/exe/detail.php, which is not ideal as well.
show more ...
|
| #
6ff51f7d |
| 08-Feb-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Spaces, not tabs.
|
| #
6d3bebff |
| 08-Feb-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Add Event to modify the list of javascript files before they are processed. This allows plugins to not have their - or other plugins - script delivered to the client. Creating the list of files upfro
Add Event to modify the list of javascript files before they are processed. This allows plugins to not have their - or other plugins - script delivered to the client. Creating the list of files upfront might add a little overhead which I think is OK when you can be certain that only JavaScript that really is needed will be delivered to the client.
Multiple Javascript requests, e.g. to only send the jQuery part or just editor/administrator scripts, could be implemented with this modification (I know, jQuery has already been split).
show more ...
|
| #
56bf57c6 |
| 03-Feb-2017 |
Andreas Gohr <andi@splitbrain.org> |
remove unused code
|
| #
61537d47 |
| 26-Nov-2016 |
Andreas Gohr <andi@splitbrain.org> |
split off jquery from other JS and add CDN option #1766
jQuery (and UI and Migrate) are now loaded separately from the rest of the JavaScript. This adds at least one HTTP request more but has some a
split off jquery from other JS and add CDN option #1766
jQuery (and UI and Migrate) are now loaded separately from the rest of the JavaScript. This adds at least one HTTP request more but has some advantages:
* browsers can cache it independently * the cache is only invalidated when versions update * we do not apply any transformations (replacements, minimizing, etc) on this code anymore which makes our dispatcher faster for the other JS * browsers seem to load (not execut) both (jquery and other) parallel, which might increase download speed a bit
This split allowed for the introduction of a new config: jquerycdn. When enabled the 3 jquery files are loaded from jQueries CDN. This adds another two HTTP requests but:
* since it's another host those files do not apply to the 4 request per host limit and can be loaded (not executed) in paralell which might increase download speeds a bit * the CDN is distributed worldwide which means files are requested from the closest location, increasing the download speeds * since these files/CDN are very popular, chances are high that people already have them cached in their browsers, reducing the download time to 0 and effectiely halving the javascript needed to download
The option currently defaults to 'off', but I would argue 'on' would be the better default.
show more ...
|
| #
19e06537 |
| 29-Apr-2016 |
Gerrit Uitslag <klapinklapin@gmail.com> |
let js.php also use the configcascade for localized translation
|
| #
a8cf30ef |
| 08-Sep-2015 |
Marius van Witzenburg <info@mariusvw.com> |
Prevent undefined error by checking on slen
|
| #
5c97ad3a |
| 08-Sep-2015 |
Marius van Witzenburg <info@mariusvw.com> |
Fixed undefined errors
|
| #
767d1669 |
| 31-Jul-2015 |
Andreas Gohr <andi@splitbrain.org> |
removed deprecated JavaScript
|
| #
5fc6f52e |
| 04-May-2015 |
Anika Henke <anika@selfthinker.org> |
cache JavaScript per template
|
| #
138a9500 |
| 03-Mar-2015 |
Andreas Gohr <gohr@cosmocode.de> |
send JavaScript with correct mimetype
While Browsers (IE of course) still fail to accept the correct application/javascript mimetype in the type attribute of the script element, we should serve the
send JavaScript with correct mimetype
While Browsers (IE of course) still fail to accept the correct application/javascript mimetype in the type attribute of the script element, we should serve the scripts with the correct Content-Type header at least. This is especially important as the default configuration of mod_deflate expects application/javascript and will not compress text/javascript.
show more ...
|
| #
79e79377 |
| 07-Jan-2015 |
Andreas Gohr <gohr@cosmocode.de> |
Remove error supression for file_exists()
In an older version of PHP a file_exists() call would issue a warning when the file did not exist. This was fixed in later PHP releases. Since we require PH
Remove error supression for file_exists()
In an older version of PHP a file_exists() call would issue a warning when the file did not exist. This was fixed in later PHP releases. Since we require PHP 5.3 now, there's no need to supress any error here anymore. This might even give a minor performance boost.
show more ...
|
| #
7b909d5e |
| 10-Dec-2014 |
Gerrit Uitslag <klapinklapin@gmail.com> |
Extendable config cascade for userstyles and userscript
Added user*.less files to config
|
| #
8702de7f |
| 09-Dec-2014 |
Gerrit Uitslag <klapinklapin@gmail.com> |
Merge remote-tracking branch 'origin/master' into scrutinizerissues
Conflicts: inc/media.php inc/plugin.php inc/template.php lib/plugins/authplain/_test/escaping.test.php lib/plugins/syntax.php
|
| #
5c5b52fd |
| 15-Oct-2014 |
LarsDW223 <lars_paulsen@web.de> |
Fixed JavaScript compression. The compressor did not recognize a regular expression after a '&&' ot '||' operator. So it could happen that code had been cut off if the regular expression included '\/
Fixed JavaScript compression. The compressor did not recognize a regular expression after a '&&' ot '||' operator. So it could happen that code had been cut off if the regular expression included '\//' (which was treated as a single line comment because of the regular expression not being recognized). Finally fixes #897.
show more ...
|
| #
70daee86 |
| 14-Oct-2014 |
LarsDW223 <lars_paulsen@web.de> |
Corrected compression for ++ and -- operator. Partially fixes #897.
|
| #
253d4b48 |
| 01-Oct-2014 |
Gerrit Uitslag <klapinklapin@gmail.com> |
more PHPDocs, unused var, small bit code reformatting
|
| #
969df2f1 |
| 09-Apr-2014 |
Andreas Gohr <gohr@cosmocode.de> |
fix include_once for JavaScript
the second include was never removed, causing an endless loop.
|
| #
f8fb2d18 |
| 15-Mar-2014 |
Andreas Gohr <andi@splitbrain.org> |
strip sourcemaps in CSS and JS #601
source maps are invalid for our dispatched sources and may even cause problems. this makes sure any sourcemap declarations are stripped from the output
|
| #
56b0b744 |
| 18-Feb-2014 |
Gerrit Uitslag <klapinklapin@gmail.com> |
PHPDocs js.php
|
| #
138bfd16 |
| 17-Jan-2014 |
Andreas Gohr <andi@splitbrain.org> |
localize jQuery UI date picker FS#2912
|
| #
df5d307e |
| 10-Oct-2013 |
Gerrit Uitslag <klapinklapin@gmail.com> |
add cookie secure parameter to cookies set by javascript
|
| #
75e4dd8a |
| 07-Oct-2013 |
Gerrit Uitslag <klapinklapin@gmail.com> |
Use in cookie a correct path, added DOKU_COOKIEPATH to js constants Fixes FS#2837
|
| #
d91ab76f |
| 27-Aug-2013 |
Matt Perry <matt@mattperry.com> |
Fix CodeSniffer violations
Fix violations for the following sniff DokuWiki.Functions.OpeningFunctionBrace
Also removed an extraneous semicolon.
|