-
Notifications
You must be signed in to change notification settings - Fork 10
File upload support #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sudokode
wants to merge
11
commits into
master
Choose a base branch
from
fix/noscript-file-upload
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7fc71e6
Add file upload support for noscript
sudokode 4f03b56
Disable shorturl instead of hiding
sudokode b0bfb3d
oops
sudokode 88dcacd
No extra form needed apparently
sudokode c15b494
Move thing to clear()
sudokode 0f7cea4
Change clear button type to reset
sudokode 3c8fff6
Add form-control class to file input
sudokode 3e428d0
Move file input into new column
sudokode 0411cc8
Adjust columns
sudokode 4216bcb
Bootstrapping sorta
sudokode ed569c3
Sorta fixish ehhhh
sudokode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -44,29 +44,34 @@ <h3>A website to paste shit</h3> | |
| <div id="filename" class="hidden well text-center"><h4></h4></div> | ||
| </div> | ||
|
|
||
| <div class="col-xs-6 col-sm-6 form-inline form-group"> | ||
| <div class="col-xs-5 col-sm-5 form-inline form-group"> | ||
| <div class="form-group"> | ||
| <button id="paste" type="submit" class="btn btn-primary btn-block "> | ||
| Paste | ||
| <span class="fa fa-spin fa-spinner hidden"></span> | ||
| </button> | ||
| </div> | ||
| <div class="form-group"> | ||
| <input type="file" id="file-input" class="sr-only"> | ||
| <button id="file" type="submit" class="btn btn-default btn-block" disabled="disabled"> | ||
| Upload File | ||
| <button id="shorturl" type="submit" class="btn btn-default btn-block" formaction="/u"> | ||
| Short URL | ||
| <span class="fa fa-spin fa-spinner hidden"></span> | ||
| </button> | ||
| </div> | ||
| <div class="form-group"> | ||
| <button id="shorturl" type="submit" class="btn btn-default btn-block" formaction="/u"> | ||
| Short URL | ||
| <button id="file" type="submit" class="btn btn-default btn-block"> | ||
| Upload File | ||
| <span class="fa fa-spin fa-spinner hidden"></span> | ||
| </button> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="col-xs-6 col-sm-6 form-inline form-group text-right"> | ||
| <div class="col-xs-4 col-sm-4 col-sm-pull-1 form-inline form-group"> | ||
| <div class="form-group"> | ||
| <input type="file" id="file-input" name="content" class="form-control" style="padding-bottom: 0.5em"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👎 inline styles == no; use bootstrap |
||
| </div> | ||
| </div> | ||
|
|
||
| <div class="col-xs-3 col-sm-3 form-inline form-group text-right"> | ||
| <div class="form-group"> | ||
| <div class="btn-group btn-block" data-toggle="buttons"> | ||
| <label class="btn btn-default btn-block"> | ||
|
|
@@ -75,11 +80,11 @@ <h3>A website to paste shit</h3> | |
| </div> | ||
| </div> | ||
| <div class="form-group"> | ||
| <button id="clear" type="input" class="btn btn-default btn-block" disabled="disabled">Clear</button> | ||
| <button id="clear" type="reset" class="btn btn-default btn-block">Clear</button> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="col-xs-6 col-sm-6 col-sm-push-6 form-group"> | ||
| <div class="col-xs-12 col-sm-6 col-sm-push-6 form-group"> | ||
| <div class="form-group"> | ||
| <label for="sunset" class="sr-only">Expires</label> | ||
| <input type="text" id="sunset" name="sunset" class="form-control api-input" placeholder="Expires"> | ||
|
|
||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest class=hidden, and unhide on
clear(). If you did that, you might be able to get away with putting the file input here instead.