mirror of
https://github.com/ritz078/transform.git
synced 2026-11-21 16:43:56 +03:00
fix: producthunt, twitter url (#114)
* fix: * upgrade package json * fixes * fixes * fixes * feat: * fixes
This commit is contained in:
1 parent
e1a039ae38
commit
41c42e2664
7 files changed
+76
-10
No files matched your search
@@ -1,9 +1,11 @@
|
||||
import React, { useCallback, Fragment, useEffect } from "react";
|
||||
import { Heading, Pane, Text, Autocomplete, SearchInput } from "evergreen-ui";
|
||||
import { categorizedRoutes, Route, routes } from "@utils/routes";
|
||||
import React, { Fragment } 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 Twtr from "react-share/lib/TwitterShareButton";
|
||||
import TwtrIcon from "react-share/lib/TwitterIcon";
|
||||
|
||||
export default function() {
|
||||
const router = useRouter();
|
||||
@@ -72,6 +74,48 @@ export default function() {
|
||||
})}
|
||||
</Pane>
|
||||
|
||||
<Pane
|
||||
backgroundColor="#fff"
|
||||
borderTop
|
||||
paddingY={10}
|
||||
paddingX={10}
|
||||
display="flex"
|
||||
flexDirection="row"
|
||||
alignItems="center"
|
||||
justifyContent="space-between"
|
||||
>
|
||||
<a
|
||||
href="https://www.producthunt.com/posts/transform-3?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-transform-3"
|
||||
target="_blank"
|
||||
style={{
|
||||
display: "inline-flex"
|
||||
}}
|
||||
>
|
||||
<img
|
||||
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=161868&theme=light"
|
||||
alt="transform - A polyglot web converter. | Product Hunt Embed"
|
||||
style={{ width: 170, height: 40 }}
|
||||
width="250px"
|
||||
height="54px"
|
||||
/>
|
||||
</a>
|
||||
|
||||
<a
|
||||
style={{
|
||||
cursor: "pointer"
|
||||
}}
|
||||
>
|
||||
<Twtr
|
||||
round
|
||||
via="ritz078"
|
||||
title="Transform - A polyglot web converter to convert JSON, GraphQL, HTML, SVG, TypeScript and many more."
|
||||
url="https://transform.tools"
|
||||
>
|
||||
<TwtrIcon size={36} round />
|
||||
</Twtr>
|
||||
</a>
|
||||
</Pane>
|
||||
|
||||
<Pane paddingY={15} background="#f6f6f6" borderTop>
|
||||
<Heading size={400} textAlign="center">
|
||||
Created by{" "}
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ export const html = `<!-- Hello world -->
|
||||
</div>
|
||||
<p>Enter your HTML here</p>`;
|
||||
|
||||
export const svg = `<svg xmlns="http://www.w3.org/2000/svg"
|
||||
export const svg = `<svg style="flex:1;" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<rect x="10" y="10" height="100" width="100"
|
||||
style="stroke:#ff0000; fill: #0000ff"/>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { useState } from "react";
|
||||
import pkg from "../package.json";
|
||||
|
||||
const prefix = "transform:";
|
||||
const prefix = `transform:${pkg.version}:`;
|
||||
|
||||
export function useSessionStorage(key, initialValue) {
|
||||
// State to store our value
|
||||
|
||||
+2
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "transform",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"repository": "https://github.com/ritz078/transform",
|
||||
"author": "ritz078 <rkritesh078@gmail.com>",
|
||||
"license": "MIT",
|
||||
@@ -69,6 +69,7 @@
|
||||
"react": "^16.8.6",
|
||||
"react-dom": "^16.8.6",
|
||||
"react-ga": "^2.6.0",
|
||||
"react-share": "^3.0.0",
|
||||
"snack-sdk": "^2.3.1",
|
||||
"stringify-object": "^3.3.0",
|
||||
"svg-to-dataurl": "^1.0.0",
|
||||
|
||||
+3
-1
@@ -7,6 +7,7 @@ import "@styles/main.css";
|
||||
import NProgress from "nprogress";
|
||||
import { useRouter } from "next/router";
|
||||
import { activeRouteData } from "@utils/routes";
|
||||
import { Head } from "next/document";
|
||||
|
||||
let reactGa;
|
||||
if (IN_BROWSER) {
|
||||
@@ -100,6 +101,7 @@ export default function App({ Component, pageProps }) {
|
||||
{activeRoute && (activeRoute.title || activeRoute.searchTerm)}
|
||||
</title>
|
||||
<meta name="description" content={activeRoute && activeRoute.desc} />
|
||||
<meta name="viewport" content="width=1024" />
|
||||
<Pane
|
||||
display="flex"
|
||||
alignItems="center"
|
||||
@@ -113,7 +115,7 @@ export default function App({ Component, pageProps }) {
|
||||
{logo}
|
||||
</Pane>
|
||||
|
||||
<Pane>
|
||||
<Pane display="flex" alignItems={"center"}>
|
||||
<Popover
|
||||
content={() => (
|
||||
<Pane padding={20} width={400}>
|
||||
|
||||
@@ -46,6 +46,7 @@ export default class MyDocument extends Document<DocumentProps> {
|
||||
name="google-site-verification"
|
||||
content="bjJSOEahdert-7mwVScrwTTUVR3nSe0bEj5YjevUNn0"
|
||||
/>
|
||||
|
||||
<style dangerouslySetInnerHTML={{ __html: css }} />
|
||||
</Head>
|
||||
|
||||
|
||||
@@ -2721,7 +2721,7 @@ class-utils@^0.3.5:
|
||||
isobject "^3.0.0"
|
||||
static-extend "^0.1.1"
|
||||
|
||||
classnames@^2.2, classnames@^2.2.6:
|
||||
classnames@^2.2, classnames@^2.2.5, classnames@^2.2.6:
|
||||
version "2.2.6"
|
||||
resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce"
|
||||
integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==
|
||||
@@ -3268,7 +3268,7 @@ date-now@^0.1.4:
|
||||
resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
|
||||
integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=
|
||||
|
||||
debug@2.6.9, debug@^2.2.0, debug@^2.3.3:
|
||||
debug@2.6.9, debug@^2.1.3, debug@^2.2.0, debug@^2.3.3:
|
||||
version "2.6.9"
|
||||
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
||||
integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
|
||||
@@ -5807,6 +5807,13 @@ jsonld@^1.6.2:
|
||||
semver "^5.6.0"
|
||||
xmldom "0.1.19"
|
||||
|
||||
jsonp@^0.2.1:
|
||||
version "0.2.1"
|
||||
resolved "https://registry.yarnpkg.com/jsonp/-/jsonp-0.2.1.tgz#a65b4fa0f10bda719a05441ea7b94c55f3e15bae"
|
||||
integrity sha1-pltPoPEL2nGaBUQep7lMVfPhW64=
|
||||
dependencies:
|
||||
debug "^2.1.3"
|
||||
|
||||
jsprim@^1.2.2:
|
||||
version "1.4.1"
|
||||
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
|
||||
@@ -7638,7 +7645,7 @@ prop-types@15.6.2:
|
||||
loose-envify "^1.3.1"
|
||||
object-assign "^4.1.1"
|
||||
|
||||
prop-types@^15.5.10, prop-types@^15.5.7, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2:
|
||||
prop-types@^15.5.10, prop-types@^15.5.7, prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2:
|
||||
version "15.7.2"
|
||||
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
|
||||
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
|
||||
@@ -7907,6 +7914,16 @@ react-scrollbar-size@^2.0.2:
|
||||
react-event-listener "^0.5.1"
|
||||
stifle "^1.0.2"
|
||||
|
||||
react-share@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/react-share/-/react-share-3.0.0.tgz#4855cfccfadbb3c6ef490047ccd144dc38ff7421"
|
||||
integrity sha512-7UZ+QWGGZ1P4g9/5oVSIWTEXXFgQ6KgA+H6GW84iioOjM93EoaVMM/LZNiHk0hgYJLsSIGcePTKemIv1yWhYiQ==
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
classnames "^2.2.5"
|
||||
jsonp "^0.2.1"
|
||||
prop-types "^15.5.8"
|
||||
|
||||
react-ssr-prepass@1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/react-ssr-prepass/-/react-ssr-prepass-1.0.2.tgz#f411414cbc043a90254cddcef0793b2aaf14b086"
|
||||
|
||||
Reference in new issue
Block a user