Anand Chitipothu
9e0476fd00
chore: upgraded node to v14 in github actions
...
- the new changes to frappe required node v14
- also added a build setup before runing tests to make sure the assets are built
2021-05-19 10:05:59 +05:30
Anand Chitipothu
d9ea02667d
refactor: removed the branding and customization for mon school
...
They have been moved to a new mon_school app
2021-05-18 21:25:29 +05:30
Anand Chitipothu
bdabf32124
Merge pull request #86 from fossunited/learn
...
Implemented learning section for batches
2021-05-14 15:36:44 +05:30
Anand Chitipothu
8b657f2f40
feat: added next/prev links to learn pages
2021-05-14 15:29:44 +05:30
Anand Chitipothu
49b41749e8
feat: added learn page
...
- added sections to the lesson to handle multiple sesions like examples and exercises
- added livecode integration to lesson pages
- autosave and submiting the answers is not done yet
2021-05-14 12:11:45 +05:30
Anand Chitipothu
1cf57c4823
feat: redirect the course page to learn page when the visitor is a student of a batch
2021-05-14 12:06:37 +05:30
Anand Chitipothu
5cfb72a731
style: tweaks
...
- made hero h1 black
- fixed the styles of lesson teasers
2021-05-08 13:44:34 +05:30
Anand Chitipothu
49d5ca4292
fix: added index to lesson doctype to fix the display order
2021-05-08 13:44:34 +05:30
Anand Chitipothu
a3e53efcc1
fix: fixed course description on the course page
...
The small intro was being shown in its place.
2021-05-08 13:44:34 +05:30
Anand Chitipothu
be7814b4fe
Merge pull request #81 from fossunited/flow-fixes
...
fix: username and email validations
2021-05-07 18:53:58 +05:30
Anand Chitipothu
c40ab9a726
style: style tweaks
2021-05-07 18:32:35 +05:30
Anand Chitipothu
64cf14ed92
fix: fail gracefully when livecode_to_svg crashes
...
That seems to be happening in some cases and couldn't really figure out
the reason. Handling the error to gracefully to show an empty image in
those cases.
2021-05-07 18:32:34 +05:30
Anand Chitipothu
dbaa896fcc
fix: fixed the issue of users unable to save sketches
...
Inserting new sketches is failing because the web user role doesn't have
permission to create sketches. Fixed it by adding
ignore_permission=True.
2021-05-07 18:32:34 +05:30
Anand Chitipothu
5d14dce320
Merge pull request #80 from fossunited/add-new-batch-form-enhancements
...
fix: Add new batch form enhancements
2021-05-07 16:53:21 +05:30
Anand Chitipothu
eec9e57dd2
fix: fixed thumbnail generation from livecode
...
Due to the recent changes to livecode, the code to generate svg from
code got broken. Fixed that now.
2021-05-07 16:48:52 +05:30
Anand Chitipothu
503b922074
style: improved the sketch page
2021-05-07 16:48:25 +05:30
Anand Chitipothu
3c8cffc5ad
fix: fixed the issue of unable to create sketches.
...
The livecode API has been generalized and there was some
backwackward-incompatible changes in that proces. Added
livecode-canvas.js with the required options to fix the issue.
2021-05-07 13:59:38 +05:30
Anand Chitipothu
84b4833fed
style: tweaked the styles of profile page
2021-05-07 12:33:43 +05:30
Anand Chitipothu
c764aa6c20
fix: fixed the error in saving a new course
2021-05-07 05:18:06 +05:30
Anand Chitipothu
bc11730697
style: showing the message as alert elements on the course page
2021-05-06 21:05:36 +05:30
Anand Chitipothu
92c4a86e8b
refactor: fixed the accidentally removed code in RequestInvite
2021-05-06 21:05:08 +05:30
Anand Chitipothu
358724bf1c
style: fixed the hero section on mobile
...
The email textbox was becoming too small.
2021-05-06 20:53:14 +05:30
Anand Chitipothu
bb80d988d7
refactor: using SketchTeaser widget to show sketch in the profile page
2021-05-06 20:43:04 +05:30
Anand Chitipothu
0ad03a3fb5
style: made the avatar and name of the person a link
2021-05-06 20:41:52 +05:30
Anand Chitipothu
3382de0ecb
refactor: removed slug from course page.
2021-05-06 15:47:47 +05:30
Anand Chitipothu
08bb7b4490
Merge pull request #73 from fossunited/mentor-request-email-templates
...
fix: mentor request flow and emails #30 , #69 , #70
2021-05-06 15:39:58 +05:30
Anand Chitipothu
15203f6bcc
Merge branch 'main' into mentor-request-email-templates
2021-05-06 15:38:53 +05:30
Anand Chitipothu
cbfb0d6761
Merge pull request #76 from fossunited/course-page
...
Refactored the course page
2021-05-06 13:55:42 +05:30
Anand Chitipothu
343aa50f78
Merge branch 'main' into course-page
2021-05-06 13:50:12 +05:30
Anand Chitipothu
5a70687067
refactor: removed the slug using the course name as part of url
2021-05-06 13:42:45 +05:30
Anand Chitipothu
a0921f7380
Merge pull request #77 from fossunited/widget-avatar
...
feat: Widget avatar
2021-05-06 13:26:49 +05:30
Anand Chitipothu
88457a82ac
refactor: learn page
2021-05-06 07:05:27 +05:30
Anand Chitipothu
761f36519e
refactor: refactored the about page
2021-05-06 07:05:17 +05:30
Anand Chitipothu
dc5b637ada
refactor: fixed the course page
2021-05-06 06:47:09 +05:30
Anand Chitipothu
da902d23f7
Merge pull request #71 from fossunited/footer
...
Fix footer
2021-05-05 16:30:45 +05:30
Anand Chitipothu
c2be23a902
fix: fixed the pickle error on installing community
2021-05-05 15:58:28 +05:30
Anand Chitipothu
da771d7830
[actions] added action to ache bench
2021-05-05 15:57:41 +05:30
Anand Chitipothu
041bed7e9d
Added sketches to the nav-bar on install
2021-05-05 12:56:27 +05:30
Anand Chitipothu
e330f45adc
style: fixed the footer
2021-05-05 12:53:24 +05:30
Anand Chitipothu
370d3a321b
Merge pull request #68 from fossunited/invite-flow-fixes
...
fix: invite flow issues
2021-05-04 23:23:40 +05:30
Anand Chitipothu
138fba66ae
Merge branch 'main' of git://github.com/khalby786/community into khalby786-main
2021-05-04 23:21:21 +05:30
Anand Chitipothu
82faaed15d
feat: set app name and logo on install and disable signup
...
- set app_name and app_logo_url on install
- disabled signup
2021-05-04 23:19:50 +05:30
Anand Chitipothu
b58a685e7a
Merge pull request #64 from fossunited/miscellaneous-fixes
...
fix: Miscellaneous fixes
2021-05-04 19:18:17 +05:30
Anand Chitipothu
1a06e2c0aa
Merge pull request #61 from fossunited/issue-56
...
doctypes for chapter and lesson
2021-05-03 16:51:01 +05:30
Anand Chitipothu
491b5c46ae
Merge branch 'main' into issue-56
2021-05-03 16:03:30 +05:30
Anand Chitipothu
b9d94df4d8
refactor: refactored the course page
...
- simplified the portal page for course
- added mentods to LMS Course and Community Member to reduce custom code
in portal pages
- included lessons in the ChapterTeaser
2021-05-03 12:05:17 +05:30
Anand Chitipothu
9e103af8b5
refactor: added auto name to chapter and lesson doctypes
2021-05-03 06:52:22 +05:30
Anand Chitipothu
5728714d71
feat: added lesson doctype
2021-05-03 06:50:23 +05:30
Anand Chitipothu
62cfc0fb24
feat: Added ChapterTeaser widget
2021-05-03 06:50:07 +05:30
Anand Chitipothu
a52a01ef7f
feat: Added chapter doctype
...
Also linked it from the LMS Course doctype.
Issue #56
2021-05-03 06:06:35 +05:30
Anand Chitipothu
59dba7730f
refactor: switched to less for css ( #49 )
...
- Added build setup to include styles.less in building community.css
- The old styles are still in style.css. Those styles will be slowly moved to style.less.
- Move all the new styles to style.less
2021-04-29 16:53:16 +05:30
Anand Chitipothu
4bc05bfda8
Merge pull request #46 from fossunited/docker-compose
...
feat: dev-instance using docker-compose
2021-04-29 15:25:31 +05:30
Anand Chitipothu
0cfd6d7634
feat: dev-instance using docker-compose
2021-04-29 14:13:01 +05:30
Anand Chitipothu
f7434f376f
Merge pull request #41 from fossunited/home-page
...
Home page
2021-04-29 13:59:54 +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
Anand Chitipothu
0ab4fbb03d
[mockups] added sketches page
2021-04-28 15:17:13 +05:30
Anand Chitipothu
68406762c9
Merge pull request #33 from fossunited/testable
...
Setup CI using github actions
2021-04-28 06:42:30 +05:30
Anand Chitipothu
89c539a3ed
[mockups] added navbar
2021-04-27 21:09: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
Anand Chitipothu
46e7a5c0d1
Added mockups
2021-04-27 19:17:48 +05:30
Anand Chitipothu
b80663a245
Added bug tag to Bug issue template
2021-04-26 16:43:53 +05:30
Anand Chitipothu
00107134b4
feat: add new design and improved the layout of the course page
2021-04-22 10:28:50 +05:30
Anand Chitipothu
153bb925d8
fix: show mentors section even when there are no mentors
...
Previously, the mentors heading was not shown when there were no
mentors, but the link to apply to become mentor was shown and that
appears in the Instructors section.
Fixed it by showing a message to indicate that there are no mentors for
this course.
2021-04-21 15:48:01 +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
Anand Chitipothu
ab3c4c34ce
Created Bug Report template
2021-04-21 12:28:02 +05:30
Anand Chitipothu
be93a496cc
fix: not permitted error when code is edited
...
This was caused by auto-save when the user is not logged in. Fixed it by
disabling auto-save for guest users.
2021-04-20 12:20:34 +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
Anand Chitipothu
88888903ab
fix: discussion tab when there are no messages
...
- fixed the issue of not showing discussion tab when there are no messages
- fixed the error when the course page is visited by a guest user
2021-04-14 06:43:48 +05:30
Anand Chitipothu
b8b7673985
fix: added a work-around to the issue of regex converter not loaded.
...
frappe app doesn't load all python modules of all the apps on startup. It
loads the hooks.py only if it is not already cached. Because of this the code
to install the regex coverter to not running, causing errors.
Fixed it by replacing the regex route with a string route. The issue is it
also matches the paths like `socket.io` and `website_script.js` etc. Handled
that by whitelisting those routes.
2021-04-07 12:41:17 +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
15b8b99ae2
fix: fixed the issue with dynamic routes.
...
- The code to install regex controller was not always executed. Forced the
exection of that by adding it to community/__init__.py
- Renoved the that code from hooks.py
2021-04-07 01:40:13 +05:30
Anand Chitipothu
b197fd605c
Merge pull request #12 from fossunited/nice-urls
...
Implemented nice urls for courses, topics, sketches and profiles
2021-04-06 18:39:07 +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
06f7698e8f
refactor: added custom routing for profiles
...
- installed a regex conveter to werkzeug to support regular expresions in routes
- added a website route rule to match all profiles
2021-04-06 18:07:05 +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
Anand Chitipothu
253c25bf1f
Show 404 page when the topic is not found.
...
Earlier it was failing with internal error.
2021-04-06 18:07:05 +05:30
Anand Chitipothu
e42e00f83a
Added nice urls to sketch pages.
...
The URL of a sketch will be `/skectes/<sketch-name>`. That would still be like
`/skectes/SKETCH-123`. It would interesting to try to make it `/sketches/123`.
2021-04-06 18:07:05 +05:30
Anand Chitipothu
53af969a2e
Added nice URLs to course and topic pages.
...
The URL of a course will be `/courses/<course-name>` and a topic will be
`/courses/<course-name>/<topic-name>`.
Implemented this by adding entries to `website_route_rules`.
2021-04-06 18:07:05 +05:30
Anand Chitipothu
24bb0f2b2a
Implemented a better inline editor for livecode.
...
- It shows the code like a textarea and the canvas will to the right
- It will take only the amount of height required for the code
- The existing LiveCodeEditor was renamed as LiveCodeEditorLarge and still
used or sketches
2021-03-29 18:56:48 +00:00
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
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
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