Skip to content

Commit

Permalink
Jamakase/add cloud version (airbytehq#5198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamakase authored Aug 9, 2021
1 parent eb9afd7 commit 219877f
Show file tree
Hide file tree
Showing 97 changed files with 7,335 additions and 574 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ crash.log
# Airflow Demo
resources/examples/airflow/logs/*
!resources/examples/airflow/logs/.gitkeep

# Cloud Demo
!airbyte-webapp/src/packages/cloud/data
20 changes: 13 additions & 7 deletions airbyte-webapp/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
module.exports = {
"stories": [
"../src/**/*.stories.@(ts|tsx)"
],
"addons": [
stories: ["../src/**/*.stories.@(ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app",
"storybook-addon-styled-component-theme/dist"
]
}
"storybook-addon-styled-component-theme/dist",
],
webpackFinal: (config) => {
config.resolve.modules.push(process.cwd() + "/node_modules");
config.resolve.modules.push(process.cwd() + "/src");

// this is needed for working w/ linked folders
config.resolve.symlinks = false;
return config;
},
};
15 changes: 12 additions & 3 deletions airbyte-webapp/.storybook/withProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { Router } from "react-router-dom";
import * as React from "react";
import { IntlProvider } from "react-intl";
import { createMemoryHistory } from "history";
import { ThemeProvider } from "styled-components";

import { Theme } from "../src/theme";
// TODO: theme was not working correctly so imported directly
import { theme, Theme } from "../src/theme";
import GlobalStyle from "../src/global-styles";
import messages from "../src/locales/en.json";

interface Props {
theme?: Theme;
Expand All @@ -16,11 +20,16 @@ interface Props {

class WithProviders extends React.Component<Props> {
render() {
const { theme, children } = this.props;
const { children } = this.props;

return (
<Router history={createMemoryHistory()}>
<ThemeProvider theme={theme}>{children}</ThemeProvider>
<IntlProvider messages={messages} locale={"en"}>
<ThemeProvider theme={theme}>
<GlobalStyle />
{children}
</ThemeProvider>
</IntlProvider>
</Router>
);
}
Expand Down
Loading

0 comments on commit 219877f

Please sign in to comment.