Permalink
Browse files

updating bootstrap, UI update

  • Loading branch information...
johnsheehan committed Jul 29, 2013
1 parent 1ada8fd commit 95439020ab9d20b59aee70107026c41be183aa45
Showing with 21,397 additions and 502 deletions.
  1. +1 −0 .env
  2. +2 −0 .gitignore
  3. +8 −14 README.md
  4. +1 −1 config/heroku.conf.py
  5. +28 −0 requestbin/__init__.py
  6. +1 −1 requestbin/api.py
  7. +26 −0 requestbin/config.py
  8. +7 −7 requestbin/service.py
  9. +0 −356 requestbin/static/bootstrap.min.css
  10. +1,109 −0 requestbin/static/css/bootstrap-responsive.css
  11. +9 −0 requestbin/static/css/bootstrap-responsive.min.css
  12. +5,263 −0 requestbin/static/css/bootstrap.css
  13. +9 −0 requestbin/static/css/bootstrap.min.css
  14. +1,203 −0 requestbin/static/css/font-awesome-ie7.css
  15. +384 −0 requestbin/static/css/font-awesome-ie7.min.css
  16. +1,479 −0 requestbin/static/css/font-awesome.css
  17. +403 −0 requestbin/static/css/font-awesome.min.css
  18. 0 requestbin/static/{ → css}/prettify.css
  19. +1,088 −0 requestbin/static/css/responsive.css
  20. +502 −0 requestbin/static/css/styles.css
  21. BIN requestbin/static/font/FontAwesome.otf
  22. BIN requestbin/static/font/fontawesome-webfont.eot
  23. +399 −0 requestbin/static/font/fontawesome-webfont.svg
  24. BIN requestbin/static/font/fontawesome-webfont.ttf
  25. BIN requestbin/static/font/fontawesome-webfont.woff
  26. BIN requestbin/static/img/bg-stripe.png
  27. BIN requestbin/static/img/glyphicons-halflings-white.png
  28. BIN requestbin/static/img/glyphicons-halflings.png
  29. BIN requestbin/static/img/ico-1.png
  30. BIN requestbin/static/img/ico-2.png
  31. BIN requestbin/static/img/ico-3.png
  32. BIN requestbin/static/img/ico-4.png
  33. BIN requestbin/static/img/logo-runscope-1x.png
  34. BIN requestbin/static/img/logo-runscope-2x.png
  35. BIN requestbin/static/img/runscope-hero.png
  36. +0 −4 requestbin/static/jquery.min.js
  37. +2,280 −0 requestbin/static/js/bootstrap.js
  38. +6 −0 requestbin/static/js/bootstrap.min.js
  39. +6 −0 requestbin/static/js/jquery.min.js
  40. 0 requestbin/static/{ → js}/prettify.js
  41. +34 −0 requestbin/static/less/accordion.less
  42. +79 −0 requestbin/static/less/alerts.less
  43. +67 −0 requestbin/static/less/bootstrap.less
  44. +24 −0 requestbin/static/less/breadcrumbs.less
  45. +229 −0 requestbin/static/less/button-groups.less
  46. +228 −0 requestbin/static/less/buttons.less
  47. +158 −0 requestbin/static/less/carousel.less
  48. +32 −0 requestbin/static/less/close.less
  49. +61 −0 requestbin/static/less/code.less
  50. +22 −0 requestbin/static/less/component-animations.less
  51. +311 −0 requestbin/static/less/custom.less
  52. +248 −0 requestbin/static/less/dropdowns.less
  53. +690 −0 requestbin/static/less/forms.less
  54. +21 −0 requestbin/static/less/grid.less
  55. +25 −0 requestbin/static/less/hero-unit.less
  56. +84 −0 requestbin/static/less/labels-badges.less
  57. +16 −0 requestbin/static/less/layouts.less
  58. +55 −0 requestbin/static/less/media.less
  59. +702 −0 requestbin/static/less/mixins.less
  60. +95 −0 requestbin/static/less/modals.less
  61. +497 −0 requestbin/static/less/navbar.less
  62. +409 −0 requestbin/static/less/navs.less
  63. +43 −0 requestbin/static/less/pager.less
  64. +123 −0 requestbin/static/less/pagination.less
  65. +133 −0 requestbin/static/less/popovers.less
  66. +122 −0 requestbin/static/less/progress-bars.less
  67. +216 −0 requestbin/static/less/reset.less
  68. +28 −0 requestbin/static/less/responsive-1200px-min.less
  69. +193 −0 requestbin/static/less/responsive-767px-max.less
  70. +19 −0 requestbin/static/less/responsive-768px-979px.less
  71. +189 −0 requestbin/static/less/responsive-navbar.less
  72. +59 −0 requestbin/static/less/responsive-utilities.less
  73. +52 −0 requestbin/static/less/responsive.less
  74. +53 −0 requestbin/static/less/scaffolding.less
  75. +197 −0 requestbin/static/less/sprites.less
  76. +578 −0 requestbin/static/less/styles.less
  77. +244 −0 requestbin/static/less/tables.less
  78. +53 −0 requestbin/static/less/thumbnails.less
  79. +70 −0 requestbin/static/less/tooltip.less
  80. +247 −0 requestbin/static/less/type.less
  81. +30 −0 requestbin/static/less/utilities.less
  82. +301 −0 requestbin/static/less/variables.less
  83. +29 −0 requestbin/static/less/wells.less
  84. +19 −29 requestbin/templates/home.html
  85. +88 −63 requestbin/templates/layout.html
  86. +1 −2 requestbin/views.py
  87. +0 −24 requestbin/web.py
  88. +1 −1 requirements.txt
  89. +8 −0 web.py
