For security reasons, passwordless login is generally implemented using public-private key pairs. Here, I’ll mark down the configuration method. Log into the client machine and create a public-private key pair if you don’t already have one.
Sep 19, 2024
While implementing “click to download selected filename” in a WebShell based on xterm.js, I ran into a challenge: how to determine the directory of the selected filename. After some research, here’s the solution.
Sep 19, 2024
Due to bundle size issues, I’ve revisited babel-plugin-import. I wasn’t clear about this plugin before, so I’m organizing my understanding here. Plugin Introduction babel-plugin-import is a Babel plugin that supports modular imports. The functionality of the plugin is to convert full imports to on-demand imports based on configuration.
Sep 17, 2024
Sometimes, switching the source of npm packages in a project is necessary due to network or security issues. The general practice is to switch the source in npmrc, but after switching and installing packages, you will find that the install still goes through the old source, primarily when a lock file has already been generated.
Sep 17, 2024
Investigates why redux-logger stays in production bundles, explores its UMD build, tries the 4.x ES module beta, and confirms tree-shaking once sideEffects is set.
Sep 14, 2024
Recently, I used Monaco editor to implement an SQL editor. To improve the user experience, code auto-completion was necessary. After some research, I found a solution, so I’m marking it down here.
Sep 8, 2024
Recently, because of Claude Sonnet and Cursor, I started contacting Claude. After using it for a while, I found that Claude is quite good; at least, I feel it’s on par with ChatGPT at the moment.
Sep 2, 2024
Importing from lib vs. es vs. package root can change bundle size dramatically; why and how to choose.
Aug 25, 2024
This article is the author's introduction to the Draw.io user guide, including the advantages, implementation details, and related resources of the Draw.io user guide. These steps can help the author improve the efficiency of using Draw.io.
Aug 25, 2024
Can environment variables be set when connecting to a server using the Node.js SSH2 client? After investigation, it was found that it is possible. Just marking it here. Setting Environment Variables The code is as follows:
Aug 20, 2024