mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 18:22:21 +00:00
more submodules, including only using sortablef or jquery-ui
This commit is contained in:
parent
f0602b69fc
commit
f25a53c3b6
6 changed files with 17 additions and 103 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
|
@ -10,3 +10,9 @@
|
|||
[submodule "public/vendor/github-buttons"]
|
||||
path = public/vendor/github-buttons
|
||||
url = https://github.com/mdo/github-buttons.git
|
||||
[submodule "public/vendor/jquery-cookie"]
|
||||
path = public/vendor/jquery-cookie
|
||||
url = https://github.com/carhartl/jquery-cookie.git
|
||||
[submodule "public/vendor/jquery-ui"]
|
||||
path = public/vendor/jquery-ui
|
||||
url = https://github.com/jquery/jquery-ui.git
|
||||
|
|
|
|||
39
public/vendor/google-jsapi.js
vendored
39
public/vendor/google-jsapi.js
vendored
File diff suppressed because one or more lines are too long
1
public/vendor/jquery-cookie
vendored
Submodule
1
public/vendor/jquery-cookie
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit cefb0c399960553edae76f91f9fc5470a1c3bc04
|
||||
1
public/vendor/jquery-ui
vendored
Submodule
1
public/vendor/jquery-ui
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit f78c8ca22c12fbfc72f6b9b1964739f864f90dca
|
||||
61
public/vendor/jquery.cookie.js
vendored
61
public/vendor/jquery.cookie.js
vendored
|
|
@ -1,61 +0,0 @@
|
|||
/*jshint eqnull:true */
|
||||
/*!
|
||||
* jQuery Cookie Plugin v1.1
|
||||
* https://github.com/carhartl/jquery-cookie
|
||||
*
|
||||
* Copyright 2011, Klaus Hartl
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.opensource.org/licenses/GPL-2.0
|
||||
*/
|
||||
(function($, document) {
|
||||
|
||||
var pluses = /\+/g;
|
||||
function raw(s) {
|
||||
return s;
|
||||
}
|
||||
function decoded(s) {
|
||||
return decodeURIComponent(s.replace(pluses, ' '));
|
||||
}
|
||||
|
||||
$.cookie = function(key, value, options) {
|
||||
|
||||
// key and at least value given, set cookie...
|
||||
if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value == null)) {
|
||||
options = $.extend({}, $.cookie.defaults, options);
|
||||
|
||||
if (value == null) {
|
||||
options.expires = -1;
|
||||
}
|
||||
|
||||
if (typeof options.expires === 'number') {
|
||||
var days = options.expires, t = options.expires = new Date();
|
||||
t.setDate(t.getDate() + days);
|
||||
}
|
||||
|
||||
value = String(value);
|
||||
|
||||
return (document.cookie = [
|
||||
encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value),
|
||||
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
|
||||
options.path ? '; path=' + options.path : '',
|
||||
options.domain ? '; domain=' + options.domain : '',
|
||||
options.secure ? '; secure' : ''
|
||||
].join(''));
|
||||
}
|
||||
|
||||
// key and possibly options given, get cookie...
|
||||
options = value || $.cookie.defaults || {};
|
||||
var decode = options.raw ? raw : decoded;
|
||||
var cookies = document.cookie.split('; ');
|
||||
for (var i = 0, parts; (parts = cookies[i] && cookies[i].split('=')); i++) {
|
||||
if (decode(parts.shift()) === key) {
|
||||
return decode(parts.join('='));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
$.cookie.defaults = {};
|
||||
|
||||
})(jQuery, document);
|
||||
|
|
@ -32,8 +32,14 @@ module.exports.app = (appExports, model) ->
|
|||
###
|
||||
loadJavaScripts = (model) ->
|
||||
|
||||
require '../../public/vendor/jquery.min'
|
||||
require '../../public/vendor/jquery-ui.min' unless model.get('_view.mobileDevice')
|
||||
require '../../public/vendor/jquery-ui/jquery-1.9.1'
|
||||
unless model.get('_view.mobileDevice')
|
||||
require '../../public/vendor/jquery-ui/ui/jquery.ui.core'
|
||||
require '../../public/vendor/jquery-ui/ui/jquery.ui.widget'
|
||||
require '../../public/vendor/jquery-ui/ui/jquery.ui.mouse'
|
||||
require '../../public/vendor/jquery-ui/ui/jquery.ui.draggable'
|
||||
require '../../public/vendor/jquery-ui/ui/jquery.ui.position'
|
||||
require '../../public/vendor/jquery-ui/ui/jquery.ui.sortable'
|
||||
|
||||
# Bootstrap
|
||||
require '../../public/vendor/bootstrap/js/bootstrap-tooltip'
|
||||
|
|
@ -43,7 +49,7 @@ loadJavaScripts = (model) ->
|
|||
require '../../public/vendor/bootstrap/js/bootstrap-dropdown'
|
||||
|
||||
|
||||
require '../../public/vendor/jquery.cookie' #https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js
|
||||
require '../../public/vendor/jquery-cookie/jquery.cookie'
|
||||
require '../../public/vendor/bootstrap-tour' #https://raw.github.com/pushly/bootstrap-tour/master/bootstrap-tour.js
|
||||
require '../../public/vendor/bootstrap-datepicker/js/bootstrap-datepicker'
|
||||
require '../../public/vendor/bootstrap-growl/jquery.bootstrap-growl.min'
|
||||
|
|
|
|||
Loading…
Reference in a new issue