summaryrefslogtreecommitdiffstats
path: root/application
AgeCommit message (Collapse)AuthorFilesLines
2015-05-21migration 14: Fix error if file was already renamedFlorian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21tests: Die early on db errorsFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21Calc correct total size for history with duplicate hashesFlorian Pritz2-1/+22
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21\c\file::clean_stale_files: Increase robustnessFlorian Pritz1-3/+7
Delete files not matching our pattern and be forgiving if directories are cleaned up by mfile->delete_data_id. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21Clarify variable usage in \c\tools->testFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21tests: Rework database handlingFlorian Pritz2-2/+9
We no longer interfere with the normal installation's database settings. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21tests: Make prove --state work; Restructure testsFlorian Pritz7-13/+16
This moves all tests into a subdirectory and lets prove itself figure out which tests exist. It seems if you supply the testlist via arguments or stdin --state won't affect the order. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21test: different files with same checksumFlorian Pritz2-8/+33
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21Support multiple files with the same hashFlorian Pritz8-131/+231
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-05Set cache buster for js with urlArgs settingJoakim Reinert2-5/+5
No more need for timestamp in filename of minified main js
2015-05-05Add support for minified main.jsJoakim Reinert2-2/+15
2015-05-05Set max upload size and file count in upload_form view onlyJoakim Reinert2-6/+3
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>