This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {ILTRect} from './rects/ILTRect'; | |
| import {Preconditions} from '../Preconditions'; | |
| import {DataURL, DataURLs} from './DataURLs'; | |
| import {IDimensions} from "./IDimensions"; | |
| import {ImageType} from "./ImageType"; | |
| const DEFAULT_IMAGE_TYPE = 'image/png'; | |
| const DEFAULT_IMAGE_QUALITY = 1.0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as functions from "firebase-functions"; | |
| import {Fetches} from "polar-shared/src/util/Fetch"; | |
| import {PassThrough, Writable} from 'stream'; | |
| /** | |
| * Perform an HTTP request on behalf of the user. For the web application we | |
| * have to proxy requests to download objects or else they they don't | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import {useLocation} from 'react-router-dom'; | |
| import {HashURLs} from "polar-shared/src/util/HashURLs"; | |
| import {IDStr} from "polar-shared/src/util/Strings"; | |
| interface IProps { | |
| readonly children: React.ForwardRefRenderFunction<HTMLDivElement, any>; | |
| // readonly children: React.ReactNode; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import createPersistedState from "use-persisted-state"; | |
| import {MUIThemeTypeContext, ThemeType} from "./context/MUIThemeTypeContext"; | |
| import {createMuiTheme, MuiThemeProvider} from "@material-ui/core/styles"; | |
| import CssBaseline from "@material-ui/core/CssBaseline"; | |
| import {GlobalCss} from "./css/GlobalCss"; | |
| import * as React from "react"; | |
| import {GlobalCssSummernote} from "./css/GlobalCssSummernote"; | |
| import {GlobalCSSBootstrap} from "./css/GlobalCSSBootstrap"; | |
| import {FirestoreProvider} from "../../../apps/repository/js/FirestoreProvider"; | |
| import {GlobalCssMobile} from "./css/GlobalCssMobile"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react'; | |
| import {RepoDocMetaLoader} from '../RepoDocMetaLoader'; | |
| import {RepoDocMetaManager} from '../RepoDocMetaManager'; | |
| import {IDocInfo} from 'polar-shared/src/metadata/IDocInfo'; | |
| import {IEventDispatcher} from '../../../../web/js/reactor/SimpleReactor'; | |
| import {PersistenceLayerManager} from '../../../../web/js/datastore/PersistenceLayerManager'; | |
| import AnnotationRepoTable from './AnnotationRepoTable'; | |
| import {UpdateFiltersCallback} from './AnnotationRepoFiltersHandler'; | |
| import {NULL_FUNCTION} from "polar-shared/src/util/Functions"; | |
| import {IDocAnnotation} from "../../../../web/js/annotation_sidebar/DocAnnotation"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react'; | |
| import {Devices} from "polar-shared/src/util/Devices"; | |
| import {AnnotationRepoTable2} from './AnnotationRepoTable2'; | |
| const Main = () => ( | |
| <div style={{ | |
| display: 'flex', | |
| flexDirection: 'column', | |
| minHeight: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as functions from "firebase-functions"; | |
| import express from 'express'; | |
| import {Callback} from "polar-shared/src/util/Functions"; | |
| import {Webapps} from "../../webapp/Webapps"; | |
| let app = express(); | |
| // Google-Cloud-Tasks | |
| console.log("SSR: Running with production SSR function v7"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as functions from "firebase-functions"; | |
| import express from 'express'; | |
| const app = express(); | |
| app.use((req: express.Request, res: express.Response, next: express.NextFunction) => { | |
| console.log("Hello World: : handling basic request"); | |
| res.status(200).send('Hello World\n'); | |
| next(); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as functions from "firebase-functions"; | |
| import express from 'express'; | |
| const app = express(); | |
| console.log("SSR: Running with minimal SSR function"); | |
| app.use((req: express.Request, res: express.Response, next: express.NextFunction) => { | |
| console.log("SSR: : handling basic request"); | |
| res.status(200).send('Hello World\n'); |