Skip to content

Commit

Permalink
perf
Browse files Browse the repository at this point in the history
  • Loading branch information
kings1990 committed Dec 12, 2023
1 parent c25d11c commit bb06e78
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 114 deletions.
7 changes: 3 additions & 4 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {getDirname, path} from "@vuepress/utils";
import {defineUserConfig} from "vuepress";
import {docsearchPlugin} from "@vuepress/plugin-docsearch";
import {sitemapPlugin} from "vuepress-plugin-sitemap2";
import theme from "./theme.js";

const __dirname = getDirname(import.meta.url);
Expand All @@ -18,9 +17,9 @@ export default defineUserConfig({
href: "/img/fastRequest.svg",
},
],
["script", { src: "//at.alicdn.com/t/c/font_2601581_144d8yxi3ht.js" }],
["script", { src: "/js/baidu.js" }],
["script", { src: "/js/gtag.js" }],
["script", { src: "//at.alicdn.com/t/c/font_2601581_144d8yxi3ht.js","async":true }],
["script", { src: "/js/baidu.js" ,"async":true}],
["script", { src: "/js/gtag.js" ,"async":true}],
[
"script",
{},
Expand Down
8 changes: 4 additions & 4 deletions docs/.vuepress/public/html/showside.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
margin-bottom: 20px;
background-color: #ffffff;
position: relative;
border-radius: 8px;
border-radius: 3px;
}

.image-gallery__item-title {
Expand All @@ -51,7 +51,7 @@
bottom: 0;
left: 0;
z-index: 1;
border-radius: 8px;
border-radius: 3px;
}

.image-gallery__item-progress__foreground {
Expand All @@ -62,7 +62,7 @@
bottom: 0;
left: 0;
transition: width 10s linear;
border-radius: 8px;
border-radius: 3px;
}

#more {
Expand All @@ -72,7 +72,7 @@
margin-bottom: 20px;
background-color: #ffffff;
position: relative;
border-radius: 8px;
border-radius: 3px;
}
</style>
<body style="margin: 0; background: #2a2a2a">
Expand Down
4 changes: 2 additions & 2 deletions docs/.vuepress/public/img/bg2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ h2 {
}
}

