This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup Asset Pipeline Using django-compressor
Change-Id: Id1885c07e1086defc61e9f1e1f6b5409820229f2
- Loading branch information
Clinton Blackburn
committed
Jun 20, 2014
1 parent
601f290
commit 1e724eb
Showing
92 changed files
with
11,453 additions
and
272 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -38,4 +38,6 @@ tramp | |
Thumbs.db | ||
Desktop.ini | ||
|
||
.idea | ||
.idea/ | ||
analytics_dashboard/assets/ | ||
node_modules/ |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
228 changes: 0 additions & 228 deletions
228
analytics_dashboard/static/fonts/glyphicons-halflings-regular.svg
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@import "../vendor/bootstrap/stylesheets/bootstrap"; | ||
|
||
// When upgrading Font Awesome, remember to set $fa-font-path to "../../vendor/font-awesome/fonts". | ||
@import "../vendor/font-awesome/scss/font-awesome"; | ||
|
||
body { | ||
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ | ||
} |
Binary file added
BIN
+19.9 KB
analytics_dashboard/static/vendor/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.eot
Binary file not shown.
229 changes: 229 additions & 0 deletions
229
...hboard/static/vendor/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+40.3 KB
analytics_dashboard/static/vendor/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added
BIN
+22.8 KB
...ytics_dashboard/static/vendor/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.woff
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
analytics_dashboard/static/vendor/bootstrap/javascripts/bootstrap.js
This file contains 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//= require bootstrap/affix | ||
//= require bootstrap/alert | ||
//= require bootstrap/button | ||
//= require bootstrap/carousel | ||
//= require bootstrap/collapse | ||
//= require bootstrap/dropdown | ||
//= require bootstrap/tab | ||
//= require bootstrap/transition | ||
//= require bootstrap/scrollspy | ||
//= require bootstrap/modal | ||
//= require bootstrap/tooltip | ||
//= require bootstrap/popover |
137 changes: 137 additions & 0 deletions
137
analytics_dashboard/static/vendor/bootstrap/javascripts/bootstrap/affix.js
This file contains 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 |
---|---|---|
@@ -0,0 +1,137 @@ | ||
/* ======================================================================== | ||
* Bootstrap: affix.js v3.1.1 | ||
* http://getbootstrap.com/javascript/#affix | ||
* ======================================================================== | ||
* Copyright 2011-2014 Twitter, Inc. | ||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | ||
* ======================================================================== */ | ||
|
||
|
||
+function ($) { | ||
'use strict'; | ||
|
||
// AFFIX CLASS DEFINITION | ||
// ====================== | ||
|
||
var Affix = function (element, options) { | ||
this.options = $.extend({}, Affix.DEFAULTS, options) | ||
this.$window = $(window) | ||
.on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this)) | ||
.on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this)) | ||
|
||
this.$element = $(element) | ||
this.affixed = | ||
this.unpin = | ||
this.pinnedOffset = null | ||
|
||
this.checkPosition() | ||
} | ||
|
||
Affix.RESET = 'affix affix-top affix-bottom' | ||
|
||
Affix.DEFAULTS = { | ||
offset: 0 | ||
} | ||
|
||
Affix.prototype.getPinnedOffset = function () { | ||
if (this.pinnedOffset) return this.pinnedOffset | ||
this.$element.removeClass(Affix.RESET).addClass('affix') | ||
var scrollTop = this.$window.scrollTop() | ||
var position = this.$element.offset() | ||
return (this.pinnedOffset = position.top - scrollTop) | ||
} | ||
|
||
Affix.prototype.checkPositionWithEventLoop = function () { | ||
setTimeout($.proxy(this.checkPosition, this), 1) | ||
} | ||
|
||
Affix.prototype.checkPosition = function () { | ||
if (!this.$element.is(':visible')) return | ||
|
||
var scrollHeight = $(document).height() | ||
var scrollTop = this.$window.scrollTop() | ||
var position = this.$element.offset() | ||
var offset = this.options.offset | ||
var offsetTop = offset.top | ||
var offsetBottom = offset.bottom | ||
|
||
if (this.affixed == 'top') position.top += scrollTop | ||
|
||
if (typeof offset != 'object') offsetBottom = offsetTop = offset | ||
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element) | ||
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element) | ||
|
||
var affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ? false : | ||
offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' : | ||
offsetTop != null && (scrollTop <= offsetTop) ? 'top' : false | ||
|
||
if (this.affixed === affix) return | ||
if (this.unpin) this.$element.css('top', '') | ||
|
||
var affixType = 'affix' + (affix ? '-' + affix : '') | ||
var e = $.Event(affixType + '.bs.affix') | ||
|
||
this.$element.trigger(e) | ||
|
||
if (e.isDefaultPrevented()) return | ||
|
||
this.affixed = affix | ||
this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null | ||
|
||
this.$element | ||
.removeClass(Affix.RESET) | ||
.addClass(affixType) | ||
.trigger($.Event(affixType.replace('affix', 'affixed'))) | ||
|
||
if (affix == 'bottom') { | ||
this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() }) | ||
} | ||
} | ||
|
||
|
||
// AFFIX PLUGIN DEFINITION | ||
// ======================= | ||
|
||
var old = $.fn.affix | ||
|
||
$.fn.affix = function (option) { | ||
return this.each(function () { | ||
var $this = $(this) | ||
var data = $this.data('bs.affix') | ||
var options = typeof option == 'object' && option | ||
|
||
if (!data) $this.data('bs.affix', (data = new Affix(this, options))) | ||
if (typeof option == 'string') data[option]() | ||
}) | ||
} | ||
|
||
$.fn.affix.Constructor = Affix | ||
|
||
|
||
// AFFIX NO CONFLICT | ||
// ================= | ||
|
||
$.fn.affix.noConflict = function () { | ||
$.fn.affix = old | ||
return this | ||
} | ||
|
||
|
||
// AFFIX DATA-API | ||
// ============== | ||
|
||
$(window).on('load', function () { | ||
$('[data-spy="affix"]').each(function () { | ||
var $spy = $(this) | ||
var data = $spy.data() | ||
|
||
data.offset = data.offset || {} | ||
|
||
if (data.offsetBottom) data.offset.bottom = data.offsetBottom | ||
if (data.offsetTop) data.offset.top = data.offsetTop | ||
|
||
$spy.affix(data) | ||
}) | ||
}) | ||
|
||
}(jQuery); |
88 changes: 88 additions & 0 deletions
88
analytics_dashboard/static/vendor/bootstrap/javascripts/bootstrap/alert.js
This file contains 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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* ======================================================================== | ||
* Bootstrap: alert.js v3.1.1 | ||
* http://getbootstrap.com/javascript/#alerts | ||
* ======================================================================== | ||
* Copyright 2011-2014 Twitter, Inc. | ||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | ||
* ======================================================================== */ | ||
|
||
|
||
+function ($) { | ||
'use strict'; | ||
|
||
// ALERT CLASS DEFINITION | ||
// ====================== | ||
|
||
var dismiss = '[data-dismiss="alert"]' | ||
var Alert = function (el) { | ||
$(el).on('click', dismiss, this.close) | ||
} | ||
|
||
Alert.prototype.close = function (e) { | ||
var $this = $(this) | ||
var selector = $this.attr('data-target') | ||
|
||
if (!selector) { | ||
selector = $this.attr('href') | ||
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 | ||
} | ||
|
||
var $parent = $(selector) | ||
|
||
if (e) e.preventDefault() | ||
|
||
if (!$parent.length) { | ||
$parent = $this.hasClass('alert') ? $this : $this.parent() | ||
} | ||
|
||
$parent.trigger(e = $.Event('close.bs.alert')) | ||
|
||
if (e.isDefaultPrevented()) return | ||
|
||
$parent.removeClass('in') | ||
|
||
function removeElement() { | ||
$parent.trigger('closed.bs.alert').remove() | ||
} | ||
|
||
$.support.transition && $parent.hasClass('fade') ? | ||
$parent | ||
.one($.support.transition.end, removeElement) | ||
.emulateTransitionEnd(150) : | ||
removeElement() | ||
} | ||
|
||
|
||
// ALERT PLUGIN DEFINITION | ||
// ======================= | ||
|
||
var old = $.fn.alert | ||
|
||
$.fn.alert = function (option) { | ||
return this.each(function () { | ||
var $this = $(this) | ||
var data = $this.data('bs.alert') | ||
|
||
if (!data) $this.data('bs.alert', (data = new Alert(this))) | ||
if (typeof option == 'string') data[option].call($this) | ||
}) | ||
} | ||
|
||
$.fn.alert.Constructor = Alert | ||
|
||
|
||
// ALERT NO CONFLICT | ||
// ================= | ||
|
||
$.fn.alert.noConflict = function () { | ||
$.fn.alert = old | ||
return this | ||
} | ||
|
||
|
||
// ALERT DATA-API | ||
// ============== | ||
|
||
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) | ||
|
||
}(jQuery); |
Oops, something went wrong.