Unlock instant, AI-driven research and patent intelligence for your innovation.

Front-end static resource managing method and device, computer equipment and storage medium

A technology of static resources and management methods, applied in the field of information processing, can solve problems such as dare not to clear easily, poor system performance, code conflicts, etc.

Active Publication Date: 2018-11-30
PING AN TECH (SHENZHEN) CO LTD
View PDF1 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, in project development, the introduction of static resources requires developers to manually introduce them into the project through code. With the development of the project, more and more static files are accumulated, and files are introduced on different pages. At the same time, in collaborative development Sometimes, similar plug-ins, or different versions of the same type of plug-ins, or the same file is introduced in different pages of the entire project, resulting in increasing system complexity
This is also prone to code conflicts, and the complexity of positioning problems increases
The performance of the system is getting worse and worse, and at the same time, the files only increase but not decrease, so I dare not clear them easily

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Front-end static resource managing method and device, computer equipment and storage medium
  • Front-end static resource managing method and device, computer equipment and storage medium
  • Front-end static resource managing method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] figure 1 The flow chart of the method for managing front-end static resources provided by Embodiment 1 of the present invention, as shown in figure 1 As shown, this embodiment includes the following steps.

[0029] Step S102: Obtain the storage path of the static resource to be injected according to the name identifier of the static resource to be injected, and obtain the first storage path.

[0030] Specifically, the static resources to be injected include external plug-in resources and the project's own resources. During the project development process, when the developer who introduces the static resources needs to introduce a certain static resource into the project, the static resources are the static resources to be injected. For external plug-in resources, after the external plug-in resources are obtained, they are usually stored in a certain folder of the project, and for the project's own resources, they are also stored in a certain folder of the project.

[00...

Embodiment 2

[0050] figure 2 A block diagram of a management device for front-end static resources provided by Embodiment 2 of the present invention, as shown in figure 2 As shown, the device for managing front-end static resources includes a determination module 201 , an acquisition module 202 , a reading module 203 , a processing module 204 , a search module 205 , a first injection module 206 and a second injection module 207 .

[0051] Wherein, the determination module 201 is used to determine the name identifier of the static resource to be injected. Optionally, when the project developer needs to inject a certain static resource into the project, the determination module 201 receives the name identifier of the static resource as the name identifier of the static resource to be injected. Name identification; the acquisition module 202 is used to obtain the storage path of the static resource to be injected according to the name identification of the static resource to be injected, as...

Embodiment 3

[0060] This embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or A server cluster composed of multiple servers), etc. like image 3 As shown, the computer device 20 of this embodiment at least includes but is not limited to: a memory 21 and a processor 22 that can communicate with each other through a system bus, such as image 3 shown. It should be pointed out that, image 3 Only computer device 20 is shown having components 21-22, but it should be understood that implementing all of the illustrated components is not a requirement and that more or fewer components may instead be implemented.

[0061] In this embodiment, the memory 21 (that is, a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), a random access ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a front-end static resource managing method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring a storage path of a static resource to be injected according to a name identifier of the static resource to be injected in order to obtain a first storage path; reading a file according to the first storage path; forming file streams by using the read file, and combining and compressing the file streams to obtain a file to be injected; finding a project file from a target folder corresponding to the static resource to be injected in order to obtain a first project file; injecting a starting mark, the first storage path and an ending mark into the first project file; reading the first project file, finding the starting mark and the ending mark from the first project file, and acquiring the first storage path between the starting mark and the ending mark; acquiring the file to be injected according to the first storagepath; outputting the file to be injected to the target folder. By adopting the front-end static resource managing method and device, the static resource file can be automatically injected into the folder of a project.

Description

technical field [0001] The present invention relates to the technical field of information processing, in particular to a management method, device, computer equipment and storage medium for front-end static resources. Background technique [0002] With the development of the Internet industry, web pages provide more and more content. During project development, it is usually necessary to refer to some static resources, such as JavaScript script files, Cascading Style Sheets (Casacding Style Sheets, CSS) resources or pictures. With the upgrade and change of the version, the referenced static resources are also constantly updated and changed. When maintaining the static resources in the project later, the workload is heavy. [0003] At present, in project development, the introduction of static resources requires developers to manually introduce them into the project through code. With the development of the project, more and more static files are accumulated, and files are ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F17/00Y02D10/00
Inventor 吴俊强
Owner PING AN TECH (SHENZHEN) CO LTD