1 .env
@@ -0,0 +1 @@
workon requestbin
@@ -2,3 +2,5 @@
*.egg-info
**/*.pyc
serviced.log
codekit-config.json
@@ -1,4 +1,6 @@
Contribute!
# [RequestB.in](http://requestb.in)
Originally Created by [Jeff Lindsay](http://progrium.com)
Contributors
------------
@@ -9,23 +11,18 @@ License
-------
MIT
Installation
============
RequestBin can be used in three ways:
1. Use the hosted service at requestb.in
1. Deploy your own instance using Heroku
1. Run it locally from the command line (coming soon)
Looking to self-host?
=====================
## Deploy your own instance using Heroku
Create a Heroku account if you haven't, then grab the RequestBin source using git:
`$ git clone git://github.com/progrium/requestbin.git`
`$ git clone git://github.com/Runscope/requestbin.git`
From the project directory, create a Heroku application:
`$ heroku create --stack cedar`
`$ heroku create`
Add Heroku's addon for redistogo
@@ -43,7 +40,4 @@ Now just deploy via git:
`$ git push heroku master`
It will push to Heroku and give you a URL that your own private RequestBin will be running.
## Run it locally from the command line
Although this is possible now by checking out the source and poking around, our intention is to release an easy to install version of RequestBin that you can use from the command line to quickly debug local HTTP requests. This is coming soon.
It will push to Heroku and give you a URL that your own private RequestBin will be running.
@@ -1,7 +1,7 @@
import os
import urlparse
bind_address = ('0.0.0.0', int(os.environ.get("PORT", 5000)))
bind_address = ('0.0.0.0', int(os.environ.get("PORT", 4000)))
ignore_headers = """
X-Varnish
X-Forwarded-For
@@ -0,0 +1,28 @@
from flask import Flask, redirect
import config
app = Flask(__name__)
from werkzeug.contrib.fixers import ProxyFix
app.wsgi_app = ProxyFix(app.wsgi_app)
app.debug = config.DEBUG
app.secret_key = config.FLASK_SESSION_SECRET_KEY
app.add_url_rule('/', 'views.home')
app.add_url_rule('/<name>', 'views.bin', methods=['GET', 'POST', 'DELETE', 'PUT', 'OPTIONS', 'HEAD', 'PATCH', 'TRACE'])
app.add_url_rule('/docs/<name>', 'views.docs')
app.add_url_rule('/api/v1/bins', 'api.bins', methods=['POST'])
app.add_url_rule('/api/v1/bins/<name>', 'api.bin', methods=['GET'])
app.add_url_rule('/api/v1/bins/<bin>/requests', 'api.requests', methods=['GET'])
app.add_url_rule('/api/v1/bins/<bin>/requests/<name>', 'api.request', methods=['GET'])
app.add_url_rule('/api/v1/stats', 'api.stats')
app.add_url_rule('/favicon.ico', view_func=lambda: redirect('/static/favicon.ico'))
app.add_url_rule('/robots.txt', view_func=lambda: redirect('/static/robots.txt'))
from requestbin import api, views
@@ -3,7 +3,7 @@
from flask import session, make_response, request, render_template
from .web import app
from requestbin import app
def _response(object, code=200):
jsonp = request.args.get('jsonp')
@@ -0,0 +1,26 @@
import os, urlparse
DEBUG = True
REALM = os.environ.get('REALM', 'local')
ROOT_URL = "http://localhost:3000"
PORT_NUMBER = 4000
FLASK_SESSION_SECRET_KEY = "N1BKhJLnBqLpexOZdklsfDKFJDKFadsfs9a3r324YB7B73AglRmrHMDQ9RhXz35"
REDIS_URL = ""
REDIS_HOST = "localhost"
REDIS_PORT = 6379
REDIS_PASSWORD = None
REDIS_DB = 2
if REALM == 'prod':
DEBUG = True
ROOT_URL = "http://requestb.in"
REDIS_URL = os.environ.get("REDISCLOUD_URL")
redis_url = urlparse.urlparse(REDIS_URL)
REDIS_HOST = redis_url.hostname
REDIS_PORT = redis_url.port
REDIS_PASSWORD = redis_url.password
REDIS_DB = 0
@@ -7,19 +7,19 @@
from ginkgo import Setting
from ginkgo.async.gevent import ServerWrapper
from . import web
from . import capture
from .models import Bin
from requestbin import app
from requestbin import capture
from requestbin.models import Bin
class RequestBin(Service):
bind_address = Setting('bind_address', default=('0.0.0.0', 5000))
docs_url = Setting('docs_url', default='https://github.com/progrium/requestbin/wiki.atom')
bind_address = Setting('bind_address', default=('0.0.0.0', 4001))
docs_url = Setting('docs_url', default='https://github.com/Runscope/requestbin/wiki.atom')
bin_ttl = Setting('bin_ttl', default=48*3600)
storage_backend = Setting('storage_backend',
default='requestbin.storage.memory.MemoryStorage')
def __init__(self):
self.server = WSGIServer(self.bind_address, web.app,
self.server = WSGIServer(self.bind_address, app,
handler_class=capture.RawCaptureWSGIHandler)
self.add_service(ServerWrapper(self.server))
@@ -33,7 +33,7 @@ def __init__(self):
self.storage = klass(self.bin_ttl)
self.add_service(self.storage)
web.app.config['service'] = self
app.config['service'] = self
self.docs = None
Oops, something went wrong.

0 comments on commit 9543902

Please sign in to comment.