diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8909604..8ace352 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,8 +45,8 @@ specifier: ^3.21.2 version: 3.21.2 i18next: - specifier: ^23.8.1 - version: 23.8.1 + specifier: ^23.8.2 + version: 23.8.2 mobx: specifier: ^6.12.0 version: 6.12.0 @@ -67,7 +67,7 @@ version: 18.2.0(react@18.2.0) react-i18next: specifier: ^14.0.1 - version: 14.0.1(i18next@23.8.1)(react-dom@18.2.0)(react@18.2.0) + version: 14.0.1(i18next@23.8.2)(react-dom@18.2.0)(react@18.2.0) react-router-dom: specifier: ^6.21.3 version: 6.21.3(react-dom@18.2.0)(react@18.2.0) @@ -103,8 +103,8 @@ specifier: ^29.5.11 version: 29.5.11 '@types/node': - specifier: ^20.11.10 - version: 20.11.10 + specifier: ^20.11.14 + version: 20.11.14 '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -136,8 +136,8 @@ specifier: ^3.0.8 version: 3.0.8 i18next: - specifier: ^23.8.1 - version: 23.8.1 + specifier: ^23.8.2 + version: 23.8.2 mobx: specifier: ^6.12.0 version: 6.12.0 @@ -158,7 +158,7 @@ version: 18.2.0(react@18.2.0) react-i18next: specifier: ^14.0.1 - version: 14.0.1(i18next@23.8.1)(react-dom@18.2.0)(react@18.2.0) + version: 14.0.1(i18next@23.8.2)(react-dom@18.2.0)(react@18.2.0) react-infinite-scroll-component: specifier: ^6.1.0 version: 6.1.0(react@18.2.0) @@ -197,8 +197,8 @@ specifier: ^29.5.11 version: 29.5.11 '@types/node': - specifier: ^20.11.10 - version: 20.11.10 + specifier: ^20.11.14 + version: 20.11.14 '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -2297,7 +2297,7 @@ engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 chalk: 4.1.2 jest-message-util: 27.5.1 jest-util: 27.5.1 @@ -2309,7 +2309,7 @@ engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} dependencies: '@jest/types': 28.1.3 - '@types/node': 20.11.10 + '@types/node': 20.11.14 chalk: 4.1.2 jest-message-util: 28.1.3 jest-util: 28.1.3 @@ -2330,7 +2330,7 @@ '@jest/test-result': 27.5.1 '@jest/transform': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.8.1 @@ -2367,7 +2367,7 @@ dependencies: '@jest/fake-timers': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 jest-mock: 27.5.1 dev: false @@ -2384,7 +2384,7 @@ dependencies: '@jest/types': 27.5.1 '@sinonjs/fake-timers': 8.1.0 - '@types/node': 20.11.10 + '@types/node': 20.11.14 jest-message-util: 27.5.1 jest-mock: 27.5.1 jest-util: 27.5.1 @@ -2413,7 +2413,7 @@ '@jest/test-result': 27.5.1 '@jest/transform': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 @@ -2521,7 +2521,7 @@ dependencies: '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 '@types/yargs': 16.0.5 chalk: 4.1.2 dev: false @@ -2533,7 +2533,7 @@ '@jest/schemas': 28.1.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 '@types/yargs': 17.0.24 chalk: 4.1.2 dev: false @@ -2545,7 +2545,7 @@ '@jest/schemas': 29.6.0 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 '@types/yargs': 17.0.24 chalk: 4.1.2 dev: true @@ -3024,7 +3024,7 @@ /@types/accepts@1.3.5: resolution: {integrity: sha512-jOdnI/3qTpHABjM5cx1Hc0sKsPoYCp+DP/GJRGtDlPd7fiV9oXGGIcjW/ZOxLIvjGz8MA+uMZI9metHlgqbgwQ==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 /@types/babel__core@7.20.1: resolution: {integrity: sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==} @@ -3059,18 +3059,18 @@ resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 20.11.10 + '@types/node': 20.11.14 /@types/bonjour@3.5.10: resolution: {integrity: sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 dev: false /@types/co-body@6.1.0: resolution: {integrity: sha512-3e0q2jyDAnx/DSZi0z2H0yoZ2wt5yRDZ+P7ymcMObvq0ufWRT4tsajyO+Q1VwVWiv9PRR4W3YEjEzBjeZlhF+w==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 '@types/qs': 6.9.11 dev: false @@ -3078,13 +3078,13 @@ resolution: {integrity: sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==} dependencies: '@types/express-serve-static-core': 4.17.35 - '@types/node': 20.11.10 + '@types/node': 20.11.14 dev: false /@types/connect@3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 /@types/content-disposition@0.5.5: resolution: {integrity: sha512-v6LCdKfK6BwcqMo+wYW05rLS12S0ZO0Fl4w1h4aaZMD7bqT3gVUns6FvLJKGZHQmYn3SX55JWGpziwJRwVgutA==} @@ -3095,7 +3095,7 @@ '@types/connect': 3.4.35 '@types/express': 4.17.17 '@types/keygrip': 1.0.2 - '@types/node': 20.11.10 + '@types/node': 20.11.14 /@types/crypto-js@4.2.2: resolution: {integrity: sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ==} @@ -3135,7 +3135,7 @@ /@types/express-serve-static-core@4.17.35: resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 '@types/qs': 6.9.11 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -3151,7 +3151,7 @@ /@types/formidable@2.0.6: resolution: {integrity: sha512-L4HcrA05IgQyNYJj6kItuIkXrInJvsXTPC5B1i64FggWKKqSL+4hgt7asiSNva75AoLQjq29oPxFfU4GAQ6Z2w==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 dev: false /@types/geojson@7946.0.10: @@ -3161,7 +3161,7 @@ /@types/graceful-fs@4.1.6: resolution: {integrity: sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 dev: false /@types/history@4.7.11: @@ -3181,7 +3181,7 @@ /@types/http-proxy@1.17.11: resolution: {integrity: sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 /@types/istanbul-lib-coverage@2.0.4: resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==} @@ -3235,7 +3235,7 @@ '@types/http-errors': 2.0.1 '@types/keygrip': 1.0.2 '@types/koa-compose': 3.2.5 - '@types/node': 20.11.10 + '@types/node': 20.11.14 /@types/mime@1.3.2: resolution: {integrity: sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==} @@ -3247,8 +3247,8 @@ resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} dev: false - /@types/node@20.11.10: - resolution: {integrity: sha512-rZEfe/hJSGYmdfX9tvcPMYeYPW2sNl50nsw4jZmRcaG0HIAb0WYEpsB05GOb53vjqpyE9GUhlDQ4jLSoB5q9kg==} + /@types/node@20.11.14: + resolution: {integrity: sha512-w3yWCcwULefjP9DmDDsgUskrMoOy5Z8MiwKHr1FvqGPtx7CvJzQvxD7eKpxNtklQxLruxSXWddyeRtyud0RcXQ==} dependencies: undici-types: 5.26.5 @@ -3304,7 +3304,7 @@ /@types/resolve@1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 dev: false /@types/retry@0.12.0: @@ -3322,7 +3322,7 @@ resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 20.11.10 + '@types/node': 20.11.14 /@types/serve-index@1.9.1: resolution: {integrity: sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==} @@ -3335,7 +3335,7 @@ dependencies: '@types/http-errors': 2.0.1 '@types/mime': 3.0.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 /@types/showdown@2.0.6: resolution: {integrity: sha512-pTvD/0CIeqe4x23+YJWlX2gArHa8G0J0Oh6GKaVXV7TAeickpkkZiNOgFcFcmLQ5lB/K0qBJL1FtRYltBfbGCQ==} @@ -3344,7 +3344,7 @@ /@types/sockjs@0.3.33: resolution: {integrity: sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 dev: false /@types/sprintf-js@1.1.4: @@ -3368,7 +3368,7 @@ /@types/ws@8.5.5: resolution: {integrity: sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 dev: false /@types/yargs-parser@21.0.0: @@ -5851,7 +5851,7 @@ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/expect-utils': 29.6.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 jest-get-type: 29.4.3 jest-matcher-utils: 29.6.1 jest-message-util: 29.6.1 @@ -6566,8 +6566,8 @@ engines: {node: '>=10.17.0'} dev: false - /i18next@23.8.1: - resolution: {integrity: sha512-Yhe6oiJhigSh64ev7nVVywu7vHjuUG41MRmFKNwphbkadqTL1ozZFBQISflY7/ju+gL6I/SPfI1GgWQh1yYArA==} + /i18next@23.8.2: + resolution: {integrity: sha512-Z84zyEangrlERm0ZugVy4bIt485e/H8VecGUZkZWrH7BDePG6jT73QdL9EA1tRTTVVMpry/MgWIP1FjEn0DRXA==} dependencies: '@babel/runtime': 7.23.2 dev: false @@ -6959,7 +6959,7 @@ '@jest/environment': 27.5.1 '@jest/test-result': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 chalk: 4.1.2 co: 4.6.0 dedent: 0.7.0 @@ -7094,7 +7094,7 @@ '@jest/environment': 27.5.1 '@jest/fake-timers': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 jest-mock: 27.5.1 jest-util: 27.5.1 jsdom: 16.7.0 @@ -7112,7 +7112,7 @@ '@jest/environment': 27.5.1 '@jest/fake-timers': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 jest-mock: 27.5.1 jest-util: 27.5.1 dev: false @@ -7133,7 +7133,7 @@ dependencies: '@jest/types': 27.5.1 '@types/graceful-fs': 4.1.6 - '@types/node': 20.11.10 + '@types/node': 20.11.14 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -7155,7 +7155,7 @@ '@jest/source-map': 27.5.1 '@jest/test-result': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 chalk: 4.1.2 co: 4.6.0 expect: 27.5.1 @@ -7250,7 +7250,7 @@ engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 dev: false /jest-pnp-resolver@1.2.3(jest-resolve@27.5.1): @@ -7311,7 +7311,7 @@ '@jest/test-result': 27.5.1 '@jest/transform': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 chalk: 4.1.2 emittery: 0.8.1 graceful-fs: 4.2.11 @@ -7368,7 +7368,7 @@ resolution: {integrity: sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 graceful-fs: 4.2.11 dev: false @@ -7407,7 +7407,7 @@ engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -7419,7 +7419,7 @@ engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} dependencies: '@jest/types': 28.1.3 - '@types/node': 20.11.10 + '@types/node': 20.11.14 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -7431,7 +7431,7 @@ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -7472,7 +7472,7 @@ dependencies: '@jest/test-result': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.11.10 + '@types/node': 20.11.14 ansi-escapes: 4.3.2 chalk: 4.1.2 jest-util: 27.5.1 @@ -7485,7 +7485,7 @@ dependencies: '@jest/test-result': 28.1.3 '@jest/types': 28.1.3 - '@types/node': 20.11.10 + '@types/node': 20.11.14 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.10.2 @@ -7497,7 +7497,7 @@ resolution: {integrity: sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 merge-stream: 2.0.0 supports-color: 7.2.0 dev: false @@ -7506,7 +7506,7 @@ resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 merge-stream: 2.0.0 supports-color: 8.1.1 dev: false @@ -7515,7 +7515,7 @@ resolution: {integrity: sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==} engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} dependencies: - '@types/node': 20.11.10 + '@types/node': 20.11.14 merge-stream: 2.0.0 supports-color: 8.1.1 dev: false @@ -9537,7 +9537,7 @@ resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==} dev: false - /react-i18next@14.0.1(i18next@23.8.1)(react-dom@18.2.0)(react@18.2.0): + /react-i18next@14.0.1(i18next@23.8.2)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-TMV8hFismBmpMdIehoFHin/okfvgjFhp723RYgIqB4XyhDobVMyukyM3Z8wtTRmajyFMZrBl/OaaXF2P6WjUAw==} peerDependencies: i18next: '>= 23.2.3' @@ -9552,7 +9552,7 @@ dependencies: '@babel/runtime': 7.23.2 html-parse-stringify: 3.0.1 - i18next: 23.8.1 + i18next: 23.8.2 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) dev: false diff --git a/qwilight-fe/package.json b/qwilight-fe/package.json index b82d3b8..176c1e1 100644 --- a/qwilight-fe/package.json +++ b/qwilight-fe/package.json @@ -9,7 +9,7 @@ "crypto-js": "^4.2.0", "dompurify": "^3.0.8", "google-protobuf": "^3.21.2", - "i18next": "^23.8.1", + "i18next": "^23.8.2", "mobx": "^6.12.0", "mobx-react-lite": "^4.0.5", "react": "^18.2.0", @@ -30,7 +30,7 @@ "@types/crypto-js": "^4.2.2", "@types/dompurify": "^3.0.5", "@types/jest": "^29.5.11", - "@types/node": "^20.11.10", + "@types/node": "^20.11.14", "@types/react": "^18.2.48", "@types/react-dom": "^18.2.18", "@types/react-router-dom": "^5.3.3", diff --git a/qwilight-fe/src/avatar/NoteItems.tsx b/qwilight-fe/src/avatar/NoteItems.tsx deleted file mode 100644 index 075e3d3..0000000 --- a/qwilight-fe/src/avatar/NoteItems.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { NoteAPINote } from "src/wwwAPI"; -import NoteItem from "src/note/NoteItem"; - -export default function NoteItems({ levelNote }: { levelNote: NoteAPINote[] }) { - return ( - <> - {levelNote.map(({ noteID, artist, title, genre, levelText, level }) => ( - - ))} - - ); -} diff --git a/qwilight-fe/src/note/CommentItem.tsx b/qwilight-fe/src/note/CommentItem.tsx index 12754ac..7c6410e 100644 --- a/qwilight-fe/src/note/CommentItem.tsx +++ b/qwilight-fe/src/note/CommentItem.tsx @@ -4,12 +4,6 @@ import { useTranslation } from "react-i18next"; import { useTo } from "taehui-ts/fe-utility"; -import w1 from "src/assets/w1.png"; -import w2 from "src/assets/w2.png"; -import w4 from "src/assets/w4.png"; -import w5 from "src/assets/w5.png"; -import w6 from "src/assets/w6.png"; - import { CommentAPIComment } from "src/wwwAPI"; import { formatText, diff --git a/qwilight-fe/src/site/NotSignedInInput.tsx b/qwilight-fe/src/site/NotSignedInInput.tsx deleted file mode 100644 index 811069d..0000000 --- a/qwilight-fe/src/site/NotSignedInInput.tsx +++ /dev/null @@ -1,74 +0,0 @@ -import { useState } from "react"; -import { useTranslation } from "react-i18next"; -import { Button, Col, Input } from "reactstrap"; -import CryptoJS from "crypto-js"; -import SiteComponent from "src/site/SiteComponent"; - -const EventPB = require("src/Event_pb"); - -export default function NotSignedInInput() { - const [avatarID, setAvatarID] = useState(""); - const [avatarCipher, setAvatarCipher] = useState(""); - const [autoSignIn, setAutoSignIn] = useState(false); - const { t } = useTranslation(); - - const onSignIn = () => { - if (autoSignIn) { - window.localStorage.setItem("avatarID", avatarID); - window.localStorage.setItem( - "avatarCipher", - CryptoJS.AES.encrypt( - avatarCipher, - "591A6F91-2A27-4A88-88FA-0FEB7CB5FD94", - ).toString(), - ); - } - window.localStorage.setItem("autoSignIn", autoSignIn.toString()); - SiteComponent.send({ - eventID: EventPB.Event.EventID.SIGN_IN, - text: JSON.stringify({ avatarID, avatarCipher }), - }); - }; - - return ( - <> - - { - setAvatarID(value); - }} - placeholder={t("signInID")} - /> - - - { - setAvatarCipher(value); - }} - type="password" - placeholder={t("signInCipher")} - onKeyDown={({ key }) => { - if (key === "Enter") { - onSignIn(); - } - }} - /> - - - - - - ); -} diff --git a/taehui-fe/package.json b/taehui-fe/package.json index a85d29b..fa6e999 100644 --- a/taehui-fe/package.json +++ b/taehui-fe/package.json @@ -7,7 +7,7 @@ "bootstrap": "^5.3.2", "crypto-js": "^4.2.0", "dompurify": "^3.0.8", - "i18next": "^23.8.1", + "i18next": "^23.8.2", "mobx": "^6.12.0", "mobx-react-lite": "^4.0.5", "react": "^18.2.0", @@ -29,7 +29,7 @@ "@types/crypto-js": "^4.2.2", "@types/dompurify": "^3.0.5", "@types/jest": "^29.5.11", - "@types/node": "^20.11.10", + "@types/node": "^20.11.14", "@types/react": "^18.2.48", "@types/react-dom": "^18.2.18", "@types/showdown": "^2.0.6", diff --git a/taehui-fe/src/avatar/SignUpView.tsx b/taehui-fe/src/avatar/SignUpView.tsx index ae0a162..8a51d8f 100644 --- a/taehui-fe/src/avatar/SignUpView.tsx +++ b/taehui-fe/src/avatar/SignUpView.tsx @@ -118,7 +118,7 @@ avatarName && (!fax || isValidFax) ) { - postAvatar(t, avatarID, avatarCipher, avatarName, fax); + await postAvatar(t, avatarID, avatarCipher, avatarName, fax); } else { toast.error(t("failedValidation")); } diff --git a/taehui-fe/src/avatar/setAvatarStore.ts b/taehui-fe/src/avatar/setAvatarStore.ts index b18e97a..50cf95b 100644 --- a/taehui-fe/src/avatar/setAvatarStore.ts +++ b/taehui-fe/src/avatar/setAvatarStore.ts @@ -77,7 +77,7 @@ ); switch (status) { case 201: - this.signIn(t, avatarID, avatarCipher); + await this.signIn(t, avatarID, avatarCipher); break; case 403: toast.error(t("alreadyAvatarID")); @@ -135,7 +135,7 @@ async autoSignIn(t: TFunction) { if (window.localStorage.getItem("autoSignIn") === "true") { - this.signIn( + await this.signIn( t, window.localStorage.getItem("avatarID") ?? "", CryptoJS.AES.decrypt( diff --git a/taehui-fe/src/forum/AutoEssayTitleView.tsx b/taehui-fe/src/forum/AutoEssayTitleView.tsx index cf9651d..7dcd61e 100644 --- a/taehui-fe/src/forum/AutoEssayTitleView.tsx +++ b/taehui-fe/src/forum/AutoEssayTitleView.tsx @@ -49,7 +49,7 @@ headers: { millis: getMillis(), totem }, })) ) { - setAutoEssays(forumID, totem); + await setAutoEssays(forumID, totem); } } }} diff --git a/taehui-fe/src/taehui/TaehuiInfoView.tsx b/taehui-fe/src/taehui/TaehuiInfoView.tsx index 47ca1b7..6020108 100644 --- a/taehui-fe/src/taehui/TaehuiInfoView.tsx +++ b/taehui-fe/src/taehui/TaehuiInfoView.tsx @@ -125,7 +125,7 @@ (2016년 8월 2일)
  • - + 정보처리기사 {" "} (2016년 8월 17일) @@ -138,13 +138,13 @@
    공모전