mirror of
https://github.com/stashapp/stash.git
synced 2025-12-20 07:16:27 +01:00
* Upgrade Typescript to 4.0 * Update i18n-iso-countries to 6.0 * Update react-intl to 5.8.0 * Update jimp to 0.16.1 * Update apollo and graphql libraries * Update various libraries and fix linting/type errors * Refactor cache invalidation * Codegen refetch queries
26 lines
868 B
TypeScript
Executable file
26 lines
868 B
TypeScript
Executable file
import React from "react";
|
|
import { ApolloProvider } from "@apollo/client";
|
|
import ReactDOM from "react-dom";
|
|
import { BrowserRouter } from "react-router-dom";
|
|
import { App } from "./App";
|
|
import { getClient } from "./core/StashService";
|
|
import { getPlatformURL } from "./core/createClient";
|
|
import "./index.scss";
|
|
import * as serviceWorker from "./serviceWorker";
|
|
|
|
ReactDOM.render(
|
|
<>
|
|
<link rel="stylesheet" type="text/css" href={`${getPlatformURL()}css`} />
|
|
<BrowserRouter>
|
|
<ApolloProvider client={getClient()}>
|
|
<App />
|
|
</ApolloProvider>
|
|
</BrowserRouter>
|
|
</>,
|
|
document.getElementById("root")
|
|
);
|
|
|
|
// If you want your app to work offline and load faster, you can change
|
|
// unregister() to register() below. Note this comes with some pitfalls.
|
|
// Learn more about service workers: http://bit.ly/CRA-PWA
|
|
serviceWorker.unregister();
|