Skip to content

jxccc1998/electron-vite-react-boop

Repository files navigation

Electron-vite-react-boop

This is an offline script executor that imitates boop

electron-boop

Start

Install node_modules:

npm install

Starting Development

Start the app in the dev environment:

npm run dev

Packaging for Production

To package apps for the local platform:

npm run build

Use

Open it, paste some text, run some scripts, optionally copy the text out.

To run scripts, simply open the script picker by pressing ctrl+X or in the top menu under Scripts > Open Picker.

Make scripts

Each script starts with a declarative JSON document, describing the contents of that file, a name, a description. All that stuff is contained within a top level comment (with some extra asterisks) just like so:

/**
{
"tag":"JsonFormat",
"name":"Format JSON",
"description":"xxxxxxx",
}
**/

Tags will be mapped to icons for display on the interface

Must include the main function

const main = (state) => {
return state.trimStart();
};

State is the text content that needs to be converted

If it is not the result of converting text.There are also two return methods as follows

return { type: "ERROR", content: "wrong" };

return {
    type: "SUCCESS",
    content: `total 100`,
};

Feature

Multi label switching is a worthwhile thing to achieve(It will be realized when there is time) -.-

About

Local javascript executor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published