mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-18 01:44:36 +08:00
Compare commits
6 Commits
features/p
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1d0c3b3a2 | ||
|
|
724bd9e4e7 | ||
|
|
72abdf4524 | ||
|
|
b400bbb48d | ||
|
|
c2514e9f2d | ||
|
|
c32a5a4829 |
4
build.sh
Executable file
4
build.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
git pull
|
||||||
|
cd plugin && npm i && cd .. && npm i
|
||||||
|
quasar build
|
||||||
4
dev.sh
Executable file
4
dev.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
git pull
|
||||||
|
cd plugin && npm i && cd .. && npm i
|
||||||
|
quasar dev
|
||||||
7822
package-lock.json
generated
7822
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/eslint-parser": "^7.13.14",
|
"@babel/eslint-parser": "^7.13.14",
|
||||||
"@quasar/app-webpack": "^3.5.2",
|
"@quasar/app-webpack": "^4.2.0",
|
||||||
"@types/mousetrap": "^1.6.9",
|
"@types/mousetrap": "^1.6.9",
|
||||||
"copy-webpack-plugin": "^10.2.4",
|
"copy-webpack-plugin": "^10.2.4",
|
||||||
"eslint": "^8.10.0",
|
"eslint": "^8.10.0",
|
||||||
|
|||||||
@@ -257,12 +257,8 @@ export default defineComponent({
|
|||||||
defaultConfig.apiUrl = "";
|
defaultConfig.apiUrl = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
this.aiConfigs.push(defaultConfig);
|
this.aiConfigs.unshift(defaultConfig);
|
||||||
|
|
||||||
// 滚动到底部
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.scrollArea.setScrollPosition("vertical", 99999);
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
getConfigListHeight() {
|
getConfigListHeight() {
|
||||||
const counts = Math.min(this.aiConfigs.length, 3);
|
const counts = Math.min(this.aiConfigs.length, 3);
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export const controlCommands = {
|
|||||||
{
|
{
|
||||||
label: "结束",
|
label: "结束",
|
||||||
value: "end",
|
value: "end",
|
||||||
codeTemplate: "}",
|
codeTemplate: "};",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -112,7 +112,7 @@ export const controlCommands = {
|
|||||||
{
|
{
|
||||||
label: "结束",
|
label: "结束",
|
||||||
value: "end",
|
value: "end",
|
||||||
codeTemplate: "}",
|
codeTemplate: "};",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -169,7 +169,7 @@ export const controlCommands = {
|
|||||||
{
|
{
|
||||||
label: "结束",
|
label: "结束",
|
||||||
value: "end",
|
value: "end",
|
||||||
codeTemplate: "}",
|
codeTemplate: "};",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -225,7 +225,7 @@ export const controlCommands = {
|
|||||||
{
|
{
|
||||||
label: "结束",
|
label: "结束",
|
||||||
value: "end",
|
value: "end",
|
||||||
codeTemplate: "}",
|
codeTemplate: "};",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -266,7 +266,7 @@ export const controlCommands = {
|
|||||||
{
|
{
|
||||||
label: "结束",
|
label: "结束",
|
||||||
value: "end",
|
value: "end",
|
||||||
codeTemplate: "}",
|
codeTemplate: "};",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -320,7 +320,7 @@ export const controlCommands = {
|
|||||||
{
|
{
|
||||||
label: "结束",
|
label: "结束",
|
||||||
value: "end",
|
value: "end",
|
||||||
codeTemplate: "}",
|
codeTemplate: "};",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -360,7 +360,7 @@ export const controlCommands = {
|
|||||||
{
|
{
|
||||||
label: "结束",
|
label: "结束",
|
||||||
value: "end",
|
value: "end",
|
||||||
codeTemplate: "}",
|
codeTemplate: "};",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export function generateCode(flow) {
|
|||||||
if (cmd.asyncMode === "await") {
|
if (cmd.asyncMode === "await") {
|
||||||
cmdCode = `await ${cmdCode}`;
|
cmdCode = `await ${cmdCode}`;
|
||||||
}
|
}
|
||||||
code.push(indent + cmdCode + comma);
|
code.push(indent + cmdCode + (cmd.isControlFlow ? "" : comma));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -70,8 +70,6 @@ export function generateUBrowserCode(argvs) {
|
|||||||
// 添加其他操作
|
// 添加其他操作
|
||||||
if (argvs.operations?.length) {
|
if (argvs.operations?.length) {
|
||||||
argvs.operations.forEach(({ value, args }) => {
|
argvs.operations.forEach(({ value, args }) => {
|
||||||
if (!args?.length) return;
|
|
||||||
|
|
||||||
const stringifiedArgs = args
|
const stringifiedArgs = args
|
||||||
.map((arg) => stringifyArgv(arg))
|
.map((arg) => stringifyArgv(arg))
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
|
|||||||
@@ -491,13 +491,13 @@ export const ubrowserOperationConfigs = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
setValue: {
|
setValue: {
|
||||||
value: "setValue",
|
value: "value",
|
||||||
label: "设置值",
|
label: "设置值",
|
||||||
icon: "check_box",
|
icon: "check_box",
|
||||||
config: [
|
config: [
|
||||||
{
|
{
|
||||||
label: "元素选择器",
|
label: "元素选择器",
|
||||||
icon: "varInput",
|
icon: "find_in_page",
|
||||||
component: "VariableInput",
|
component: "VariableInput",
|
||||||
width: 6,
|
width: 6,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user