Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SpeakEzy_Frontend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Thisara Kavinda
SpeakEzy_Frontend
Commits
9b9abfa8
Commit
9b9abfa8
authored
May 17, 2024
by
Hirusha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
done
parent
6bbd7331
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
39 deletions
+39
-39
src/App.tsx
src/App.tsx
+0
-39
src/Pages/Learn/Test/Test.page.tsx
src/Pages/Learn/Test/Test.page.tsx
+39
-0
No files found.
src/App.tsx
View file @
9b9abfa8
import
React
from
'
react
'
import
{
BrowserRouter
,
Routes
,
Route
}
from
'
react-router-dom
'
import
'
./App.css
'
import
HomePage
from
'
./Pages/Learn/HomePage/Home.page
'
import
DrawerAppBar
from
'
./Components/DrawerAppBar/DrawerAppBar
'
import
RegisterPage
from
'
./Pages/Learn/RegisterPage/Register.page
'
import
Login
from
'
./Pages/Learn/LoginPage/Login.page
'
import
SelectDifficultyPage
from
'
./Pages/Learn/SelectDifficultyPage/SelectDifficulty.page
'
import
ResourcesPage
from
'
./Pages/Learn/ResourcesPage/Resources.page
'
import
MoreResourcesPage
from
'
./Pages/Learn/MoreResourcesPage/MoreResources.page
'
import
MoreResourcesDetailsPage
from
'
./Pages/Learn/MoreResourcesDetailsPage/MoreResourcesDetails.page
'
import
GameDetails
from
'
./Pages/Learn/GameDetailsPage/GameDetails.page
'
import
GamePage
from
'
./Pages/Learn/GamePage/game.page
'
import
Dictionary
from
'
./Pages/Learn/DictionaryPage/Dictionary.page
'
// import ResourcesPages from './Pages/Learn/backup/Resources.page';
function
App
()
{
return
(
<
BrowserRouter
>
<
Routes
>
<
Route
element=
{
<
DrawerAppBar
/>
}
>
<
Route
path=
'/'
element=
{
<
HomePage
/>
}
/>
<
Route
path=
'/select'
element=
{
<
SelectDifficultyPage
/>
}
/>
<
Route
path=
'/resources/:level'
element=
{
<
ResourcesPage
/>
}
/>
<
Route
path=
'/moreResources/:resourcesId'
element=
{
<
MoreResourcesPage
/>
}
/>
<
Route
path=
'/moreResourcesDetails/:itemId'
element=
{
<
MoreResourcesDetailsPage
/>
}
/>
<
Route
path=
'/game/:resourcesId'
element=
{
<
GamePage
/>
}
/>
<
Route
path=
'/gameDetails/:gameId/:resourcesId'
element=
{
<
GameDetails
/>
}
/>
<
Route
path=
'/register'
element=
{
<
RegisterPage
/>
}
/>
<
Route
path=
'/login'
element=
{
<
Login
/>
}
/>
<
Route
path=
'/dictionary'
element=
{
<
Dictionary
/>
}
/>
{
/* <Route path="/c" element={<ResourcesPages />} /> */
}
</
Route
>
</
Routes
>
</
BrowserRouter
>
)
}
export
default
App
src/Pages/Learn/Test/Test.page.tsx
View file @
9b9abfa8
...
@@ -3,6 +3,20 @@ import { Box, Container } from '@mui/material'
...
@@ -3,6 +3,20 @@ import { Box, Container } from '@mui/material'
import
Webcam
from
'
react-webcam
'
import
Webcam
from
'
react-webcam
'
import
axios
from
'
axios
'
import
axios
from
'
axios
'
import
{
BrowserRouter
,
Routes
,
Route
}
from
'
react-router-dom
'
import
'
./App.css
'
import
HomePage
from
'
./Pages/Learn/HomePage/Home.page
'
import
DrawerAppBar
from
'
./Components/DrawerAppBar/DrawerAppBar
'
import
RegisterPage
from
'
./Pages/Learn/RegisterPage/Register.page
'
import
Login
from
'
./Pages/Learn/LoginPage/Login.page
'
import
SelectDifficultyPage
from
'
./Pages/Learn/SelectDifficultyPage/SelectDifficulty.page
'
import
ResourcesPage
from
'
./Pages/Learn/ResourcesPage/Resources.page
'
import
MoreResourcesPage
from
'
./Pages/Learn/MoreResourcesPage/MoreResources.page
'
import
MoreResourcesDetailsPage
from
'
./Pages/Learn/MoreResourcesDetailsPage/MoreResourcesDetails.page
'
import
GameDetails
from
'
./Pages/Learn/GameDetailsPage/GameDetails.page
'
import
GamePage
from
'
./Pages/Learn/GamePage/game.page
'
import
Dictionary
from
'
./Pages/Learn/DictionaryPage/Dictionary.page
'
const
WebcamComponent
:
React
.
FC
=
()
=>
{
const
WebcamComponent
:
React
.
FC
=
()
=>
{
const
webcamRef
=
React
.
useRef
<
Webcam
>
(
null
)
const
webcamRef
=
React
.
useRef
<
Webcam
>
(
null
)
const
canvasRef
=
React
.
useRef
<
HTMLCanvasElement
>
(
null
)
const
canvasRef
=
React
.
useRef
<
HTMLCanvasElement
>
(
null
)
...
@@ -101,3 +115,28 @@ const WebcamComponent: React.FC = () => {
...
@@ -101,3 +115,28 @@ const WebcamComponent: React.FC = () => {
}
}
export
default
WebcamComponent
export
default
WebcamComponent
// import ResourcesPages from './Pages/Learn/backup/Resources.page';
function
App
()
{
return
(
<
BrowserRouter
>
<
Routes
>
<
Route
element=
{
<
DrawerAppBar
/>
}
>
<
Route
path=
'/'
element=
{
<
HomePage
/>
}
/>
<
Route
path=
'/select'
element=
{
<
SelectDifficultyPage
/>
}
/>
<
Route
path=
'/resources/:level'
element=
{
<
ResourcesPage
/>
}
/>
<
Route
path=
'/moreResources/:resourcesId'
element=
{
<
MoreResourcesPage
/>
}
/>
<
Route
path=
'/moreResourcesDetails/:itemId'
element=
{
<
MoreResourcesDetailsPage
/>
}
/>
<
Route
path=
'/game/:resourcesId'
element=
{
<
GamePage
/>
}
/>
<
Route
path=
'/gameDetails/:gameId/:resourcesId'
element=
{
<
GameDetails
/>
}
/>
<
Route
path=
'/register'
element=
{
<
RegisterPage
/>
}
/>
<
Route
path=
'/login'
element=
{
<
Login
/>
}
/>
<
Route
path=
'/dictionary'
element=
{
<
Dictionary
/>
}
/>
{
/* <Route path="/c" element={<ResourcesPages />} /> */
}
</
Route
>
</
Routes
>
</
BrowserRouter
>
)
}
export
default
App
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment