CN115904166A - Project icon management method, electronic device and storage medium - Google Patents

Project icon management method, electronic device and storage medium Download PDF

Info

Publication number
CN115904166A
CN115904166A CN202211406810.8A CN202211406810A CN115904166A CN 115904166 A CN115904166 A CN 115904166A CN 202211406810 A CN202211406810 A CN 202211406810A CN 115904166 A CN115904166 A CN 115904166A
Authority
CN
China
Prior art keywords
icon
item
project
library
icons
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
Application number
CN202211406810.8A
Other languages
Chinese (zh)
Inventor
翟盈盈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seashell Housing Beijing Technology Co Ltd
Original Assignee
Seashell Housing Beijing Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Seashell Housing Beijing Technology Co Ltd filed Critical Seashell Housing Beijing Technology Co Ltd
Priority to CN202211406810.8A priority Critical patent/CN115904166A/en
Publication of CN115904166A publication Critical patent/CN115904166A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a project icon management method, electronic equipment and a storage medium, wherein the method comprises the following steps: reading at least one item icon in an item code repository; performing first icon processing operation on the item icon, if an item icon library exists and the item icon does not exist in the item icon library, creating the item icon in the item icon library, and deleting the item icon in the item code warehouse; if the item icon library exists and the item icon exists in the item icon library, deleting the item icon in the item code warehouse; and if the project icon library does not exist, creating the project icon library, creating the project icon in the project icon library, and deleting the project icon in the project code warehouse. The embodiment of the invention can realize the cleaning of the project icons in the project, complete the conversion of the project icons in the project to the project icon library, realize the standardization of the use of the project icons and improve the reuse rate of the project icons and the project development efficiency.

Description

