Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 3ce167a

Browse files
committed
fix(config): move vertical into ui
1 parent 30d615c commit 3ce167a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/client/src/components/SlideCore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ SwiperCore.use(swiperComponents);
4242
export const SlideCore = ({ slides, onChangeSlideIndex }) => (
4343
<Swiper
4444
effect={process.env.UI.EFFECT}
45-
direction={process.env.VERTICAL === 'true' ? 'vertical' : 'horizontal'}
45+
direction={process.env.UI.VERTICAL === 'true' ? 'vertical' : 'horizontal'}
4646
loop={/*TODO: respect to params to generate pdf */ process.env.LOOP}
4747
speed={350}
4848
allowTouchMove={/* TODO: only for mobile */ false}

packages/fusuma/src/configs/fusumarc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ const config = {
2222
},
2323
slide: {
2424
loop: false,
25-
vertical: false,
2625
targetBlank: true,
2726
ui: {
2827
sidebar: true,
28+
vertical: false,
2929
pagination: null, // bullets | progressbar | fraction
3030
effect: null, // fade | cube | flip
3131
},

packages/fusuma/src/webpack/webpack.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ module.exports = (
2424
const { url, description, thumbnail, siteName, sns, title } = meta;
2525
const {
2626
targetBlank,
27-
ui: { sidebar, pagination, effect },
27+
ui: { sidebar, pagination, effect, vertical },
2828
loop,
29-
vertical,
3029
code,
3130
chart,
3231
math,
@@ -143,13 +142,13 @@ module.exports = (
143142
REMOTE_ORIGIN_URL: JSON.stringify(remoteOrigin),
144143
TARGET_BLANK: JSON.stringify(targetBlank),
145144
LOOP: JSON.stringify(loop),
146-
VERTICAL: JSON.stringify(vertical),
147145
IS_LIVE: JSON.stringify(server.isLive),
148146
SERVER_PORT: JSON.stringify(server.port),
149147
SEARCH_KEYWORD: JSON.stringify(server.keyword),
150148
CHART: JSON.stringify(chart),
151149
UI: {
152150
SIDEBAR: JSON.stringify(sidebar),
151+
VERTICAL: JSON.stringify(vertical),
153152
PAGINATION: JSON.stringify(pagination),
154153
EFFECT: JSON.stringify(effect),
155154
},

0 commit comments

Comments
 (0)