Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image plugin: make image preview on dblclick deactivable #4255

Open
wants to merge 153 commits into
base: master-mysterious-egg
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
5f8d3cb
[ADD] create mysterious_egg module
fdardenne Oct 9, 2024
9af5c63
shape[1].imgSize
Goaman Feb 19, 2025
14d453a
combine background shape and image shape selector
Goaman Feb 25, 2025
71f913e
consistency naming
Goaman Feb 25, 2025
cd0082d
params for shorthand actions
bso-odoo Feb 19, 2025
dbb7665
REF Layout option first part
FrancoisGe Feb 24, 2025
dbaa67a
set shape colors
Goaman Feb 26, 2025
17f870a
FIX nb columns switch mobile
FrancoisGe Feb 26, 2025
3d2419d
shape transform + small refactor shape api
Goaman Feb 27, 2025
3900c91
Trigger onChange with arrows + update multi value
robinlej Feb 26, 2025
e3e7071
remove useless addStep
FrancoisGe Feb 27, 2025
6163a95
Fix blocks tab and snippets style and xml template + add tooltips
sobo-odoo Feb 24, 2025
cdbde8c
add button options without the custom options
Jinjiu96 Feb 21, 2025
753f2c3
small fix to pass the target position to drag&drop
Jinjiu96 Feb 26, 2025
e551db4
Chart BackgroundOption
robinlej Feb 26, 2025
c02ca7b
Add default BuilderInput styles
robinlej Feb 26, 2025
023cefc
ChartOption & ChartOptionPlugin
robinlej Feb 26, 2025
73cfc1f
Restart chart interaction on input (previewing history step)
robinlej Feb 26, 2025
1de2d5e
getUsedCustomColors in BuilderColorPicker
robinlej Feb 26, 2025
231bad5
ChartOption tests
robinlej Feb 27, 2025
d038809
shape animation speed
Goaman Feb 27, 2025
718e23a
[REF] html_builder: AddElementOption, SpacingOption
sebgeelen Feb 27, 2025
a23ed6a
fix ColorPicker
robinlej Feb 28, 2025
cdd28d4
lint
agau-odoo Feb 28, 2025
bc7bc36
move unit and saveUnit to BuilderNumberInput
agau-odoo Feb 28, 2025
84c15d2
code cleanup
agau-odoo Feb 28, 2025
1decab7
fix datetime picker test indeterminism
agau-odoo Feb 28, 2025
b027e70
dynamic svg option + withGradient in color picker
bso-odoo Jan 31, 2025
85bb429
add grid image option
Jinjiu96 Feb 27, 2025
b7cc7bd
Restore container selection when undo/redo
fdardenne Feb 26, 2025
226c167
Fallback container to parent if target disappear
fdardenne Feb 26, 2025
013a2aa
ImageGallery restore the container selection
fdardenne Feb 26, 2025
3c28ab7
Fix BorderConfigurator
robinlej Mar 4, 2025
9d97698
Fix BuilderNumberInput with trailing space
robinlej Mar 4, 2025
1ed6f38
Sanitize BuilderNumberInput on input/change
robinlej Mar 4, 2025
30b9b2c
Fix BuilderSelect: revert previews on cancel + better UI
robinlej Feb 28, 2025
94e7e69
fix BuilderColorPicker custom colors + chart option
robinlej Mar 5, 2025
d772250
Card image options
cammarosano Feb 26, 2025
91bb1a6
Implement nomode in image_gallery option
fdardenne Mar 5, 2025
9568907
Fix customStyleActions apply params order
robinlej Mar 5, 2025
0740a06
Allow multiple values in BuilderNumberInput only if composable
robinlej Mar 5, 2025
c3cc2b3
Group BuilderNumberInput tests
robinlej Mar 5, 2025
1da73de
move to /layout_option
FrancoisGe Feb 28, 2025
0164739
fix rebase
ged-odoo Mar 6, 2025
b833629
add only grid/column
FrancoisGe Mar 5, 2025
10a1aed
REF API builder_style_actions
FrancoisGe Mar 5, 2025
57f88b9
small imp
FrancoisGe Mar 5, 2025
5599b04
Add min & max props on BuilderNumberInput
robinlej Mar 5, 2025
9a41022
oops
robinlej Mar 5, 2025
f167422
VerticalJustifyOption
blse-odoo Mar 5, 2025
da5a4f5
fix target of ContentWidthOption (aka ContainerWidth)
blse-odoo Mar 5, 2025
4da2011
shadow option: fix svgs buttons
fdardenne Mar 6, 2025
2d0d9ed
image_gallery_option: add spacing between images
fdardenne Mar 6, 2025
3a7b740
builder_range: Fix style
fdardenne Mar 6, 2025
6fbd08d
remove
FrancoisGe Mar 5, 2025
f8ab915
add BuilderUrlPicker
agau-odoo Feb 24, 2025
2b4e686
fix isActive in ButtonGroups
FrancoisGe Mar 6, 2025
ee22292
[FIX] Firefox dirty mutations with ZWS
robinlej Mar 6, 2025
25106d1
fix rebase
ged-odoo Mar 6, 2025
f57ac81
add gallery element option
Jinjiu96 Feb 27, 2025
fd65032
fix import
FrancoisGe Mar 7, 2025
1ddac69
Better accessibility on blocks tab
robinlej Feb 28, 2025
7a1e468
Fix multi-word buttons
robinlej Feb 28, 2025
fbe31cf
Open options on snippet drop
robinlej Mar 6, 2025
c680304
theme options
bso-odoo Mar 4, 2025
f050545
Snippet add dialog tests: make it green
fdardenne Mar 7, 2025
0f062b5
Poc Custom mutation
FrancoisGe Mar 6, 2025
fd41709
Add comment
loco-odoo Mar 6, 2025
a75dcb5
[FIX] delete background image
loco-odoo Feb 28, 2025
27eae8f
Starts interaction at action preview and at normalize
loco-odoo Mar 10, 2025
e4b6359
update of apply to mechanism
loco-odoo Mar 10, 2025
d98409b
add gallery_img option into imageGalleryOption and after remove handler
Jinjiu96 Mar 7, 2025
108ddb9
Load inside_builder_style bundle in edit mode only
robinlej Mar 11, 2025
5ae7543
fix selector from CardImageOptions + rename CardOptionPlugin to CardW…
blse-odoo Mar 11, 2025
3cb931a
Map Option
AlessandroLupo Mar 11, 2025
2a23adc
builder font family picker
bso-odoo Mar 6, 2025
e26fd22
mini fix to handle width style properties
ged-odoo Mar 11, 2025
40577e4
TopMenuVisibility and TopMenuColor and HideFooter
duau-odoo Mar 6, 2025
e5dcca8
moved website_page_config to website_builder
duau-odoo Mar 13, 2025
22d8eb7
Get the right selector siblings/children
sobo-odoo Mar 7, 2025
b51a892
Disable undroppable snippets
sobo-odoo Mar 13, 2025
e1435a8
Filter the options target properly + add `noCheck` (=> `editableOnly`)
sobo-odoo Mar 10, 2025
4132fe9
Check the elements before adding the overlay options on them
sobo-odoo Mar 10, 2025
3ff8ab4
fix BuilderUrlPicker anchor autocomplete
agau-odoo Mar 10, 2025
b344e79
remove unused code (interactions started on normalize)
robinlej Mar 11, 2025
36d1c6b
Filter invisible snippets' edit interactions
robinlej Mar 11, 2025
5467ba5
PopupOption
robinlej Mar 3, 2025
8d7bff4
Await loadBundle on edit
robinlej Mar 13, 2025
389fef9
facebookPage (.o_facebook_page)
blse-odoo Mar 12, 2025
ea61b59
Prevent interaction with facebook iframe during edit
blse-odoo Mar 17, 2025
9c5c751
Recaptcha Subscribe Option
AlessandroLupo Mar 13, 2025
5691746
image_gallery option: implement columns
fdardenne Mar 6, 2025
f9cf339
add GridColumnsOptionPlugin
FrancoisGe Mar 18, 2025
f62ac70
onClone remove system class + attr
FrancoisGe Mar 18, 2025
e6c3eee
fix rebase 18/03/2025
FrancoisGe Mar 18, 2025
4b03c52
Background video and parallax
loco-odoo Feb 26, 2025
1ddb543
[FIX] html_editor: toolbar shown on collapsed selection in uneditable
cammarosano Mar 11, 2025
03369a4
[FIX] html_editor: selection preservation around moved nodes
cammarosano Mar 13, 2025
443660e
[FIX] html_editor: delete in uneditable zone
cammarosano Mar 13, 2025
7a96b63
[FIX] html_editor: asymmetric range adjustment around non-editables
cammarosano Mar 13, 2025
792f185
[FIX] html_editor: normalization around non-editables on setSelection
cammarosano Mar 13, 2025
92d42da
_shouldClean: an action without a clean that is active should call ap…
Goaman Mar 12, 2025
5dfcf4b
Fix typo in WebsitePageConfigOptionPlugin
duau-odoo Mar 19, 2025
baa24e9
introduces builder_components resource
ged-odoo Mar 19, 2025
a4e9136
lint
Goaman Mar 20, 2025
8cdce10
add prop to BuilderTextInputBase
Goaman Mar 20, 2025
31a8e1e
add inheritance
ged-odoo Mar 20, 2025
492f1e4
make theme tab independant of website
ged-odoo Mar 19, 2025
d04b244
split theme tab plugin in two
ged-odoo Mar 20, 2025
b7a22fc
Stop interactions on exit
robinlej Mar 20, 2025
2cdf1a7
[MOV] move website-specific options in website_builder
robinlej Mar 21, 2025
95886ca
[MOV] move website tests in tests/website_builder/
robinlej Mar 21, 2025
88cf2c6
use history plugin in html_builder's website edit service
bso-odoo Mar 13, 2025
d432136
fix history observing interaction changes
agau-odoo Mar 14, 2025
45096c9
add history ignoreDOMChanges
agau-odoo Mar 14, 2025
3cf106e
remove history enableObserver and disableObserver
agau-odoo Mar 14, 2025
f328e87
suggestion for enableObserverCallbacks & try/catch
Goaman Mar 18, 2025
e2eef27
rename ignoreDOMChanges to ignoreDOMMutations
Goaman Mar 18, 2025
c81a4a0
apply new selector/exclude - rebase
FrancoisGe Mar 19, 2025
b086067
add s_timeline_images_options
FrancoisGe Mar 20, 2025
f84e6e8
remove useless masonry
FrancoisGe Mar 20, 2025
6d87db7
fix search add snippet dialog
FrancoisGe Mar 20, 2025
9854a36
add new Accordion
FrancoisGe Mar 20, 2025
196f835
useDomState don t exec if !editingEl
FrancoisGe Mar 20, 2025
8b67fed
image gallery edit interaction
bso-odoo Mar 21, 2025
750f2b0
Version control option
bso-odoo Mar 25, 2025
05097c7
Use BuilderTextInputBase for BuilderNumberInput
robinlej Mar 20, 2025
930c833
Use o_we_large on inputs
robinlej Mar 20, 2025
f768568
Debounce arrow up/down on BuilderNumberInput
robinlej Mar 20, 2025
9e9507b
[FIX] website: trigger animation when showing s_popup
robinlej Mar 19, 2025
4170e5b
Ensure DOM coherence with hidden/shown popups
robinlej Mar 19, 2025
a8ee154
Revert restarting interactions on visibility update
robinlej Mar 20, 2025
e735364
[IMP] image_gallery_option: implement slideshow speed
fdardenne Mar 19, 2025
17de8a8
Add the slideshow layout
fdardenne Mar 20, 2025
c75b97d
make ImagePostProcessPlugin
Goaman Mar 20, 2025
574edd1
handle shape togglableRatio
Goaman Mar 20, 2025
dd0ffef
fixup
Goaman Mar 25, 2025
fc2d004
ScrollButton
blse-odoo Mar 14, 2025
b673a3e
Mailing List Subscribe Option
AlessandroLupo Mar 21, 2025
190dd5e
InstagramPage (.s_instagram_page)
blse-odoo Mar 18, 2025
4d235e6
add reload feature to builder
ged-odoo Mar 20, 2025
bf7abed
add element option to header
ged-odoo Mar 20, 2025
5924e58
add template selection
ged-odoo Mar 21, 2025
8355a0d
fix reload/websiteConfig
FrancoisGe Mar 26, 2025
358182c
fix rebase
FrancoisGe Mar 27, 2025
bad2c3b
Move files
loco-odoo Mar 21, 2025
e92f3f0
Update selectors
loco-odoo Mar 21, 2025
8fa050d
prevent flicker by only updating button content if needed
ged-odoo Mar 27, 2025
80b3d5d
Fix import
blse-odoo Mar 26, 2025
596509f
Add slideshow layout customization
fdardenne Mar 20, 2025
bb9a5ca
image gallery carrousel: add listeners on add elem
fdardenne Mar 26, 2025
f21dac7
image plugin: make image preview on dblclick deactivable
fdardenne Mar 27, 2025
db08bf9
change document to editable
fdardenne Mar 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions addons/html_builder/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: utf-8 -*-
78 changes: 78 additions & 0 deletions addons/html_builder/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# -*- coding: utf-8 -*-
{
'name': "HTML Builder",
'summary': "Generic html builder",
'description': """
This addon contains a generic html builder application. It is designed to be
used by the website builder and mass mailing editor.
""",

'author': "Odoo",
'website': "https://www.odoo.com",

# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blob/15.0/odoo/addons/base/data/ir_module_category_data.xml
# for the full list
'category': 'Uncategorized',
'version': '0.1',
'auto_install': True,

# any module necessary for this one to work correctly
'depends': ['base', 'html_editor', 'website'],

# always loaded
'data': [
# 'security/ir.model.access.csv',
'views/views.xml',
],

'assets': {
'web.assets_backend': [
'html_builder/static/src/website_preview/**/*',
],
# this bundle is lazy loaded when the editor is ready
'html_builder.assets': [
('include', 'web._assets_helpers'),

'html_builder/static/src/bootstrap_overriden.scss',
'web/static/src/scss/pre_variables.scss',
'web/static/lib/bootstrap/scss/_variables.scss',
'web/static/lib/bootstrap/scss/_variables-dark.scss',
'web/static/lib/bootstrap/scss/_maps.scss',

'html_builder/static/src/**/*',
('remove', 'html_builder/static/src/website_preview/**/*'),
('remove', 'html_builder/static/src/website_builder/plugins/website_edit_service.js'),
('remove', 'html_builder/static/src/interactions/**/*'),
],
'html_builder.inside_builder_style': [
('include', 'web._assets_helpers'),
('include', 'web._assets_primary_variables'),
'web/static/src/scss/bootstrap_overridden.scss',
'html_builder/static/src/**/*.inside.scss',
],
'html_builder.assets_edit_frontend': [
('include', 'website.assets_edit_frontend'),
# website_edit_service must reference the right history
('replace', 'website/static/src/core/website_edit_service.js', 'html_builder/static/src/website_builder/plugins/website_edit_service.js'),
# this imports website_edit_service from its old location, let's get rid of it
('remove', 'website/static/src/interactions/carousel/carousel_bootstrap_upgrade_fix.edit.js'),
],
'html_builder.iframe_add_dialog': [
('include', 'web.assets_frontend'),
'html_builder/static/src/snippets/snippet_viewer.scss'
],
'web.assets_unit_tests': [
'html_builder/static/tests/**/*',
('include', 'html_builder.assets'),
],
'web.assets_frontend': [
'html_builder/static/src/interactions/**/*',
('remove', 'html_builder/static/src/interactions/**/*.edit.*'),
],
'website.assets_edit_frontend': [
'html_builder/static/src/interactions/**/*.edit.*',
],
},
'license': 'LGPL-3',
}
13 changes: 13 additions & 0 deletions addons/html_builder/static/image_shapes/brushed/brush_1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions addons/html_builder/static/image_shapes/brushed/brush_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions addons/html_builder/static/image_shapes/brushed/brush_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions addons/html_builder/static/image_shapes/brushed/brush_4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading