通过yapi生成js和ts代码

Latest Version

Version
1.0.0
Update
November 10, 2021
Size
33.2KiB
Developer
Category
Users
122
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
中文 (简体)
See more
Permissions
See more

yapi-ts Extension

自动生成前端的请求层代码, 有类型提示无需重复手写。
使用方式:
1. 安装yapi-ts chrome插件
2. npx yapi-ts --s src/api
3. 打开yapi服务找到需要的接口, 点击生成代码
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "yapi-ts", "version": "1.0.0", "description": "\u901a\u8fc7yapi\u751f\u6210js\u548cts\u4ee3\u7801","icons": {"16": "yapi.png","48": "yapi.png","128": "yapi.png"}, "action": {"default_icon": "yapi.png","default_popup": "popup/popup.html"},"content_scripts": [{"matches": ["http://*/*", "https://*/*"],"js": ["./content_scripts/content.js"]}],"permissions":[], "host_permissions": [ "http://localhost/*" ]}
Read more

How to download and manually install yapi-ts extension for Chrome

Looking for a way to install yapi-ts extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install yapi-ts extensions manually, this article outlines two simple methods to effortlessly install yapi-ts extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download yapi-ts extension and manually install through Drag &Drop

If you ever need to manually install a yapi-ts extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the yapi-ts Extension by clicking the "Download CRX" button on the website.

Look for the yapi-ts extension you wish to install. Go to the website and download the yapi-ts extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for yapi-ts extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the yapi-ts extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download yapi-ts extension for Chrome and install in Developer Mode

This is another method to install yapi-ts extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the yapi-ts extension file

Select and download the yapi-ts extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the yapi-ts extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your yapi-ts extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the yapi-ts extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install yapi-ts extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

YapiHelper Extension · Developer Tools 122 1 ★ 318KiB

icon

稀土掘金 Extension · Productivity 122 339 ★ 4.66MiB

icon

Console Importer Extension · Developer Tools 122 20 ★ 9.55KiB

icon

TS Helper Extension · Developer Tools 122 1 ★ 41.89KiB

icon

Octotree - GitHub code tree Extension · Developer Tools 122 1139 ★ 3.54MiB

icon

Ajax Modifier Extension · Developer Tools 122 48 ★ 2.08MiB

icon

YApi-X Extension · Developer Tools 122 13 ★ 13.74KiB

icon

PostWoman Http Test Extension · Developer Tools 122 46 ★ 834KiB

icon

Apifox Browser Extension Extension · Developer Tools 122 9 ★ 28.39KiB

icon

XSwitch Extension · Developer Tools 122 18 ★ 1.6MiB

icon

Api2Code Extension · Developer Tools 122 5 ★ 3.66MiB

icon

Formily DevTools Extension · Developer Tools 122 4 ★ 2.43MiB

icon

Vue.js devtools (beta) Extension · Developer Tools 122 149 ★ 2.54MiB

icon

FeHelper(前端助手) Extension · Developer Tools 122 321 ★ 2.72MiB

icon

Relingo - Master Words | Bilingual Subtitles | Immersive Translate | Free Extension · Productivity 122 802 ★ 5.36MiB

icon

YAPI MOCK Plugin Extension · Developer Tools 122 0 ★ 148KiB

icon

Axure RP Extension for Chrome Extension · Developer Tools 122 758 ★ 14.44KiB

icon

草料二维码-快速生码和解码工具 Extension · Accessibility 122 73 ★ 289KiB

icon

JSON-handle Extension · Developer Tools 122 450 ★ 193KiB

icon

Omni - Bookmark, History, & Tab Manager Extension · Productivity 122 63 ★ 1.91MiB

icon

MobX Developer Tools Extension · Developer Tools 122 51 ★ 682KiB

icon

二维码(QR码)生成器(QR Code Generator) Extension · Productivity 122 124 ★ 94.16KiB

icon

Element Theme Roller Extension · Developer Tools 122 12 ★ 1.98MiB

icon

Whistle plugin By Nick Extension · Developer Tools 122 13 ★ 122KiB

User reviews

icon

苏杰 (ID: 000000bbcf996605) Voted 5 ★ - Updated 09/16/2022 按配置无法使用,不知道哪个步骤出问题?