forked from torproject/community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6eaf031
Showing
10,171 changed files
with
380,286 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
node_modules | ||
|
||
.sass-cache | ||
.DS_Store | ||
|
||
public | ||
*.mo | ||
*.po | ||
contents+*.lr | ||
|
||
*.egg-info | ||
*.pyc | ||
__pycache__ | ||
|
||
### Lektor Temps ### | ||
*~* | ||
|
||
### Idea (IDE) ### | ||
.idea/ | ||
|
||
### Emacs ### | ||
# -*- mode: gitignore; -*- | ||
*~ | ||
\#*\# | ||
/.emacs.desktop | ||
/.emacs.desktop.lock | ||
*.elc | ||
auto-save-list | ||
tramp | ||
.\#* | ||
|
||
# Org-mode | ||
.org-id-locations | ||
*_archive | ||
|
||
# flymake-mode | ||
*_flymake.* | ||
|
||
# eshell files | ||
/eshell/history | ||
/eshell/lastdir | ||
|
||
# elpa packages | ||
/elpa/ | ||
|
||
# reftex files | ||
*.rel | ||
|
||
# AUCTeX auto folder | ||
/auto/ | ||
|
||
# cask packages | ||
.cask/ | ||
dist/ | ||
|
||
# Flycheck | ||
flycheck_*.el | ||
|
||
# server auth directory | ||
/server/ | ||
|
||
# projectiles files | ||
.projectile | ||
projectile-bookmarks.eld | ||
|
||
# directory configuration | ||
.dir-locals.el | ||
|
||
# saveplace | ||
places | ||
|
||
# url cache | ||
url/cache/ | ||
|
||
# cedet | ||
ede-projects.el | ||
|
||
# smex | ||
smex-items | ||
|
||
# company-statistics | ||
company-statistics-cache.el | ||
|
||
# anaconda-mode | ||
anaconda-mode/ |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+9.21 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_breadcrumb.scssc
Binary file not shown.
Binary file added
BIN
+29.8 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_button-group.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+119 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_custom-forms.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+25.6 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_functions.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+45.9 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_input-group.scssc
Binary file not shown.
Binary file added
BIN
+5.03 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_jumbotron.scssc
Binary file not shown.
Binary file added
BIN
+26.7 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_list-group.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+16.1 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_pagination.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+15.5 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_tor-variables.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.31 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_transitions.scssc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.57 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/_utilities.scssc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.14 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/bootstrap-grid.scssc
Binary file not shown.
Binary file added
BIN
+1.72 KB
.sass-cache/97d3e1f09c2d890d7fb09d1b5d52f5716498428d/bootstrap-reboot.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.98 KB
.sass-cache/984521be3d16757a42e393ecbb96a95363d3fd06/_background.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.72 KB
.sass-cache/984521be3d16757a42e393ecbb96a95363d3fd06/_screenreaders.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.93 KB
.sass-cache/984521be3d16757a42e393ecbb96a95363d3fd06/_stretched-link.scssc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.24 KB
.sass-cache/984521be3d16757a42e393ecbb96a95363d3fd06/_visibility.scssc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.73 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_background-variant.scssc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.9 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_border-radius.scssc
Binary file not shown.
Binary file added
BIN
+7.69 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_box-shadow.scssc
Binary file not shown.
Binary file added
BIN
+29.6 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_breakpoints.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.32 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_deprecate.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+19.9 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_gradients.scssc
Binary file not shown.
Binary file added
BIN
+16.7 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_grid-framework.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.98 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_list-group.scssc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.17 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_nav-divider.scssc
Binary file not shown.
Binary file added
BIN
+5.02 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_pagination.scssc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.6 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_screen-reader.scssc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.05 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_table-row.scssc
Binary file not shown.
Binary file added
BIN
+5.02 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_text-emphasis.scssc
Binary file not shown.
Binary file added
BIN
+3.36 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_text-hide.scssc
Binary file not shown.
Binary file added
BIN
+1.86 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_text-truncate.scssc
Binary file not shown.
Binary file added
BIN
+5.22 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_transition.scssc
Binary file not shown.
Binary file added
BIN
+2.29 KB
.sass-cache/baa879d03c0cbbc6bac6062ed385def363464d7b/_visibility.scssc
Binary file not shown.
Binary file not shown.
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,194 @@ | ||
import $ from 'jquery' | ||
import Util from './util' | ||
|
||
|
||
/** | ||
* -------------------------------------------------------------------------- | ||
* Bootstrap (v4.0.0-beta.2): alert.js | ||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | ||
* -------------------------------------------------------------------------- | ||
*/ | ||
|
||
const Alert = (() => { | ||
|
||
|
||
/** | ||
* ------------------------------------------------------------------------ | ||
* Constants | ||
* ------------------------------------------------------------------------ | ||
*/ | ||
|
||
const NAME = 'alert' | ||
const VERSION = '4.0.0-beta.2' | ||
const DATA_KEY = 'bs.alert' | ||
const EVENT_KEY = `.${DATA_KEY}` | ||
const DATA_API_KEY = '.data-api' | ||
const JQUERY_NO_CONFLICT = $.fn[NAME] | ||
const TRANSITION_DURATION = 150 | ||
|
||
const Selector = { | ||
DISMISS : '[data-dismiss="alert"]' | ||
} | ||
|
||
const Event = { | ||
CLOSE : `close${EVENT_KEY}`, | ||
CLOSED : `closed${EVENT_KEY}`, | ||
CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}` | ||
} | ||
|
||
const ClassName = { | ||
ALERT : 'alert', | ||
FADE : 'fade', | ||
SHOW : 'show' | ||
} | ||
|
||
|
||
/** | ||
* ------------------------------------------------------------------------ | ||
* Class Definition | ||
* ------------------------------------------------------------------------ | ||
*/ | ||
|
||
class Alert { | ||
|
||
constructor(element) { | ||
this._element = element | ||
} | ||
|
||
|
||
// getters | ||
|
||
static get VERSION() { | ||
return VERSION | ||
} | ||
|
||
|
||
// public | ||
|
||
close(element) { | ||
element = element || this._element | ||
|
||
const rootElement = this._getRootElement(element) | ||
const customEvent = this._triggerCloseEvent(rootElement) | ||
|
||
if (customEvent.isDefaultPrevented()) { | ||
return | ||
} | ||
|
||
this._removeElement(rootElement) | ||
} | ||
|
||
dispose() { | ||
$.removeData(this._element, DATA_KEY) | ||
this._element = null | ||
} | ||
|
||
|
||
// private | ||
|
||
_getRootElement(element) { | ||
const selector = Util.getSelectorFromElement(element) | ||
let parent = false | ||
|
||
if (selector) { | ||
parent = $(selector)[0] | ||
} | ||
|
||
if (!parent) { | ||
parent = $(element).closest(`.${ClassName.ALERT}`)[0] | ||
} | ||
|
||
return parent | ||
} | ||
|
||
_triggerCloseEvent(element) { | ||
const closeEvent = $.Event(Event.CLOSE) | ||
|
||
$(element).trigger(closeEvent) | ||
return closeEvent | ||
} | ||
|
||
_removeElement(element) { | ||
$(element).removeClass(ClassName.SHOW) | ||
|
||
if (!Util.supportsTransitionEnd() || | ||
!$(element).hasClass(ClassName.FADE)) { | ||
this._destroyElement(element) | ||
return | ||
} | ||
|
||
$(element) | ||
.one(Util.TRANSITION_END, (event) => this._destroyElement(element, event)) | ||
.emulateTransitionEnd(TRANSITION_DURATION) | ||
} | ||
|
||
_destroyElement(element) { | ||
$(element) | ||
.detach() | ||
.trigger(Event.CLOSED) | ||
.remove() | ||
} | ||
|
||
|
||
// static | ||
|
||
static _jQueryInterface(config) { | ||
return this.each(function () { | ||
const $element = $(this) | ||
let data = $element.data(DATA_KEY) | ||
|
||
if (!data) { | ||
data = new Alert(this) | ||
$element.data(DATA_KEY, data) | ||
} | ||
|
||
if (config === 'close') { | ||
data[config](this) | ||
} | ||
}) | ||
} | ||
|
||
static _handleDismiss(alertInstance) { | ||
return function (event) { | ||
if (event) { | ||
event.preventDefault() | ||
} | ||
|
||
alertInstance.close(this) | ||
} | ||
} | ||
|
||
} | ||
|
||
|
||
/** | ||
* ------------------------------------------------------------------------ | ||
* Data Api implementation | ||
* ------------------------------------------------------------------------ | ||
*/ | ||
|
||
$(document).on( | ||
Event.CLICK_DATA_API, | ||
Selector.DISMISS, | ||
Alert._handleDismiss(new Alert()) | ||
) | ||
|
||
|
||
/** | ||
* ------------------------------------------------------------------------ | ||
* jQuery | ||
* ------------------------------------------------------------------------ | ||
*/ | ||
|
||
$.fn[NAME] = Alert._jQueryInterface | ||
$.fn[NAME].Constructor = Alert | ||
$.fn[NAME].noConflict = function () { | ||
$.fn[NAME] = JQUERY_NO_CONFLICT | ||
return Alert._jQueryInterface | ||
} | ||
|
||
return Alert | ||
|
||
})($) | ||
|
||
export default Alert |
Oops, something went wrong.