2022-03-03 10:26:15 +00:00
|
|
|
{
|
2022-07-30 03:41:40 +00:00
|
|
|
"name": "@halo-dev/admin-next",
|
2022-03-03 10:26:15 +00:00
|
|
|
"version": "0.0.0",
|
|
|
|
"scripts": {
|
2022-03-04 06:57:42 +00:00
|
|
|
"prepare": "husky install",
|
2022-04-20 09:58:50 +00:00
|
|
|
"dev": "vite --host",
|
2022-03-03 10:26:15 +00:00
|
|
|
"build": "vue-tsc --noEmit && vite build",
|
2022-06-14 07:56:55 +00:00
|
|
|
"build:packages": "pnpm --filter './packages/**' build",
|
2022-03-03 10:26:15 +00:00
|
|
|
"preview": "vite preview --port 5050",
|
2022-06-14 07:56:55 +00:00
|
|
|
"test:unit": "vitest --environment jsdom --run && pnpm run test:unit:packages",
|
2022-04-27 07:33:01 +00:00
|
|
|
"test:unit:watch": "vitest --environment jsdom --watch",
|
|
|
|
"test:unit:ui": "vitest --environment jsdom --watch --ui",
|
2022-03-21 06:17:22 +00:00
|
|
|
"test:unit:coverage": "vitest run --environment jsdom --coverage",
|
2022-03-03 10:26:15 +00:00
|
|
|
"test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
|
|
|
|
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'",
|
2022-06-14 07:56:55 +00:00
|
|
|
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false && pnpm run typecheck:packages",
|
|
|
|
"lint": "eslint ./src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore && pnpm run lint:packages",
|
|
|
|
"prettier": "prettier --write './src/**/*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}' && pnpm run prettier:packages",
|
2022-07-11 08:07:21 +00:00
|
|
|
"typecheck:packages": "pnpm --parallel --filter './packages/**' run typecheck",
|
|
|
|
"lint:packages": "pnpm --parallel --filter './packages/**' lint",
|
|
|
|
"prettier:packages": "pnpm --parallel --filter './packages/**' prettier",
|
|
|
|
"test:unit:packages": "pnpm --parallel --filter './packages/**' run test:unit"
|
2022-03-03 10:26:15 +00:00
|
|
|
},
|
2022-06-14 07:56:55 +00:00
|
|
|
"workspaces": [
|
|
|
|
"packages/*"
|
|
|
|
],
|
2022-03-03 10:26:15 +00:00
|
|
|
"dependencies": {
|
2022-07-30 03:41:40 +00:00
|
|
|
"@formkit/addons": "1.0.0-beta.10",
|
2022-08-23 03:10:29 +00:00
|
|
|
"@formkit/auto-animate": "1.0.0-beta.2",
|
2022-07-30 03:41:40 +00:00
|
|
|
"@formkit/core": "1.0.0-beta.10",
|
|
|
|
"@formkit/i18n": "1.0.0-beta.10",
|
|
|
|
"@formkit/inputs": "1.0.0-beta.10",
|
|
|
|
"@formkit/themes": "1.0.0-beta.10",
|
|
|
|
"@formkit/vue": "1.0.0-beta.10",
|
2022-06-16 10:42:13 +00:00
|
|
|
"@halo-dev/admin-shared": "workspace:*",
|
refactor: method parameters of api client (#605)
<!-- Thanks for sending a pull request! Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->
#### What type of PR is this?
/kind improvement
/milestone 2.0
<!--
添加其中一个类别:
Add one of the following kinds:
/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind optimization
适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:
/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->
#### What this PR does / why we need it:
修改 api-client 的请求参数结构,改为所有参数由一个对象包裹,而不是将各个参数作为方法的参数,防止因为后端参数结构发生改变,或者生成 api-client 时参数顺序发生改变导致请求异常。如:
```diff
await apiClient.extension.storage.group.updatestorageHaloRunV1alpha1Group(
- formState.value.metadata.name,
- formState.value
+ {
+ name: formState.value.metadata.name,
+ group: formState.value,
+ }
);
```
#### Which issue(s) this PR fixes:
<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.
用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
None
#### Screenshots:
<!--
如果此 PR 有 UI 的改动,最好截图说明这个 PR 的改动。
If there are UI changes to this PR, it is best to take a screenshot to illustrate the changes to this PR.
eg.
Before:

After:

-->
None
#### Special notes for your reviewer:
/cc @halo-dev/sig-halo-admin
#### Does this PR introduce a user-facing change?
<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->
```release-note
None
```
2022-09-06 02:26:11 +00:00
|
|
|
"@halo-dev/api-client": "^0.0.14",
|
2022-06-17 06:12:15 +00:00
|
|
|
"@halo-dev/components": "workspace:*",
|
2022-08-24 07:29:21 +00:00
|
|
|
"@halo-dev/richtext-editor": "^0.0.0-alpha.5",
|
|
|
|
"@tiptap/extension-character-count": "2.0.0-beta.31",
|
2022-07-18 04:35:34 +00:00
|
|
|
"@vueuse/components": "^8.9.4",
|
|
|
|
"@vueuse/core": "^8.9.4",
|
2022-08-12 08:20:21 +00:00
|
|
|
"@vueuse/router": "^9.1.0",
|
2022-07-13 07:36:21 +00:00
|
|
|
"axios": "^0.27.2",
|
2022-08-23 04:08:10 +00:00
|
|
|
"colorjs.io": "^0.4.0",
|
|
|
|
"dayjs": "^1.11.5",
|
2022-06-14 07:56:55 +00:00
|
|
|
"filepond": "^4.30.4",
|
2022-08-07 15:54:54 +00:00
|
|
|
"floating-vue": "2.0.0-beta.19",
|
2022-05-27 09:28:25 +00:00
|
|
|
"lodash.clonedeep": "^4.5.0",
|
2022-07-15 08:26:27 +00:00
|
|
|
"lodash.isequal": "^4.5.0",
|
2022-09-04 17:06:11 +00:00
|
|
|
"path-browserify": "^1.0.1",
|
2022-08-23 03:10:29 +00:00
|
|
|
"pinia": "^2.0.20",
|
2022-09-04 17:06:11 +00:00
|
|
|
"pretty-bytes": "^6.0.0",
|
2022-07-02 06:01:40 +00:00
|
|
|
"qs": "^6.11.0",
|
2022-09-04 17:06:11 +00:00
|
|
|
"unsplash-js": "^7.0.15",
|
2022-06-27 08:16:49 +00:00
|
|
|
"uuid": "^8.3.2",
|
2022-06-14 07:56:55 +00:00
|
|
|
"vue": "^3.2.37",
|
2022-05-31 08:19:04 +00:00
|
|
|
"vue-filepond": "^7.0.3",
|
2022-05-27 09:28:25 +00:00
|
|
|
"vue-grid-layout": "3.0.0-beta1",
|
2022-08-23 03:10:29 +00:00
|
|
|
"vue-router": "^4.1.4",
|
2022-08-12 08:20:21 +00:00
|
|
|
"vuedraggable": "^4.1.0",
|
2022-07-22 09:04:30 +00:00
|
|
|
"yaml": "^2.1.1"
|
2022-03-03 10:26:15 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-08-23 03:10:29 +00:00
|
|
|
"@changesets/cli": "^2.24.3",
|
2022-09-04 17:06:11 +00:00
|
|
|
"@iconify-json/vscode-icons": "^1.1.11",
|
2022-07-03 08:50:25 +00:00
|
|
|
"@rushstack/eslint-patch": "^1.1.4",
|
2022-05-11 09:20:10 +00:00
|
|
|
"@tailwindcss/aspect-ratio": "^0.4.0",
|
2022-07-25 08:26:26 +00:00
|
|
|
"@types/jsdom": "^20.0.0",
|
2022-06-16 07:02:32 +00:00
|
|
|
"@types/lodash.clonedeep": "4.5.7",
|
2022-07-19 07:41:39 +00:00
|
|
|
"@types/lodash.isequal": "^4.5.6",
|
2022-06-16 07:02:32 +00:00
|
|
|
"@types/node": "^17.0.45",
|
2022-07-02 06:01:40 +00:00
|
|
|
"@types/qs": "^6.9.7",
|
|
|
|
"@types/uuid": "^8.3.4",
|
2022-08-23 03:10:29 +00:00
|
|
|
"@vitejs/plugin-vue": "^3.0.3",
|
2022-08-07 15:54:54 +00:00
|
|
|
"@vitejs/plugin-vue-jsx": "^2.0.0",
|
2022-08-23 03:10:29 +00:00
|
|
|
"@vitest/ui": "^0.22.1",
|
2022-07-03 08:50:25 +00:00
|
|
|
"@vue/compiler-sfc": "^3.2.37",
|
2022-03-03 10:26:15 +00:00
|
|
|
"@vue/eslint-config-prettier": "^7.0.0",
|
2022-06-16 07:02:32 +00:00
|
|
|
"@vue/eslint-config-typescript": "^11.0.0",
|
2022-07-07 08:50:50 +00:00
|
|
|
"@vue/test-utils": "^2.0.2",
|
2022-03-03 10:26:15 +00:00
|
|
|
"@vue/tsconfig": "^0.1.3",
|
2022-07-30 03:41:40 +00:00
|
|
|
"autoprefixer": "^10.4.8",
|
2022-07-25 08:26:26 +00:00
|
|
|
"c8": "^7.12.0",
|
2022-06-14 07:56:55 +00:00
|
|
|
"cypress": "^9.7.0",
|
2022-08-23 03:10:29 +00:00
|
|
|
"eslint": "^8.22.0",
|
2022-03-03 10:26:15 +00:00
|
|
|
"eslint-plugin-cypress": "^2.12.1",
|
2022-07-25 08:26:26 +00:00
|
|
|
"eslint-plugin-vue": "^9.3.0",
|
2022-05-10 06:31:13 +00:00
|
|
|
"husky": "^8.0.1",
|
2022-07-25 08:26:26 +00:00
|
|
|
"jsdom": "^20.0.0",
|
2022-08-07 15:54:54 +00:00
|
|
|
"postcss": "^8.4.16",
|
2022-06-16 07:02:32 +00:00
|
|
|
"prettier": "^2.7.1",
|
2022-07-30 03:41:40 +00:00
|
|
|
"prettier-plugin-tailwindcss": "^0.1.13",
|
2022-08-23 03:10:29 +00:00
|
|
|
"sass": "^1.54.5",
|
2022-03-03 10:26:15 +00:00
|
|
|
"start-server-and-test": "^1.14.0",
|
2022-08-07 15:54:54 +00:00
|
|
|
"tailwindcss": "^3.1.8",
|
2022-05-23 07:16:23 +00:00
|
|
|
"tailwindcss-safe-area": "^0.2.2",
|
2022-07-14 03:38:13 +00:00
|
|
|
"tailwindcss-themer": "^2.0.1",
|
2022-06-23 03:51:03 +00:00
|
|
|
"typescript": "~4.7.4",
|
2022-09-04 17:06:11 +00:00
|
|
|
"unplugin-icons": "^0.14.8",
|
2022-08-23 03:10:29 +00:00
|
|
|
"vite": "^3.0.9",
|
2022-06-16 07:02:32 +00:00
|
|
|
"vite-compression-plugin": "^0.0.4",
|
2022-07-18 04:35:34 +00:00
|
|
|
"vite-plugin-externals": "^0.5.1",
|
2022-07-25 03:23:46 +00:00
|
|
|
"vite-plugin-html": "^3.2.0",
|
2022-07-13 02:11:43 +00:00
|
|
|
"vite-plugin-pwa": "^0.12.3",
|
2022-07-25 08:26:26 +00:00
|
|
|
"vite-plugin-static-copy": "^0.7.0",
|
2022-06-17 06:12:15 +00:00
|
|
|
"vite-plugin-vue-setup-extend": "^0.4.0",
|
2022-08-23 03:10:29 +00:00
|
|
|
"vitest": "^0.22.1",
|
|
|
|
"vue-tsc": "^0.40.1"
|
2022-03-03 10:26:15 +00:00
|
|
|
}
|
|
|
|
}
|