Commit graph

149 commits

Author SHA1 Message Date
Shivam Mishra
1b525f0f86 chore: linting fixes 2020-08-06 19:47:46 +05:30
Shivam Mishra
a18b81e39d chore: linting fixes 2020-08-06 19:47:46 +05:30
Shivam Mishra
7b6463c40e feat: add keyboard navigation to search dropdown 2020-08-06 19:47:46 +05:30
Shivam Mishra
bc8e23ca15 fix: update shortcut for search 2020-08-06 19:47:46 +05:30
Shivam Mishra
9b06881702 chore: remove log/print statements 2020-08-06 19:47:46 +05:30
Shivam Mishra
b2100279d6 feat: update code for new search 2020-08-06 19:47:46 +05:30
Shivam Mishra
16a2ef78ff style: add missing semicolon 2020-08-06 19:47:46 +05:30
Shivam Mishra
d5d3277013 feat: move search portable 2020-08-06 19:47:46 +05:30
Chinmay D. Pai
a29fab70ac
chore: improve logic for checking logged in user
frappe.session.user sometimes gets set after the function runs, so
current implementation would return undefined !== "Guest" as True,
causing Guest user to be set as a logged-in user.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-06-18 23:14:19 +05:30
Chinmay D. Pai
a72f808897
fix: make cookies more secure
* add HTTPOnly to sid, so sid will no longer be accessible through
  javascript.
* mark all cookies Secure by default over HTTPS.
* set SameSite to Strict for all cookies by default, preventing
  cross-origin cookie access.
* remove redundant publish_realtime for setting csrf_token on the
  client-side.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-06-18 18:09:27 +05:30
Shivam Mishra
e5a87aa421
style: remove stray console.log (#10722) 2020-06-17 19:37:30 +05:30
Shivam Mishra
4c6b58da26
fix: update condition that stringified everything (#10718) 2020-06-17 14:36:47 +05:30
Shivam Mishra
595f37bf10 style: space after if 2020-06-17 11:33:16 +05:30
Shivam Mishra
3ec76fb7e0 fix: stringify objects before sending 2020-06-16 21:46:22 +05:30
Faris Ansari
c0e94e7e38 fix: Add anchored headings only on doc content 2020-06-08 19:05:18 +05:30
Faris Ansari
de4c94d879 fix: Add scope filter in docs
- Focus searchbar with / key is pressed
- No need to stringify args for $.ajax
2020-06-05 15:38:21 +05:30
Faris Ansari
622667e130 feat: Doc page layout
- 3 Columns layout with Sidebar, Main and TOC
- Night owl hljs theme
- Sidebar with groups
2020-05-24 07:38:10 +05:30
Kasper Oikarinen
ca3609328a Add frappe cmd to request headers in website for analytics 2020-04-11 15:43:09 +02:00
Saurabh
aa9e4fc056 fix: regex to validate email id (#9323) 2020-01-20 19:04:37 +05:30
mergify[bot]
46cdc4cdc2
Merge pull request #8834 from scmmishra/fix-throw-message
fix: layout & api for message print
2019-11-18 14:41:13 +00:00
Shivam Mishra
93e0d33172 fix: allow setting message title from server 2019-11-18 13:10:16 +05:30
Gavin D'souza
767ff4f9f0 fix: making chat resources async available 2019-11-12 10:45:49 +05:30
Nabin Hait
b375ee9eef fix: merge conflict 2019-06-18 18:45:21 +05:30
Kenneth Sequeira
ba88347112
remove redundant expression 2019-06-13 19:38:12 +05:30
Kenneth Sequeira
6cc0a7ab48
remove redundant expression 2019-06-13 19:37:01 +05:30
Kenneth Sequeira
1bbdc423c1 fix email validation for contact page 2019-06-13 18:14:02 +05:30
Kenneth Sequeira
8ebc422954 fix email validation for contact page 2019-06-13 18:03:49 +05:30
Frappe Bot
94ea028db3 Merge branch 'master' into develop 2019-03-08 09:38:18 +00:00
Suraj Shetty
b230b83590 fix: frappe.require style import 2019-03-07 11:04:10 +05:30
Suraj Shetty
ef0eb75aa7 feat: refactor frappe.require(website version) to add multiple
script import
2019-03-07 10:09:13 +05:30
Faris Ansari
962787a2fb fix: Handle broken images with only CSS
- Remove JS handler for 404 images
2019-02-21 12:42:07 +05:30
Faris Ansari
f3a03850df refactor: Website image classes 2019-02-21 11:18:52 +05:30
Faris Ansari
5a96fc70de Merge branch 'develop' of https://github.com/frappe/frappe into website-bootstrap-4 2019-02-20 19:25:25 +05:30
Faris Ansari
41a4ba45da fix: Handle broken images 2019-02-20 19:01:51 +05:30
Faris Ansari
182729abd4 style: Fix lint errors 2019-02-16 19:38:22 +05:30
Faris Ansari
e941c90898 feat: Lazy load images only when they are in viewport 2019-02-13 23:09:38 +05:30
Aditya Hase
57196a8bbe fix(website): Enable socketio on website (for file upload) (#6866) 2019-01-31 13:54:42 +05:30
Aditya Hase
2858118f91 fix(chat): Setup and render chat on website pages as well 2018-11-13 12:48:26 +05:30
Faris Ansari
0a6deadc91 fix(syntax highlighting): Better syntax highlighting
- Update markdown2 to 2.3.5
- Only load syntax files for languages we support
- Enable highlightjs-lang extra to add class to code blocks
2018-08-05 20:04:13 +05:30
Faris Ansari
737330247e [website] Load chat only if chat is enabled (#5874)
* [website] Load chat only if chat is enabled

* Update website.js
2018-07-27 10:43:35 +05:30
Prateeksha Singh
a0f497edcf [Refactor] Webforms (#5537)
* [webform] login and date control working

* [webform] text editor and autocomplete imports

* [webform] add utils (before commons) to web js

* [website][init] messages in website

* [webform][wip] date field

* [webform][purge] form via controls and values

* [webform] remove old extraneous get_data code

* [webform][purge] remove upload handler and other listeners

* [webform][new] WebForm object

* [webform] save docs

* [webform] edit profile

* [controls] import awesomplete in multiselect

* [webform] handle existing doc or new form

* [es-module] independence of grid control by import structure

* [webform] grid on website! Stage I

* [webform][grid] include meta, model and perm on website >.<

* [webform] fix payment details

* [webform][fix] get table fields

* [webform][test] remove server field html test as not required

* [webform] check document permission

* Rename WebForm.js to webform.js
2018-06-22 11:35:52 +05:30
Faris Ansari
a70d56fd04 Website related fixes (#5660)
* bench build --app app_name

* Use highlight.js as npm package

* Add fenced-code-blocks to markdown compiler

* Support for next-prev links
2018-06-07 11:14:25 +05:30
Erick Jimenez
affe5b8659 Fix "frappe.is_user_logged_in" js function (#5548)
* Fix is_user_logged_in js function

* Add missing semicolon
2018-05-16 11:12:31 +05:30
Rushabh Mehta
3e1342721e [fix] globals 2018-03-19 12:39:33 +05:30
Achilles Rasquinha
799ab249ab request.js-like frappe.call extension to website.js request 2018-03-13 13:56:50 +05:30
Faris Ansari
92e8856588
New Build System: Rollup (#5010)
* JS build working

* Css build working!

* Uglify JS in production

* fix codacy

* Add frappe.commands.popen

* FIx ESLint errors

* Add socket.io to package.json

* ignore subprocess warnings

* Add babel-runtime

* sleep 20 after bench start

* remove set -e

* [FIX] non-shell subprocess call

* [FIX] use shell = False

* split commands
2018-02-20 13:47:48 +05:30
Achilles Rasquinha
005cfe3dc8 🎉 NEW Frappe Chat (#4612)
* added doctypes, created frappe chat ui

* added component layout with state-like abilities, added apis

* updated user doctype, moved from state-like feature and component abstraction

* added room component

* fixed publish_realtime with after_commit = True

* created room component and searchbar

* minor fix

* functional message parsing

* update

* Added Chat Profile

* added chat message

* more changes into chat room

* fixed APIs, added client side scripting

* added chat message attachements, more doc updates

* Brand New UI with socket io room integration

* completed socketio integration. off to room subscription and publish

* realtime room update

* raw update

* initialized docs, added p2p connection for call tests

* updated docs

* added coverage, updated api for ease of use

* raw commit

* added test cases

* Chat Room updates and new room creation

* added chat group creation

* added collapsible plugin

* toggable room view

* updated

* [RAW]

* updated UI for chat

* Deleted Previous Chat Page

* moved from frappe.Chat.Widget to frappe.Chat

* modularized frappe-fab

* added more docstrings

* tried adding conversation tones

* Added conversation_tones and refurbished chat popper

* modified frappe.ui.Dialog, moved from AppBar to ActionBar, responsive for Mobile 💃

* moved RoomList item namespace

* Configurable Desktop update, moved profile updates to on_update

* added state change listeners

* removed AppBar to ActionBar customizable 💃

* added destroy method

* removed coverage, refactored group creation

* Successful Chat Rooms and Group creation

* sort rows based on last_message_timestamp or creation

* added frappe._.compare

* removed redundant less variables

* Chat Room back button with custom routing and destroy methods

* Added EmojiPicker

* fixed multiple dialog render

* setup quick access

* added chat chime, functional chat message list updates at room list

* deleted package-lock.json

* realtime date updates

* updated chat message list

* functional message render and updates

* added track seen

* added typing status

* updated typing status

* valid typing statuses and quick search

* Functional Quick Search

* reverted fix

* some more cleanup and promisifed

* fixed hints close on click

* updated fab boldness

* close popper on click panel

* close popper on click panel

* reverted octicon-lg, fixed popper heading click

* new frappe capture

* removed webcamjs

* added uploader and capture

* removed chat FAB, added as notification instead

* on message update
2017-12-28 18:58:43 +05:30
Achilles Rasquinha
61b2b25981 [FIX] Fix XSS (#4560)
* [FIX] login xss

* [FIX] Client Side Sanitization

* moved from frappe to frappe.utils

* added strategies

* removed console.log

* fixed codacy

* XSS sanitization at login

* moved to common js - xss_sanitize
2017-12-13 16:25:06 +05:30
Rushabh Mehta
faee27f773 [fix] [translation] switch to desk, #3328 2017-09-04 22:26:12 +05:30
Rushabh Mehta
2ab07f4275 [feature] autoname prompt, refactor control.js, fixes frappe/erpnext#8940 2017-08-24 18:35:07 +05:30