A project processing method, device, electronic device and storage medium

By displaying the project configuration interface in the editor and generating pending project files, and directly importing them into the editor, the problem of restricted project file import in the existing technology is solved, and the complete display and automatic saving of project files are realized.

CN113918137BActive Publication Date: 2025-05-27GUAHAO (HANGZHOU) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111254114.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-27
Publication Date
2025-05-27
Estimated Expiration
2041-10-27

AI Technical Summary

Technical Problem

The method of importing project files into the editor in the prior art is limited by the maximum number of displayed lines in the terminal cache area, which causes the project files to be displayed incompletely, and the edited project files cannot be automatically saved in the editor, which is prone to inconsistent naming problems.

Method used

When the target control is triggered, the project configuration interface is displayed, the configuration information is obtained, and the pending project files are generated in the target processing plug-in. The file is imported into the target editor based on the project import function, and the project construction and import are automatically completed.

Benefits of technology

It realizes the direct import of project files in the editor, avoids the limit on the number of lines displayed in the terminal cache area, ensures that the project files are displayed intact and saved automatically, and solves the problem of inconsistent naming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918137B_ABST
    Figure CN113918137B_ABST
Patent Text Reader

Abstract

The present invention discloses a project processing method, apparatus, electronic device and storage medium. Among them, the method includes: when detecting the triggering of a target control, displaying a project configuration interface corresponding to a target project to be edited; obtaining at least one configuration information in the project configuration interface, and generating a project file to be processed in a target processing plug-in based on the at least one configuration information; importing the project file to be processed into a target editor based on a project import function; obtaining a target project corresponding to the target project to be edited based on the project information to be fused in the target editor and a dependency file corresponding to the project file to be processed; wherein, the project information to be fused includes the configuration information in the project file to be processed. The effect of creating a project file based on project configuration information and then importing the content of the project file into the editor is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a project processing method, apparatus, electronic device, and storage medium. Background Art

[0002] Currently, importing project files into an editor is mainly performed through a terminal. First, the project files are edited on the terminal, and then the project files to be imported into the editor are selected for import.

[0003] However, the existing method for importing project files can only be processed through a terminal. The drawback of such a processing method is that on the one hand, it is limited by the maximum number of display lines in the terminal buffer, and the project files cannot be fully displayed on the terminal. On the other hand, the project files edited on the terminal cannot be automatically saved in the editor, and naming inconsistencies are likely to occur when importing project files from the terminal into the editor.

[0004] Therefore, it is necessary to improve the method for importing project files into an editor. Summary of the Invention

[0005] The present invention provides a project processing method, apparatus, electronic device, and storage medium to achieve the effect of completing project construction according to project configuration information and automatically importing the constructed project into an editor.

[0006] In a first aspect, an embodiment of the present invention provides a project processing method, characterized by including:

[0007] When detecting the triggering of a target control, display a project configuration interface corresponding to a target project to be edited;

[0008] Obtain at least one configuration information in the project configuration interface, and generate a project file to be processed in a target processing plugin based on the at least one configuration information;

[0009] Based on a project import function, import the project file to be processed into a target editor;

[0010] Based on the project information to be fused in the target editor and the dependency files corresponding to the project file to be processed, obtain a target project corresponding to the target project to be edited; wherein, the configuration information in the project file to be processed is included in the project information to be fused.

[0011] In a second aspect, an embodiment of the present invention further provides a project processing apparatus, characterized by including:

[0012] A project configuration interface display module, configured to display a project configuration interface corresponding to a target project to be edited when detecting the triggering of a target control;

[0013] A to-be-processed project file generation module, configured to obtain at least one configuration information in the project configuration interface, and generate a to-be-processed project file in a target processing plugin based on the at least one configuration information;

[0014] A file import module, configured to import the to-be-processed project file into a target editor based on a project import function;

[0015] A target project determination module, configured to obtain a target project corresponding to the target to-be-edited project based on the to-be-fused project information in the target editor and a dependency file corresponding to the to-be-processed project file; wherein, the to-be-fused project information includes the configuration information in the to-be-processed project file.

[0016] In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:

[0017] One or more processors;

[0018] A storage device, configured to store one or more programs,

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the project processing method according to any one of the embodiments of the present invention.

[0020] In a fourth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute the project processing method according to any one of the embodiments of the present invention when executed by a computer processor.

[0021] In the technical solution of this embodiment, when a target control is detected to be triggered, a project configuration interface corresponding to the target item to be edited is displayed. Through the selectable project configuration information in the project configuration interface, the user can determine at least one piece of project configuration information. Obtain at least one configuration information in the project configuration interface, and generate a project file to be processed in the target processing plugin based on the at least one configuration information. Then, determine whether the project file to be processed is successfully created, and determine whether to import the project file to be processed into the target editor according to the result of the bed frame. If it is successfully created, based on the project import function, import the project file to be processed into the target editor, so as to directly import the project file into the target editor. During the import process, there is no need to pass through the terminal, and as much project-related information as possible can be displayed in the display interface of the target editor, avoiding the limitation of the number of display lines in the terminal buffer area. Then, based on the project information to be fused in the target editor and the dependency file corresponding to the project file to be processed, obtain the target project corresponding to the target item to be edited; wherein, the configuration information in the project file to be processed is included in the project information to be fused. After obtaining the target project, the project file can be normally run based on the installed dependency files related to this project. This solves the problem that the relevant content of the project file cannot be directly imported through the editor, and realizes the effect of creating a project file based on the project configuration information and then importing the content of the project file into the editor. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the introduced drawings are only the drawings of a part of the embodiments to be described by the present invention, rather than all the drawings. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0023] Figure 1 It is a flowchart of a project processing method provided by Embodiment 1 of the present invention;

[0024] Figure 2 It is a schematic flowchart of a project processing method provided by Embodiment 2 of the present invention;

[0025] Figure 3 It is a specific implementation flowchart of a project processing method provided by Embodiment 2 of the present invention;

[0026] Figure 4 It is a schematic structural diagram of a project processing device provided by Embodiment 3 of the present invention.

[0027] Figure 5 It is a schematic structural diagram of an electronic device provided by Embodiment 4 of the present invention. Detailed Implementation Manner

[0028] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. Additionally, it should be noted that for the sake of description, only the parts related to the present invention rather than all the structures are shown in the accompanying drawings.

[0029] Embodiment 1

[0030] Figure 1 It is a schematic flowchart of a project processing method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where a project file is created based on project configuration information, and then the content of the project file is imported into an editor, and then project content can be written according to the editor. This method can be executed by a project processing device, and the device can be implemented in the form of software and / or hardware. The hardware can be an electronic device, such as a mobile terminal or a PC, etc.

[0031] As Figure 1 shown, the method of this embodiment includes:

[0032] S110. When detecting the triggering of a target control, display a project configuration interface corresponding to the target project to be edited.

[0033] Among them, the target control can be understood as a plug-in for triggering control information. The target control can be set in the editor, such as the vscode editor, and is used to start the function associated with the target control when the target control is triggered. The target control can be a control button, a control instruction, a triggering plug-in, or a pre-set plug-in. The target project to be edited can be understood as the project selected for editing in the project configuration interface during project configuration. The project configuration interface can be understood as the interface for configuring the project file, and can include various project configuration information related to the project file.

[0034] Specifically, when loading project information for the editor, the project information loading function corresponding to the target control can be started by triggering the target control on the display interface of the editor. For example, after detecting the triggering of the target controller, a pop-up window can appear on the display interface to display various configuration information of the project.

[0035] Optionally, the step of "when detecting the triggering of a target control, display a project configuration interface corresponding to the target project to be edited" includes: when detecting the triggering of the target processing plug-in, generate a display instruction for displaying the project configuration interface, and display the project configuration interface based on the display instruction; or, obtain the command information edited in the command line, and display the project configuration interface corresponding to the target project to be edited according to the command information.

