feat: 添加多项功能和修复
功能新增: - OSS 存储使用情况显示(文件页面) - OSS 当日流量统计(阿里云云监控API) - 分享页面路由修复(/s/xxx 格式支持) Bug修复: - 修复分享页面资源路径(相对路径改绝对路径) - 修复分享码获取逻辑(支持路径格式) - 修复OSS配额undefined显示问题 - 修复登录流程OSS配置检查 - 修复文件数为null时的显示问题 依赖更新: - 添加 @alicloud/cms20190101 云监控SDK - 添加 @alicloud/openapi-client Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
108
backend/node_modules/xmlbuilder/lib/XMLAttribute.js
generated
vendored
Normal file
108
backend/node_modules/xmlbuilder/lib/XMLAttribute.js
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
// Generated by CoffeeScript 1.12.7
|
||||
(function() {
|
||||
var NodeType, XMLAttribute, XMLNode;
|
||||
|
||||
NodeType = require('./NodeType');
|
||||
|
||||
XMLNode = require('./XMLNode');
|
||||
|
||||
module.exports = XMLAttribute = (function() {
|
||||
function XMLAttribute(parent, name, value) {
|
||||
this.parent = parent;
|
||||
if (this.parent) {
|
||||
this.options = this.parent.options;
|
||||
this.stringify = this.parent.stringify;
|
||||
}
|
||||
if (name == null) {
|
||||
throw new Error("Missing attribute name. " + this.debugInfo(name));
|
||||
}
|
||||
this.name = this.stringify.name(name);
|
||||
this.value = this.stringify.attValue(value);
|
||||
this.type = NodeType.Attribute;
|
||||
this.isId = false;
|
||||
this.schemaTypeInfo = null;
|
||||
}
|
||||
|
||||
Object.defineProperty(XMLAttribute.prototype, 'nodeType', {
|
||||
get: function() {
|
||||
return this.type;
|
||||
}
|
||||
});
|
||||
|
||||
Object.defineProperty(XMLAttribute.prototype, 'ownerElement', {
|
||||
get: function() {
|
||||
return this.parent;
|
||||
}
|
||||
});
|
||||
|
||||
Object.defineProperty(XMLAttribute.prototype, 'textContent', {
|
||||
get: function() {
|
||||
return this.value;
|
||||
},
|
||||
set: function(value) {
|
||||
return this.value = value || '';
|
||||
}
|
||||
});
|
||||
|
||||
Object.defineProperty(XMLAttribute.prototype, 'namespaceURI', {
|
||||
get: function() {
|
||||
return '';
|
||||
}
|
||||
});
|
||||
|
||||
Object.defineProperty(XMLAttribute.prototype, 'prefix', {
|
||||
get: function() {
|
||||
return '';
|
||||
}
|
||||
});
|
||||
|
||||
Object.defineProperty(XMLAttribute.prototype, 'localName', {
|
||||
get: function() {
|
||||
return this.name;
|
||||
}
|
||||
});
|
||||
|
||||
Object.defineProperty(XMLAttribute.prototype, 'specified', {
|
||||
get: function() {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
XMLAttribute.prototype.clone = function() {
|
||||
return Object.create(this);
|
||||
};
|
||||
|
||||
XMLAttribute.prototype.toString = function(options) {
|
||||
return this.options.writer.attribute(this, this.options.writer.filterOptions(options));
|
||||
};
|
||||
|
||||
XMLAttribute.prototype.debugInfo = function(name) {
|
||||
name = name || this.name;
|
||||
if (name == null) {
|
||||
return "parent: <" + this.parent.name + ">";
|
||||
} else {
|
||||
return "attribute: {" + name + "}, parent: <" + this.parent.name + ">";
|
||||
}
|
||||
};
|
||||
|
||||
XMLAttribute.prototype.isEqualNode = function(node) {
|
||||
if (node.namespaceURI !== this.namespaceURI) {
|
||||
return false;
|
||||
}
|
||||
if (node.prefix !== this.prefix) {
|
||||
return false;
|
||||
}
|
||||
if (node.localName !== this.localName) {
|
||||
return false;
|
||||
}
|
||||
if (node.value !== this.value) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
return XMLAttribute;
|
||||
|
||||
})();
|
||||
|
||||
}).call(this);
|
||||
Reference in New Issue
Block a user