Ray Bellis
a579dfc285
pluginfw/installer.js: use Promise version of hooks.aCallAll() in install(), uninstall()
...
We cannot use arrow functions in this file, because code in /src/static can end
up being loaded in browsers, and we still support IE11.
2019-01-18 16:10:48 +00:00
muxator
9497ee734f
prepare to async: trivial reformatting
...
This change is only cosmetic. Its aim is do make it easier to understand the
async changes that are going to be merged later on. It was extracted from the
original work from Ray Bellis.
To verify that nothing has changed, you can run the following command on each
file touched by this commit:
npm install uglify-es
diff --unified <(uglify-js --beautify bracketize <BEFORE.js>) <(uglify-js --beautify bracketize <AFTER.js>)
This is a complete script that does the same automatically (works from a
mercurial clone):
```bash
#!/usr/bin/env bash
set -eu
REVISION=<THIS_REVISION>
PARENT_REV=$(hg identify --rev "${REVISION}" --template '{p1rev}')
FILE_LIST=$(hg status --no-status --change ${REVISION})
UGLIFYJS="node_modules/uglify-es/bin/uglifyjs"
for FILE_NAME in ${FILE_LIST[@]}; do
echo "Checking ${FILE_NAME}"
diff --unified \
<("${UGLIFYJS}" --beautify bracketize <(hg cat --rev "${PARENT_REV}" "${FILE_NAME}")) \
<("${UGLIFYJS}" --beautify bracketize <(hg cat --rev "${REVISION}" "${FILE_NAME}"))
done
```
2019-02-08 23:20:57 +01:00
Stefan
da86110f58
Use https to download plugins.json
2015-01-24 12:55:17 +01:00
Stefan
3c6db077ed
Change domain for plugins.json request
2015-01-18 14:22:27 +01:00
Beau Gunderson
645ec830b0
Don't crash on bad plugins.json; fixes #2323
2014-11-18 13:59:36 -08:00
John McLear
e5d77c3763
indentation
2014-11-12 21:39:03 +00:00
John McLear
fc5152c2f3
remove logging
2014-11-06 17:38:38 +00:00
John McLear
c7061e47db
use request and a remote ep plugin only endpoint
2014-11-04 17:06:47 +00:00
kpn3m000
da0fe98edc
Fixes search on plugins without Description
...
example "tables_ssl"
2014-07-03 14:24:41 +02:00
Marcel Klehr
6a02302fc9
/admin/plugins: Fix search algorithm (use string match in lower case)
...
fix #1903
2013-09-23 19:55:35 +02:00
Florent Viard
6f478c4de1
Fix to check if searchTerm is not "undefined" before trying to use it to filter search results.
...
Signed-off-by: Florent Viard <fviard@lacie.com>
2013-09-11 11:36:09 +02:00
Marcel Klehr
324b9b1f5f
pluginfw/installer: Only restart the server when all tasks have finished
...
fixes #1685
2013-04-08 16:14:03 +02:00
Marcel Klehr
981a33f01e
pluginfw/installer.js fire callbacks only once
2013-03-26 14:40:19 +01:00
Marcel Klehr
5d7a8adcb7
Silence npm when using npm.commands.search
2013-03-26 11:33:04 +01:00
Marcel Klehr
9109bd206e
Catch all errors in pluginfw/installer.js
2013-03-26 11:20:12 +01:00
Marcel Klehr
1ebbcd2f30
Don't leak event listeners in pluginfw/installer.js
...
fixes #921
2013-03-25 17:22:51 +01:00
Marcel Klehr
b297784288
Make npm registry access code more sane
2013-03-25 16:51:12 +01:00
Marcel Klehr
0070eab416
Fix caching of npm search results and only make one registry request on /admin/plugins
...
fixes #1488
2013-03-25 12:45:23 +01:00
mluto
037478cbcd
Made plugin search not casesensitive
2013-01-31 19:05:23 +01:00
Marcel Klehr
23dd4c73e2
pluginfw/installer.js: Don't freak out users with cryptic errors, just use the error message
2013-01-24 22:40:31 +01:00
John McLear
b5c263dd37
improve search to use description too, bit more cpu heavy for thats okay
2012-12-03 01:41:01 +00:00
Marcel Klehr
78e64ffea8
Mimic, replace or work around removed npm utils.
2012-10-28 18:34:20 +01:00
Egil Moeller
b438a278a1
Make the server restart on plugin install
2012-07-03 23:31:44 +02:00
Egil Moeller
4c1d94343f
Better plugin admin interface
2012-04-18 13:43:34 +02:00
Egil Moeller
7ab7ee9f5e
Plugin admin fixes
2012-04-17 22:40:53 +02:00
Egil Moeller
1ca12b24e6
Bugfixes for plugin installer
2012-03-21 19:28:39 +01:00
Egil Moeller
c591efb352
Plugin list can now be reloaded 'live'
2012-03-19 17:16:49 +01:00
Egil Moeller
51cae02e9d
Show installed plugins and search new ones
2012-03-15 18:25:06 +01:00