first commit
This commit is contained in:
85
app_vue/node_modules/css-loader/dist/runtime/api.js
generated
vendored
Normal file
85
app_vue/node_modules/css-loader/dist/runtime/api.js
generated
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
"use strict";
|
||||
|
||||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
Author Tobias Koppers @sokra
|
||||
*/
|
||||
module.exports = function (cssWithMappingToString) {
|
||||
var list = [];
|
||||
|
||||
// return the list of modules as css string
|
||||
list.toString = function toString() {
|
||||
return this.map(function (item) {
|
||||
var content = "";
|
||||
var needLayer = typeof item[5] !== "undefined";
|
||||
if (item[4]) {
|
||||
content += "@supports (".concat(item[4], ") {");
|
||||
}
|
||||
if (item[2]) {
|
||||
content += "@media ".concat(item[2], " {");
|
||||
}
|
||||
if (needLayer) {
|
||||
content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
|
||||
}
|
||||
content += cssWithMappingToString(item);
|
||||
if (needLayer) {
|
||||
content += "}";
|
||||
}
|
||||
if (item[2]) {
|
||||
content += "}";
|
||||
}
|
||||
if (item[4]) {
|
||||
content += "}";
|
||||
}
|
||||
return content;
|
||||
}).join("");
|
||||
};
|
||||
|
||||
// import a list of modules into the list
|
||||
list.i = function i(modules, media, dedupe, supports, layer) {
|
||||
if (typeof modules === "string") {
|
||||
modules = [[null, modules, undefined]];
|
||||
}
|
||||
var alreadyImportedModules = {};
|
||||
if (dedupe) {
|
||||
for (var k = 0; k < this.length; k++) {
|
||||
var id = this[k][0];
|
||||
if (id != null) {
|
||||
alreadyImportedModules[id] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (var _k = 0; _k < modules.length; _k++) {
|
||||
var item = [].concat(modules[_k]);
|
||||
if (dedupe && alreadyImportedModules[item[0]]) {
|
||||
continue;
|
||||
}
|
||||
if (typeof layer !== "undefined") {
|
||||
if (typeof item[5] === "undefined") {
|
||||
item[5] = layer;
|
||||
} else {
|
||||
item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
|
||||
item[5] = layer;
|
||||
}
|
||||
}
|
||||
if (media) {
|
||||
if (!item[2]) {
|
||||
item[2] = media;
|
||||
} else {
|
||||
item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
|
||||
item[2] = media;
|
||||
}
|
||||
}
|
||||
if (supports) {
|
||||
if (!item[4]) {
|
||||
item[4] = "".concat(supports);
|
||||
} else {
|
||||
item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
|
||||
item[4] = supports;
|
||||
}
|
||||
}
|
||||
list.push(item);
|
||||
}
|
||||
};
|
||||
return list;
|
||||
};
|
26
app_vue/node_modules/css-loader/dist/runtime/getUrl.js
generated
vendored
Normal file
26
app_vue/node_modules/css-loader/dist/runtime/getUrl.js
generated
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (url, options) {
|
||||
if (!options) {
|
||||
options = {};
|
||||
}
|
||||
if (!url) {
|
||||
return url;
|
||||
}
|
||||
url = String(url.__esModule ? url.default : url);
|
||||
|
||||
// If url is already wrapped in quotes, remove them
|
||||
if (/^['"].*['"]$/.test(url)) {
|
||||
url = url.slice(1, -1);
|
||||
}
|
||||
if (options.hash) {
|
||||
url += options.hash;
|
||||
}
|
||||
|
||||
// Should url be wrapped?
|
||||
// See https://drafts.csswg.org/css-values-3/#urls
|
||||
if (/["'() \t\n]|(%20)/.test(url) || options.needQuotes) {
|
||||
return "\"".concat(url.replace(/"/g, '\\"').replace(/\n/g, "\\n"), "\"");
|
||||
}
|
||||
return url;
|
||||
};
|
5
app_vue/node_modules/css-loader/dist/runtime/noSourceMaps.js
generated
vendored
Normal file
5
app_vue/node_modules/css-loader/dist/runtime/noSourceMaps.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (i) {
|
||||
return i[1];
|
||||
};
|
16
app_vue/node_modules/css-loader/dist/runtime/sourceMaps.js
generated
vendored
Normal file
16
app_vue/node_modules/css-loader/dist/runtime/sourceMaps.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (item) {
|
||||
var content = item[1];
|
||||
var cssMapping = item[3];
|
||||
if (!cssMapping) {
|
||||
return content;
|
||||
}
|
||||
if (typeof btoa === "function") {
|
||||
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
|
||||
var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
|
||||
var sourceMapping = "/*# ".concat(data, " */");
|
||||
return [content].concat([sourceMapping]).join("\n");
|
||||
}
|
||||
return [content].join("\n");
|
||||
};
|
Reference in New Issue
Block a user