Commit Graph

78 Commits

Author SHA1 Message Date
Eliot Whalan 76b64b0702 Merge branch 'master' into master 2016-12-20 07:02:49 +10:00
patchon 5a0b1f5d4d Initial commit of Pastebin fork
This commit is quite big rewrite and individual commits for each feature is
unfortunately not available. This fork introduces quite a lot of new features,
and possibly while doing so, some bugs as well. Nonetheless the features
introduced are listed below.

- Support for multiple database backends (sqlite3, postgresql and mysql are now
  supported). Configurations options like dbname/tablename/ports/adresses/etc.
  are supported as well.

- Support for dynamically adding lexers (languages) and styles (themes) from
  pygments. This means no manual configuration depending on where the
  installation is done. There is however a way of adding "prioritized" lexers.
  This feature can be nice to use sine pygments now days support hundreds of
  languages, some more common than others. Simply add the "display name" for
  each lexer you want to prioritize in the file 'assets/prio-lexers' and they
  will show up first in the list when the user selects languages.

- Support for changing styles and lexers directly from the webgui on the fly
  (no reload of the page, just content update).

- Support for row-highlightning (on/off) and rownumbers (show/hide).

- Support for showing information about when paste expires.

- Support for goo.gl-shortener.

- Extreme debugging.
2016-12-19 19:43:37 +01:00
Eliot Whalan a7ea8be053 Fix small font size 2016-12-19 15:09:07 +10:00
Patrik Martinsson 825fffe502 Initial commit of pastebin fork
It's quite big rewrite and indivdual commits are not available since
its so big. Introducing features like,
- Support for multiple database backends and configurations like
  dbname/tablename/ports/adresses/etc.
- Support for dynamically adding languages and lexers from pygments,
  autodetection of language is also supported.
- Support for changing styles (and languages) on the fly, also row-highlightning
  and rownumbers.
- Support for showing information about when paste expires.
- Support for goo.gl-shortener.
- Extreme debugging =)
- Probably added a few bugs in there as well =)
2016-12-18 15:12:24 +01:00
Eliot Whalan c6b7814de1 Fix up html templates again 2016-08-10 19:18:24 +10:00
Eliot Whalan 80fe735ba0 Fix up api endpoint examples 2016-08-10 19:15:50 +10:00
Eliot Whalan eee90fc3ad Update forms 2016-08-10 18:46:04 +10:00
Eliot Whalan 7792941262 Fix up expiry options 2016-07-15 13:48:58 +10:00
Eliot Whalan 29d7fdf116 Try fixing up duration parsing again 2016-07-15 13:13:50 +10:00
Eliot Whalan e86b94784d fix up expiry 2016-07-15 13:06:25 +10:00
Eliot Whalan 277cfdefff Use parseduration 2016-07-15 12:39:20 +10:00
Eliot Whalan 5242324a60 Rewrite DurationFromExpiry function 2016-07-15 12:12:09 +10:00
Eliot Whalan a2503d4b98 Make api more restful 2016-07-12 10:50:44 +10:00
Eliot Whalan 1ac4e9da64 Reorder forever to be at the bottom 2016-07-12 07:15:36 +10:00
Felix Yan 6b18baf7c6 Add missing name for paste body field on clone page
The `name="p"` part is present in index but not the clone page. Without the change I am getting "Empty paste" when submitting any paste from the clone page.
2016-06-29 11:12:06 -05:00
Eliot Whalan 0c252c3c4b Revert "Fix up css for syntax page"
This reverts commit 5afb1564ce.
2016-06-28 22:54:41 +10:00
Eliot Whalan 9fa1fa73fe Revert "Try again"
This reverts commit 7658c76460.
2016-06-28 22:54:34 +10:00
Eliot Whalan 69c66a7557 Try again 2016-06-28 22:53:35 +10:00
Eliot Whalan 3ff9dd740d Fix up css for syntax page 2016-06-28 22:51:33 +10:00
Eliot Whalan 672ce0d77a Fix up padding 2016-06-26 18:18:14 +10:00
Eliot Whalan 2ea5a9d7bc Remove guess language option 2016-06-26 06:51:34 +10:00
Eliot Whalan 4d8ef07f48 Add expiry input 2016-06-25 08:24:56 +10:00
Eliot Whalan f80d779b28 Make pages adjust automatically 2016-06-24 16:50:51 +10:00
Eliot Whalan 337a7ddbae Try automatic resizing of elements 2016-06-24 16:40:17 +10:00
Eliot Whalan ba98eb91af move functions up one scope 2016-06-24 16:38:45 +10:00
Eliot Whalan 7627cfa15a Try onload resizing with jquery 2016-06-24 16:37:21 +10:00
Eliot Whalan 556f953637 Fixup syntax box 2016-06-24 16:26:43 +10:00
Eliot Whalan 21342848b1 Add page onload 2016-06-24 16:25:32 +10:00
Eliot Whalan 565a11a2aa Add jquery resizing to all pages 2016-06-24 16:22:06 +10:00
Eliot Whalan 46d46f70cd try another query autosizing thing 2016-06-24 16:18:27 +10:00
Eliot Whalan c131c0d6a9 Add jquery-autogrow 2016-06-24 16:14:36 +10:00
Eliot Whalan 4d8a90a606 Add sytle resize to text area 2016-06-24 16:05:39 +10:00
Eliot Whalan ead0a0c4fe Add placeholder text 2016-06-24 15:55:49 +10:00
Eliot Whalan 9d3b49d904 Remove margin-right from buttons 2016-06-24 15:47:31 +10:00
Eliot Whalan d446219b7d Add title support to all pages and make it clearer 2016-06-24 15:39:12 +10:00
Eliot Whalan da55f3847c Add title 2016-06-24 15:24:15 +10:00
Eliot Whalan 6a1c6fcab1 Fix lack of print function in clone page 2016-06-24 13:01:31 +10:00
Eliot Whalan 5e25d4cc88 Add clone paste handler 2016-06-24 12:59:29 +10:00
Eliot Whalan ac2eb12dfb Add download button 2016-06-24 12:17:23 +10:00
Eliot Whalan 552dffe453 Add home to struct 2016-06-23 21:00:46 +10:00
Eliot Whalan 82d977eb85 Add more buttons and add row div 2016-06-23 20:59:12 +10:00
Eliot Whalan 5c9c3ef187 Try syntax highlighting 2016-06-23 20:41:45 +10:00
Eliot Whalan 673e6ceb4e Reintroduce textarea 2016-06-23 20:19:48 +10:00
Eliot Whalan 2bdada3d66 Bring back print statement part 2 2016-06-23 20:15:13 +10:00
Eliot Whalan 98bd39ceae Bring back print statement 2016-06-23 20:13:58 +10:00
Eliot Whalan 1aed57a4e2 Remove printf 2016-06-23 19:56:56 +10:00
Eliot Whalan 2ea6c80bb7 remove more html 2016-06-23 19:27:06 +10:00
Eliot Whalan f5d8e82b98 Remove full page option and textarea 2016-06-23 19:24:18 +10:00
Eliot Whalan aaf20264d7 Relocate raw button 2016-06-23 19:15:28 +10:00
Eliot Whalan c6bd376818 Make submit button a link 2016-06-23 19:12:51 +10:00