Преглед изворни кода

Removes some unnused files

dev1
hristoterezov пре 10 година
родитељ
комит
575b25d41b
6 измењених фајлова са 825 додато и 16218 уклоњено
  1. 822
    421
      lib-jitsi-meet.js
  2. 0
    15008
      libs/jquery-ui.js
  3. 0
    250
      libs/jquery.autosize.js
  4. 0
    110
      libs/popover.js
  5. 0
    422
      libs/tooltip.js
  6. 3
    7
      package.json

+ 822
- 421
lib-jitsi-meet.js
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 0
- 15008
libs/jquery-ui.js
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 0
- 250
libs/jquery.autosize.js Прегледај датотеку

@@ -1,250 +0,0 @@
1
-/*!
2
-	Autosize v1.18.1 - 2013-11-05
3
-	Automatically adjust textarea height based on user input.
4
-	(c) 2013 Jack Moore - http://www.jacklmoore.com/autosize
5
-	license: http://www.opensource.org/licenses/mit-license.php
6
-*/
7
-(function ($) {
8
-	var
9
-	defaults = {
10
-		className: 'autosizejs',
11
-		append: '',
12
-		callback: false,
13
-		resizeDelay: 10
14
-	},
15
-
16
-	// border:0 is unnecessary, but avoids a bug in Firefox on OSX
17
-	copy = '<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',
18
-
19
-	// line-height is conditionally included because IE7/IE8/old Opera do not return the correct value.
20
-	typographyStyles = [
21
-		'fontFamily',
22
-		'fontSize',
23
-		'fontWeight',
24
-		'fontStyle',
25
-		'letterSpacing',
26
-		'textTransform',
27
-		'wordSpacing',
28
-		'textIndent'
29
-	],
30
-
31
-	// to keep track which textarea is being mirrored when adjust() is called.
32
-	mirrored,
33
-
34
-	// the mirror element, which is used to calculate what size the mirrored element should be.
35
-	mirror = $(copy).data('autosize', true)[0];
36
-
37
-	// test that line-height can be accurately copied.
38
-	mirror.style.lineHeight = '99px';
39
-	if ($(mirror).css('lineHeight') === '99px') {
40
-		typographyStyles.push('lineHeight');
41
-	}
42
-	mirror.style.lineHeight = '';
43
-
44
-	$.fn.autosize = function (options) {
45
-		if (!this.length) {
46
-			return this;
47
-		}
48
-
49
-		options = $.extend({}, defaults, options || {});
50
-
51
-		if (mirror.parentNode !== document.body) {
52
-			$(document.body).append(mirror);
53
-		}
54
-
55
-		return this.each(function () {
56
-			var
57
-			ta = this,
58
-			$ta = $(ta),
59
-			maxHeight,
60
-			minHeight,
61
-			boxOffset = 0,
62
-			callback = $.isFunction(options.callback),
63
-			originalStyles = {
64
-				height: ta.style.height,
65
-				overflow: ta.style.overflow,
66
-				overflowY: ta.style.overflowY,
67
-				wordWrap: ta.style.wordWrap,
68
-				resize: ta.style.resize
69
-			},
70
-			timeout,
71
-			width = $ta.width();
72
-
73
-			if ($ta.data('autosize')) {
74
-				// exit if autosize has already been applied, or if the textarea is the mirror element.
75
-				return;
76
-			}
77
-			$ta.data('autosize', true);
78
-
79
-			if ($ta.css('box-sizing') === 'border-box' || $ta.css('-moz-box-sizing') === 'border-box' || $ta.css('-webkit-box-sizing') === 'border-box'){
80
-				boxOffset = $ta.outerHeight() - $ta.height();
81
-			}
82
-
83
-			// IE8 and lower return 'auto', which parses to NaN, if no min-height is set.
84
-			minHeight = Math.max(parseInt($ta.css('minHeight'), 10) - boxOffset || 0, $ta.height());
85
-
86
-			$ta.css({
87
-				overflow: 'hidden',
88
-				overflowY: 'hidden',
89
-				wordWrap: 'break-word', // horizontal overflow is hidden, so break-word is necessary for handling words longer than the textarea width
90
-				resize: ($ta.css('resize') === 'none' || $ta.css('resize') === 'vertical') ? 'none' : 'horizontal'
91
-			});
92
-
93
-			// The mirror width must exactly match the textarea width, so using getBoundingClientRect because it doesn't round the sub-pixel value.
94
-			function setWidth() {
95
-				var style, width;
96
-				
97
-				if ('getComputedStyle' in window) {
98
-					style = window.getComputedStyle(ta, null);
99
-					width = ta.getBoundingClientRect().width;
100
-
101
-					$.each(['paddingLeft', 'paddingRight', 'borderLeftWidth', 'borderRightWidth'], function(i,val){
102
-						width -= parseInt(style[val],10);
103
-					});
104
-
105
-					mirror.style.width = width + 'px';
106
-				}
107
-				else {
108
-					// window.getComputedStyle, getBoundingClientRect returning a width are unsupported and unneeded in IE8 and lower.
109
-					mirror.style.width = Math.max($ta.width(), 0) + 'px';
110
-				}
111
-			}
112
-
113
-			function initMirror() {
114
-				var styles = {};
115
-
116
-				mirrored = ta;
117
-				mirror.className = options.className;
118
-				maxHeight = parseInt($ta.css('maxHeight'), 10);
119
-
120
-				// mirror is a duplicate textarea located off-screen that
121
-				// is automatically updated to contain the same text as the
122
-				// original textarea.  mirror always has a height of 0.
123
-				// This gives a cross-browser supported way getting the actual
124
-				// height of the text, through the scrollTop property.
125
-				$.each(typographyStyles, function(i,val){
126
-					styles[val] = $ta.css(val);
127
-				});
128
-				$(mirror).css(styles);
129
-
130
-				setWidth();
131
-
132
-				// Chrome-specific fix:
133
-				// When the textarea y-overflow is hidden, Chrome doesn't reflow the text to account for the space
134
-				// made available by removing the scrollbar. This workaround triggers the reflow for Chrome.
135
-				if (window.chrome) {
136
-					var width = ta.style.width;
137
-					ta.style.width = '0px';
138
-					var ignore = ta.offsetWidth;
139
-					ta.style.width = width;
140
-				}
141
-			}
142
-
143
-			// Using mainly bare JS in this function because it is going
144
-			// to fire very often while typing, and needs to very efficient.
145
-			function adjust() {
146
-				var height, original;
147
-
148
-				if (mirrored !== ta) {
149
-					initMirror();
150
-				} else {
151
-					setWidth();
152
-				}
153
-
154
-				mirror.value = ta.value + options.append;
155
-				mirror.style.overflowY = ta.style.overflowY;
156
-				original = parseInt(ta.style.height,10);
157
-
158
-				// Setting scrollTop to zero is needed in IE8 and lower for the next step to be accurately applied
159
-				mirror.scrollTop = 0;
160
-
161
-				mirror.scrollTop = 9e4;
162
-
163
-				// Using scrollTop rather than scrollHeight because scrollHeight is non-standard and includes padding.
164
-				height = mirror.scrollTop;
165
-
166
-				if (maxHeight && height > maxHeight) {
167
-					ta.style.overflowY = 'scroll';
168
-					height = maxHeight;
169
-				} else {
170
-					ta.style.overflowY = 'hidden';
171
-					if (height < minHeight) {
172
-						height = minHeight;
173
-					}
174
-				}
175
-
176
-				height += boxOffset;
177
-
178
-				if (original !== height) {
179
-					ta.style.height = height + 'px';
180
-					if (callback) {
181
-						options.callback.call(ta,ta);
182
-					}
183
-				}
184
-			}
185
-
186
-			function resize () {
187
-				clearTimeout(timeout);
188
-				timeout = setTimeout(function(){
189
-					var newWidth = $ta.width();
190
-
191
-					if (newWidth !== width) {
192
-						width = newWidth;
193
-						adjust();
194
-					}
195
-				}, parseInt(options.resizeDelay,10));
196
-			}
197
-
198
-			if ('onpropertychange' in ta) {
199
-				if ('oninput' in ta) {
200
-					// Detects IE9.  IE9 does not fire onpropertychange or oninput for deletions,
201
-					// so binding to onkeyup to catch most of those occasions.  There is no way that I
202
-					// know of to detect something like 'cut' in IE9.
203
-					$ta.on('input.autosize keyup.autosize', adjust);
204
-				} else {
205
-					// IE7 / IE8
206
-					$ta.on('propertychange.autosize', function(){
207
-						if(event.propertyName === 'value'){
208
-							adjust();
209
-						}
210
-					});
211
-				}
212
-			} else {
213
-				// Modern Browsers
214
-				$ta.on('input.autosize', adjust);
215
-			}
216
-
217
-			// Set options.resizeDelay to false if using fixed-width textarea elements.
218
-			// Uses a timeout and width check to reduce the amount of times adjust needs to be called after window resize.
219
-
220
-			if (options.resizeDelay !== false) {
221
-				$(window).on('resize.autosize', resize);
222
-			}
223
-
224
-			// Event for manual triggering if needed.
225
-			// Should only be needed when the value of the textarea is changed through JavaScript rather than user input.
226
-			$ta.on('autosize.resize', adjust);
227
-
228
-			// Event for manual triggering that also forces the styles to update as well.
229
-			// Should only be needed if one of typography styles of the textarea change, and the textarea is already the target of the adjust method.
230
-			$ta.on('autosize.resizeIncludeStyle', function() {
231
-				mirrored = null;
232
-				adjust();
233
-			});
234
-
235
-			$ta.on('autosize.destroy', function(){
236
-				mirrored = null;
237
-				clearTimeout(timeout);
238
-				$(window).off('resize', resize);
239
-				$ta
240
-					.off('autosize')
241
-					.off('.autosize')
242
-					.css(originalStyles)
243
-					.removeData('autosize');
244
-			});
245
-
246
-			// Call adjust in case the textarea already contains text.
247
-			adjust();
248
-		});
249
-	};
250
-}(window.jQuery || window.$)); // jQuery or jQuery-like library, such as Zepto

