mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-11 15:22:54 +02:00
Fix lint problems
This commit is contained in:
Generated
+6
-4
@@ -3389,6 +3389,10 @@
|
|||||||
"resolved": "src-tauri/yaak_sse",
|
"resolved": "src-tauri/yaak_sse",
|
||||||
"link": true
|
"link": true
|
||||||
},
|
},
|
||||||
|
"node_modules/@yaakapp-internal/templates": {
|
||||||
|
"resolved": "src-tauri/yaak_templates",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
"node_modules/@yaakapp/api": {
|
"node_modules/@yaakapp/api": {
|
||||||
"resolved": "plugin-runtime-types",
|
"resolved": "plugin-runtime-types",
|
||||||
"link": true
|
"link": true
|
||||||
@@ -13752,9 +13756,8 @@
|
|||||||
"version": "1.0.0"
|
"version": "1.0.0"
|
||||||
},
|
},
|
||||||
"src-tauri/yaak_templates": {
|
"src-tauri/yaak_templates": {
|
||||||
"name": "@yaakapp-internal/template",
|
"name": "@yaakapp-internal/templates",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0"
|
||||||
"extraneous": true
|
|
||||||
},
|
},
|
||||||
"src-web": {
|
"src-web": {
|
||||||
"name": "@yaakapp/app",
|
"name": "@yaakapp/app",
|
||||||
@@ -13779,7 +13782,6 @@
|
|||||||
"@tauri-apps/plugin-log": "^2.0.0",
|
"@tauri-apps/plugin-log": "^2.0.0",
|
||||||
"@tauri-apps/plugin-os": "^2.0.0",
|
"@tauri-apps/plugin-os": "^2.0.0",
|
||||||
"@tauri-apps/plugin-shell": "^2.0.0",
|
"@tauri-apps/plugin-shell": "^2.0.0",
|
||||||
"@yaakapp-internal/license": "^1.0.0",
|
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"classnames": "^2.5.1",
|
"classnames": "^2.5.1",
|
||||||
"cm6-graphql": "^0.0.9",
|
"cm6-graphql": "^0.0.9",
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
|
export type FnArg = { name: string, value: Val, };
|
||||||
|
|
||||||
|
export type Token = { "type": "raw", text: string, } | { "type": "tag", val: Val, } | { "type": "eof" };
|
||||||
|
|
||||||
|
export type Tokens = { tokens: Array<Token>, };
|
||||||
|
|
||||||
|
export type Val = { "type": "str", text: string, } | { "type": "var", name: string, } | { "type": "bool", value: boolean, } | { "type": "fn", name: string, args: Array<FnArg>, } | { "type": "null" };
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export * from './bindings/parser';
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "@yaakapp-internal/templates",
|
||||||
|
"private": true,
|
||||||
|
"version": "1.0.0",
|
||||||
|
"main": "index.ts"
|
||||||
|
}
|
||||||
@@ -12,7 +12,7 @@ const labels: Record<LicenseCheckStatus['type'], string | null> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function LicenseBadge() {
|
export function LicenseBadge() {
|
||||||
const openSettings = useOpenSettings();
|
const openSettings = useOpenSettings(SettingsTab.License);
|
||||||
const { check } = useLicense();
|
const { check } = useLicense();
|
||||||
|
|
||||||
if (check.data == null) {
|
if (check.data == null) {
|
||||||
@@ -29,7 +29,7 @@ export function LicenseBadge() {
|
|||||||
size="2xs"
|
size="2xs"
|
||||||
variant="border"
|
variant="border"
|
||||||
className="!rounded-full mx-1"
|
className="!rounded-full mx-1"
|
||||||
onClick={() => openSettings.mutate(SettingsTab.License)}
|
onClick={() => openSettings.mutate()}
|
||||||
color={
|
color={
|
||||||
check.data.type == 'trial_ended' || check.data.type === 'personal_use'
|
check.data.type == 'trial_ended' || check.data.type === 'personal_use'
|
||||||
? 'primary'
|
? 'primary'
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import type {
|
|||||||
TemplateFunctionSelectArg,
|
TemplateFunctionSelectArg,
|
||||||
TemplateFunctionTextArg,
|
TemplateFunctionTextArg,
|
||||||
} from '@yaakapp-internal/plugin';
|
} from '@yaakapp-internal/plugin';
|
||||||
import type { FnArg, Tokens } from '@yaakapp-internal/template';
|
import type { FnArg, Tokens } from '@yaakapp-internal/templates';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { useCallback, useMemo, useState } from 'react';
|
import { useCallback, useMemo, useState } from 'react';
|
||||||
import { useActiveRequest } from '../hooks/useActiveRequest';
|
import { useActiveRequest } from '../hooks/useActiveRequest';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { Tokens } from '@yaakapp-internal/template';
|
import type { Tokens } from '@yaakapp-internal/templates';
|
||||||
import { useCallback, useMemo, useState } from 'react';
|
import { useCallback, useMemo, useState } from 'react';
|
||||||
import { useActiveEnvironmentVariables } from '../hooks/useActiveEnvironmentVariables';
|
import { useActiveEnvironmentVariables } from '../hooks/useActiveEnvironmentVariables';
|
||||||
import { useRenderTemplate } from '../hooks/useRenderTemplate';
|
import { useRenderTemplate } from '../hooks/useRenderTemplate';
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import React, { memo } from 'react';
|
import React, { memo } from 'react';
|
||||||
import { appInfo } from '../hooks/useAppInfo';
|
|
||||||
import { useToggleCommandPalette } from '../hooks/useToggleCommandPalette';
|
import { useToggleCommandPalette } from '../hooks/useToggleCommandPalette';
|
||||||
import { CookieDropdown } from './CookieDropdown';
|
import { CookieDropdown } from './CookieDropdown';
|
||||||
import { Button } from './core/Button';
|
|
||||||
import { Icon } from './core/Icon';
|
import { Icon } from './core/Icon';
|
||||||
import { IconButton } from './core/IconButton';
|
import { IconButton } from './core/IconButton';
|
||||||
import { HStack } from './core/Stacks';
|
import { HStack } from './core/Stacks';
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import { invokeCmd } from '../lib/tauri';
|
|||||||
import { useActiveWorkspace } from './useActiveWorkspace';
|
import { useActiveWorkspace } from './useActiveWorkspace';
|
||||||
import { useAppRoutes } from './useAppRoutes';
|
import { useAppRoutes } from './useAppRoutes';
|
||||||
|
|
||||||
export function useOpenSettings() {
|
export function useOpenSettings(tab?: SettingsTab) {
|
||||||
const routes = useAppRoutes();
|
const routes = useAppRoutes();
|
||||||
const workspace = useActiveWorkspace();
|
const workspace = useActiveWorkspace();
|
||||||
return useMutation({
|
return useMutation({
|
||||||
mutationKey: ['open_settings'],
|
mutationKey: ['open_settings'],
|
||||||
mutationFn: async (tab?: SettingsTab) => {
|
mutationFn: async () => {
|
||||||
if (workspace == null) return;
|
if (workspace == null) return;
|
||||||
|
|
||||||
await invokeCmd('cmd_new_child_window', {
|
await invokeCmd('cmd_new_child_window', {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import type { Tokens } from '@yaakapp-internal/template';
|
import type { Tokens } from '@yaakapp-internal/templates';
|
||||||
import { invokeCmd } from '../lib/tauri';
|
import { invokeCmd } from '../lib/tauri';
|
||||||
|
|
||||||
export function useParseTemplate(template: string) {
|
export function useParseTemplate(template: string) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import type { Tokens } from '@yaakapp-internal/template';
|
import type { Tokens } from '@yaakapp-internal/templates';
|
||||||
import { invokeCmd } from '../lib/tauri';
|
import { invokeCmd } from '../lib/tauri';
|
||||||
|
|
||||||
export function useTemplateTokensToString(tokens: Tokens) {
|
export function useTemplateTokensToString(tokens: Tokens) {
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
"@tauri-apps/plugin-log": "^2.0.0",
|
"@tauri-apps/plugin-log": "^2.0.0",
|
||||||
"@tauri-apps/plugin-os": "^2.0.0",
|
"@tauri-apps/plugin-os": "^2.0.0",
|
||||||
"@tauri-apps/plugin-shell": "^2.0.0",
|
"@tauri-apps/plugin-shell": "^2.0.0",
|
||||||
"@yaakapp-internal/license": "^1.0.0",
|
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"classnames": "^2.5.1",
|
"classnames": "^2.5.1",
|
||||||
"cm6-graphql": "^0.0.9",
|
"cm6-graphql": "^0.0.9",
|
||||||
|
|||||||
Reference in New Issue
Block a user