4156 Commits

Author SHA1 Message Date
pateljannat
389254b673 fix: message from course page 2021-03-23 19:26:31 +05:30
pateljannat
6433af6613 Merge branch 'main' of https://github.com/frappe/community into main 2021-03-23 15:29:18 +05:30
pateljannat
ab5929a4e8 feat: discussions tab and web form for messages 2021-03-23 15:29:12 +05:30
Anand Chitipothu
7ecfa6b0c3 tweaks to make the svg rendering work as expected.
Set the viewBox and fixed the args to line function.
2021-03-23 07:22:13 +00:00
Anand Chitipothu
ed0f70e3ed Replaced drawSvg library with custom svg library.
Even after so many attempts to fix drawSvg, couldn't get it to work with
top-left corner as the origin. Replaced it with a custom library.
2021-03-23 07:12:11 +00:00
Anand Chitipothu
280cfb3994 Fixed an error in rendering a line.
Used the wrong arguments to line functions, fixed now.
2021-03-23 06:06:25 +00:00
Anand Chitipothu
dfafab3ccd Fixed the orientation issue with rendering sketch as svg.
The sketches were flipped vertically when displayed as svg. It was due to the
defaults in the drawSvg library that was using bottom-left corner as the
origin by default. Fixed it by specifying the top-right as the origin.
2021-03-23 04:26:24 +00:00
Anand Chitipothu
071df674c0 Removed the debug text in rendering topic pages. 2021-03-23 04:23:52 +00:00
Anand Chitipothu
03a22bd537 Switched to using frappe.utils.md_to_html for rendering markdown.
The `markdown` filter doesn't convert to html if there is any html tag in the
input.
2021-03-23 04:20:54 +00:00
Anand Chitipothu
f8ba10dfba Include sketch title the sketch listing page. 2021-03-17 11:40:59 +00:00
Anand Chitipothu
9c485dbd4e Added support for line and rect in the preview of sketches 2021-03-17 11:40:59 +00:00
pateljannat
49e65c9e43 feat: email as name field for community member 2021-03-15 10:43:06 +05:30
pateljannat
599b2cf76c Merge branch 'main' of https://github.com/frappe/community into main 2021-03-15 10:42:44 +05:30
pateljannat
562a2189f7 feat: email as name field for community member 2021-03-15 10:42:28 +05:30
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
pateljannat
ce7175040f Merge branch 'main' of https://github.com/frappe/community into main 2021-03-12 12:22:19 +05:30
pateljannat
25a0dd02ac feat: community member for profile and edit profile form 2021-03-12 12:22:12 +05:30
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
31aec86c0b Fixed broken html in LiveCodeEditor macro. 2021-03-11 11:54:43 +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
4fe91422f4 Fixed an error in finding if the sketch is editable 2021-03-10 12:35:31 +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
936a3fcfff Added partial support for new sketches.
New Sketches can't be saved yet.
2021-03-09 12:53:11 +00:00
Anand Chitipothu
deea539c7d Added sketch pages. 2021-03-09 12:36:55 +00:00
Anand Chitipothu
ff15e7058b Added sketch doctype. 2021-03-09 12:36:41 +00:00
Anand Chitipothu
3583cd084d Fixed error on topic pages
The macro was imported wihout "with context" flag.
2021-03-09 12:34:48 +00:00
Anand Chitipothu
13030b0b9b Cleanup: moved LiveCodeEditor into a macro 2021-03-09 11:51:09 +00:00
Anand Chitipothu
480774755f Moved the css to assets 2021-03-09 11:50:45 +00:00
Anand Chitipothu
b7602d6d2b Added codemirror integration to LMS topic pages 2021-03-09 09:37:17 +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
fc6f60c4d7 Integrated topic page with livecode. 2021-03-08 11:11:48 +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
f96c8c27ed Renamed thr LMS doctypes in the portal pages
Issue #7
2021-03-05 17:13:01 +00:00
Anand Chitipothu
c661d141c2 Added editorconfig
Closes #9
2021-03-05 08:07:38 +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
Anand Chitipothu
0fcba82030 Fixed indent 2021-03-05 07:37:37 +00:00
pateljannat
3f04b10b90 refactor: seperate module LMS 2021-03-05 11:07:28 +05:30
pateljannat
4b90f2e129 refactor: new module for conference 2021-03-04 20:19:53 +05:30
pateljannat
8b5cd8e6c6 refactor: seperate module for hackathon 2021-03-04 20:11:18 +05:30
pateljannat
acea59767d feat: course enrollment and my courses page 2021-03-03 17:44:46 +05:30
pateljannat
b4eb9580af Merge branch 'main' of https://github.com/frappe/community into main 2021-03-02 18:54:45 +05:30
pateljannat
a4dffca4d7 feat: basic doctypes for conference and user profile flow for courses 2021-03-02 18:54:37 +05:30
Jannat Patel
94939bf1e9 Merge pull request #5 from fossunited/course-doctype-v1
First cut at the course doctype.
2021-03-02 18:52:45 +05:30
Anand Chitipothu
758f3ff090 Removed Form Scripts for course doctype.
They are no longer required as we are using portal pages now.
2021-03-02 07:04:24 +00:00
Anand Chitipothu
5ab4f86f90 Added portal pages for courses and topics. 2021-03-02 07:00:14 +00:00
Anand Chitipothu
972399d72f Removed webview from Community Course doctype.
It is easier to add www pages instead of customizing the webview.
2021-03-02 06:59:03 +00:00
Anand Chitipothu
7783dd5c1f Added new doctype "Community Course Topic". 2021-03-02 06:58:16 +00:00
Anand Chitipothu
6bad28463a First cut at the course doctype.
- Added "Community Course" doctype
- Added Form Scripts to set the route on first save
- Customized row and view templates

Yet to figure out how to entire course listing page.
2021-03-02 01:33:12 +00:00