+ 0
- 110
libs/popover.js Прегледај датотеку

@@ -1,110 +0,0 @@
1
-/* ========================================================================
2
- * Bootstrap: popover.js v3.1.1
3
- * http://getbootstrap.com/javascript/#popovers
4
- * ========================================================================
5
- * Copyright 2011-2014 Twitter, Inc.
6
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
7
- * ======================================================================== */
8
-
9
-
10
-+function ($) {
11
-  'use strict';
12
-
13
-  // POPOVER PUBLIC CLASS DEFINITION
14
-  // ===============================
15
-
16
-  var Popover = function (element, options) {
17
-    this.init('popover', element, options)
18
-  }
19
-
20
-  if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
21
-
22
-  Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
23
-    placement: 'right',
24
-    trigger: 'click',
25
-    content: '',
26
-    template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
27
-  })
28
-
29
-
30
-  // NOTE: POPOVER EXTENDS tooltip.js
31
-  // ================================
32
-
33
-  Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
34
-
35
-  Popover.prototype.constructor = Popover
36
-
37
-  Popover.prototype.getDefaults = function () {
38
-    return Popover.DEFAULTS
39
-  }
40
-
41
-  Popover.prototype.setContent = function () {
42
-    var $tip    = this.tip()
43
-    var title   = this.getTitle()
44
-    var content = this.getContent()
45
-
46
-    $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
47
-    $tip.find('.popover-content')[ // we use append for html objects to maintain js events
48
-      this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
49
-    ](content)
50
-
51
-    $tip.removeClass('fade top bottom left right in')
52
-
53
-    // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
54
-    // this manually by checking the contents.
55
-    if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
56
-  }
57
-
58
-  Popover.prototype.hasContent = function () {
59
-    return this.getTitle() || this.getContent()
60
-  }
61
-
62
-  Popover.prototype.getContent = function () {
63
-    var $e = this.$element
64
-    var o  = this.options
65
-
66
-    return $e.attr('data-content')
67
-      || (typeof o.content == 'function' ?
68
-            o.content.call($e[0]) :
69
-            o.content)
70
-  }
71
-
72
-  Popover.prototype.arrow = function () {
73
-    return this.$arrow = this.$arrow || this.tip().find('.arrow')
74
-  }
75
-
76
-  Popover.prototype.tip = function () {
77
-    if (!this.$tip) this.$tip = $(this.options.template)
78
-    return this.$tip
79
-  }
80
-
81
-
82
-  // POPOVER PLUGIN DEFINITION
83
-  // =========================
84
-
85
-  var old = $.fn.popover
86
-
87
-  $.fn.popover = function (option) {
88
-    return this.each(function () {
89
-      var $this   = $(this)
90
-      var data    = $this.data('bs.popover')
91
-      var options = typeof option == 'object' && option
92
-
93
-      if (!data && option == 'destroy') return
94
-      if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
95
-      if (typeof option == 'string') data[option]()
96
-    })
97
-  }
98
-
99
-  $.fn.popover.Constructor = Popover
100
-
101
-
102
-  // POPOVER NO CONFLICT
103
-  // ===================
104
-
105
-  $.fn.popover.noConflict = function () {
106
-    $.fn.popover = old
107
-    return this
108
-  }
109
-
110
-}(jQuery);

+ 0
- 422
libs/tooltip.js Прегледај датотеку

@@ -1,422 +0,0 @@
1
-/* ========================================================================
2
- * Bootstrap: tooltip.js v3.1.1
3
- * http://getbootstrap.com/javascript/#tooltip
4
- * Inspired by the original jQuery.tipsy by Jason Frame
5
- * ========================================================================
6
- * Copyright 2011-2014 Twitter, Inc.
7
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
8
- * ======================================================================== */
9
-
10
-
11
-+function ($) {
12
-  'use strict';
13
-
14
-  // TOOLTIP PUBLIC CLASS DEFINITION
15
-  // ===============================
16
-
17
-  var Tooltip = function (element, options) {
18
-    this.type       =
19
-    this.options    =
20
-    this.enabled    =
21
-    this.timeout    =
22
-    this.hoverState =
23
-    this.$element   = null
24
-
25
-    this.init('tooltip', element, options)
26
-  }
27
-
28
-  Tooltip.DEFAULTS = {
29
-    animation: true,
30
-    placement: 'top',
31
-    selector: false,
32
-    template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
33
-    trigger: 'hover focus',
34
-    title: '',
35
-    delay: 0,
36
-    html: false,
37
-    container: false
38
-  }
39
-
40
-  Tooltip.prototype.init = function (type, element, options) {
41
-    this.enabled  = true
42
-    this.type     = type
43
-    this.$element = $(element)
44
-    this.options  = this.getOptions(options)
45
-
46
-    var triggers = this.options.trigger.split(' ')
47
-
48
-    for (var i = triggers.length; i--;) {
49
-      var trigger = triggers[i]
50
-
51
-      if (trigger == 'click') {
52
-        this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
53
-      } else if (trigger != 'manual') {
54
-        var eventIn  = trigger == 'hover' ? 'mouseenter' : 'focusin'
55
-        var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'
56
-
57
-        this.$element.on(eventIn  + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
58
-        this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
59
-      }
60
-    }
61
-
62
-    this.options.selector ?
63
-      (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
64
-      this.fixTitle()
65
-  }
66
-
67
-  Tooltip.prototype.getDefaults = function () {
68
-    return Tooltip.DEFAULTS
69
-  }
70
-
71
-  Tooltip.prototype.getOptions = function (options) {
72
-    options = $.extend({}, this.getDefaults(), this.$element.data(), options)
73
-
74
-    if (options.delay && typeof options.delay == 'number') {
75
-      options.delay = {
76
-        show: options.delay,
77
-        hide: options.delay
78
-      }
79
-    }
80
-
81
-    return options
82
-  }
83
-
84
-  Tooltip.prototype.getDelegateOptions = function () {
85
-    var options  = {}
86
-    var defaults = this.getDefaults()
87
-
88
-    this._options && $.each(this._options, function (key, value) {
89
-      if (defaults[key] != value) options[key] = value
90
-    })
91
-
92
-    return options
93
-  }
94
-
95
-  Tooltip.prototype.enter = function (obj) {
96
-    var self = obj instanceof this.constructor ?
97
-      obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
98
-
99
-    clearTimeout(self.timeout)
100
-
101
-    self.hoverState = 'in'
102
-
103
-    if (!self.options.delay || !self.options.delay.show) return self.show()
104
-
105
-    self.timeout = setTimeout(function () {
106
-      if (self.hoverState == 'in') self.show()
107
-    }, self.options.delay.show)
108
-  }
109
-
110
-  Tooltip.prototype.leave = function (obj) {
111
-    var self = obj instanceof this.constructor ?
112
-      obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
113
-
114
-    clearTimeout(self.timeout)
115
-
116
-    self.hoverState = 'out'
117
-
118
-    if (!self.options.delay || !self.options.delay.hide) return self.hide()
119
-
120
-    self.timeout = setTimeout(function () {
121
-      if (self.hoverState == 'out') self.hide()
122
-    }, self.options.delay.hide)
123
-  }
124
-
125
-  Tooltip.prototype.show = function () {
126
-    var e = $.Event('show.bs.' + this.type)
127
-
128
-    if (this.hasContent() && this.enabled) {
129
-      this.$element.trigger(e)
130
-
131
-      if (e.isDefaultPrevented()) return
132
-      var that = this;
133
-
134
-      var $tip = this.tip()
135
-
136
-      this.setContent()
137
-
138
-      if (this.options.animation) $tip.addClass('fade')
139
-
140
-      var placement = typeof this.options.placement == 'function' ?
141
-        this.options.placement.call(this, $tip[0], this.$element[0]) :
142
-        this.options.placement
143
-
144
-      var autoToken = /\s?auto?\s?/i
145
-      var autoPlace = autoToken.test(placement)
146
-      if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
147
-
148
-      $tip
149
-        .detach()
150
-        .css({ top: 0, left: 0, display: 'block' })
151
-        .addClass(placement)
152
-
153
-      this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
154
-
155
-      var pos          = this.getPosition()
156
-      var actualWidth  = $tip[0].offsetWidth
157
-      var actualHeight = $tip[0].offsetHeight
158
-
159
-      if (autoPlace) {
160
-        var $parent = this.$element.parent()
161
-
162
-        var orgPlacement = placement
163
-        var docScroll    = document.documentElement.scrollTop || document.body.scrollTop
164
-        var parentWidth  = this.options.container == 'body' ? window.innerWidth  : $parent.outerWidth()
165
-        var parentHeight = this.options.container == 'body' ? window.innerHeight : $parent.outerHeight()
166
-        var parentLeft   = this.options.container == 'body' ? 0 : $parent.offset().left
167
-
168
-        placement = placement == 'bottom' && pos.top   + pos.height  + actualHeight - docScroll > parentHeight  ? 'top'    :
169
-                    placement == 'top'    && pos.top   - docScroll   - actualHeight < 0                         ? 'bottom' :
170
-                    placement == 'right'  && pos.right + actualWidth > parentWidth                              ? 'left'   :
171
-                    placement == 'left'   && pos.left  - actualWidth < parentLeft                               ? 'right'  :
172
-                    placement
173
-
174
-        $tip
175
-          .removeClass(orgPlacement)
176
-          .addClass(placement)
177
-      }
178
-
179
-      var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
180
-
181
-      this.applyPlacement(calculatedOffset, placement)
182
-      this.hoverState = null
183
-
184
-      var complete = function() {
185
-        that.$element.trigger('shown.bs.' + that.type)
186
-      }
187
-
188
-      var deltas = {
189
-          "bottom": $tip[0].getBoundingClientRect().bottom - window.innerHeight,
190
-          "right": $tip[0].getBoundingClientRect().right - window.innerWidth,
191
-          "left": -$tip[0].getBoundingClientRect().left,
192
-          "top": -$tip[0].getBoundingClientRect().top
193
-      };
194
-      for(var direction in deltas) {
195
-          if (deltas[direction] > 0) {
196
-              var delta = deltas[direction];
197
-              if(direction === "right" || direction === "bottom") {
198
-                  delta = -delta;
199
-              }
200
-              direction = direction === "top" || direction === "bottom" ? "top" : "left";
201
-              var currentPosition = parseInt($tip.css(direction), 10);
202
-              $tip.css(direction, currentPosition + delta);
203
-              if(direction === "left") {
204
-                  $tip.children(".arrow").css(direction, parseInt($tip.children(".arrow").css(direction), 10) - delta);
205
-              } else {
206
-                  $tip.children(".arrow").css(direction, 50 - $tip[0].getBoundingClientRect().height / delta + "%");
207
-              }
208
-          }
209
-      }
210
-
211
-      $.support.transition && this.$tip.hasClass('fade') ?
212
-        $tip
213
-          .one($.support.transition.end, complete)
214
-          .emulateTransitionEnd(150) :
215
-        complete()
216
-    }
217
-  }
218
-
219
-  Tooltip.prototype.applyPlacement = function (offset, placement) {
220
-    var replace
221
-    var $tip   = this.tip()
222
-    var width  = $tip[0].offsetWidth
223
-    var height = $tip[0].offsetHeight
224
-
225
-    // manually read margins because getBoundingClientRect includes difference
226
-    var marginTop = parseInt($tip.css('margin-top'), 10)
227
-    var marginLeft = parseInt($tip.css('margin-left'), 10)
228
-
229
-    // we must check for NaN for ie 8/9
230
-    if (isNaN(marginTop))  marginTop  = 0
231
-    if (isNaN(marginLeft)) marginLeft = 0
232
-
233
-    offset.top  = offset.top  + marginTop
234
-    offset.left = offset.left + marginLeft
235
-
236
-    // $.fn.offset doesn't round pixel values
237
-    // so we use setOffset directly with our own function B-0
238
-    $.offset.setOffset($tip[0], $.extend({
239
-      using: function (props) {
240
-        $tip.css({
241
-          top: Math.round(props.top),
242
-          left: Math.round(props.left)
243
-        })
244
-      }
245
-    }, offset), 0)
246
-
247
-    $tip.addClass('in')
248
-
249
-    // check to see if placing tip in new offset caused the tip to resize itself
250
-    var actualWidth  = $tip[0].offsetWidth
251
-    var actualHeight = $tip[0].offsetHeight
252
-
253
-    if (placement == 'top' && actualHeight != height) {
254
-      replace = true
255
-      offset.top = offset.top + height - actualHeight
256
-    }
257
-
258
-    if (/bottom|top/.test(placement)) {
259
-      var delta = 0
260
-
261
-      if (offset.left < 0) {
262
-        delta       = offset.left * -2
263
-        offset.left = 0
264
-
265
-        $tip.offset(offset)
266
-
267
-        actualWidth  = $tip[0].offsetWidth
268
-        actualHeight = $tip[0].offsetHeight
269
-      }
270
-
271
-      this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')
272
-    } else {
273
-      this.replaceArrow(actualHeight - height, actualHeight, 'top')
274
-    }
275
-
276
-    if (replace) $tip.offset(offset)
277
-  }
278
-
279
-  Tooltip.prototype.replaceArrow = function (delta, dimension, position) {
280
-    this.arrow().css(position, delta ? (50 * (1 - delta / dimension) + '%') : '')
281
-  }
282
-
283
-  Tooltip.prototype.setContent = function () {
284
-    var $tip  = this.tip()
285
-    var title = this.getTitle()
286
-
287
-    $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
288
-    $tip.removeClass('fade in top bottom left right')
289
-  }
290
-
291
-  Tooltip.prototype.hide = function () {
292
-    var that = this
293
-    var $tip = this.tip()
294
-    var e    = $.Event('hide.bs.' + this.type)
295
-
296
-    function complete() {
297
-      if (that.hoverState != 'in') $tip.detach()
298
-      that.$element.trigger('hidden.bs.' + that.type)
299
-    }
300
-
301
-    this.$element.trigger(e)
302
-
303
-    if (e.isDefaultPrevented()) return
304
-
305
-    $tip.removeClass('in')
306
-
307
-    $.support.transition && this.$tip.hasClass('fade') ?
308
-      $tip
309
-        .one($.support.transition.end, complete)
310
-        .emulateTransitionEnd(150) :
311
-      complete()
312
-
313
-    this.hoverState = null
314
-
315
-    return this
316
-  }
317
-
318
-  Tooltip.prototype.fixTitle = function () {
319
-    var $e = this.$element
320
-    if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
321
-      $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
322
-    }
323
-  }
324
-
325
-  Tooltip.prototype.hasContent = function () {
326
-    return this.getTitle()
327
-  }
328
-
329
-  Tooltip.prototype.getPosition = function () {
330
-    var el = this.$element[0]
331
-    return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {
332
-      width: el.offsetWidth,
333
-      height: el.offsetHeight
334
-    }, this.$element.offset())
335
-  }
336
-
337
-  Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
338
-    return placement == 'bottom' ? { top: pos.top + pos.height,   left: pos.left + pos.width / 2 - actualWidth / 2  } :
339
-           placement == 'top'    ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2  } :
340
-           placement == 'left'   ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
341
-        /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width   }
342
-  }
343
-
344
-  Tooltip.prototype.getTitle = function () {
345
-    var title
346
-    var $e = this.$element
347
-    var o  = this.options
348
-
349
-    title = $e.attr('data-original-title')
350
-      || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
351
-
352
-    return title
353
-  }
354
-
355
-  Tooltip.prototype.tip = function () {
356
-    return this.$tip = this.$tip || $(this.options.template)
357
-  }
358
-
359
-  Tooltip.prototype.arrow = function () {
360
-    return this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow')
361
-  }
362
-
363
-  Tooltip.prototype.validate = function () {
364
-    if (!this.$element[0].parentNode) {
365
-      this.hide()
366
-      this.$element = null
367
-      this.options  = null
368
-    }
369
-  }
370
-
371
-  Tooltip.prototype.enable = function () {
372
-    this.enabled = true
373
-  }
374
-
375
-  Tooltip.prototype.disable = function () {
376
-    this.enabled = false
377
-  }
378
-
379
-  Tooltip.prototype.toggleEnabled = function () {
380
-    this.enabled = !this.enabled
381
-  }
382
-
383
-  Tooltip.prototype.toggle = function (e) {
384
-    var self = e ? $(e.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type) : this
385
-    self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
386
-  }
387
-
388
-  Tooltip.prototype.destroy = function () {
389
-    clearTimeout(this.timeout)
390
-    this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
391
-  }
392
-
393
-
394
-  // TOOLTIP PLUGIN DEFINITION
395
-  // =========================
396
-
397
-  var old = $.fn.tooltip
398
-
399
-  $.fn.tooltip = function (option) {
400
-    return this.each(function () {
401
-      var $this   = $(this)
402
-      var data    = $this.data('bs.tooltip')
403
-      var options = typeof option == 'object' && option
404
-
405
-      if (!data && option == 'destroy') return
406
-      if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
407
-      if (typeof option == 'string') data[option]()
408
-    })
409
-  }
410
-
411
-  $.fn.tooltip.Constructor = Tooltip
412
-
413
-
414
-  // TOOLTIP NO CONFLICT
415
-  // ===================
416
-
417
-  $.fn.tooltip.noConflict = function () {
418
-    $.fn.tooltip = old
419
-    return this
420
-  }
421
-
422
-}(jQuery);

