Initial commit: New MoreminiMore website with fresh design

This commit is contained in:
MoreminiMore
2026-04-22 01:59:05 +07:00
commit 76409638cc
14010 changed files with 2052041 additions and 0 deletions

42
node_modules/svgo/plugins/removeDesc.js generated vendored Normal file
View File

@@ -0,0 +1,42 @@
import { detachNodeFromParent } from '../lib/xast.js';
/**
* @typedef RemoveDescParams
* @property {boolean=} removeAny
*/
export const name = 'removeDesc';
export const description = 'removes <desc>';
const standardDescs = /^(Created with|Created using)/;
/**
* Removes <desc>.
* Removes only standard editors content or empty elements because it can be
* used for accessibility. Enable parameter 'removeAny' to remove any
* description.
*
* @author Daniel Wabyick
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc
*
* @type {import('../lib/types.js').Plugin<RemoveDescParams>}
*/
export const fn = (root, params) => {
const { removeAny = false } = params;
return {
element: {
enter: (node, parentNode) => {
if (node.name === 'desc') {
if (
removeAny ||
node.children.length === 0 ||
(node.children[0].type === 'text' &&
standardDescs.test(node.children[0].value))
) {
detachNodeFromParent(node, parentNode);
}
}
},
},
};
};