mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-11 03:26:58 +02:00
Don't build plugins
This commit is contained in:
2
.github/workflows/artifacts.yml
vendored
2
.github/workflows/artifacts.yml
vendored
@@ -46,8 +46,6 @@ jobs:
|
|||||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
|
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Build plugins
|
|
||||||
run: npm run build:plugins
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm test
|
run: npm test
|
||||||
# Pin dev version to get non-default targets
|
# Pin dev version to get non-default targets
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import React, { createContext, useContext, useMemo, useState } from 'react';
|
import React, { createContext, useContext, useMemo, useState } from 'react';
|
||||||
|
import { useHotKey } from '../hooks/useHotKey';
|
||||||
import { trackEvent } from '../lib/analytics';
|
import { trackEvent } from '../lib/analytics';
|
||||||
import type { DialogProps } from './core/Dialog';
|
import type { DialogProps } from './core/Dialog';
|
||||||
import { Dialog } from './core/Dialog';
|
import { Dialog } from './core/Dialog';
|
||||||
@@ -59,6 +60,7 @@ export const DialogProvider = ({ children }: { children: React.ReactNode }) => {
|
|||||||
function DialogInstance({ id, render, ...props }: DialogEntry) {
|
function DialogInstance({ id, render, ...props }: DialogEntry) {
|
||||||
const { actions } = useContext(DialogContext);
|
const { actions } = useContext(DialogContext);
|
||||||
const children = render({ hide: () => actions.hide(id) });
|
const children = render({ hide: () => actions.hide(id) });
|
||||||
|
useHotKey('popup.close', () => actions.hide(id));
|
||||||
return (
|
return (
|
||||||
<Dialog open onClose={() => actions.hide(id)} {...props}>
|
<Dialog open onClose={() => actions.hide(id)} {...props}>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
Reference in New Issue
Block a user