fix(global): 🐛 修复艾特弹窗在mac下高度问题导致不显示

使用prettierrc格式化项目文件
This commit is contained in:
nongyehong
2024-10-28 14:49:43 +08:00
parent 338370ae7c
commit 8a18e84ce7
35 changed files with 3115 additions and 2095 deletions

View File

@@ -1,56 +1,56 @@
module.exports = {
// 运行环境
env: {
browser: true, // 浏览器
es6: true, // es6语法
jest: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module',
jsxPragma: 'React',
ecmaFeatures: {
jsx: true,
},
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-essential',
'plugin:prettier/recommended',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
plugins: ['@typescript-eslint', 'vue'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
/** 允许ts使用命名空间 */
'@typescript-eslint/no-namespace': 'off',
/**
* 使用新vue3.3的defineProps解构语法需要关闭这个校验
* eslint-plugin-vue新版本已废弃 vue/no-setup-props-destructure,如果新版本eslint-plugin-vue
* 需要改成vue/no-setup-props-reactivity-loss规则
* */
'vue/no-setup-props-destructure': 'off',
'no-undef': 'off',
'no-var': 'error', // 不能使用var
'no-multiple-empty-lines': ['warn', { max: 2 }], // 不允许多个空行
quotes: [1, 'single'], //引号类型 `` "" ''
semi: ['error', 'never'], // 不允许在末尾加分号
'vue/multi-word-component-names': 'off', //关闭组件命名规则
'@typescript-eslint/no-explicit-any': 'off', // 关闭any校验
'no-redeclare': 2, //禁止重复声明变量
'eol-last': 'off', // 关闭行尾符linebreak-style的校验
},
// 运行环境
env: {
browser: true, // 浏览器
es6: true, // es6语法
jest: true
},
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module',
jsxPragma: 'React',
ecmaFeatures: {
jsx: true
}
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-essential',
'plugin:prettier/recommended'
],
overrides: [
{
env: {
node: true
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script'
}
}
],
plugins: ['@typescript-eslint', 'vue'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
/** 允许ts使用命名空间 */
'@typescript-eslint/no-namespace': 'off',
/**
* 使用新vue3.3的defineProps解构语法需要关闭这个校验
* eslint-plugin-vue新版本已废弃 vue/no-setup-props-destructure,如果新版本eslint-plugin-vue
* 需要改成vue/no-setup-props-reactivity-loss规则
* */
'vue/no-setup-props-destructure': 'off',
'no-undef': 'off',
'no-var': 'error', // 不能使用var
'no-multiple-empty-lines': ['warn', { max: 2 }], // 不允许多个空行
quotes: [1, 'single'], //引号类型 `` "" ''
semi: ['error', 'never'], // 不允许在末尾加分号
'vue/multi-word-component-names': 'off', //关闭组件命名规则
'@typescript-eslint/no-explicit-any': 'off', // 关闭any校验
'no-redeclare': 2, //禁止重复声明变量
'eol-last': 'off' // 关闭行尾符linebreak-style的校验
}
}

View File

@@ -57,4 +57,4 @@ body:
- type: textarea
attributes:
label: '📝 补充信息'
description: 如果您的问题需要进一步说明,或者您遇到的问题无法在一个简单的示例中复现,请在这里添加更多信息。
description: 如果您的问题需要进一步说明,或者您遇到的问题无法在一个简单的示例中复现,请在这里添加更多信息。

View File

@@ -9,14 +9,14 @@ body:
attributes:
label: 描述问题
description: 明确描述此功能将解决的问题
placeholder: "我总是感到困扰..."
placeholder: '我总是感到困扰...'
validations:
required: true
- type: textarea
id: solution
attributes:
label: "描述您想要的解决方案"
label: '描述您想要的解决方案'
description: 明确说明您希望做出的改变
placeholder: '我想...'
validations:
@@ -26,10 +26,10 @@ body:
id: alternatives
attributes:
label: 考虑的替代方案
description: "您考虑过的任何替代解决方案"
description: '您考虑过的任何替代解决方案'
- type: textarea
id: context
attributes:
label: 其他上下文
description: 在此处添加有关问题的任何其他上下文。
description: 在此处添加有关问题的任何其他上下文。

1
.github/FUNDING.yml vendored
View File

@@ -4,4 +4,3 @@ github: [nongyehong]
patreon: #
open_collective: HuLaSpark
custom: https://opencollective.com/hulaspark

View File

@@ -57,4 +57,4 @@ body:
- type: textarea
attributes:
label: '📝 Additional Information'
description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here.
description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here.

View File

@@ -57,4 +57,4 @@ body:
- type: textarea
attributes:
label: '📝 补充信息'
description: 如果您的问题需要进一步说明,或者您遇到的问题无法在一个简单的示例中复现,请在这里添加更多信息。
description: 如果您的问题需要进一步说明,或者您遇到的问题无法在一个简单的示例中复现,请在这里添加更多信息。

View File

@@ -32,4 +32,4 @@ body:
id: context
attributes:
label: Additional context
description: Add any other context about the problem here.
description: Add any other context about the problem here.

View File

