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.
26 lines
732 B
TypeScript
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({});
|