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
dfe8b3d4a2
fix: style
2021-04-14 11:29:32 +05:30
pateljannat
e8ff9a5a32
feat: profile page
2021-04-14 11:19:02 +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
pateljannat
d38c64650e
fix: patch to update name of member
2021-04-12 18:05:43 +05:30
pateljannat
0e1002392f
fix: styling for dashboard
2021-04-12 14:59:49 +05:30
pateljannat
258ccb1642
feat: dashboard
2021-04-12 14:05:02 +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
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
pateljannat
3d024a289e
fix: conflicts
2021-04-06 18:53:34 +05:30
pateljannat
7658942500
fix: email patch and conference portal
2021-04-06 18:51:40 +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
pateljannat
87acbb9f6e
Merge branch 'main' of https://github.com/frappe/community into main
2021-03-31 10:48:28 +05:30
pateljannat
bf789c1891
feat: emails on messages
2021-03-31 10:48:23 +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
pateljannat
bc4503a636
feat: script to create community members
2021-03-23 20:09:10 +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
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