Codefund 1 (#144)

* feat(ts-to-flow): add server side converter for typescript to flow (#138)

* feat(ts-to-flow): add server side converter for typescript to flow

* fixes

* added codefund URL

* fixes
This commit is contained in:
Ritesh Kumar authored and GitHub committed 2019-08-18 17:45:34 +05:30
1 parent 0d35f1ac37
commit a7e8e375e9
6 files changed
+41 -41

No files matched your search

+11 -3
View File
@@ -1,13 +1,20 @@
import React, { Fragment } from "react";
import React, { Fragment, useEffect } from "react";
import { Heading, Pane, Text } from "evergreen-ui";
import { categorizedRoutes, Route } from "@utils/routes";
import Link from "next/link";
import { useRouter } from "next/router";
import SearchBox from "@components/Searchbox";
import loadScript from "load-script";
export default function() {
const router = useRouter();
useEffect(() => {
loadScript("https://codefund.io/properties/367/funder.js", {
async: true
});
}, []);
return (
<Pane
width={240}
@@ -74,8 +81,9 @@ export default function() {
})}
</Pane>
<Pane paddingY={15} background="#f6f6f6" borderTop>
<Heading size={400} textAlign="center">
<Pane borderTop>
<div id="codefund" />
<Heading size={400} paddingY={15} textAlign="center">
Created by{" "}
<Link href="https://twitter.com/ritz078">
<a target="_blank">@ritz078</a>
+1
View File
@@ -62,6 +62,7 @@
"json-ts": "^1.6.4",
"json_typegen_wasm": "^0.3.3",
"jsonld": "^1.6.2",
"load-script": "^1.0.0",
"lodash": "^4.17.15",
"markdown": "^0.5.0",
"monaco-editor": "^0.17.1",
+1 -36
View File
@@ -1,6 +1,6 @@
import React from "react";
import App, { Container } from "next/app";
import { Button, Text, Pane, Popover, Link, Heading } from "evergreen-ui";
import { Button, Pane } from "evergreen-ui";
import Navigator from "@components/Navigator";
import "@styles/main.css";
@@ -121,41 +121,6 @@ export default class extends App {
</Pane>
<Pane display="flex" alignItems={"center"}>
<Popover
content={() => (
<Pane padding={20} width={400}>
<Heading marginBottom={10} size={400}>
Your Data is always with you.
</Heading>
<Text size={400}>
This website doesn't track your data. The code of this
website is open source which you can find{" "}
<Link
size={400}
href="https://github.com/ritz078/transform"
>
on GitHub
</Link>
. All the transformations except{" "}
<Link href="/typescript-to-flow">
<a>TypeScript to Flow</a>
</Link>{" "}
work entirely on the client side.
</Text>
</Pane>
)}
>
<Button
appearance="minimal"
height={40}
css={{
color: "#fff !important"
}}
>
Privacy
</Button>
</Popover>
<Button
appearance="minimal"
height={40}
+1 -1
View File
@@ -8417,7 +8417,7 @@ self.onmessage = function (e) {
/*!***************************************************************************************************************!*\
!*** ./node_modules/monaco-editor/esm/vs/language/css/_deps/vscode-css-languageservice/cssLanguageService.js ***!
\***************************************************************************************************************/
/*! exports provided: Position, Range, Location, LocationLink, Color, ColorInformation, ColorPresentation, FoldingRangeKind, FoldingRange, DiagnosticRelatedInformation, DiagnosticSeverity, Diagnostic, Command, TextEdit, TextDocumentEdit, CreateFile, RenameFile, DeleteFile, WorkspaceEdit, WorkspaceChange, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, MarkupKind, MarkupContent, CompletionItemKind, InsertTextFormat, CompletionItem, CompletionList, MarkedString, Hover, ParameterInformation, SignatureInformation, DocumentHighlightKind, DocumentHighlight, SymbolKind, SymbolInformation, DocumentSymbol, CodeActionKind, CodeActionContext, CodeAction, CodeLens, FormattingOptions, DocumentLink, EOL, TextDocument, TextDocumentSaveReason, getCSSLanguageService, getSCSSLanguageService, getLESSLanguageService, SelectionRangeKind */
/*! exports provided: getCSSLanguageService, getSCSSLanguageService, getLESSLanguageService, Range, TextEdit, Position, SelectionRangeKind, Location, LocationLink, Color, ColorInformation, ColorPresentation, FoldingRangeKind, FoldingRange, DiagnosticRelatedInformation, DiagnosticSeverity, Diagnostic, Command, TextDocumentEdit, CreateFile, RenameFile, DeleteFile, WorkspaceEdit, WorkspaceChange, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, MarkupKind, MarkupContent, CompletionItemKind, InsertTextFormat, CompletionItem, CompletionList, MarkedString, Hover, ParameterInformation, SignatureInformation, DocumentHighlightKind, DocumentHighlight, SymbolKind, SymbolInformation, DocumentSymbol, CodeActionKind, CodeActionContext, CodeAction, CodeLens, FormattingOptions, DocumentLink, EOL, TextDocument, TextDocumentSaveReason */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
+22 -1
View File
@@ -33,7 +33,7 @@ html {
#nprogress .peg {
display: block;
position: absolute;
right: 0px;
right: 0;
width: 100px;
height: 100%;
box-shadow: 0 0 10px #22b6ff, 0 0 5px #a5ddcd;
@@ -58,3 +58,24 @@ html {
right: 0;
top: 0;
}
.cf-wrapper {
padding: 4px !important;
font-size: 12px !important;
border-radius: 0 !important;
line-height: 1.3 !important;
border-bottom: 1px solid #dfdfdf;
}
.cf-img {
max-width: 90px !important;
height: 70px;
}
.cf-img-wrapper {
margin-right: 8px !important;
}
.cf-powered-by {
text-align: right !important;
}
+5
View File
@@ -6093,6 +6093,11 @@ load-json-file@^2.0.0:
pify "^2.0.0"
strip-bom "^3.0.0"
load-script@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/load-script/-/load-script-1.0.0.tgz#0491939e0bee5643ee494a7e3da3d2bac70c6ca4"
integrity sha1-BJGTngvuVkPuSUp+PaPSuscMbKQ=
loader-runner@^2.3.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357"