Skip to content

Commit 82f5d56

Browse files
committed
added gifs to readme animation
1 parent b6a7486 commit 82f5d56

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
10. **Dark Mode:** Visual settings to provide a more comfortable viewing experience in low-light environements
6363

6464
## <img src="images/Darkmode.png">
65+
## <img src="images/LandingPageDemo.gif">
66+
## <img src="images/MakingEditsDemo.gif">
6567

6668
### Getting started
6769

images/LandingPageDemo.gif

13.7 MB
Loading

images/MakingEditsDemo.gif

4.31 MB
Loading

src/components/Home/Contributors.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ const profileList: profileInfo[] = [
186186
imgUrl: YC,
187187
name: 'Yichung Chiu',
188188
title: 'Software Engineer',
189-
linkedInUrl: 'https://www.linkedin.com/feed/',
190-
githubUrl: 'https://www.linkedin.com/in/yichung-chiu-b14a94272/',
189+
linkedInUrl: 'https://www.linkedin.com/in/yichung-chiu-b14a94272/',
190+
githubUrl: 'https://github.com/ychiu5896',
191191
},
192192
];
193193

src/components/ReactFlow/DataTableNodeColumn.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { identity } from 'cypress/types/lodash';
1313
import { RowsOfData } from '@/Types';
1414

1515
type RowData = {
16-
[key: string]: string | number
16+
[key: string]: string | number;
1717
}
1818

1919
type DataTableNodeColumnProp = {
@@ -35,14 +35,14 @@ export default function DataTableNodeColumn({row,id,deleteRow,index, PK}: DataTa
3535

3636
//reset the state when row changes. Specifically for on-delete functionality.
3737
useEffect(()=> {
38-
setRowData({...newRow})
39-
setTempData({...newRow})
38+
setRowData({...newRow});
39+
setTempData({...newRow});
4040
},[row])
4141

4242

4343
const [mode, setMode] = useState('default');
4444

45-
const rowDataKeys = Object.keys(row)
45+
const rowDataKeys = Object.keys(row);
4646

4747
interface rowData {
4848
[key:string|number]:string|number|boolean|null
@@ -72,31 +72,31 @@ const onSave = async () => {
7272
changes.newRow= {...tempData};
7373
//if statement necessary for typing correction
7474
if(PK[0] !== null && changes.newRow!== undefined){
75-
changes.primaryKey = {[PK[0]]:changes.newRow[PK[0]]}
75+
changes.primaryKey = {[PK[0]]:changes.newRow[PK[0]]};
7676
}
7777
//delete primary key column from change for fetch request row.
78-
if(PK[0]) delete changes.newRow[PK[0]]
78+
if(PK[0]) delete changes.newRow[PK[0]];
7979

8080

8181
//iterate through and find the changes between new and old data.
8282
const checkConstraints:tempData = {}
8383
for(let currentKey in tempData ){
8484
if(tempData[currentKey] !== rowData[currentKey]){
85-
checkConstraints[currentKey] =tempData[currentKey]
85+
checkConstraints[currentKey] =tempData[currentKey];
8686
}
8787
}
8888

8989
//High level idea is to prevent edits into a matching primary key of the same table.
9090
//Change all values in set into string in order to check if changed values(string) exist in primary key constraints(string)
9191
if(PK[1]){
92-
const tempObj = []
92+
const tempObj = [];
9393
for(const setItem of PK[1]){
9494
if(typeof setItem === 'number'){
9595
tempObj.push(setItem.toString());
9696
PK[1].delete(setItem);
9797
}
9898
}
99-
tempObj.forEach((curr)=> PK[1]?.add(curr))
99+
tempObj.forEach((curr)=> PK[1]?.add(curr));
100100

101101
for(let currentKey in checkConstraints ){
102102
if(PK[0] === currentKey && PK[1].has(checkConstraints[currentKey])){

0 commit comments

Comments
 (0)