Pārlūkot izejas kodu

feat: Initialize App

sagar 3 gadus atpakaļ
revīzija
0416383676

+ 6
- 0
.gitignore Parādīt failu

@@ -0,0 +1,6 @@
1
+.DS_Store
2
+*.pyc
3
+*.egg-info
4
+*.swp
5
+tags
6
+business_theme_v14/docs/current

+ 18
- 0
MANIFEST.in Parādīt failu

@@ -0,0 +1,18 @@
1
+include MANIFEST.in
2
+include requirements.txt
3
+include *.json
4
+include *.md
5
+include *.py
6
+include *.txt
7
+recursive-include business_theme_v14 *.css
8
+recursive-include business_theme_v14 *.csv
9
+recursive-include business_theme_v14 *.html
10
+recursive-include business_theme_v14 *.ico
11
+recursive-include business_theme_v14 *.js
12
+recursive-include business_theme_v14 *.json
13
+recursive-include business_theme_v14 *.md
14
+recursive-include business_theme_v14 *.png
15
+recursive-include business_theme_v14 *.py
16
+recursive-include business_theme_v14 *.svg
17
+recursive-include business_theme_v14 *.txt
18
+recursive-exclude business_theme_v14 *.pyc

+ 7
- 0
README.md Parādīt failu

@@ -0,0 +1,7 @@
1
+## Business Theme V14
2
+
3
+Business Theme for ERPNext / Frappe
4
+
5
+#### License
6
+
7
+MIT

+ 3
- 0
business_theme_v14/__init__.py Parādīt failu

@@ -0,0 +1,3 @@
1
+
2
+__version__ = '0.0.1'
3
+

+ 0
- 0
business_theme_v14/business_theme_v14/__init__.py Parādīt failu


+ 0
- 0
business_theme_v14/config/__init__.py Parādīt failu


+ 12
- 0
business_theme_v14/config/desktop.py Parādīt failu

@@ -0,0 +1,12 @@
1
+from frappe import _
2
+
3
+def get_data():
4
+	return [
5
+		{
6
+			"module_name": "Business Theme V14",
7
+			"color": "grey",
8
+			"icon": "octicon octicon-file-directory",
9
+			"type": "module",
10
+			"label": _("Business Theme V14")
11
+		}
12
+	]

+ 10
- 0
business_theme_v14/config/docs.py Parādīt failu

@@ -0,0 +1,10 @@
1
+"""
2
+Configuration for docs
3
+"""
4
+
5
+# source_link = "https://github.com/[org_name]/business_theme_v14"
6
+# headline = "App that does everything"
7
+# sub_heading = "Yes, you got that right the first time, everything"
8
+
9
+def get_context(context):
10
+	context.brand_html = "Business Theme V14"

+ 197
- 0
business_theme_v14/hooks.py Parādīt failu

