Current location: home page > Software programming

Developing OneNav browser extension: My experience sharing

front end 0 comments 2024-3-22 1,582 views
Recently, we released version 1.1.0 of OneNav browser extension, which is also the version after the second reconstruction. During this period, we encountered some technical difficulties, but finally solved them. So we plan to use this article to share the technology and experience used by xiaoz in developing OneNav browser extension. About OneNavOneNav is an open source and free bookmark (navigation) management program, which is used by xiaoz using PHP+S

How to Use Layui to Realize the Highlight Effect of Navigation Bar Clicking

front end 3 comments 2023-5-9 2,845 views
Recently, I am developing OneNav, hoping to realize the automatic highlighting function of the left navigation bar to improve the user experience. I used ChatGPT to easily implement this small function. OneNav uses Layui components in the background, so this method is applicable to all occasions where Layui components are used. Click the navigation bar in Layui to highlight it. This is the original navigation bar code in OneNav. The a tag is used for link jumping

Let ChatGPT help me write a Golang image compression function

Golang 0 comments 2023-4-21 2,413 views
Recently, when using Waits to develop ImgURL client, images need to be compressed and uploaded. In order to improve efficiency and save time, ChatGPT is directly asked to help me complete this requirement. I put forward the following requirements for ChatGPT: Please help me write a Golang function that can receive image paths and compress them. This function needs to support jpg and png format images, and will verify MIME

Using Wails: Easily build desktop applications with Go and Web technologies

Golang 0 comments 2023-4-20 3,190 views
Wails is a project that allows you to write desktop applications using Go and Web technologies. It can be seen as a quick, lightweight alternative to Go's Electron. With rich modern front ends, you can use Go's flexibility and powerful functions to easily build applications. In the previous AsBot client, xiaoz used the Wails technology to develop. Wail...

Wails can't use cookies' BUG solution under MacOS

Golang 0 comments 2023-4-16 1,937 views
Wails is a project that allows you to write desktop applications using Go and Web technologies. When the AsBot client was recently developed on Mac OS, the development mode was normal, but after compiling and packaging, it was found that cookies could not be used. I have packaged the Windows client before, and this problem does not exist. It looks like a bug. At present, we have fed back questions to the author, and wait

Using cron timing tasks in Golang

Golang 0 comments 2023-2-1 5,573 views
Recently, a function needs to be executed regularly during the development process. Because Golang is memory resident, it is easy to implement in Golang. You can directly use the third-party library github.com/robfig/cron to record the use of the library. Install github.com/robfig/cron. The latest version is 3. x. Use the following command to install the library: go get githu

Preview PDF files using PDFObject in Vue3

front end 3 comments 2023-1-12 9,082 views
Recently, I have been developing the PDF preview function of Zdir 3. I have searched the Internet, and most of them are implemented by pdf.js. The compatibility of pdf.js with Vue3 is not very good. I have to write a lot of code myself, which is very unfriendly to me, a front-end white man. Is there a scheme that can complete Vue3 preview PDF in a few lines of code? The answer is yes, that is, use the PDFObject library. Install PDFObjec

Using the IconPark icon library with byte skipping in Vue3

front end 2 comments 2023-1-7 8,869 views
In WEB development, in order to make the website more vivid, some font icons are usually used, such as FontAwesome/IconPark. IconPark is an icon library provided by byte beating, with more than 2000 high-quality icons, which can meet and cover most scenes. Share this article Use the method of IconPark in Vue3. Install Icon Park Copy the following command to install Icon

Replace the GORM default SQLite driver

Golang 4 comments 2022-12-28 10,212 views
Recently, GORM was used to operate the SQLite database when developing a program. GORM uses the gorm.io/driver/sqlite library as the SQLite driver by default. The library is implemented with CGO. Some problems are encountered in the use process. Finally, a third-party SQLite driver is replaced to solve them. The problem is that the GORM official SQLite driver is implemented using CGO, so I encountered