lams-github

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
LDEV-5204 Introduce imageURL config property

In vanilla Whiteboard all images are prefixed with current server URL.

If we move Whiteboard or export & import data, it will not work.

Now images have relative URL prefixed with whatever is in imageURL.

    • -0
    • +62
    /lams_build/conf/whiteboard/config.default.yml
    • -1
    • +5
    /lams_build/conf/whiteboard/readme.txt
    • -0
    • +151
    /lams_build/conf/whiteboard/src/js/services/ConfigService.js
    • -0
    • +1513
    /lams_build/conf/whiteboard/src/js/whiteboard.js
LDEV-5204 Embed images when exporting Whiteboard canvas

In vanilla Whiteboard images are referenced by absolute URLs. If we

upload content to another LAMS instance with a different URL, images

will not be found.

Now when exporting a LAMS LD we embed Whiteboard image base64 data

directly in tool exported XML. When we import the LD, we check if image

already exists on the server. If it does not, we recreate it from the

exported data.

LDEV-5204 Make uploaded images use relative URL

Using absolute URL can cause problems when migrating data to another

server.

    • -2
    • +3
    /lams_build/conf/whiteboard/src/js/main.js
LDEV-5204 Use separate file for each saved Whiteboard canvas

In original version all canvases were stored in a single JSON file. The

file would grow indefinitely. It would have to be stored in memory

whole. If it got corrupted, all canvases' data would be lost.

For all these reason now we store each canvas in its own file in

savedBoards/<whiteboard ID>.json

Each file is loaded only when corresponding canvas is used.

We can easily later do clean up - delete files which have not be used

for a year or so.

When doing a LAMS back up, the whole /savedBoards directory needs to be

backe up.

LDEV-5204 Hide unnecessary button in Whiteboard for better UX

    • -1
    • +3
    /lams_build/conf/whiteboard/readme.txt
    • -0
    • +322
    /lams_build/conf/whiteboard/src/index.html
LDEV-5204 Use comments in Whiteboard Gallery walk rating

LDEV-5204 Fix Whiteboard admin page reedit

LDEV-5204 Correctly construct API URLs for proxied Whiteboard server

LDEV-5208 Make collapse feature of discuss learner widget more visible

    • -0
    • +2
    /lams_learning/web/discussion/learner.jsp
LDEV-5208 Fix Start Discussion button alignment

LDEV-5208 Display discussion chart only to monitors

LDEV-5208 Change discussion chart colours for consistency

    • -4
    • +5
    /lams_learning/web/discussion/monitor.jsp
LDEV-5208 Add Discussion Sentiment monitor widget

    • -8
    • +21
    /lams_learning/web/discussion/learner.jsp
    • -0
    • +295
    /lams_learning/web/discussion/monitor.jsp
LDEV-5208 Add Discussion Sentiment learner widget

    • -0
    • +149
    /lams_learning/web/discussion/learner.jsp
    • -0
    • +12
    /lams_learning/web/discussion/startLearner.jsp
  1. … 3 more files in changeset.
LDEV-5208 Add Discussion Sentiment service and websocket hooks

LDEV-5208 Add Discussion Sentiment data model

Merge branch 'LDEV-5207' into v4.0

LDEV-5207 Fix signup flow after login failure

LDEV-5204 Fix Gallery Walk Whiteboard loading

LDEV-5204 Add Whiteboard tool content export and import

    • -2
    • +3
    /lams_build/conf/whiteboard/readme.txt
LDEV-5204 Fix iframe reload on autoring save

LDEV-5204 Fix image upload in Whiteboard

LDEV-5204 Initiate canvas copy on tool content copy on back-end

In previous version canvas was copied when an user opened it. Sometimes

in LAMS we copy content without opening a canvas. For example when using

Save As or Copy buttons in Authoring. We had to make sure that canvas is

always either copied on back-end or it gets opened and copied via

front-end.

    • -1
    • +4
    /lams_build/conf/whiteboard/readme.txt
    • -0
    • +140
    /lams_build/conf/whiteboard/scripts/s_whiteboard.js
    • -1
    • +0
    /lams_tool_whiteboard/db/sql/create_lams_tool_whiteboard.sql
LDEV-5204 Fixes for Gallery Walk and timing limits in Whiteboard

    • -1
    • +1
    /lams_tool_doku/web/pages/learning/notebook.jsp
LDEV-5204 Add Whiteboard monitoring

LDEV-5204 Fix detection when leader has finished Whiteboard activity

LDEV-5204 Add support for leaders in Whiteboard tool

Non-leaders get a read-only canvas.

LDEV-5198 Fix file encoding

LDEV-5204 Introduce improved security using hashing

In vanilla Whiteboard a global access token is configured on server and

must be present in all requests made to Whiteboard. It means that anyone

can modify any whiteboard ID (wid).

In LAMS we introduce a hash of wid + accesstoken. Users do not know

access token, so they can not generate the hash for another wid.

The hash is simple Java hashCode() function, sufficient for this

situation.

The hash does not include author name as it is not present in many use

cases.

The hash optionally has a different form: source wid + wid +

accesstoken. It is when copyfromwid parameter is present. In this case

the target canvas is using standard wid and hash, but for the extra call

to source canvas we use source wid and the modified hash. This modified

hash is only usable to copy content from this particular source wid to

this particular target wid, so users can not use the hash to draw on the

source canvas.

    • -1
    • +3
    /lams_build/conf/whiteboard/readme.txt
    • -0
    • +403
    /lams_build/conf/whiteboard/scripts/server-backend.js
    • -1
    • +5
    /lams_build/conf/whiteboard/src/js/main.js
LDEV-5204 Add Whiteboard basic learner interface

    • -0
    • +1
    /lams_tool_whiteboard/db/sql/create_lams_tool_whiteboard.sql