Coder Social home page Coder Social logo

personium / app-myboard Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 6.0 222 KB

An application that runs on the home application. Sample memo app.

License: Apache License 2.0

CSS 4.68% JavaScript 91.48% HTML 3.84%
ajax i18next javascript jquery personium personium-app

app-myboard's People

Contributors

cskyou avatar dixonsiu avatar hiroaki-shibata avatar mhciael avatar sawamiwataru avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

app-myboard's Issues

Add personium:localunit support

Since HomeApplication has start supporting local URL (pesonium:localunit), external cell URL received from user's cell must be converted.

No installation information

Since it is a sample app, the followings are missing:

  1. Where to host the server side files
  2. How to set up the server
  3. What is needed to see this app from HomeApp
  4. What is needed to install this app on to HomeApp
  5. What is needed to view other data subject's cell

Content-type is set twice and an error occurs

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);
    };

Navigation bar title (English) must be shortened

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"
}
}

Error message not displayed on the Read another panel

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.

Refresh token every 30 minutes

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.

Initial render produces 404 (Not Found) error

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]."}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.