diff --git a/.eslintrc.cjs b/.eslintrc.cjs index d3c06978..a88c2109 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,43 +1,46 @@ module.exports = { extends: [ - "eslint:recommended", - "plugin:react/recommended", - "plugin:react-hooks/recommended", - "plugin:import/recommended", - "plugin:jsx-a11y/recommended", - "plugin:@typescript-eslint/recommended", - "eslint-config-prettier" + 'eslint:recommended', + 'plugin:react/recommended', + 'plugin:react-hooks/recommended', + 'plugin:import/recommended', + 'plugin:jsx-a11y/recommended', + 'plugin:@typescript-eslint/recommended', + 'eslint-config-prettier', ], - parser: "@typescript-eslint/parser", + parser: '@typescript-eslint/parser', parserOptions: { - project: ["./tsconfig.json"] + project: ['./tsconfig.json'], }, ignorePatterns: [ - "scripts/**/*", - "plugin-runtime/**/*", - "plugin-runtime-types/**/*", - "src-tauri/**/*", - "plugins/**/*", + 'scripts/**/*', + 'plugin-runtime/**/*', + 'plugin-runtime-types/**/*', + 'src-tauri/**/*', + 'plugins/**/*', ], settings: { react: { - version: "detect" + version: 'detect', }, - "import/resolver": { + 'import/resolver': { node: { - paths: ["src-web"], - extensions: [".ts", ".tsx"] - } - } + paths: ['src-web'], + extensions: ['.ts', '.tsx'], + }, + }, }, rules: { - "jsx-a11y/no-autofocus": "off", - "react/react-in-jsx-scope": "off", - "import/no-unresolved": "off", - "@typescript-eslint/consistent-type-imports": ["error", { - prefer: "type-imports", - disallowTypeAnnotations: true, - fixStyle: "separate-type-imports" - }] - } + 'jsx-a11y/no-autofocus': 'off', + 'react/react-in-jsx-scope': 'off', + 'import/no-unresolved': 'off', + '@typescript-eslint/consistent-type-imports': [ + 'error', + { + prefer: 'type-imports', + disallowTypeAnnotations: true, + fixStyle: 'separate-type-imports', + }, + ], + }, }; diff --git a/src-tauri/gen/schemas/capabilities.json b/src-tauri/gen/schemas/capabilities.json index d45de640..07b2db23 100644 --- a/src-tauri/gen/schemas/capabilities.json +++ b/src-tauri/gen/schemas/capabilities.json @@ -1 +1 @@ -{"main":{"identifier":"main","description":"Main permissions","local":true,"windows":["*"],"permissions":["core:event:allow-emit","core:event:allow-listen","core:event:allow-unlisten","os:allow-os-type","clipboard-manager:allow-write-text","clipboard-manager:allow-clear","clipboard-manager:allow-read-text","dialog:allow-open","dialog:allow-save","fs:allow-read-file","fs:allow-read-text-file",{"identifier":"fs:scope","allow":[{"path":"$APPDATA"},{"path":"$APPDATA/**"}]},"shell:allow-open","core:webview:allow-set-webview-zoom","core:window:allow-close","core:window:allow-is-fullscreen","core:window:allow-maximize","core:window:allow-minimize","core:window:allow-toggle-maximize","core:window:allow-set-decorations","core:window:allow-set-title","core:window:allow-start-dragging","core:window:allow-unmaximize","core:window:allow-theme","clipboard-manager:allow-read-text","clipboard-manager:allow-write-text"]}} \ No newline at end of file +{"main":{"identifier":"main","description":"Main permissions","local":true,"windows":["*"],"permissions":["core:event:allow-emit","core:event:allow-listen","core:event:allow-unlisten","os:allow-os-type","clipboard-manager:allow-clear","clipboard-manager:allow-write-text","clipboard-manager:allow-read-text","dialog:allow-open","dialog:allow-save","fs:allow-read-file","fs:allow-read-text-file",{"identifier":"fs:scope","allow":[{"path":"$APPDATA"},{"path":"$APPDATA/**"}]},"shell:allow-open","core:webview:allow-set-webview-zoom","core:window:allow-close","core:window:allow-is-fullscreen","core:window:allow-maximize","core:window:allow-minimize","core:window:allow-toggle-maximize","core:window:allow-set-decorations","core:window:allow-set-title","core:window:allow-start-dragging","core:window:allow-unmaximize","core:window:allow-theme","clipboard-manager:allow-read-text","clipboard-manager:allow-write-text"]}} \ No newline at end of file diff --git a/src-web/components/CommandPalette.tsx b/src-web/components/CommandPalette.tsx index 11605698..92bad6ed 100644 --- a/src-web/components/CommandPalette.tsx +++ b/src-web/components/CommandPalette.tsx @@ -263,7 +263,7 @@ export function CommandPalette({ onClose }: { onClose: () => void }) { searchText: fallbackRequestName(r), label: ( - +
{fallbackRequestName(r)}
), @@ -389,7 +389,7 @@ export function CommandPalette({ onClose }: { onClose: () => void }) { hideLabel leftSlot={
- +
} name="command" @@ -446,9 +446,9 @@ function CommandPaletteItem({ justify="start" className={classNames( 'w-full h-sm flex items-center rounded px-1.5', - 'hover:text-fg', - active && 'bg-background-highlight-secondary text-fg', - !active && 'text-fg-subtle', + 'hover:text', + active && 'bg-surface-highlight-secondary text', + !active && 'text-text-subtle', )} > {children} diff --git a/src-web/components/CookieDialog.tsx b/src-web/components/CookieDialog.tsx index 3711e160..40245a36 100644 --- a/src-web/components/CookieDialog.tsx +++ b/src-web/components/CookieDialog.tsx @@ -29,7 +29,7 @@ export const CookieDialog = function ({ cookieJarId }: Props) { return (
- +
@@ -37,13 +37,13 @@ export const CookieDialog = function ({ cookieJarId }: Props) { - + {cookieJar?.cookies.map((c: Cookie) => ( -
Domain
{cookieDomain(c)} + {c.raw_cookie} diff --git a/src-web/components/DefaultLayout.tsx b/src-web/components/DefaultLayout.tsx index 59280ea0..e81341b6 100644 --- a/src-web/components/DefaultLayout.tsx +++ b/src-web/components/DefaultLayout.tsx @@ -22,7 +22,7 @@ export function DefaultLayout() { transition={{ duration: 0.1, delay: 0.1 }} className={classNames( 'w-full h-full', - osInfo?.osType === 'linux' && 'border border-background-highlight-secondary', + osInfo?.osType === 'linux' && 'border border-border-subtle', )} > diff --git a/src-web/components/DropMarker.tsx b/src-web/components/DropMarker.tsx index a306a35d..80e42319 100644 --- a/src-web/components/DropMarker.tsx +++ b/src-web/components/DropMarker.tsx @@ -14,7 +14,7 @@ export const DropMarker = memo( 'relative w-full h-0 overflow-visible pointer-events-none', )} > -
+
); }, diff --git a/src-web/components/EmptyStateText.tsx b/src-web/components/EmptyStateText.tsx index dd4d5c79..ab46801e 100644 --- a/src-web/components/EmptyStateText.tsx +++ b/src-web/components/EmptyStateText.tsx @@ -12,8 +12,8 @@ export function EmptyStateText({ children, className }: Props) {
{children} diff --git a/src-web/components/EnvironmentActionsDropdown.tsx b/src-web/components/EnvironmentActionsDropdown.tsx index b16ef2e0..b31d03b4 100644 --- a/src-web/components/EnvironmentActionsDropdown.tsx +++ b/src-web/components/EnvironmentActionsDropdown.tsx @@ -71,8 +71,8 @@ export const EnvironmentActionsDropdown = memo(function EnvironmentActionsDropdo size="sm" className={classNames( className, - 'text-fg !px-2 truncate', - activeEnvironment == null && 'text-fg-subtler italic', + 'text !px-2 truncate', + activeEnvironment == null && 'text-text-subtlest italic', )} {...buttonProps} > diff --git a/src-web/components/EnvironmentEditDialog.tsx b/src-web/components/EnvironmentEditDialog.tsx index 8c3a1cd0..329ca324 100644 --- a/src-web/components/EnvironmentEditDialog.tsx +++ b/src-web/components/EnvironmentEditDialog.tsx @@ -68,7 +68,7 @@ export const EnvironmentEditDialog = function ({ initialEnvironment }: Props) { color="custom" title="Add sub environment" icon="plusCircle" - iconClassName="text-fg-subtler group-hover:text-fg-subtle" + iconClassName="text-text-subtlest group-hover:text-text-subtle" className="group" onClick={handleCreateEnvironment} /> @@ -97,7 +97,7 @@ export const EnvironmentEditDialog = function ({ initialEnvironment }: Props) { secondSlot={() => activeWorkspace != null && ( @@ -175,7 +175,7 @@ const EnvironmentEditor = function ({
{environment?.name ?? 'Global Variables'}