[0036] Among them, the target processing plugin can be understood as a preset plugin, which can contain the general code used when editing each project file. Thus, during project development, the general code in the target processing plugin can be directly called, and based on this plugin, a project file can be generated. The information contained in the project file is imported into the editor, avoiding code redundancy. After the target processing plugin is triggered, a display instruction can be generated for displaying a display interface corresponding to the instruction. Exemplarily, the target processing plugin can be the wy-cli plugin. The display instruction can be understood as an instruction for starting to display the project configuration interface; the command line can be understood as the command line code in the command window in the editor, and corresponding command information can be generated according to the command line code in the command window.

[0037] Specifically, a plugin can be preset and used as the target processing plugin. Through the editor, this plugin can be called. Then, when it is detected that the target plugin is triggered, the corresponding function of the plugin is started to generate a display instruction for displaying the project configuration interface, and then the corresponding project configuration interface can be displayed through this display instruction. Or, command line code can also be input in the command line window, display interface command information is generated based on the input command line code, and the project configuration interface corresponding to the target editor project is displayed according to the command information. Exemplarily, the method for displaying the project configuration interface can be the vscode.window.createWebviewPanel method. By calling this method through the instruction, the project configuration interface can pop up. Furthermore, after the project configuration interface appears, information related to the project configuration can be selected according to the project configuration content in the project configuration interface.

[0038] S120. Obtain at least one configuration information in the project configuration interface, and generate a to-be-processed project file in the target processing plugin based on the at least one configuration information.

[0039] Among them, the target processing plugin can also include code or functions for determining whether the project file is successful. Based on the code or functions in the target processing plugin, the completion status of the project file can be obtained. The project configuration information can be understood as information related to the project configuration, which can be viewed in the project configuration interface. The project configuration interface can include the project name, project version, project introduction, project address, CSS preprocessor, state manager, and various plugins, such as the eslint plugin, etc. The to-be-processed project file can be understood as a file generated by the target processing plugin based on the project configuration information.

[0040] Specifically, after the project configuration interface pops up, the project configuration information included in the project configuration interface can be obtained. After determining the project configuration information related to creating a project, a to-be-processed project file corresponding to the determined at least one project configuration information can be generated in the target processing plugin.

[0041] Optionally, the obtaining at least one configuration information in the project configuration interface and generating a to-be-processed project file in the target processing plugin based on the at least one configuration information includes: when an instruction indicating that the configuration information editing is completed is received, determining whether a to-be-processed project file has been generated in the target processing plugin based on a file query method; if so, determining that the to-be-processed project file is successfully created; if not, feedbacking an error message and regenerating the to-be-processed project file based on the at least one configuration information in the project configuration interface again.

[0042] Among them, the file query method can be understood as a method for querying files. When creating a file, a unique identifier can be created for each file, and the corresponding file can be queried based on the file identifier. Exemplarily, the file identifier can be a file name, a file version, a file introduction, a file storage path, or any other information with a unique identifier.

[0043] Specifically, after generating the to-be-processed project file in the target processing plugin based on at least one configuration information, it is necessary to detect whether the to-be-processed project file is successfully created. After determining the project configuration information in the project configuration interface, the information receiving plugin in the editor can receive an instruction indicating that the configuration information editing is completed. When the information receiving plugin in the editor receives the instruction, the file is queried according to the file identifier and the file query method to determine whether a to-be-processed project file has been generated in the target processing plugin. If the corresponding file can be found through the file query method, it can be determined that the file is successfully created, and an information of "successfully created" is feedbacked; if the corresponding file cannot be found through the file query method, it means that the file creation fails, and an error message such as "creation failed" is feedbacked. After the user receives the feedbacked error message, at least one project configuration information can be reselected in the project configuration interface, and the creation process in step S120 is repeated to generate a to-be-processed project file.

[0044] S130. Import the to-be-processed project file into the target editor based on a project import function.

[0045] Among them, the project import function can be understood as a function for importing a project into an editor. The project import function can be an existing import function, a custom import function, or a command instruction code. Exemplarily, the project import function can be the workbench.action.quickOpen function. The target editor can be understood as an editor for importing the to-be-processed project file.

[0046] Specifically, an import function can be preset in the editor. After the file of the project to be processed is successfully created, based on the project import function, the file of the project to be processed after successful creation is imported into the target editor.

