This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:redhog/pad
- Loading branch information
Showing
130 changed files
with
8,982 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Extensions | ||
----------- | ||
Use Etherpad to write and collaborate on HTML, CSS, and JavaScript | ||
https://github.com/toolness/htmlpad | ||
|
||
A script (ideal for cron job'n) to login to your Etherpad account, download all pads, archive them and save locally or push to S3 | ||
https://github.com/jrk/EtherPad-Backup | ||
|
||
Integrations | ||
------------- | ||
Use Etherpad as editor in the Drupal CMS | ||
http://drupal.org/project/etherpad | ||
|
||
Use Etherpad as editor in the Wordpress blog engine/CMS | ||
https://github.com/bsoule/expost | ||
|
||
Chrome App for managing your etherpads | ||
https://github.com/boazsender/etherpads | ||
|
||
shinx + s6 + etherpad + keynote-like thema | ||
https://github.com/nati/sphinx-s6-misc | ||
|
||
Software using Etherpad | ||
------------------------ | ||
A tool designed to help organise the rapid development of apps | ||
https://github.com/JordanHatch/RapidHackr | ||
|
||
A content management system using etherpad as a backend | ||
https://github.com/themasch/PadCMS | ||
|
||
APIs | ||
----- | ||
Ruby Etherpad API | ||
https://github.com/adammck/reefer | ||
|
||
Create a new etherpad page and upload a file from the command line | ||
https://github.com/tomjnixon/etherpad_upload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/** | ||
* Copyright 2009 RedHog, Egil Möller <egil.moller@piratpartiet.se> | ||
* Copyright 2010 Pita, Peter Martischka <petermartischka@googlemail.com> | ||
* | ||
* Some code from http://groups.google.com/group/etherpad-open-source-discuss/msg/5001fe0ef2fac58a | ||
* Copyright by dannydulai@gmail.com | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS-IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import("faststatic"); | ||
import("dispatch.{Dispatcher,PrefixMatcher,forward}"); | ||
|
||
import("etherpad.utils.*"); | ||
import("etherpad.collab.server_utils"); | ||
import("etherpad.globals.*"); | ||
import("etherpad.log"); | ||
import("etherpad.pad.padusers"); | ||
import("etherpad.pro.pro_utils"); | ||
import("etherpad.pro.domains"); | ||
import("etherpad.helpers"); | ||
import("etherpad.pro.pro_accounts.getSessionProAccount"); | ||
import("sqlbase.sqlbase"); | ||
import("sqlbase.sqlcommon"); | ||
import("sqlbase.sqlobj"); | ||
import("etherpad.pad.padutils"); | ||
import("etherpad.admin.plugins"); | ||
import("fastJSON"); | ||
import("etherpad.pad.model"); | ||
import("etherpad.pad.dbwriter"); | ||
import("etherpad.collab.collab_server"); | ||
import("etherpad.sessions.getSession"); | ||
|
||
function _isAuthorizedAdmin() { | ||
if (!isProduction()) { | ||
return true; | ||
} | ||
return (getSession().adminAuth === true); | ||
} | ||
|
||
function onRequest() { | ||
if (!_isAuthorizedAdmin()) { | ||
getSession().cont = request.path; | ||
response.redirect('/ep/admin/auth'); | ||
} | ||
|
||
var isPro = pro_utils.isProDomainRequest(); | ||
var userId = padusers.getUserId(); | ||
|
||
helpers.addClientVars({ | ||
userAgent: request.headers["User-Agent"], | ||
debugEnabled: request.params.djs, | ||
clientIp: request.clientAddr, | ||
colorPalette: COLOR_PALETTE, | ||
serverTimestamp: +(new Date), | ||
isProPad: isPro, | ||
userIsGuest: padusers.isGuest(userId), | ||
userId: userId | ||
}); | ||
|
||
var isProUser = (isPro && ! padusers.isGuest(userId)); | ||
|
||
if (request.isPost) { | ||
log.info({'PAD': request.params.pad_id}); | ||
|
||
model.accessPadGlobal(request.params.pad_id, function(pad) { | ||
collab_server.bootUsersFromPad(pad, "deleted"); | ||
pad.destroy(); | ||
}); | ||
dbwriter.taskFlushPad(request.params.pad_id, "delete"); | ||
} | ||
|
||
renderHtml( | ||
"ui.ejs", | ||
{ | ||
bodyClass: 'delete-pad', | ||
isPro: isPro, | ||
isProAccountHolder: isProUser, | ||
account: getSessionProAccount() // may be falsy | ||
}, | ||
['deletePad']); | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import("etherpad.log"); | ||
import("dispatch.{Dispatcher,PrefixMatcher,forward}"); | ||
import("plugins.deletePad.controllers.ui"); | ||
import("sqlbase.sqlobj"); | ||
|
||
function handlePath() { | ||
return [[PrefixMatcher('/ep/admin/delete-pad'), forward(ui)]]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import("etherpad.log"); | ||
import("plugins.deletePad.hooks"); | ||
import("sqlbase.sqlobj"); | ||
import("sqlbase.sqlcommon"); | ||
|
||
function deletePadInit() { | ||
this.hooks = ['handlePath']; | ||
this.description = 'Allows admin to delete pads permanently'; | ||
this.configLink = '/ep/admin/delete-pad'; | ||
this.handlePath = hooks.handlePath; | ||
|
||
this.install = install; | ||
this.uninstall = uninstall; | ||
} | ||
|
||
function install() { | ||
log.info("Installing delete pad"); | ||
} | ||
|
||
function uninstall() { | ||
log.info("Uninstalling delete pad"); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<% /* | ||
Copyright 2009 Google Inc. | ||
Copyright 2010 Pita, Peter Martischka <petermartischka@googlemail.com> | ||
Copyright 2010 Egil Möller <egil.moller@piratpartiet.se> | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS-IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. */ %> | ||
<% | ||
template.inherit('admin/page.ejs'); | ||
helpers.setHtmlTitle(appjet.config.customBrandingName +": Manage plugins"); | ||
plugin_registry = plugins.loadPlugins(); | ||
%> | ||
|
||
<% template.define('docBarTitle', function() { var ejs_data=''; %> | ||
<td id="docbarpadtitle"><span>Permanently delete a pad</span></td> | ||
<% return ejs_data; }); %> | ||
|
||
<% template.define('contentArea', function() { var ejs_data=''; %> | ||
<div id="editorcontainer"> | ||
<form method="post"> | ||
Pad id: <input type="text" name="pad_id"><br> | ||
<br> | ||
<em>Yes, I have read and understood that I'm about to permanently stuff something up, and I still want to do it!</em><br> | ||
<br> | ||
<button type="submit">Yes, really do delete that pad</button> | ||
</form> | ||
</div> | ||
<% return ejs_data; }); %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apt-get install imagemagick poppler-utils ghostscript sed |
Oops, something went wrong.