.vp-description {
#main-description {
max-width: 100%;
font-size: 16px;
font-size: 20px;
color: #fff;
font-family: alimamaYuanMainDesc, sans-serif;
font-variation-settings:
Expand Down
51 changes: 3 additions & 48 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ icon: restfulFastRequest
home: true
title: Api Buddy
heroFullScreen: true
heroImageDark: /img/logoLight1.gif
#heroImageDark: /img/logoLight1.gif
heroText: Fast Request
tagline: 为简化调试API而生
actions:
Expand All @@ -25,7 +25,7 @@ features:
- title: 功能丰富
icon: features
details: 一键生成 URL 和参数、脚本、API 导出到 Postman、SearchEveryWhere 搜索、发送 API 请求、下载文件、存储历史请求,各种功能一应俱全
link: /guide/features
link: /guide/features/

- title: 轻量、界面友好
icon: code-box-fill
Expand Down Expand Up @@ -54,9 +54,6 @@ head:

[![Jetbrains Plugins][plugin-img]][plugin] ![Version](https://img.shields.io/jetbrains/plugin/v/16988?logo=IntelliJ%20IDEA) ![Downloads](https://img.shields.io/jetbrains/plugin/d/16988?color=FE2857) ![JetBrains Plugins](https://img.shields.io/jetbrains/plugin/r/rating/16988)

[![](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg =80x80)](https://www.jetbrains.com)
[![](https://resources.jetbrains.com/storage/products/company/brand/logos/IntelliJ_IDEA_icon.svg =80x80)](https://www.jetbrains.com/idea)

## 🌈 赞助商

1. [**赞助可以为您带来什么(必看)**](./guide/sponsor.md#优势)
Expand All @@ -77,6 +74,7 @@ head:
## 优势

<iframe
title="优势"
:src="$withBase('/html/showside.html')"
width="100%"
height="550px"
Expand All @@ -100,49 +98,6 @@ head:

设计师森阳`[email protected]` logo设计

::: chart API 工具对比

```json
{
"type": "radar",
"data": {
"labels": ["易用性", "Swagger", "Java", "Kotlin", "压测", "集成"],
"datasets": [
{
"label": "Fast Request",
"data": [95, 90, 90, 70, 40, 60],
"fill": true,
"backgroundColor": "rgba(0, 250, 154, 0.2)",
"borderColor": "rgb(0, 250, 154)",
"pointBackgroundColor": "rgb(0, 250, 154)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(0, 250, 154)"
},
{
"label": "Postman",
"data": [80, 80, 80, 50, 90, 100],
"fill": true,
"backgroundColor": "rgba(54, 162, 235, 0.2)",
"borderColor": "rgb(54, 162, 235)",
"pointBackgroundColor": "rgb(54, 162, 235)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(54, 162, 235)"
}
]
},
"options": {
"elements": {
"line": {
"borderWidth": 3
}
}
}
}
```

:::

<!-- @include: @src/contact.snippet.md -->

Expand Down
56 changes: 2 additions & 54 deletions docs/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ features:
- title: Rich features
icon: features
details: Generate url and parameters、Script support、API export to postman、SearchEveryWhere support、send/download request、Store request...
link: /en/guide/features
link: /en/guide/features/

- title: Lightweight、User-friendly interface
icon: code-box-fill
Expand All @@ -47,14 +47,12 @@ head:

[![Jetbrains Plugins][plugin-img]][plugin] ![Version](https://img.shields.io/jetbrains/plugin/v/16988?logo=IntelliJ%20IDEA)

[![](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg =80x80)](https://www.jetbrains.com)
[![](https://resources.jetbrains.com/storage/products/company/brand/logos/IntelliJ_IDEA_icon.svg =80x80)](https://www.jetbrains.com/idea)

<div class="home-advantage">

## Advantage

<iframe
title="Advantage"
:src="$withBase('/html/showside_en.html')"
width="100%"
height="520px"
Expand All @@ -72,56 +70,6 @@ topmargin="0"

<!-- @include: @src/en/compare.snippet.md -->

::: chart API tool comparison

```json
{
"type": "radar",
"data": {
"labels": [
"Usability",
"Swagger",
"Java",
"Kotlin",
"Pressure test",
"Integrations"
],
"datasets": [
{
"label": "Fast Request",
"data": [95, 90, 90, 70, 40, 60],
"fill": true,
"backgroundColor": "rgba(0, 250, 154, 0.2)",
"borderColor": "rgb(0, 250, 154)",
"pointBackgroundColor": "rgb(0, 250, 154)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(0, 250, 154)"
},
{
"label": "Postman",
"data": [80, 80, 80, 50, 90, 100],
"fill": true,
"backgroundColor": "rgba(54, 162, 235, 0.2)",
"borderColor": "rgb(54, 162, 235)",
"pointBackgroundColor": "rgb(54, 162, 235)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(54, 162, 235)"
}
]
},
"options": {
"elements": {
"line": {
"borderWidth": 3
}
}
}
}
```

:::

<!-- @include: @src/en/contact.snippet.md -->

Expand Down
51 changes: 51 additions & 0 deletions docs/en/guide/introduce.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,57 @@ JAX-RS
Kotlin Spring framework
```

::: chart API tool comparison

```json
{
"type": "radar",
"data": {
"labels": [
"Usability",
"Swagger",
"Java",
"Kotlin",
"Pressure test",
"Integrations"
],
"datasets": [
{
"label": "Fast Request",
"data": [95, 90, 90, 70, 40, 60],
"fill": true,
"backgroundColor": "rgba(0, 250, 154, 0.2)",
"borderColor": "rgb(0, 250, 154)",
"pointBackgroundColor": "rgb(0, 250, 154)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(0, 250, 154)"
},
{
"label": "Postman",
"data": [80, 80, 80, 50, 90, 100],
"fill": true,
"backgroundColor": "rgba(54, 162, 235, 0.2)",
"borderColor": "rgb(54, 162, 235)",
"pointBackgroundColor": "rgb(54, 162, 235)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(54, 162, 235)"
}
]
},
"options": {
"elements": {
"line": {
"borderWidth": 3
}
}
}
}
```

:::

## Recommendation

If a new version comes out, please update to the latest version as soon as possible(Plugins will always add new features
Expand Down
44 changes: 44 additions & 0 deletions docs/guide/introduce.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,50 @@ JAX-RS
Kotlin Spring体系框架
```

::: chart API 工具对比

```json
{
"type": "radar",
"data": {
"labels": ["易用性", "Swagger", "Java", "Kotlin", "压测", "集成"],
"datasets": [
{
"label": "Fast Request",
"data": [95, 90, 90, 70, 40, 60],
"fill": true,
"backgroundColor": "rgba(0, 250, 154, 0.2)",
"borderColor": "rgb(0, 250, 154)",
"pointBackgroundColor": "rgb(0, 250, 154)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(0, 250, 154)"
},
{
"label": "Postman",
"data": [80, 80, 80, 50, 90, 100],
"fill": true,
"backgroundColor": "rgba(54, 162, 235, 0.2)",
"borderColor": "rgb(54, 162, 235)",
"pointBackgroundColor": "rgb(54, 162, 235)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(54, 162, 235)"
}
]
},
"options": {
"elements": {
"line": {
"borderWidth": 3
}
}
}
}
```

:::

## 建议

如果有新版本出来,请尽快更新到最新的版本。(插件往往在升级过程中会加入新的功能或者修复你未发现的 bug)
Expand Down

0 comments on commit bb06e78

Please sign in to comment.