Skip to content

Commit

Permalink
Trim in-repo copy of Martor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjaclasher committed Dec 26, 2024
1 parent c82e540 commit 4f79e35
Show file tree
Hide file tree
Showing 31 changed files with 7 additions and 889 deletions.
2 changes: 1 addition & 1 deletion judge/views/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def django_uploader(image):
def martor_image_uploader(request):
if not request.user.is_staff:
return HttpResponseNotFound()
if request.method != 'POST' or not request.is_ajax() or 'markdown-image-upload' not in request.FILES:
if request.method != 'POST' or 'markdown-image-upload' not in request.FILES:
return HttpResponseBadRequest('Invalid request')

image = request.FILES['markdown-image-upload']
Expand Down
11 changes: 0 additions & 11 deletions martor/admin.py

This file was deleted.

57 changes: 0 additions & 57 deletions martor/api.py

This file was deleted.

Empty file removed martor/extensions/__init__.py
Empty file.
54 changes: 0 additions & 54 deletions martor/extensions/del_ins.py

This file was deleted.

126 changes: 0 additions & 126 deletions martor/extensions/emoji.py

This file was deleted.

Loading

0 comments on commit 4f79e35

Please sign in to comment.