@@ -0,0 +1,197 @@
1
+from . import __version__ as app_version
2
+
3
+app_name = "business_theme_v14"
4
+app_title = "Business Theme V14"
5
+app_publisher = "Midocean Technologies Pvt Ltd"
6
+app_description = "Business Theme for ERPNext / Frappe"
7
+app_icon = "octicon octicon-file-directory"
8
+app_color = "grey"
9
+app_email = "sagar@midocean.tech"
10
+app_license = "MIT"
11
+
12
+# Includes in <head>
13
+# ------------------
14
+
15
+# include js, css files in header of desk.html
16
+# app_include_css = "/assets/business_theme_v14/css/business_theme_v14.css"
17
+# app_include_js = "/assets/business_theme_v14/js/business_theme_v14.js"
18
+
19
+# include js, css files in header of web template
20
+# web_include_css = "/assets/business_theme_v14/css/business_theme_v14.css"
21
+# web_include_js = "/assets/business_theme_v14/js/business_theme_v14.js"
22
+
23
+# include custom scss in every website theme (without file extension ".scss")
24
+# website_theme_scss = "business_theme_v14/public/scss/website"
25
+
26
+# include js, css files in header of web form
27
+# webform_include_js = {"doctype": "public/js/doctype.js"}
28
+# webform_include_css = {"doctype": "public/css/doctype.css"}
29
+
30
+# include js in page
31
+# page_js = {"page" : "public/js/file.js"}
32
+
33
+# include js in doctype views
34
+# doctype_js = {"doctype" : "public/js/doctype.js"}
35
+# doctype_list_js = {"doctype" : "public/js/doctype_list.js"}
36
+# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
37
+# doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"}
38
+
39
+# Home Pages
40
+# ----------
41
+
42
+# application home page (will override Website Settings)
43
+# home_page = "login"
44
+
45
+# website user home page (by Role)
46
+# role_home_page = {
47
+#	"Role": "home_page"
48
+# }
49
+
50
+# Generators
51
+# ----------
52
+
53
+# automatically create page for each record of this doctype
54
+# website_generators = ["Web Page"]
55
+
56
+# Jinja
57
+# ----------
58
+
59
+# add methods and filters to jinja environment
60
+# jinja = {
61
+# 	"methods": "business_theme_v14.utils.jinja_methods",
62
+# 	"filters": "business_theme_v14.utils.jinja_filters"
63
+# }
64
+
65
+# Installation
66
+# ------------
67
+
68
+# before_install = "business_theme_v14.install.before_install"
69
+# after_install = "business_theme_v14.install.after_install"
70
+
71
+# Uninstallation
72
+# ------------
73
+
74
+# before_uninstall = "business_theme_v14.uninstall.before_uninstall"
75
+# after_uninstall = "business_theme_v14.uninstall.after_uninstall"
76
+
77
+# Desk Notifications
78
+# ------------------
79
+# See frappe.core.notifications.get_notification_config
80
+
81
+# notification_config = "business_theme_v14.notifications.get_notification_config"
82
+
83
+# Permissions
84
+# -----------
85
+# Permissions evaluated in scripted ways
86
+
87
+# permission_query_conditions = {
88
+# 	"Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
89
+# }
90
+#
91
+# has_permission = {
92
+# 	"Event": "frappe.desk.doctype.event.event.has_permission",
93
+# }
94
+
95
+# DocType Class
96
+# ---------------
97
+# Override standard doctype classes
98
+
99
+# override_doctype_class = {
100
+# 	"ToDo": "custom_app.overrides.CustomToDo"
101
+# }
102
+
103
+# Document Events
104
+# ---------------
105
+# Hook on document methods and events
106
+
107
+# doc_events = {
108
+# 	"*": {
109
+# 		"on_update": "method",
110
+# 		"on_cancel": "method",
111
+# 		"on_trash": "method"
112
+#	}
113
+# }
114
+
115
+# Scheduled Tasks
116
+# ---------------
117
+
118
+# scheduler_events = {
119
+# 	"all": [
120
+# 		"business_theme_v14.tasks.all"
121
+# 	],
122
+# 	"daily": [
123
+# 		"business_theme_v14.tasks.daily"
124
+# 	],
125
+# 	"hourly": [
126
+# 		"business_theme_v14.tasks.hourly"
127
+# 	],
128
+# 	"weekly": [
129
+# 		"business_theme_v14.tasks.weekly"
130
+# 	],
131
+# 	"monthly": [
132
+# 		"business_theme_v14.tasks.monthly"
133
+# 	],
134
+# }
135
+
136
+# Testing
137
+# -------
138
+
139
+# before_tests = "business_theme_v14.install.before_tests"
140
+
141
+# Overriding Methods
142
+# ------------------------------
143
+#
144
+# override_whitelisted_methods = {
145
+# 	"frappe.desk.doctype.event.event.get_events": "business_theme_v14.event.get_events"
146
+# }
147
+#
148
+# each overriding function accepts a `data` argument;
149
+# generated from the base implementation of the doctype dashboard,
150
+# along with any modifications made in other Frappe apps
151
+# override_doctype_dashboards = {
152
+# 	"Task": "business_theme_v14.task.get_dashboard_data"
153
+# }
154
+
155
+# exempt linked doctypes from being automatically cancelled
156
+#
157
+# auto_cancel_exempted_doctypes = ["Auto Repeat"]
158
+
159
+
160
+# User Data Protection
161
+# --------------------
162
+
163
+# user_data_fields = [
164
+# 	{
165
+# 		"doctype": "{doctype_1}",
166
+# 		"filter_by": "{filter_by}",
167
+# 		"redact_fields": ["{field_1}", "{field_2}"],
168
+# 		"partial": 1,
169
+# 	},
170
+# 	{
171
+# 		"doctype": "{doctype_2}",
172
+# 		"filter_by": "{filter_by}",
173
+# 		"partial": 1,
174
+# 	},
175
+# 	{
176
+# 		"doctype": "{doctype_3}",
177
+# 		"strict": False,
178
+# 	},
179
+# 	{
180
+# 		"doctype": "{doctype_4}"
181
+# 	}
182
+# ]
183
+
184
+# Authentication and authorization
185
+# --------------------------------
186
+
187
+# auth_hooks = [
188
+# 	"business_theme_v14.auth.validate"
189
+# ]
190
+
191
+# Translation
192
+# --------------------------------
193
+
194
+# Make link fields search translated document names for these DocTypes
195
+# Recommended only for DocTypes which have limited documents with untranslated names
196
+# For example: Role, Gender, etc.
197
+# translated_search_doctypes = []

+ 1
- 0
business_theme_v14/modules.txt Parādīt failu

@@ -0,0 +1 @@
1
+Business Theme V14

+ 0
- 0
business_theme_v14/patches.txt Parādīt failu


+ 0
- 0
business_theme_v14/public/.gitkeep Parādīt failu


+ 0
- 0
business_theme_v14/templates/__init__.py Parādīt failu


+ 0
- 0
business_theme_v14/templates/pages/__init__.py Parādīt failu


+ 1
- 0
license.txt Parādīt failu

@@ -0,0 +1 @@
1
+License: MIT

+ 1
- 0
requirements.txt Parādīt failu

@@ -0,0 +1 @@
1
+# frappe -- https://github.com/frappe/frappe is installed via 'bench init'

+ 19
- 0
setup.py Parādīt failu

@@ -0,0 +1,19 @@
1
+from setuptools import setup, find_packages
2
+
3
+with open("requirements.txt") as f:
4
+	install_requires = f.read().strip().split("\n")
5
+
6
+# get version from __version__ variable in business_theme_v14/__init__.py
7
+from business_theme_v14 import __version__ as version
8
+
9
+setup(
10
+	name="business_theme_v14",
11
+	version=version,
12
+	description="Business Theme for ERPNext / Frappe",
13
+	author="Midocean Technologies Pvt Ltd",
14
+	author_email="sagar@midocean.tech",
15
+	packages=find_packages(),
16
+	zip_safe=False,
17
+	include_package_data=True,
18
+	install_requires=install_requires
19
+)