@@ -9,14 +9,14 @@ body:
attributes:
label: 描述问题
description: 明确描述此功能将解决的问题
placeholder: "我总是感到困扰..."
placeholder: '我总是感到困扰...'
validations:
required: true
- type: textarea
id: solution
attributes:
label: "描述您想要的解决方案"
label: '描述您想要的解决方案'
description: 明确说明您希望做出的改变
placeholder: '我想...'
validations:
@@ -26,10 +26,10 @@ body:
id: alternatives
attributes:
label: 考虑的替代方案
description: "您考虑过的任何替代解决方案"
description: '您考虑过的任何替代解决方案'
- type: textarea
id: context
attributes:
label: 其他上下文
description: 在此处添加有关问题的任何其他上下文。
description: 在此处添加有关问题的任何其他上下文。

View File

@@ -14,11 +14,10 @@
- [ ] ↩️ revert | 回滚 commit
- [ ] 🛠️ chore | 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)
#### 🔀 变更说明 | Description of Change
<!-- Thank you for your Pull Request. Please provide a description above. -->
#### 📝 补充信息 | Additional Information
<!-- Add any other context about the Pull Request here. -->
<!-- Add any other context about the Pull Request here. -->

View File

@@ -57,5 +57,3 @@ jobs:
releaseBody: 'See the assets to download and install this version.'
releaseDraft: true
prerelease: false

View File

@@ -1,14 +1,14 @@
{
"singleQuote": true,
"semi": false,
"printWidth": 120,
"useTabs": false,
"tabWidth": 2,
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "always",
"bracketSameLine": true,
"jsxBracketSameLine": true,
"endOfLine": "lf"
"singleQuote": true,
"semi": false,
"printWidth": 120,
"useTabs": false,
"tabWidth": 2,
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "always",
"bracketSameLine": true,
"jsxBracketSameLine": true,
"endOfLine": "lf"
}

View File

