mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
fixed app.loadJQueryUI; minified jquery-ui.js; removed jqueryui from cold load payload; fixed broken image paths
This commit is contained in:
@@ -501,7 +501,7 @@ app.cacheBuster = null;
|
|||||||
|
|
||||||
var scriptEl = document.createElement('script');
|
var scriptEl = document.createElement('script');
|
||||||
scriptEl.type = 'text/javascript';
|
scriptEl.type = 'text/javascript';
|
||||||
scriptEl.src = config.relative_path + '/vendor/jquery/js/jquery-ui-1.10.4.custom.js' + (app.cacheBuster ? '?v=' + app.cacheBuster : '');
|
scriptEl.src = config.relative_path + '/vendor/jquery/js/jquery-ui.js' + (app.cacheBuster ? '?v=' + app.cacheBuster : '');
|
||||||
scriptEl.onload = callback;
|
scriptEl.onload = callback;
|
||||||
document.head.appendChild(scriptEl);
|
document.head.appendChild(scriptEl);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -442,7 +442,7 @@
|
|||||||
}
|
}
|
||||||
.ui-widget-header {
|
.ui-widget-header {
|
||||||
border: 1px solid #aaaaaa;
|
border: 1px solid #aaaaaa;
|
||||||
background: #cccccc url("images/ui-bg_highlight-soft_75_cccccc_1x100.png") 50% 50% repeat-x;
|
background: #cccccc url("./vendor/jquery/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png") 50% 50% repeat-x;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@@ -462,7 +462,7 @@ works properly when clicked or hovered */
|
|||||||
html .ui-button.ui-state-disabled:hover,
|
html .ui-button.ui-state-disabled:hover,
|
||||||
html .ui-button.ui-state-disabled:active {
|
html .ui-button.ui-state-disabled:active {
|
||||||
border: 1px solid #d3d3d3;
|
border: 1px solid #d3d3d3;
|
||||||
background: #e6e6e6 url("images/ui-bg_glass_75_e6e6e6_1x400.png") 50% 50% repeat-x;
|
background: #e6e6e6 url("./vendor/jquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png") 50% 50% repeat-x;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #555555;
|
color: #555555;
|
||||||
}
|
}
|
||||||
@@ -485,7 +485,7 @@ a:visited.ui-button,
|
|||||||
.ui-button:hover,
|
.ui-button:hover,
|
||||||
.ui-button:focus {
|
.ui-button:focus {
|
||||||
border: 1px solid #999999;
|
border: 1px solid #999999;
|
||||||
background: #dadada url("images/ui-bg_glass_75_dadada_1x400.png") 50% 50% repeat-x;
|
background: #dadada url("./vendor/jquery/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png") 50% 50% repeat-x;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #212121;
|
color: #212121;
|
||||||
}
|
}
|
||||||
@@ -513,7 +513,7 @@ a.ui-button:active,
|
|||||||
.ui-button:active,
|
.ui-button:active,
|
||||||
.ui-button.ui-state-active:hover {
|
.ui-button.ui-state-active:hover {
|
||||||
border: 1px solid #aaaaaa;
|
border: 1px solid #aaaaaa;
|
||||||
background: #ffffff url("images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x;
|
background: #ffffff url("./vendor/jquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #212121;
|
color: #212121;
|
||||||
}
|
}
|
||||||
@@ -535,7 +535,7 @@ a.ui-button:active,
|
|||||||
.ui-widget-content .ui-state-highlight,
|
.ui-widget-content .ui-state-highlight,
|
||||||
.ui-widget-header .ui-state-highlight {
|
.ui-widget-header .ui-state-highlight {
|
||||||
border: 1px solid #fcefa1;
|
border: 1px solid #fcefa1;
|
||||||
background: #fbf9ee url("images/ui-bg_glass_55_fbf9ee_1x400.png") 50% 50% repeat-x;
|
background: #fbf9ee url("./vendor/jquery/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png") 50% 50% repeat-x;
|
||||||
color: #363636;
|
color: #363636;
|
||||||
}
|
}
|
||||||
.ui-state-checked {
|
.ui-state-checked {
|
||||||
@@ -551,7 +551,7 @@ a.ui-button:active,
|
|||||||
.ui-widget-content .ui-state-error,
|
.ui-widget-content .ui-state-error,
|
||||||
.ui-widget-header .ui-state-error {
|
.ui-widget-header .ui-state-error {
|
||||||
border: 1px solid #cd0a0a;
|
border: 1px solid #cd0a0a;
|
||||||
background: #fef1ec url("images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x;
|
background: #fef1ec url("./vendor/jquery/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x;
|
||||||
color: #cd0a0a;
|
color: #cd0a0a;
|
||||||
}
|
}
|
||||||
.ui-state-error a,
|
.ui-state-error a,
|
||||||
@@ -597,32 +597,32 @@ a.ui-button:active,
|
|||||||
}
|
}
|
||||||
.ui-icon,
|
.ui-icon,
|
||||||
.ui-widget-content .ui-icon {
|
.ui-widget-content .ui-icon {
|
||||||
background-image: url("images/ui-icons_222222_256x240.png");
|
background-image: url("./vendor/jquery/css/smoothness/images/ui-icons_222222_256x240.png");
|
||||||
}
|
}
|
||||||
.ui-widget-header .ui-icon {
|
.ui-widget-header .ui-icon {
|
||||||
background-image: url("images/ui-icons_222222_256x240.png");
|
background-image: url("./vendor/jquery/css/smoothness/images/ui-icons_222222_256x240.png");
|
||||||
}
|
}
|
||||||
.ui-button .ui-icon {
|
.ui-button .ui-icon {
|
||||||
background-image: url("images/ui-icons_888888_256x240.png");
|
background-image: url("./vendor/jquery/css/smoothness/images/ui-icons_888888_256x240.png");
|
||||||
}
|
}
|
||||||
.ui-state-hover .ui-icon,
|
.ui-state-hover .ui-icon,
|
||||||
.ui-state-focus .ui-icon,
|
.ui-state-focus .ui-icon,
|
||||||
.ui-button:hover .ui-icon,
|
.ui-button:hover .ui-icon,
|
||||||
.ui-button:focus .ui-icon,
|
.ui-button:focus .ui-icon,
|
||||||
.ui-state-default .ui-icon {
|
.ui-state-default .ui-icon {
|
||||||
background-image: url("images/ui-icons_454545_256x240.png");
|
background-image: url("./vendor/jquery/css/smoothness/images/ui-icons_454545_256x240.png");
|
||||||
}
|
}
|
||||||
.ui-state-active .ui-icon,
|
.ui-state-active .ui-icon,
|
||||||
.ui-button:active .ui-icon {
|
.ui-button:active .ui-icon {
|
||||||
background-image: url("images/ui-icons_454545_256x240.png");
|
background-image: url("./vendor/jquery/css/smoothness/images/ui-icons_454545_256x240.png");
|
||||||
}
|
}
|
||||||
.ui-state-highlight .ui-icon,
|
.ui-state-highlight .ui-icon,
|
||||||
.ui-button .ui-state-highlight.ui-icon {
|
.ui-button .ui-state-highlight.ui-icon {
|
||||||
background-image: url("images/ui-icons_2e83ff_256x240.png");
|
background-image: url("./vendor/jquery/css/smoothness/images/ui-icons_2e83ff_256x240.png");
|
||||||
}
|
}
|
||||||
.ui-state-error .ui-icon,
|
.ui-state-error .ui-icon,
|
||||||
.ui-state-error-text .ui-icon {
|
.ui-state-error-text .ui-icon {
|
||||||
background-image: url("images/ui-icons_cd0a0a_256x240.png");
|
background-image: url("./vendor/jquery/css/smoothness/images/ui-icons_cd0a0a_256x240.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* positioning */
|
/* positioning */
|
||||||
|
|||||||
9857
public/vendor/jquery/js/jquery-ui.js
vendored
9857
public/vendor/jquery/js/jquery-ui.js
vendored
File diff suppressed because one or more lines are too long
@@ -19,7 +19,6 @@ module.exports = function(Meta) {
|
|||||||
base: [
|
base: [
|
||||||
'./node_modules/jquery/dist/jquery.js',
|
'./node_modules/jquery/dist/jquery.js',
|
||||||
'./node_modules/socket.io-client/socket.io.js',
|
'./node_modules/socket.io-client/socket.io.js',
|
||||||
'public/vendor/jquery/js/jquery-ui.js',
|
|
||||||
'public/vendor/jquery/timeago/jquery.timeago.js',
|
'public/vendor/jquery/timeago/jquery.timeago.js',
|
||||||
'public/vendor/jquery/js/jquery.form.min.js',
|
'public/vendor/jquery/js/jquery.form.min.js',
|
||||||
'public/vendor/visibility/visibility.min.js',
|
'public/vendor/visibility/visibility.min.js',
|
||||||
|
|||||||
@@ -50,9 +50,6 @@ module.exports = function(Meta) {
|
|||||||
}, {
|
}, {
|
||||||
rel: "manifest",
|
rel: "manifest",
|
||||||
href: nconf.get('relative_path') + '/manifest.json'
|
href: nconf.get('relative_path') + '/manifest.json'
|
||||||
}, {
|
|
||||||
rel: "prefetch",
|
|
||||||
href: nconf.get('relative_path') + '/vendor/jquery/js/jquery-ui-1.10.4.custom.js' + (Meta.config['cache-buster'] ? '?v=' + Meta.config['cache-buster'] : '')
|
|
||||||
}];
|
}];
|
||||||
|
|
||||||
// Touch icons for mobile-devices
|
// Touch icons for mobile-devices
|
||||||
|
|||||||
Reference in New Issue
Block a user