Commit Graph

58 Commits

Author SHA1 Message Date
pateljannat
cf68d3127c fix: conflicts 2021-05-03 15:51:06 +05:30
pateljannat
f13bb494ef fix: converted tabs to spaces 2021-05-03 15:50:14 +05:30
pateljannat
5fdecb708e fix: tabs to space, moved js to widget, removed unrelated changes 2021-05-03 15:14:11 +05:30
pateljannat
0144ab60de fix: logout issue, liscence.txt change 2021-05-03 15:05:23 +05:30
pateljannat
565787eeb6 feat: new-sign-up-form, request invite widget, request invite tests, get_sketches with owner 2021-05-03 12:33:31 +05:30
pateljannat
52f16131af fix: add new batch form enhancements (#43) invite request doctype and flow (#42) 2021-05-01 14:37:57 +05:30
Anand Chitipothu
905f51ee76 fix: styles on home page 2021-04-29 12:16:48 +05:30
Anand Chitipothu
e207320721 feat: added home page
- Refactored the lms_course page and added find_all method to find courses
- Added CourseTeaser widget
- Added /home as a portal page
2021-04-29 10:57:29 +05:30
Anand Chitipothu
20ccc09869 refactor: sketches page
- Added new widget SketchTeaser
- Moved get_recent_sketches as static method in LMSSketch
- Added `models.py` to make it easy to import Course and Sketch class
- Updated the sketches template to use the SketchTeaser widget
2021-04-29 10:55:21 +05:30
Anand Chitipothu
e78c6020e7 Merge pull request #37 from fossunited/batch-discussions
fix: Batch discussions and Community Member fixes
2021-04-29 10:53:20 +05:30
Anand Chitipothu
4874d99e44 feat: widgets interface
Widgets are reusable jinja templates which can be used in other
themplates. Widgets are written in widgets/ directory in every frappe
module and can be accessed as `{{ widgets.WidgetName(...) }}` from any
template.
2021-04-29 10:49:37 +05:30
pateljannat
a022804381 test: users with same name, username validations, users without username 2021-04-28 22:04:42 +05:30
pateljannat
7a40b3e7a5 fix: test for community member and lms course 2021-04-28 17:52:12 +05:30
pateljannat
7b142fd72d test: member creation from user 2021-04-28 13:50:40 +05:30
pateljannat
fc8ff9c7fd Merge branch 'main' of https://github.com/frappe/community into batch-discussions 2021-04-28 13:08:23 +05:30
pateljannat
c6bd47eb62 fix: user validaton and community member name issue 2021-04-28 13:08:09 +05:30
Anand Chitipothu
8d62b5c504 chore: Added CI using github actions 2021-04-27 19:49:56 +05:30
Anand Chitipothu
8857b97773 refactor: added methods to access mentors from course with test cases 2021-04-27 19:49:02 +05:30
pateljannat
d68f1de796 feat: #27 discussion message publish realtime 2021-04-27 16:32:34 +05:30
pateljannat
424967b03e feat: #28 info page, #27 discussion page initial structure, add batch webform change 2021-04-27 10:33:49 +05:30
pateljannat
44dc42d7dd feat: batch folders, redirects, members page 2021-04-26 10:16:53 +05:30
pateljannat
c18916096e fix: conflicts 2021-04-22 14:43:53 +05:30
pateljannat
3b578d750a fix: validations for new batch form 2021-04-22 14:43:04 +05:30
Anand Chitipothu
22448a8a7b added links to lms_course and lms_batch dooctypes.
This makes it possible to the number of batches for a course, the number
of mentors for a course etc.
2021-04-21 15:13:16 +05:30
pateljannat
54fe2efa07 fix: label changes for mentor request in lms settings 2021-04-21 13:29:36 +05:30
pateljannat
86bd708c34 fix: apply as mentor even if email template not found 2021-04-21 13:17:07 +05:30
pateljannat
b09ec1e29d feat: add new batch and mentor course mapping 2021-04-21 10:47:10 +05:30
pateljannat
e6248f9e02 feat: course page redesign 2021-04-20 13:21:01 +05:30
pateljannat
91be957885 Merge branch 'main' of https://github.com/frappe/community into main 2021-04-15 09:33:24 +05:30
pateljannat
20e562bfb0 docs: hackathon 2021-04-15 09:33:17 +05:30
Anand Chitipothu
6fad78278a feat: added code_revision doctype for saving code snippets.
This was supposed to be part of revision f15080, but that got missed out.
2021-04-14 11:30:41 +05:30
pateljannat
871ad279d1 Merge branch 'main' of https://github.com/frappe/community into main 2021-04-07 19:53:08 +05:30
pateljannat
84cf74e25d fix: clean urls for hackathons and correcting slug parameter for discussions 2021-04-07 19:53:03 +05:30
Anand Chitipothu
f1508033a3 feat: implemented autosave for sections
Now the changes made to the code in each section will be autosaved and loaded
back on next page load.
2021-04-07 01:40:13 +05:30
Anand Chitipothu
a3788a0f39 refactor: added nice urls for sketches.
- Sketches will be available at `/sketches/<sketch-id>`
2021-04-06 18:36:07 +05:30
Anand Chitipothu
175bd19a51 refactor: added slugs to course and topics to make nice urls
- the slug is autogenerated from the title
- the slug of a topic is unique among all the topics of that course
2021-04-06 18:07:05 +05:30
Anand Chitipothu
6620ecf0c8 refactor: added utility to convert title into slug 2021-04-06 18:07:05 +05:30
pateljannat
bf789c1891 feat: emails on messages 2021-03-31 10:48:23 +05:30
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
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