Project icon management method, electronic device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a project icon management method, electronic equipment and a storage medium.
Background
With the rapid development of web technologies, the occupation ratio of front-end technologies is more and more important, the styles of front-end projects are more and more diversified, and for the same project, in order to keep the diversity and uniformity of different pages of the project, the same or different project icons exist in different pages.
With the development and gradual iteration of multiple people of a certain project, a plurality of icons of the same front-end project are found, and the icons are often in the situations of high repetition rate and low repetition rate. The least convenient aspect is that if a page is newly developed and an icon needs to be displayed, a developer cannot know whether the icon exists in the existing project or not, and only can newly create the icon. Therefore, a plurality of repeated icons exist in the whole project, on one hand, the memory occupation ratio of the project is increased, and on the other hand, the later iterative maintenance is not facilitated.
Disclosure of Invention
In order to overcome the defects in the prior art, embodiments of the present invention provide a project icon management method, an electronic device, and a storage medium.
The embodiment of the invention provides a project icon management method, which comprises the following steps: reading at least one item icon in an item code repository; performing first icon processing operation on the item icon; wherein the first icon processing operation comprises: in response to a project icon library being present and the project icon not being present in the project icon library, creating the project icon in the project icon library and deleting the project icon in the project code repository; wherein, the project icon library corresponds to the project in the project code warehouse one by one; in response to the item icon library being present and the item icon being present in the item icon library, deleting the item icon in the item code repository; in response to the absence of the item icon library, creating the item icon library and creating the item icon in the item icon library, deleting the item icon in the item code repository.
According to an embodiment of the present invention, before creating the item icon in the item icon library, the method further includes: generating an icon path of the item icon in the item icon library; before deleting the item icon in the item code repository, the method further comprises: replacing the icon path of the item icon in the item code repository with the icon path of the item icon in the item icon repository.
According to an embodiment of the present invention, there is provided a method for managing item icons, the item icons including a first item icon having a repeated icon; the method further comprises performing a second icon processing operation on other item icons that are duplicate icons with the first item icon; wherein the second icon processing operation comprises: replacing the icon path of the other item icon in the item code repository with the icon path of the first item icon in the item icon library, and deleting the other item icon in the item code repository.
According to an embodiment of the present invention, after reading at least one item icon in the item code repository, the method further includes: retrieving a first item icon in the item code repository having a duplicate icon and a second item icon in the item code repository not having a duplicate icon; and displaying the first item icons in groups on a display interface of the item icons, wherein each first item icon in the same group is the repeated icon, and the second item icons are respectively displayed.
According to the item icon management method provided by the embodiment of the invention, a first trigger button is displayed on a display interface of the item icons corresponding to each group of the first item icons; wherein the first trigger button is used for triggering the first icon processing operation for one of the item icons in each group of the first item icons and the second icon processing operation for other item icons.
According to the item icon management method provided by the embodiment of the invention, a second trigger button is displayed on a display interface of the item icon corresponding to the second item icon; wherein the second trigger button is used to trigger the first icon handling operation for the second item icon.
According to the item icon management method provided by the embodiment of the invention, the method further comprises the following steps: receiving a preview instruction of an item icon in the item icon library; in response to the existence of the project icon library, displaying the project icons in the project icon library according to the icon paths of the project icons in the project icon library; and in response to the absence of the item icon library, executing the steps of reading at least one item icon in the item code repository and performing a first icon processing operation on the item icon.
According to the item icon management method provided by the embodiment of the invention, the method further comprises the following steps: responding to the operation of monitoring the addition of the item icon in the item code warehouse, and judging whether the item icon library exists or not; and responding to the existence of the item icon library, and performing the first icon processing operation on the currently added item icon.
An embodiment of the present invention further provides an item icon management apparatus, including: a read module to: reading at least one item icon in an item code repository; a processing module to: performing a first icon processing operation on the item icon; wherein the first icon processing operation comprises: in response to a project icon library being present and the project icon not being present in the project icon library, creating the project icon in the project icon library and deleting the project icon in the project code repository; wherein, the items in the item icon library and the item code warehouse are in one-to-one correspondence; in response to the item icon library being present and the item icon being present in the item icon library, deleting the item icon in the item code repository; in response to the absence of the item icon library, creating the item icon library and creating the item icon in the item icon library, deleting the item icon in the item code repository.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of any one of the above item icon management methods when executing the program.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the item icon management method according to any one of the above.
An embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the steps of any one of the above item icon management methods.
According to the project icon management method, the electronic device and the storage medium provided by the embodiment of the invention, the first icon processing operation is performed on the project icon by reading at least one project icon in the project code warehouse, so that the cleaning of the project icon in the project can be realized, the conversion of the project icon in the project to the project icon library is completed, the standardization of the use of the project icon is realized, and the project icon reuse rate and the project development efficiency are improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for managing an item icon according to an embodiment of the present invention;
fig. 2 is a schematic view of an interface for displaying an item icon in the method for managing an item icon according to the embodiment of the present invention;
fig. 3 is a schematic diagram of a preview result of an item icon library in the item icon management method according to the embodiment of the present invention;
FIG. 4 is a second flowchart illustrating a method for managing item icons according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an item icon management apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart illustrating a method for managing an item icon according to an embodiment of the present invention. As shown in fig. 1, the method includes:
and S1, reading at least one item icon in the item code warehouse.
During the project iteration process, the project icon used in the project is written into the project code repository. In the prior art, when an item needs to use a certain item icon, because whether the item icon exists in an item code warehouse cannot be known, the item icon is often newly created, and thus, a plurality of repeated icons may exist in the item code warehouse.
In view of the above problems, embodiments of the present invention provide a method for managing project icons, which can perform repeated icon search, project icon library generation, and cleaning of project icons existing in a project code repository for projects in which a large number of repeated icons exist.
The project icon management method provided by the embodiment of the invention can be based on a Microsoft visual Studio Code (hereinafter abbreviated as vscode) development tool, utilize the advantage of scalable development of a vscode plug-in, use nodejs technology to read files, and utilize AI technology to identify pictures.
Firstly, the item icon in the item code repository needs to be read, the item code repository comprises at least one item icon, and the item icons in the item code repository can be all read by using a file reading technology.
S2, performing first icon processing operation on the item icon; wherein the first icon processing operation comprises: in response to a presence of an item icon library and the item icon is not present in the item icon library, creating the item icon in the item icon library and deleting the item icon in the item code repository; wherein, the project icon library corresponds to the project in the project code warehouse one by one; in response to the item icon library being present and the item icon being present in the item icon library, deleting the item icon in the item code repository; in response to the item icon library not existing, creating the item icon library and creating the item icon in the item icon library, deleting the item icon in the item code repository.
A first icon processing operation is performed on an item icon in an item code repository. The first icon processing operation may be performed on all or part of the item icons in the item code repository.
For an item icon, the first icon handling operation includes:
if the existence of the project icon library is known through judgment (whether the current project exists in the project icon library can be represented through the state of a certain parameter), and the absence of the project icon in the project icon library is known through inquiry, the project icon is created in the project icon library, and the project icon is deleted in the project code warehouse; if the project icon library exists and the project icon exists in the project icon library, the same project icon is created in the project icon library, and the project icon is deleted in the project code warehouse; if the project icon library does not exist, the project icon library is created, the project icon is created in the project icon library after the project icon library is created, and the project icon is deleted in the project code warehouse.
Through the processing, a certain project icon can be uniquely stored in the project icon library, and the problem of repeated use of the project icon in the project code warehouse is solved.
The project icon library can be arranged at the cloud or locally, and the project icon libraries of different projects can be distinguished through project identifiers.
According to the project icon management method provided by the embodiment of the invention, the first icon processing operation is carried out on the project icon by reading at least one project icon in the project code warehouse, so that the cleaning of the project icon in the project can be realized, the conversion of the project icon in the project to the project icon library is completed, the standardization of the use of the project icon is realized, and the project icon reuse rate and the project development efficiency are improved.
According to an embodiment of the present invention, before creating the item icon in the item icon library, the method further includes: generating an icon path of the item icon in the item icon library; before deleting the item icon in the item code repository, the method further comprises: replacing the icon path of the item icon in the item code repository with the icon path of the item icon in the item icon repository.
Before creating the project icon in the project icon library, an icon path of the project icon in the project icon library needs to be generated in advance. The icon path of the item icon may be a link for querying the item icon, and information of the icon name may be included in the icon path. In a scene that the project icon library is established in the cloud, the project icons are uploaded to the cloud, and therefore the icon paths of the project icons are generated. And creating a project icon in the project icon library, and realizing the binding of the project icon and the project icon library. The icon path of the item icon in the item icon library is still the previously generated icon path.
And after the item icon is created in the item icon library, deleting the corresponding item icon in the item code warehouse, wherein the icon path in the item code warehouse is not deleted. However, when the code is run, since the item icon is deleted, the item icon cannot be found through the icon path of the item icon in the item code repository, and thus the code cannot run normally. Because the project icon is transferred to the project icon library, in order to ensure the normal operation of the code, the icon path of the project icon in the project code warehouse needs to be replaced by the icon path of the project icon in the project icon library, so that when the code operates, the corresponding project icon can be found and displayed through the icon path of the project icon in the project icon library. In implementation, the icon path of the item icon in the item code repository may be replaced with the icon path of the item icon in the item icon repository, and then the corresponding icon may be deleted from the item code repository. Thus, code errors are not easily generated.
According to the project icon management method provided by the embodiment of the invention, the reliable operation of the project codes is ensured by generating the icon path of the project icon in the project icon library and replacing the icon path of the project icon in the project code warehouse with the icon path of the project icon in the project icon library.
According to an embodiment of the present invention, there is provided a method for managing item icons, the item icons including a first item icon having a repeated icon; the method further comprises performing a second icon processing operation on other item icons that are duplicate icons with the first item icon; wherein the second icon processing operation comprises: replacing the icon path of the other item icon in the item code repository with the icon path of the first item icon in the item icon library, and deleting the other item icon in the item code repository.
The item icons for which the first icon handling operation is directed include a first item icon having duplicate icons whose icon paths may be the same or different. When the repeated item icons are transferred to the item icon library, only one of the item icons needs to be processed, but when the item icons are deleted in the item code warehouse, the repeated item icons need to be deleted together, and the icon paths of the repeated item icons in the item code warehouse need to be replaced by the same code path of the item icon in the item icon library.
Therefore, after the first item icon is created by the item icon library, a second icon processing operation needs to be performed for other item icons in the item code repository that are duplicated with the first item icon. Wherein the second icon processing operation comprises: and replacing the icon path of the other item icons which are overlapped with the first item icon in the item code warehouse with the icon path of the first item icon in the item icon library, and deleting the other item icons which are overlapped with the first item icon in the item code warehouse.
The rule for determining whether the two item icons are the duplicate icons may be set according to the item requirements, for example, if the similarity of the item icons exceeds a preset threshold, the two item icons are the duplicate icons. The similarity of the item icons can be determined from the pattern and size of the item icons.
According to the item icon management method provided by the embodiment of the invention, after the first item icon is created in the item icon library, the second icon processing operation is executed on other icons which are repeated with the first item icon, so that the item icon management efficiency is improved.
According to an embodiment of the present invention, after reading at least one item icon in the item code repository, the method further includes: retrieving a first item icon in the item code repository having a duplicate icon and a second item icon in the item code repository not having a duplicate icon; and displaying the first item icons in groups on a display interface of the item icons, wherein each first item icon in the same group is the repeated icon, and the second item icons are respectively displayed.
After reading the at least one item icon in the item code repository, the at least one item icon in the item code repository may be presented to a presentation interface of the item icon. For the convenience of processing and displaying, a repeated item icon (first item icon) included in at least one item icon may be retrieved in advance, and at least one identical (or repeated) item icon exists in the item code repository for the repeated item icon. After the duplicate item icon is retrieved, the remaining item icons are non-duplicate item icons (second item icons), which do not have the same item icon in the item code repository.
After the repeated item icon is retrieved, the non-repeated item icon is obtained. And on the display interface of the item icons, displaying the repeated item icons in groups, and respectively displaying the non-repeated item icons. Also, the repeated item icons and the non-repeated item icons may be separately presented.
Fig. 2 is a schematic view of a display interface of an item icon in the item icon management method according to the embodiment of the present invention. The presentation interface of the item icon is presented based on the item icon read by the item code repository, and therefore does not include the item icon that has been transferred to the item icon library.
Reading at least one item icon in the item code warehouse, retrieving repeated item icons in the item code warehouse, displaying the repeated item icons in groups on a display interface of the item icons, and respectively displaying non-repeated item icons. The presentation of the item icon may be triggered by the user, such as by a set "item icon presentation" button. And if the repeated item icon does not exist after retrieval, the display module does not display the repeated item icon. Similarly, if the non-repeated item icon does not exist, the display module does not display the non-repeated item icon.
According to the item icon management method provided by the embodiment of the invention, repeated item icons in the item code warehouse are searched, the repeated item icons are displayed in groups on the display interface of the item icons, and non-repeated item icons are respectively displayed, so that the classified display and processing of the item icons are facilitated.
According to the item icon management method provided by the embodiment of the invention, a first trigger button is displayed on a display interface of the item icons corresponding to each group of the first item icons; wherein the first trigger button is used for triggering the first icon processing operation for one of the item icons in each group of the first item icons and the second icon processing operation for other item icons.
And executing a first icon processing operation on any one item icon or preset item icon in each group of repeated item icons.
As shown in fig. 2, the first trigger button is displayed as a word of "merge and extract" corresponding to the repeated item icon, and after the first trigger button is triggered (e.g., clicked), a first icon processing operation is performed on any one item icon or a preset item icon (e.g., a first item icon) in the corresponding group of repeated item icons, and a second icon processing operation is performed on other item icons in the group of repeated item icons.
Assuming that an icon performing a first icon processing operation in the set of first item icons is referred to as an item icon 1, and an icon performing a second icon processing operation is referred to as an item icon 2, the first icon processing operation for one of the item icons in each set of first item icons and the second icon processing operation for the other item icons may include:
in response to the existence of the item icon library and the absence of the item icon 1 in the item icon library, creating the item icon 1 in the item icon library, replacing the icon paths of the item icon 1 and the item icon 2 which is a repeated icon with the item icon 1 in the item icon library in the item code warehouse with the icon paths of the item icon 1 in the item icon library, and deleting the item icon 1 and the item icon 2 which is a repeated icon with the item icon 1 in the item code warehouse;
in response to the existence of the item icon library and the existence of the item icon 1 in the item icon library, replacing the icon paths of the item icon 1 and the item icon 2 which is a duplicate icon with the item icon 1 in the item icon library in the item code warehouse, and deleting the item icon 1 and the item icon 2 which is a duplicate icon with the item icon 1 in the item code warehouse;
in response to the fact that the item icon library does not exist, the item icon library is created, an item icon 1 is created in the item icon library, the icon paths of the item icon 1 and an item icon 2 which is a repeated icon with the item icon 1 in the item code library are replaced by the icon paths of the item icon 1 in the item icon library, and the item icon 1 and the item icon 2 which is a repeated icon with the item icon 1 are deleted in the item code library.
According to the item icon management method provided by the embodiment of the invention, the repeated item icons are displayed correspondingly on the display interface of the item icons, and the first trigger button is displayed, so that the uniform processing of the repeated item icons is facilitated.
According to the item icon management method provided by the embodiment of the invention, a second trigger button is displayed on a display interface of the item icon corresponding to the second item icon; wherein the second trigger button is used to trigger the first icon handling operation for the second item icon.
Icon processing is required for non-duplicate item icons. As shown in fig. 2, a second trigger button is displayed corresponding to the second item icon, and a word pattern of "extract to icon library" is displayed on the second trigger button. After the second trigger button is triggered, performing a first icon processing operation for a second item icon may include:
in response to the existence of the project icon library and the absence of the second item icon in the project icon library, creating a second item icon in the project icon library, replacing an icon path of the second item icon in the project code repository with an icon path of the second item icon in the project icon library, and deleting the second item icon in the project code repository;
in response to the existence of the project icon library and the existence of a second project icon in the project icon library, replacing the icon path of the second project icon in the project code warehouse with the icon path of the second project icon in the project icon library, and deleting the second project icon in the project code warehouse;
in response to the absence of the project icon library, creating the project icon library and creating a second project icon in the project icon library, replacing the icon path of the second project icon in the project code repository with the icon path of the second project icon in the project icon library, and deleting the second project icon in the project code repository.
According to the item icon management method provided by the embodiment of the invention, the second trigger button is displayed corresponding to the second item icon on the display interface of the item icon, so that the non-repeated item icons can be respectively processed conveniently.
According to the item icon management method provided by the embodiment of the invention, the method further comprises the following steps: receiving a preview instruction of an item icon in the item icon library; in response to the existence of the project icon library, displaying the project icons in the project icon library according to the icon paths of the project icons in the project icon library; and in response to the absence of the item icon library, executing the steps of reading at least one item icon in the item code repository and performing a first icon processing operation on the item icon.
Preview instructions for the item icons in the item icon library may be triggered by the user, such as by a set "icon library preview" button. After a preview instruction of the item icon in the item icon library is received, if the current item has a corresponding item icon library, displaying the item icon in the item icon library according to the icon path of the item icon in the item icon library. Wherein the icon path of the item icon in the item icon library may be stored locally after initial generation.
And if the current item does not have the corresponding item icon library, executing the steps of reading at least one item icon in the item code warehouse and carrying out first icon processing operation on the item icon. In the execution process of the first icon processing operation on the item icon, the creation of the item icon library can be realized. The preview of the item icons in the item icon library may be performed when a preview instruction of the item icons in the item icon library is received again.
Fig. 3 is a schematic diagram of a preview result of a project icon library in the project icon management method according to the embodiment of the present invention. Whether the item icon is a repeated icon is not only related to the style of the icon, but also related to the size of the icon. The item icons displayed in the item icon library are not repeated.
According to the item icon management method provided by the embodiment of the invention, the preview instruction of the item icon in the item icon library is received, in response to the existence of the item icon library, the item icon in the item icon library is displayed according to the icon path of the item icon in the item icon library, in response to the nonexistence of the item icon library, the steps of reading at least one item icon in the item code warehouse and performing the first icon processing operation on the item icon are executed, and the preview of the item icon in the item icon library can be realized.
According to the item icon management method provided by the embodiment of the invention, the method further comprises the following steps: responding to the monitored operation of adding the project icon in the project code warehouse, and judging whether the project icon library exists or not; and responding to the existence of the item icon library, and performing the first icon processing operation on the currently added item icon.
And setting the monitoring of the newly added item icon. And if the operation of adding the item icon in the item code warehouse is monitored, further judging whether the current item has an item icon library. If the current item has an item icon library, performing a first icon processing operation on the currently added item icon, which may include:
in response to the fact that the currently added item icon does not exist in the item icon library, creating the item icon in the item icon library, replacing the icon path of the item icon in the item code warehouse with the icon path of the item icon in the item icon library, and deleting the item icon in the item code warehouse;
and in response to the currently added item icon existing in the item icon library, replacing the icon path of the item icon in the item code warehouse with the icon path of the item icon in the item icon library, and deleting the item icon in the item code warehouse.
If the project icon library does not exist, other processing can be carried out on the project icons added into the project code warehouse.
According to the item icon management method provided by the embodiment of the invention, whether the item icon library exists is judged by responding to the monitored operation of adding the item icon in the item code warehouse, and the first icon processing operation is carried out on the currently added item icon in response to the existence of the item icon library, so that the timely processing of the item icon is realized.
Fig. 4 is a second flowchart illustrating a method for managing an item icon according to an embodiment of the present invention. As shown in fig. 4, the method includes:
if an instruction for retrieving the preview item icon is received, retrieving a repeated icon in the item code warehouse, and respectively displaying the repeated icon and the non-repeated icon on a display interface of the item icon; wherein the icons are displayed in groups.
And displaying a 'merge and extract' button corresponding to the grouping of the repeated icons, and responding to the 'merge and extract' button being triggered, indicating that the repeated icons are to be merged and transferring to the project icon library. If the project icon library is not established, the project icon library is established first. And judging whether the repeated icon exists in the project icon library, if so, replacing the icon path of the repeated icon in the project code warehouse with the icon path of the repeated icon in the project icon library (the icon path of each project icon in the repeated icon needs to be replaced), and deleting each repeated icon. If the repeated icon does not exist in the project icon library, the repeated icon is uploaded to the cloud (only one of the repeated icons needs to be uploaded), the repeated icon is created in the project icon library, the icon path of the repeated icons is replaced, and the repeated icons are deleted in the project code library.
And a button for extracting the icon library is correspondingly displayed corresponding to the non-repeated icon. If the button responding to 'extracting the icon library' is triggered, the corresponding non-repeated icon is extracted to the project icon library. If the project icon library is not established, the project icon library is established first. And judging whether the non-repetitive icon exists in the project icon library, if so, replacing the icon path of the non-repetitive icon in the project code warehouse with the icon path of the non-repetitive icon in the project icon library, and deleting the non-repetitive icon. And if the non-repeated icon does not exist in the project icon library, uploading the non-repeated icon to the cloud, creating the non-repeated icon in the project icon library, replacing the icon path of the non-repeated icon, and deleting the non-repeated icon in the project code library.
And if an instruction for previewing the project icon library is received, judging whether the project icon library exists. If yes, displaying the item icons in the item icon library; if not, go to the processing steps of searching the repeated icon and displaying the project icon, and create a project icon library in the subsequent steps.
And monitoring the action of adding the icon to the item in real time, judging whether an item icon library exists or not if the action of adding a new item icon to the item code warehouse is monitored, and if the action exists, treating the item icon as a non-repeated icon and independently processing the item icon. Judging whether the newly added item icon exists in the item icon library, if so, replacing the icon path of the newly added item icon, and deleting the newly added item icon in the item code warehouse; and if not, uploading the newly added item icon to the cloud, creating the newly added item icon in the item icon library, replacing the icon path of the newly added item icon, and deleting the newly added item icon in the item code warehouse.
Through the execution of the steps, all the project icons in the project can be cleaned, the conversion of all the project icons in the project to the project icon library is completed, and the purposes of standardizing the use of the project icons, improving the reuse rate of the project icons and improving the project development efficiency are finally achieved.
It should be noted that, on the premise that logics or structures of a plurality of preferred embodiments provided in this embodiment do not conflict with each other, the preferred embodiments may be freely combined, and the present invention is not limited to this.
In the following, the item icon management apparatus provided in the embodiment of the present invention is described, and the item icon management apparatus described below and the item icon management method described above may be referred to in correspondence with each other.
Fig. 5 is a schematic structural diagram of an item icon management apparatus according to an embodiment of the present invention. As shown in fig. 5, the apparatus includes a reading module 10 and a processing module 20, wherein: the reading module 10 is configured to: reading at least one item icon in an item code repository; the processing module 20 is configured to: performing a first icon processing operation on the item icon; wherein the first icon processing operation comprises: in response to a project icon library being present and the project icon not being present in the project icon library, creating the project icon in the project icon library and deleting the project icon in the project code repository; wherein, the items in the item icon library and the item code warehouse are in one-to-one correspondence; in response to the item icon library being present and the item icon being present in the item icon library, deleting the item icon in the item code repository; in response to the absence of the item icon library, creating the item icon library and creating the item icon in the item icon library, deleting the item icon in the item code repository.
According to the project icon management device provided by the embodiment of the invention, the first icon processing operation is carried out on the project icon by reading at least one project icon in the project code warehouse, so that the cleaning of the project icon in the project can be realized, the conversion of the project icon in the project to the project icon library is completed, the standardization of the use of the project icon is realized, and the project icon reuse rate and the project development efficiency are improved.
According to an embodiment of the present invention, before creating the item icon in the item icon library, the processing module 20 is further configured to: generating an icon path of the item icon in the item icon library; before deleting the item icon in the item code repository, the processing module 20 is further configured to: replacing the icon path of the item icon in the item code repository with the icon path of the item icon in the item icon repository.
The project icon management device provided by the embodiment of the invention ensures the reliable operation of the project codes by generating the icon path of the project icon in the project icon library and replacing the icon path of the project icon in the project code warehouse with the icon path of the project icon in the project icon library.
According to an embodiment of the present invention, there is provided an item icon management apparatus, the item icon including a first item icon having a repeated icon; the processing module 20 is further configured to: performing second icon processing operation on other item icons which are repeated icons with the first item icon; wherein the second icon processing operation comprises: replacing the icon path of the other item icon in the item code repository with the icon path of the first item icon in the item icon library, and deleting the other item icon in the item code repository.
According to the project icon management device provided by the embodiment of the invention, after the first project icon is created in the project icon library, the second icon processing operation is executed on other icons which are repeated with the first project icon, so that the project icon management efficiency is improved.
According to an embodiment of the present invention, after the reading module 10 reads at least one item icon in the item code repository, the processing module 20 is further configured to: retrieving a first item icon in the item code repository having a duplicate icon and a second item icon in the item code repository not having a duplicate icon; and displaying the first item icons in groups on a display interface of the item icons, wherein each first item icon in the same group is the repeated icon, and the second item icons are respectively displayed.
According to the project icon management device provided by the embodiment of the invention, the repeated project icons in the project code warehouse are searched, the repeated project icons are displayed in groups on the display interface of the project icons, and the non-repeated project icons are respectively displayed, so that the classified display and processing of the project icons are facilitated.
According to the project icon management device provided by the embodiment of the invention, a first trigger button is displayed on a display interface of the project icons corresponding to each group of first project icons; wherein the first trigger button is used for triggering the first icon processing operation for one of the item icons in each group of the first item icons and the second icon processing operation for other item icons.
According to the project icon management device provided by the embodiment of the invention, the first trigger button is displayed corresponding to the repeated project icon on the display interface of the project icon, so that the uniform processing of the repeated project icon is facilitated.
According to the project icon management device provided by the embodiment of the invention, a second trigger button is displayed on a display interface of the project icon corresponding to the second project icon; wherein the second trigger button is used to trigger the first icon handling operation for the second item icon.
According to the item icon management device provided by the embodiment of the invention, the second trigger button is displayed corresponding to the second item icon on the display interface of the item icon, so that the respective processing of non-repeated item icons is facilitated.
According to an embodiment of the present invention, in an item icon management apparatus, the processing module 20 is further configured to: receiving a preview instruction of an item icon in the item icon library; in response to the existence of the project icon library, displaying the project icons in the project icon library according to the icon paths of the project icons in the project icon library; and in response to the absence of the item icon library, executing the steps of reading at least one item icon in the item code repository and performing a first icon processing operation on the item icon.
The project icon management device provided by the embodiment of the invention receives a preview instruction of the project icons in the project icon library, displays the project icons in the project icon library according to the icon paths of the project icons in the project icon library in response to the existence of the project icon library, and executes the steps of reading at least one project icon in the project code warehouse and performing first icon processing operation on the project icon in response to the nonexistence of the project icon library, so that the project icons in the project icon library can be previewed.
According to an embodiment of the present invention, in an item icon management apparatus, the processing module 20 is further configured to: responding to the operation of monitoring a third project icon in the project code warehouse, and judging whether the project icon library exists or not; and responding to the existence of the item icon library, and performing the first icon processing operation on the currently added item icon.
The project icon management device provided by the embodiment of the invention judges whether a project icon library exists or not by responding to the monitoring of the operation of adding the project icons in the project code warehouse, and carries out the first icon processing operation on the currently added project icons by responding to the existence of the project icon library, thereby realizing the timely processing of the project icons.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device may include: a processor (processor) 610, a communication Interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a method of item icon management, the method comprising: reading at least one item icon in an item code repository; performing a first icon processing operation on the item icon; wherein the first icon processing operation comprises: in response to a project icon library being present and the project icon not being present in the project icon library, creating the project icon in the project icon library and deleting the project icon in the project code repository; wherein, the items in the item icon library and the item code warehouse are in one-to-one correspondence; in response to the item icon library being present and the item icon being present in the item icon library, deleting the item icon in the item code repository; in response to the absence of the item icon library, creating the item icon library and creating the item icon in the item icon library, deleting the item icon in the item code repository.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, the computer program may be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, a computer is capable of executing the method for managing an item icon provided by the above methods, where the method includes: reading at least one item icon in an item code repository; performing a first icon processing operation on the item icon; wherein the first icon processing operation comprises: in response to a presence of an item icon library and the item icon is not present in the item icon library, creating the item icon in the item icon library and deleting the item icon in the item code repository; wherein, the items in the item icon library and the item code warehouse are in one-to-one correspondence; in response to the item icon library being present and the item icon being present in the item icon library, deleting the item icon in the item code repository; in response to the absence of the item icon library, creating the item icon library and creating the item icon in the item icon library, deleting the item icon in the item code repository.
In still another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to, when executed by a processor, perform the method for managing item icons provided by the above methods, where the method includes: reading at least one item icon in an item code repository; performing a first icon processing operation on the item icon; wherein the first icon processing operation comprises: in response to a project icon library being present and the project icon not being present in the project icon library, creating the project icon in the project icon library and deleting the project icon in the project code repository; wherein, the items in the item icon library and the item code warehouse are in one-to-one correspondence; in response to the item icon library being present and the item icon being present in the item icon library, deleting the item icon in the item code repository; in response to the absence of the item icon library, creating the item icon library and creating the item icon in the item icon library, deleting the item icon in the item code repository.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for managing an item icon, comprising:
reading at least one item icon in an item code repository;
performing first icon processing operation on the item icon; wherein the first icon processing operation comprises:
in response to a project icon library being present and the project icon not being present in the project icon library, creating the project icon in the project icon library and deleting the project icon in the project code repository; wherein, the items in the item icon library and the item code warehouse are in one-to-one correspondence;
in response to the item icon library being present and the item icon being present in the item icon library, deleting the item icon in the item code repository;
in response to the absence of the item icon library, creating the item icon library and creating the item icon in the item icon library, deleting the item icon in the item code repository.
2. The method of item icon management of claim 1, prior to creating the item icon in the item icon library, further comprising: generating an icon path of the item icon in the item icon library;
before deleting the item icon in the item code repository, the method further comprises:
replacing the icon path of the item icon in the item code repository with the icon path of the item icon in the item icon repository.
3. The item icon management method according to claim 2, wherein the item icon includes a first item icon having a repeated icon; the method further comprises performing a second icon processing operation on other item icons that are duplicate icons with the first item icon; wherein the second icon processing operation comprises:
replacing the icon path of the other item icon in the item code repository with the icon path of the first item icon in the item icon library, and deleting the other item icon in the item code repository.
4. The item icon management method according to claim 3, wherein after said reading at least one item icon in the item code repository, the method further comprises:
retrieving a first item icon in the item code repository having a duplicate icon and a second item icon in the item code repository not having a duplicate icon;
and displaying the first item icons in groups on a display interface of the item icons, wherein each first item icon in the same group is the repeated icon, and the second item icons are respectively displayed.
5. The method for managing item icons according to claim 4, wherein a first trigger button is displayed on the display interface of the item icons corresponding to each group of the first item icons; wherein the first trigger button is used for triggering the first icon processing operation for one of the item icons in each group of the first item icons and the second icon processing operation for other item icons.
6. The method for managing item icons according to claim 4, wherein a second trigger button is displayed on the display interface of the item icon corresponding to the second item icon; wherein the second trigger button is to trigger the first icon handling operation for the second item icon.
7. The method of item icon management of claim 3, further comprising:
receiving a preview instruction of an item icon in the item icon library;
in response to the existence of the project icon library, displaying the project icons in the project icon library according to the icon paths of the project icons in the project icon library;
and in response to the absence of the item icon library, executing the steps of reading at least one item icon in the item code repository and performing a first icon processing operation on the item icon.
8. The method of item icon management according to claim 1, further comprising:
responding to the monitored operation of adding the project icon in the project code warehouse, and judging whether the project icon library exists or not;
and responding to the existence of the item icon library, and performing the first icon processing operation on the currently added item icon.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method for item icon management according to any one of claims 1 to 8 are implemented when the program is executed by the processor.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the item icon management method according to any one of claims 1 to 8.
CN202211406810.8A 2022-11-10 2022-11-10 Project icon management method, electronic device and storage medium Pending CN115904166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211406810.8A CN115904166A (en) 2022-11-10 2022-11-10 Project icon management method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211406810.8A CN115904166A (en) 2022-11-10 2022-11-10 Project icon management method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN115904166A true CN115904166A (en) 2023-04-04