[0047] Optionally, the step of importing the file of the project to be processed into the target editor based on the project import function includes: retrieving the content to be imported in the file of the project to be processed from the target processing plugin based on the notification plugin; and importing the content to be imported into the target editor based on the project import function.

[0048] Among them, the notification plugin can be understood as a tool responsible for message passing between two plugins, which can be a plugin interface or a command-line code. The notification message can be understood as the message sent by the notification plugin. Exemplarily, when the notification plugin receives the message that the project file is successfully created, it can send a message to another plugin, such as "The project file has been successfully created". The content to be imported can include the configuration information of the file of the project to be processed and the relevant import information, such as the information of relevant dependent files, etc.

[0049] Specifically, the notification plugin can receive the notification message sent by the target processing plugin. If the notification message is that the file of the project to be processed is successfully created, it can retrieve the content to be imported in the processed project file from the target processing plugin based on the notification plugin, and notify the package management installation tool to install the dependent files related to this file through the project import function, and import the content to be imported into the target editor.

[0050] S140. Obtain the target project corresponding to the target project to be edited based on the project information to be fused in the target editor and the dependent files corresponding to the file of the project to be processed; wherein, the project information to be fused includes the configuration information in the file of the project to be processed.

[0051] Among them, the project information to be fused can be understood as the import information and editing information in the file of the project to be processed, such as configuration information, etc. The dependent file can be understood as the file required during the operation of the project, and the installation of the dependent file can be performed through the npm install package management installation tool. The target project can be understood as the file imported into the target editor, and the target project includes the configuration information related to this project and the relevant dependent files for the operation of this project.

[0052] Specifically, an information notification plugin is set in the target editor. After the user fills in the project configuration information through the project configuration interface and determines that the creation of the project file to be processed is successful, the information notification plugin preset in the target editor can be used to notify the target editor to install the project dependency files related to the operation of the created project file to be processed using the nup install package management installation tool. After the installation of the dependency files is completed, a feedback message on whether the dependency files are successfully installed can be sent to the information notification plugin. After receiving the feedback message indicating the successful installation of the dependency files, based on the project information to be integrated in the target editor and the dependency files corresponding to the project file to be processed, the target project corresponding to the target project to be edited is obtained. Among them, the project information to be integrated includes the configuration information in the project file to be processed.

[0053] Optionally, after obtaining the target project, it further includes: running the project information to be integrated based on the dependency files.

[0054] Specifically, after obtaining the target project, the target project contains import information and configuration information of the project file to be processed, etc. These information constitute the information to be integrated in the target project. Then, based on the dependency files installed by the npm package management tool, the information to be integrated in the target project can be run.

[0055] Optionally, the configuration information includes configuration items and configuration contents corresponding to the configuration items. The configuration items include at least one of project name, project version number, project introduction, project address, and project status manager; the target processing plugin encapsulates general project codes of at least one type.

[0056] In the technical solution of this embodiment, when a target control is detected to be triggered, a project configuration interface corresponding to the target item to be edited is displayed. Through the selectable project configuration information in the project configuration interface, the user can determine at least one project configuration information. Obtain at least one configuration information in the project configuration interface, and generate a project file to be processed in the target processing plug-in based on the at least one configuration information. Then, determine whether the project file to be processed is successfully created, and determine whether to import the project file to be processed into the target editor according to the bed frame result. If it is successfully created, based on the project import function, import the project file to be processed into the target editor, so as to directly import the project file into the target editor. During the import process, there is no need to pass through the terminal, and as much project-related information as possible can be displayed in the display interface of the target editor, avoiding the limitation of the number of display lines in the terminal buffer. Then, based on the project information to be merged in the target editor and the dependency file corresponding to the project file to be processed, obtain the target project corresponding to the target item to be edited; wherein, the configuration information in the project file to be processed is included in the project information to be merged. After obtaining the target project, the project file can be normally run based on the installed dependency files related to the project. This solves the problem that the relevant content of the project file cannot be directly imported through the editor, and realizes the effect of creating a project file based on the project configuration information and then importing the content of the project file into the editor.