+ 3
- 7
package.json Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 {
2
-  "name": "jitsi-meet",
2
+  "name": "lib-jitsi-meet",
3 3
   "version": "0.0.0",
4
-  "description": "A sample app for the Jitsi Videobridge",
4
+  "description": "JS library for accessing Jitsi server side deployments",
5 5
   "repository": {
6 6
     "type": "git",
7 7
     "url": "git://github.com/jitsi/jitsi-meet"
@@ -14,24 +14,20 @@
14 14
   ],
15 15
   "author": "",
16 16
   "readmeFilename": "README.md",
17
-  "//": "Callstats.io does not work with recent versions of jsSHA (2.0.1 in particular)",
18 17
   "dependencies": {
19 18
       "events": "*",
20 19
       "pako": "*",
21
-      "i18next-client": "1.7.7",
22 20
       "sdp-interop": "0.1.10",
23 21
       "sdp-transform": "1.4.1",
24 22
       "sdp-simulcast": "0.1.2",
25 23
       "async": "0.9.0",
26 24
       "retry": "0.6.1",
27 25
       "jssha": "1.5.0",
28
-      "socket.io-client": "1.3.6",
29 26
       "es6-promise": "*",
30 27
       "jitsi-meet-logger": "jitsi/jitsi-meet-logger"
31 28
   },
32 29
   "devDependencies": {
33
-    "browserify": "11.1.x",
34
-    "browserify-shim": "^3.8.10"
30
+    "browserify": "11.1.x"
35 31
   },
36 32
   "license": "Apache-2.0"
37 33
 }

Loading…
Откажи
Сачувај