maxzinkus / atypicalspeech Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I have been attempting to log in as an admin on your platform, but I consistently encounter ERROR 401. According to your documentation, the only password I can set is related to MySQL credentials. Despite trying the combination of 'user:root' and the password I've set and other attempts, I still receive the error. I am unsure whether this issue stems from credential problems or other underlying issues.
If neither the provided credentials nor MySQL configurations are causing the problem, could you please provide guidance on how to set the admin password and user? Any assistance in resolving this matter would be greatly appreciated.
AtypicalSpeech/config/config.json
Line 18 in e16e1e9
This file should not be tracked in git. Credentials in the git history should be changed once they can be purged.
Seems like the version being built are the same between development and prod mode, so the issue should be addressed at the router can't route to the right page
Passwords are often not a sufficient protection against unauthorized login. Adding time-based OTP (TOTP) using a standard node.js library and pairing it with an app such as Google Authenticator or Microsoft Authenticator on admin's personal devices (i.e. smartphones) would dramatically improve security.
As discussed in Zoom, add a logout button to the admin which invalidates the JWT on the server-side and deletes the cookie from the client.
Line 3 in e16e1e9
Even though our database is only locally accessible, it's generally considered far more secure to read credentials from secure storage or at least from the environment. This way, we don't have credentials in the git history. Once this change is adopted, the credentials can be updated.
AtypicalSpeech/config/jwt.json
Line 2 in e16e1e9
Similarly, this should be purged and changed.
Scenario:
There is an error happened while we try to deploy our production code to the server, here is the error as below:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR! peer react@">=16.8.0" from @emotion/[email protected]
npm ERR! node_modules/@emotion/react
npm ERR! @emotion/react@"^11.10.5" from the root project
npm ERR! peer @emotion/react@"^11.0.0-rc.0" from @emotion/[email protected]
npm ERR! node_modules/@emotion/styled
npm ERR! @emotion/styled@"^11.10.5" from the root project
npm ERR! 3 more (@mui/material, @mui/styled-engine, @mui/system)
npm ERR! 3 more (@mui/material, @mui/styled-engine, @mui/system)
npm ERR! 20 more (@emotion/styled, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from [email protected]
npm ERR! node_modules/audio-react-recorder
npm ERR! audio-react-recorder@"^1.0.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^16.0.0" from [email protected]
npm ERR! node_modules/audio-react-recorder
npm ERR! audio-react-recorder@"^1.0.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/runner/.npm/_logs/2023-05-16T19_56_23_565Z-eresolve-report.txt
Issue Address:
When deploying, the script in deploy.yml will be run, and the crash happens in the code I've stressed:
The reason is when we're using npm version 7+, it adds a new feature named "peer dependency", which analyzes the shared libraries like react and react-dom in each third-party plugin whether are using the same version or a permitted version.
Solution:
In package.json, we add this rule as follows, and it will force third-party plugins to use the same version of shared libraries and avoid installing repeated ones again and again.
FYI:
--force
and --legacy-peer-deps
are also temporary solutions to help to deploy not blocking the whole process, but it's definitely not an ideal way to use in a production environment.
References:
https://medium.com/@reemshakes/devdependencies-vs-dependencies-in-reactjs-db7261e13012
https://jsramblings.com/do-dependencies-devdependencies-matter-when-using-webpack/
https://stackoverflow.com/questions/66020820/npm-when-to-use-force-and-legacy-peer-deps
https://developer.aliyun.com/article/1060855
Strict samesite restrictions is appropriate as our app is not meant to be embedded or cross-functional with other websites.
As discussed in Zoom, require authentication in all api points.
Solution:
https://wzuuw.sse.codesandbox.io/#/table/inline-edit-table
https://pro.ant.design/docs/getting-started
Script Upload Module:
TBD, involving the storage system, the most challenging and time-consuming section to work on, things will be different when we upload scripts to the server.
Audio recordings made with distortions - sample recordings with distortions
The issue seems to be happening for a couple of other users of the 'audio-react-recorder' library. Link to issue
Depends on the device, but on the device currently deployed at the hospital, distortion starts to happen around the 7th or 8th consecutive recording with the distortion worsening afterwards.
I have tried modifying audio settings of audio-react-recorder (ex) and have attempted changing audio formats but have not been able to produce any meaningful improvement in audio quality.
'audio-react-recorder' does seem to be an abandoned library; have also explored other libraries as a last resort (ex). Please let me know if you have any recommendations on switching to another recording library, or potentially build one ourselves (expensive, though).
The thing is that as users can have several microphones in their system, it could happen that no mic is selected (or a silent source is selected) and the person will not be recording any audio. It will still generate a file, but it will be just silence. I think we should have some type of signal indicator (waveform, vu-meter, whatever)
For storing data in azure long-term storage
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.