[0057] Embodiment 2

[0058] As an optional embodiment of the above embodiment, Figure 2 It is a schematic flowchart of a project processing method provided by Embodiment 2 of the present invention. Optionally, before importing the project file to be processed into the target editor based on the project import function, it further includes: receiving, based on the notification plug-in in the target editor, the notification information that the installation of the project file to be processed is completed feedback by the target processing plug-in; according to the notification information, call the postMessage function to send the installation information of the dependency file to be installed to the dependency file installation module, so that the dependency file installation module installs the dependency file according to the configuration information in the target processing plug-in.

[0059] As Figure 2 shown, the specific method includes:

[0060] S210. Receive, based on the notification plug-in in the target editor, the notification information that the installation of the project file to be processed is completed feedback by the target processing plug-in.

[0061] Specifically, a notification plugin is set in the target editor, which can be used to receive and send messages between two applications. When the target processing plugin detects that the creation of the pending project file is successful, it can send a notification message indicating the successful installation of the pending project file to the notification plugin preset in the target editor. Based on the notification plugin in the target editor, the target editor can receive this feedback message and obtain the completion status of the pending project file.

[0062] S220. Invoke the postMessage function according to the notification information to send the installation information of the dependent file to the dependent file installation module, so that the dependent file installation module installs the dependent file according to the configuration information in the target processing plugin.

[0063] Among them, the postMessage function is an information notification function stored in the target editor and is used to notify the dependent file installation module to install the dependent file.

[0064] Specifically, a notification plugin is preset in the target editor. Based on the information notification function in the notification plugin, communication can be established with the pending plugin. During the creation process of the project file, the notification plugin in the target editor can send a notification message to the pending plugin to query the completion status of the pending project file. When the result of the successful installation of the project file is detected, the pending plugin feeds back the message of the successful installation of the project file to the notification plugin. Then, the notification plugin can invoke the postMessage function according to the obtained notification message to send the installation information of the dependent file to the dependent file installation module. Then, the dependent file installation module installs the dependent file according to the configuration information in the target processing plugin.

[0065] S230. When it is detected that the target control is triggered, display the project configuration interface corresponding to the target pending edit project.

[0066] S240. Obtain at least one piece of configuration information in the project configuration interface, and generate a pending project file in the target processing plugin based on the at least one piece of configuration information.

[0067] S250. Based on the project import function, import the pending project file into the target editor.

[0068] S260. Based on the pending fusion project information in the target editor and the dependent file corresponding to the pending project file, obtain the target project corresponding to the target pending edit project; among them, the configuration information in the pending project file is included in the pending fusion project information.

[0069] In a specific example, such as Figure 3As shown in the figure, the wy-cli plugin (i.e., the target processing plugin) and postMessage (i.e., the notification plugin) are pre-installed in the vscode editor (i.e., the target editor). The user triggers the target control in the target editor, and a project configuration page is popped up through the vscode.window.createWebviewPanel method (a pop-up window control method). Then, the user enters the project configuration information in the project configuration page, or selects the project configuration information related to the project file to be processed in the pop-up window of the project configuration page. The project configuration information may include relevant information such as the project name, project version, project introduction, project address, css processor, state manager, and eslint plugin. After the user determines the project configuration information, the fs.existsSync method is used to determine the completion status of the project file to be processed. Based on the completion status of the project file to be processed, the target processing plugin sends notification information to the notification plugin in the target editor. When the notification plugin receives the notification information that the project file to be processed is successfully created, it notifies npm install (a package management tool) to install the dependent files of the project file to be processed through the postMessage function. Finally, based on the workbench.action.quickOpen function (i.e., the project import function), the project file to be processed is imported into the target editor. Based on the project information to be integrated in the target editor and the dependent files corresponding to the project file to be processed, the target project corresponding to the target project to be edited is obtained; wherein, the configuration information in the project file to be processed is included in the project information to be integrated.

