Skip to content

Commit fd4fccc

Browse files
committed
update to use js sdk
1 parent 060dd91 commit fd4fccc

File tree

5 files changed

+4890
-3586
lines changed

5 files changed

+4890
-3586
lines changed

package.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"keywords": [],
66
"main": "src/index.js",
77
"dependencies": {
8-
"@tensorflow/tfjs": "1.0.0",
9-
"react": "16.5.2",
10-
"react-dom": "16.5.2",
11-
"react-magic-dropzone": "1.0.1",
12-
"react-scripts": "2.0.3"
8+
"@cloud-annotations/models": "^0.0.9",
9+
"react": "^16.12.0",
10+
"react-dom": "^16.12.0",
11+
"react-magic-dropzone": "^1.0.1",
12+
"react-scripts": "^3.3.1"
1313
},
1414
"devDependencies": {},
1515
"scripts": {
@@ -18,5 +18,10 @@
1818
"test": "react-scripts test --env=jsdom",
1919
"eject": "react-scripts eject"
2020
},
21-
"browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"]
22-
}
21+
"browserslist": [
22+
">0.2%",
23+
"not dead",
24+
"not ie <= 11",
25+
"not op_mini all"
26+
]
27+
}

src/App.module.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.wrapper {
2+
display: flex;
3+
align-items: center;
4+
justify-content: center;
5+
flex-direction: column;
6+
margin: 48px 16px 32px 16px;
7+
}
8+
9+
.dropzoneBase {
10+
position: relative;
11+
padding: 12px;
12+
color: var(--detailText);
13+
border: 2px var(--textInputUnderline) dashed;
14+
border-radius: 5px;
15+
width: 100%;
16+
min-height: 144px;
17+
display: flex;
18+
align-items: center;
19+
justify-content: center;
20+
max-width: 500px;
21+
}
22+
23+
.dropzone {
24+
composes: dropzoneBase;
25+
cursor: pointer;
26+
}
27+
28+
.dropzone:hover {
29+
background: var(--highlight);
30+
}
31+
32+
.image {
33+
width: 100%;
34+
height: 100%;
35+
border: thin solid rgba(64, 64, 64, 0.15);
36+
border-radius: 4px;
37+
object-fit: cover;
38+
}
39+
40+
.canvas {
41+
position: absolute;
42+
}

0 commit comments

Comments
 (0)