CN111191176A - Website content updating method, device, terminal and storage medium - Google Patents
Website content updating method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN111191176A CN111191176A CN201911344886.0A CN201911344886A CN111191176A CN 111191176 A CN111191176 A CN 111191176A CN 201911344886 A CN201911344886 A CN 201911344886A CN 111191176 A CN111191176 A CN 111191176A
- Authority
- CN
- China
- Prior art keywords
- document
- website
- document data
- editing
- configuration page
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a website content updating method, a website content updating device, a terminal and a storage medium, and belongs to the technical field of computers. According to the method for online editing of the website content, the document data of the target website can be edited according to the editing instruction triggered in the configuration page, so that the website content is updated in real time according to the edited document data, real-time editing of the website content is achieved, if a user is unsatisfied with the editing result, real-time adjustment can be performed, the document data of the target website is edited again, the updating efficiency is greatly improved, and the updating effect is good.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for updating website content.
Background
With the development of computer technology, people can publish information they want to disclose through websites or provide corresponding services by using websites. Content in a website often needs to be updated, e.g., adding, deleting, or modifying the website content, etc.
Currently, the website content update method is usually implemented by vuefress, which is an Vue-driven static site generation tool. Vue is a set of progressive JavaScript framework for constructing a user interface, JavaScript being a scripting language belonging to the web. In the updating method, the document data written locally is usually stored in the Git repository in a file form, when the website content is updated, the file needs to be pulled from the Git repository to the local, the file is analyzed locally, the format of the file is converted into document data in a format capable of being rendered by the server, and then the document data is stored in the server, so that the website content is updated. Subsequently, the document data is accessed and rendered through the storage path of the document data, and corresponding website content, such as hypertext markup Language (HTML), can be obtained. Where Git is an open source distributed management system.
In the method, a third-party interface is needed to obtain the file from the Git warehouse before each deployment, and complicated steps such as analysis, editing, construction and the like are performed locally, because an Application Programming Interface (API) opened by the Git warehouse has large limitation, online graphical editing cannot be performed efficiently, the file is stored in the Git warehouse in a file form, a construction step is needed for each deployment, the format conversion is performed on the file, and the construction step generally needs 1-3 seconds and consumes long time. And the user can not check the editing effect in real time, if the editing effect is not in line with the expectation, the steps of editing, constructing, deploying and the like need to be carried out again, and then the deployed document data is accessed to check the effect. Therefore, the above method has low update efficiency and poor effect.
Disclosure of Invention
The embodiment of the application provides a method, a device, a terminal and a storage medium for updating website content, which can improve the updating efficiency and effect of the website content. The technical scheme is as follows:
in one aspect, a website content updating method is provided, and the method includes:
displaying a configuration page of a target website according to the website content updating instruction;
editing the document data of the target website according to an editing instruction triggered in the configuration page;
and updating the website content of the target website according to the edited document data.
In one possible implementation, the method further includes:
displaying a directory control of any level of structure at the target position of the configuration page;
the method further comprises the following steps:
and jumping the display page to a configuration page corresponding to the any level structure according to the selected instruction of the directory control of the any level structure.
In one possible implementation, the method further includes:
acquiring the release state of the document data obtained by each editing;
and displaying the publishing state of the document data at the corresponding position of the document corresponding to the document data obtained by each editing.
In one possible implementation, the method further includes:
generating a target page according to the document data of the target website, wherein the target page comprises information of all documents in the target website;
and acquiring and displaying the document content of the document according to the selected instruction of the information of any document in the target page.
In one possible implementation, the method further includes:
displaying a document version list according to the document data obtained by each editing and the version information corresponding to the document data obtained by each editing, wherein the document version list comprises the version information corresponding to the document data obtained by each editing;
and rendering and displaying the document data corresponding to the version information according to the selected instruction of any version information in the document version list.
In one aspect, an apparatus for updating website content is provided, the apparatus comprising:
the display module is used for displaying the configuration page of the target website according to the website content updating instruction;
the editing module is used for editing the document data of the target website according to the editing instruction triggered in the configuration page;
and the updating module is used for updating the website content of the target website according to the edited document data.
In one possible implementation, the website content of the target website includes a multi-level structure; the configuration page of the target website comprises a configuration page corresponding to each level of structure in a multi-level structure;
the display module is configured to perform any one of:
rendering according to the document data of the configuration page corresponding to any one of the multilevel structures to obtain the configuration page corresponding to any one of the multilevel structures;
and acquiring a configuration page corresponding to any one preset multi-level structure, and displaying the configuration page.
In one possible implementation, the display module is further configured to:
displaying a directory control of the multilevel structure at a target position of the configuration page;
and jumping the display page to a configuration page corresponding to any level structure according to the selected instruction of the directory control of any level structure.
In one possible implementation, each level of the structure includes at least one document item; the document data of the target website comprises document items; the editing instructions triggered in the configuration page comprise instructions for adding document items, deleting document items and correcting document item information;
and the editing module is used for adding and deleting the document items of any level or carrying out information modification processing on the document items of any level according to the editing instruction triggered in the configuration page.
In one possible implementation, the website content of the target website comprises a three-level structure, wherein the three-level structure comprises three levels, namely a module level, a column level and a node level; the module is the upper level of the column, and the column is the upper level of the node.
In one possible implementation manner, the document items included in the nodes include a directory node and a document node, and a document is associated under the document node;
the display module is also used for displaying the document associated with the document node according to the selected instruction of any document node.
In one possible implementation, the directory node includes a sub-directory node; the display module is also used for displaying the subdirectory nodes under the directory node according to the selected instruction of any directory node.
In one possible implementation manner, the access module is configured to extract document data in a target format of the target website from a database according to a website content update instruction;
the updating module is used for storing the edited document data into the database to obtain the updated website content of the target website.
In one possible implementation, the update module is further configured to:
generating corresponding version information for the edited document data;
and correspondingly storing the edited document data and the corresponding version information in the database to obtain the updated website content of the target website.
In one possible implementation, the display module is further configured to:
displaying a document version list according to document data obtained by multiple times of editing and version information corresponding to the document data obtained by each time of editing, wherein the document version list comprises documents corresponding to the document data obtained by multiple times of editing and corresponding version information;
and rendering and displaying the document data of the document according to the selected instruction of any document in the document version list.
In one possible implementation, the apparatus further includes:
the acquisition module is used for acquiring the release state of the document data obtained by editing each time;
the display module is also used for displaying the publishing state of the document data at the corresponding position of the document corresponding to the document data obtained by each editing.
In a possible implementation manner, the update module is further configured to generate a target page according to the document data of the target website, where the target page includes information of all documents in the target website;
the display module is also used for acquiring and displaying the document content of the document according to the selected instruction of the information of any document in the target page.
In one aspect, a terminal is provided and includes one or more processors and one or more memories, where at least one program code is stored in the one or more memories, and the program code is loaded into and executed by the one or more processors to implement the operations performed by the website content updating method.
In one aspect, a computer-readable storage medium having at least one program code stored therein is provided, the program code being loaded and executed by a processor to implement the operations performed by the website content updating method.
According to the method for online editing of the website content, the document data of the target website can be edited according to the editing instruction triggered in the configuration page, so that the website content is updated in real time according to the edited document data, real-time editing of the website content is achieved, if a user is unsatisfied with the editing result, real-time adjustment can be performed, the document data of the target website is edited again, the updating efficiency is greatly improved, and the updating effect is good.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment of a website content updating method according to an embodiment of the present application;
fig. 2 is a flowchart of a website content updating method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of a terminal interface provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of a terminal interface provided in an embodiment of the present application;
FIG. 10 is a schematic diagram of a terminal interface provided by an embodiment of the present application;
fig. 11 is a schematic structural diagram of a website content updating apparatus according to an embodiment of the present application;
fig. 12 is a schematic diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of a website content updating method according to an embodiment of the present application. The implementation environment includes: a terminal 101 and a website platform 102. The terminal 101 is connected to the website platform 102 through a wireless network or a wired network.
The terminal 101 may be at least one of a smart phone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, and a laptop computer. The terminal 101 installs and runs the target application. The target application may be any application capable of providing resources, and may be, for example, a game application, an electronic book application, a multimedia application, and the like. Illustratively, the terminal 101 is a terminal used by a user, and a user account is registered in a target application running in the terminal 101.
The website platform 102 is used to provide background services for the target application. The website platform 102 may include a server 1021 and a database 1022.
The server 1021 may be at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. In some embodiments of the present application, the server 1021 may be configured to perform a website content update method provided by the method embodiments described below.
The database 1022 is used for persistent storage of resources of the target application, and when the terminal 101 requests the resources of the target application, the server 1021 can read the resources from the database 1022 in response to the request of the terminal 101. For example, the database 1022 may include solid state drives (SSDs, also referred to as solid state devices, solid state disks, or flash drives), Hard Disk Drives (HDDs), and the like.
Those skilled in the art will appreciate that the number of terminals 101, servers 1021, and databases 1022 may be greater or fewer. For example, the number of the terminal 101, the server 1021, and the database 1022 may be only one, or the number of the terminal 101, the server 1021, and the database 1022 may be several tens or hundreds, or more, and this embodiment environment may also include other terminals, other servers, or other databases, although not shown in fig. 1. The number and the device type of the terminals, the servers and the database are not limited in the embodiment of the application.
Fig. 2 is a flowchart of a website content updating method according to an embodiment of the present application, where an execution subject of the method may be a terminal, and the terminal may be the terminal 101 shown in fig. 1. Referring to fig. 2, the method may include the steps of:
201. and the terminal displays the configuration page of the target website according to the website content updating instruction.
In the embodiment of the application, the terminal may have a website content updating function, and may perform editing on the terminal to update the website content of the target website. The website content updating step may be triggered by a website content updating instruction, and the website content updating instruction may be triggered by a website content updating operation performed by a user.
In a possible implementation manner, the terminal may execute the website content updating step based on the target application, and may also execute the website content updating step in the browser webpage, which is not limited in this embodiment of the application.
Taking the step of executing the website content update in the target application as an example, the terminal may start the target application based on a start operation of the user on the target application, the target application may be provided with a website content update control, the user may perform a trigger operation on the website content update control to trigger a website content update instruction, and the terminal may acquire and display a configuration page of the target website when receiving the website content update instruction. In a case where the browser webpage performs the website content updating step, the terminal may display a target webpage based on a user operation, where the website content updating control is provided in the target webpage, and may trigger a subsequent website content updating step.
When the website content is updated, the terminal can render and display the configuration page of the target website, and then a user can perform configuration operation based on the displayed configuration page.
In one possible implementation, the document data of the target website can be stored in a target format in a database, and the terminal can extract the document data of the target website to render and display. Accordingly, in step 201, the terminal may extract the document data of the target format of the target website from the database according to the website content update instruction. The target format can be a Markdown format, the Markdown format is a mark language written by using a common text editor, the database can be MySQL, and the MySQL is a relational database management system. The method is characterized in that document data are stored in a database, a terminal can directly extract the document data from the database to render and display the document data, the edited document data are not stored in a Git warehouse in a file form, the Git warehouse stores the data in the file form, the pulled file needs to be analyzed to be further processed, and the website content can be updated only by constructing the file in a corresponding format, so that the method is different from the method in which the Git warehouse stores the data in the file form, the document data are stored in the database in the data form, the storage is carried out through the database, convenience and rapidness are realized, efficient user graphical editing can be carried out, a third-party interface is not relied on, the service logic is completely closed-loop, and real-time storage and real-time rendering can be achieved.
In this implementation manner, the storage form of the configuration page of the target website may be document data of the target website, and in step 201, after the terminal acquires the document data of the target website, the terminal may render the document data corresponding to the configuration page of the target website to obtain the configuration page.
In another possible implementation manner, the configuration page may also be a preset page, and the terminal may directly obtain the preset configuration page and render and display the configuration page. The embodiment of the present application does not limit what specific implementation manner is adopted.
In one possible implementation, the website content of the target website includes a multi-level structure, and the configuration page of the target website includes a configuration page corresponding to each level of the multi-level structure. That is, the contents in the destination website have a hierarchical relationship, for example, in which one content is a content subordinate to another content, another content is a content subordinate to another content, and the like. In this implementation manner, in step 201, the terminal may perform rendering according to document data of a configuration page corresponding to any one of the multi-level structures, so as to obtain the configuration page corresponding to any one of the levels.
In a specific possible embodiment, for the setting of the multi-level structure, the website content of the target website includes a three-level structure, and the three-level structure includes three levels, namely, a module level, a column level and a node level; the module is the upper level of the column, and the column is the upper level of the node. In the three-level structure, a module is the first level of a document, i.e., the uppermost level, and a node is the lowermost level.
Corresponding to the multi-level structure, each level of result may correspond to one directory control, and the multi-level structure corresponds to a plurality of directory controls, where the directory controls are used to identify the structure or guide the user to switch the configuration pages. Specifically, the terminal may display the directory control of the multi-level structure at a target location of the configuration page. Therefore, when the terminal displays the directory controls with the multilevel structure, a user can select any directory control, and the terminal receives a selection instruction triggered by the selection operation, so that the switching of the configuration pages can be realized. Specifically, the terminal may jump the display page to a configuration page corresponding to any one of the hierarchical structures according to a selected instruction for the directory control of the any one of the hierarchical structures.
For example, taking the example that the website content of the target website includes three levels of structures (module, column, and program), as shown in fig. 3, the three levels of structures each correspond to a directory control, which are: module management, column management and node management. When the directory control of the module management is selected, the terminal can display a configuration page corresponding to the module management.
202. And the terminal edits the document data of the target website according to the editing instruction triggered in the configuration page.
After the terminal displays the configuration page, the user can perform editing operation in the configuration page so as to trigger an editing instruction, and after the terminal receives the editing instruction, the terminal can edit the document data of the target website.
For an implementation in which the website content of the target website includes a multi-level structure, in one possible implementation, each level of structure may include at least one document item, the document data of the target website may include document items, and the editing instructions that may be triggered in the configuration page may include instructions for adding document items, deleting document items, and modifying document item information. Accordingly, in step 202, the terminal may add, delete or perform information modification processing on the document item at any level according to the editing instruction triggered in the configuration page. For example, the above-mentioned module may include at least one module in a hierarchical structure, and the editing instruction may include instructions such as an addition module, a deletion module, and a modification module. The hierarchy of columns may include at least one column, and the hierarchy of nodes may include at least one node.
For example, as shown in FIG. 3, for a module level structure, a configuration page may include a plurality of modules: access guide, H5 side, applet, and web (web) site. Each module also corresponds to the editing operation that can be performed: editing or deleting. The module management also includes an add button so that an operation of adding a module can be performed. Similarly, for the two-level structure of columns and nodes, the configuration page may be as shown in fig. 4 and 5, which are only an example and do not limit the present application.
In one possible implementation, the node may include multiple types, and specifically, the node includes document items including a directory node and a document node with a document associated therewith. And no document is associated under the directory node. Therefore, when a node is created, a node corresponding to the node type can be created according to the node adding instruction and the node type indicated in the node adding instruction. When the node type is a document node, a document upload page or a document creation page may be displayed so that a user may upload or create a document in association with the created document node.
Of course, for the selected instruction for any document node triggered in the configuration page corresponding to the level structure of the node, the terminal may further display the document associated with the document node. That is, the terminal may display the document associated with any document node according to the selected instruction for the document node. For example, as shown in fig. 5, both the new manual guide node and the application flow node are document nodes, and associated document controls are displayed in the operation thereof, and if the user selects the document node, the selection instruction may be triggered by the selection operation of the document node, or may be triggered by the selection operation of the associated document control corresponding to the document node, which is not limited in the embodiment of the present application. In one specific example, if the user selects the associated document corresponding to the document node of the new manual, the terminal may display the document associated with the document node, that is, the new manual, as shown in fig. 6. In fig. 6, the terminal may display a document list associated with the document node, where the document list may include one or more documents, and may also provide options for adding documents and importing documents. The user may operate on this option, for example, on a newly added document, so that the terminal may create the document and jump the interface to an edit page of the document, as shown in fig. 7. The user edits the document and saves it so that one is added to the associated document under the document node.
In a possible implementation manner, for the above directory node, the directory node may include a sub-directory node instead of a document, and the terminal may also display the sub-directory node under the directory node according to a selected instruction for any directory node.
It should be noted that, in the process of editing the document data of the target website by the terminal, the document data after editing can be displayed in the configuration page, so that the user can know the effect after editing in real time, and can adjust the editing operation in real time to achieve the editing effect that meets the expectations of the user. Therefore, the steps of repeated editing can be greatly reduced, the time is reduced on the whole, and the efficiency of updating the website is improved.
203. And the terminal updates the website content of the target website according to the edited document data.
And the terminal acquires the edited document data, wherein the edited document data is the content of the website content of the target website in a data form, and the document data also needs to be stored to the storage position of the target website to obtain the website content of the target website.
In the method of extracting document data from the database in step 201, after the terminal edits the document data, the edited document data may be stored in the database, so as to obtain the updated website content of the target website. The part of the document data can be directly extracted and rendered to obtain the corresponding webpage subsequently. The mode of storing through the database is convenient and fast, high-efficiency user graphical editing can be carried out, a third-party interface is not relied on, the service logic is completely closed-loop, and real-time storage and real-time rendering can be achieved.
In the related technology, the locally edited document is stored in a Git warehouse in a file form, complex operations such as editing, submitting and pushing need to be carried out, the document can be directly extracted and used through database storage, and a large amount of manual operations are not needed through online editing, so that the updating efficiency of website contents can be effectively improved.
In a possible implementation manner, the website content may also adopt version management, and after the step 202, the terminal may further generate corresponding version information for the edited document data, so that in the step 203, the terminal may correspondingly store the edited document data and the corresponding version information in the database to obtain the updated website content of the target website. Through the version information, the editing sequence of each document data in the document data edited for many times can be known, and the editing record of any version can also be checked, so that all operation processes of a user can be traced, the document data of each version is reserved in the operation process, if the document data of which version is required to be restored, the method can be directly realized according to the stored data according to the version information, and is convenient and fast.
The terminal can display the document data obtained by multiple editions corresponding to the version information, each document data is correspondingly displayed with the version information, and the specific display can adopt a list form. Specifically, the terminal may display a document version list according to document data obtained through multiple edits and version information corresponding to the document data obtained through each edit, where the document version list includes documents corresponding to the document data obtained through the multiple edits and corresponding version information, and perform rendering display on the document data of the documents according to a selected instruction for any one of the documents in the document version list. In this way, by displaying the content, the user can clearly know the editing process of the document data of the target website, and can determine which document data is finally adopted based on the document data obtained by the multiple times of editing. The process can also be understood as a draft box, and the file is reserved for the multiple editing processes, so that the user can freely select the document data which is in line with the expectation to meet the requirement of the user.
In a specific possible embodiment, in addition to the version information, the document data obtained by each editing may also correspond to a release status, and the terminal may acquire the release status of the document data obtained by each editing and display the release status of the document data at a corresponding position of the document corresponding to the document data obtained by each editing. By this distribution status, it is possible to know the distribution status of the document data obtained by each editing, and further, it is possible to edit the distributed document data, distribute unreleased document data, or the like.
In a specific possible embodiment, the terminal may further summarize all documents of the target website to provide an overview function. Specifically, the terminal may generate a target page according to the document data of the target website, where the target page includes information of all documents in the target website, and may further obtain and display document content of the document according to a selection instruction of information of any document in the target page.
For example, as shown in fig. 8, a document overview page (target page) may be provided, which may include all documents of the target website, and which provides quick access to the respective documents, i.e., a document content page of a certain document may be directly accessed through the document overview page. For example, as shown in FIG. 9, if the user selects a document in the document overview page, the interface may jump to the document content page to display the document content of the document.
Through the method, a user can perform a small amount of operations to update website content, and can understand the website content as a management background of a website, as shown in fig. 10, in a specific example, a management background and an Egg framework model are shown, where the Egg framework model is used to represent the background, that is, a server or a database where the target website is located. I.e., the web site platform shown in fig. 1 described above.
According to the method for online editing of the website content, the document data of the target website can be edited according to the editing instruction triggered in the configuration page, so that the website content is updated in real time according to the edited document data, real-time editing of the website content is achieved, if a user is unsatisfied with the editing result, real-time adjustment can be performed, the document data of the target website is edited again, the updating efficiency is greatly improved, and the updating effect is good.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
Fig. 11 is a schematic structural diagram of a website content updating apparatus according to an embodiment of the present application, and referring to fig. 11, the apparatus may include:
a display module 1101, configured to display a configuration page of a target website according to a website content update instruction;
an editing module 1102, configured to edit the document data of the target website according to an editing instruction triggered in the configuration page;
an updating module 1103, configured to update the website content of the target website according to the edited document data.
In one possible implementation, the website content of the target website includes a multi-level structure; the configuration page of the target website comprises a configuration page corresponding to each level of structure in a multi-level structure;
the display module 1101 is configured to perform any one of:
rendering according to the document data of the configuration page corresponding to any one of the multilevel structures to obtain the configuration page corresponding to any one of the multilevel structures;
and acquiring a preset configuration page corresponding to any one of the multilevel structures, and displaying the configuration page.
In one possible implementation, the display module 1101 is further configured to:
displaying the directory control of the multilevel structure at the target position of the configuration page;
and jumping the display page to a configuration page corresponding to any level structure according to the selected instruction of the directory control of any level structure.
In one possible implementation, each level of the structure includes at least one document item; the document data of the target website includes document items; the editing instructions triggered in the configuration page comprise instructions for adding document items, deleting document items and correcting document item information;
the editing module 1102 is configured to add, delete, or perform information modification processing on the document item at any level according to an editing instruction triggered in the configuration page.
In one possible implementation, the website content of the target website comprises a three-level structure, wherein the three-level structure comprises three levels, namely a module level, a column level and a node level; the module is the upper level of the column, and the column is the upper level of the node.
In one possible implementation, the document items included in the node include a directory node and a document node, and the document node is associated with a document;
the display module 1101 is further configured to display a document associated with any document node according to the selected instruction for the document node.
In one possible implementation, the directory node includes a sub-directory node below; the display module 1101 is further configured to display the sub-directory nodes under any directory node according to the selected instruction for the directory node.
In one possible implementation manner, the access module is used for extracting the document data of the target format of the target website from the database according to the website content updating instruction;
the updating module 1103 is configured to store the edited document data in the database, so as to obtain updated website content of the target website.
In one possible implementation, the updating module 1103 is further configured to:
generating corresponding version information for the edited document data;
and correspondingly storing the edited document data and the corresponding version information in the database to obtain the updated website content of the target website.
In one possible implementation, the display module 1101 is further configured to:
displaying a document version list according to document data obtained by multiple times of editing and version information corresponding to the document data obtained by each time of editing, wherein the document version list comprises documents corresponding to the document data obtained by multiple times of editing and corresponding version information;
and rendering and displaying the document data of the document according to the selected instruction of any document in the document version list.
In one possible implementation, the apparatus further includes:
the acquisition module is used for acquiring the release state of the document data obtained by editing each time;
the display module 1101 is also configured to display the distribution status of the document data at a corresponding position of a document corresponding to the document data obtained by each editing.
In one possible implementation, the apparatus further includes:
the generating module is used for generating a target page according to the document data of the target website, wherein the target page comprises the information of all documents in the target website;
the display module 1101 is further configured to obtain and display document content of the document according to a selected instruction of information of any document in the target page.
The device provided by the embodiment of the application can be used for rendering and displaying the configuration page of the target website by accessing the target website, and can be used for editing the document data of the target website on line, so that the website content can be updated in real time according to the edited document data, the website content can be edited in real time, if a user is not satisfied with the editing result, the real-time adjustment can be carried out, the document data of the target website can be edited again, the updating efficiency is greatly improved, and the updating effect is good.
It should be noted that: in the website content updating apparatus provided in the foregoing embodiment, when updating the website content, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the terminal may be divided into different functional modules to complete all or part of the functions described above. In addition, the website content updating apparatus provided in the foregoing embodiment and the website content updating method embodiment belong to the same concept, and specific implementation processes thereof are described in the method embodiment and are not described herein again.
Fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 1200 may be: a smart phone, a tablet computer, an MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4) player, a notebook computer or a desktop computer. Terminal 1200 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so forth.
In general, terminal 1200 includes: one or more processors 1201 and one or more memories 1202.
The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1201 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
In some embodiments, the terminal 1200 may further optionally include: a peripheral interface 1203 and at least one peripheral. The processor 1201, memory 1202, and peripheral interface 1203 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1203 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1204, display 1205, camera assembly 1206, audio circuitry 1207, positioning assembly 1208, and power supply 1209.
The peripheral interface 1203 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, memory 1202, and peripheral interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202 and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1204 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1204 communicates with a communication network and other communication devices by electromagnetic signals. The radio frequency circuit 1204 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1204 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1204 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1204 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to acquire touch signals on or over the surface of the display screen 1205. The touch signal may be input to the processor 1201 as a control signal for processing. At this point, the display 1205 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1205 may be one, providing the front panel of the terminal 1200; in other embodiments, the display 1205 can be at least two, respectively disposed on different surfaces of the terminal 1200 or in a folded design; in still other embodiments, the display 1205 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 1200. Even further, the display screen 1205 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display panel 1205 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
The audio circuitry 1207 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 1201 for processing or inputting the electric signals into the radio frequency circuit 1204 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided at different locations of terminal 1200. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1201 or the radio frequency circuit 1204 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1207 may also include a headphone jack.
The positioning component 1208 is used to locate a current geographic location of the terminal 1200 to implement navigation or LBS (location based Service). The positioning component 1208 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
The power supply 1209 is used to provide power to various components within the terminal 1200. The power source 1209 may be alternating current, direct current, disposable or rechargeable. When the power source 1209 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1200 also includes one or more sensors 1210. The one or more sensors 1210 include, but are not limited to: acceleration sensor 1211, gyro sensor 1212, pressure sensor 1213, fingerprint sensor 1214, optical sensor 1215, and proximity sensor 1216.
The acceleration sensor 1211 can detect magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1200. For example, the acceleration sensor 1211 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1201 may control the display screen 1205 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1212 may detect a body direction and a rotation angle of the terminal 1200, and the gyro sensor 1212 may collect a 3D motion of the user on the terminal 1200 in cooperation with the acceleration sensor 1211. The processor 1201 can implement the following functions according to the data collected by the gyro sensor 1212: motion sensing (such as changing U I according to a user's tilt operation), image stabilization while capturing, game control, and inertial navigation.
Pressure sensors 1213 may be disposed on the side frames of terminal 1200 and/or underlying display 1205. When the pressure sensor 1213 is disposed on the side frame of the terminal 1200, the user's holding signal of the terminal 1200 can be detected, and the processor 1201 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1213. When the pressure sensor 1213 is disposed at a lower layer of the display screen 1205, the processor 1201 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1205. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1214 is used for collecting a fingerprint of the user, and the processor 1201 identifies the user according to the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 identifies the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 1201 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 1214 may be provided on the front, back, or side of the terminal 1200. When a physical button or vendor Logo is provided on the terminal 1200, the fingerprint sensor 1214 may be integrated with the physical button or vendor Logo.
The optical sensor 1215 is used to collect the ambient light intensity. In one embodiment, the processor 1201 may control the display brightness of the display 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display luminance of the display panel 1205 is increased; when the ambient light intensity is low, the display brightness of the display panel 1205 is turned down. In another embodiment, processor 1201 may also dynamically adjust the camera head 1206 shooting parameters based on the ambient light intensity collected by optical sensor 1215.
A proximity sensor 1216, also known as a distance sensor, is typically disposed on the front panel of the terminal 1200. The proximity sensor 1216 is used to collect a distance between the user and the front surface of the terminal 1200. In one embodiment, when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually decreases, the processor 1201 controls the display 1205 to switch from the bright screen state to the dark screen state; when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually becomes larger, the processor 1201 controls the display 1205 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 12 is not intended to be limiting of terminal 1200 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer readable storage medium, such as a memory including program code, which is executable by a processor to perform the website content update method in the above embodiments, is also provided. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. A method for updating website content, the method comprising:
displaying a configuration page of a target website according to the website content updating instruction;
editing the document data of the target website according to an editing instruction triggered in the configuration page;
and updating the website content of the target website according to the edited document data.
2. The method of claim 1, wherein the website content of the target website comprises a multi-level structure; the configuration page of the target website comprises a configuration page corresponding to each level of structure in a multi-level structure;
the configuration page for displaying the target website comprises any one of the following items:
rendering according to the document data of the configuration page corresponding to any one of the multilevel structures to obtain the configuration page corresponding to any one of the multilevel structures;
and acquiring a configuration page corresponding to any one preset multi-level structure, and displaying the configuration page.
3. The method of claim 2, wherein each level of structure includes at least one document item; the document data of the target website comprises document items; the editing instructions triggered in the configuration page comprise instructions for adding document items, deleting document items and correcting document item information;
the editing the document data of the target website according to the editing instruction triggered in the configuration page includes:
and adding and deleting the document items of any level or carrying out information modification processing on the document items of any level according to the editing instruction triggered in the configuration page.
4. The method of claim 1, wherein the website content of the target website comprises a three-level structure, wherein the three-level structure comprises three levels, namely a module, a column and a node; the module is the upper level of the column, and the column is the upper level of the node.
5. The method of claim 4, wherein the nodes comprise document items comprising a directory node and a document node, the document node having a document associated therewith;
the method further comprises the following steps:
displaying the document associated with the document node according to the selected instruction of any document node;
the directory node comprises subdirectory nodes; the method further comprises the following steps:
and displaying the subdirectory nodes under the directory nodes according to the selected instruction of any directory node.
6. The method of claim 1, wherein before displaying the configuration page of the target website according to the website content update instruction, the method further comprises:
according to a website content updating instruction, extracting document data of a target format of the target website from a database;
the updating the website content of the target website according to the edited document data comprises:
and storing the edited document data into the database to obtain the updated website content of the target website.
7. The method according to claim 6, wherein after the document data of the target website is edited according to the editing instruction triggered in the configuration page, the method further comprises:
generating corresponding version information for the edited document data;
the updating the website content of the target website according to the edited document data comprises:
and correspondingly storing the edited document data and the corresponding version information in the database to obtain the updated website content of the target website.
8. A website content update apparatus, the apparatus comprising:
the display module is used for displaying the configuration page of the target website according to the website content updating instruction;
the editing module is used for editing the document data of the target website according to the editing instruction triggered in the configuration page;
and the updating module is used for updating the website content of the target website according to the edited document data.
9. A terminal, comprising one or more processors and one or more memories having stored therein at least one program code, the program code being loaded and executed by the one or more processors to perform the operations executed by the website content update method according to any one of claims 1 to 7.
10. A computer-readable storage medium having at least one program code stored therein, the program code being loaded and executed by a processor to implement the operations performed by the website content updating method according to any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911344886.0A CN111191176B (en) | 2019-12-24 | 2019-12-24 | Website content updating method, device, terminal and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911344886.0A CN111191176B (en) | 2019-12-24 | 2019-12-24 | Website content updating method, device, terminal and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111191176A true CN111191176A (en) | 2020-05-22 |
| CN111191176B CN111191176B (en) | 2023-04-07 |
Family
ID=70705880
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911344886.0A Active CN111191176B (en) | 2019-12-24 | 2019-12-24 | Website content updating method, device, terminal and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111191176B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112486396A (en) * | 2020-12-01 | 2021-03-12 | 佳都新太科技股份有限公司 | Content editing method and device for multiple large screen ends |
| CN112817915A (en) * | 2021-02-01 | 2021-05-18 | 浪潮云信息技术股份公司 | Automatic multi-product document uniform publishing and displaying method |
| CN113344549A (en) * | 2021-06-30 | 2021-09-03 | 深圳市斯博科技有限公司 | Project engineering document updating method and device, computer equipment and storage medium |
| CN114153487A (en) * | 2020-09-07 | 2022-03-08 | 腾讯科技(深圳)有限公司 | Data configuration method, device, terminal and storage medium |
| CN114997831A (en) * | 2022-06-14 | 2022-09-02 | 中国银行股份有限公司 | Collaborative management method and device for client |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101770484A (en) * | 2008-12-31 | 2010-07-07 | 北大方正集团有限公司 | Method and system for network upgrade real-time release |
| CN103970773A (en) * | 2013-01-30 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Page updating method and device for web page |
| US9147004B2 (en) * | 2012-09-07 | 2015-09-29 | Cimpress Schweiz Gmbh | Website builder systems and methods with device detection to adapt rendering behavior based on device type |
| CN105095163A (en) * | 2014-04-21 | 2015-11-25 | 小米科技有限责任公司 | Web page editing method and device |
| CN107967269A (en) * | 2016-10-18 | 2018-04-27 | 腾讯科技(深圳)有限公司 | The method and terminal of a kind of edit page |
| CN108038232A (en) * | 2017-12-26 | 2018-05-15 | 广州酷狗计算机科技有限公司 | Page authoring method, device and system, storage medium |
| CN109815435A (en) * | 2019-01-24 | 2019-05-28 | 中国人民解放军战略支援部队航天工程大学 | A kind of website page generation method, device and electronic device |
| CN110187886A (en) * | 2019-04-23 | 2019-08-30 | 福建省华渔教育科技有限公司 | A kind of documentation website generation method and terminal |
-
2019
- 2019-12-24 CN CN201911344886.0A patent/CN111191176B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101770484A (en) * | 2008-12-31 | 2010-07-07 | 北大方正集团有限公司 | Method and system for network upgrade real-time release |
| US9147004B2 (en) * | 2012-09-07 | 2015-09-29 | Cimpress Schweiz Gmbh | Website builder systems and methods with device detection to adapt rendering behavior based on device type |
| CN103970773A (en) * | 2013-01-30 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Page updating method and device for web page |
| CN105095163A (en) * | 2014-04-21 | 2015-11-25 | 小米科技有限责任公司 | Web page editing method and device |
| CN107967269A (en) * | 2016-10-18 | 2018-04-27 | 腾讯科技(深圳)有限公司 | The method and terminal of a kind of edit page |
| CN108038232A (en) * | 2017-12-26 | 2018-05-15 | 广州酷狗计算机科技有限公司 | Page authoring method, device and system, storage medium |
| CN109815435A (en) * | 2019-01-24 | 2019-05-28 | 中国人民解放军战略支援部队航天工程大学 | A kind of website page generation method, device and electronic device |
| CN110187886A (en) * | 2019-04-23 | 2019-08-30 | 福建省华渔教育科技有限公司 | A kind of documentation website generation method and terminal |
Non-Patent Citations (2)
| Title |
|---|
| ZHI LIU ET AL.: "Design and Implementation of Customized Course Website of Data Structure", 《2010 SECOND INTERNATIONAL WORKSHOP ON EDUCATION TECHNOLOGY AND COMPUTER SCIENCE》 * |
| 曾广海: "基于Web前端组件化的个人博客系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114153487A (en) * | 2020-09-07 | 2022-03-08 | 腾讯科技(深圳)有限公司 | Data configuration method, device, terminal and storage medium |
| CN112486396A (en) * | 2020-12-01 | 2021-03-12 | 佳都新太科技股份有限公司 | Content editing method and device for multiple large screen ends |
| CN112817915A (en) * | 2021-02-01 | 2021-05-18 | 浪潮云信息技术股份公司 | Automatic multi-product document uniform publishing and displaying method |
| CN113344549A (en) * | 2021-06-30 | 2021-09-03 | 深圳市斯博科技有限公司 | Project engineering document updating method and device, computer equipment and storage medium |
| CN113344549B (en) * | 2021-06-30 | 2024-03-26 | 深圳万兴软件有限公司 | Project engineering document updating method and device, computer equipment and storage medium |
| CN114997831A (en) * | 2022-06-14 | 2022-09-02 | 中国银行股份有限公司 | Collaborative management method and device for client |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111191176B (en) | 2023-04-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12405775B2 (en) | Mini program data binding method and apparatus, device, and storage medium | |
| CN111191176B (en) | Website content updating method, device, terminal and storage medium | |
| US11934814B2 (en) | Application porting method and apparatus, device, and medium | |
| US11954464B2 (en) | Mini program production method and apparatus, terminal, and storage medium | |
| CN113191117B (en) | Editing method, device, device and storage medium of electronic document | |
| WO2022083241A1 (en) | Information guide method and apparatus | |
| CN113467663B (en) | Interface configuration method, device, computer equipment and medium | |
| CN110543350A (en) | Method and device for generating page component | |
| CN111949680A (en) | Data processing method and device, computer equipment and storage medium | |
| CN110889060A (en) | Webpage display method and device, computer equipment and storage medium | |
| CN112230910A (en) | Page generation method, device, equipment and storage medium of embedded program | |
| CN113747199A (en) | Video editing method, video editing apparatus, electronic device, storage medium, and program product | |
| CN110704455B (en) | Method, device, terminal and storage medium for generating data asset directory | |
| CN116431138B (en) | Component template building method and device and form building method and device | |
| CN112257006A (en) | Page information configuration method, device, equipment and computer readable storage medium | |
| CN114385723A (en) | Data reading method and device, electronic equipment and storage medium | |
| CN114911478B (en) | Page creation method and device, electronic equipment and storage medium | |
| CN111597293A (en) | Document directory display method, device, equipment and readable storage medium | |
| CN113722040A (en) | Work processing method, device, computer equipment and medium | |
| CN114817796A (en) | Information content commenting method, device, equipment and readable storage medium | |
| CN115774822B (en) | Data updating method, device, terminal and storage medium | |
| CN111294320B (en) | Data conversion method and device | |
| CN112230906B (en) | Method, device and equipment for creating list control and readable storage medium | |
| HK40084178A (en) | Data updating method, device, terminal and storage medium | |
| HK40080365A (en) | Display method of display page, device, 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |