Year: 2023
-
Post Views: 32 1. Search in Githab: mocha, select the first one: mochajs/mocha, a simple, flexible and interesting JavaScript test framework for node.js and browsers. as shown in Figure 1 2. Click the link documentation to enterhttps://mochajs.org/ 3. Reference installation:https://mochajs.org/#installation, as a project development dependency, use npm to install, enter the project directory: npm install –save-dev mocha. as shown in…
-
Post Views: 18 1. Reference: Install Shopify CLI 3.0 (based on Node.js) in Windows 10 Professional Edition. After installation, you will be prompted that the new version of Shopify CLI is available! Your version is 2.15.6 and the latest version is 2.34.0. To upgrade, follow the instructions of the package manager you are using:https://shopify.dev/tools/cli/troubleshooting#upgrade-shopify-cli 2. To upgrade Shopify CLI 3.x…
-
Post Views: 19 1. Reference:https://shopify.dev/themes/tools/cli/install#requirements, the requirements in Windows are as follows 2. The version of Node.js is: V16.13.1, which is higher than 14.17.0. meet the requirements. 3. Reference:https://www.shuijingwanwq.com/2022/05/10/6388/. Steps 1 and 2. The version of Ruby+DevKit is: 3.1.x (x64), which is higher than Ruby+DevKit 3.0. meet the requirements. 4. The version of Bundler is: 2.3.24, which is higher than…
-
Post Views: 54 1. Download the Tianfu General Office APP and find that you can’t find it in the application treasure. Finally, I found it in the software store that comes with OnePlus. as shown in Figure 1 2. Authentication and login After the Tianfu General Office app, click My to enter all the electronic licenses. as shown in Figure…
-
Post Views: 17 1. Reference: In Refactoring: Improved Design of Existing Code (2nd Edition), build the test system – the writing of the sample code to be tested:https://www.shuijingwanwq.com/2023/01/28/7368/. The problem now is that multiple classes exist in the same file. Decided to split, each class forms a separate file. 2. Create a new class file /modules/producer.js, and migrate the class…
-
Post Views: 17 1. View the directory structure in GitLab, there are directories: ThemeStoreDB, TheMeStoreDB, this is because the directory ThemeStoreDB is renamed to ThemeStoreDb, and the old-based The code of ThemeStoreDB is caused by the code. as shown in Figure 1 2. On the disk of the local Windows 10, only the directory ThemeStoreDB exists. After the code is…
-
Post Views: 13 1. Now there is a string with the following contents 2. It is expected to batch replace the default in the string to basic 3. Refer to the str::replaceArray function to replace the given value in the string using the array order 4. Since there is only one element in the array $replace, only one default is…
-
Post Views: 17 1. A code to be tested. This code comes from a simple application that supports users to view and adjust production plans. Its (slightly rough) interface looks like the picture below. as shown in Figure 1 2. The final implementation of the example code is as follows, the productionplan.html file code of the entrance is as follows…
-
Post Views: 17 1. In Laravel 6, in the terminal, you can confirm that the queue has been executed. as shown in Figure 1 2. However, in Laravel Telescope, the status of the queuing job still shows that it is not finished. as shown in Figure 2 3. It is suspected that after updating Telescope, there is no reconfiguration and…