/posts
/posts/new
/posts/:postId
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable consistent-return */ | |
/* eslint-disable effector/mandatory-scope-binding */ | |
/* eslint-disable effector/no-watch */ | |
import type { Node } from 'effector'; | |
import { | |
clearNode, | |
attach, | |
// combine, | |
createEffect, | |
createNode, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Plugin } from 'prosemirror-state' | |
import { Node } from 'prosemirror-model' | |
import { Decoration, DecorationSet } from 'prosemirror-view' | |
function checkLength(doc: Node, maxLength: number) { | |
if (doc.nodeSize > maxLength) { | |
const elem = document.createElement('span') | |
return DecorationSet.create(doc, [ | |
Decoration.inline(maxLength, doc.nodeSize, { class: 'bg-red-300' }), | |
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"size-compare": 0, | |
"history": [ | |
{ | |
"unixtimestamp": 1694522343977, | |
"commitsha": "977633419ce9ee30c64dead3d74380f51a3e59b3", | |
"files": { | |
"dist/and/index.cjs": { | |
"raw": 397, | |
"gzip": 251 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"size-compare": 0, | |
"history": [ | |
{ | |
"unixtimestamp": 1677746323334, | |
"commitsha": "ee90926afb49ef6a8cf9524017ba81e276b005b2", | |
"files": { | |
"reflect.cjs.js": { | |
"raw": 5229, | |
"gzip": 1584 |
This is the readme file for the size-compare repo size check
NewerOlder