FIX Refining icon

This commit is contained in:
Antoine M 2025-06-26 17:43:42 +02:00
parent 8f6b88e27d
commit 5e6f557ff0
4 changed files with 60 additions and 67 deletions

View File

@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => 'bebf0d6f2b0eb08b7c44'); <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => 'd5d54e18643042f504ee');

View File

@ -67,42 +67,37 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/revues-precedentes/edit.js"); /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/revues-precedentes/edit.js");
/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/revues-precedentes/save.js"); /* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/revues-precedentes/save.js");
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/revues-precedentes/block.json"); /* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/revues-precedentes/block.json");
/** /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
* Registers a new block provided a unique name and an object defining its behavior. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__);
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
/**
* Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
* All files containing `style` keyword are bundled together. The code used
* gets applied both to the front of your site and to the editor.
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
/**
* Internal dependencies
*/
/**
* Every block starts by registering a new block type definition.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, {
/** icon: {
* @see ./edit.js src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", {
*/ width: "50",
height: "50",
viewBox: "0 0 50 50",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("g", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", {
stroke: "null",
d: "m28.5139,42.56948l0,-27.28752a10.50655,10.50655 0 0 1 -7.02779,2.69024l-17.56948,0l0,31.62507l17.56948,0a7.03535,7.03535 0 0 0 7.02779,-7.02779zm-15.81254,-15.81254l7.02779,0a1.75695,1.75695 0 0 1 0,3.5139l-7.02779,0a1.75695,1.75695 0 0 1 0,-3.5139zm7.02779,10.54169l-7.02779,0a1.75695,1.75695 0 0 1 0,-3.5139l7.02779,0a1.75695,1.75695 0 0 1 0,3.5139z"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", {
stroke: "null",
d: "m30.27085,5.67357a1.75695,1.75695 0 0 1 1.75695,1.75695a7.02779,7.02779 0 0 0 14.05049,0.25739l0,-0.00176a6.73509,6.73509 0 0 0 -1.95513,-4.93457a7.67786,7.67786 0 0 0 -5.49134,-2.34886l-20.6596,0l0,14.05559l3.5139,0a7.03535,7.03535 0 0 0 7.02779,-7.02779a1.75695,1.75695 0 0 1 1.75695,-1.75695z"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", {
stroke: "null",
d: "m32.02779,15.28197l0,27.28752a7.02779,7.02779 0 0 0 14.05559,0l0,-27.28752a10.52412,10.52412 0 0 1 -14.05559,0z"
})]
})
}),
foreground: "#136f63"
},
edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"],
/**
* @see ./save.js
*/
save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] save: _save__WEBPACK_IMPORTED_MODULE_3__["default"]
}); });

View File

@ -1,39 +1,37 @@
/** import { registerBlockType } from "@wordpress/blocks";
* Registers a new block provided a unique name and an object defining its behavior. import "./style.scss";
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
import { registerBlockType } from '@wordpress/blocks';
/** import Edit from "./edit";
* Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. import save from "./save";
* All files containing `style` keyword are bundled together. The code used import metadata from "./block.json";
* gets applied both to the front of your site and to the editor.
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './style.scss';
/** registerBlockType(metadata.name, {
* Internal dependencies icon: {
*/ src: (
import Edit from './edit'; <svg
import save from './save'; width="50"
import metadata from './block.json'; height="50"
viewBox="0 0 50 50"
/** xmlns="http://www.w3.org/2000/svg"
* Every block starts by registering a new block type definition. >
* <g>
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ <path
*/ stroke="null"
registerBlockType( metadata.name, { d="m28.5139,42.56948l0,-27.28752a10.50655,10.50655 0 0 1 -7.02779,2.69024l-17.56948,0l0,31.62507l17.56948,0a7.03535,7.03535 0 0 0 7.02779,-7.02779zm-15.81254,-15.81254l7.02779,0a1.75695,1.75695 0 0 1 0,3.5139l-7.02779,0a1.75695,1.75695 0 0 1 0,-3.5139zm7.02779,10.54169l-7.02779,0a1.75695,1.75695 0 0 1 0,-3.5139l7.02779,0a1.75695,1.75695 0 0 1 0,3.5139z"
/** />
* @see ./edit.js <path
*/ stroke="null"
d="m30.27085,5.67357a1.75695,1.75695 0 0 1 1.75695,1.75695a7.02779,7.02779 0 0 0 14.05049,0.25739l0,-0.00176a6.73509,6.73509 0 0 0 -1.95513,-4.93457a7.67786,7.67786 0 0 0 -5.49134,-2.34886l-20.6596,0l0,14.05559l3.5139,0a7.03535,7.03535 0 0 0 7.02779,-7.02779a1.75695,1.75695 0 0 1 1.75695,-1.75695z"
/>
<path
stroke="null"
d="m32.02779,15.28197l0,27.28752a7.02779,7.02779 0 0 0 14.05559,0l0,-27.28752a10.52412,10.52412 0 0 1 -14.05559,0z"
/>
</g>
</svg>
),
foreground: "#136f63",
},
edit: Edit, edit: Edit,
/**
* @see ./save.js
*/
save, save,
} ); });