[0070] The technical solution of this embodiment is based on the notification plugin in the target editor. After receiving the notification information that the installation of the project file to be processed is completed feedback by the target processing plugin, the completion status of the project file to be processed can be received through the notification plugin pre-set in the target editor. After the project file to be processed is successfully created, the dependent files related to this file are installed. According to the notification information, the postMessage function is called to send the installation information of installing the dependent files to the dependent file installation module, so that the dependent file installation module installs the dependent files according to the configuration information in the target processing plugin. By installing the dependent files related to the project file to be processed, the normal operation of the user when using this file can be guaranteed. It solves the problem that the project file cannot be directly imported into the editor, realizes the project construction according to the project configuration information, and automatically imports the built project file and related project content into the editor.

[0071] Embodiment Three

[0072] Figure 4A project processing device provided in Embodiment 3 of the present invention, the device includes: a project configuration interface display module 410, a to-be-processed project file generation module 420, a file import module 430, and a target project determination module 440.

[0073] The project configuration interface display module 410 is used to display a project configuration interface corresponding to a target to-be-edited project when a target control is detected to be triggered;

[0074] The to-be-processed project file generation module 420 is used to obtain at least one configuration information in the project configuration interface, and generate a to-be-processed project file in a target processing plugin based on the at least one configuration information;

[0075] The file import module 430 is used to import the to-be-processed project file into a target editor based on a project import function;

[0076] The target project determination module 440 is used to obtain a target project corresponding to the target to-be-edited project based on the to-be-fused project information in the target editor and a dependency file corresponding to the to-be-processed project file; wherein, the to-be-fused project information includes the configuration information in the to-be-processed project file.

[0077] The technical solution of this embodiment, when a target control is detected to be triggered, displays a project configuration interface corresponding to a target to-be-edited project. Through the selectable project configuration information in the project configuration interface, the user can determine at least one project configuration information. Obtain at least one configuration information in the project configuration interface, and generate a to-be-processed project file in a target processing plugin based on the at least one configuration information, then determine whether the to-be-processed project file is successfully created, and determine whether to import the to-be-processed project file into the target editor according to the result of the bedstead. If it is successfully created, based on the project import function, import the to-be-processed project file into the target editor, so as to directly import the project file into the target editor. During the import process, there is no need to pass through the terminal, and as much project-related information as possible can be displayed in the display interface of the target editor, avoiding the limitation of the number of display lines in the terminal buffer. Then, based on the to-be-fused project information in the target editor and a dependency file corresponding to the to-be-processed project file, obtain a target project corresponding to the target to-be-edited project; wherein, the to-be-fused project information includes the configuration information in the to-be-processed project file. After obtaining the target project, the project file can be normally run based on the installed dependency files related to the project. It solves the problem that the relevant content of the project file cannot be directly imported through the editor, and realizes the effect of creating a project file based on project configuration information and then importing the content of the project file into the editor.

[0078] Based on any optional technical solution in the embodiments of the present invention, optionally, the project configuration interface display module is configured to:

[0079] When detecting the triggering of the target processing plugin, generate a display instruction for displaying the project configuration interface, and display the project configuration interface based on the display instruction; or,

[0080] Obtain the command information edited in the command line, and display the project configuration interface corresponding to the target project to be edited according to the command information.

[0081] Based on any optional technical solution in the embodiments of the present invention, optionally, when the module for generating the project file to be processed receives an instruction that the configuration information editing is completed, it determines whether a project file to be processed is generated in the target processing plugin based on a file query method; if so, it determines that the creation of the project file to be processed is completed; if not, it feeds back an error message and regenerates the project file to be processed based on at least one piece of configuration information in the project configuration interface.

[0082] Based on any optional technical solution in the embodiments of the present invention, optionally, the project processing device further includes:

[0083] A message notification module, which is configured to, before importing the project file to be processed into the target editor based on a project import function, receive a notification message that the installation of the project file to be processed fed back by the target processing plugin based on the notification plugin in the target editor;

[0084] A dependent file installation module, which is configured to, according to the notification information, call the postMessage function to send installation information for installing dependent files to the dependent file installation module, so that the dependent file installation module installs the dependent files according to the configuration information in the target processing plugin.

[0085] Based on any optional technical solution in the embodiments of the present invention, optionally, the file import module specifically includes:

