-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99cddb0
commit cb3555b
Showing
19 changed files
with
101 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
|
||
import { useSearchWidgetContext } from 'shared/components'; | ||
|
||
export function ImageEngineView() { | ||
const { searchQuery, searchImage } = useSearchWidgetContext(); | ||
|
||
return ( | ||
<div data-testid="imageEngineView"> | ||
This is Image Search engine {searchQuery} {searchImage} | ||
</div> | ||
); | ||
} |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
|
||
import { useSearchWidgetContext } from 'shared/components'; | ||
|
||
export function TextEngineView() { | ||
const { searchQuery, searchImage } = useSearchWidgetContext(); | ||
|
||
return ( | ||
<div data-testid="textEngineView"> | ||
This is Text Search engine {searchQuery} {searchImage} | ||
</div> | ||
); | ||
} |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
|
||
import { useSearchWidgetContext } from 'shared/components'; | ||
|
||
export function VideoEngineView() { | ||
const { searchQuery, searchImage } = useSearchWidgetContext(); | ||
|
||
return ( | ||
<div data-testid="videoEngineView"> | ||
This is Video Search engine {searchQuery} {searchImage} | ||
</div> | ||
); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,38 @@ | ||
import React from 'react'; | ||
|
||
import { Helmet } from 'react-helmet'; | ||
|
||
import { Router } from 'routes/index.route'; | ||
|
||
export function App() { | ||
return <Router />; | ||
return ( | ||
<> | ||
<Helmet> | ||
<meta | ||
name="description" | ||
content="x10: The ultimate search engine leveraging AI, Chrome, Bing, and Yandex for unparalleled text, image, and video search results. Simplify your search across all needs with optimal outcomes." | ||
/> | ||
<meta | ||
name="keywords" | ||
content="x10 search engine, AI search, comprehensive search, text search, image search, video search, Chrome, Bing, Yandex, optimal search results" | ||
/> | ||
<meta property="og:title" content="x10: Comprehensive AI-Powered Search Engine" /> | ||
<meta | ||
property="og:description" | ||
content="Discover unparalleled search results for text, images, and videos across Chrome, Bing, and Yandex with x10. Simplify your search for all needs with optimal outcomes." | ||
/> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:url" content="https://www.x10.com" /> | ||
<meta property="og:image" content="https://www.yourwebsite.com/og-image.jpg" /> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta name="twitter:title" content="x10: Comprehensive AI-Powered Search Engine" /> | ||
<meta | ||
name="twitter:description" | ||
content="Discover unparalleled search results for text, images, and videos across Chrome, Bing, and Yandex with x10. Simplify your search for all needs with optimal outcomes." | ||
/> | ||
</Helmet> | ||
|
||
<Router /> | ||
</> | ||
); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from './seo'; | ||
export * from './natives'; | ||
export * from './report-web-vitals'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import * as assets from './assets'; | ||
|
||
import { colors } from './colors'; | ||
import { typography } from './typography'; | ||
|
||
export const designTokens = { | ||
colors, | ||
typography, | ||
assets, | ||
}; |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export {}; | ||
export * from './http-services/index.service'; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import React from 'react'; | ||
|
||
import { render, screen } from 'test'; | ||
import { renderWithOptions, screen } from 'test'; | ||
|
||
import { config } from '../config'; | ||
|
||
describe('config object', () => { | ||
it('should have a textSearch property with a page view that renders correctly', () => { | ||
const Page = config.textSearch.page; | ||
|
||
render(<Page />); | ||
renderWithOptions(<Page />); | ||
|
||
expect(screen.getByText('Text Search')).toBeInTheDocument(); | ||
expect(screen.getByTestId('textEngineView')).toBeInTheDocument(); | ||
}); | ||
|
||
it('should have an imageSearch property with a page view that renders correctly', () => { | ||
const Page = config.imageSearch.page; | ||
|
||
render(<Page />); | ||
renderWithOptions(<Page />); | ||
|
||
expect(screen.getByText('Image Search')).toBeInTheDocument(); | ||
expect(screen.getByTestId('imageEngineView')).toBeInTheDocument(); | ||
}); | ||
|
||
it('should have a videoSearch property with a page view that renders correctly', () => { | ||
const Page = config.videoSearch.page; | ||
|
||
render(<Page />); | ||
renderWithOptions(<Page />); | ||
|
||
expect(screen.getByText('Video Search')).toBeInTheDocument(); | ||
expect(screen.getByTestId('videoEngineView')).toBeInTheDocument(); | ||
}); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import { TextEngineView } from '__text-engine__/view'; | ||
import { ImageEngineView } from '__image-engine__/view'; | ||
import { VideoEngineView } from '__video-engine__/view'; | ||
|
||
export const config = { | ||
textSearch: { | ||
page: () => <h1>Text Search</h1>, | ||
page: TextEngineView, | ||
}, | ||
imageSearch: { | ||
page: () => <h1>Image Search</h1>, | ||
page: ImageEngineView, | ||
}, | ||
videoSearch: { | ||
page: () => <h1>Video Search</h1>, | ||
page: VideoEngineView, | ||
}, | ||
}; |
This file contains 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