Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
c7d17ef2
Commit
c7d17ef2
authored
Aug 13, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prettier fmt
parent
7652b0f9
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1308 additions
and
1108 deletions
+1308
-1108
src/App.test.tsx
src/App.test.tsx
+4
-4
src/App.tsx
src/App.tsx
+4
-6
src/api/ygopro.ts
src/api/ygopro.ts
+1288
-1086
src/index.css
src/index.css
+3
-3
src/index.tsx
src/index.tsx
+6
-6
src/reportWebVitals.ts
src/reportWebVitals.ts
+2
-2
src/setupTests.ts
src/setupTests.ts
+1
-1
No files found.
src/App.test.tsx
View file @
c7d17ef2
import
React
from
'
react
'
;
import
{
render
,
screen
}
from
'
@testing-library/react
'
;
import
App
from
'
./App
'
;
import
React
from
"
react
"
;
import
{
render
,
screen
}
from
"
@testing-library/react
"
;
import
App
from
"
./App
"
;
test
(
'
renders learn react link
'
,
()
=>
{
test
(
"
renders learn react link
"
,
()
=>
{
render
(<
App
/>);
const
linkElement
=
screen
.
getByText
(
/learn react/i
);
expect
(
linkElement
).
toBeInTheDocument
();
...
...
src/App.tsx
View file @
c7d17ef2
import
React
from
'
react
'
;
import
'
./App.css
'
;
import
'
./api/ygopro.ts
'
;
import
React
from
"
react
"
;
import
"
./App.css
"
;
import
"
./api/ygopro.ts
"
;
function
App
()
{
return
(
<
div
className=
"App"
>
<
header
className=
"App-header"
>
<
p
>
Welcome to neos-ts!
</
p
>
<
p
>
Welcome to neos-ts!
</
p
>
<
a
className=
"App-link"
href=
"https://github.com/DarkNeos"
...
...
src/api/ygopro.ts
View file @
c7d17ef2
This diff is collapsed.
Click to expand it.
src/index.css
View file @
c7d17ef2
body
{
margin
:
0
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
'Segoe UI'
,
'Roboto'
,
'Oxygen'
,
'Ubuntu'
,
'Cantarell'
,
'Fira Sans'
,
'Droid Sans'
,
'Helvetica Neue'
,
font-family
:
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
"Roboto"
,
"Oxygen"
,
"Ubuntu"
,
"Cantarell"
,
"Fira Sans"
,
"Droid Sans"
,
"Helvetica Neue"
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
code
{
font-family
:
source-code-pro
,
Menlo
,
Monaco
,
Consolas
,
'Courier New'
,
font-family
:
source-code-pro
,
Menlo
,
Monaco
,
Consolas
,
"Courier New"
,
monospace
;
}
src/index.tsx
View file @
c7d17ef2
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom/client
'
;
import
'
./index.css
'
;
import
App
from
'
./App
'
;
import
reportWebVitals
from
'
./reportWebVitals
'
;
import
React
from
"
react
"
;
import
ReactDOM
from
"
react-dom/client
"
;
import
"
./index.css
"
;
import
App
from
"
./App
"
;
import
reportWebVitals
from
"
./reportWebVitals
"
;
const
root
=
ReactDOM
.
createRoot
(
document
.
getElementById
(
'
root
'
)
as
HTMLElement
document
.
getElementById
(
"
root
"
)
as
HTMLElement
);
root
.
render
(
<
React
.
StrictMode
>
...
...
src/reportWebVitals.ts
View file @
c7d17ef2
import
{
ReportHandler
}
from
'
web-vitals
'
;
import
{
ReportHandler
}
from
"
web-vitals
"
;
const
reportWebVitals
=
(
onPerfEntry
?:
ReportHandler
)
=>
{
if
(
onPerfEntry
&&
onPerfEntry
instanceof
Function
)
{
import
(
'
web-vitals
'
).
then
(({
getCLS
,
getFID
,
getFCP
,
getLCP
,
getTTFB
})
=>
{
import
(
"
web-vitals
"
).
then
(({
getCLS
,
getFID
,
getFCP
,
getLCP
,
getTTFB
})
=>
{
getCLS
(
onPerfEntry
);
getFID
(
onPerfEntry
);
getFCP
(
onPerfEntry
);
...
...
src/setupTests.ts
View file @
c7d17ef2
...
...
@@ -2,4 +2,4 @@
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import
'
@testing-library/jest-dom
'
;
import
"
@testing-library/jest-dom
"
;
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