mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Fix lint issues
This commit is contained in:
8
package-lock.json
generated
8
package-lock.json
generated
@@ -27,7 +27,7 @@
|
|||||||
"@tauri-apps/plugin-log": "^2.0.0-rc.1",
|
"@tauri-apps/plugin-log": "^2.0.0-rc.1",
|
||||||
"@tauri-apps/plugin-os": "^2.0.0-rc.1",
|
"@tauri-apps/plugin-os": "^2.0.0-rc.1",
|
||||||
"@tauri-apps/plugin-shell": "^2.0.0-rc.1",
|
"@tauri-apps/plugin-shell": "^2.0.0-rc.1",
|
||||||
"@yaakapp/api": "^0.1.16",
|
"@yaakapp/api": "^0.1.17",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"classnames": "^2.3.2",
|
"classnames": "^2.3.2",
|
||||||
"cm6-graphql": "^0.0.9",
|
"cm6-graphql": "^0.0.9",
|
||||||
@@ -2986,9 +2986,9 @@
|
|||||||
"integrity": "sha512-N8tkAACJx2ww8vFMneJmaAgmjAG1tnVBZJRLRcx061tmsLRZHSEZSLuGWnwPtunsSLvSqXQ2wfp7Mgqg1I+2dQ=="
|
"integrity": "sha512-N8tkAACJx2ww8vFMneJmaAgmjAG1tnVBZJRLRcx061tmsLRZHSEZSLuGWnwPtunsSLvSqXQ2wfp7Mgqg1I+2dQ=="
|
||||||
},
|
},
|
||||||
"node_modules/@yaakapp/api": {
|
"node_modules/@yaakapp/api": {
|
||||||
"version": "0.1.16",
|
"version": "0.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.17.tgz",
|
||||||
"integrity": "sha512-rWXXb0iUiUk6jtLhZFcbdMRIf6dYXY9wyIvFG9rVpyMxB0LWjim8VpvwF4IK4Y/paxvZ9bjvnaD5PAB4pH6prg==",
|
"integrity": "sha512-VE9A0FDZwczZkTAbMOYjQOKzbW1KmaItq/mPSuTgU87Lf570JUepcHVtL7QFLV1U/R5q+n7I6xQg9Q2mDj/OWQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "^22.0.0"
|
"@types/node": "^22.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
"@tauri-apps/plugin-log": "^2.0.0-rc.1",
|
"@tauri-apps/plugin-log": "^2.0.0-rc.1",
|
||||||
"@tauri-apps/plugin-os": "^2.0.0-rc.1",
|
"@tauri-apps/plugin-os": "^2.0.0-rc.1",
|
||||||
"@tauri-apps/plugin-shell": "^2.0.0-rc.1",
|
"@tauri-apps/plugin-shell": "^2.0.0-rc.1",
|
||||||
"@yaakapp/api": "^0.1.16",
|
"@yaakapp/api": "^0.1.17",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"classnames": "^2.3.2",
|
"classnames": "^2.3.2",
|
||||||
"cm6-graphql": "^0.0.9",
|
"cm6-graphql": "^0.0.9",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@yaakapp/api",
|
"name": "@yaakapp/api",
|
||||||
"version": "0.1.16",
|
"version": "0.1.17",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"typings": "./lib/index.d.ts",
|
"typings": "./lib/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ export * from './gen/InternalEvent';
|
|||||||
export * from './gen/InternalEventPayload';
|
export * from './gen/InternalEventPayload';
|
||||||
export * from './gen/KeyValue';
|
export * from './gen/KeyValue';
|
||||||
export * from './gen/Model';
|
export * from './gen/Model';
|
||||||
|
export * from './gen/PluginBootRequest';
|
||||||
|
export * from './gen/PluginBootResponse';
|
||||||
export * from './gen/RenderHttpRequestRequest';
|
export * from './gen/RenderHttpRequestRequest';
|
||||||
export * from './gen/RenderHttpRequestResponse';
|
export * from './gen/RenderHttpRequestResponse';
|
||||||
export * from './gen/RenderPurpose';
|
export * from './gen/RenderPurpose';
|
||||||
|
|||||||
@@ -45,10 +45,9 @@ export function GrpcProtoSelection({ requestId }: Props) {
|
|||||||
multiple: true,
|
multiple: true,
|
||||||
filters: [{ name: 'Proto Files', extensions: ['proto'] }],
|
filters: [{ name: 'Proto Files', extensions: ['proto'] }],
|
||||||
});
|
});
|
||||||
if (selected == null) {
|
if (selected == null) return;
|
||||||
return;
|
|
||||||
}
|
const newFiles = selected.filter((p) => !protoFiles.includes(p));
|
||||||
const newFiles = selected.map((f) => f.path).filter((p) => !protoFiles.includes(p));
|
|
||||||
await protoFilesKv.set([...protoFiles, ...newFiles]);
|
await protoFilesKv.set([...protoFiles, ...newFiles]);
|
||||||
await grpc.reflect.refetch();
|
await grpc.reflect.refetch();
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import type { BootResponse } from '@yaakapp/api';
|
import type { PluginBootResponse } from '@yaakapp/api';
|
||||||
import { invokeCmd } from '../lib/tauri';
|
import { invokeCmd } from '../lib/tauri';
|
||||||
|
|
||||||
export function usePluginInfo(id: string) {
|
export function usePluginInfo(id: string) {
|
||||||
return useQuery({
|
return useQuery({
|
||||||
queryKey: ['plugin_info', id],
|
queryKey: ['plugin_info', id],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const info = (await invokeCmd('cmd_plugin_info', { id })) as BootResponse;
|
const info = (await invokeCmd('cmd_plugin_info', { id })) as PluginBootResponse;
|
||||||
return info;
|
return info;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user