@plone/volto 17.0.0-alpha.0 → 17.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changelog.draft +21 -12
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +118 -5
- package/README.md +4 -4
- package/cypress/support/commands.js +25 -0
- package/locales/ca/LC_MESSAGES/volto.po +5 -0
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +5 -0
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +5 -0
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +5 -0
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +5 -0
- package/locales/eu.json +1 -1
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +5 -0
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +5 -0
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +5 -0
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +5 -0
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +5 -0
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +5 -0
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +5 -0
- package/locales/ro.json +1 -1
- package/locales/volto.pot +5 -0
- package/locales/zh_CN/LC_MESSAGES/volto.po +5 -0
- package/locales/zh_CN.json +1 -1
- package/package-why.json +0 -1
- package/package.json +7 -7
- package/packages/volto-slate/package.json +1 -1
- package/packages/volto-slate/src/blocks/Table/TableBlockView.jsx +4 -4
- package/packages/volto-slate/src/blocks/Table/index.js +2 -0
- package/src/components/manage/BlockChooser/BlockChooserButton.jsx +63 -29
- package/src/components/manage/BlockChooser/BlockChooserSearch.jsx +0 -1
- package/src/components/manage/Blocks/Listing/Edit.jsx +0 -5
- package/src/components/manage/Blocks/Listing/ListingBody.jsx +77 -61
- package/src/components/manage/Blocks/Listing/View.jsx +0 -4
- package/src/components/manage/Blocks/ToC/Edit.jsx +1 -0
- package/src/components/manage/Contents/Contents.jsx +35 -8
- package/src/components/manage/Controlpanels/Controlpanels.jsx +1 -1
- package/src/components/manage/DragDropList/DragDropList.jsx +63 -42
- package/src/components/manage/Form/BlocksToolbar.jsx +5 -1
- package/src/components/manage/Form/Form.jsx +6 -2
- package/src/components/manage/History/History.jsx +35 -18
- package/src/components/theme/View/EventView.jsx +1 -1
- package/src/components/theme/View/NewsItemView.jsx +1 -1
- package/src/config/index.js +1 -0
- package/src/config/server.js +19 -0
- package/src/express-middleware/devproxy.js +4 -2
- package/src/express-middleware/static.js +32 -0
- package/src/server.jsx +1 -7
- package/src/start-server.js +4 -2
- package/theme/themes/pastanaga/extras/blocks.less +0 -9
- package/theme/themes/pastanaga/extras/contents.less +1 -0
- package/theme/themes/pastanaga/extras/main.less +80 -1
package/src/server.jsx
CHANGED
|
@@ -59,13 +59,6 @@ const supported = new locale.Locales(keys(languages), 'en');
|
|
|
59
59
|
|
|
60
60
|
const server = express()
|
|
61
61
|
.disable('x-powered-by')
|
|
62
|
-
.use(
|
|
63
|
-
express.static(
|
|
64
|
-
process.env.BUILD_DIR
|
|
65
|
-
? path.join(process.env.BUILD_DIR, 'public')
|
|
66
|
-
: process.env.RAZZLE_PUBLIC_DIR,
|
|
67
|
-
),
|
|
68
|
-
)
|
|
69
62
|
.head('/*', function (req, res) {
|
|
70
63
|
// Support for HEAD requests. Required by start-test utility in CI.
|
|
71
64
|
res.send('');
|
|
@@ -329,6 +322,7 @@ export const defaultReadCriticalCss = () => {
|
|
|
329
322
|
// Exposed for the console bootstrap info messages
|
|
330
323
|
server.apiPath = config.settings.apiPath;
|
|
331
324
|
server.devProxyToApiPath = config.settings.devProxyToApiPath;
|
|
325
|
+
server.proxyRewriteTarget = config.settings.proxyRewriteTarget;
|
|
332
326
|
server.publicURL = config.settings.publicURL;
|
|
333
327
|
|
|
334
328
|
export default server;
|
package/src/start-server.js
CHANGED
|
@@ -19,9 +19,11 @@ export default () => {
|
|
|
19
19
|
} else {
|
|
20
20
|
console.log(`API server (API_PATH) is set to: ${app.apiPath}`);
|
|
21
21
|
}
|
|
22
|
-
if (
|
|
22
|
+
if (app.devProxyToApiPath)
|
|
23
23
|
console.log(
|
|
24
|
-
`
|
|
24
|
+
`Proxying API requests from ${app.publicURL}/++api++ to ${
|
|
25
|
+
app.devProxyToApiPath
|
|
26
|
+
}${app.proxyRewriteTarget || ''}`,
|
|
25
27
|
);
|
|
26
28
|
console.log(`🎭 Volto started at ${bind_address}:${port} 🚀`);
|
|
27
29
|
|
|
@@ -482,7 +482,6 @@ body.has-toolbar.has-sidebar-collapsed .ui.wrapper > .ui.inner.block.full {
|
|
|
482
482
|
border: none !important;
|
|
483
483
|
background: white !important;
|
|
484
484
|
border-radius: 50% !important;
|
|
485
|
-
transform: translateX(-50%);
|
|
486
485
|
}
|
|
487
486
|
|
|
488
487
|
&:not(.new-add-block) {
|
|
@@ -712,20 +711,12 @@ body.has-toolbar.has-sidebar-collapsed .ui.wrapper > .ui.inner.block.full {
|
|
|
712
711
|
}
|
|
713
712
|
|
|
714
713
|
.blocks-chooser {
|
|
715
|
-
position: absolute;
|
|
716
|
-
z-index: 10;
|
|
717
|
-
top: 100%;
|
|
718
|
-
left: 50%;
|
|
719
714
|
width: 310px;
|
|
720
715
|
padding: 4px;
|
|
721
716
|
background-color: rgba(255, 255, 255, 0.975);
|
|
722
717
|
border-radius: 2px;
|
|
723
718
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
724
719
|
|
|
725
|
-
&.new-add-block {
|
|
726
|
-
transform: translate(-50%, 22px);
|
|
727
|
-
}
|
|
728
|
-
|
|
729
720
|
&:not(.new-add-block) {
|
|
730
721
|
top: -12px;
|
|
731
722
|
left: -9px;
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
@import (multiple) '../../theme.config';
|
|
9
9
|
|
|
10
10
|
// Extras (third party libs)
|
|
11
|
-
@import (less) '~hamburgers/dist/hamburgers.css';
|
|
12
11
|
@import (less) '~react-toastify/dist/ReactToastify.css';
|
|
13
12
|
|
|
14
13
|
// Mixins
|
|
@@ -494,6 +493,86 @@ fieldset.invisible {
|
|
|
494
493
|
.hamburger-wrapper {
|
|
495
494
|
position: relative;
|
|
496
495
|
z-index: 5;
|
|
496
|
+
width: 70px;
|
|
497
|
+
height: 59px;
|
|
498
|
+
padding: 15px 15px;
|
|
499
|
+
|
|
500
|
+
.hamburger {
|
|
501
|
+
position: relative;
|
|
502
|
+
width: 40px;
|
|
503
|
+
height: 24px;
|
|
504
|
+
padding: 0;
|
|
505
|
+
border: none;
|
|
506
|
+
background-color: transparent;
|
|
507
|
+
cursor: pointer;
|
|
508
|
+
transition: 0.3s ease-in-out;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.hamburger::after {
|
|
512
|
+
position: absolute;
|
|
513
|
+
top: 0;
|
|
514
|
+
left: 0;
|
|
515
|
+
display: inline-block;
|
|
516
|
+
width: 100%;
|
|
517
|
+
height: 4px;
|
|
518
|
+
background-color: #000;
|
|
519
|
+
border-radius: 4px;
|
|
520
|
+
content: '';
|
|
521
|
+
transition: 0.3s ease-in-out;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.hamburger::before {
|
|
525
|
+
position: absolute;
|
|
526
|
+
top: 20px;
|
|
527
|
+
left: 0;
|
|
528
|
+
display: inline-block;
|
|
529
|
+
width: 100%;
|
|
530
|
+
height: 4px;
|
|
531
|
+
background-color: #000;
|
|
532
|
+
border-radius: 4px;
|
|
533
|
+
content: '';
|
|
534
|
+
transition: 0.3s ease-in-out;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.hamburger-inner {
|
|
538
|
+
position: absolute;
|
|
539
|
+
top: 10px;
|
|
540
|
+
left: 0;
|
|
541
|
+
display: inline-block;
|
|
542
|
+
width: 100%;
|
|
543
|
+
height: 4px;
|
|
544
|
+
border-radius: 4px;
|
|
545
|
+
transition: 0.3s ease-in-out;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.hamburger.is-active::after,
|
|
549
|
+
.hamburger.is-active::before {
|
|
550
|
+
top: 10px;
|
|
551
|
+
left: 50%;
|
|
552
|
+
width: 0%;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.hamburger-inner::after,
|
|
556
|
+
.hamburger-inner::before {
|
|
557
|
+
position: absolute;
|
|
558
|
+
top: 0;
|
|
559
|
+
left: 0;
|
|
560
|
+
display: block;
|
|
561
|
+
width: 100%;
|
|
562
|
+
height: 4px;
|
|
563
|
+
background-color: #000;
|
|
564
|
+
border-radius: 4px;
|
|
565
|
+
content: '';
|
|
566
|
+
transition: 0.3s ease-in-out;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.hamburger.is-active .hamburger-inner::after {
|
|
570
|
+
transform: rotate(45deg);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.hamburger.is-active .hamburger-inner::before {
|
|
574
|
+
transform: rotate(-45deg);
|
|
575
|
+
}
|
|
497
576
|
}
|
|
498
577
|
|
|
499
578
|
.mobile-menu {
|