-
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.
Generic vanilla React and JS table, using intersectionObserver.
- Loading branch information
Showing
25 changed files
with
18,365 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env", | ||
"react-app" | ||
] | ||
} |
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,8 @@ | ||
module.exports = { | ||
setupFiles: [ | ||
'<rootDir>/src/test/setupTests.js', | ||
], | ||
moduleNameMapper: { | ||
'^.+\\.(css|less)$': '<rootDir>/src/test/__mocks__/styleMock.js', | ||
} | ||
}; |
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,21 @@ | ||
{ | ||
"preset": "react-native", | ||
"collectCoverage": true, | ||
"moduleDirectories": [ | ||
"node_modules", | ||
"src" | ||
], | ||
"transform": { | ||
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js" | ||
}, | ||
"setupFiles": [ | ||
"<rootDir>/jest/setup.js" | ||
], | ||
"transformIgnorePatterns": [ | ||
"node_modules/(?!(jest-)?react-native)" | ||
], | ||
"coveragePathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/jest" | ||
] | ||
} |
Large diffs are not rendered by default.
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
Binary file not shown.
Binary file not shown.
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 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.App { | ||
text-align: center; | ||
} |
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,14 @@ | ||
import React from 'react'; | ||
|
||
import './App.css'; | ||
import TableContainer from './TableContents'; | ||
|
||
function App() { | ||
return ( | ||
<div className="App"> | ||
<TableContainer /> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; |
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,32 @@ | ||
.TableHeader { | ||
width: 100%; | ||
text-align: left; | ||
background-color: #6a7b76; | ||
color: rgb(255, 255, 255); | ||
padding: 20px; | ||
} | ||
|
||
table { | ||
border-collapse: collapse; | ||
font-family: sans-serif; | ||
width: 100%; | ||
text-align: left; | ||
} | ||
|
||
tr { | ||
border-bottom: 0.5px solid rgb(193, 191, 191); | ||
} | ||
|
||
td { | ||
padding: 5px 15px; | ||
} | ||
|
||
th { | ||
padding: 10px 15px; | ||
} | ||
|
||
td.col-resizer { | ||
/* width: 0.05em; */ | ||
background-color: rgba(193, 191, 191, 0.317); | ||
padding: 1px; | ||
} |
Oops, something went wrong.