Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit c9889c7

Browse files
feat: added boilerplate code
1 parent 3dd7a26 commit c9889c7

File tree

6 files changed

+29
-14
lines changed

6 files changed

+29
-14
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
*.egg-info
44
*.swp
55
tags
6-
chat/docs/current
6+
chat/docs/current
7+
chat/www/test.html
8+
chat/www/test.js
9+
__pycache__

chat/hooks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
app_description = "Chat application for frappe"
77
app_icon = "octicon octicon-file-directory"
88
app_color = "grey"
9-
app_email = "pukimonlegend@gmail.com"
9+
app_email = "nihalmittal47@gmail.com"
1010
app_license = "MIT"
1111

1212
# Includes in <head>
1313
# ------------------
1414

1515
# include js, css files in header of desk.html
1616
# app_include_css = "/assets/chat/css/chat.css"
17-
# app_include_js = "/assets/chat/js/chat.js"
17+
app_include_js = "/assets/chat/js/chat.js"
1818

1919
# include js, css files in header of web template
2020
# web_include_css = "/assets/chat/css/chat.css"
@@ -181,4 +181,3 @@
181181
# auth_hooks = [
182182
# "chat.auth.validate"
183183
# ]
184-

chat/public/build.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"chat/js/chat.js": ["public/js/chat.js"]
3+
}

chat/public/js/chat.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// frappe.require(
2+
// [
3+
// 'assets/frappe/js/lib/socket.io.min.js',
4+
// 'assets/frappe/js/frappe/socketio_client.js',
5+
// ],
6+
// () => {
7+
// // socket io is loaded
8+
// frappe.socketio.init(9000);
9+
// }
10+
// );

chat/www/__init__.py

Whitespace-only changes.

setup.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
from setuptools import setup, find_packages
22

33
with open('requirements.txt') as f:
4-
install_requires = f.read().strip().split('\n')
4+
install_requires = f.read().strip().split('\n')
55

66
# get version from __version__ variable in chat/__init__.py
77
from chat import __version__ as version
88

99
setup(
10-
name='chat',
11-
version=version,
12-
description='Chat application for frappe',
13-
author='codescientist703',
14-
author_email='pukimonlegend@gmail.com',
15-
packages=find_packages(),
16-
zip_safe=False,
17-
include_package_data=True,
18-
install_requires=install_requires
10+
name='chat',
11+
version=version,
12+
description='Chat application for frappe',
13+
author='codescientist703',
14+
author_email='nihalmittal47@gmail.com',
15+
packages=find_packages(),
16+
zip_safe=False,
17+
include_package_data=True,
18+
install_requires=install_requires
1919
)

0 commit comments

Comments
 (0)