[0086] A sub-module for retrieving content to be imported, which is configured to retrieve the content to be imported in the project file to be processed from the target processing plugin based on the notification plugin;

[0087] A sub-module for importing the content to be imported, which is configured to import the content to be imported into the target editor based on the project import function.

[0088] Based on any optional technical solution in the embodiments of the present invention, optionally, the project processing device is further configured to, after obtaining the target project, run the project information to be fused based on the dependent files.

[0089] Based on any optional technical solution in the embodiments of the present invention, optionally, the configuration information in the project processing device includes configuration items and corresponding configuration contents, and the configuration items include at least one of a project name, a project version number, a project introduction, a project address, and a project status manager; the target processing plug-in encapsulates at least one type of general project code.

[0090] The project processing device provided by the embodiments of the present invention can execute the project processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0091] It should be noted that the various units and modules included in the above device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the embodiments of the present invention.

[0092] Embodiment 4

[0093] Figure 5 It is a schematic structural diagram of an electronic device provided for Embodiment 4 of the present invention. Figure 5 It shows a block diagram of an exemplary electronic device 40 suitable for implementing the implementation manner of the embodiments of the present invention. Figure 5 The displayed electronic device 40 is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present invention.

[0094] As Figure 5 shown, the electronic device 40 is presented in the form of a general-purpose computing device. The components of the electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 connecting different system components (including the system memory 402 and the processing unit 401).

[0095] The bus 403 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure in a variety of bus structures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0096] The electronic device 40 typically includes a variety of computer system readable media. These media can be any available media accessible by the electronic device 40, including volatile and non-volatile media, removable and non-removable media.

[0097] System memory 402 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 404 and / or cache memory 405. The electronic device 40 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 406 may be used for reading and writing on non-removable, non-volatile magnetic media ( Figure 5 not shown, typically referred to as a "hard disk drive"). Although Figure 5 not shown in the figure, a disk drive for reading and writing on removable non-volatile disks (such as a "floppy disk"), and an optical disk drive for reading and writing on removable non-volatile optical disks (such as a CD-ROM, DVD-ROM or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 through one or more data media interfaces. The memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the embodiments of the present invention.

[0098] A program / utilities 408 having a set (at least one) of program modules 407 may be stored, for example, in the memory 402. Such program modules 407 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each of these examples or some combination thereof may include an implementation of a network environment. The program modules 407 generally perform the functions and / or methods in the embodiments described in the present invention.

[0099] The electronic device 40 may also communicate with one or more external devices 409 (such as a keyboard, a pointing device, a display 410, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 40, and / or communicate with any device that enables the electronic device 40 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication may be carried out through an input / output (I / O) interface 411. Also, the electronic device 40 may communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 412. As shown in the figure, the network adapter 412 communicates with other modules of the electronic device 40 through the bus 403. It should be understood that although Figure 5 not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0100] The processing unit 401 executes various functional applications and data processing by running the programs stored in the system memory 402, such as implementing the item processing method provided by the embodiments of the present invention.

[0101] Embodiment 5

[0102] Embodiment 5 of the present invention further provides a storage medium including computer-executable instructions, which are used to execute an item processing method when executed by a computer processor. The method includes: when detecting a trigger of a target control, displaying an item configuration interface corresponding to a target item to be edited; obtaining at least one configuration information in the item configuration interface, and generating a to-be-processed item file in a target processing plug-in based on the at least one configuration information; importing the to-be-processed item file into a target editor based on an item import function; and obtaining a target item corresponding to the target item to be edited based on the to-be-fused item information in the target editor and a dependency file corresponding to the to-be-processed item file, where the to-be-fused item information includes the configuration information in the to-be-processed item file.

[0103] The computer storage medium of the embodiments of the present invention can adopt any combination of one or more computer-readable media. The computer-readable media can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or combined with an instruction execution system, apparatus, or device.

[0104] The computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium can send, propagate, or transmit a program used by or combined with an instruction execution system, apparatus, or device.

[0105] The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including - but not limited to - wireless, wire, optical fiber, RF, and the like, or any suitable combination of the foregoing.

[0106] The computer program code for performing the operations of the embodiments of the present invention can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).

