You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/09/07 12:42:50 UTC

[cloudstack] branch 4.15 updated: ui: use local copy of less.min.js

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.15 by this push:
     new 10459de  ui: use local copy of less.min.js
10459de is described below

commit 10459de71b9f2ed30ab53dc171d98f8494489780
Author: mib85 <ma...@mib85.de>
AuthorDate: Tue Sep 7 18:11:45 2021 +0530

    ui: use local copy of less.min.js
    
    Fixes #5277
---
 ui/public/js/less.min.js | 17 +++++++++++++++++
 ui/theme.config.js       |  1 +
 2 files changed, 18 insertions(+)

diff --git a/ui/public/js/less.min.js b/ui/public/js/less.min.js
new file mode 100644
index 0000000..6319704
--- /dev/null
+++ b/ui/public/js/less.min.js
@@ -0,0 +1,17 @@
+/*!
+ * Less - Leaner CSS v2.7.2
+ * http://lesscss.org
+ *
+ * Copyright (c) 2009-2017, Alexis Sellier <se...@cloudhead.net>
+ * Licensed under the Apache-2.0 License.
+ *
+ */
+
+ /** * @license Apache-2.0
+ */
+
+!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.less=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code [...]
+"../tree/quoted":73,"./function-registry":22}],28:[function(a,b,c){b.exports=function(b){var c=a("../tree/dimension"),d=a("../tree/color"),e=a("../tree/expression"),f=a("../tree/quoted"),g=a("../tree/url"),h=a("./function-registry");h.add("svg-gradient",function(a){function b(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}var h,i,j,k,l,m,n,o,p="linear",q='x="0" y="0"  [...]
+c(f,e,this.fileInfo)}catch(h){b(new d({message:"Plugin evaluation error: '"+h.name+": "+h.message.replace(/["]/g,"'")+"'",filename:this.fileInfo.filename}),null)}b(null,{functions:g})}},{"../less-error":32,"../tree":62}],41:[function(a,b,c){var d;b.exports=function(b,c,e){var f=function(b,e,g){if("function"==typeof e&&(g=e,e={}),!g){d||(d="undefined"==typeof Promise?a("promise"):Promise);var h=this;return new d(function(a,c){f.call(h,b,e,function(b,d){b?c(b):a(d)})})}this.parse(b,e,funct [...]
+stack:D.stack}}if(v)return u}throw n?{type:"Runtime",message:"No matching definition was found for `"+this.format(t)+"`",index:this.index,filename:this.currentFileInfo.filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.index,filename:this.currentFileInfo.filename}},h.prototype._setVisibilityToReplacement=function(a){var b,c;if(this.blocksVisibility())for(b=0;b<a.length;b++)c=a[b],c.addVisibilityBlock()},h.prototype.format=function(a){return this.select [...]
+this.imports=this.imports.slice(1),a.callback.apply(null,a.args)}if(0===this.variableImports.length)break;var b=this.variableImports[0];this.variableImports=this.variableImports.slice(1),b()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()},b.exports=d},{}],86:[function(a,b,c){var d=a("../contexts"),e=a("./visitor"),f=a("./import-sequencer"),g=function(a,b){this._visitor=new e(this),this._importer=a,this._finish=b,this.context=new d.E [...]
\ No newline at end of file
diff --git a/ui/theme.config.js b/ui/theme.config.js
index 8a41c49..877ca74 100644
--- a/ui/theme.config.js
+++ b/ui/theme.config.js
@@ -48,6 +48,7 @@ const options = {
     '@border-radius-base',
     '@box-shadow-base'
   ],
+  lessUrl: 'js/less.min.js',
   indexFileName: 'index.html',
   publicPath: '.',
   generateOnce: false