CN117648122A - Visual code warehouse optimization method, system, equipment and storage medium - Google Patents
Visual code warehouse optimization method, system, equipment and storage medium Download PDFInfo
- Publication number
- CN117648122A CN117648122A CN202410102071.6A CN202410102071A CN117648122A CN 117648122 A CN117648122 A CN 117648122A CN 202410102071 A CN202410102071 A CN 202410102071A CN 117648122 A CN117648122 A CN 117648122A
- Authority
- CN
- China
- Prior art keywords
- code
- configuration
- configuration area
- warehouse
- area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005457 optimization Methods 0.000 title claims abstract description 56
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000000007 visual effect Effects 0.000 title claims abstract description 51
- 238000003860 storage Methods 0.000 title claims abstract description 35
- 238000004458 analytical method Methods 0.000 claims abstract description 70
- 238000012217 deletion Methods 0.000 claims abstract description 14
- 230000037430 deletion Effects 0.000 claims abstract description 14
- 230000008859 change Effects 0.000 claims abstract description 13
- 230000004044 response Effects 0.000 claims description 23
- 230000006870 function Effects 0.000 claims description 20
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 6
- 238000004519 manufacturing process Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004140 cleaning Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 241000282326 Felis catus Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明提供了一种可视代码仓库优化方法、系统、设备及存储介质,包括:提供加载信息配置界面,包括用于配置代码仓库地址的第一配置区域将待优化代码仓库中的代码加载至本地;提供分析信息配置界面,包括分析功能配置的第二配置区域和展示分析结果的第三配置区域;对代码进行分析并在第三配置区域展示;提供执行功能配置界面,包括执行删除的第四配置区域和执行推送的第五配置区域;删除待删除代码,生成变更记录;将变更记录推送至代码仓库相应的第一服务器地址。本发明可以简化代码仓库操作复杂度,便于用户可以按照不同业务需求非常直观的对代码仓库进行优化操作,同时节约代码仓库存储费用。
The invention provides a visual code warehouse optimization method, system, equipment and storage medium, including: providing a loading information configuration interface, including a first configuration area for configuring the code warehouse address, loading the code in the code warehouse to be optimized to Local; provides an analysis information configuration interface, including a second configuration area for analyzing function configuration and a third configuration area for displaying analysis results; analyzes the code and displays it in the third configuration area; provides an execution function configuration interface, including a third configuration area for performing deletion The fourth configuration area and the fifth configuration area for push execution; delete the code to be deleted and generate a change record; push the change record to the corresponding first server address of the code warehouse. The invention can simplify the operation complexity of the code warehouse, facilitate users to intuitively optimize the code warehouse according to different business needs, and at the same time save the storage cost of the code warehouse.
Description
技术领域Technical field
本发明涉及数据处理技术领域,尤其涉及一种可视代码仓库优化方法、系统、设备及存储介质。The present invention relates to the field of data processing technology, and in particular to a visual code warehouse optimization method, system, equipment and storage medium.
背景技术Background technique
代码管理工具也称为代码托管和协作工具,越来越成为现代软件开发企业在软件开发过程中提高生产效率和质量的重要工具,成为代码管理、版本控制、协作开发上的重要选择。目前大多数公司的代码仓库都采用Git作为版本管理,作为版本管理工具,会将开发历程中所有的版本文件进行保存。随着团队规模扩大,项目中代码仓库不断的迭代、新增会导致Git仓库越来越大,进而导致存储空间紧张、仓库下载耗时增加。这时需要对仓库中那些历史久远的无用文件进行清理,但是按照目前的清理方式,需要开发人员在熟知Git操作命令和命令行操作步骤的情况下,一步一步的执行删除操作,命令行操作复杂,另外删除代码的操作单次只能删除一个,删除多个文件需要重复执行多次操作,存在效率极低以及对操作人员的使用学习门槛和技能要求较高,以及安装、维护都比较复杂的问题。Code management tools, also known as code hosting and collaboration tools, have increasingly become an important tool for modern software development companies to improve production efficiency and quality during the software development process, and have become an important choice for code management, version control, and collaborative development. At present, most companies' code warehouses use Git as version management. As a version management tool, all version files during the development process will be saved. As the team scale expands, the continuous iteration and addition of code repositories in the project will cause the Git repository to become larger and larger, resulting in tight storage space and increased repository download time. At this time, it is necessary to clean up those useless files with a long history in the warehouse. However, according to the current cleaning method, developers need to be familiar with Git operation commands and command line operation steps to perform the deletion step by step. The command line operation is complicated. , in addition, the operation of deleting code can only delete one at a time. Deleting multiple files requires repeated operations, which is extremely inefficient and requires high learning threshold and skill requirements for operators, as well as complicated installation and maintenance. question.
需要说明的是,上述背景技术部分公开的信息仅用于加强对本发明的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the background art section above is only used to enhance understanding of the background of the present invention, and therefore may include information that does not constitute prior art known to those of ordinary skill in the art.
发明内容Contents of the invention
针对现有技术中的问题,本发明的目的在于提供一种可视代码仓库优化方法、系统、设备及存储介质,以代替现有技术中通过命令行方式对代码仓库的优化。In view of the problems in the prior art, the purpose of the present invention is to provide a visual code warehouse optimization method, system, equipment and storage medium to replace the optimization of the code warehouse through the command line in the prior art.
本发明实施例还提供一种可视代码仓库优化方法,包括如下步骤:An embodiment of the present invention also provides a visual code warehouse optimization method, which includes the following steps:
于客户端加载模块提供加载信息配置界面,加载信息配置页面包括用于配置代码仓库地址的第一配置区域;The client loading module provides a loading information configuration interface, and the loading information configuration page includes a first configuration area for configuring the code warehouse address;
响应用户在第一配置区域的设置获取待优化代码仓库,将待优化代码仓库中的代码加载至本地;Acquire the code repository to be optimized in response to the user's settings in the first configuration area, and load the code in the code repository to be optimized locally;
于客户端分析模块提供分析信息配置界面,分析信息配置界面包括分析功能配置的第二配置区域和展示分析结果的第三配置区域;An analysis information configuration interface is provided in the client analysis module. The analysis information configuration interface includes a second configuration area for analysis function configuration and a third configuration area for displaying analysis results;
响应用户在第二配置区域的设置,对代码进行分析并在第三配置区域展示;Respond to the user's settings in the second configuration area, analyze the code and display it in the third configuration area;
于客户端执行模块提供执行功能配置界面,执行功能配置界面包括执行删除的第四配置区域和执行推送的第五配置区域;An execution function configuration interface is provided in the client execution module. The execution function configuration interface includes a fourth configuration area for deletion and a fifth configuration area for push execution;
响应用户在第三配置区域对待删除代码的选择操作和第四配置区域的设置,删除待删除代码,生成变更记录;In response to the user's selection operation of the code to be deleted in the third configuration area and the settings in the fourth configuration area, delete the code to be deleted and generate a change record;
响应用户在第五配置区域的设置,将变更记录推送至代码仓库相应的第一服务器地址。In response to the user's settings in the fifth configuration area, the change record is pushed to the corresponding first server address of the code warehouse.
进一步的,第一配置区域包括服务器端代码仓库配置选项、本地代码仓库配置选项和扫描本地文件夹配置选项。Further, the first configuration area includes server-side code repository configuration options, local code repository configuration options and scanning local folder configuration options.
进一步的,服务器端代码仓库配置选项,包括服务器端代码仓库地址设置区域,当用户在服务器端代码仓库地址设置区域配置代码仓库相应的第一服务器地址,获取待优化代码仓库被设置为通过执行加载脚本实现。Further, the server-side code warehouse configuration options include the server-side code warehouse address setting area. When the user configures the corresponding first server address of the code warehouse in the server-side code warehouse address setting area, the code warehouse to be optimized is set to be loaded by execution. Script implementation.
进一步的,第二配置区域包括按照代码文件大小分析选项、按照代码创建时间分析选项、按照代码最后调用时间分析选项和按照自定义规则分析选项。Further, the second configuration area includes an analysis option based on code file size, an analysis option based on code creation time, an analysis option based on code last call time, and an analysis option based on custom rules.
进一步的,响应用户在第二配置区域的设置被设置为通过执行分析脚本实现。Further, responding to the user's settings in the second configuration area is implemented by executing an analysis script.
进一步的,响应用户在第三配置区域对待优化代码的选择操作被设置为在第三配置区域对分析后的待优化代码进行复选框选择。Further, in response to the user's selection operation of the code to be optimized in the third configuration area, it is set to perform a check box selection on the analyzed code to be optimized in the third configuration area.
进一步的,响应用户在第五配置区域的设置,被设置为调用推送脚本。Further, in response to the user's settings in the fifth configuration area, the push script is set to be called.
进一步的,可视代码仓库优化方法还包括代码备份方法,包括如下步骤:Further, the visual code warehouse optimization method also includes a code backup method, including the following steps:
在第四配置区域的设置之后,弹出需用户再次对第四配置区域的设置做确认的窗口;After setting the fourth configuration area, a window pops up that requires the user to confirm the settings of the fourth configuration area again;
响应用户再次对第四配置区域的设置做确认,将用户选择的第三配置区域的待删除代码生成备份代码;In response to the user confirming the settings of the fourth configuration area again, the code to be deleted in the third configuration area selected by the user is generated as a backup code;
删除待删除代码,生成变更记录。Delete the code to be deleted and generate a change record.
进一步的,响应用户在第五配置区域的设置,将备份代码推送至预设的第二服务器地址。Further, in response to the user's settings in the fifth configuration area, the backup code is pushed to a preset second server address.
本发明实施例还提供一种可视代码仓库优化系统,用于实现所述的可视代码仓库优化方法,所述系统包括客户端和服务器,所述客户端包括加载模块、分析模块和执行模块,所述服务器设置有第二服务器地址,所述服务器通过所述第二服务器地址接收并存储所述执行模块发送的备份代码。Embodiments of the present invention also provide a visual code warehouse optimization system for implementing the visual code warehouse optimization method. The system includes a client and a server. The client includes a loading module, an analysis module and an execution module. , the server is provided with a second server address, and the server receives and stores the backup code sent by the execution module through the second server address.
本发明实施例还提供一种可视代码仓库优化设备,包括:An embodiment of the present invention also provides a visual code warehouse optimization device, including:
处理器;processor;
存储器,其中存储有所述处理器的可执行指令;A memory in which executable instructions of the processor are stored;
其中,所述处理器配置为经由执行所述可执行指令来执行所述的可视代码仓库优化方法的步骤。Wherein, the processor is configured to execute the steps of the visual code warehouse optimization method by executing the executable instructions.
本发明实施例还提供一种计算机可读存储介质,用于存储程序,所述程序被处理器执行时实现所述的可视代码仓库优化方法的步骤。Embodiments of the present invention also provide a computer-readable storage medium for storing a program that implements the steps of the visual code warehouse optimization method when the program is executed by a processor.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
本发明的可视代码仓库优化方法、系统、设备及存储介质具有如下有益效果:The visual code warehouse optimization method, system, equipment and storage medium of the present invention have the following beneficial effects:
本发明可以简化代码仓库操作复杂度,便于用户可以按照不同业务需求非常直观的对代码仓库进行优化操作,简化了代码仓库优化流程,提升操作效率,同时节约代码仓库存储费用。The invention can simplify the complexity of code warehouse operations, facilitate users to intuitively optimize the code warehouse according to different business needs, simplify the code warehouse optimization process, improve operating efficiency, and save code warehouse storage costs.
附图说明Description of drawings
通过阅读参照以下附图对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显。Other features, objects and advantages of the present invention will become more apparent upon reading the detailed description of the non-limiting embodiments with reference to the following drawings.
图1是本发明一实施例的可视代码仓库优化客户端的结构示意图;Figure 1 is a schematic structural diagram of a visual code warehouse optimization client according to an embodiment of the present invention;
图2是本发明一实施例的可视代码仓库优化方法的流程图;Figure 2 is a flow chart of a visual code warehouse optimization method according to an embodiment of the present invention;
图3是本发明一实施例的可视代码仓库优化方法的代码备份方法的流程图;Figure 3 is a flow chart of the code backup method of the visual code warehouse optimization method according to an embodiment of the present invention;
图4是本发明一实施例的可视代码仓库优化客户端加载模块加载信息配置界面示意图;Figure 4 is a schematic diagram of the loading information configuration interface of the visual code warehouse optimization client loading module according to an embodiment of the present invention;
图5是本发明一实施例的可视代码仓库优化客户端分析模块分析信息配置界面第一部分示意图;Figure 5 is a schematic diagram of the first part of the analysis information configuration interface of the visual code warehouse optimization client analysis module according to an embodiment of the present invention;
图6是本发明一实施例的可视代码仓库优化客户端分析模块分析信息配置界面第二部分和执行模块执行功能配置界面示意图;Figure 6 is a schematic diagram of the second part of the analysis information configuration interface of the visual code warehouse optimization client analysis module and the execution function configuration interface of the execution module according to an embodiment of the present invention;
图7是本发明一实施例的可视代码仓库优化客户端执行模块二次确认界面示意图;Figure 7 is a schematic diagram of the secondary confirmation interface of the visual code warehouse optimization client execution module according to an embodiment of the present invention;
图8是本发明一实施例的可视代码仓库优化设备的结构示意图;Figure 8 is a schematic structural diagram of a visual code warehouse optimization device according to an embodiment of the present invention;
图9是本发明一实施例的计算机可读存储介质的结构示意图。Figure 9 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concepts of the example embodiments. To those skilled in the art. The described features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices.
附图中所示的流程图仅是示例性说明,不是必须包括所有的步骤。例如,有的步骤还可以分解,而有的步骤可以合并或部分合并,因此,实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are illustrative only and do not necessarily include all steps. For example, some steps can be decomposed, and some steps can be combined or partially combined. Therefore, the actual execution order may change according to the actual situation.
如图1所示,本发明实施例提供一种可视代码仓库优化客户端,包括加载模块M100、分析模块M200和执行模块M300,加载模块M100用于将待优化代码仓库中的代码加载至本地,分析模块M200用于对代码进行分析并展示分析结果,执行模块M300用于删除待删除代码,生成变更记录并推送至代码仓库相应的第一服务器地址。定义第一服务器地址为代码仓库所在服务器地址。As shown in Figure 1, an embodiment of the present invention provides a visual code warehouse optimization client, including a loading module M100, an analysis module M200, and an execution module M300. The loading module M100 is used to load the code in the code warehouse to be optimized to the local , the analysis module M200 is used to analyze the code and display the analysis results, and the execution module M300 is used to delete the code to be deleted, generate a change record and push it to the corresponding first server address of the code warehouse. Define the first server address as the server address where the code warehouse is located.
加载模块M100,用于加载待优化的本地或远端代码仓库中的代码,将远端仓库拉取到本地操作。The loading module M100 is used to load the code in the local or remote code repository to be optimized, and pull the remote repository to the local operation.
分析模块M200,用于对指定要分析的代码仓库按照预设的规则进行分析和展示,例如按照代码大小分析、按照代码文件名称分析、按照创建代码文件的时间分析、或者按照代码文件的更新时间分析,并将分析结果展示出来以便于用户进行对待删除代码的选择操作。The analysis module M200 is used to analyze and display the code repository specified to be analyzed according to preset rules, such as analysis according to code size, analysis according to code file name, analysis according to the time when the code file was created, or according to the update time of the code file. Analyze and display the analysis results to facilitate users to select the code to be deleted.
可选的,分析模块M200还可以按照用户自定义的规则进行分析,并将自定义规则保存下来便于后续选用。例如提供创建、更新时间、修改时间、文件大小等属性,结合逻辑运算符创建自定义的分析规则。Optionally, the analysis module M200 can also perform analysis according to user-defined rules and save the custom rules for subsequent selection. For example, it provides attributes such as creation, update time, modification time, file size, etc., and combines logical operators to create customized analysis rules.
执行模块M300,用于对待删除代码的删除执行,期间提供二次确认的功能,防止用户误操作。此外执行模块M300负责对优化完成的代码仓库进行记录变更和推送回代码仓库,以完成远端代码仓库的优化。The execution module M300 is used to delete the code to be deleted, and provides a secondary confirmation function during the process to prevent users from misoperation. In addition, the execution module M300 is responsible for recording changes to the optimized code warehouse and pushing them back to the code warehouse to complete the optimization of the remote code warehouse.
可选的,执行模块M300具备代码备份功能,由于在远端代码仓库的优化操作是不可恢复的,所以为了保证可回溯,在执行模块M300增加了对待删除代码文件的备份操作并生成备份文件。该备份文件可以备份在本地。Optionally, the execution module M300 has a code backup function. Since the optimization operation in the remote code warehouse is irrecoverable, in order to ensure traceability, the execution module M300 adds a backup operation for the code files to be deleted and generates a backup file. This backup file can be backed up locally.
可选的,执行模块M300具备发送功能,将备份文件发送到客户端执行模块M300默认的或者用户设置的第二服务器地址即其他服务器地址。Optionally, the execution module M300 has a sending function to send the backup file to the second server address that is the default of the client execution module M300 or set by the user, that is, other server addresses.
可选的,可视代码仓库优化客户端可以采用单独开发app的方式实现,也可以将客户端的各模块在现有git客户端分别以插件的形式实现。Optionally, the visual code warehouse optimization client can be implemented by developing a separate app, or each module of the client can be implemented as a plug-in in the existing git client.
如图2所示,本发明实施例提供一种可视代码仓库优化方法,包括如下步骤:As shown in Figure 2, this embodiment of the present invention provides a visual code warehouse optimization method, which includes the following steps:
S100:于客户端加载模块M100提供加载信息配置界面,加载信息配置页面包括用于配置代码仓库地址的第一配置区域;S100: Provide a loading information configuration interface in the client loading module M100. The loading information configuration page includes a first configuration area for configuring the code warehouse address;
在该实施例中,加载信息配置界面是配置代码仓库地址的界面,在第一配置区域实现配置代码仓库的地址。In this embodiment, the loading information configuration interface is an interface for configuring the address of the code warehouse, and the address of the code warehouse is configured in the first configuration area.
可选的,第一配置区域包括服务器端代码仓库配置选项、本地代码仓库配置选项和扫描本地文件夹配置选项。Optionally, the first configuration area includes server-side code repository configuration options, local code repository configuration options and scanning local folder configuration options.
在该实施例中,如图4所示,第一配置区域提供了三个获取代码仓库地址的配置方式,分别是服务器端代码仓库配置选项即从URL克隆、本地代码仓库配置选项即添加已存在的本地仓库和扫描本地文件夹配置选项即扫描本地文件夹。从URL克隆即从第一服务器地址获取代码仓库,第一服务器地址即代码仓库在Git服务器的相应地址。添加已存在的本地仓库方式即通过用户已经加载到本地的代码仓库的目录地址获取代码仓库。扫描本地文件夹即通过客户端所在运行系统提供的文件查找功能,无需指定代码仓库的目录地址,通过运行系统提供的文件查找功能查找代码仓库所在目录地址。受益于本实施例提供的多种代码仓库地址配置方式的选项,可以极大的方便用户选择待优化代码仓库的配置选取。In this embodiment, as shown in Figure 4, the first configuration area provides three configuration methods for obtaining the code warehouse address, namely, the server-side code warehouse configuration option is to clone from the URL, and the local code warehouse configuration option is to add an existing code warehouse. The local repository and scan local folder configuration options are to scan local folders. Clone from URL means to obtain the code repository from the first server address, which is the corresponding address of the code repository on the Git server. The method of adding an existing local repository is to obtain the code repository through the directory address of the code repository that the user has loaded into the local repository. Scanning the local folder means using the file search function provided by the running system where the client is located. There is no need to specify the directory address of the code warehouse. The directory address of the code warehouse is found through the file search function provided by the running system. Benefiting from the multiple code warehouse address configuration options provided in this embodiment, it can greatly facilitate users to select the configuration of the code warehouse to be optimized.
S200:响应用户在第一配置区域的设置获取待优化代码仓库,将待优化代码仓库中的代码加载至本地;S200: Acquire the code warehouse to be optimized in response to the user's settings in the first configuration area, and load the code in the code warehouse to be optimized locally;
在该实施例中,如图5所示,响应用户在第一配置区域的设置获取待优化代码仓库,获取到的待优化代码仓库显示在仓库列表中,在图5的上半部分示例性的列出获取到的三个仓库代码。In this embodiment, as shown in Figure 5, the code warehouse to be optimized is obtained in response to the user's settings in the first configuration area, and the obtained code warehouse to be optimized is displayed in the warehouse list. In the upper part of Figure 5, the code warehouse is exemplary List the three warehouse codes obtained.
可选的,服务器端代码仓库配置选项,包括服务器端代码仓库地址设置区域,当用户在所述服务器端代码仓库地址设置区域配置代码仓库相应的第一服务器地址,获取待优化代码仓库被设置为通过执行加载脚本实现。Optionally, the server-side code warehouse configuration options include a server-side code warehouse address setting area. When the user configures the corresponding first server address of the code warehouse in the server-side code warehouse address setting area, the code warehouse to be optimized is set to This is achieved by executing the loading script.
在该实施例中,响应用户在第一配置区域的设置被设置为根据第一配置区域的代码仓库地址的配置,加载脚本的命令采用例如git clone git@git.xxx 将代码仓库从远端仓库拉取到本地,git.xxx为代码仓库地址示例。加载脚本将操作目录设定为本地仓库目录,例如在windows系统中采用cd 仓库目录的方式进入到指定目录。受益于加载脚本的设置,便于用户的操作,无需使用命令行的操作,即可将代码仓库加载到本地并将操作目录设定到代码仓库所在目录,便于后续软件的执行。第一服务器地址为存储在例如git服务器的代码仓库的地址,代码仓库存储在例如git服务器的代码仓库端,每个代码仓库均对应有其第一服务器地址。In this embodiment, in response to the user's settings in the first configuration area being set according to the configuration of the code warehouse address in the first configuration area, the command to load the script uses, for example, git clone git@git.xxx to transfer the code warehouse from the remote warehouse Pull to local, git.xxx is an example of the code warehouse address. The loading script sets the operating directory to the local warehouse directory. For example, in the Windows system, use cd warehouse directory to enter the specified directory. Benefiting from the settings of the loading script, it is convenient for users to operate. Without using the command line, the code warehouse can be loaded locally and the operation directory is set to the directory where the code warehouse is located, which facilitates the execution of subsequent software. The first server address is an address stored in a code warehouse, such as a git server. The code warehouse is stored in a code warehouse, such as a git server. Each code warehouse corresponds to its first server address.
S300:于客户端分析模块M200提供分析信息配置界面,分析信息配置界面包括分析功能配置的第二配置区域和展示分析结果的第三配置区域;S300: Provide an analysis information configuration interface in the client analysis module M200. The analysis information configuration interface includes a second configuration area for analysis function configuration and a third configuration area for displaying analysis results;
可选的,第二配置区域包括按照代码文件大小分析选项、按照代码创建时间分析选项、按照代码最后调用时间分析选项和按照自定义规则分析选项。Optionally, the second configuration area includes an analysis option based on code file size, an analysis option based on code creation time, an analysis option based on code last call time, and an analysis option based on custom rules.
在该实施例中,如图5所示,在图5的下半部分示例性的展示了第二配置区域提供的两种代码分析功能配置方式,分别是按照代码文件大小分析选项即按照文件大小排序分析和按照代码创建时间分析选项即按照文件添加历史排序分析。但是代码分析功能的配置方式不限于此,还包括按照代码最后调用时间分析选项和按照自定义规则分析选项来对代码进行分析,自定义规则例如提供创建、更新时间、修改时间、文件大小等属性,结合逻辑运算符创建自定义的分析规则。In this embodiment, as shown in Figure 5, the lower part of Figure 5 exemplarily shows two code analysis function configuration modes provided by the second configuration area, which are the analysis option according to code file size, that is, according to file size. The sorting analysis and code creation time analysis options add historical sorting analysis by file. However, the configuration method of the code analysis function is not limited to this. It also includes analysis options based on the last call time of the code and analysis options based on custom rules. The custom rules provide attributes such as creation, update time, modification time, file size, etc. , combined with logical operators to create custom analysis rules.
S400:响应用户在第二配置区域的设置,对代码进行分析并在第三配置区域展示;S400: Respond to the user's settings in the second configuration area, analyze the code and display it in the third configuration area;
在该实施例中,如图6所示,在图6上半部分示例性的展示了第三配置区域提供的对代码按照代码文件大小分析选项进行分析之后的结果,文件大小列从上至下按照代码文件从大到小的顺序进行排序。受益于第三配置区域展示的代码分析展示结果,可以便于用户可以按照不同业务需求非常直观的选用不同分析选项查看代码仓库中代码文件。In this embodiment, as shown in Figure 6, the upper part of Figure 6 exemplarily shows the results after analyzing the code according to the code file size analysis option provided by the third configuration area. The file size column is from top to bottom. Sort the code files from largest to smallest. Benefiting from the code analysis display results displayed in the third configuration area, users can intuitively select different analysis options to view the code files in the code warehouse according to different business needs.
可选的,响应用户在第二配置区域的设置被设置为通过执行分析脚本实现。在该实施例中,响应用户在第二配置区域的设置被设置为根据第二配置区域的代码仓库地址的配置,分析脚本的命令采用例如按照代码文件大小分析选项即按照文件大小排序分析时,通过命令行git:(feature/Test) X du –d 1 –h查看,查看仓库大小采用命令行gitcount-objects –v。其中.git 目录下是存储了整个代码仓库的元数据信息,包含提交历史记录、分支信息、标签信息和文件对象。命令行查看发现,objects对象很大,为重点清理对象。按照其他方式的分析,例如按照代码创建时间分析选项即按照文件添加历史排序分析、按照代码最后调用时间分析选项和按照自定义规则分析选项均可在分析脚本中采用相应功能的命令行的方式实现分析,在此不做赘述。Optionally, responding to the user's settings in the second configuration area is set by executing an analysis script. In this embodiment, in response to the user's setting in the second configuration area being set to the configuration according to the code warehouse address of the second configuration area, the command of the analysis script adopts, for example, the analysis by code file size option, that is, when the analysis is sorted by file size, Check it through the command line git:(feature/Test) X du –d 1 –h. To check the warehouse size, use the command line gitcount-objects –v. The .git directory stores the metadata information of the entire code warehouse, including submission history, branch information, tag information, and file objects. Checking the command line shows that the objects object is very large, so focus on cleaning up the objects. Analysis in other ways, such as the analysis option based on code creation time, that is, the analysis based on the file adding history sorting, the analysis option based on the last call time of the code, and the analysis option based on custom rules, can all be implemented by using the command line with the corresponding function in the analysis script. Analysis will not be repeated here.
S500:于客户端执行模块M300提供执行功能配置界面,执行功能配置界面包括执行删除的第四配置区域和执行推送的第五配置区域;S500: Provide an execution function configuration interface for the client execution module M300. The execution function configuration interface includes a fourth configuration area for deletion and a fifth configuration area for push execution;
在该实施例中,如图6所示,在图6的下半部分示例性的展示了执行模块M300提供的执行删除的第四配置区域即图6中的确认删除和执行推送的第五配置区域即图6中的一键推送。In this embodiment, as shown in Figure 6, the lower part of Figure 6 exemplarily shows the fourth configuration area for performing deletion provided by the execution module M300, that is, the fifth configuration for confirming deletion and performing push in Figure 6 The area is the one-click push in Figure 6.
S600:响应用户在第三配置区域对待删除代码的选择操作和第四配置区域的设置,删除待删除代码,生成变更记录;S600: In response to the user's selection operation of the code to be deleted in the third configuration area and the settings in the fourth configuration area, delete the code to be deleted and generate a change record;
在该实施例中,响应用户在第三配置区域对待优化代码的选择操作被设置为在第三配置区域对分析后的待优化代码进行复选框选择,如图6所示,示例性的选择了按照大小排序的前四个大文件。响应用户在第四配置区域的设置被设置为根据对待删除代码的选择通过执行删除脚本实现,例如待删除代码选择了libcocoas2d.a文件,则删除脚本的删除命令行采用git filter-branch -f --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch .lint/Pods/YppCocos/YppCocos/libcocoas2d.a' --tag-name-filter cat -- --all,如在第三配置区域对分析后的待优化代码进行复选框选择了多个文件,则设置为重复调用执行删除脚本来实现多个文件的删除。In this embodiment, in response to the user's selection operation of the code to be optimized in the third configuration area, it is set to check box selection of the code to be optimized after analysis in the third configuration area, as shown in Figure 6, an exemplary selection The top four largest files sorted by size. Responding to the user's settings in the fourth configuration area is set to execute the deletion script according to the selection of the code to be deleted. For example, if the libcocoas2d.a file is selected for the code to be deleted, the deletion command line of the deletion script uses git filter-branch -f - -prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch .lint/Pods/YppCocos/YppCocos/libcocoas2d.a' --tag-name-filter cat -- --all, such as In the third configuration area, check the box of the code to be optimized after analysis and select multiple files, and set it to repeatedly call and execute the deletion script to achieve the deletion of multiple files.
S700:响应用户在第五配置区域的设置,将变更记录推送至代码仓库相应的第一服务器地址。S700: In response to the user's settings in the fifth configuration area, push the change record to the corresponding first server address of the code warehouse.
在该实施例中,第一服务器地址选代码仓库所在Git服务器地址,但不以此为限,还可选用其他代码管理工具如Gittee或者企业自建代码仓库等方式实施。In this embodiment, the first server address is the Git server address where the code warehouse is located, but it is not limited to this. Other code management tools such as Gittee or the enterprise's self-built code warehouse can also be used for implementation.
可选的,响应用户在第五配置区域的设置,被设置为调用推送脚本。Optionally, in response to the user's settings in the fifth configuration area, it is set to call the push script.
在该实施例中,响应用户在第五配置区域的设置也即用户确认执行一键推送。在Git系统中涉及到文件删除的操作,需要将删除操作的对代码仓库的变更记录在Git索引上做更新。推送脚本的命令采用例如git reflog expire –expire==now&&git gc –prune=now –aggressive实现更新代码仓库的Git索引;git push origin –force –all完成将删除代码的操作推送到第一服务器地址,完成对代码仓库的优化。In this embodiment, one-click push is performed in response to the user's settings in the fifth configuration area, that is, the user confirms. When a file deletion operation is involved in the Git system, the changes to the code repository caused by the deletion operation need to be recorded and updated on the Git index. The push script command uses, for example, git reflog expire –expire==now&&git gc –prune=now –aggressive to update the Git index of the code warehouse; git push origin –force –all completes the operation of deleting the code and pushes it to the first server address. Complete Optimization of code repository.
如图3所示,本发明实施例还提供一种可视代码仓库优化方法的代码备份方法,包括如下步骤:As shown in Figure 3, an embodiment of the present invention also provides a code backup method of the visual code warehouse optimization method, which includes the following steps:
S601:在第四配置区域的设置之后,弹出需用户再次对第四配置区域的设置做确认的窗口;S601: After setting the fourth configuration area, a window pops up that requires the user to confirm the settings of the fourth configuration area again;
在该实施例中,如图7所示,示例性的展示了需用户再次对第四配置区域的设置做确认的弹出的窗口层覆盖于第三配置区域之上,本发明对弹出的窗口的相对位置不作具体限制,图7中仅为示例性的展示,也可处于其他位置,其他达成本发明效果的弹出位置和方式均属于本发明的保护范围。弹出需用户再次对第四配置区域的设置做确认的窗口展示为询问是否确定要删除已选择文件以及确定和取消的两个选项窗口。受益于该配置,可以有效防止用户误操作删除代码。In this embodiment, as shown in Figure 7, an exemplary display shows that the pop-up window layer that requires the user to confirm the settings of the fourth configuration area again is covered on the third configuration area. The present invention has a The relative position is not specifically limited. Figure 7 is only an exemplary display. It can also be in other positions. Other pop-up positions and methods that achieve the effect of the present invention all fall within the protection scope of the present invention. The pop-up window that requires the user to confirm the settings of the fourth configuration area again is displayed as a window asking whether to confirm whether to delete the selected file and two option windows of OK and Cancel. Benefiting from this configuration, users can be effectively prevented from deleting codes by mistake.
S602:响应用户再次对第四配置区域的设置做确认,将用户选择的第三配置区域的待删除代码生成备份代码;S602: In response to the user confirming the settings of the fourth configuration area again, generate a backup code for the code to be deleted in the third configuration area selected by the user;
在该实施例中,响应用户再次对第四配置区域的设置做确认被设置为根据用户选择的第三配置区域的待删除代码通过执行备份脚本实现对待删除代码的备份,通过命令行cp libcocoas2d.a ~/.back,实现对libcocoas2d.a文件的备份生成.back备份文件。受益于备份脚本对删除代码的备份,可以有效的防止误操作或者对代码仓库的回滚,便于代码回溯分析时的代码完整性的保障。有益于将生产代码和非生产用代码进行隔离,及时清理生产代码空间,防止生产代码过于臃肿,影响生产代码效率。同时,也能够节约代码仓库的费用。In this embodiment, in response to the user confirming the setting of the fourth configuration area again, the backup of the code to be deleted is implemented by executing the backup script according to the code to be deleted in the third configuration area selected by the user, through the command line cp libcocoas2d. a ~/.back, realizes the backup of libcocoas2d.a file and generates .back backup file. Benefiting from the backup of deleted code by the backup script, it can effectively prevent misoperation or rollback of the code warehouse, and facilitate the protection of code integrity during code retrospective analysis. It is beneficial to isolate production code and non-production code, clean up the production code space in time, and prevent the production code from being too bloated and affecting the efficiency of the production code. At the same time, it can also save the cost of code warehouse.
S603:删除待删除代码,生成变更记录。S603: Delete the code to be deleted and generate a change record.
可选的,响应用户在第五配置区域的设置,将备份代码推送至预设的第二服务器地址。在该实施例中,响应用户在第五配置区域的设置也即用户确认执行一键推送,将备份代码推送至第二服务器,第二服务器为区别于第一服务器用于存储备份代码,第二服务器通过在客户端工具中预先设置好的第二服务器地址接收.back备份数据。第二服务器地址默认设置为本发明客户端设置的默认地址,也可以由用户指定任意网络存储空间。本发明对备份代码推送技术不做具体限制,可以是ftp方式或者其他可以达成本发明技术效果的数据传数方式,均属于本发明保护范围。Optionally, in response to the user's settings in the fifth configuration area, the backup code is pushed to the preset second server address. In this embodiment, the backup code is pushed to the second server in response to the user's settings in the fifth configuration area, that is, the user confirms the execution of the one-click push. The second server is different from the first server and is used to store the backup code. The server receives the .back backup data through the second server address preset in the client tool. The second server address is set by default to the default address set by the client of the present invention, or any network storage space can be specified by the user. The present invention does not impose specific restrictions on the backup code push technology. It can be an ftp method or other data transmission methods that can achieve the technical effects of the present invention, which all fall within the protection scope of the present invention.
本发明以Git代码仓库的代码操作步骤和命令行的设计为例,但本发明不以此为限,如本发明应用到其他代码管理工具的,可以适应性的调整操作步骤和命令行的选取,可以达到相同的发明目的和技术效果的适应性的调整,均属于本发明的保护范围。This invention takes the code operation steps and command line design of the Git code warehouse as an example, but the invention is not limited to this. If the invention is applied to other code management tools, the operation steps and command line selection can be adjusted adaptively. , adaptable adjustments that can achieve the same inventive purpose and technical effect all belong to the protection scope of the present invention.
该实施例的可视代码仓库优化方法中,每个步骤的序号仅为区分各个步骤,而不作为各个步骤的具体执行顺序的限定,上述各个步骤之间的执行顺序可以根据需要调整改变。In the visual code warehouse optimization method of this embodiment, the serial number of each step is only used to distinguish each step, and is not used to limit the specific execution order of each step. The execution order between the above steps can be adjusted and changed as needed.
该实施例的可视代码仓库优化方法中,各配置区域的设置,仅为展示所用,而不作为设置单独的页面的限定,配置区域的设置可以配置为单独页面也可以配置为整个页面的某个区域,或者设置为其他产品的某一功能区域也可,各配置区域的设置均可进行以达到相同的发明目的和技术效果的适应性的调整,其适应性的变化调整均属于本发明的保护范围。In the visual code warehouse optimization method of this embodiment, the settings of each configuration area are only used for display and are not limited to setting a separate page. The settings of the configuration area can be configured as a separate page or as a certain part of the entire page. area, or it can be set as a certain functional area of other products. The settings of each configuration area can be adapted to achieve the same inventive purpose and technical effect, and the adaptability changes and adjustments belong to the present invention. protected range.
本发明实施例还提供一种可视代码仓库优化系统,包括客户端和服务器,客户端包括加载模块M100、分析模块M200和执行模块M300,服务器设置有第二服务器地址,服务器通过第二服务器地址接收并存储执行模块M300发送的备份代码。本发明的可视代码仓库优化系统中,各个模块的功能可以采用如上所述的可视代码仓库优化方法的具体实施方式来实现。Embodiments of the present invention also provide a visual code warehouse optimization system, which includes a client and a server. The client includes a loading module M100, an analysis module M200, and an execution module M300. The server is provided with a second server address, and the server passes the second server address. Receive and store the backup code sent by the execution module M300. In the visual code warehouse optimization system of the present invention, the functions of each module can be implemented using the specific implementation of the visual code warehouse optimization method as described above.
本发明实施例还提供一种可视代码仓库优化设备,包括处理器;存储器,其中存储有所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行所述的可视代码仓库优化方法的步骤。An embodiment of the present invention also provides a visual code warehouse optimization device, including a processor; a memory in which executable instructions of the processor are stored; wherein the processor is configured to execute by executing the executable instructions. The steps of the visual code warehouse optimization method.
所属技术领域的技术人员能够理解,本发明的各个方面可以实现为系统、方法或程序产品。因此,本发明的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码仓库等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“平台”。Those skilled in the art will understand that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention can be implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode warehouse, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as as "circuit", "module" or "platform".
下面参照图8来描述根据本发明的这种实施方式的电子设备600。图8显示的电子设备600仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。An electronic device 600 according to this embodiment of the invention is described below with reference to FIG. 8 . The electronic device 600 shown in FIG. 8 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present invention.
如图8所示,电子设备600以通用计算设备的形式表现。电子设备600的组件可以包括但不限于:至少一个处理单元610、至少一个存储单元620、连接不同系统组件(包括存储单元620和处理单元610)的总线630、显示单元640等。As shown in Figure 8, electronic device 600 is embodied in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
其中,所述存储单元存储有程序代码仓库,所述程序代码仓库可以被所述处理单元610执行,使得所述处理单元610执行本说明书上述可视代码仓库优化方法部分中描述的根据本发明各种示例性实施方式的步骤。例如,所述处理单元610可以执行如图2中所示的步骤。Wherein, the storage unit stores a program code warehouse, and the program code warehouse can be executed by the processing unit 610, so that the processing unit 610 executes various methods according to the present invention described in the visual code warehouse optimization method section of this specification. steps of an exemplary embodiment. For example, the processing unit 610 may perform steps as shown in FIG. 2 .
所述存储单元620可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)6201和/或高速缓存存储单元6202,还可以进一步包括只读存储单元(ROM)6203。The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 6201 and/or a cache storage unit 6202, and may further include a read-only storage unit (ROM) 6203.
所述存储单元620还可以包括具有一组(至少一个)程序模块6205的程序/实用工具6204,这样的程序模块6205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 620 may also include a program/utility 6204 having a set of (at least one) program modules 6205 including, but not limited to: an operating system, one or more applications, other program modules, and programs. Data, each of these examples or some combination may include an implementation of a network environment.
总线630可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。Bus 630 may be a local area representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or using any of a variety of bus structures. bus.
电子设备600也可以与一个或多个外部设备700(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备600交互的设备通信,和/或与使得该电子设备600能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口650进行。并且,电子设备600还可以通过网络适配器660与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器660可以通过总线630与电子设备600的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备600使用其它硬件和/或软件模块,包括但不限于:微代码仓库、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 600, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 660 . Network adapter 660 may communicate with other modules of electronic device 600 via bus 630. It should be understood that, although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode repositories, device drivers, redundant processing units, external disk drive arrays, RAID systems, tapes drives and data backup storage systems, etc.
所述可视代码仓库优化设备中,所述存储器中的程序被处理器执行时实现所述的可视代码仓库优化方法的步骤,因此,所述设备也可以获得上述可视代码仓库优化方法的技术效果。In the visual code warehouse optimization device, the steps of the visual code warehouse optimization method are implemented when the program in the memory is executed by the processor. Therefore, the device can also obtain the results of the visual code warehouse optimization method. technical effects.
本发明实施例还提供一种计算机可读存储介质,用于存储程序,所述程序被处理器执行时实现所述的可视代码仓库优化方法的步骤。在一些可能的实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码仓库,当所述程序产品在终端设备上执行时,所述程序代码仓库用于使所述终端设备执行本说明书上述可视代码仓库优化方法部分中描述的根据本发明各种示例性实施方式的步骤。Embodiments of the present invention also provide a computer-readable storage medium for storing a program that implements the steps of the visual code warehouse optimization method when the program is executed by a processor. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code warehouse. When the program product is executed on a terminal device, the program code warehouse is used to use The terminal device performs the steps according to various exemplary embodiments of the present invention described in the above visual code warehouse optimization method section of this specification.
参考图9所示,描述了根据本发明的实施方式的用于实现上述方法的程序产品800,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码仓库,并可以在终端设备,例如个人电脑上执行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Referring to FIG. 9 , a program product 800 for implementing the above method according to an embodiment of the present invention is described. It can adopt a portable compact disk read-only memory (CD-ROM) and include a program code warehouse, and can be used on a terminal device. , such as running on a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus or device.
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may take the form of any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
所述计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码仓库。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码仓库可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave carrying a repository of readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or device. The program code warehouse contained on the readable storage medium can be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码仓库,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码仓库可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code repositories for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., as well as conventional procedures programming language - such as "C" or a similar programming language. The program code repository may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or executed on the server. In situations involving remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device, such as provided by an Internet service. business to connect via the Internet).
所述计算机存储介质中的程序被处理器执行时实现所述的可视代码仓库优化方法的步骤,因此,所述计算机存储介质也可以获得上述可视代码仓库优化方法的技术效果。When the program in the computer storage medium is executed by the processor, the steps of the visual code warehouse optimization method are implemented. Therefore, the computer storage medium can also obtain the technical effects of the visual code warehouse optimization method.
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in combination with specific preferred embodiments, and it cannot be concluded that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, and all of them should be regarded as belonging to the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410102071.6A CN117648122A (en) | 2024-01-25 | 2024-01-25 | Visual code warehouse optimization method, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410102071.6A CN117648122A (en) | 2024-01-25 | 2024-01-25 | Visual code warehouse optimization method, system, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117648122A true CN117648122A (en) | 2024-03-05 |
Family
ID=90043580
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410102071.6A Pending CN117648122A (en) | 2024-01-25 | 2024-01-25 | Visual code warehouse optimization method, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117648122A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597506A (en) * | 2019-11-14 | 2019-12-20 | 南京百敖软件有限公司 | Front-end application visualization development tool and use method |
CN114064113A (en) * | 2021-11-26 | 2022-02-18 | 中国工商银行股份有限公司 | Host version control method and device |
CN114115842A (en) * | 2021-10-11 | 2022-03-01 | 浪潮通信信息系统有限公司 | Visual configuration method and system for GitLab assembly line |
CN115904382A (en) * | 2021-09-30 | 2023-04-04 | 中兴通讯股份有限公司 | Code development method, system, client, server, device and storage medium |
CN116775013A (en) * | 2023-05-23 | 2023-09-19 | 北京邮电大学 | Development system of visual low-code platform |
CN116820480A (en) * | 2023-06-28 | 2023-09-29 | 平安银行股份有限公司 | Method and device for improving code readability |
-
2024
- 2024-01-25 CN CN202410102071.6A patent/CN117648122A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597506A (en) * | 2019-11-14 | 2019-12-20 | 南京百敖软件有限公司 | Front-end application visualization development tool and use method |
CN115904382A (en) * | 2021-09-30 | 2023-04-04 | 中兴通讯股份有限公司 | Code development method, system, client, server, device and storage medium |
CN114115842A (en) * | 2021-10-11 | 2022-03-01 | 浪潮通信信息系统有限公司 | Visual configuration method and system for GitLab assembly line |
CN114064113A (en) * | 2021-11-26 | 2022-02-18 | 中国工商银行股份有限公司 | Host version control method and device |
CN116775013A (en) * | 2023-05-23 | 2023-09-19 | 北京邮电大学 | Development system of visual low-code platform |
CN116820480A (en) * | 2023-06-28 | 2023-09-29 | 平安银行股份有限公司 | Method and device for improving code readability |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110531962B (en) | Development processing method and device for applet and computer readable storage medium | |
US20150026564A1 (en) | Systems and methods for defining a simulated interactive web page | |
US11741002B2 (en) | Test automation systems and methods using logical identifiers | |
CA2713654A1 (en) | Automated recording of virtual device interface | |
US8768957B2 (en) | Consolidating related task data in process management solutions | |
CN113971037A (en) | Application processing method and device, electronic equipment and storage medium | |
CN111258563A (en) | Interface document generation method and device, storage medium and electronic equipment | |
CN113704590B (en) | Webpage data acquisition method and device, electronic equipment and storage medium | |
JP2625649B2 (en) | System and method for transmitting computer objects | |
CN112269799A (en) | Data query method, device, equipment and medium | |
US20240004917A1 (en) | Data processing method and device, terminal, and storage medium | |
CN111831320A (en) | Plug-in management method and device, electronic equipment and storage medium | |
CN109753437B (en) | Test program generation method and device, storage medium and electronic equipment | |
WO2022184077A1 (en) | Document editing method and apparatus, and terminal and non-transitory storage medium | |
US8245182B2 (en) | Class selectable design sharing | |
CN114692055A (en) | Form processing method and device, storage medium and electronic equipment | |
CN117648122A (en) | Visual code warehouse optimization method, system, equipment and storage medium | |
US20210397646A1 (en) | Method, electronic device, and storage medium for processing visual data of deep model | |
CN115826828A (en) | Network disk file operation method, device, terminal and storage medium | |
CN113535037A (en) | Interactive display method and device for command line terminal, computer readable medium and equipment | |
CN112948542A (en) | Buried point data acquisition method, system, equipment and storage medium | |
CN111176982A (en) | Test interface generation method and device | |
US11888937B2 (en) | Domain specific provider contracts for core data services | |
CN111177183B (en) | Method and device for generating database access statement | |
CN113485981B (en) | Data migration method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20240305 |