Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Rearrange the sections in the print label of Giao Hàng Tiết Kiệm

License

Notifications You must be signed in to change notification settings

namhong1412/print-label-a7-size-ghtk

Repository files navigation

Print Label A7 Size Giao Hang Tiet Kiem

Rearrange the sections in the print label of Giao Hàng Tiết Kiệm.

Table of Contents

Features

Rearrange the sections in the print label from free size to A7 size.

Before

Before

After

After

You can cusomize the logo on the print label

You just add param logo=link_logo in the params on the URL

http://localhost:3000/?logo=https://i.imgur.com/9QX3X5X.png&hash=ey....

Cusomize Logo

Installation 🔥

  • Step 1: Clone the repository:

    git clone https://github.com/namhong1412/print-label-a7-size-ghtk
  • Step 2: Navigate to the project directory

    cd print-label-a7-size-ghtk
  • Step 3: Install the project dependencies using npm

    npm install

Usage 🐕

To start the project, use the following command:

npm start

This will run the project and you should see the output in the console or a web server running at http://localhost:3000 (or another specified port).

Usage on Giao Hàng Tiết Kiệm

Notes: Before using this feature, You must log in to Giao Hàng Tiết Kiệm.

  • Step 1: Login to Giao Hàng Tiết Kiệm

  • Step 2: Install Requestly extension on Chrome. Using file requestly_rules.json to import on Requestly.

    [
      {
        "createdBy": "BbW6T55UJMSZlsriKYMv91KrKJ02",
        "creationDate": 1674877521855,
        "currentOwner": "BbW6T55UJMSZlsriKYMv91KrKJ02",
        "description": "",
        "groupId": "",
        "id": "Redirect_8fpja",
        "isSample": false,
        "lastModifiedBy": "BbW6T55UJMSZlsriKYMv91KrKJ02",
        "modificationDate": 1680711282934,
        "name": "GHTK App Redirect",
        "objectType": "rule",
        "pairs": [
          {
            "destination": "http://localhost:3000/custom_print.js",
            "id": "6ospn",
            "source": {
              "key": "Url",
              "operator": "Matches",
              "value": "/https://khachhang.giaohangtietkiem.vn/web/js/app.(.*).js$/i"
            }
          }
        ],
        "preserveCookie": false,
        "ruleType": "Redirect",
        "status": "Active"
      }
    ]
    
  • Step 3: Open Giao Hàng Tiết Kiệm and print label.

Contributing 🔨

While this product has imperfections, I eagerly anticipate contributions from other skilled individuals in the developer community.

We welcome pull requests. However, if you plan on making significant changes, please initiate an issue to discuss your proposed modifications first.

It is essential to ensure that tests are updated as needed.

Thanks for using our services

License

MIT License

About

Rearrange the sections in the print label of Giao Hàng Tiết Kiệm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published