lams_build

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
LDEV-5204 Adjust LAMS customisations for latest Whiteboard code

    • -58
    • +62
    ./conf/whiteboard/scripts/s_whiteboard.js
    • -1514
    • +0
    ./conf/whiteboard/src/js/whiteboard.js
LDEV-5204 Fix text boxes being badly redrawn on window resize

    • -5
    • +4
    ./conf/whiteboard/src/js/whiteboard.js
LDEV-5204 Fix canvas content being badly redrawn on window resize

    • -2
    • +4
    ./conf/whiteboard/src/js/whiteboard.js
LDEV-5204 Update information about Whiteboard and Node.js version

Revert "LDEV-5204 Make Whiteboard always behave like it is in production mode"

This reverts commit 7db7949e3398394d514f5d4f044d381955676eb5.

LDEV-5204 Hide Whiteboard contents until all resources load

Otherwise the UI looks messed up while it loads.

    • -0
    • +30
    ./conf/whiteboard/src/js/index.js
  1. … 1 more file in changeset.
LDEV-5204 Make Whiteboard always behave like it is in production mode

There is a problem with image loading in Whiteboard. Uploaded images get

stuck while being loaded in a copied canvas. For example after a learner

enters a grouped Whiteboard activity and a canvas gets cloned for his

session.

It does not occur when Whiteboard is in development mode. Maybe it has

to do with request proxying.

We now always run Whiteboard in development mode, but make it behave

like it is in production mode.

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
    ./conf/whiteboard/config.default.yml
    • -0
    • +105
    ./conf/whiteboard/scripts/config/config-schema.json
    • -0
    • +151
    ./conf/whiteboard/src/js/services/ConfigService.js
    • -0
    • +1513
    ./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.

    • -2
    • +31
    ./conf/whiteboard/scripts/s_whiteboard.js
  1. … 1 more file in changeset.
LDEV-5204 Make uploaded images use relative URL

Using absolute URL can cause problems when migrating data to another

server.

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.

    • -37
    • +58
    ./conf/whiteboard/scripts/s_whiteboard.js
LDEV-5204 Hide unnecessary button in Whiteboard for better UX

    • -0
    • +322
    ./conf/whiteboard/src/index.html
LDEV-5204 Add Whiteboard tool content export and import

    • -0
    • +9
    ./conf/whiteboard/scripts/s_whiteboard.js
  1. … 2 more files in changeset.
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.

    • -0
    • +140
    ./conf/whiteboard/scripts/s_whiteboard.js
  1. … 10 more files in changeset.
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.

    • -0
    • +403
    ./conf/whiteboard/scripts/server-backend.js
  1. … 7 more files in changeset.
LDEV-5204 Copy and refactor doKu code for Whiteboard use

doKu is a similar tool which hold various useful elements, like working

with an external Node server, Gallery Walk etc. Its code has been taken

and reused as a base for Whiteboard.

  1. … 107 more files in changeset.
LDEV-5204 Save source canvas data so target canvas is independent clone

LDEV-5204 Put images from source canvas to background to draw over them

LDEV-5204 Add readme file

    • -0
    • +14
    ./conf/whiteboard/readme.txt
LDEV-5204 Set default port to 9003

    • -0
    • +32
    ./conf/whiteboard/scripts/server.js
LDEV-5204 Allow cloning another canvas to non-empty canvas

    • -0
    • +951
    ./conf/whiteboard/src/js/main.js
LDEV-5127 Prevent author name wrapping in Etherpad

Multi-word names got wrapped and overlapped with each other, rendering

them unreadable.

    • -0
    • +82
    ./conf/etherpad/etherpad-lite/src/static/css/pad.css
LDEV-5178 Check for common and breached passwords

    • -0
    • +1
    ./conf/j2ee/jboss-deployment-structure.xml
    • binary
    ./lib/passpol/passpol-0.7.1-SNAPSHOT.jar
    • -0
    • +29
    ./lib/passpol/passpol.module.xml
  1. … 16 more files in changeset.
LDEV-5149 Upgrade Comments plugin to 0.1.47

It does not throw an exception on text copy.

Also changes to replace new line characters with spaces is not needed

anymore.

Merge remote-tracking branch 'origin/v4.0' into LDEV-5016

Conflicts:

lams_build/3rdParty.userlibraries

lams_central/conf/language/lams/ApplicationResources_en_AU.properties

lams_central/src/java/org/lamsfoundation/lams/authoring/template/web/LdTemplateController.java

lams_central/src/java/org/lamsfoundation/lams/authoring/template/web/TBLTemplateController.java

lams_central/src/java/org/lamsfoundation/lams/web/QuestionsController.java

lams_central/web/qb/collection.jsp

lams_central/web/questions/questionFile.jsp

lams_common/db/sql/create_lams_11_tables.sql

lams_common/db/sql/insert_lams_config_data.sql

lams_common/db/sql/insert_types_data.sql

lams_common/src/java/org/lamsfoundation/lams/dbupdates/patch20200129.sql

lams_common/src/java/org/lamsfoundation/lams/questions/QuestionWordParser.java

lams_common/src/java/org/lamsfoundation/lams/tool/service/LamsToolService.java

lams_gradebook/src/java/org/lamsfoundation/lams/gradebook/service/GradebookService.java

lams_tool_assessment/conf/language/lams/ApplicationResources_en_AU.properties

lams_tool_assessment/db/sql/create_lams_tool_assessment.sql

lams_tool_lamc/conf/language/lams/ApplicationResources.properties

lams_tool_lamc/conf/language/lams/ApplicationResources_en_AU.properties

lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/model/McContent.java

lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/model/McUsrAttempt.java

lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/service/McService.java

lams_tool_lamc/web/WEB-INF/tags/Arrow.tag

lams_tool_lamc/web/WEB-INF/tags/CKEditor.tag

lams_tool_lamc/web/WEB-INF/tags/Etherpad.tag

lams_tool_lamc/web/WEB-INF/tags/Rating.tag

lams_tool_lamc/web/WEB-INF/tags/StyledRating.tag

lams_tool_lamc/web/authoring/candidateAnswersList.jsp

lams_tool_lamc/web/authoring/itemlist.jsp

lams_tool_scratchie/web/pages/authoring/basic.jsp

lams_tool_scratchie/web/pages/authoring/parts/itemlist.jsp

  1. … 29 more files in changeset.
LDEV-5120 index.html should be blank

LDEV-5127 Fix a bug when change suggestion with new lines caused error

LDEV-5127 Fix a bug when counting characters in stats plugin