Interface and Operations / Script Library
All scripts written by users or installed from the script market can be viewed in the "Script Library" where they can also be edited and managed.
View Mode
By default, when a script is opened, it enters "View Mode". In this mode, the code is read-only and cannot be modified to prevent accidental changes.
Edit Mode
To modify the code, click the "Edit" button to enter edit mode. In this mode, other logged-in users cannot enter edit mode, avoiding conflicts from multiple people editing simultaneously.
The script being edited is a draft and does not affect the currently active code. After completing edits, you need to click the "Publish" button to make the new script take effect.
After completing script editing, it is recommended to exit edit mode as soon as possible
Execute Function
Select a function and click the "Execute" button to run the selected function. The output of the print(...)
function and the return value of the function will both be displayed in the output box at the bottom.
Script Library Hierarchy
The script library is divided into 3 levels:
- "Script Collection"
- "Script"
- "Functions within scripts using
@DFF.API(...)
"
Among these, script collections and scripts are manually created by users, while "functions within scripts using @DFF.API(...)
" are automatically generated based on user-written code.
According to the hierarchy, the IDs of each script and function include the ID of their parent level, as follows:
ID | |
---|---|
Script Collection | dev |
Script | dev__example |
Function ID | dev__example.hello_world |
Quote
For more detailed information on script development, refer to the documentation Script Development