__manifest__.py 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. {
  4. 'name': 'Web Editor',
  5. 'category': 'Hidden',
  6. 'description': """
  7. Odoo Web Editor widget.
  8. ==========================
  9. """,
  10. 'depends': ['bus', 'web'],
  11. 'data': [
  12. 'security/ir.model.access.csv',
  13. 'data/editor_assets.xml',
  14. 'views/editor.xml',
  15. 'views/snippets.xml',
  16. ],
  17. 'assets': {
  18. #----------------------------------------------------------------------
  19. # MAIN BUNDLES
  20. #----------------------------------------------------------------------
  21. 'web_editor.assets_wysiwyg': [
  22. # lib
  23. 'web_editor/static/lib/cropperjs/cropper.css',
  24. 'web_editor/static/lib/cropperjs/cropper.js',
  25. 'web_editor/static/lib/jquery-cropper/jquery-cropper.js',
  26. 'web_editor/static/lib/jQuery.transfo.js',
  27. 'web/static/lib/nearest/jquery.nearest.js',
  28. 'web_editor/static/lib/webgl-image-filter/webgl-image-filter.js',
  29. 'web_editor/static/lib/DOMPurify.js',
  30. # odoo-editor
  31. 'web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js',
  32. 'web_editor/static/src/js/editor/odoo-editor/src/utils/constants.js',
  33. 'web_editor/static/src/js/editor/odoo-editor/src/utils/sanitize.js',
  34. 'web_editor/static/src/js/editor/odoo-editor/src/utils/serialize.js',
  35. 'web_editor/static/src/js/editor/odoo-editor/src/tablepicker/TablePicker.js',
  36. 'web_editor/static/src/js/editor/odoo-editor/src/powerbox/patienceDiff.js',
  37. 'web_editor/static/src/js/editor/odoo-editor/src/powerbox/Powerbox.js',
  38. 'web_editor/static/src/js/editor/odoo-editor/src/commands/align.js',
  39. 'web_editor/static/src/js/editor/odoo-editor/src/commands/commands.js',
  40. 'web_editor/static/src/js/editor/odoo-editor/src/commands/deleteBackward.js',
  41. 'web_editor/static/src/js/editor/odoo-editor/src/commands/deleteForward.js',
  42. 'web_editor/static/src/js/editor/odoo-editor/src/commands/enter.js',
  43. 'web_editor/static/src/js/editor/odoo-editor/src/commands/shiftEnter.js',
  44. 'web_editor/static/src/js/editor/odoo-editor/src/commands/shiftTab.js',
  45. 'web_editor/static/src/js/editor/odoo-editor/src/commands/tab.js',
  46. 'web_editor/static/src/js/editor/odoo-editor/src/commands/toggleList.js',
  47. # utils
  48. 'web_editor/static/src/js/wysiwyg/linkDialogCommand.js',
  49. 'web_editor/static/src/js/wysiwyg/PeerToPeer.js',
  50. # odoo utils
  51. ('include', 'web._assets_helpers'),
  52. 'web_editor/static/src/scss/bootstrap_overridden.scss',
  53. 'web/static/src/scss/pre_variables.scss',
  54. 'web/static/lib/bootstrap/scss/_variables.scss',
  55. 'web_editor/static/src/js/editor/odoo-editor/src/style.scss',
  56. # integration
  57. 'web_editor/static/src/scss/wysiwyg.scss',
  58. 'web_editor/static/src/scss/wysiwyg_iframe.scss',
  59. 'web_editor/static/src/scss/wysiwyg_snippets.scss',
  60. 'web_editor/static/src/js/editor/perspective_utils.js',
  61. 'web_editor/static/src/js/editor/image_processing.js',
  62. 'web_editor/static/src/js/editor/custom_colors.js',
  63. # widgets & plugins
  64. 'web_editor/static/src/js/wysiwyg/widgets/**/*',
  65. 'web_editor/static/src/js/editor/snippets.editor.js',
  66. 'web_editor/static/src/js/editor/toolbar.js',
  67. 'web_editor/static/src/js/editor/snippets.options.js',
  68. # Launcher
  69. 'web_editor/static/src/js/wysiwyg/wysiwyg.js',
  70. 'web_editor/static/src/js/wysiwyg/wysiwyg_iframe.js',
  71. 'web_editor/static/src/xml/editor.xml',
  72. 'web_editor/static/src/xml/grid_layout.xml',
  73. 'web_editor/static/src/xml/snippets.xml',
  74. 'web_editor/static/src/xml/wysiwyg.xml',
  75. 'web_editor/static/src/xml/wysiwyg_colorpicker.xml',
  76. ],
  77. 'web_editor.assets_media_dialog': [
  78. 'web_editor/static/src/components/**/*',
  79. ],
  80. 'web_editor.assets_tests_styles': [
  81. ('include', 'web._assets_helpers'),
  82. 'web_editor/static/src/js/editor/odoo-editor/src/base_style.scss',
  83. 'web_editor/static/src/js/editor/odoo-editor/src/checklist.scss',
  84. ],
  85. 'web.assets_common': [
  86. 'web_editor/static/src/js/editor/odoo-editor/src/base_style.scss',
  87. 'web_editor/static/lib/vkbeautify/**/*',
  88. 'web_editor/static/src/js/common/**/*',
  89. 'web_editor/static/src/js/editor/odoo-editor/src/utils/utils.js',
  90. 'web_editor/static/src/js/wysiwyg/fonts.js',
  91. 'web_editor/static/src/xml/ace.xml',
  92. ],
  93. 'web.assets_backend': [
  94. ('include', 'web_editor.assets_media_dialog'),
  95. 'web_editor/static/src/scss/web_editor.common.scss',
  96. 'web_editor/static/src/scss/web_editor.backend.scss',
  97. 'web_editor/static/src/js/wysiwyg/dialog.js',
  98. 'web_editor/static/src/js/frontend/loader.js',
  99. 'web_editor/static/src/js/backend/**/*',
  100. 'web_editor/static/src/xml/backend.xml',
  101. ],
  102. "web.dark_mode_assets_backend": [
  103. 'web_editor/static/src/scss/odoo-editor/powerbox.dark.scss',
  104. 'web_editor/static/src/scss/odoo-editor/tablepicker.dark.scss',
  105. 'web_editor/static/src/scss/odoo-editor/tableui.dark.scss',
  106. 'web_editor/static/src/scss/wysiwyg.dark.scss',
  107. 'web_editor/static/src/scss/web_editor.common.dark.scss',
  108. ],
  109. 'web.assets_frontend_minimal': [
  110. 'web_editor/static/src/js/frontend/loader_loading.js',
  111. ],
  112. 'web.assets_frontend': [
  113. ('include', 'web_editor.assets_media_dialog'),
  114. 'web_editor/static/src/js/editor/odoo-editor/src/base_style.scss',
  115. 'web_editor/static/lib/vkbeautify/**/*',
  116. 'web_editor/static/src/js/common/**/*',
  117. 'web_editor/static/src/js/editor/odoo-editor/src/utils/utils.js',
  118. 'web_editor/static/src/js/wysiwyg/fonts.js',
  119. 'web_editor/static/src/xml/ace.xml',
  120. 'web_editor/static/src/scss/web_editor.common.scss',
  121. 'web_editor/static/src/scss/web_editor.frontend.scss',
  122. 'web_editor/static/src/js/wysiwyg/dialog.js',
  123. 'web_editor/static/src/js/frontend/loader.js',
  124. ],
  125. #----------------------------------------------------------------------
  126. # SUB BUNDLES
  127. #----------------------------------------------------------------------
  128. 'web._assets_primary_variables': [
  129. 'web_editor/static/src/scss/web_editor.variables.scss',
  130. 'web_editor/static/src/scss/wysiwyg.variables.scss',
  131. ],
  132. 'web._assets_secondary_variables': [
  133. 'web_editor/static/src/scss/secondary_variables.scss',
  134. ],
  135. 'web._assets_backend_helpers': [
  136. 'web_editor/static/src/scss/bootstrap_overridden_backend.scss',
  137. 'web_editor/static/src/scss/bootstrap_overridden.scss',
  138. ],
  139. 'web._assets_frontend_helpers': [
  140. ('prepend', 'web_editor/static/src/scss/bootstrap_overridden.scss'),
  141. ],
  142. # ----------------------------------------------------------------------
  143. # TESTS BUNDLES
  144. # ----------------------------------------------------------------------
  145. 'web.qunit_suite_tests': [
  146. ('include', 'web_editor.assets_wysiwyg'),
  147. 'web_editor/static/tests/**/*',
  148. 'web_editor/static/src/js/editor/odoo-editor/test/utils.js'
  149. ],
  150. },
  151. 'auto_install': True,
  152. 'license': 'LGPL-3',
  153. }