Skip to content

Commit af51d22

Browse files
committedMay 12, 2021
feat(data.json): add prop 'fileName'
1 parent f102cc6 commit af51d22

11 files changed

+64
-10
lines changed
 

‎.pnpm-debug.log

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"0 debug pnpm:scope": {
3+
"selected": 1
4+
},
5+
"1 error pnpm": {
6+
"code": "ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND",
7+
"err": {
8+
"name": "Error",
9+
"message": "No package.json (or package.yaml, or package.json5) was found in \"C:\\qerdata\\project\\ccsa\".",
10+
"code": "ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND",
11+
"stack": "Error: No package.json (or package.yaml, or package.json5) was found in \"C:\\qerdata\\project\\ccsa\".\n at readProjectManifest (C:\\Users\\qer\\AppData\\Roaming\\npm\\pnpm-global\\5\\node_modules\\.pnpm\\pnpm@6.3.0\\node_modules\\pnpm\\dist\\pnpm.cjs:43384:11)\n at async Object.readProjectManifestOnly (C:\\Users\\qer\\AppData\\Roaming\\npm\\pnpm-global\\5\\node_modules\\.pnpm\\pnpm@6.3.0\\node_modules\\pnpm\\dist\\pnpm.cjs:43388:24)\n at async Object.readProjectManifestOnly (C:\\Users\\qer\\AppData\\Roaming\\npm\\pnpm-global\\5\\node_modules\\.pnpm\\pnpm@6.3.0\\node_modules\\pnpm\\dist\\pnpm.cjs:43603:22)\n at async Object.handler (C:\\Users\\qer\\AppData\\Roaming\\npm\\pnpm-global\\5\\node_modules\\.pnpm\\pnpm@6.3.0\\node_modules\\pnpm\\dist\\pnpm.cjs:117113:22)\n at async Timeout._onTimeout (C:\\Users\\qer\\AppData\\Roaming\\npm\\pnpm-global\\5\\node_modules\\.pnpm\\pnpm@6.3.0\\node_modules\\pnpm\\dist\\pnpm.cjs:121003:22)"
12+
}
13+
}
14+
}

‎front-end/build/asset-manifest.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"files": {
33
"main.css": "/static/css/main.afd7172b.chunk.css",
4-
"main.js": "/static/js/main.c39d34cc.chunk.js",
5-
"main.js.map": "/static/js/main.c39d34cc.chunk.js.map",
4+
"main.js": "/static/js/main.d99a4ddc.chunk.js",
5+
"main.js.map": "/static/js/main.d99a4ddc.chunk.js.map",
66
"runtime-main.js": "/static/js/runtime-main.ee0d20a0.js",
77
"runtime-main.js.map": "/static/js/runtime-main.ee0d20a0.js.map",
88
"static/css/2.a33e37d2.chunk.css": "/static/css/2.a33e37d2.chunk.css",
@@ -18,6 +18,6 @@
1818
"static/css/2.a33e37d2.chunk.css",
1919
"static/js/2.13cbfa04.chunk.js",
2020
"static/css/main.afd7172b.chunk.css",
21-
"static/js/main.c39d34cc.chunk.js"
21+
"static/js/main.d99a4ddc.chunk.js"
2222
]
2323
}

‎front-end/build/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="/manifest.json"/><title>ccsa 汉字标注</title><link href="/static/css/2.a33e37d2.chunk.css" rel="stylesheet"><link href="/static/css/main.afd7172b.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,l,a=r[0],c=r[1],f=r[2],p=0,s=[];p<a.length;p++)l=a[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(i&&i(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var a=this.webpackJsonpccsa=this.webpackJsonpccsa||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var i=c;t()}([])</script><script src="/static/js/2.13cbfa04.chunk.js"></script><script src="/static/js/main.c39d34cc.chunk.js"></script></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="/manifest.json"/><title>ccsa 汉字标注</title><link href="/static/css/2.a33e37d2.chunk.css" rel="stylesheet"><link href="/static/css/main.afd7172b.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,l,a=r[0],c=r[1],f=r[2],p=0,s=[];p<a.length;p++)l=a[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(i&&i(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var a=this.webpackJsonpccsa=this.webpackJsonpccsa||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var i=c;t()}([])</script><script src="/static/js/2.13cbfa04.chunk.js"></script><script src="/static/js/main.d99a4ddc.chunk.js"></script></body></html>

‎front-end/build/static/js/main.c39d34cc.chunk.js

-2
This file was deleted.

‎front-end/build/static/js/main.c39d34cc.chunk.js.map

-1
This file was deleted.

‎front-end/build/static/js/main.d99a4ddc.chunk.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎front-end/build/static/js/main.d99a4ddc.chunk.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎front-end/src/App.js

+1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ const App = () => {
197197
const ans = {
198198
dataSetId: systemInfo.dataSetId,
199199
currentImageId: systemInfo.currentImageId,
200+
fileName: currentChar.fileName,
200201
author: currentAuthor,
201202
charId: currentChar.id,
202203
skip,

‎server/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ app.post('/api/submit', (req, res) => {
115115
}
116116
fs.readFile(`${__dirname}/result/data.json`, (err, data) => { // READ
117117
if (err) {
118-
res.end("error"+ err);
118+
res.end("error" + err);
119119
return console.error(err);
120120
};
121121
// console.log(data);

‎server/result/data.json

+40-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,40 @@
1-
{"content":[]}
1+
{
2+
"content": [
3+
{
4+
"dataSetId": 10000,
5+
"currentImageId": 1,
6+
"author": "qer",
7+
"charId": 1,
8+
"skip": true,
9+
"charName": "",
10+
"date": "5/12/2021, 8:31:48 PM",
11+
"result": [
12+
{
13+
"id": 1,
14+
"name": "",
15+
"record": [
16+
[
17+
108,
18+
102.5
19+
],
20+
[
21+
165,
22+
90.5
23+
]
24+
]
25+
}
26+
]
27+
},
28+
{
29+
"dataSetId": 10000,
30+
"currentImageId": 2,
31+
"fileName": "10000-2.png",
32+
"author": "qer",
33+
"charId": 2,
34+
"skip": true,
35+
"charName": "",
36+
"date": "5/12/2021, 8:33:21 PM",
37+
"result": []
38+
}
39+
]
40+
}

‎server/src/config/system-info.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"dataSetId":10000,"currentImageId":1,"author":"qer"}
1+
{"dataSetId":10000,"currentImageId":3,"author":"qer"}

0 commit comments

Comments
 (0)
Please sign in to comment.