File tree Expand file tree Collapse file tree 5 files changed +26
-3
lines changed Expand file tree Collapse file tree 5 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " text-to-image-pro" ,
3- "version" : " 2.0.4 " ,
3+ "version" : " 2.0.5 " ,
44 "description" : " " ,
55 "homepage" : " https://fxnoob.github.io/image-to-text-landing" ,
66 "scripts" : {
7070 "@tailwindcss/ui" : " ^0.5.0" ,
7171 "array-contains" : " ^0.0.1" ,
7272 "firebase" : " ^8.4.3" ,
73+ "linkifyjs" : " ^3.0.0-beta.3" ,
7374 "lottie-react-web" : " ^2.1.4" ,
7475 "pdfjs-dist" : " 2.5.207" ,
7576 "prop-types" : " ^15.7.2" ,
Original file line number Diff line number Diff line change 11import React from "react" ;
2+ import Linkify from "linkifyjs/react" ;
23import Share from "./Share" ;
34import Promotion from "./Promotion" ;
45import constants from "../../../constants" ;
56import chromeService from "../../services/chromeService" ;
67import { getExtensionStoreLink , isGoogleChrome } from "../../services/helper" ;
78const extUrl = getExtensionStoreLink ( ) ;
9+ const options = {
10+ target : {
11+ url : "_blank" ,
12+ } ,
13+ } ;
814export default function OCRCard ( props ) {
915 const [ copied , setCopied ] = React . useState ( false ) ;
1016 const [ playing , togglePlay ] = React . useState ( false ) ;
@@ -215,7 +221,9 @@ export default function OCRCard(props) {
215221 } }
216222 class = "prose text-gray-500 mx-auto lg:max-w-none lg:row-start-1 lg:col-start-1"
217223 >
218- { ocrText }
224+ < Linkify tagName = "p" options = { options } >
225+ { ocrText }
226+ </ Linkify >
219227 </ div >
220228 < hr style = { { marginTop : "2rem" } } />
221229 < div
Original file line number Diff line number Diff line change 11import React , { useCallback , useRef } from "react" ;
22import ArrowLeftICon from "@material-ui/icons/KeyboardBackspace" ;
33import ArrowRightICon from "@material-ui/icons/ArrowRightAlt" ;
4+ import Linkify from "linkifyjs/react" ;
45import pdfService from "../../services/pdfService" ;
56import { useDropzone } from "react-dropzone" ;
67import Share from "./Share" ;
@@ -9,6 +10,11 @@ import chromeService from "../../services/chromeService";
910import messagePassing from "../../services/messagePassing" ;
1011import { getExtensionStoreLink , isGoogleChrome } from "../../services/helper" ;
1112import pdf from "../../services/pdfService" ;
13+ const options = {
14+ target : {
15+ url : "_blank" ,
16+ } ,
17+ } ;
1218const extUrl = getExtensionStoreLink ( ) ;
1319let canvas = null ;
1420export default function PdfCard ( ) {
@@ -356,7 +362,9 @@ export default function PdfCard() {
356362 } }
357363 className = "prose text-gray-500 mx-auto lg:max-w-none lg:row-start-1 lg:col-start-1"
358364 >
359- { ocrText }
365+ < Linkify tagName = "p" options = { options } >
366+ { ocrText }
367+ </ Linkify >
360368 </ div >
361369 < hr style = { { marginTop : "2rem" } } />
362370 < div
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html >
33 < head >
4+ < title > IMAGE TO TEXT (OCR)</ title >
45 < link rel ="stylesheet " href ="/style.css " />
56 </ head >
67 < body >
Original file line number Diff line number Diff line change @@ -5566,6 +5566,11 @@ linkify-it@^2.0.0:
55665566 dependencies :
55675567 uc.micro "^1.0.1"
55685568
5569+ linkifyjs@^3.0.0-beta.3 :
5570+ version "3.0.0-beta.3"
5571+ resolved "https://registry.yarnpkg.com/linkifyjs/-/linkifyjs-3.0.0-beta.3.tgz#40697995d7ecf85c464924a30b9e98b1cd6fb253"
5572+ integrity sha512-aXq4WJs91NsETo5f9dQrt8Vx+OxAvzJAtR8lLgpum8PDjtCgstycwYbIkAjDGRV/YF1LlKKdbWyOpgMYgwgOvQ==
5573+
55695574load-json-file@^1.0.0 :
55705575 version "1.1.0"
55715576 resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0"
You can’t perform that action at this time.
0 commit comments