CN113515292A - Framework transformation method, device and equipment for client application program - Google Patents

Framework transformation method, device and equipment for client application program Download PDF

Info

Publication number
CN113515292A
CN113515292A CN202110453281.6A CN202110453281A CN113515292A CN 113515292 A CN113515292 A CN 113515292A CN 202110453281 A CN202110453281 A CN 202110453281A CN 113515292 A CN113515292 A CN 113515292A
Authority
CN
China
Prior art keywords
application program
application
architecture
client
framework
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
Application number
CN202110453281.6A
Other languages
Chinese (zh)
Other versions
CN113515292B (en
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110453281.6A priority Critical patent/CN113515292B/en
Publication of CN113515292A publication Critical patent/CN113515292A/en
Application granted granted Critical
Publication of CN113515292B publication Critical patent/CN113515292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the specification relates to the financial field or other fields, and discloses a method, a device and equipment for framework transformation of a client application program, which can be applied to the financial field for carrying out the application program of a client, such as: a front-end architecture transformation scenario for a finance-related application, the method comprising: the method comprises the steps of firstly packaging a browser kernel and WEB page codes of a specified version into a client installation program through an electron, then calling an application program of a new framework through an application program of an old framework, and writing a function based on a new front-end and back-end separation framework into the application program packaged based on the electron, namely obtaining the application program of the new framework. The user can call the application program of the new architecture through the application program of the old architecture, and can also independently use the new application program to realize the non-inductive transformation of the front-end architecture of the PC-end software. And moreover, the browser kernel is of a specified version, so that the problem of browser incompatibility is avoided.

Description

Framework transformation method, device and equipment for client application program
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for framework transformation of a client application.
Background
The C/S (Client/Server) architecture is mostly used by applications in general clients, and as the computer internet develops, the B/S (Browser/Server) architecture appears, which is a kind of architecture that changes or improves the C/S architecture as the internet technology develops. Applications developed for C/S may require architectural transformations, such as: the scheme of the DELPHI native self-contained operation webpage is that the transformation of the application program framework is realized through a WebBrowser control, the kernel of the control is an IE7 browser, which is equivalent to opening a corresponding webpage in the IE browser. Among them, Delphi is a well-known Rapid Application Development tool (RAD) under Windows platform. However, the kernel version of the WebBrowser control call depends on the version of the client-installed IE browser, which is not friendly to the new HTML5 standard support, and none of the latest versions of the current mainstream framework are adapted to the IE browser, such as the front end framework VUE (a set of progressive frameworks for building user interfaces).
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a method, an apparatus, and a device for framework transformation of a client application, so as to implement non-inductive transformation of the client application.
In one aspect, an embodiment of the present specification provides a method for framework transformation of a client application, where the method includes:
selecting a browser kernel with a specified version and a functional page code of an application program to be converted;
packaging the browser kernel of the specified version and the function page code to be converted into an application program installation package by using an electron, and installing the application program installation package in a client to obtain a new architecture application program;
and sending the installation path of the application program installation package to the application program to be transformed, so that the application program to be transformed calls the new architecture application program to complete the corresponding function through the installation path.
Further, the method further comprises:
and after all the functional modules of the application program to be converted complete the framework conversion, unloading the application program to be converted in the client.
Further, the method further comprises:
and after the new architecture application program is installed and obtained, deleting the functional module corresponding to the functional page code in the application program to be converted.
Further, the selecting the browser kernel of the specified version includes:
and selecting the latest version of the chromium core as the specified version of the browser core.
Further, the application program installation package supports MAC, Windows and Linux platforms.
In another aspect, the present specification provides an architecture transformation apparatus for a client application, the apparatus comprising:
the device comprises:
the function page selection module is used for selecting the browser kernel with the specified version and the function page code of the application program to be converted;
the new architecture packaging module is used for packaging the browser kernel with the specified version and the function page code to be converted into an application program installation package by using an electron, and installing the application program installation package in a client to obtain a new architecture application program;
and the new architecture application using module is used for sending the installation path of the application program installation package to the application program to be transformed, so that the application program to be transformed calls the new architecture application program to complete the corresponding function through the installation path.
Further, the apparatus further comprises an application deletion module for:
and after all the functional modules of the application program to be converted complete the framework conversion, unloading the application program to be converted in the client.
Further, the apparatus further comprises an application deletion module for:
and after all the functional modules of the application program to be converted complete the framework conversion, unloading the application program to be converted in the client.
In another aspect, an embodiment of the present specification provides an architecture transformation device for a client application, which is applied to a server, and includes at least one processor and a memory for storing processor-executable instructions, where the instructions, when executed by the processor, implement an architecture transformation method including the above-mentioned client application.
According to the framework transformation method, device and equipment of the client application program, a browser kernel and WEB page codes of a specified version are packaged into a client installation program through an electron, then the application program is called through a Delphi project, functions based on a new front-end and back-end separation framework are written into the application program packaged based on the electron, and the application program of a new framework is obtained. The user can call the application program of the new architecture through the application program of the old architecture, and can also independently use the new application program to realize the non-inductive transformation of the front-end architecture of the PC-end software. And moreover, the browser kernel is of a specified version, so that the problem of browser incompatibility is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic flowchart of an embodiment of a method for transforming an architecture of a client application provided in an embodiment of the present specification;
FIG. 2 is a schematic flow chart illustrating architecture transformation of a client application in an example scenario of the present specification;
FIG. 3 is a block diagram of an architecture transformation apparatus for a client application in one embodiment of the present disclosure;
fig. 4 is a block diagram of a hardware configuration of an architecture transformation server of a client application in one embodiment of the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
The method, apparatus, and device for framework transformation of a client application provided in this specification are mainly used for framework transformation of a PC (personal computer) front-end software, where a client is mainly a PC end, and certainly the client may also be another terminal capable of installing an application according to actual use requirements, such as: smart phones, tablet computers, smart wearable devices, and the like, and embodiments of the present specification are not particularly limited. An application is primarily understood to be a computer program capable of performing one or more specific tasks, which is run in a user mode, which can interact with a user, and which has a visual user interface. The framework transformation can be mainly understood as the transformation from a C/S framework to a B/S framework, the C/S framework, namely a Client/Server framework, is a relatively well-known software system structure, and tasks are reasonably distributed to a Client end and a Server end, so that the communication overhead of the system is reduced, and the management operation can be carried out only by installing the Client end. The B/S architecture, i.e. Browser and Server architecture mode, is a changed or improved architecture of C/S architecture with the rise of Internet technology, under which a user working interface is realized by a Browser, a few parts of business logic are realized at a front end (Browser), but main business logic is realized at a Server end (Server), so as to form a so-called three-layer 3-tier structure. The B/S architecture is a network architecture mode after WEB is started, and a WEB browser is the most main application software of a client. The mode unifies the client, centralizes the core part of the system function realization to the server, and simplifies the development, maintenance and use of the system. The client only needs to install a Browser (Browser), such as Netscape Navigator or Internet Explorer, and the Server only needs to install databases such as Oracle, Sybase, Informix or SQL Server. And the browser performs data interaction with the database through the Web Server. Therefore, the load of the client computer is greatly simplified, the cost and the workload of system maintenance and upgrading are reduced, and the overall cost of a user is reduced.
In some scenarios, the B/S architecture has great advantages, and therefore, the C/S architecture application needs to be converted into the B/S architecture. Generally, after the application architecture is transformed, there may be a problem of browser compatibility, which may result in that the functions of the application cannot be used normally. In the embodiment of the specification, the kernel and the function page code of the specified version are packaged into the application program installation package by using the electron, the old application program can use the service function of the new application program by directly calling the new application program, the new application program uses the electron for packaging, the framework of the new application program is a B/S framework, the framework transformation of the application program is completed, and the problem of browser compatibility does not exist.
It should be noted that the method, apparatus, and device for transforming the architecture of the client application provided in the embodiments of the present specification can be applied to the application of the client in the financial field, such as: the front-end architecture transformation scenario for finance-related applications may also be applied to any domain other than the finance domain such as: computer, software development, and the like, and the application fields of the method, the apparatus, and the device for framework transformation of a client application provided in the embodiments of the present specification are not particularly limited.
Fig. 1 is a flowchart illustrating an embodiment of a method for transforming an architecture of a client application according to an embodiment of the present disclosure. Although the present specification provides the method steps or apparatus structures as shown in the following examples or figures, more or less steps or modules may be included in the method or apparatus after being partially combined based on conventional or non-inventive efforts. In the case of steps or structures which do not logically have the necessary cause and effect relationship, the execution order of the steps or the block structure of the apparatus is not limited to the execution order or the block structure shown in the embodiments or the drawings of the present specification. The method or module structure of (1) can be implemented in a sequential or parallel manner according to the embodiments or the method or module structure shown in the drawings (for example, in the environment of parallel processors or multi-thread processing, or even in the environment of distributed processing and server clustering).
In a specific embodiment of the method for transforming the architecture of the client application provided in this specification, as shown in fig. 1, the method may be applied to a computer, a smart phone, a tablet computer, a server, and the like, and the method may include the following steps:
and 102, selecting a browser kernel with a specified version and a function page code of the application program to be converted.
In a particular implementation, the kernel is the most basic part of the operating system, which is a piece of software that provides many applications with secure access to the computer hardware, which is limited, and determines when a program operates on a piece of hardware for how long. In the embodiment of the present specification, a user may select a browser kernel of an assigned version according to actual use requirements, and may select a corresponding browser kernel according to a browser used in a user client, where the browser kernel is mainly used to ensure that a functional page of an application program can be normally opened, and generally, a browser kernel of a latest version or stable performance may be selected as a browser kernel of an assigned version.
In some embodiments of the present description, the latest version of the chrome kernel may be selected as the specified version of the browser kernel. Where, chrome is a web browser. Programming languages are developed, so that the functions of the browser kernel of a new version are often more powerful, but developers do not know what the browser kernel used by a user is and what the version is, so that a lot of time and energy are needed to do browser-compatible work, and a functional page can be ensured to work normally in different browsers. The embodiment of the specification packs the latest stable version of the chroma kernel to the client, so that the version of the browser kernel used by the client does not need to be determined one by one, and the problem that the functional page of the application program cannot be normally opened due to incompatibility of the browser kernel versions can be quickly solved.
After the browser kernel is determined, a function page code of the application program to be transformed can be determined, wherein the application program to be transformed can be understood as an application program which needs to be subjected to architecture transformation, specifically, the function page code can be understood as a web page code corresponding to a function module of the application program which needs to be transformed, and can include html, css, js, and simply, a code of a function page of the system.
In some embodiments of the present specification, the selecting the function page code of the application to be transformed includes: and developing the function page of the application to be transformed by using H5+ CSS3+ Vue + element UI technology to obtain the function page code.
In a specific implementation process, H5+ CSS3+ Vue + elementUI WEB page technology may be selected to develop a function page of an application to be transformed, where H5 is HTML5, which may be understood as a fifth significant modification of an application hypertext markup language (HTML) in a core language of the world wide WEB and a standard universal markup language, and may be understood as a standard. CSS3 is an upgraded version of CSS (Cascading Style Sheets) technology, which is a computer language used to express file styles such as HTML (an application of standard general markup language) or XML (a subset of standard general markup language), and can statically modify a web page and dynamically format elements of the web page in cooperation with various scripting languages. Vue is a progressive framework for constructing User Interface, which is one of three front-end frameworks, and an elementary UI is a UI (User Interface Design) framework, which has many basic components and can accelerate development efficiency. Through superposition of H5, CSS3, Vue and elementUI, a required WEB page, namely a function page, can be designed quickly and accurately.
104, packaging the browser kernel with the specified version and the function page code to be converted into an application program installation package by using an electron, and installing the application program installation package in a client to obtain a new architecture application program
In a specific implementation process, after a browser kernel of a specified version is selected and a function page code which needs to be subjected to architecture transformation is designed, the selected browser kernel and the designed function page code can be packaged by using an electron to obtain an application program installation package, and then the packaged application program installation package is installed in a client, so that a new architecture application program can be obtained, wherein the new architecture application program can be understood as an application program of a B/S architecture. Electron can be understood as a cross-platform desktop application development tool, which is a cross-platform desktop application development tool released by GitHub, supports Web technology to develop desktop applications, and is developed based on C + +, the GUI core comes from Chrome, and the JavaScript engine uses v 8. The application program installation package based on the electron package is the application program of the B/S framework. JS is used as a front-end script language, which basically has no authority for a client (such as a PC) system when a browser (BS architecture) runs, such as operations of acquiring a system directory, creating a directory, setting a directory authority, reading a file, modifying a file, connecting a database and the like, the authority browser system does not have, but the authorities nodejs all have, and an application program installation package obtained based on electron packaging is stronger than the application of a B/S architecture, namely an application program developed by nodejs.
In the embodiment of the present specification, the application installation package supports MAC, Windows, and Linux platforms. That is, the application installation package obtained by packaging the electron in the embodiment of the present specification can support a full platform (MAC, Windows, Linux), and has a wide applicability. In which, MAC may be understood as a personal consumer computer developed from "Macintosh", Windows may be understood as a set of operating systems developed by microsoft, and Linux may be understood as a clone system developed based on the UNIX operating system.
And 106, sending the installation path of the application program installation package to the application program to be transformed, so that the application program to be transformed calls the new architecture application program to complete the corresponding function through the installation path.
In a specific implementation process, after the new-architecture application program is obtained, the installation path of the application program installation package corresponding to the new-architecture application program can be sent to the application program to be transformed, namely the application program of the old architecture, the application program to be transformed can call the corresponding new-architecture application program through the installation path, the new-architecture application program is used for completing the corresponding function, and the non-inductive transformation of the front-end architecture of the application program is realized.
In addition, in the embodiment of the present specification, the functional module of the application program may be divided into multiple times for performing the architecture transformation, and all the functional modules of the application program do not need to be transformed at one time, and the functional page code to be transformed is packaged with the browser kernel at each time, so that the architecture transformation of the functional module corresponding to the functional page may be performed. After each function page code and the browser kernel are packaged, an installation program package can be obtained, the installation program package can be an executable program which is a sub-application program of the application program with the new framework, and the application program with the old framework can call the corresponding executable program based on the installation path corresponding to each sub-application program to complete the corresponding function.
Of course, the user may also directly and independently use the new framework application program, the new framework application program may also correspond to a fast entry icon, and the user may enter the new framework application program by clicking or the like and then use the corresponding function based on the requirement.
In some embodiments of the present description, the method further comprises:
and after all the functional modules of the application program to be converted complete the framework conversion, unloading the application program to be converted in the client.
In a specific implementation process, after all the functional modules of the application program to be transformed complete the framework transformation, the application program to be transformed, namely the application program of the old framework, can be uninstalled in the client, namely after the transformation of all the frameworks of the application program is completed, the application program under the old framework can be deleted, and the memory space is saved. Of course, if the user wants to have the applications with the two architectures, the applications can be retained, so that the client can simultaneously have the applications with the two architectures, and the user can use the applications according to the needs of the user.
In some embodiments of the present description, the method further comprises:
and after the new architecture application program is installed and obtained, deleting the functional module corresponding to the functional page code in the application program to be converted.
In a specific implementation process, in the embodiment of the present specification, framework transformation of one functional module by one functional module may be performed on an application to be transformed, and after the framework transformation is completed by one functional module, the functional module in an old framework application may be deleted, so that on the premise of ensuring that the functions of the application can be used normally, the memory space is saved. Of course, if the user wishes to have applications of both architectures, it may be retained.
In the framework transformation method for the client application program provided in the embodiment of the present specification, a specified version of a kernel and a WEB page code are first packaged into a client installer by an electron, then the application program is called by a Delphi project, i.e., an old-framework application program (C/S-framework application program), and a function based on a new front-and-back-end separation framework is written in the application program packaged based on the electron, i.e., the application program of a new framework is obtained. The user can call the application program of the new architecture through the application program of the old architecture, and can also independently use the new application program to realize the non-inductive transformation of the front-end architecture of the PC-end software. And moreover, the browser kernel is of a specified version, so that the problem of browser incompatibility is avoided.
Fig. 2 is a schematic diagram illustrating a schematic flowchart of architecture transformation of a client application in a scenario example of this specification, and a process of an architecture transformation method of the client application in this specification embodiment is specifically described below with reference to fig. 2, as shown in fig. 2, first, WEB page technology type selection is performed, as described in the foregoing embodiment, this specification embodiment may select H5+ CSS3+ Vue + elementUI to quickly implement our front-end functions, where Vue is one of front-end 3 large frames, and elementUI is a UI frame, and has many basic components, which can accelerate our development efficiency. And selecting a proper kernel based on the selected WEB page technology selection, wherein the latest stable kernel is recommended to be selected. Selected kernels and web pages are packed into an installation package based on the electron, which can support a full platform, noting that the installed installation path suggests a fixed death, which is a path that needs to be passed to applications of the old architecture. And calling the corresponding executable file under the path by the old Delphi application, namely the application program of the old framework through the transmitted installation path to realize calling.
The embodiment of the specification can realize seamless switching of the new and old architecture client application programs, and the old application programs can be directly unloaded after all modules are reconstructed. The kernel of the new client application program can be manually specified during packaging, so that the problem of browser compatibility is solved, and the consistency of performance is ensured. The electronic-based packaged client is more powerful than the common browser-based BS application in system permission through nodejs. The comprehensive support of new technologies such as H5 and all mainstream frameworks including but not limited to Vue, React enables lower development efficiency and development cost. CS applications in other languages and architectures can also use the idea of the present invention in the architecture transformation process, and have universality.
In the present specification, each embodiment of the method is described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The relevant points can be obtained by referring to the partial description of the method embodiment.
Based on the above method for architecture transformation of the client application program, one or more embodiments of the present specification further provide an apparatus for architecture transformation of the client application program. The apparatus may include a system (including a distributed system), software (applications), modules, components, servers, clients, etc. that employ the methods of embodiments of the present description in conjunction with any necessary apparatus to implement the hardware. Based on the same innovative conception, the embodiments of the present specification provide an apparatus as in the following embodiments. Since the implementation scheme of the apparatus for solving the problem is similar to that of the method, the specific apparatus implementation in the embodiment of the present specification may refer to the implementation of the foregoing method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the systems, devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
Fig. 3 is a schematic structural diagram of an architecture transformation apparatus for a client application according to an embodiment of the present disclosure, and as shown in fig. 3, the architecture transformation apparatus for a client application provided in some embodiments of the present disclosure may specifically include:
a function page selection module 31, configured to select a browser kernel of a specified version and a function page code of an application program to be transformed;
a new architecture packaging module 32, configured to package, by using an electron, the browser kernel of the specified version and the function page code to be converted into an application installation package, and install the application installation package in the client, so as to obtain a new architecture application;
the new architecture application using module 33 is configured to send the installation path of the application installation package to the application to be transformed, so that the application to be transformed calls the new architecture application to complete a corresponding function through the installation path.
In the framework transformation device for the client application program provided in the embodiment of the present specification, a specified version of a kernel and a WEB page code are first packaged into a client installer through an electron, then the application program is called through a Delphi project, and a function based on a new front-and-back-end separation framework is written in a client packaged based on an electron. The user can call the application program of the new architecture through the application program of the old architecture, and can also independently use the new application program to realize the non-inductive transformation of the front-end architecture of the PC-end software. And moreover, the browser kernel is of a specified version, so that the problem of browser incompatibility is avoided.
In some embodiments of the present description, the apparatus further includes an application deletion module configured to:
and after all the functional modules of the application program to be converted complete the framework conversion, unloading the application program to be converted in the client.
After the embodiment of the present specification completes the transformation of all architectures of an application program, the application program under the old architecture can be deleted, and the memory space is saved.
In some embodiments of this specification, the function page selection module is specifically configured to:
and selecting the latest version of the chromium core as the specified version of the browser core.
The embodiment of the specification packs the latest stable version of the chroma kernel to the client, so that the version of the browser kernel used by the client does not need to be determined one by one, and the problem that the functional page of the application program cannot be normally opened due to incompatibility of the browser kernel versions can be quickly solved.
It should be noted that the above-mentioned apparatuses may also include other embodiments according to the description of the corresponding method embodiments. The specific implementation manner may refer to the description of the above corresponding method embodiment, and is not described in detail herein.
An embodiment of the present specification further provides an architecture transformation device for a client application, where the device includes at least one processor and a memory for storing processor-executable instructions, and when the instructions are executed by the processor, the architecture transformation device implements an architecture transformation method for the client application in the foregoing embodiments, such as:
selecting a browser kernel with a specified version and a functional page code of an application program to be converted;
packaging the browser kernel of the specified version and the function page code to be converted into an application program installation package by using an electron, and installing the application program installation package in a client to obtain a new architecture application program;
and sending the installation path of the application program installation package to the application program to be transformed, so that the application program to be transformed calls the new architecture application program to complete the corresponding function through the installation path.
It should be noted that the above description of the apparatus according to the method embodiment may also include other embodiments. The specific implementation manner may refer to the description of the related method embodiment, and is not described in detail herein.
The method or apparatus of the foregoing embodiments provided in this specification can implement service logic through a computer program and record the service logic on a storage medium, and the storage medium can be read and executed by a computer, so as to implement the effects of the solutions described in the embodiments of this specification.
The method embodiments provided by the embodiments of the present specification can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking the example of the application running on the server, fig. 4 is a hardware configuration block diagram of the architecture transformation server of the client application in one embodiment of the present specification, and the computer terminal may be the architecture transformation server of the client application or the architecture transformation processing device of the client application in the above embodiment. The server 10 as shown in fig. 4 may include one or more (only one shown) processors 100 (the processors 100 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a non-volatile memory 200 for storing data, and a transmission module 300 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration and is not intended to limit the structure of the electronic device. For example, the server 10 may also include more or fewer components than shown in FIG. 4, and may also include other processing hardware, such as a database or multi-level cache, a GPU, or have a different configuration than shown in FIG. 4, for example.
The non-volatile memory 200 may be configured to store software programs and modules of application software, such as program instructions/modules corresponding to the taxi taking data processing method in the embodiment of the present specification, and the processor 100 executes various functional applications and resource data updates by running the software programs and modules stored in the non-volatile memory 200. Non-volatile memory 200 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the non-volatile memory 200 may further include memory located remotely from the processor 100, which may be connected to a computer terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, office-to-network, mobile communication networks, and combinations thereof.
The transmission module 300 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission module 300 includes a Network adapter (NIC) that can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission module 300 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The architecture transformation method or apparatus for the client application provided in the embodiments of the present specification may be implemented in a computer by a processor executing corresponding program instructions, for example, implemented in a PC using a c + + language of a windows operating system, implemented in a linux system, or implemented in an intelligent terminal using android, iOS system programming languages, implemented in processing logic based on a quantum computer, or the like.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the hardware + program class embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to only the partial description of the method embodiment.
Although one or more embodiments of the present description provide method operational steps as in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive approaches. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When the device or the end product in practice executes, it can execute sequentially or in parallel according to the method shown in the embodiment or the figures (for example, in the environment of parallel processors or multi-thread processing, even in the environment of distributed resource data update). The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises an element is not excluded. The terms first, second, etc. are used to denote names, but not any particular order.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, when implementing one or more of the present description, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units, etc. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, and the relevant points can be referred to only part of the description of the method embodiments. In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The above description is merely exemplary of one or more embodiments of the present disclosure and is not intended to limit the scope of one or more embodiments of the present disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims.

Claims (10)

1. A method for architecture transformation of a client application, the method comprising:
selecting a browser kernel with a specified version and a functional page code of an application program to be converted;
packaging the browser kernel of the specified version and the function page code to be converted into an application program installation package by using an electron, and installing the application program installation package in a client to obtain a new architecture application program;
and sending the installation path of the application program installation package to the application program to be transformed, so that the application program to be transformed calls the new architecture application program to complete the corresponding function through the installation path.
2. The method of claim 1, wherein the method further comprises:
and after all the functional modules of the application program to be converted complete the framework conversion, unloading the application program to be converted in the client.
3. The method of claim 1, wherein the method further comprises:
and after the new architecture application program is installed and obtained, deleting the functional module corresponding to the functional page code in the application program to be converted.
4. The method of claim 1, wherein said selecting a specified version of a browser kernel comprises:
and selecting the latest version of the chromium core as the specified version of the browser core.
5. The method of claim 1, wherein the selecting the function page code of the application to be transformed comprises: and developing the function page of the application to be transformed by using H5+ CSS3+ Vue + element UI technology to obtain the function page code.
6. The method of claim 1, wherein the application installation package supports MAC, Windows, Linux platforms.
7. An apparatus for transforming an architecture of a client application, the apparatus comprising:
the function page selection module is used for selecting the browser kernel with the specified version and the function page code of the application program to be converted;
the new architecture packaging module is used for packaging the browser kernel with the specified version and the function page code to be converted into an application program installation package by using an electron, and installing the application program installation package in a client to obtain a new architecture application program;
and the new architecture application using module is used for sending the installation path of the application program installation package to the application program to be transformed, so that the application program to be transformed calls the new architecture application program to complete the corresponding function through the installation path.
8. The apparatus of claim 7, wherein the apparatus further comprises an application deletion module to:
and after all the functional modules of the application program to be converted complete the framework conversion, unloading the application program to be converted in the client.
9. The apparatus of claim 7, wherein the function page selection module is specifically configured to:
and selecting the latest version of the chromium core as the specified version of the browser core.
10. An architecture transformation device for a client application, comprising: at least one processor and a memory for storing processor-executable instructions which, when executed by the processor, implement steps comprising the method of any of claims 1-6.
CN202110453281.6A 2021-04-26 2021-04-26 Framework transformation method, device and equipment for client application program Active CN113515292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110453281.6A CN113515292B (en) 2021-04-26 2021-04-26 Framework transformation method, device and equipment for client application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110453281.6A CN113515292B (en) 2021-04-26 2021-04-26 Framework transformation method, device and equipment for client application program

Publications (2)

Publication Number Publication Date
CN113515292A true CN113515292A (en) 2021-10-19
CN113515292B CN113515292B (en) 2024-04-05

Family

ID=78063511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110453281.6A Active CN113515292B (en) 2021-04-26 2021-04-26 Framework transformation method, device and equipment for client application program

Country Status (1)

Country Link
CN (1) CN113515292B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838556A (en) * 2012-11-23 2014-06-04 苏州精易会信息技术有限公司 Method for achieving design of client program
CN107122187A (en) * 2017-04-26 2017-09-01 四川中电启明星信息技术有限公司 A kind of operation system OS accesses design method
CN107256161A (en) * 2017-06-13 2017-10-17 广发证券股份有限公司 Client side upgrading method based on electron technologies
CN110704136A (en) * 2019-09-27 2020-01-17 北京百度网讯科技有限公司 Rendering method of small program assembly, client, electronic device and storage medium
CN111831368A (en) * 2020-05-25 2020-10-27 武汉烽火众智数字技术有限责任公司 Method, system and storage medium for interaction between browser application and desktop application
CN112118285A (en) * 2020-07-31 2020-12-22 山东鲁能软件技术有限公司 Data transmission method and system suitable for client full-version browser

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838556A (en) * 2012-11-23 2014-06-04 苏州精易会信息技术有限公司 Method for achieving design of client program
CN107122187A (en) * 2017-04-26 2017-09-01 四川中电启明星信息技术有限公司 A kind of operation system OS accesses design method
CN107256161A (en) * 2017-06-13 2017-10-17 广发证券股份有限公司 Client side upgrading method based on electron technologies
CN110704136A (en) * 2019-09-27 2020-01-17 北京百度网讯科技有限公司 Rendering method of small program assembly, client, electronic device and storage medium
CN111831368A (en) * 2020-05-25 2020-10-27 武汉烽火众智数字技术有限责任公司 Method, system and storage medium for interaction between browser application and desktop application
CN112118285A (en) * 2020-07-31 2020-12-22 山东鲁能软件技术有限公司 Data transmission method and system suitable for client full-version browser

Also Published As

Publication number Publication date
CN113515292B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
US7814404B2 (en) System and method for applying workflow of generic services to component based applications for devices
US7509649B2 (en) System and method for conversion of generic services' applications into component based applications for devices
CN112685035B (en) Project development method and device, computer readable storage medium and electronic equipment
CN109739523B (en) Application program packaging method and device, storage medium and terminal
CN104731589A (en) Automatic generation method and device of user interface (UI)
CN102955694A (en) Client implementation method based on WebKit browser and client
CN109240697B (en) Call processing method and device and storage medium
CN104049991A (en) Method and system for converting network applications into mobile applications
US9158520B2 (en) Development of platform independent applications
CN110895471A (en) Installation package generation method, device, medium and electronic equipment
CN108733370B (en) Stylized display method, device, terminal and storage medium of native APP
CN110795139A (en) Client batch packaging method and device, computer equipment and storage medium
CN107193565B (en) Method for developing native APP (application) across mobile terminals
CN110109684B (en) Block chain link point management proxy service installation method, electronic device and storage medium
CN115686606A (en) Method, device, system and medium for displaying item dependency tree
US20220300262A1 (en) Method for constructing, running and implementing cross-platform application, terminal, server and system
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CA2538561A1 (en) System and method for conversion of web services applications into component based applications for devices
CN112214250A (en) Application program assembly loading method and device
CN105404522A (en) Method for building intelligent terminal application program, device for building intelligent terminal application program and intelligent terminal
CN111683005B (en) Internet of things intelligent gateway equipment and construction method thereof
CN113515292A (en) Framework transformation method, device and equipment for client application program
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device
CN113779122B (en) Method and device for exporting data
CN115729604A (en) Micro application integration method, system, electronic device 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