Files
vscode-codeql/extensions/ql-vscode/src/stories/remote-queries/RemoteQueries.stories.tsx
Koen Vlaswinkel 2e7557ba09 Run type checking on all directories in CI
This commit adds a new step to the CI workflow that runs type checking
on all directories containing `tsconfig.json` files, using `find` and
`xargs`. Unfortunately, this does not work on Windows, so on Windows
it's not possible to run all of these type checks locally.
2022-12-07 16:50:19 +01:00

26 lines
732 B
TypeScript

import * as React from "react";
import { useEffect } from "react";
import { ComponentStory, ComponentMeta } from "@storybook/react";
import { RemoteQueries } from "../../view/remote-queries/RemoteQueries";
import * as remoteQueryResult from "./data/remoteQueryResultMessage.json";
import * as analysesResults from "./data/analysesResultsMessage.json";
export default {
title: "MRVA/Remote Queries",
component: RemoteQueries,
} as ComponentMeta<typeof RemoteQueries>;
const Template: ComponentStory<typeof RemoteQueries> = () => {
useEffect(() => {
window.postMessage(remoteQueryResult);
window.postMessage(analysesResults);
});
return <RemoteQueries />;
};
export const Top10JavaScript = Template.bind({});