spcsser / ep_adminpads Goto Github PK
View Code? Open in Web Editor NEW[UNMAINTAINED] Plugin for etherpad lite to list pads on index
License: MIT License
[UNMAINTAINED] Plugin for etherpad lite to list pads on index
License: MIT License
Current behaviour is when deleting pads that the results show the first page again instead of the current selected. Adapt to stay on same page.
First of all, thanks for your plugin! I like it! However, I found an issue: when option editOnly
is set to true
, the plugin doesn't show pads. Is this by design?
https://www.npmjs.org/doc/json.html
"repository" :
{ "type" : "git"
, "url" : "http://github.com/npm/npm.git"
}
Pad manager plugin => date not updating..
btw, I'll be greatful if u could add a new button for editing the links..
thanks :P
hmm, I think it'll be better if u could add a new button for editing the links..
ex (0):
when u click the button, a new form opens and there is a textbox with the save button.
ex (1):
when u click the edit button, the link will be 'changed' to a textbox and u could actually write it and press the update button..
it's pretty much explains everything so..
thanks :P
I'm trying to install this via sudo npm install ep_adminpads
and I'm getting the below message and the plugin isn't being installed (according to the UI).
npm WARN enoent ENOENT: no such file or directory, open '/opt/etherpad/package.json'
Using the UI for Etherpad, I can install the plugin, but I wanted to automate this process.
Exact command
sudo npm install ep_adminpads
/opt/etherpad
└─┬ [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
npm WARN enoent ENOENT: no such file or directory, open '/opt/etherpad/package.json'
I also tried sudo npm install -g --save ep_adminpads
, which didn't give me the error, but Etherpad won't start after that...so I'm assuming that's not the fix.
This is on CentOS 7.3
with npm version 3.10.10
.
When select "Automatic updates" for result list, the automatic updates do not work.
The search results should be auto-updated after typing.
Windows Server 2012 R2
Node.js 10.16
Etherpad-Lite version 1.7.5
The "adminpads" is empty.
If I reinstall an old version of Etherpad-Lite (like 1.6.6), it works.
Last modified entry is missing, add async handling to allow to wait for all entries.
I use MySQL as backend. Listing pads via API is working.
No link is shown on admin page. admin/pads is accessible and the following appears in logfile:
[2013-02-09 03:05:04.042] [DEBUG] socket.io - clearing poll timeout
[2013-02-09 03:05:04.043] [DEBUG] socket.io - xhr-polling writing '8::'
[2013-02-09 03:05:04.043] [DEBUG] socket.io - set close timeout for client 'jgWJmDT3mmVoEDHjsfp9'
[2013-02-09 03:05:04.044] [DEBUG] socket.io - xhr-polling closed due to exceeded duration
[2013-02-09 03:05:04.074] [DEBUG] socket.io - setting request 'GET' '/socket.io/1/xhr-polling/jgWJmDT3mmVoEDHjsfp9?t=1360375616849'
[2013-02-09 03:05:04.074] [DEBUG] socket.io - setting poll timeout
[2013-02-09 03:05:04.075] [DEBUG] socket.io - discarding transport
[2013-02-09 03:05:04.075] [DEBUG] socket.io - cleared close timeout for client 'jgWJmDT3mmVoEDHjsfp9'
The "Pad administration" list sometimes only shows pads that were accessed since etherpad was restarted.
I can reproduce the issue as follows:
Sometimes, when I reload the page, more (all?) pads show up. However, it also happened that etherpad (or this plugin) seemingly got totally confused, and the list would not load at all anymore (just continue to show that "loading" animation below the list).
It seems as if the site would want me to give it some time after loading it for the first time - and if I don't wait long enough, it will act up.
Actual:
If no pads are in the database the list is empty and no count is shown.
Expected:
Zero results and a message that shows "no pads found"
Also requiring ueberDB is pointless as it's already available with Etherpad :)
It would be really cool if the plugin would offer the date of last change on list.
We want to create a process which manually deletes unused pads after e.g. 6 month and would be really great if plugin is supporting here.
Can you please add a license eg. MIT license?
Hi all,
I installed ep_adminpads (v0.0.12) with
npm install spcsser/ep_adminpads
but when I navigate to /admin/pads it will show any pads
note 1: Im using PostgreSQL as database.
note 2: other plugins such "ep_search" or "ep_small_list" works correctly.
note 3: I tried other installations of adminpads and still not working.
note 4: Im running EP in v1.8.3
With latest EP releases, should follow the model of ether/etherpad-lite#2748
Investigate if there's a chance that trying to get the last edit timestamp leads to returning no results.
I'm using the latest 0.0.11 version of the plugin and with the latest version of etherpad-lite master's branch, there are some errors on loading and the plugin doesn't list the pads in the admin menu. In the logs I have:
[2017-08-17 11:05:02.971] [ERROR] console - Failed to load '/local/test/node_modules/ep_adminpads/index:register
Route' for 'ep_adminpads/ep_adminpads/hooks/expressCreateServer': SyntaxError: Use of const in strict mode.
[2017-08-17 11:05:02.973] [ERROR] console - Failed to load '/local/test/node_modules/ep_adminpads/index:socketio
' for 'ep_adminpads/ep_adminpads/hooks/socketio': SyntaxError: Use of const in strict mode.
[2017-08-17 11:05:02.974] [ERROR] console - Failed to load '/local/test/node_modules/ep_adminpads/index:updatePads' for 'ep_adminpads/ep_adminpads/hooks/padRemove': SyntaxError: Use of const in strict mode.
[2017-08-17 11:05:02.975] [ERROR] console - Failed to load '/local/test/node_modules/ep_adminpads/index:updatePads' for 'ep_adminpads/ep_adminpads/hooks/padCreate': SyntaxError: Use of const in strict mode.
[2017-08-17 11:05:02.975] [ERROR] console - Failed to load '/local/test/node_modules/ep_adminpads/index:eejsBloc
k_adminMenu' for 'ep_adminpads/ep_adminpads/hooks/eejsBlock_adminMenu': SyntaxError: Use of const in strict mode
.
[2017-08-17 11:05:04.480] [INFO] console - Installed plugins: [email protected], [email protected], [email protected], [email protected]
[2017-08-17 11:05:04.505] [ERROR] console - Failed to load 'ep_adminpads/index:registerRoute' for 'ep_adminpads/
ep_adminpads/hooks/expressCreateServer': SyntaxError: Use of const in strict mode.
[2017-08-17 11:05:04.506] [ERROR] console - Failed to load 'ep_adminpads/index:socketio' for 'ep_adminpads/ep_adminpads/hooks/socketio': SyntaxError: Use of const in strict mode.
[2017-08-17 11:05:04.508] [ERROR] console - Failed to load 'ep_adminpads/index:updatePads' for 'ep_adminpads/ep_
adminpads/hooks/padRemove': SyntaxError: Use of const in strict mode.
[2017-08-17 11:05:04.509] [ERROR] console - Failed to load 'ep_adminpads/index:updatePads' for 'ep_adminpads/ep_
adminpads/hooks/padCreate': SyntaxError: Use of const in strict mode.
[2017-08-17 11:05:04.511] [ERROR] console - Failed to load 'ep_adminpads/index:eejsBlock_adminMenu' for 'ep_adminpads/ep_adminpads/hooks/eejsBlock_adminMenu': SyntaxError: Use of const in strict mode.
This is with:
Your Etherpad version is 1.6.1 (9f51432)
Hi, I just installed Etherpad on a webserver; it workes fine (actual github version).
I also installed the ep_adminpads via the admin/plugin manager.
However, I cannot see any Pads.
Could you please help me to fix this issue?
Best, Robert
Everything's working good except that it doesn't list the pads.
I can see the number of existing pads:
0..12 of 25
To fix that, I changed in static/js/admin/pad.js (line 143):
data.args.results.forEach(function(resultset) {
I added the ".args" part as the data object that comes back from the server has the result data inside the args subelement.
Now, everything's perfect.
Hi,
Go the following error:
npm WARN engine [email protected]: wanted: {"node":">=0.6.0 <0.9.0"} (current: {"node":"v0.10.10","npm":"1.2.28"})
npm http 304 https://registry.npmjs.org/dequeue/1.0.3
npm http GET https://registry.npmjs.org/hashish/0.0.4
npm http GET https://registry.npmjs.org/generic-pool
npm http GET https://registry.npmjs.org/deprecate
npm http GET https://registry.npmjs.org/helenus-thrift/0.7.3
npm http GET https://registry.npmjs.org/node-uuid/1.3.3
npm http 304 https://registry.npmjs.org/hashish/0.0.4
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/generic-pool
npm http 304 https://registry.npmjs.org/deprecate
npm http 304 https://registry.npmjs.org/helenus-thrift/0.7.3
npm http 304 https://registry.npmjs.org/node-uuid/1.3.3
[2013-06-09 20:53:09.411] [INFO] console -
[email protected] install /opt/etherpad-lite/node_modules/ep_adminpads/node_modules/ueberDB/node_modules/pg
node-gyp rebuild || (exit 0)
/bin/sh: pg_config: command not found
gyp: Call to 'pg_config --libdir' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/opt/etherpad-lite/src/node_modules/npm/node_modules/node-gyp/lib/configure.js:415:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.8.3-hardened
gyp ERR! command "node" "/opt/etherpad-lite/src/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/etherpad-lite/node_modules/ep_adminpads/node_modules/ueberDB/node_modules/pg
gyp ERR! node -v v0.10.10
gyp ERR! node-gyp -v v0.10.0
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/traverse
When trying to open websites/admin/pads and searching for a pad, the etherpad-lite crash.
Add a checkbox to the frontend to allow users to enable or disable regex searching.
I just installed this on a etherpad-lite from the develop branch.
Altough the MySQL DB and the API show the pads correct, the adminpads list is completly empty. Nothing shows up in the logs.
Hey,
I'm afraid we broke your plugin in the latest release. We had to remove blocking access to the listAllPads endpoint because it's impractical on large instances.
However you can still use it by providing a callback (which is fully backwards-compatible!).
cheers
Hello there,
I'm not sure why but the codepad plugin breaks adminpads. Don't know if this is an issue to post here, or in codepad.
Thanks :)
I have a pad with "
in it's name. But when I list all pads with this addon the pad name is truncated at the position of this special character.
So e.g. the pad name is thisisa"pad
. When showing it in the "manage pads" part of the admin interface it only shows thisisa
.
Hi there!!
Good plugin! It would be still better if one could reorder pads using the clicked column, ASC or DESC.
Thanks for the plugin!
Thanks :)
People having problems with your plugin will want to file a bug report
I have a problem when I click on "Manage pads" (in admin menu) ; I fall in a blank page, with write "Cannot GET /admin/pads ".
Code source on the page (if I can help...) :
`<style type="text/css">
:root .container > .infoBoxList > .shareInfoBox
{ display: none !important; }</style>Cannot GET /admin/pads
I use a proxy to access at my etherpad ; can it be cause problem ? I try to uninstall all my other plugins ; if adminpads is the only plugin, it's the same.
Tried it across two different etherpad-lite installs and a couple of different node.js versions but thus far no dice.
Unfortunately I have no diagnostics to offer because I don't see any errors in the log.
Etherpad version
Version number: 1.5.6
Git sha: 5c531ee
Installed plugins
ep_adminpads
ep_codepad, ep_etherpad-lite
Installed parts
ep_etherpad-lite/swagger
ep_etherpad-lite/adminsettings
ep_etherpad-lite/adminplugins
ep_etherpad-lite/admin
ep_etherpad-lite/tests
ep_etherpad-lite/socketio
ep_etherpad-lite/errorhandling
ep_etherpad-lite/importexport
ep_etherpad-lite/apicalls
ep_etherpad-lite/webaccess
ep_etherpad-lite/padreadonly
ep_etherpad-lite/padurlsanitize
ep_etherpad-lite/specialpages
ep_etherpad-lite/i18n
ep_etherpad-lite/static
ep_etherpad-lite/express
ep_codepad/ep_codepad_cursortrace
ep_codepad/ep_codepad_themes
ep_codepad/ep_codepad_keypress_handler
ep_codepad/ep_codepad_trace_braces
ep_codepad/ep_codepad_themed_syntaxhighlighting
ep_codepad/ep_codepad_buttons_feedback
ep_codepad/ep_padsearch
ep_codepad/ep_codepad_defaults
ep_codepad/ep_codepad_fileload
ep_codepad/ep_codepad_search
ep_codepad/ep_codepad_logview
ep_codepad/ep_codepad_fileview
ep_codepad/ep_codepad_filerunner
ep_codepad/ep_codepad_filestaticview
ep_codepad/ep_codepad_filetree
ep_codepad/ep_codepad_play
ep_codepad/ep_codepad_foldersupport
ep_codepad/ep_codepad_auth
ep_codepad/ep_codepad_index_page
ep_adminpads/ep_adminpads
Installed hooks
Server side hooks
expressCreateServer
ep_etherpad-lite/node/hooks/express/swagger:expressCreateServer from ep_etherpad-lite/swagger
expressCreateServer
ep_etherpad-lite/node/hooks/express/adminsettings:expressCreateServer from ep_etherpad-lite/adminsettings
expressCreateServer
ep_etherpad-lite/node/hooks/express/adminplugins:expressCreateServer from ep_etherpad-lite/adminplugins
expressCreateServer
ep_etherpad-lite/node/hooks/express/admin:expressCreateServer from ep_etherpad-lite/admin
expressCreateServer
ep_etherpad-lite/node/hooks/express/tests:expressCreateServer from ep_etherpad-lite/tests
expressCreateServer
ep_etherpad-lite/node/hooks/express/socketio:expressCreateServer from ep_etherpad-lite/socketio
expressCreateServer
ep_etherpad-lite/node/hooks/express/errorhandling:expressCreateServer from ep_etherpad-lite/errorhandling
expressCreateServer
ep_etherpad-lite/node/hooks/express/importexport:expressCreateServer from ep_etherpad-lite/importexport
expressCreateServer
ep_etherpad-lite/node/hooks/express/apicalls:expressCreateServer from ep_etherpad-lite/apicalls
expressCreateServer
ep_etherpad-lite/node/hooks/express/padreadonly:expressCreateServer from ep_etherpad-lite/padreadonly
expressCreateServer
ep_etherpad-lite/node/hooks/express/padurlsanitize:expressCreateServer from ep_etherpad-lite/padurlsanitize
expressCreateServer
ep_etherpad-lite/node/hooks/express/specialpages:expressCreateServer from ep_etherpad-lite/specialpages
expressCreateServer
ep_etherpad-lite/node/hooks/i18n:expressCreateServer from ep_etherpad-lite/i18n
expressCreateServer
ep_etherpad-lite/node/hooks/express/static:expressCreateServer from ep_etherpad-lite/static
expressCreateServer
ep_codepad/search:expressCreateSearchServer from ep_codepad/ep_codepad_search
expressCreateServer
ep_codepad/logview:expressCreateLogViewServer from ep_codepad/ep_codepad_logview
expressCreateServer
ep_codepad/fileview:expressCreateFileViewServer from ep_codepad/ep_codepad_fileview
expressCreateServer
ep_codepad/filerunner:expressCreateFileRunServer from ep_codepad/ep_codepad_filerunner
expressCreateServer
ep_codepad/filestatic:expressCreateFileStaticViewServer from ep_codepad/ep_codepad_filestaticview
expressCreateServer
ep_codepad/filetree:expressCreateFileTreeServer from ep_codepad/ep_codepad_filetree
expressCreateServer
ep_codepad/playserver:expressCreatePlayServer from ep_codepad/ep_codepad_play
expressCreateServer
ep_codepad/foldersupport:expressCreateFolderServer from ep_codepad/ep_codepad_foldersupport
expressCreateServer
ep_adminpads/index:registerRoute from ep_adminpads/ep_adminpads
socketio
ep_etherpad-lite/node/hooks/express/adminsettings:socketio from ep_etherpad-lite/adminsettings
socketio
ep_etherpad-lite/node/hooks/express/adminplugins:socketio from ep_etherpad-lite/adminplugins
socketio
ep_adminpads/index:socketio from ep_adminpads/ep_adminpads
expressConfigure
ep_etherpad-lite/node/hooks/express/webaccess:expressConfigure from ep_etherpad-lite/webaccess
createServer
ep_etherpad-lite/node/hooks/express:createServer from ep_etherpad-lite/express
restartServer
ep_etherpad-lite/node/hooks/express:restartServer from ep_etherpad-lite/express
eejsBlock_scripts
ep_codepad/themes_index:eejsBlock_scripts from ep_codepad/ep_codepad_themed_syntaxhighlighting
eejsBlock_scripts
ep_codepad/buttons from ep_codepad/ep_codepad_buttons_feedback
eejsBlock_styles
ep_codepad/themes_index:eejsBlock_styles from ep_codepad/ep_codepad_themed_syntaxhighlighting
eejsBlock_styles
ep_codepad/buttons from ep_codepad/ep_codepad_buttons_feedback
eejsBlock_timesliderStyles
ep_codepad/themes_index:eejsBlock_timesliderStyles from ep_codepad/ep_codepad_themed_syntaxhighlighting
eejsBlock_editbarMenuRight
ep_codepad/themes_index:eejsBlock_editbarMenuRight from ep_codepad/ep_codepad_themed_syntaxhighlighting
eejsBlock_editbarMenuLeft
ep_codepad/themes_index:eejsBlock_editbarMenuLeft from ep_codepad/ep_codepad_themed_syntaxhighlighting
eejsBlock_mySettings.dropdowns
ep_codepad/themes_index:eejsBlock_mySettings_dropdowns from ep_codepad/ep_codepad_themed_syntaxhighlighting
clientVars
ep_codepad/themes_index:clientVars from ep_codepad/ep_codepad_themed_syntaxhighlighting
handleMessage
ep_codepad/handleButtonMessage from ep_codepad/ep_codepad_buttons_feedback
handleMessage
ep_codepad/auth:handleMessage from ep_codepad/ep_codepad_auth
padCreate
ep_codepad:padCreate from ep_codepad/ep_codepad_fileload
padCreate
ep_adminpads/index:updatePads from ep_adminpads/ep_adminpads
authenticate
ep_codepad/auth from ep_codepad/ep_codepad_auth
eejsBlock_indexWrapper
ep_codepad/index_page from ep_codepad/ep_codepad_index_page
padRemove
ep_adminpads/index:updatePads from ep_adminpads/ep_adminpads
eejsBlock_adminMenu
ep_adminpads/index:eejsBlock_adminMenu from ep_adminpads/ep_adminpads
Client side hooks
handleClientMessage_CUSTOM
ep_codepad/static/js/cursortrace:handleClientMessage_CUSTOM from ep_codepad/ep_codepad_cursortrace
handleClientMessage_CUSTOM
ep_codepad/static/js/message:handleClientMessage_CUSTOM from ep_codepad/ep_codepad_buttons_feedback
aceKeyEvent
ep_codepad/static/js/cursortrace:aceKeyEvent from ep_codepad/ep_codepad_cursortrace
aceKeyEvent
ep_codepad/static/js/keypress:aceKeyEvent from ep_codepad/ep_codepad_keypress_handler
aceKeyEvent
ep_codepad/static/js/syntax:aceKeyEvent from ep_codepad/ep_codepad_themed_syntaxhighlighting
aceEditorCSS
ep_codepad/static/js/themes:aceEditorCSS from ep_codepad/ep_codepad_themes
aceInitInnerdocbodyHead
ep_codepad/static/js/themes:aceInitInnerdocbodyHead from ep_codepad/ep_codepad_themes
aceInitInnerdocbodyHead
ep_codepad/static/js/syntax:aceInitInnerdocbodyHead from ep_codepad/ep_codepad_themed_syntaxhighlighting
aceEditEvent
ep_codepad/static/js/tracebraces:aceEditEvent from ep_codepad/ep_codepad_trace_braces
acePostWriteDomLineHTML
ep_codepad/static/js/syntax:acePostWriteDomLineHTML from ep_codepad/ep_codepad_themed_syntaxhighlighting
disableAuthorColorsForThisLine
ep_codepad/static/js/syntax:disableAuthorColorsForThisLine from ep_codepad/ep_codepad_themed_syntaxhighlighting
postAceInit
ep_codepad/static/js/codepad_defaults:postAceInit from ep_codepad/ep_codepad_defaults
documentReady
ep_adminpads/static/js/admin/pads:documentReady from ep_adminpads/ep_adminpads
Just a reminder that this plugin cease to work as of etherpad 1.8.8, Node v14.15.5. The relevant error logs:
[2021-02-15 18:21:35.102] [INFO] console - Your Etherpad version is 1.8.8 ()
[2021-02-15 18:21:35.199] [ERROR] console - UNSETTLED FUNCTION BUG IN HOOK FUNCTION (plugin: ep_adminpads, function name: /opt/etherpad-lite/node_modules/ep_adminpads/index:socketio, hook: socketio): The hook function neither called the callback nor returned a non-undefined value. This is prohibited because it will result in freezes when a future version of Etherpad updates the hook to support asynchronous behavior.
ep_adminpads2
supports 1.8.8 in my environment.
Show the count of connected users per pad - can be relevant for deleting pads. (if there are users on the pad the pad is usually recreated)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.