{"size": 933, "ext": "js", "max_stars_repo_path": "resources/js/bootstrap.js", "max_stars_repo_name": "niveshsaharan/shark", "max_stars_repo_stars_event_min_datetime": "2020-07-24T17:57:37.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-24T17:57:37.000Z", "max_issues_repo_path": "resources/js/bootstrap.js", "max_issues_repo_name": "niveshsaharan/shark", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/bootstrap.js", "max_forks_repo_name": "niveshsaharan/shark", "max_forks_repo_forks_event_min_datetime": "2020-10-31T10:17:57.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-07T09:23:38.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 29.15625, "max_line_length": 87, "alphanum_fraction": 0.5702036442}
import React from 'react';
import ReactDOM from 'react-dom';
import { AppProvider } from '@shopify/polaris';
import { Provider } from '@shopify/app-bridge-react';
import enTranslations from '@shopify/polaris/locales/en.json';
import { config } from './functions';
import App from './components/App';

const shopOrigin = config('shop.shopify_domain');
const apiKey = config('shopify.api_key');

const app = document.getElementById('app');

ReactDOM.render(
    <AppProvider i18n={enTranslations}
                 features={{newDesignLanguage: true}}
                 theme={{
                     colorScheme: config('color_scheme') === 'dark' ? 'dark' : 'light',
                 }}>
        <Provider
            config={{
                apiKey,
                shopOrigin,
                forceRedirect: config('embedded'),
            }}
        >
            <App app={app} />
        </Provider>
    </AppProvider>,
    app
);