@@ -1,42 +1,36 @@
## [2.5.0](https://github.com/HuLaSpark/HuLa/compare/v2.4.0...v2.5.0) (2024-10-27)
### ⚠ BREAKING CHANGES
* **util:** http请求异常bug
- **util:** http请求异常bug
### ✨ Features | 新功能
* **layout:** :sparkles: 自动更新增加进度条 ([4ee3e2b](https://github.com/HuLaSpark/HuLa/commit/4ee3e2b8a36b34cdc996a8b538bddea61bbf1af2))
- **layout:** :sparkles: 自动更新增加进度条 ([4ee3e2b](https://github.com/HuLaSpark/HuLa/commit/4ee3e2b8a36b34cdc996a8b538bddea61bbf1af2))
### 🐛 Bug Fixes | Bug 修复
* **api:** 修改websocket请求地址, 修改请求方式采用fetch处理 ([e55f863](https://github.com/HuLaSpark/HuLa/commit/e55f86385fb8e25e826ae57341e0d818f5fe34b2))
* **build:** :bug: 修复因为类型导致打包出错 ([db26e6b](https://github.com/HuLaSpark/HuLa/commit/db26e6bdf65003c1263574464a194236aa341129))
* **layout:** :bug: 修复更新进度条显示异常bug ([45e2bfc](https://github.com/HuLaSpark/HuLa/commit/45e2bfce669c76cbb72be641febf59509b3e6204))
* **service:** :bug: 修复打包后访问不了正式服务器的bug ([c8d42ab](https://github.com/HuLaSpark/HuLa/commit/c8d42ab31e1e6b41b3a30f1664d1be0c28d4ed36))
* **service:** :bug: 修复请求体包裹多层data的问题 ([d97d24f](https://github.com/HuLaSpark/HuLa/commit/d97d24f1c1d554e5477b221c725e45100655c0e0))
* **util:** :bug: http请求异常bug ([6e82a09](https://github.com/HuLaSpark/HuLa/commit/6e82a099a2a51ea08548c4d5da496393a94b7b05))
* **view:** :bug: 修复点击右侧布局页面时候不跳转回消息页 ([be0edf9](https://github.com/HuLaSpark/HuLa/commit/be0edf974778b58fe5af9ec030d9927999a6d7bb))
- **api:** 修改websocket请求地址, 修改请求方式采用fetch处理 ([e55f863](https://github.com/HuLaSpark/HuLa/commit/e55f86385fb8e25e826ae57341e0d818f5fe34b2))
- **build:** :bug: 修复因为类型导致打包出错 ([db26e6b](https://github.com/HuLaSpark/HuLa/commit/db26e6bdf65003c1263574464a194236aa341129))
- **layout:** :bug: 修复更新进度条显示异常bug ([45e2bfc](https://github.com/HuLaSpark/HuLa/commit/45e2bfce669c76cbb72be641febf59509b3e6204))
- **service:** :bug: 修复打包后访问不了正式服务器的bug ([c8d42ab](https://github.com/HuLaSpark/HuLa/commit/c8d42ab31e1e6b41b3a30f1664d1be0c28d4ed36))
- **service:** :bug: 修复请求体包裹多层data的问题 ([d97d24f](https://github.com/HuLaSpark/HuLa/commit/d97d24f1c1d554e5477b221c725e45100655c0e0))
- **util:** :bug: http请求异常bug ([6e82a09](https://github.com/HuLaSpark/HuLa/commit/6e82a099a2a51ea08548c4d5da496393a94b7b05))
- **view:** :bug: 修复点击右侧布局页面时候不跳转回消息页 ([be0edf9](https://github.com/HuLaSpark/HuLa/commit/be0edf974778b58fe5af9ec030d9927999a6d7bb))
## [2.4.0](https://github.com/HuLaSpark/HuLa/compare/v2.3.0...v2.4.0) (2024-10-24)
### ✨ Features | 新功能
* **ide:** :sparkles: 新增.idea文件提供idea的项目图标 ([84b6039](https://github.com/HuLaSpark/HuLa/commit/84b6039a81370d9d71c8394e6dbb4145b1fb7f1e))
* **layout:** :sparkles: 菜单优化|插件优化|新增菜单显示模式切换 ([78f09c5](https://github.com/HuLaSpark/HuLa/commit/78f09c5bb9449f5546823f71265c247c137a9e55))
* **setting:** :sparkles: 新增开机启动功能 ([91ad538](https://github.com/HuLaSpark/HuLa/commit/91ad538f72909e16f232310a58a5b7610dfd08f0))
- **ide:** :sparkles: 新增.idea文件提供idea的项目图标 ([84b6039](https://github.com/HuLaSpark/HuLa/commit/84b6039a81370d9d71c8394e6dbb4145b1fb7f1e))
- **layout:** :sparkles: 菜单优化|插件优化|新增菜单显示模式切换 ([78f09c5](https://github.com/HuLaSpark/HuLa/commit/78f09c5bb9449f5546823f71265c247c137a9e55))
- **setting:** :sparkles: 新增开机启动功能 ([91ad538](https://github.com/HuLaSpark/HuLa/commit/91ad538f72909e16f232310a58a5b7610dfd08f0))
### 🐛 Bug Fixes | Bug 修复
* **layout:** :bug: 代码修复 ([96ad89c](https://github.com/HuLaSpark/HuLa/commit/96ad89c05d2b9d104b4a80f064892d63381441a2))
* **layout:** :bug: 修复侧边栏顶部空白块颜色和无法缩小主页面问题 ([1999f30](https://github.com/HuLaSpark/HuLa/commit/1999f30b0e363d63bf1f1a8c0fda7bdc80c9b8b7))
* **layout:** :bug: 修复窗体高度整体变大bug ([396a103](https://github.com/HuLaSpark/HuLa/commit/396a103a24255568f426b1c08e4d7e7beb60264b))
* **layout:** :bug: 插件菜单增加图标和点击事件 ([bcbb61a](https://github.com/HuLaSpark/HuLa/commit/bcbb61a652a121e2cf251d6b4dfefa1c7bf00dec))
* **view:** :bug: 修复一些页面拖动区域问题 ([1183b7e](https://github.com/HuLaSpark/HuLa/commit/1183b7e3baabcbb9cfabe23327583221ae083ae8)), closes [#25](https://github.com/HuLaSpark/HuLa/issues/25)
* **view:** :bug: 修复侧边栏图标和字体宽度不一致问题 ([901218b](https://github.com/HuLaSpark/HuLa/commit/901218b043aa87ef4f5c972eb01aeb37ee4c56a5))
- **layout:** :bug: 代码修复 ([96ad89c](https://github.com/HuLaSpark/HuLa/commit/96ad89c05d2b9d104b4a80f064892d63381441a2))
- **layout:** :bug: 修复侧边栏顶部空白块颜色和无法缩小主页面问题 ([1999f30](https://github.com/HuLaSpark/HuLa/commit/1999f30b0e363d63bf1f1a8c0fda7bdc80c9b8b7))
- **layout:** :bug: 修复窗体高度整体变大bug ([396a103](https://github.com/HuLaSpark/HuLa/commit/396a103a24255568f426b1c08e4d7e7beb60264b))
- **layout:** :bug: 插件菜单增加图标和点击事件 ([bcbb61a](https://github.com/HuLaSpark/HuLa/commit/bcbb61a652a121e2cf251d6b4dfefa1c7bf00dec))
- **view:** :bug: 修复一些页面拖动区域问题 ([1183b7e](https://github.com/HuLaSpark/HuLa/commit/1183b7e3baabcbb9cfabe23327583221ae083ae8)), closes [#25](https://github.com/HuLaSpark/HuLa/issues/25)
- **view:** :bug: 修复侧边栏图标和字体宽度不一致问题 ([901218b](https://github.com/HuLaSpark/HuLa/commit/901218b043aa87ef4f5c972eb01aeb37ee4c56a5))

View File

@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, 和 experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, 和 experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, 和 sexual attention or
- The use of sexualized language or imagery, 和 sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, 和 personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, 和 personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within

View File

@@ -72,4 +72,4 @@ Congratulations! Your contribution is now part of HuLa. 🥳
Thank you for making HuLa even more magical. We can't wait to see what you create! 🌠
Happy Coding! 🚀
Happy Coding! 🚀

View File

@@ -85,4 +85,5 @@ pnpm run tauri:build
```
## SubmissionSpecification
use **pnpm run commit** to invoke the _git commit_ interaction and follow the prompts to complete the input and selection of information

View File

@@ -85,4 +85,5 @@ pnpm run tauri:build
```
## 提交规范
执行 **pnpm run commit** 唤起 _git commit_ 交互,根据提示完成信息的输入和选择

View File

@@ -2,11 +2,11 @@
## Supported Versions
There are now two versions of HuLa, one is an earlier version using simulated data
There are now two versions of HuLa, one is an earlier version using simulated data
and the other is a later version using server data
| Version | Supported |
|---------|--------------------------------------|
| ------- | ------------------------------------ |
| 1.4 | :Comparatively complete features: |
| 1.5 | :Support more features: |
| 1.6 | :Interconnect with backend data: |
@@ -14,6 +14,6 @@ and the other is a later version using server data
## Reporting a Vulnerability
Now the installation package downloaded in the browser will have a virus error, this is because there
is no security code set for the reason, this follow-up is set according to the platform, the Windows
platform costs less, so we focus on the solution of the Windows platform
Now the installation package downloaded in the browser will have a virus error, this is because there
is no security code set for the reason, this follow-up is set according to the platform, the Windows
platform costs less, so we focus on the solution of the Windows platform

View File

@@ -10,46 +10,46 @@ const scopes = fs
module.exports = {
// 继承的规则
extends: ["@commitlint/config-conventional"],
extends: ['@commitlint/config-conventional'],
// 自定义规则
rules: {
// @see https://commitlint.js.org/#/reference-rules
// 提交类型枚举git提交type必须是以下类型
"type-enum": [
'type-enum': [
2,
"always",
'always',
[
"feat", // 新增功能
"fix", // 修复缺陷
"docs", // 文档变更
"style", // 代码格式(不影响功能,例如空格、分号等格式修正)
"refactor", // 代码重构(不包括 bug 修复、功能新增)
"perf", // 性能优化
"test", // 添加疏漏测试或已有测试改动
"build", // 构建流程、外部依赖变更(如升级 npm 包、修改 webpack 配置等)
"ci", // 修改 CI 配置、脚本
"revert", // 回滚 commit
"chore", // 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)
],
'feat', // 新增功能
'fix', // 修复缺陷
'docs', // 文档变更
'style', // 代码格式(不影响功能,例如空格、分号等格式修正)
'refactor', // 代码重构(不包括 bug 修复、功能新增)
'perf', // 性能优化
'test', // 添加疏漏测试或已有测试改动
'build', // 构建流程、外部依赖变更(如升级 npm 包、修改 webpack 配置等)
'ci', // 修改 CI 配置、脚本
'revert', // 回滚 commit
'chore' // 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)
]
],
"subject-case": [0], // subject大小写不做校验
'subject-case': [0] // subject大小写不做校验
},
prompt: {
messages: {
type: "选择你要提交的类型 :",
scope: "选择一个提交范围(可选):",
customScope: "请输入自定义的提交范围 :",
subject: "填写简短精炼的变更描述 :\n",
type: '选择你要提交的类型 :',
scope: '选择一个提交范围(可选):',
customScope: '请输入自定义的提交范围 :',
subject: '填写简短精炼的变更描述 :\n',
body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n',
breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n',
footerPrefixesSelect: "选择关联issue前缀可选:",
customFooterPrefix: "输入自定义issue前缀 :",
footer: "列举关联issue (可选) 例如: #31, #I3244 :\n",
generatingByAI: "正在通过 AI 生成你的提交简短描述...",
generatedSelectByAI: "选择一个 AI 生成的简短描述:",
confirmCommit: "是否提交或修改commit ?",
footerPrefixesSelect: '选择关联issue前缀可选:',
customFooterPrefix: '输入自定义issue前缀 :',
footer: '列举关联issue (可选) 例如: #31, #I3244 :\n',
generatingByAI: '正在通过 AI 生成你的提交简短描述...',
generatedSelectByAI: '选择一个 AI 生成的简短描述:',
confirmCommit: '是否提交或修改commit ?'
},
// prettier-ignore
types: [
@@ -66,26 +66,24 @@ module.exports = {
{ value: "chore", name: "其他: 🛠️ 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)", emoji: ":hammer:"},
],
useEmoji: true,
emojiAlign: "center",
emojiAlign: 'center',
useAI: false,
aiNumber: 1,
themeColorCode: "38;5;168",
themeColorCode: '38;5;168',
allowCustomScopes: true,
allowEmptyScopes: true,
customScopesAlign: 'bottom',
scopes: [...scopes],
upperCaseSubject: false,
markBreakingChangeMode: false,
allowBreakingChanges: ["feat", "fix"],
allowBreakingChanges: ['feat', 'fix'],
breaklineNumber: 100,
breaklineChar: "|",
breaklineChar: '|',
skipQuestions: [],
issuePrefixes: [
{ value: "closed", name: "closed: ISSUES has been processed" },
],
customIssuePrefixAlign: "top",
emptyIssuePrefixAlias: "skip",
customIssuePrefixAlias: "custom",
issuePrefixes: [{ value: 'closed', name: 'closed: ISSUES has been processed' }],
customIssuePrefixAlign: 'top',
emptyIssuePrefixAlias: 'skip',
customIssuePrefixAlias: 'custom',
allowCustomIssuePrefix: true,
allowEmptyIssuePrefix: true,
confirmColorize: true,
@@ -93,8 +91,8 @@ module.exports = {
maxSubjectLength: Infinity,
minSubjectLength: 0,
scopeOverrides: undefined,
defaultBody: "",
defaultIssues: "",
defaultSubject: "",
},
};
defaultBody: '',
defaultIssues: '',
defaultSubject: ''
}
}

4456
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -26,7 +26,7 @@ tauri-plugin-shell = "2.0.1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tauri-plugin-websocket = "2.0.1"
tauri-plugin-http = "2.0.1"
tauri-plugin-http = {version="2.0.1",features= ["unsafe-headers"] }
tauri-plugin-process = "2.0.1"
tauri-plugin-fs = "2.0.1"
tauri-plugin-dialog = "2.0.1"

View File

@@ -1,15 +1,6 @@
{
"identifier": "desktop-capability",
"platforms": [
"macOS",
"windows",
"linux"
],
"windows":["home"],
"permissions": [
"updater:default",
"updater:allow-check",
"updater:allow-download",
"updater:allow-install"
]
}
"platforms": ["macOS", "windows", "linux"],
"windows": ["home"],
"permissions": ["updater:default", "updater:allow-check", "updater:allow-download", "updater:allow-install"]
}

View File

@@ -5324,6 +5324,51 @@
"type": "string",
"const": "shell:deny-stdin-write"
},
{
"description": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n",
"type": "string",
"const": "updater:default"
},
{
"description": "Enables the check command without any pre-configured scope.",
"type": "string",
"const": "updater:allow-check"
},
{
"description": "Enables the download command without any pre-configured scope.",
"type": "string",
"const": "updater:allow-download"
},
{
"description": "Enables the download_and_install command without any pre-configured scope.",
"type": "string",
"const": "updater:allow-download-and-install"
},
{
"description": "Enables the install command without any pre-configured scope.",
"type": "string",
"const": "updater:allow-install"
},
{
"description": "Denies the check command without any pre-configured scope.",
"type": "string",
"const": "updater:deny-check"
},
{
"description": "Denies the download command without any pre-configured scope.",
"type": "string",
"const": "updater:deny-download"
},
{
"description": "Denies the download_and_install command without any pre-configured scope.",
"type": "string",
"const": "updater:deny-download-and-install"
},
{
"description": "Denies the install command without any pre-configured scope.",
"type": "string",
"const": "updater:deny-install"
},
{
"description": "This permission set configures what kind of\noperations are available from the upload plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n",
"type": "string",

View File

@@ -21,9 +21,7 @@
{
"description": "A list of capabilities.",
"type": "object",
"required": [
"capabilities"
],
"required": ["capabilities"],
"properties": {
"capabilities": {
"description": "The list of capabilities.",
@@ -39,10 +37,7 @@
"Capability": {
"description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, \"platforms\": [\"macOS\",\"windows\"] } ```",
"type": "object",
"required": [
"identifier",
"permissions"
],
"required": ["identifier", "permissions"],
"properties": {
"identifier": {
"description": "Identifier of the capability.\n\n## Example\n\n`main-user-files-write`",
@@ -93,10 +88,7 @@
},
"platforms": {
"description": "Limit which target platforms this capability applies to.\n\nBy default all platforms are targeted.\n\n## Example\n\n`[\"macOS\",\"windows\"]`",
"type": [
"array",
"null"
],
"type": ["array", "null"],
"items": {
"$ref": "#/definitions/Target"
}
@@ -106,9 +98,7 @@
"CapabilityRemote": {
"description": "Configuration for remote URLs that are associated with the capability.",
"type": "object",
"required": [
"urls"
],
"required": ["urls"],
"properties": {
"urls": {
"description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n## Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",
@@ -1586,9 +1576,7 @@
},
{
"type": "object",
"required": [
"path"
],
"required": ["path"],
"properties": {
"path": {
"description": "FS scope path.",
@@ -1610,9 +1598,7 @@
},
{
"type": "object",
"required": [
"path"
],
"required": ["path"],
"properties": {
"path": {
"description": "FS scope path.",
@@ -1703,9 +1689,7 @@
},
{
"type": "object",
"required": [
"url"
],
"required": ["url"],
"properties": {
"url": {
"description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",
@@ -1727,9 +1711,7 @@
},
{
"type": "object",
"required": [
"url"
],
"required": ["url"],
"properties": {
"url": {
"description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",
@@ -1826,10 +1808,7 @@
"anyOf": [
{
"type": "object",
"required": [
"cmd",
"name"
],
"required": ["cmd", "name"],
"properties": {
"args": {
"description": "The allowed arguments for the command execution.",
@@ -1852,10 +1831,7 @@
},
{
"type": "object",
"required": [
"name",
"sidecar"
],
"required": ["name", "sidecar"],
"properties": {
"args": {
"description": "The allowed arguments for the command execution.",
@@ -1886,10 +1862,7 @@
"anyOf": [
{
"type": "object",
"required": [
"cmd",
"name"
],
"required": ["cmd", "name"],
"properties": {
"args": {
"description": "The allowed arguments for the command execution.",
@@ -1912,10 +1885,7 @@
},
{
"type": "object",
"required": [
"name",
"sidecar"
],
"required": ["name", "sidecar"],
"properties": {
"args": {
"description": "The allowed arguments for the command execution.",
@@ -1964,20 +1934,14 @@
},
"allow": {
"description": "Data that defines what is allowed by the scope.",
"type": [
"array",
"null"
],
"type": ["array", "null"],
"items": {
"$ref": "#/definitions/Value"
}
},
"deny": {
"description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",
"type": [
"array",
"null"
],
"type": ["array", "null"],
"items": {
"$ref": "#/definitions/Value"
}
@@ -1985,9 +1949,7 @@
}
}
],
"required": [
"identifier"
]
"required": ["identifier"]
}
]
},
@@ -5481,37 +5443,27 @@
{
"description": "MacOS.",
"type": "string",
"enum": [
"macOS"
]
"enum": ["macOS"]
},
{
"description": "Windows.",
"type": "string",
"enum": [
"windows"
]
"enum": ["windows"]
},
{
"description": "Linux.",
"type": "string",
"enum": [
"linux"
]
"enum": ["linux"]
},
{
"description": "Android.",
"type": "string",
"enum": [
"android"
]
"enum": ["android"]
},
{
"description": "iOS.",
"type": "string",
"enum": [
"iOS"
]
"enum": ["iOS"]
}
]
},
@@ -5525,9 +5477,7 @@
{
"description": "A variable that is set while calling the command from the webview API.",
"type": "object",
"required": [
"validator"
],
"required": ["validator"],
"properties": {
"raw": {
"description": "Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.",
@@ -5560,4 +5510,4 @@
]
}
}
}
}

View File

@@ -9,9 +9,7 @@
"devUrl": "http://127.0.0.1:6130"
},
"bundle": {
"resources": [
"tray"
],
"resources": ["tray"],
"createUpdaterArtifacts": true,
"active": true,
"icon": [],
@@ -33,9 +31,7 @@
"installMode": "passive"
},
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDk1NkNENEZFNzg1MjVFMEEKUldRS1hsSjQvdFJzbGJXcnNPNXBYZ2RlTmlRRFZYYVI3YXhiWGpYZXFwVUtucThZUnJHUGw5dVUK",
"endpoints": [
"https://github.com/HuLaSpark/HuLa/releases/latest/download/latest.json"
]
"endpoints": ["https://github.com/HuLaSpark/HuLa/releases/latest/download/latest.json"]
}
}
}

View File

@@ -9,13 +9,9 @@
"devUrl": "http://127.0.0.1:6130"
},
"bundle": {
"resources": [
"tray"
],
"resources": ["tray"],
"active": true,
"targets": [
"app"
],
"targets": ["app"],
"icon": [
"icons/macos/32x32.png",
"icons/macos/128x128.png",

View File

@@ -9,13 +9,9 @@
"devUrl": "http://127.0.0.1:6130"
},
"bundle": {
"resources": [
"tray"
],
"resources": ["tray"],
"active": true,
"targets": [
"msi"
],
"targets": ["msi"],
"icon": [
"icons/windows/32x32.png",
"icons/windows/128x128.png",

View File

@@ -248,6 +248,8 @@ export const useMsgInput = (messageInputDom: Ref) => {
await nextTick(() => {
const dom = document.querySelector('.ait') as HTMLElement
dom.style.position = 'fixed'
dom.style.height = 'auto'
dom.style.maxHeight = '190px'
dom.style.left = `${res.x - 20}px`
dom.style.top = `${res.y - (dom.offsetHeight + 5)}px`
})

View File

@@ -47,4 +47,4 @@
:deep(.n-badge) {
color: inherit;
}
}

View File

@@ -2,7 +2,6 @@ import { fetch } from '@tauri-apps/plugin-http'
/**
* @description 请求参数
* @since Beta v0.5.1
* @property {"GET"|"POST"|"PUT"|"DELETE"} method 请求方法
* @property {Record<string, string>} [headers] 请求头
* @property {Record<string, any>} [query] 请求参数

View File

@@ -1,83 +1,83 @@
/**! 可以根据自己的喜好搭配渐变网址https://webgradients.com/ */
.login-box {
background-color: #d8eee2;
background-image:
radial-gradient(closest-side, #30cfd0, rgba(235, 105, 78, 0)),
radial-gradient(closest-side, #52aea3, rgba(243, 11, 164, 0)),
radial-gradient(closest-side, #fff1eb, rgba(254, 234, 131, 0)),
radial-gradient(closest-side, #fed6e3, rgba(170, 142, 245, 0)),
radial-gradient(closest-side, #a8edea, rgba(248, 192, 147, 0));
background-image: radial-gradient(closest-side, #30cfd0, rgba(235, 105, 78, 0)),
radial-gradient(closest-side, #52aea3, rgba(243, 11, 164, 0)),
radial-gradient(closest-side, #fff1eb, rgba(254, 234, 131, 0)),
radial-gradient(closest-side, #fed6e3, rgba(170, 142, 245, 0)),
radial-gradient(closest-side, #a8edea, rgba(248, 192, 147, 0));
background-size:
130vmax 130vmax,
80vmax 80vmax,
90vmax 90vmax,
110vmax 110vmax,
90vmax 90vmax;
130vmax 130vmax,
80vmax 80vmax,
90vmax 90vmax,
110vmax 110vmax,
90vmax 90vmax;
background-position:
-80vmax -80vmax,
60vmax -30vmax,
10vmax 10vmax,
-30vmax -10vmax,
50vmax 50vmax;
-80vmax -80vmax,
60vmax -30vmax,
10vmax 10vmax,
-30vmax -10vmax,
50vmax 50vmax;
background-repeat: no-repeat;
animation: 8s movement linear infinite;
}
@keyframes movement {
0%, 100% {
0%,
100% {
background-size:
130vmax 130vmax,
80vmax 80vmax,
90vmax 90vmax,
110vmax 110vmax,
90vmax 90vmax;
130vmax 130vmax,
80vmax 80vmax,
90vmax 90vmax,
110vmax 110vmax,
90vmax 90vmax;
background-position:
-80vmax -80vmax,
60vmax -30vmax,
10vmax 10vmax,
-30vmax -10vmax,
50vmax 50vmax;
-80vmax -80vmax,
60vmax -30vmax,
10vmax 10vmax,
-30vmax -10vmax,
50vmax 50vmax;
}
25% {
background-size:
100vmax 100vmax,
90vmax 90vmax,
100vmax 100vmax,
90vmax 90vmax,
60vmax 60vmax;
100vmax 100vmax,
90vmax 90vmax,
100vmax 100vmax,
90vmax 90vmax,
60vmax 60vmax;
background-position:
-60vmax -90vmax,
50vmax -40vmax,
0vmax -20vmax,
-40vmax -20vmax,
40vmax 60vmax;
-60vmax -90vmax,
50vmax -40vmax,
0vmax -20vmax,
-40vmax -20vmax,
40vmax 60vmax;
}
50% {
background-size:
80vmax 80vmax,
110vmax 110vmax,
80vmax 80vmax,
60vmax 60vmax,
80vmax 80vmax;
80vmax 80vmax,
110vmax 110vmax,
80vmax 80vmax,
60vmax 60vmax,
80vmax 80vmax;
background-position:
-50vmax -70vmax,
40vmax -30vmax,
10vmax 0vmax,
20vmax 10vmax,
30vmax 70vmax;
-50vmax -70vmax,
40vmax -30vmax,
10vmax 0vmax,
20vmax 10vmax,
30vmax 70vmax;
}
75% {
background-size:
90vmax 90vmax,
90vmax 90vmax,
100vmax 100vmax,
90vmax 90vmax,
70vmax 70vmax;
90vmax 90vmax,
90vmax 90vmax,
100vmax 100vmax,
90vmax 90vmax,
70vmax 70vmax;
background-position:
-50vmax -40vmax,
50vmax -30vmax,
20vmax 0vmax,
-10vmax 10vmax,
40vmax 60vmax;
-50vmax -40vmax,
50vmax -30vmax,
20vmax 0vmax,
-10vmax 10vmax,
40vmax 60vmax;
}
}

View File

@@ -1,10 +1,12 @@
@use "fonts";
@use 'fonts';
* {
font-family: var(--font-family), sans-serif !important;
font-weight: 500 !important;
caret-color: #13987f !important; /* 改变输入框光标的颜色 */
caret-color: #13987f !important; /* 改变输入框光标的颜色 */
}
html, body, svg {
html,
body,
svg {
outline: none;
overscroll-behavior: none; // 禁止mac的“触底反弹”效果
}
@@ -19,7 +21,7 @@ html, body, svg {
--center-bg-color: #fff;
--right-bg-color: #f1f1f1;
// 阴影样式的颜色
--box-shadow-color: rgba(0,0,0,0.08);
--box-shadow-color: rgba(0, 0, 0, 0.08);
// 文字颜色
--text-color: #18181c;
// 整体图标颜色
@@ -95,7 +97,7 @@ html[data-theme='dark'] {
--center-bg-color: #1b1b1b;
--right-bg-color: #161616;
// 阴影样式的颜色
--box-shadow-color: rgba(90,90,90,0.1);
--box-shadow-color: rgba(90, 90, 90, 0.1);
// 文字颜色
--text-color: #fff;
// 整体图标颜色
@@ -235,7 +237,10 @@ html[data-theme='dark'] {
}
/**! 修改naive-ui滚动条的间距 */
:deep(.n-scrollbar > .n-scrollbar-rail.n-scrollbar-rail--vertical, .n-scrollbar + .n-scrollbar-rail.n-scrollbar-rail--vertical) {
:deep(
.n-scrollbar > .n-scrollbar-rail.n-scrollbar-rail--vertical,
.n-scrollbar + .n-scrollbar-rail.n-scrollbar-rail--vertical
) {
right: 0;
}

View File

@@ -21,4 +21,4 @@
.n-scrollbar + .n-scrollbar-rail.n-scrollbar-rail--vertical > .n-scrollbar-rail__scrollbar
) {
display: none;
}
}

View File

@@ -1,8 +1,8 @@
.msg-box {
border-radius: 12px;
transition:
background-color 0.3s ease,
border-radius 0.3s ease;
background-color 0.3s ease,
border-radius 0.3s ease;
color: var(--text-color);
.text {
color: #808080;

View File

@@ -15,7 +15,11 @@
--border-active-color: #64a29c;
// 右边布局内容背景
--right-theme-bg-color: radial-gradient(circle at top left, rgba(255, 209, 255, 0.3) 4%, rgba(130, 193, 187, 0.3) 100%);
--right-theme-bg-color: radial-gradient(
circle at top left,
rgba(255, 209, 255, 0.3) 4%,
rgba(130, 193, 187, 0.3) 100%
);
// 聊天框主体样式
--right-chat-reply-color: #f1f1f1;
@@ -34,36 +38,40 @@
}
html[data-theme='dark'] {
.default {
// 侧边栏样式
--left-bg-color: rgba(62, 101, 100, 0.8);
--left-active-bg-color: rgba(222, 222, 222, 0.1);
--left-text-color: #ccc;
--left-icon-color: #ccc;
--left-active-hover: rgba(26, 178, 146, 0.8);
--left-bg-hover: rgba(133, 133, 133, 0.2);
--left-active-icon-color: #1ab292;
--left-win-icon-color: #1ab292;
.default {
// 侧边栏样式
--left-bg-color: rgba(62, 101, 100, 0.8);
--left-active-bg-color: rgba(222, 222, 222, 0.1);
--left-text-color: #ccc;
--left-icon-color: #ccc;
--left-active-hover: rgba(26, 178, 146, 0.8);
--left-bg-hover: rgba(133, 133, 133, 0.2);
--left-active-icon-color: #1ab292;
--left-win-icon-color: #1ab292;
// 包含边框的选中样式
--border-active-color: #64a29c;
// 包含边框的选中样式
--border-active-color: #64a29c;
// 右边布局内容背景
--right-theme-bg-color: radial-gradient(circle at top left, rgba(255, 209, 255, 0.2) 4%, rgba(130, 193, 187, 0.2) 100%);
// 右边布局内容背景
--right-theme-bg-color: radial-gradient(
circle at top left,
rgba(255, 209, 255, 0.2) 4%,
rgba(130, 193, 187, 0.2) 100%
);
// 聊天框主体样式
--right-chat-reply-color: #666;
--right-chat-reply-active-color: rgba(255, 255, 255, 0.1);
--right-chat-footer-line-color: #444;
// 聊天框主体样式
--right-chat-reply-color: #666;
--right-chat-reply-active-color: rgba(255, 255, 255, 0.1);
--right-chat-footer-line-color: #444;
// 消息列表样式
--msg-active-color: rgba(19, 152, 127, 0.4);
// 消息列表样式
--msg-active-color: rgba(19, 152, 127, 0.4);
//列表通用hover
--list-hover-color: rgba(244, 244, 244, 0.1);
//列表通用hover
--list-hover-color: rgba(244, 244, 244, 0.1);
//整体hover图标的样式
--icon-hover-color: rgba(90, 90, 90, 0.4);
}
//整体hover图标的样式
--icon-hover-color: rgba(90, 90, 90, 0.4);
}
}
/**! end */

View File

@@ -1,36 +1,36 @@
/**! 主题变量 */
:root {
.simple {
// 侧边栏样式
--left-bg-color: rgba(229, 229, 230, 1);
--left-active-bg-color: rgba(193, 193, 193, 0.6);
--left-text-color: #333;
--left-icon-color: #333;
--left-active-hover: #13987f;
--left-bg-hover: rgba(193, 193, 193, 0.4);
--left-active-icon-color: #13987f;
--left-win-icon-color: rgba(19, 152, 127, 0.6);
.simple {
// 侧边栏样式
--left-bg-color: rgba(229, 229, 230, 1);
--left-active-bg-color: rgba(193, 193, 193, 0.6);
--left-text-color: #333;
--left-icon-color: #333;
--left-active-hover: #13987f;
--left-bg-hover: rgba(193, 193, 193, 0.4);
--left-active-icon-color: #13987f;
--left-win-icon-color: rgba(19, 152, 127, 0.6);
// 包含边框的选中样式
--border-active-color: #13987f;
// 包含边框的选中样式
--border-active-color: #13987f;
// 右边布局内容背景
--right-theme-bg-color: #f1f1f1;
// 右边布局内容背景
--right-theme-bg-color: #f1f1f1;
// 聊天框主体样式
--right-chat-reply-color: #ddd;
--right-chat-reply-active-color: rgba(99, 99, 99, 0.1);
--right-chat-footer-line-color: #e3e3e3;
// 聊天框主体样式
--right-chat-reply-color: #ddd;
--right-chat-reply-active-color: rgba(99, 99, 99, 0.1);
--right-chat-footer-line-color: #e3e3e3;
// 消息列表样式
--msg-active-color: #13987f;
// 消息列表样式
--msg-active-color: #13987f;
//列表通用hover
--list-hover-color: rgba(99, 99, 99, 0.1);
//列表通用hover
--list-hover-color: rgba(99, 99, 99, 0.1);
//整体hover图标的样式
--icon-hover-color: #e7e7e7;
}
//整体hover图标的样式
--icon-hover-color: #e7e7e7;
}
}
html[data-theme='dark'] {