[0107] Note that the above is only the preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein. Various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A project processing method, characterized in that, it includes: When detecting the triggering of a target control, display a project configuration interface corresponding to the target project to be edited; Obtain at least one configuration information in the project configuration interface, and generate a project file to be processed in a target processing plugin based on the at least one configuration information; Based on a project import function, import the project file to be processed into a target editor; Based on the project information to be fused in the target editor and the dependency file corresponding to the project file to be processed, obtain the target project corresponding to the target project to be edited; wherein, the configuration information in the project file to be processed is included in the project information to be fused; The generating the project file to be processed in the target processing plugin based on the at least one configuration information includes: Call the general code in the target processing plugin, and generate the project file to be processed based on the general code; Wherein, the target processing plugin contains the general code used when editing each project file.

2. The method according to claim 1, characterized in that, The when detecting the triggering of a target control, display a project configuration interface corresponding to the target project to be edited includes: When detecting the triggering of the target processing plugin, generate a display instruction for displaying the project configuration interface, and display the project configuration interface based on the display instruction; or, Obtain the command information edited in the command line, and display the project configuration interface corresponding to the target project to be edited according to the command information.

3. The method according to claim 1, characterized in that, The obtaining at least one configuration information in the project configuration interface, and generating a project file to be processed in the target processing plugin based on the at least one configuration information includes: When receiving an instruction that the configuration information editing is completed, determine whether a project file to be processed has been generated in the target processing plugin based on a file query method; If so, determine that the project file to be processed is created; If not, feedback an error message, and regenerate the project file to be processed based on at least one configuration information in the project configuration interface.

4. The method according to claim 1, characterized in that, Before importing the project file to be processed into the target editor based on the project import function, it further includes: Based on the notification plugin in the target editor, receive the notification information that the installation of the project file to be processed in the target processing plugin is completed; According to the notification information, call the postMessage function to send the installation information for installing the dependency file to the dependency file installation module, so that the dependency file installation module installs the dependency file according to the configuration information in the target processing plugin.

5. The method according to claim 4, characterized in that, The importing the project file to be processed into the target editor based on the project import function includes: Based on the notification plugin, retrieve the content to be imported in the project file to be processed from the target processing plugin; Based on the project import function, import the content to be imported into the target editor.

6. The method according to claim 1, wherein, after obtaining the target project, it further includes: running the project information to be integrated based on the dependency file.

7. The method according to any one of claims 1-6, wherein, the configuration information includes configuration items and configuration content corresponding to the configuration items, and the configuration items include at least one of project name, project version number, project introduction, project address, and project status manager; the target processing plug-in encapsulates general project codes of at least one type.

8. A project processing device, wherein, it includes: a project configuration interface display module, configured to display a project configuration interface corresponding to a target project to be edited when detecting a trigger of a target control; a project file to be processed generation module, configured to obtain at least one piece of configuration information in the project configuration interface, and generate a project file to be processed in a target processing plug-in based on the at least one piece of configuration information; a file import module, configured to import the project file to be processed into a target editor based on a project import function; a target project determination module, configured to obtain a target project corresponding to the target project to be edited based on the project information to be integrated in the target editor and a dependency file corresponding to the project file to be processed; wherein, the project information to be integrated includes the configuration information in the project file to be processed; the project file to be processed generation module is further configured to call general codes in the target processing plug-in and generate the project file to be processed based on the general codes; wherein, the target processing plug-in contains general codes used when editing each project file.

9. An electronic device, wherein, the electronic device includes: one or more processors; a storage device, configured to store one or more programs, when the one or more programs are executed by the one or more processors, enabling the one or more processors to implement the project processing method according to any one of claims 1-7.

10. A storage medium containing computer-executable instructions, wherein, the computer-executable instructions are used to execute the project processing method according to any one of claims 1-7 when executed by a computer processor.

Citation Information

Patent Citations

  • Generation method for Spring IOC (Inversion of Control) configuration file

    CN102609255A

  • Project construction method and device

    CN112835568A