Code Monkey home page Code Monkey logo

adapt-contrib-graphic's People

Contributors

akshay-bhavsar avatar brian-learningpool avatar chucklorenz avatar dancgray avatar darylhedley avatar dependabot[bot] avatar guywillis avatar himanshu1618 avatar joe-allen-89 avatar kirsty-hames avatar lemmyadams avatar lukaszgrela avatar moloko avatar olaoluwam avatar oliverfoster avatar semantic-release-bot avatar taylortom avatar tomgreenfield avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adapt-contrib-graphic's Issues

Transform

Where it does _graphic.large=_graphic.src?

Graphic attribute should only have a large image and small image

  • This is due to on full width graphics it should use the large size when on desktop - whilst on the medium sized (single column) layout it should switch to the small image.
  • There is no need for the medium image size.
  • When using the graphic single width it should only use the small sized graphic

Image changing to 'medium' too early?

I think there might be a bug between the device width of 774px and 761px whereby it is changing the image to the medium image size too early.

Testing method:
Set 3 different image sizes, for example I have included web hosted images below for clearer testing:

   {
        "_id":"c-30",
        "_parentId":"b-15",
        "_type":"component",
        "_component":"graphic",
        "_classes":"",
        "_layout":"left",
        "title":"Here is a graphic object",
        "body":"Hi everybody!",
        "graphic": {
            "alt": "alt text",
            "title": "title text",
            "large": "http://placehold.it/467x500",
            "medium": "http://placehold.it/471x200/ffcc00",
            "small": "http://placehold.it/471x300"
        }
    }

When between 774px and 761px you will notice that the yellow image example is showing. I don't think this shouldn't change until below 760px.

Tested on Mac; Chrome, Safari and Firefox

Use predefined component methods

  • The following should be used to set _isReady and _isComplete on the model inside a view
this.setCompletionStatus();
this.setReadyStatus();
  • Image ready function will then need _.bind added to callback to allow this.setReadyStatus();

Presentation components need to be reset on revisit

This should be based upon _isResetOnRevisit

  • If set to true - presentation components should reset themselves
  • State and model attributes should be reset
  • To test this out please change this in the adaptModel.js
  • Should be done on the develop branch

Update _target in example.json as per schema requirements

Subject of the issue

Schema requires _target to have value of "_blank", "_self", "_parent", or "_top". If example.json is used and subsequently imported into the Adapt Authoring Tool data validation fails.

Expected behaviour

Schema default is "_blank" so this should be reflected in example.json.

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.