完成世界书、骰子、apiconfig页面处理
This commit is contained in:
61
frontend/node_modules/@iconify/utils/lib/misc/licenses.js
generated
vendored
Normal file
61
frontend/node_modules/@iconify/utils/lib/misc/licenses.js
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
/** Completely free, no limits */
|
||||
const freeLicense = {
|
||||
attribution: false,
|
||||
commercial: true
|
||||
};
|
||||
/** Requires same license for derived works */
|
||||
const freeSameLicense = {
|
||||
attribution: false,
|
||||
commercial: true,
|
||||
sameLicense: true
|
||||
};
|
||||
/** Requires attribution */
|
||||
const attribLicense = {
|
||||
attribution: true,
|
||||
commercial: true
|
||||
};
|
||||
/** Requires attribution and same license for derived works */
|
||||
const attribSameLicense = {
|
||||
attribution: true,
|
||||
commercial: true,
|
||||
sameLicense: true
|
||||
};
|
||||
/** Requires attribution and non-commercial use */
|
||||
const attribNonCommercialLicense = {
|
||||
attribution: true,
|
||||
commercial: false
|
||||
};
|
||||
/** Requires attribution, non-commercial use and same license for derived works */
|
||||
const attribNonCommercialSameLicense = {
|
||||
attribution: true,
|
||||
commercial: false,
|
||||
sameLicense: true
|
||||
};
|
||||
/**
|
||||
* Data for open source licenses used by icon sets in `@iconify/json` package and smaller packages
|
||||
*
|
||||
* Key is SPDX license identifier
|
||||
*/
|
||||
const licensesData = {
|
||||
"Apache-2.0": freeLicense,
|
||||
"MIT": freeLicense,
|
||||
"MPL-2.0": freeLicense,
|
||||
"CC0-1.0": freeLicense,
|
||||
"CC-BY-3.0": attribLicense,
|
||||
"CC-BY-SA-3.0": attribSameLicense,
|
||||
"CC-BY-4.0": attribLicense,
|
||||
"CC-BY-SA-4.0": attribSameLicense,
|
||||
"CC-BY-NC-4.0": attribNonCommercialLicense,
|
||||
"CC-BY-NC-SA-4.0": attribNonCommercialSameLicense,
|
||||
"ISC": freeLicense,
|
||||
"OFL-1.1": freeLicense,
|
||||
"GPL-2.0-only": freeSameLicense,
|
||||
"GPL-2.0-or-later": freeSameLicense,
|
||||
"GPL-3.0": freeSameLicense,
|
||||
"GPL-3.0-or-later": freeSameLicense,
|
||||
"Unlicense": freeLicense,
|
||||
"BSD-2-Clause": freeLicense,
|
||||
"BSD-3-Clause": freeLicense
|
||||
};
|
||||
|
||||
export { licensesData };
|
||||
17
frontend/node_modules/@iconify/utils/lib/misc/strings.d.ts
generated
vendored
Normal file
17
frontend/node_modules/@iconify/utils/lib/misc/strings.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Convert string to camelCase
|
||||
*/
|
||||
declare function camelize(str: string): string;
|
||||
/**
|
||||
* Convert string to PascaleCase
|
||||
*/
|
||||
declare function pascalize(str: string): string;
|
||||
/**
|
||||
* Convert camelCase string to kebab-case
|
||||
*/
|
||||
declare function camelToKebab(key: string): string;
|
||||
/**
|
||||
* Convert camelCase string to snake-case
|
||||
*/
|
||||
declare function snakelize(str: string): string;
|
||||
export { camelToKebab, camelize, pascalize, snakelize };
|
||||
27
frontend/node_modules/@iconify/utils/lib/misc/strings.js
generated
vendored
Normal file
27
frontend/node_modules/@iconify/utils/lib/misc/strings.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Convert string to camelCase
|
||||
*/
|
||||
function camelize(str) {
|
||||
return str.replace(/-([a-z0-9])/g, (g) => g[1].toUpperCase());
|
||||
}
|
||||
/**
|
||||
* Convert string to PascaleCase
|
||||
*/
|
||||
function pascalize(str) {
|
||||
const camel = camelize(str);
|
||||
return camel.slice(0, 1).toUpperCase() + camel.slice(1);
|
||||
}
|
||||
/**
|
||||
* Convert camelCase string to kebab-case
|
||||
*/
|
||||
function camelToKebab(key) {
|
||||
return key.replace(/:/g, "-").replace(/([A-Z])/g, " $1").trim().split(/\s+/g).join("-").toLowerCase();
|
||||
}
|
||||
/**
|
||||
* Convert camelCase string to snake-case
|
||||
*/
|
||||
function snakelize(str) {
|
||||
return camelToKebab(str).replace(/-/g, "_");
|
||||
}
|
||||
|
||||
export { camelToKebab, camelize, pascalize, snakelize };
|
||||
7
frontend/node_modules/@iconify/utils/lib/misc/title.d.ts
generated
vendored
Normal file
7
frontend/node_modules/@iconify/utils/lib/misc/title.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Sanitises title, removing any unwanted characters that might break XML.
|
||||
*
|
||||
* This is a very basic funciton, not full parser.
|
||||
*/
|
||||
declare function sanitiseTitleAttribute(content: string): string;
|
||||
export { sanitiseTitleAttribute };
|
||||
Reference in New Issue
Block a user