Family

ID=86475471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211406810.8A Pending CN115904166A (en) 2022-11-10 2022-11-10 Project icon management method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115904166A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845857A (en) * 2018-06-13 2018-11-20 郑州云海信息技术有限公司 A kind of icon management method and device based on cloud platform
CN109522282A (en) * 2018-09-29 2019-03-26 中国平安人寿保险股份有限公司 Picture management method, device, computer installation and storage medium
CN110232051A (en) * 2019-05-29 2019-09-13 吉旗(成都)科技有限公司 Application program repeats method for processing resource and device
CN111125404A (en) * 2019-12-13 2020-05-08 北京浪潮数据技术有限公司 Icon classification method, device and equipment and readable storage medium
CN113110804A (en) * 2021-04-30 2021-07-13 平安普惠企业管理有限公司 Duplicate picture deleting method, device, equipment and storage medium
US20220164316A1 (en) * 2019-08-14 2022-05-26 Huawei Technologies Co., Ltd. Deduplication method and apparatus
CN115202643A (en) * 2022-06-20 2022-10-18 北京达佳互联信息技术有限公司 Icon resource deleting method and device, electronic equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845857A (en) * 2018-06-13 2018-11-20 郑州云海信息技术有限公司 A kind of icon management method and device based on cloud platform
CN109522282A (en) * 2018-09-29 2019-03-26 中国平安人寿保险股份有限公司 Picture management method, device, computer installation and storage medium
CN110232051A (en) * 2019-05-29 2019-09-13 吉旗(成都)科技有限公司 Application program repeats method for processing resource and device
US20220164316A1 (en) * 2019-08-14 2022-05-26 Huawei Technologies Co., Ltd. Deduplication method and apparatus
CN111125404A (en) * 2019-12-13 2020-05-08 北京浪潮数据技术有限公司 Icon classification method, device and equipment and readable storage medium
CN113110804A (en) * 2021-04-30 2021-07-13 平安普惠企业管理有限公司 Duplicate picture deleting method, device, equipment and storage medium
CN115202643A (en) * 2022-06-20 2022-10-18 北京达佳互联信息技术有限公司 Icon resource deleting method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
JP6912714B2 (en) Information processing equipment, information processing methods and information processing programs
CN111639027B (en) Test method and device and electronic equipment
CN103493003A (en) Deploying a copy of a disk image from source storage to target storage
CN109634570A (en) Front and back end integrated development method, device, equipment and computer readable storage medium
JP2018116496A (en) Difference detection device and program
CN111796809A (en) Interface document generation method and device, electronic equipment and medium
CN107783766A (en) The method and apparatus cleared up the file of application program
CN113157315A (en) Method, device, equipment and medium for identifying difference information of different versions of software
CN107423090B (en) Flash player abnormal log management method and system
US20150280996A1 (en) Cloud topology visualizations
CN113094046B (en) Method, device and terminal for developing product page
CN112948068A (en) Task scheduling method and device and electronic equipment
CN115904166A (en) Project icon management method, electronic device and storage medium
CN113179183B (en) Service switch state control device and method
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN115310011A (en) Page display method and system and readable storage medium
CN110221952B (en) Service data processing method and device and service data processing system
CN113094367A (en) Data processing method and device and server
CN115344148A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN113051095A (en) Method and device for reproducing operation errors of client, electronic equipment and storage medium
CN112633853A (en) Project management method and device and electronic equipment
CN113806327A (en) Database design method and device and related equipment
US20240143687A1 (en) System and method for managing information sourced by a primary server that is sent to other servers when a user interacts with a web page without distorting the other servers
CN112422668B (en) Storage method and device for network community, electronic equipment and readable 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