Development guidance ========================= .. toctree:: :maxdepth: 6 Development environment and conditions ------------------------------------------- The development environment must meet the following minimum configuration: - CPU:1.6 GHz or faster processor; - RAM:>=1 GB(more than 2 GB recommended); - ROM:>=128GB; - OS:Requires Windows 10 or higher, macOS 10.1 5 or higher, Linux (x64) system (Ubuntu, Debian, etc.). - Controller Version: Check in WebApp "System Settings-About". Note the distinction between QX and LA in development environment. Avoid using ES6+ syntax and other modern JavaScript features in QX environment examples. We have encapsulated some interfaces and modules, but if you want to achieve a better development effect, it is recommended to have a certain understanding of web development, and it is best to be familiar with the following technologies: - HTML,JavaScript/TypeScript,CSS; - Vue3; - Vite; - Node.js. Development tools -------------------------- We recommend using the latest Visual Studio Code (VSCode) software for development. To download, please visit the VSCode official download page and select the corresponding system to download. At the same time, the Node.js runtime environment needs to be installed on the local computer. When installing Node.js, tools such as npm will be installed to facilitate package management. Visit the Node.js official download page and select the corresponding system version v20 to download. When developing in VSCode, you may also use the following VSCode plug-ins, which can be installed and configured as needed . - Vue; - ESlint; - npm Intellisense; - Vue Language Features (Volar); - TypeScript Vue Plugin (Volar)或者Vue.volar; - Tailwind CSS IntelliSense. FRCap project structure --------------------------- FRCap project file structure: .. image:: frcap_pictures/012.png :width: 3in :align: center .. centered:: Figure 5-1 FRCap project structure - Public: In the public resource folder, the internal files will not be built during the build process, but will be copied directly to the build directory. The action folder and logo.svg are included by default . The Action folder is used to store custom command background interface logic files. Logo.svg is the plug-in icon. - Src: Assets folder is mainly used to place static resources. The Components folder is mainly used to place components. The Utils folder is mainly used to place utility classes. App.vue home page code. Main.js is mainly responsible for global resource introduction. Vue framework creation, etc. Style.css project basic style file. - Build.bat:Windows platform build script. - Index.html:The main frame of the page UI. - Package.json:package description file and compilation strategy, etc. - Vite.config.js:Vite configuration file. Front-end frcap-ui and frcap-api use ------------------------------------------ Frcap-ui provides some HTML controls that have been encapsulated through Vue components, which can be imported into projects for use, reducing the difficulty of page UI development and the amount of code, and improving code readability. Of course, you can also choose some excellent open source UI component libraries, such as Element plus, etc. First open the terminal in your project path and install frcap-ui. .. code-block:: c++ :linenos: npm install frcap-ui -s After successful installation, introduce it into the components that need to use frcap-ui , taking the button control as an example. .. code-block:: javascript :linenos: import { AppButton } from 'frcap-ui' Then use it in the