diff --git a/easy_chatgpt_access/README.rst b/easy_chatgpt_access/README.rst new file mode 100644 index 000000000..496f1bc59 --- /dev/null +++ b/easy_chatgpt_access/README.rst @@ -0,0 +1,51 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Easy ChatGPT Access +=================== +This module enables easy access to the ChatGPT dialog box from the systray icon. + +Features +======== +* Access ChatGPT from systray icon. +* Able to copy the AI generated text into clipboard. + +Configuration +============= +* No Additional configuration is needed. + +License +------- +Affero General Public License, v3.0 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: (V18) Unnimaya CO, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/easy_chatgpt_access/__init__.py b/easy_chatgpt_access/__init__.py new file mode 100644 index 000000000..1440993b3 --- /dev/null +++ b/easy_chatgpt_access/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Unnimaya CO(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### diff --git a/easy_chatgpt_access/__manifest__.py b/easy_chatgpt_access/__manifest__.py new file mode 100644 index 000000000..20a5a1d69 --- /dev/null +++ b/easy_chatgpt_access/__manifest__.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Unnimaya CO (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +{ + 'name': 'Easy ChatGPT Access', + 'version': '18.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Access ChatGPT from systray.', + 'description': """This module enables easy access to the ChatGPT dialog box + from the systray icon and allows copying the generated text to the + clipboard.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['web'], + 'assets': { + 'web.assets_backend': [ + 'web/static/lib/jquery/jquery.js', + ('include', 'web_editor.assets_wysiwyg'), + 'easy_chatgpt_access/static/src/xml/chatgpt_button_views.xml', + 'easy_chatgpt_access/static/src/xml/chatgpt_prompt_dialog.xml', + 'easy_chatgpt_access/static/src/js/chatgpt_button.js', + 'easy_chatgpt_access/static/src/js/wysiwyg.js', + 'easy_chatgpt_access/static/src/js/ChatGPTPromptDialog.js', + 'easy_chatgpt_access/static/src/js/chatgpt_dialog.js', + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} + diff --git a/easy_chatgpt_access/doc/RELEASE_NOTES.md b/easy_chatgpt_access/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..2e692f34d --- /dev/null +++ b/easy_chatgpt_access/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 29.11.2024 +#### Version 18.0.1.0.0 +##### ADD +- Initial Commit for Easy ChatGPT Access diff --git a/easy_chatgpt_access/static/description/assets/cybro-icon.png b/easy_chatgpt_access/static/description/assets/cybro-icon.png new file mode 100755 index 000000000..06e73e11d Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/cybro-icon.png differ diff --git a/easy_chatgpt_access/static/description/assets/cybro-odoo.png b/easy_chatgpt_access/static/description/assets/cybro-odoo.png new file mode 100755 index 000000000..ed02e07a4 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/cybro-odoo.png differ diff --git a/easy_chatgpt_access/static/description/assets/h2.png b/easy_chatgpt_access/static/description/assets/h2.png new file mode 100755 index 000000000..0bfc4707d Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/h2.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/arrows-repeat.svg b/easy_chatgpt_access/static/description/assets/icons/arrows-repeat.svg new file mode 100755 index 000000000..1d7efabc5 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/banner-1.png b/easy_chatgpt_access/static/description/assets/icons/banner-1.png new file mode 100755 index 000000000..c180db172 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/banner-1.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/banner-2.svg b/easy_chatgpt_access/static/description/assets/icons/banner-2.svg new file mode 100755 index 000000000..e606d97d9 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/banner-bg.png b/easy_chatgpt_access/static/description/assets/icons/banner-bg.png new file mode 100755 index 000000000..a8238d3c0 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/banner-bg.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/banner-bg.svg b/easy_chatgpt_access/static/description/assets/icons/banner-bg.svg new file mode 100755 index 000000000..b1378103e --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/banner-call.svg b/easy_chatgpt_access/static/description/assets/icons/banner-call.svg new file mode 100755 index 000000000..96c687e81 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/banner-mail.svg b/easy_chatgpt_access/static/description/assets/icons/banner-mail.svg new file mode 100755 index 000000000..cbf0d158d --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/banner-pattern.svg b/easy_chatgpt_access/static/description/assets/icons/banner-pattern.svg new file mode 100755 index 000000000..9c1c7e101 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/banner-promo.svg b/easy_chatgpt_access/static/description/assets/icons/banner-promo.svg new file mode 100755 index 000000000..d52791b11 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/brand-pair.svg b/easy_chatgpt_access/static/description/assets/icons/brand-pair.svg new file mode 100755 index 000000000..d8db7fc1e --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/check.png b/easy_chatgpt_access/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/check.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/chevron.png b/easy_chatgpt_access/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/chevron.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/close-icon.svg b/easy_chatgpt_access/static/description/assets/icons/close-icon.svg new file mode 100755 index 000000000..df8cce37a --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/cogs.png b/easy_chatgpt_access/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/cogs.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/collabarate-icon.svg b/easy_chatgpt_access/static/description/assets/icons/collabarate-icon.svg new file mode 100755 index 000000000..dd4e10518 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/consultation.png b/easy_chatgpt_access/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/consultation.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/cybro-logo.png b/easy_chatgpt_access/static/description/assets/icons/cybro-logo.png new file mode 100755 index 000000000..ff4b78220 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/cybro-logo.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/down.svg b/easy_chatgpt_access/static/description/assets/icons/down.svg new file mode 100755 index 000000000..f21c36271 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/easy_chatgpt_access/static/description/assets/icons/ecom-black.png b/easy_chatgpt_access/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/ecom-black.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/education-black.png b/easy_chatgpt_access/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/education-black.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/faq.png b/easy_chatgpt_access/static/description/assets/icons/faq.png new file mode 100755 index 000000000..4250b5b81 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/faq.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/feature-icon.svg b/easy_chatgpt_access/static/description/assets/icons/feature-icon.svg new file mode 100755 index 000000000..fa0ea6850 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/feature.png b/easy_chatgpt_access/static/description/assets/icons/feature.png new file mode 100755 index 000000000..ac7a785c0 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/feature.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/gear.svg b/easy_chatgpt_access/static/description/assets/icons/gear.svg new file mode 100755 index 000000000..0cc66b6ea --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/hero.gif b/easy_chatgpt_access/static/description/assets/icons/hero.gif new file mode 100755 index 000000000..380654dfe Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/hero.gif differ diff --git a/easy_chatgpt_access/static/description/assets/icons/hire-odoo.svg b/easy_chatgpt_access/static/description/assets/icons/hire-odoo.svg new file mode 100755 index 000000000..e1ac089b0 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/hotel-black.png b/easy_chatgpt_access/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/hotel-black.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/license.png b/easy_chatgpt_access/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/license.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/life-ring-icon.svg b/easy_chatgpt_access/static/description/assets/icons/life-ring-icon.svg new file mode 100755 index 000000000..3ae6e1d89 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/lifebuoy.png b/easy_chatgpt_access/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/lifebuoy.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/mail.svg b/easy_chatgpt_access/static/description/assets/icons/mail.svg new file mode 100755 index 000000000..1eedde695 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/manufacturing-black.png b/easy_chatgpt_access/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/manufacturing-black.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/notes.png b/easy_chatgpt_access/static/description/assets/icons/notes.png new file mode 100755 index 000000000..ee5e95404 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/notes.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/notification icon.svg b/easy_chatgpt_access/static/description/assets/icons/notification icon.svg new file mode 100755 index 000000000..053189973 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/odoo-consultancy.svg b/easy_chatgpt_access/static/description/assets/icons/odoo-consultancy.svg new file mode 100755 index 000000000..e05f65bde --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/odoo-licencing.svg b/easy_chatgpt_access/static/description/assets/icons/odoo-licencing.svg new file mode 100755 index 000000000..2606c88b0 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/odoo-logo.png b/easy_chatgpt_access/static/description/assets/icons/odoo-logo.png new file mode 100755 index 000000000..0e4d0eb5a Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/odoo-logo.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/patter.svg b/easy_chatgpt_access/static/description/assets/icons/patter.svg new file mode 100755 index 000000000..25c9c0a8f --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/pattern1.png b/easy_chatgpt_access/static/description/assets/icons/pattern1.png new file mode 100755 index 000000000..09ab0fb2d Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/pattern1.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/pos-black.png b/easy_chatgpt_access/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/pos-black.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/puzzle-piece-icon.svg b/easy_chatgpt_access/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100755 index 000000000..3e9ad9373 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/puzzle.png b/easy_chatgpt_access/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/puzzle.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/replace-icon.svg b/easy_chatgpt_access/static/description/assets/icons/replace-icon.svg new file mode 100755 index 000000000..d0e3a7af1 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/restaurant-black.png b/easy_chatgpt_access/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/restaurant-black.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/screenshot-main.png b/easy_chatgpt_access/static/description/assets/icons/screenshot-main.png new file mode 100755 index 000000000..575f8e676 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/screenshot-main.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/screenshot.png b/easy_chatgpt_access/static/description/assets/icons/screenshot.png new file mode 100755 index 000000000..cef272529 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/screenshot.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/service-black.png b/easy_chatgpt_access/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/service-black.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/skype-fill.svg b/easy_chatgpt_access/static/description/assets/icons/skype-fill.svg new file mode 100755 index 000000000..c17423639 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/skype.png b/easy_chatgpt_access/static/description/assets/icons/skype.png new file mode 100755 index 000000000..51b409fb3 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/skype.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/skype.svg b/easy_chatgpt_access/static/description/assets/icons/skype.svg new file mode 100755 index 000000000..df3dad39b --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/star-1.svg b/easy_chatgpt_access/static/description/assets/icons/star-1.svg new file mode 100755 index 000000000..7e55ab162 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/star-2.svg b/easy_chatgpt_access/static/description/assets/icons/star-2.svg new file mode 100755 index 000000000..5ae9f507a --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/support.png b/easy_chatgpt_access/static/description/assets/icons/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/support.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/test-1 - Copy.png b/easy_chatgpt_access/static/description/assets/icons/test-1 - Copy.png new file mode 100755 index 000000000..f6a902663 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/test-1 - Copy.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/test-1.png b/easy_chatgpt_access/static/description/assets/icons/test-1.png new file mode 100755 index 000000000..0908add2b Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/test-1.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/test-2.png b/easy_chatgpt_access/static/description/assets/icons/test-2.png new file mode 100755 index 000000000..4671fe91e Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/test-2.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/trading-black.png b/easy_chatgpt_access/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/trading-black.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/training.png b/easy_chatgpt_access/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/training.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/translate.svg b/easy_chatgpt_access/static/description/assets/icons/translate.svg new file mode 100755 index 000000000..af9c8a1aa --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/update.png b/easy_chatgpt_access/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/update.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/user.png b/easy_chatgpt_access/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/user.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/video.png b/easy_chatgpt_access/static/description/assets/icons/video.png new file mode 100755 index 000000000..576705b17 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/video.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/whatsapp.png b/easy_chatgpt_access/static/description/assets/icons/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/whatsapp.png differ diff --git a/easy_chatgpt_access/static/description/assets/icons/wrench-icon.svg b/easy_chatgpt_access/static/description/assets/icons/wrench-icon.svg new file mode 100755 index 000000000..174b5a465 --- /dev/null +++ b/easy_chatgpt_access/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/easy_chatgpt_access/static/description/assets/icons/wrench.png b/easy_chatgpt_access/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/icons/wrench.png differ diff --git a/easy_chatgpt_access/static/description/assets/modules/1.png b/easy_chatgpt_access/static/description/assets/modules/1.png new file mode 100644 index 000000000..66ae620a6 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/modules/1.png differ diff --git a/easy_chatgpt_access/static/description/assets/modules/2.png b/easy_chatgpt_access/static/description/assets/modules/2.png new file mode 100644 index 000000000..bdfc1f2ee Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/modules/2.png differ diff --git a/easy_chatgpt_access/static/description/assets/modules/3.png b/easy_chatgpt_access/static/description/assets/modules/3.png new file mode 100644 index 000000000..b78b04986 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/modules/3.png differ diff --git a/easy_chatgpt_access/static/description/assets/modules/4.png b/easy_chatgpt_access/static/description/assets/modules/4.png new file mode 100644 index 000000000..dc2828a73 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/modules/4.png differ diff --git a/easy_chatgpt_access/static/description/assets/modules/5.png b/easy_chatgpt_access/static/description/assets/modules/5.png new file mode 100644 index 000000000..bac2f90dd Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/modules/5.png differ diff --git a/easy_chatgpt_access/static/description/assets/modules/6.png b/easy_chatgpt_access/static/description/assets/modules/6.png new file mode 100644 index 000000000..7368b071f Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/modules/6.png differ diff --git a/easy_chatgpt_access/static/description/assets/screenshots/1.png b/easy_chatgpt_access/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..4d1780e6e Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/screenshots/1.png differ diff --git a/easy_chatgpt_access/static/description/assets/screenshots/2.png b/easy_chatgpt_access/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..3874e2ba1 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/screenshots/2.png differ diff --git a/easy_chatgpt_access/static/description/assets/screenshots/3.png b/easy_chatgpt_access/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..c31b99fdc Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/screenshots/3.png differ diff --git a/easy_chatgpt_access/static/description/assets/screenshots/4.png b/easy_chatgpt_access/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..ef5be2afe Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/screenshots/4.png differ diff --git a/easy_chatgpt_access/static/description/assets/screenshots/hero.gif b/easy_chatgpt_access/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..7131a6c85 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/screenshots/hero.gif differ diff --git a/easy_chatgpt_access/static/description/assets/y18.jpg b/easy_chatgpt_access/static/description/assets/y18.jpg new file mode 100755 index 000000000..eea1714f2 Binary files /dev/null and b/easy_chatgpt_access/static/description/assets/y18.jpg differ diff --git a/easy_chatgpt_access/static/description/banner.jpg b/easy_chatgpt_access/static/description/banner.jpg new file mode 100644 index 000000000..d55ee30a8 Binary files /dev/null and b/easy_chatgpt_access/static/description/banner.jpg differ diff --git a/easy_chatgpt_access/static/description/icon.png b/easy_chatgpt_access/static/description/icon.png new file mode 100644 index 000000000..ece0bf948 Binary files /dev/null and b/easy_chatgpt_access/static/description/icon.png differ diff --git a/easy_chatgpt_access/static/description/index.html b/easy_chatgpt_access/static/description/index.html new file mode 100644 index 000000000..b7950370f --- /dev/null +++ b/easy_chatgpt_access/static/description/index.html @@ -0,0 +1,1006 @@ + + + + + + Easy ChatGPT Access + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

+ Access ChatGPT Dialog Box From Systray. +

+

Easy ChatGPT Access +

+
+
+ +
+ +
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+

Key + Highlights

+
+
+
+
+ +
+
+ Easily Access ChatGPT from Systray +
+

+ No Need of Any Text Editor Field for Opening + ChatGPT Dialog Box.

+
+
+
+
+
+ +
+
+ Can Copy the Text into the Clipboard. +
+

+ You Can Copy the AI Generated Text into the + Clipboard. +

+
+
+
+
+ +
+
+
+ Easy ChatGPT Access +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Click on the + + Icon from Systray. +

+
+
+
+ +
+
+
+
+
+
+
+
+
+

+ The + + ChatGPT Dialog Box +

+
+
+

+ ChatGPT Dialog Box will Pop Up, + Allowing Users to Input Queries. +

+
+
+
+ +
+
+
+
+
+
+
+
+
+

+ Response will Consist of + + AI-Generated Text +

+
+
+

+ The Response will Consist of + AI-Generated Text, and Users + will have the Option to Copy + this Text Using a Dedicated Copy + Button.

+
+
+
+ +
+
+
+
+
+
+
+
+
+

A + Notification is Displayed. +

+
+
+

+ Notification is Displayed + Following the Action of Copying + Text to the Clipboard.

+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+ +
+

+ Quickly Access ChatGPT from the + Systray

+
+
+
+
+
+
+
+ +
+

+ Copy the Generated Text to + Clipboard.

+
+
+
+
+
+
+
+
+
+
+ +
+ +
+ +
+

+ This module allows + users to quickly + access ChatGPT + directly from the + systray in Odoo, + without needing a + separate text editor + field. +

+
+
+ +
+ +
+

+ Simply click the + ChatGPT icon in the + systray to open the + dialog box, where + you can type in your + queries. +

+
+
+ +
+ +
+

+ Yes, the module + includes a dedicated + “Copy” button, which + lets you instantly + copy AI-generated + text to your + clipboard. +

+
+
+
+ +
+
+
+
+
+
+ +
+
+

+ Latest Release 18.0.1.0.0 +

+ + 29th November, 2024 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/easy_chatgpt_access/static/src/js/ChatGPTPromptDialog.js b/easy_chatgpt_access/static/src/js/ChatGPTPromptDialog.js new file mode 100644 index 000000000..54c8c1940 --- /dev/null +++ b/easy_chatgpt_access/static/src/js/ChatGPTPromptDialog.js @@ -0,0 +1,14 @@ +/** @odoo-module **/ +import { ChatGPTPromptDialog } from '@web_editor/js/wysiwyg/widgets/chatgpt_prompt_dialog'; +//Default props are extended to include a 'systray' object with an 'insert' property set to true. +ChatGPTPromptDialog.defaultProps = { + ...ChatGPTPromptDialog.defaultProps, + systray: { + insert: true, + } +} +// Adds an optional `systray` property of type Object to `ChatGPTPromptDialog`. +ChatGPTPromptDialog.props = { + ...ChatGPTPromptDialog.props, + systray: { type: Object, optional: true }, +} diff --git a/easy_chatgpt_access/static/src/js/chatgpt_button.js b/easy_chatgpt_access/static/src/js/chatgpt_button.js new file mode 100644 index 000000000..4897b68b6 --- /dev/null +++ b/easy_chatgpt_access/static/src/js/chatgpt_button.js @@ -0,0 +1,146 @@ +/** @odoo-module **/ +import { registry } from "@web/core/registry"; +import { Component, onWillStart, useState } from "@odoo/owl"; +import { Wysiwyg } from "@web_editor/js/wysiwyg/wysiwyg"; +import { QWebPlugin } from '@web_editor/js/backend/QWebPlugin'; +let stripHistoryIds; + +import { session } from "@web/session"; + +/* Export new class SystrayIcon by extending Component */ +export class SystrayIcon extends Component { + static components = { Wysiwyg } + setup() { + this.state = useState({ + open: false, + }) + this.odoo_version = session.isEnterprise() ? 'Enterprise' : 'Community'; + onWillStart(async() => await this._lazyloadWysiwyg()) + }; + // Lazily loads the Wysiwyg module and its dependencies if not already loaded. + async _lazyloadWysiwyg() { + let wysiwygModule = await odoo.loader.modules.get('@web_editor/js/wysiwyg/wysiwyg'); + this.MoveNodePlugin = (await odoo.loader.modules.get('@web_editor/js/wysiwyg/MoveNodePlugin'))?.MoveNodePlugin; + // Otherwise, load the module. + if (!wysiwygModule) { + await loadBundle('web_editor.backend_assets_wysiwyg'); + wysiwygModule = await odoo.loader.modules.get('@web_editor/js/wysiwyg/wysiwyg'); + this.MoveNodePlugin = (await odoo.loader.modules.get('@web_editor/js/wysiwyg/MoveNodePlugin')).MoveNodePlugin; + } + stripHistoryIds = wysiwygModule.stripHistoryIds; + this.Wysiwyg = wysiwygModule.Wysiwyg; + } + /** + * Retrieves Wysiwyg properties. + * @returns {object} An object containing Wysiwyg properties. + */ + get wysiwygProps() { + return { + startWysiwyg: this.startWysiwyg.bind(this), + editingValue: undefined, + options: this.wysiwygOptions + } + } + // Include the 'open' parameter in the object to enable loading the prompt dialog from the Systray. + get wysiwygOptions() { + return { + value: "", + allowCommandVideo: false, + autostart: false, + collaborationChannel: undefined, + editorPlugins: [QWebPlugin, this.MoveNodePlugin], + field_id: "", + height: undefined, + inIframe: false, + iframeCssAssets: undefined, + iframeHtmlClass: undefined, + linkOptions: { + forceNewWindow: true, + }, + maxHeight: undefined, + mediaModalParams: { + noVideos: true, + useMediaLibrary: true, + }, + minHeight: undefined, + noAttachment: undefined, + onDblClickEditableMedia: this._onDblClickEditableMedia.bind(this), + onWysiwygBlur: this._onWysiwygBlur.bind(this), + placeholder: "", + resizable: false, + snippets: undefined, + tabsize: 0, + document, + openPrompt: this.state.open, + systray: { + insert: false, + } + } + } + /** + * Opens an image in fullscreen mode on double-click. + */ + _onDblClickEditableMedia(ev) { + const el = ev.currentTarget; + if (el.nodeName === 'IMG' && el.src) { + this.wysiwyg.showImageFullscreen(el.src); + } + } + _onWysiwygBlur() { + // Avoid save on blur if the html field is in inline mode. + if (!this.props.isInlineStyle) { + this.commitChanges(); + } + } + /** + * Initializes and starts the WYSIWYG editor with optional features. + * + * @param {Object} wysiwyg - The WYSIWYG editor instance to be started. + * + * This function: + * - Sets up the WYSIWYG editor instance. + * - Adds a CSS class to the editable area. + * - Optionally adds a code view button to the toolbar if `this.props.codeview` is true. + * - Sets up event listeners for editor history steps and collaborative editing, triggering a "FIELD_IS_DIRTY" event. + */ + async startWysiwyg(wysiwyg) { + this.wysiwyg = wysiwyg; + await this.wysiwyg.startEdition(); + wysiwyg.$editable[0].classList.add("odoo-editor-qweb"); + if (this.props.codeview) { + const $codeviewButtonToolbar = $(` +
+ +
+ `); + this.wysiwyg.toolbarEl.append($codeviewButtonToolbar[0]); + $codeviewButtonToolbar.click(this.toggleCodeView.bind(this)); + } + this.wysiwyg.odooEditor.addEventListener("historyStep", () => + this.props.record.model.bus.trigger("FIELD_IS_DIRTY", this._isDirty()) + ); + if (this.props.isCollaborative) { + this.wysiwyg.odooEditor.addEventListener("onExternalHistorySteps", () => + this.props.record.model.bus.trigger("FIELD_IS_DIRTY", this._isDirty()) + ); + } + this.isRendered = true; + } + // Onclick event of systray Icon + _onClick() { + this.state.open = !this.state.open + setTimeout(() => { + this.state.open = false; + }, 500); + }; +}; +session.isEnterprise = function () { + return !!session.server_version_info[5]; +}; +SystrayIcon.template = "systray_icon"; +export const systrayItem = { + Component: SystrayIcon, +}; +registry.category("systray").add("SystrayIcon", systrayItem); diff --git a/easy_chatgpt_access/static/src/js/chatgpt_dialog.js b/easy_chatgpt_access/static/src/js/chatgpt_dialog.js new file mode 100644 index 000000000..0e4c54ca3 --- /dev/null +++ b/easy_chatgpt_access/static/src/js/chatgpt_dialog.js @@ -0,0 +1,41 @@ +/** @odoo-module **/ +import { ChatGPTDialog } from '@web_editor/js/wysiwyg/widgets/chatgpt_dialog'; +import { patch } from "@web/core/utils/patch"; +import { useService } from "@web/core/utils/hooks"; +/** + * Patch ChatGPTDialog for modifying the setup and adding copyMessage function. + * Modifies the setup function to include initialization of the 'action' service. + * Adds the copyMessage function to copy generated AI text into the clipboard and display a notification. + */ +patch(ChatGPTDialog.prototype, { + setup() { + super.setup(...arguments); + this.action = useService('action'); + this.notification = useService("notification"); + }, + // Copy the generated AI text into clipboard when hitting the Copy button + copyMessage(ev) { + var content = ev.target.parentElement.children[1].innerText + const message = "Copied to Clipboard!" + var textArea = document.createElement("textarea"); + textArea.value = content; + document.body.appendChild(textArea); + textArea.select(); + var successful = document.execCommand('copy'); + document.body.removeChild(textArea) + this.displayNotification( + ("Text copied to Clipboard") + ); + return successful; + }, + /** + * Displays a notification with a success message. + */ + displayNotification(text) { + this.notification.add(text, { + type: 'success', + title: 'Text copied', + sticky: false, + }); + } +}) diff --git a/easy_chatgpt_access/static/src/js/wysiwyg.js b/easy_chatgpt_access/static/src/js/wysiwyg.js new file mode 100644 index 000000000..82859b18a --- /dev/null +++ b/easy_chatgpt_access/static/src/js/wysiwyg.js @@ -0,0 +1,84 @@ +/** @odoo-module **/ +import * as OdooEditorLib from "@web_editor/js/editor/odoo-editor/src/OdooEditor"; +import { Wysiwyg } from "@web_editor/js/wysiwyg/wysiwyg"; +import { patch } from "@web/core/utils/patch"; +import { ChatGPTPromptDialog } from '@web_editor/js/wysiwyg/widgets/chatgpt_prompt_dialog'; +import { ChatGPTAlternativesDialog } from '@web_editor/js/wysiwyg/widgets/chatgpt_alternatives_dialog'; +import { _t } from "@web/core/l10n/translation"; + +const preserveCursor = OdooEditorLib.preserveCursor; +const closestElement = OdooEditorLib.closestElement; +/** + * Patch method for modifying the setup and openChatGPTDialog functions of the Wysiwyg class. + * Modifies the setup function to include functionality for handling the opening of the dialog based on the 'openPrompt' prop. + * Modifies the openChatGPTDialog function to include systray options from the component's props in the parameters for opening the dialog. + */ +patch(Wysiwyg.prototype, { + // Extends the setup method of the superclass and adds functionality to handle the opening + // of the dialog based on the 'openPrompt' prop. + setup() { + super.setup(...arguments); + owl.useEffect((openPrompt) => { + if (openPrompt) { + this.openChatGPTDialog() + } + }, () => [this.props.options?.openPrompt]) + }, + // Modifies this function for loading the dialog box from systray icon + openChatGPTDialog(mode = 'prompt') { + const restore = preserveCursor(this.odooEditor.document); + const params = { + insert: content => { + this.odooEditor.historyPauseSteps(); + const insertedNodes = this.odooEditor.execCommand('insert', content); + this.odooEditor.historyUnpauseSteps(); + this.notification.add(_t('Your content was successfully generated.'), { + title: _t('Content generated'), + type: 'success', + }); + this.odooEditor.historyStep(); + // Add a frame around the inserted content to highlight it for 2 + // seconds. + const start = insertedNodes?.length && closestElement(insertedNodes[0]); + const end = insertedNodes?.length && closestElement(insertedNodes[insertedNodes.length - 1]); + if (start && end) { + const divContainer = this.odooEditor.editable.parentElement; + let [parent, left, top] = [start.offsetParent, start.offsetLeft, start.offsetTop - start.scrollTop]; + while (parent && !parent.contains(divContainer)) { + left += parent.offsetLeft; + top += parent.offsetTop - parent.scrollTop; + parent = parent.offsetParent; + } + let [endParent, endTop] = [end.offsetParent, end.offsetTop - end.scrollTop]; + while (endParent && !endParent.contains(divContainer)) { + endTop += endParent.offsetTop - endParent.scrollTop; + endParent = endParent.offsetParent; + } + const div = document.createElement('div'); + div.classList.add('o-chatgpt-content'); + const FRAME_PADDING = 3; + div.style.left = `${left - FRAME_PADDING}px`; + div.style.top = `${top - FRAME_PADDING}px`; + div.style.width = `${Math.max(start.offsetWidth, end.offsetWidth) + (FRAME_PADDING * 2)}px`; + div.style.height = `${endTop + end.offsetHeight - top + (FRAME_PADDING * 2)}px`; + divContainer.prepend(div); + setTimeout(() => div.remove(), 2000); + } + }, + }; + if (mode === 'alternatives') { + params.originalText = this.odooEditor.document.getSelection().toString() || ''; + } + // If systray options are provided in the component's props, they are included + // in the parameters for opening the dialog. + if (this.props.options.systray){ + params.systray = this.props.options.systray + } + this.odooEditor.document.getSelection().collapseToEnd(); + this.env.services.dialog.add( + mode === 'prompt' ? ChatGPTPromptDialog : ChatGPTAlternativesDialog, + params, + { onClose: restore }, + ); + } +}) diff --git a/easy_chatgpt_access/static/src/xml/chatgpt_button_views.xml b/easy_chatgpt_access/static/src/xml/chatgpt_button_views.xml new file mode 100644 index 000000000..b947fe23e --- /dev/null +++ b/easy_chatgpt_access/static/src/xml/chatgpt_button_views.xml @@ -0,0 +1,27 @@ + + + + +
+ +
+
+
+
+ + + + + + +
+
+
+
+
diff --git a/easy_chatgpt_access/static/src/xml/chatgpt_prompt_dialog.xml b/easy_chatgpt_access/static/src/xml/chatgpt_prompt_dialog.xml new file mode 100644 index 000000000..d56154fe5 --- /dev/null +++ b/easy_chatgpt_access/static/src/xml/chatgpt_prompt_dialog.xml @@ -0,0 +1,18 @@ + + + + + + + + + +