summaryrefslogtreecommitdiffstats
path: root/application
AgeCommit message (Collapse)AuthorFilesLines
2015-05-05Fix non-closing script tag in file/html_headerJoakim Reinert1-1/+1
2015-05-05Refactor file uploader jsJoakim Reinert1-1/+4
2015-05-05Use global appConfig js variable instead of passing it downJoakim Reinert2-6/+6
Initialize it in header
2015-05-05Refactor thumbnail view jsJoakim Reinert1-1/+1
2015-05-05Refactor linewrap toggleJoakim Reinert1-1/+1
2015-05-05Refactor lexer input setupJoakim Reinert2-3/+5
2015-05-05Use require.js for javascript loadingJoakim Reinert6-34/+4
2015-05-05Add functionality for choosing tab width in frontendJoakim Reinert1-0/+8
2015-05-03Expose /file/thumbnail/ on front pageFlorian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-03c/tools: Make non-cli request error publicFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-03test \libraries\Image::type_supportedFlorian Pritz1-0/+38
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-02Get supported image types from driversFlorian Pritz2-2/+20
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-02l\Image: Refactor best_driver/readFlorian Pritz1-12/+13
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-02l\I\D\imagemagick: Only process images and pdfsFlorian Pritz1-1/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-27\l\Image->best_driver: Always ignore < 0 priorityFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-25test: test_callPrivateEndpointsWithoutApikey add user/delete_apikeyFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-25test: Call more endpoints without enough permissionsFlorian Pritz1-15/+28
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-25API 1.3.0: Allow multipaste creation for basic accessFlorian Pritz4-7/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-18s/files:get_multipaste_history: Remove multipastes without itemsFlorian Pritz1-0/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-18Added config option max_invitation_keysAlexander Finkhäuser2-1/+4
2015-04-11Fix missing lexers in get_lexersFlorian Pritz1-2/+2
Broken by a11e06d4906c2e1186779b42d5e87a17f66c50ea which changed names back to a normal array. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-09Fix mime2lexer failing when using pygments infoFlorian Pritz2-2/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-09Document how to clean file cache if usedFlorian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-09Improve title for multipastesFlorian Pritz1-1/+36
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-08Cache filedataFlorian Pritz2-13/+33
This brings down render time of a multipaste with 180 items from ~180ms to ~80ms. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-07Test: Add pygments testsFlorian Pritz1-0/+82
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-02Pygments: Add .lhs extensionFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-02Improve performance of pygments->mime2lexerFlorian Pritz1-5/+3
Normal arrays are rather slow when accessed sequentially. Use associative arrays and key lookups to reduce the render time of a multipaste with 180 items from 225ms to ~190ms. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-02Pygments::get_pygments_info: cache in memoryFlorian Pritz1-1/+1
It's used multiple times if we are rendering a multipaste so it makes sense not to run to the backend cache each time (if there even is one). This reduced the render time for a multipaste with 180 items from >500ms to ~225ms when using the file cache backend. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-02Fix automatic highlight of svg filesFlorian Pritz1-7/+7
They should not be highlit.. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-02helper: Add cache_function_fullFlorian Pritz1-1/+18
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-01file/do_websubmit: throw exception rather than assertFlorian Pritz1-2/+3
An assert is actually wrong for user input. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-01Get supported mimetypes from pygments itselfFlorian Pritz1-0/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-01Refactor \libraries\Pygments::get_lexersFlorian Pritz1-4/+13
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-01Refactor lexer code into dedicated classFlorian Pritz3-190/+215
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-25API 1.2.0: Add user/delete_apikeys endpointFlorian Pritz3-5/+61
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-21Highlight application/postscriptFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-21Change gentoo overlay link to httpsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-19Make user/get_action/invalid-action exception publicFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-16Map .pp files to puppet lexerFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-11Move upload button for small displaysFlorian Pritz1-1/+1
The uUpload button was not visible when using firefox in gnome on a laptop with 1366x768. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-09Update gentoo overlay URLFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-09Test: Prefix output with testcase nameFlorian Pritz2-2/+20
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08Test: Improve exception handlingFlorian Pritz2-6/+21
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08api/file/create_multipase: return URLFlorian Pritz3-2/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08Unify file/cron and mfile->valid_idFlorian Pritz4-49/+201
Create a testable function doing all the verification/removal, add tests and use it for both cases. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08Add mockeryFlorian Pritz2-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08test: Fail on exceptionsFlorian Pritz2-1/+2
If we don't output a test plan prove will consider the test failed. The destructor would run when an uncaught exception is thrown so don't use a destructor to output the testplan. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08autoloader: support multiple search pathsFlorian Pritz1-5/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-02Add imagemagick supportFlorian Pritz9-197/+533
Adds additional support for imagemagick if GD doesn't support a file type and extends the files displayed as thumbnails to all images and pdf files. Signed-off-by: Florian Pritz <bluewind@xinu.at>