ep_disable_error_messages 0.0.65 → 0.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ep.json +8 -6
- package/index.js +9 -0
- package/package.json +4 -1
- package/static/js/disable_error_messages.js +0 -12
package/ep.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"disables": [
|
|
3
|
-
|
|
2
|
+
"disables": [
|
|
3
|
+
"@feature:error-gritter"
|
|
4
|
+
],
|
|
5
|
+
"parts": [
|
|
4
6
|
{
|
|
5
7
|
"name": "ep_disable_error_messages",
|
|
6
|
-
"hooks": {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
8
|
+
"hooks": {
|
|
9
|
+
"eejsBlock_styles": "ep_disable_error_messages/index:eejsBlock_styles"
|
|
10
|
+
},
|
|
11
|
+
"client_hooks": {}
|
|
10
12
|
}
|
|
11
13
|
]
|
|
12
14
|
}
|
package/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const {hideCSS} = require('ep_plugin_helpers');
|
|
4
|
+
|
|
5
|
+
// Hide error gritter notifications on the pad page. Previously this
|
|
6
|
+
// injected the CSS client-side from postAceInit; serving it from
|
|
7
|
+
// eejsBlock_styles instead makes it available before the editor
|
|
8
|
+
// initialises, so users never see the error popup flash on load.
|
|
9
|
+
exports.eejsBlock_styles = hideCSS('#gritter-container > .error');
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"deprecated": false,
|
|
10
10
|
"description": "Disable Error messages to clients in Etherpad",
|
|
11
11
|
"name": "ep_disable_error_messages",
|
|
12
|
-
"version": "0.0.
|
|
12
|
+
"version": "0.0.66",
|
|
13
13
|
"funding": {
|
|
14
14
|
"type": "individual",
|
|
15
15
|
"url": "https://etherpad.org/"
|
|
@@ -29,5 +29,8 @@
|
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
31
31
|
"url": "https://github.com/ether/ep_disable_error_messages.git"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"ep_plugin_helpers": "^0.5.0"
|
|
32
35
|
}
|
|
33
36
|
}
|