# park-fe-editors

> **`master` 分支是带有后端接口请求的分支**

Latest version **1.0.1** (published 2023-08-21) · 0 weekly downloads

## Install

```sh
npm install park-fe-editors
pnpm add park-fe-editors
yarn add park-fe-editors
bun add park-fe-editors
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-08-21 |
| First published | 2023-08-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0 |
| Dependencies | 34 |
| Unpacked size | 143.7 MB |
| Known vulnerabilities | 0 (+26 in 2 direct dependencies) |
| Install scripts | yes |
| Maintainers | yaokun0318 |

## Links

- npm: https://www.npmjs.com/package/park-fe-editors
- npm.io page: https://npm.io/package/park-fe-editors

## Dependencies (34)

- [vue](https://npm.io/package/vue.md) ^3.2.31
- [gsap](https://npm.io/package/gsap.md) ^3.11.3
- [mitt](https://npm.io/package/mitt.md) ^3.0.0
- [axios](https://npm.io/package/axios.md) ^0.27.2
- [color](https://npm.io/package/color.md) ^4.2.3
- [pinia](https://npm.io/package/pinia.md) ^2.0.13
- [three](https://npm.io/package/three.md) ^0.145.0
- [vue-demi](https://npm.io/package/vue-demi.md) ^0.13.1
- [vue-i18n](https://npm.io/package/vue-i18n.md) ^9.2.2
- [crypto-js](https://npm.io/package/crypto-js.md) ^4.1.1
- [keymaster](https://npm.io/package/keymaster.md) ^1.6.2
- [51superapi](https://npm.io/package/51superapi.md) ^6.7.0
- [screenfull](https://npm.io/package/screenfull.md) ^6.0.1
- [vue-router](https://npm.io/package/vue-router.md) 4.0.12
- [animate.css](https://npm.io/package/animate.css.md) ^4.1.1
- [dom-helpers](https://npm.io/package/dom-helpers.md) ^5.2.1
- [html2canvas](https://npm.io/package/html2canvas.md) ^1.4.1
- [@types/color](https://npm.io/package/@types/color.md) ^3.0.3
- [echarts-stat](https://npm.io/package/echarts-stat.md) ^1.2.0
- [highlight.js](https://npm.io/package/highlight.js.md) ^11.5.0
- [vuedraggable](https://npm.io/package/vuedraggable.md) ^4.1.0
- [@types/lodash](https://npm.io/package/@types/lodash.md) ^4.14.184
- [monaco-editor](https://npm.io/package/monaco-editor.md) ^0.33.0
- [vue3-lazyload](https://npm.io/package/vue3-lazyload.md) ^0.2.5-beta
- [coordtransform](https://npm.io/package/coordtransform.md) ^2.1.2
- [@types/crypto-js](https://npm.io/package/@types/crypto-js.md) ^4.1.1
- [@types/keymaster](https://npm.io/package/@types/keymaster.md) ^1.6.30
- [echarts-wordcloud](https://npm.io/package/echarts-wordcloud.md) ^2.0.0
- [vue3-sketch-ruler](https://npm.io/package/vue3-sketch-ruler.md) ^1.3.3
- [echarts-liquidfill](https://npm.io/package/echarts-liquidfill.md) ^3.1.0
- [vue3-seamless-scroll](https://npm.io/package/vue3-seamless-scroll.md) ^2.0.1
- [@amap/amap-jsapi-types](https://npm.io/package/@amap/amap-jsapi-types.md) ^0.0.8
- [reconnecting-websocket](https://npm.io/package/reconnecting-websocket.md) ^4.4.0
- [@amap/amap-jsapi-loader](https://npm.io/package/@amap/amap-jsapi-loader.md) ^1.0.1

## Recent versions

- 1.0.1 (latest) — 2023-08-21
- 1.0.0 — 2023-08-21

## README

## 总览

**`master` 分支是带有后端接口请求的分支**

**后端项目地址：[https://gitee.com/MTrun/go-view-serve](https://gitee.com/MTrun/go-view-serve)**

**接口说明地址：[https://docs.apipost.cn/preview/5aa85d10a59d66ce/ddb813732007ad2b?target_id=84dbc5b0-158f-4bcb-8f74-793ac604ada3#3e053622-1e76-43f9-a039-756aee822dbb](https://docs.apipost.cn/preview/5aa85d10a59d66ce/ddb813732007ad2b?target_id=84dbc5b0-158f-4bcb-8f74-793ac604ada3#3e053622-1e76-43f9-a039-756aee822dbb)**

## 使用

所有的接口地址位置：`src\api\path\*`

接口地址修改：`.env`

```shell
# port
VITE_DEV_PORT = '8080'

# development path
VITE_DEV_PATH = 'http://127.0.0.1:8080'

# production path
VITE_PRO_PATH = 'http://127.0.0.1:8080'
```

公共前缀修改：`src\settings\httpSetting.ts`

```shell
// 请求前缀
export const axiosPre = '/api/goview'
```

接口封装：`src\api\http.ts`

```ts
import axiosInstance from './axios'
import { RequestHttpEnum, ContentTypeEnum } from '@/enums/httpEnum'

export const get = (url: string, params?: object) => {
  return axiosInstance({
    url: url,
    method: RequestHttpEnum.GET,
    params: params
  })
}

export const post = (url: string, data?: object, headersType?: string) => {
  return axiosInstance({
    url: url,
    method: RequestHttpEnum.POST,
    data: data,
    headers: {
      'Content-Type': headersType || ContentTypeEnum.JSON
    }
  })
}

export const put = (url: string, data?: object, headersType?: string) => {
  return axiosInstance({
    url: url,
    method: RequestHttpEnum.PUT,
    data: data,
    headers: {
      'Content-Type': headersType || ContentTypeEnum.JSON
    }
  })
}

export const del = (url: string, params?: object) => {
  return axiosInstance({
    url: url,
    method: RequestHttpEnum.DELETE,
    params
  })
}

// 获取请求函数，默认get
export const http = (type?: RequestHttpEnum) => {
  switch (type) {
    case RequestHttpEnum.GET:
      return get

    case RequestHttpEnum.POST:
      return post

    case RequestHttpEnum.PUT:
      return put

    case RequestHttpEnum.DELETE:
      return del

    default:
      return get
  }
}
```

## 代码提交

- feat: 新功能
- fix: 修复 Bug
- docs: 文档修改
- perf: 性能优化
- revert: 版本回退
- ci: CICD 集成相关
- test: 添加测试代码
- refactor: 代码重构
- build: 影响项目构建或依赖修改
- style: 不影响程序逻辑的代码修改
- chore: 不属于以上类型的其他类型(日常事务)

## 交流

QQ 群：1030129384

![QQ群](readme/go-view-qq.png)

![渲染海报](readme/logo-poster.png)

---
_Source: https://npm.io/package/park-fe-editors · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
