Commit Graph

13 Commits

Author SHA1 Message Date
Anand Chitipothu
9c485dbd4e Added support for line and rect in the preview of sketches 2021-03-17 11:40:59 +00:00
Anand Chitipothu
faf102bdec Added support to split the topic description into sections.
We are using special markup to split the description into sections.

Each section is marked as:

    {{ section(type="example", id="foo") }}
    ...
    {{ end }}

This is the first-cut implementation and requires cleanup.
2021-03-12 12:33:41 +00:00
Anand Chitipothu
dca8c9d5db Added thumbnails to the recent sketches page.
- Added an svg field to store the thumbnail
- The thumbnail is computed and cached in redis
2021-03-12 05:37:24 +00:00
Anand Chitipothu
fe63ded98c Added svg field to the sketch to store the image of the sketch. 2021-03-12 05:02:57 +00:00
Anand Chitipothu
5f8de7612b Using the user fullname when rendering a sketch.
Also refactored the portal page for sketches and moved the common code
to the lms_sketch doctype module.
2021-03-11 11:53:06 +00:00
Anand Chitipothu
406244ff69 Added the ability to save sketches
Implemented by exposing an RPC method to save the sketch and calling
from JS using `frappe.call`. Any logged-in user can create new sketches
and the owner can edit his/her own sketches.
2021-03-10 12:25:14 +00:00
Anand Chitipothu
ff15e7058b Added sketch doctype. 2021-03-09 12:36:41 +00:00
Anand Chitipothu
862878462b Added LMS Settings.
The `livecode_url` is now part of LMS settings and not hardcoded in the code.
2021-03-09 09:04:39 +00:00
Anand Chitipothu
6c671c0347 Added LMS Section doctype 2021-03-08 11:11:28 +00:00
Anand Chitipothu
bfc15cf1a4 Added preview and sections fields to LMS Topic
- The preview is used to show the details of the topic in the course page
- the sections are used to show the different part of the topic, each could be of a different type

Issue #8
2021-03-05 17:20:02 +00:00
Anand Chitipothu
ca621e07b7 Renamed the doctypes in LMS.
The prefix has been changed from "Community" to "LMS".

Issue #7
2021-03-05 07:39:50 +00:00
pateljannat
3f04b10b90 refactor: seperate module LMS 2021-03-05 11:07:28 +05:30
pateljannat
8b5cd8e6c6 refactor: seperate module for hackathon 2021-03-04 20:11:18 +05:30