chores
This commit is contained in:
parent
f82f102588
commit
1cf9ce9280
|
@ -1,13 +1,28 @@
|
|||
import { config, fields, collection } from '@keystatic/core';
|
||||
import ShowableFigureIcon from './keystatic/content-components/ShowableFigureIcon';
|
||||
import { mark, wrapper } from '@keystatic/core/content-components';
|
||||
import ShowableFigure from './keystatic/content-components/ShowableFigure';
|
||||
import ShowableFigureView from './keystatic/content-components/ShowableFigure';
|
||||
import FootnoteIcon from 'keystatic/content-components/FootnoteIcon';
|
||||
|
||||
export default config({
|
||||
ui: {
|
||||
brand: { name: 'Filipe Medeiros CMS' },
|
||||
},
|
||||
// customCSS: `
|
||||
// .footnote-content::before {
|
||||
// content: '^';
|
||||
// font-size: initial;
|
||||
// }
|
||||
// .footnote-content {
|
||||
// font-size: 0rem;
|
||||
// }
|
||||
// .footnote-content:hover, .footnote-content:focus {
|
||||
// font-size: smaller;
|
||||
// }
|
||||
// .footnote-content:hover::before, .footnote-content:focus::before {
|
||||
// content: '> ';
|
||||
// }
|
||||
// `,
|
||||
storage: {
|
||||
kind: 'local',
|
||||
},
|
||||
|
@ -60,7 +75,7 @@ export default config({
|
|||
components: {
|
||||
ShowableFigure: wrapper({
|
||||
label: 'Showable figure',
|
||||
ContentView: ShowableFigure,
|
||||
ContentView: ShowableFigureView,
|
||||
icon: ShowableFigureIcon(),
|
||||
schema: {
|
||||
image: fields.image({
|
||||
|
@ -77,7 +92,8 @@ export default config({
|
|||
Footnote: mark({
|
||||
label: 'Footnote',
|
||||
icon: FootnoteIcon(),
|
||||
style: { verticalAlign: 'super', fontSize: 'smaller' },
|
||||
tag: 'sup',
|
||||
className: 'footnote-content',
|
||||
schema: {},
|
||||
}),
|
||||
},
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
export default function FootnoteIcon() {
|
||||
return (
|
||||
<>
|
||||
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
|
||||
<g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
|
||||
<g
|
||||
id="SVGRepo_tracerCarrier"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="0"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth="0"
|
||||
></g>
|
||||
<g id="SVGRepo_iconCarrier">
|
||||
<path
|
||||
stroke-width="0"
|
||||
strokeWidth="0"
|
||||
fill="currentColor"
|
||||
d="M20.5 7.26348C20.3072 7.43773 20.1033 7.5974 19.8927 7.73783C19.548 7.9676 19.0824 7.87447 18.8526 7.52982C18.6228 7.18517 18.716 6.71952 19.0606 6.48976C19.825 5.98018 20.3901 5.1686 20.5167 4.58989C20.597 4.22259 20.9339 3.97754 21.298 4.00163C21.6898 4.02637 22 4.35202 22 4.75012V11.2501C22 11.6643 21.6642 12.0001 21.25 12.0001C20.8358 12.0001 20.5 11.6643 20.5 11.2501V7.26348Z"
|
||||
></path>
|
||||
<path
|
||||
stroke-width="0"
|
||||
strokeWidth="0"
|
||||
fill="currentColor"
|
||||
d="M12.2219 17.7558C12.0685 17.5885 12 17.3779 12 17.1467V7.91037C12 7.66413 12.0737 7.44165 12.2367 7.26514L12.2401 7.26139C12.4083 7.08646 12.6239 7.00012 12.8676 7.00012C13.1106 7.00012 13.3253 7.0861 13.4898 7.26326C13.6579 7.43907 13.7353 7.66213 13.7353 7.91037V10.7508C13.9176 10.5594 14.1259 10.3947 14.3599 10.2576L14.361 10.2569C14.8183 9.99191 15.3282 9.86118 15.8849 9.86118C16.889 9.86118 17.7135 10.2402 18.3355 10.9959C18.9544 11.7477 19.2515 12.7345 19.2515 13.9306C19.2515 15.1313 18.9545 16.1205 18.3355 16.8725C17.7124 17.6243 16.8799 18.0001 15.8636 18.0001C15.2941 18.0001 14.7767 17.87 14.3184 17.6044L14.3173 17.6037C14.0786 17.4638 13.8656 17.2942 13.6785 17.0957V17.1467C13.6785 17.3815 13.5998 17.5916 13.4349 17.7565C13.27 17.9214 13.0599 18.0001 12.8251 18.0001C12.5938 18.0001 12.3846 17.9259 12.2255 17.7596L12.2219 17.7558ZM16.972 15.7798C17.3067 15.3446 17.4878 14.7372 17.4878 13.9306C17.4878 13.129 17.3067 12.5236 16.9717 12.0881C16.6432 11.6611 16.2024 11.4474 15.6222 11.4474C15.0714 11.4474 14.6267 11.6639 14.2703 12.1125C13.9164 12.5592 13.7282 13.1575 13.7282 13.9306C13.7282 14.7087 13.9165 15.3091 14.27 15.7555C14.626 16.1992 15.0707 16.4139 15.6222 16.4139C16.2031 16.4139 16.6439 16.202 16.972 15.7798Z"
|
||||
></path>{' '}
|
||||
<path
|
||||
stroke-width="0"
|
||||
strokeWidth="0"
|
||||
fill="currentColor"
|
||||
d="M2 17.1862C2 17.4211 2.09349 17.6243 2.26916 17.7801L2.27702 17.7868C2.45701 17.9336 2.67599 18.0001 2.91624 18.0001C3.11952 18.0001 3.30806 17.9464 3.46676 17.8264C3.62332 17.708 3.73178 17.5391 3.80285 17.3424L4.68223 14.9522H8.56084L9.44715 17.3424L9.44756 17.3436C9.51862 17.5401 9.62678 17.7081 9.78324 17.8264C9.94194 17.9464 10.1305 18.0001 10.3338 18.0001C10.5737 18.0001 10.793 17.9333 10.9698 17.7833C11.1511 17.6286 11.25 17.4247 11.25 17.1862C11.25 17.0479 11.2113 16.8958 11.152 16.7397L7.70955 7.77399C7.61797 7.53666 7.4837 7.3393 7.29665 7.20204C7.10789 7.06352 6.88428 7.00012 6.63981 7.00012C6.38569 7.00012 6.15364 7.06271 5.95825 7.20162C5.76377 7.33988 5.62502 7.54014 5.5327 7.78203L2.09775 16.7405C2.0384 16.8965 2 17.0479 2 17.1862ZM6.625 9.58303L8.00016 13.3601H5.24984L6.625 9.58303Z"
|
||||
></path>{' '}
|
||||
|
|
|
@ -2,9 +2,9 @@ export default function ShowableFigureIcon() {
|
|||
return (
|
||||
<path
|
||||
d="M14.2639 15.9375L12.5958 14.2834C11.7909 13.4851 11.3884 13.086 10.9266 12.9401C10.5204 12.8118 10.0838 12.8165 9.68048 12.9536C9.22188 13.1095 8.82814 13.5172 8.04068 14.3326L4.04409 18.2801M14.2639 15.9375L14.6053 15.599C15.4112 14.7998 15.8141 14.4002 16.2765 14.2543C16.6831 14.126 17.12 14.1311 17.5236 14.2687C17.9824 14.4251 18.3761 14.8339 19.1634 15.6514L20 16.4934M14.2639 15.9375L18.275 19.9565M18.275 19.9565C17.9176 20 17.4543 20 16.8 20H7.2C6.07989 20 5.51984 20 5.09202 19.782C4.71569 19.5903 4.40973 19.2843 4.21799 18.908C4.12796 18.7313 4.07512 18.5321 4.04409 18.2801M18.275 19.9565C18.5293 19.9256 18.7301 19.8727 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C20 18.4802 20 17.9201 20 16.8V16.4934M4.04409 18.2801C4 17.9221 4 17.4575 4 16.8V7.2C4 6.0799 4 5.51984 4.21799 5.09202C4.40973 4.71569 4.71569 4.40973 5.09202 4.21799C5.51984 4 6.07989 4 7.2 4H16.8C17.9201 4 18.4802 4 18.908 4.21799C19.2843 4.40973 19.5903 4.71569 19.782 5.09202C20 5.51984 20 6.0799 20 7.2V16.4934M17 8.99989C17 10.1045 16.1046 10.9999 15 10.9999C13.8954 10.9999 13 10.1045 13 8.99989C13 7.89532 13.8954 6.99989 15 6.99989C16.1046 6.99989 17 7.89532 17 8.99989Z"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue