![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
gitbook-plugin-lock
Advanced tools
I have always wanted to lock some articles, but I don't want to be too complicated. I saw that some of the big-name articles have been locked. I also went to practice. That has two solutions
But the gitbook I used is purely static, so I thought of another method, which does not require server-side usage
Almost every line of code uses search engines. After all, I am a back-end, and it took a lot of effort to remember how js is written.
Write the configuration file in the configuration file, multiple sets of matching methods, and then go to WeChat to set up the automatic reply.
book.json
)"plugins": ["lock"]
book.json
)The configuration is explained in detail later
"pluginsConfig": {
"lock": {
"lockTokenKey": "lock-token-key",
"wechatName": "技术抛光",
"wechatQr": "http://interview.wzcu.com/static/qrcode.jpg",
"allPage": true,
"articleHeightPercent":0.8,
"verificationCode": [
{
"key": "demo1",
"value": "demo1value"
},{
"key": "demo2",
"value": "demo2value"
},{
"key": "demo3",
"value": "demo3value"
},{
"key": "demo4",
"value": "demo4value"
}
]
}
}
Excuting an order gitbook install
Log in to the background of your WeChat official account, and configure the above verificationCode
consistent response in the automatic reply. For example, if you set {"key":"Hello", "Gongxi Fa Cai"}
, then you need to log in to the WeChat official account Set up an automatic reply in the background, the keyword is Hello
, and then automatically reply "Gong Xi Fa Cai"
lockTokenKey
wechatName
wechatQr
allPage
%pageLock%
) will be lockedarticleHeightPercent
0.6
verificationCode
key
corresponding to value
-You need to set the same key
in the background of the official account and then automatically answer the value
-Every time the user refreshes the page, he may randomly select any key
purely random behaviorallPage
: false, and then add the %pageLock% tag to the page you want to lock, such as example.mdFAQs
Gitbook 页面加锁
The npm package gitbook-plugin-lock receives a total of 0 weekly downloads. As such, gitbook-plugin-lock popularity was classified as not popular.
We found that gitbook-plugin-lock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.