lenra-io / client_common Goto Github PK
View Code? Open in Web Editor NEWContains all of the common elements across all of the client projects.
License: MIT License
Contains all of the common elements across all of the client projects.
License: MIT License
Add a button on the page with token registration form to resend the registration token e-mail.
Disable the button for 30sec (with a spinner) to do not resend an e-mail.
Implement the Lenra OAuth module to register/login into lenra using the authorization code flow WITH PKCE
.
Use a existing library like flutter oauth2_client
We should be able to remove lenra_channel from this repository.
lenra_channel is only used inside of client-app
repository.
Linked to lenra-io/lenra_cli#94
Add GPL license to the project and enhance the current README to match the new Lenra README template. Add more examples and details about how this repository works and what are the specifics of it.
See #58 and check that this has properly been fixed.
Add a checkbox to the login form to keep connection and send the parameter to the server to create a longtime cookie
We need to remove each PR-IS-WIP action call because it's broken
Any technical recommandation or specific warning about this task (if needed)
What can be done to improve the ecological impact of this task ?
Navigation should be handled properly. The navigator defined in this repository should contains all the common routes between backoffice and store such as auth routes.
It seems that our current API request system using the models produces an unexpected behavior when running the same API request multiple times (no matter the parameters as long as the Status variable is the same for the requests).
This must be due to the way we handle request statuses. In fact we use a class variable for the Status which means that if two same requests run concurrently it will try to update the same Status variable. The first request to finish will be ok but the second will just not run the request and fetch the result from the first (because the status was updated to done).
Define the Status variables inside of the method that runs the request. This will ensure that two requests cannot edit the same Status at the same time.
This means that we must change where we use the status to observe the state of the request to use the Future's result instead. This should not be a problem.
class Example {
Status<GetMainEnvResponse> getMainEnvStatus = Status();
Future<GetMainEnvResponse> getMainEnv(int appId) async {
var res = await getMainEnvStatus.handle(
() => ApplicationApi.getMainEnv(appId),
notifyListeners,
);
mainEnv = res.mainEnv;
notifyListeners();
return res;
}
}
Future<GetMainEnvResponse> getMainEnv(int appId) async {
Status<GetMainEnvResponse> getMainEnvStatus = Status();
var res = await getMainEnvStatus.handle(
() => ApplicationApi.getMainEnv(appId),
notifyListeners,
);
mainEnv = res.mainEnv;
notifyListeners();
return res;
}
Common routes between backoffice and store should be added in this repository. ( mainly Auth routes )
Change the error handling system to match the new specs defined in the following epic: https://github.com/lenra-io/Lenra/issues/53
Now the API returns 4xx/5xx error ranges instead of success true/false and data.
The API returns only one error at a time, not a list of errors.
When 5xx error, no message is returned which means that it should be handle generically on the client.
400 error example :
{
"error": "This is an error message"
}
Successful data example:
{
"data": {
"example": "dataexample"
}
}
or when receiving a list:
{
"data": [
{
"example": "dataexample"
},
{
"example": "dataexample2"
}
]
}
Use the Config.oauthBaseUrl as done in the oauth client class for the disconnect method in the oauthModel.
No response
No response
No response
Add a disconnect button in the register token page. Users are blocked on this page after login with "Keep me logged in".
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.