personium / app-myboard Goto Github PK
View Code? Open in Web Editor NEWAn application that runs on the home application. Sample memo app.
License: Apache License 2.0
An application that runs on the home application. Sample memo app.
License: Apache License 2.0
Currently there is no way to identify whose board is displayed because user/cell name is not displayed.
It should use target Cell URL when Location header is not found.
Suggestion: Maybe it is better to check the response since it is working now.
Similar issue here.
Since HomeApplication has start supporting local URL (pesonium:localunit), external cell URL received from user's cell must be converted.
Need to add callback to Common.approvalRel.
Since it is a sample app, the followings are missing:
personium.getAppAuthUserToken = function(query, token) {
var cellUrl = query.cellUrl;
var url = [
cellUrl,
"__token"
].join("");
var headers = {
"Accept": "application/json",
"content-type": "application/x-www-form-urlencoded"
};
var contentType = "application/json";
var body = [
"grant_type=authorization_code",
"code=" + query.code,
"client_id=" + personium.getAppCellUrl(),
"client_secret=" + token
].join('&');
var httpCodeExpected = 200;
return personium.httpPOSTMethod(url, headers, contentType, body, httpCodeExpected);
};
Since the user does not have write permission, the Edit button should be disabled or the label changed.
Currently the Japanese version uses the same sentence in the title and the description. However, it is more readable if we shorten the title. This is done by defining two keys in translation.json.
e.g. English json
{
"navbar": {
"readAnotherBoard": {
"title": "Other MyBoard",
"description": "Read another MyBoard"
}
}
To improve usability, instead of displaying "Please select a board.", it is much better to disable the button when the drop down menu is empty.
The URL sometimes is in the format of "personium-localunit:/".
var url = Common.changeLocalUnitToUnitUrl(extUrl);
Common.dispAllowedCellListAfter(url, i);
When the list of MyBoard is empty and the Read button is clicked, an error message should be displayed. Currently, the message is written in the DOM element but not displayed.
Solution 1: To improve usability , the Read button should be disabled.
Solution 2: Display the error message.
Roles.json does not contain latest role and descripton.
Since we are using jQuery's val method, it is not necessary to convert newline to br tag.
Should make good use of AJAX and replace the information inside the textarea.
Retiring getAppAuthToken service endpoint.
Currently, if the user does not operate for the pass 50 minutes, session will be timed out automatically.
Since there is no special request for session timeout, it is easier to use the App when it can refresh token forever.
The following is display in the debug console. Why is it trying to access unrelated cells? Should I ignore these errors?
GET https://demo.personium.io/hn-user-9001/io_personium_demo_app-myboard/MyBoardBox/my-board.json 404 (Not Found)
{"code":"PR404-DV-0002","message":{"lang":"en","value":"Box not found at [https://demo.personium.io/hn-user-9001/io_personium_demo_app-myboard]."}}
GET https://demo.personium.io/hn-user-9011/io_personium_demo_app-myboard/MyBoardBox/my-board.json 404 (Not Found)
{"code":"PR404-DV-0002","message":{"lang":"en","value":"Box not found at [https://demo.personium.io/hn-user-9011/io_personium_demo_app-myboard]."}}
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.