@bigbinary/neeto-themes-frontend 3.1.20 → 3.1.22
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/README.md +8 -0
- package/app/javascript/src/translations/ar.json +135 -0
- package/app/javascript/src/translations/bg.json +135 -0
- package/app/javascript/src/translations/ca.json +135 -0
- package/app/javascript/src/translations/cs.json +135 -0
- package/app/javascript/src/translations/da.json +135 -0
- package/app/javascript/src/translations/es-MX.json +135 -0
- package/app/javascript/src/translations/et.json +135 -0
- package/app/javascript/src/translations/fi.json +135 -0
- package/app/javascript/src/translations/fil.json +135 -0
- package/app/javascript/src/translations/hr.json +135 -0
- package/app/javascript/src/translations/id.json +135 -0
- package/app/javascript/src/translations/it.json +135 -0
- package/app/javascript/src/translations/ja.json +135 -0
- package/app/javascript/src/translations/ko.json +135 -0
- package/app/javascript/src/translations/nl.json +135 -0
- package/app/javascript/src/translations/pl.json +135 -0
- package/app/javascript/src/translations/pt-BR.json +135 -0
- package/app/javascript/src/translations/pt.json +135 -0
- package/app/javascript/src/translations/ro.json +135 -0
- package/app/javascript/src/translations/ru.json +135 -0
- package/app/javascript/src/translations/sk.json +135 -0
- package/app/javascript/src/translations/sl.json +135 -0
- package/app/javascript/src/translations/sv.json +135 -0
- package/app/javascript/src/translations/th.json +135 -0
- package/app/javascript/src/translations/tr.json +135 -0
- package/app/javascript/src/translations/uk.json +135 -0
- package/app/javascript/src/translations/vi.json +135 -0
- package/app/javascript/src/translations/zh-CN.json +135 -0
- package/app/javascript/src/translations/zh-TW.json +135 -0
- package/dist/NeetoThemesBuilder.js +22 -8
- package/dist/NeetoThemesBuilder.js.map +1 -1
- package/dist/cjs/NeetoThemesBuilder.js +22 -8
- package/dist/cjs/NeetoThemesBuilder.js.map +1 -1
- package/package.json +15 -15
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"neetoThemes": {
|
|
3
|
+
"entityType": {
|
|
4
|
+
"quiz": "小測驗",
|
|
5
|
+
"quiz_other": "小測驗",
|
|
6
|
+
"form": "表單",
|
|
7
|
+
"form_other": "表單",
|
|
8
|
+
"meeting": "會議",
|
|
9
|
+
"meeting_other": "會議",
|
|
10
|
+
"recording": "錄音",
|
|
11
|
+
"recording_other": "錄音"
|
|
12
|
+
},
|
|
13
|
+
"common": {
|
|
14
|
+
"theme": "主題",
|
|
15
|
+
"preview": "預覽",
|
|
16
|
+
"save": "保存",
|
|
17
|
+
"done": "完成",
|
|
18
|
+
"cancel": "取消",
|
|
19
|
+
"continue": "繼續",
|
|
20
|
+
"retry": "重試",
|
|
21
|
+
"active": "活動",
|
|
22
|
+
"useTheme": "使用主題",
|
|
23
|
+
"previewTheme": "預覽主題",
|
|
24
|
+
"activeTheme": "活動主題",
|
|
25
|
+
"edit": "編輯",
|
|
26
|
+
"noResultsFound": "未找到結果!",
|
|
27
|
+
"searchThemes": "搜尋主題",
|
|
28
|
+
"style": "風格",
|
|
29
|
+
"images": "圖片",
|
|
30
|
+
"name": "名稱",
|
|
31
|
+
"left": "左",
|
|
32
|
+
"logo": "標誌"
|
|
33
|
+
},
|
|
34
|
+
"buttons": {
|
|
35
|
+
"saveChanges": "保存更改",
|
|
36
|
+
"addNewTheme": "新增主題",
|
|
37
|
+
"backToThemes": "返回主題",
|
|
38
|
+
"backToEdit": "返回編輯",
|
|
39
|
+
"save": "保存",
|
|
40
|
+
"reset": "重置",
|
|
41
|
+
"applyThisTheme": "應用此主題",
|
|
42
|
+
"expandEditor": "擴展編輯器",
|
|
43
|
+
"minimizeEditor": "最小化編輯器"
|
|
44
|
+
},
|
|
45
|
+
"alerts": {
|
|
46
|
+
"title": {
|
|
47
|
+
"deleteTheme": "確認刪除主題"
|
|
48
|
+
},
|
|
49
|
+
"message": {
|
|
50
|
+
"deleteTheme_zero": "您正在永久刪除主題「{{name, anyCase}}」。您確定要繼續嗎?",
|
|
51
|
+
"deleteTheme_one": "您正在永久刪除主題「{{name, anyCase}}」。這個主題正在一個{{entityType}}中使用。使用此主題的{{entityType, anyCase}}都將恢復為使用預設主題「{{defaultThemeName, anyCase}}」。您確定要繼續嗎?",
|
|
52
|
+
"deleteTheme_other": "您正在永久刪除主題「{{name, anyCase}}」。這個主題正在{{count}}個{{entityType}}中使用。使用此主題的{{entityType, anyCase}}都將恢復為使用預設主題「{{defaultThemeName, anyCase}}」。您確定要繼續嗎?"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"build": {
|
|
56
|
+
"leftSideBar": {
|
|
57
|
+
"headerTabs": {
|
|
58
|
+
"themes": "主題"
|
|
59
|
+
},
|
|
60
|
+
"helpPopover": {
|
|
61
|
+
"title": "主題",
|
|
62
|
+
"description": "個性化您的{{entityType}}以符合您的品牌。"
|
|
63
|
+
},
|
|
64
|
+
"themes": {
|
|
65
|
+
"systemThemes": "系統主題",
|
|
66
|
+
"customThemes": "自訂主題",
|
|
67
|
+
"themeOptions": {
|
|
68
|
+
"clone": "克隆",
|
|
69
|
+
"delete": "刪除",
|
|
70
|
+
"setAsGlobalTheme": {
|
|
71
|
+
"label": "設置為全域主題",
|
|
72
|
+
"helpText": "啟用此選項將設此主題為預設主題,自動應用於您今後所有的{{entityType}}。此主題也將應用於使用上一个全域主題的{{entityType}}。",
|
|
73
|
+
"tooltipContent": "此主題目前設置為全域主題。選擇其他主題以更改。"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"themeCard": {
|
|
77
|
+
"primary": "主要",
|
|
78
|
+
"secondary": "次要"
|
|
79
|
+
},
|
|
80
|
+
"notAppliedYet": "此主題尚未應用於此{{entityType}}。",
|
|
81
|
+
"editTheme": {
|
|
82
|
+
"title": "編輯主題",
|
|
83
|
+
"imageUpload": "拖放或<span>瀏覽</span>檔案"
|
|
84
|
+
},
|
|
85
|
+
"createTheme": {
|
|
86
|
+
"title": "新主題",
|
|
87
|
+
"newThemeName": "我的主題"
|
|
88
|
+
},
|
|
89
|
+
"customCSS": "自訂CSS",
|
|
90
|
+
"themeCloned": "主題已成功克隆。",
|
|
91
|
+
"themeCloneFailed": "克隆主題失敗,請稍後再試。"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"form": {
|
|
96
|
+
"build": {
|
|
97
|
+
"logoPosition": "標誌位置",
|
|
98
|
+
"font": "字體",
|
|
99
|
+
"left": "左",
|
|
100
|
+
"connect": "連接",
|
|
101
|
+
"update": "更新",
|
|
102
|
+
"confirmationText": "確認文本",
|
|
103
|
+
"enterConfirmationText": "輸入確認文本",
|
|
104
|
+
"questions": "問題",
|
|
105
|
+
"right": "右",
|
|
106
|
+
"uploadCSV": "上傳CSV",
|
|
107
|
+
"answerColor": "回答顏色",
|
|
108
|
+
"buttons": "按鈕",
|
|
109
|
+
"allAnswers": "所有回答",
|
|
110
|
+
"searchSubmissions": "搜尋提交",
|
|
111
|
+
"buttonBorderRadius": "按鈕邊框圓角",
|
|
112
|
+
"backgroundColor": "背景顏色",
|
|
113
|
+
"enableContentBackground": "啟用內容背景",
|
|
114
|
+
"contentBackgroundColor": "內容背景顏色",
|
|
115
|
+
"backgroundImage": "背景圖片",
|
|
116
|
+
"backgroundOverlay": "背景覆蓋",
|
|
117
|
+
"enableDominantBackgroundColor": "啟用主導<br/>背景顏色",
|
|
118
|
+
"enableDominantBackgroundColorInfo": "啟用此選項將背景顏色更新為背景圖片的主導顏色。",
|
|
119
|
+
"thankYouTextAlignment": "感謝您文本對齊",
|
|
120
|
+
"welcomeTextAlignment": "歡迎文本對齊",
|
|
121
|
+
"questionsTextAlignment": "問題文本對齊",
|
|
122
|
+
"addNewElement": "新增元素",
|
|
123
|
+
"addOption": "新增選項",
|
|
124
|
+
"addBulk": "批量新增",
|
|
125
|
+
"buttonText": "按鈕文本",
|
|
126
|
+
"buttonUrl": "按鈕網址",
|
|
127
|
+
"bulkOption": {
|
|
128
|
+
"title": "批量新增選項",
|
|
129
|
+
"label": "輸入選項",
|
|
130
|
+
"helpText": "使用逗號或換行符號分隔選項。 <Link>查看幫助文章</Link>以獲取更多信息。"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -984,7 +984,8 @@ var ImageBlock = function ImageBlock(_ref) {
|
|
|
984
984
|
} : _ref$uploadConfig,
|
|
985
985
|
attribute = _ref.attribute,
|
|
986
986
|
defaultImageSize = _ref.defaultImageSize,
|
|
987
|
-
useDefaultImageSize = _ref.useDefaultImageSize
|
|
987
|
+
useDefaultImageSize = _ref.useDefaultImageSize,
|
|
988
|
+
fixedAspectRatio = _ref.fixedAspectRatio;
|
|
988
989
|
var _useTranslation = useTranslation(),
|
|
989
990
|
t = _useTranslation.t;
|
|
990
991
|
var _useFormikContext = useFormikContext(),
|
|
@@ -1063,6 +1064,7 @@ var ImageBlock = function ImageBlock(_ref) {
|
|
|
1063
1064
|
}), /*#__PURE__*/jsxs("div", {
|
|
1064
1065
|
className: "space-y-3",
|
|
1065
1066
|
children: [/*#__PURE__*/createElement(ImageUploader, {
|
|
1067
|
+
fixedAspectRatio: fixedAspectRatio,
|
|
1066
1068
|
uploadConfig: uploadConfig,
|
|
1067
1069
|
className: "h-40 w-full",
|
|
1068
1070
|
defaultImageSize: useDefaultImageSize ? defaultImageSize : {},
|
|
@@ -1089,7 +1091,8 @@ var Images = function Images(_ref) {
|
|
|
1089
1091
|
className = _ref.className,
|
|
1090
1092
|
onPropertiesChange = _ref.onPropertiesChange,
|
|
1091
1093
|
defaultImageSize = _ref.defaultImageSize,
|
|
1092
|
-
useDefaultImageSize = _ref.useDefaultImageSize
|
|
1094
|
+
useDefaultImageSize = _ref.useDefaultImageSize,
|
|
1095
|
+
fixedAspectRatio = _ref.fixedAspectRatio;
|
|
1093
1096
|
var _useFormikContext = useFormikContext(),
|
|
1094
1097
|
values = _useFormikContext.values;
|
|
1095
1098
|
var _useConfigStore = useConfigStore(function (store) {
|
|
@@ -1109,6 +1112,7 @@ var Images = function Images(_ref) {
|
|
|
1109
1112
|
children: [/*#__PURE__*/jsx(ImageBlock, {
|
|
1110
1113
|
attribute: attribute,
|
|
1111
1114
|
defaultImageSize: defaultImageSize,
|
|
1115
|
+
fixedAspectRatio: fixedAspectRatio,
|
|
1112
1116
|
imageData: imageData,
|
|
1113
1117
|
useDefaultImageSize: useDefaultImageSize,
|
|
1114
1118
|
name: key
|
|
@@ -1154,6 +1158,7 @@ var Customize = function Customize(_ref) {
|
|
|
1154
1158
|
isApplyingTheme = _ref.isApplyingTheme,
|
|
1155
1159
|
onPropertiesChange = _ref.onPropertiesChange,
|
|
1156
1160
|
defaultImageSize = _ref.defaultImageSize,
|
|
1161
|
+
fixedAspectRatio = _ref.fixedAspectRatio,
|
|
1157
1162
|
onEditCSSClick = _ref.onEditCSSClick,
|
|
1158
1163
|
currentScreen = _ref.currentScreen;
|
|
1159
1164
|
var _useTranslation = useTranslation(),
|
|
@@ -1296,17 +1301,20 @@ var Customize = function Customize(_ref) {
|
|
|
1296
1301
|
kind: "image"
|
|
1297
1302
|
}, themePropertiesSchema).map(function (_ref6) {
|
|
1298
1303
|
var key = _ref6.key,
|
|
1299
|
-
useDefaultImageSize = _ref6.useDefaultImageSize
|
|
1300
|
-
|
|
1301
|
-
|
|
1304
|
+
useDefaultImageSize = _ref6.useDefaultImageSize,
|
|
1305
|
+
propertyDefaultSize = _ref6.defaultImageSize,
|
|
1306
|
+
propertyFixedAspectRatio = _ref6.fixedAspectRatio;
|
|
1307
|
+
return /*#__PURE__*/createElement(Images, _defineProperty({
|
|
1308
|
+
fixedAspectRatio: fixedAspectRatio,
|
|
1302
1309
|
onPropertiesChange: onPropertiesChange,
|
|
1303
1310
|
useDefaultImageSize: useDefaultImageSize,
|
|
1304
1311
|
attribute: key,
|
|
1305
1312
|
className: classnames({
|
|
1306
1313
|
hidden: isCustomCssScreen
|
|
1307
1314
|
}),
|
|
1315
|
+
defaultImageSize: propertyDefaultSize || defaultImageSize,
|
|
1308
1316
|
key: key
|
|
1309
|
-
});
|
|
1317
|
+
}, "fixedAspectRatio", propertyFixedAspectRatio || fixedAspectRatio));
|
|
1310
1318
|
}), enabledFeatures.customCSS && /*#__PURE__*/jsx(CustomCSS, {
|
|
1311
1319
|
currentScreen: currentScreen,
|
|
1312
1320
|
onEditCSSClick: onEditCSSClick
|
|
@@ -1908,6 +1916,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
1908
1916
|
var thumbnail = _ref.thumbnail,
|
|
1909
1917
|
onPropertiesChange = _ref.onPropertiesChange,
|
|
1910
1918
|
defaultImageSize = _ref.defaultImageSize,
|
|
1919
|
+
fixedAspectRatio = _ref.fixedAspectRatio,
|
|
1911
1920
|
onApplyThemeSuccess = _ref.onApplyThemeSuccess,
|
|
1912
1921
|
onUpdateThemeSuccess = _ref.onUpdateThemeSuccess,
|
|
1913
1922
|
onApplyGlobalThemeSuccess = _ref.onApplyGlobalThemeSuccess;
|
|
@@ -1997,7 +2006,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
1997
2006
|
var themeToEdit = useRef(null);
|
|
1998
2007
|
var isCustomCssScreen = isScreenCustomCSS(currentScreen);
|
|
1999
2008
|
var handleCreateNewTheme = function handleCreateNewTheme() {
|
|
2000
|
-
history.push(
|
|
2009
|
+
history.push(buildPathname(routes.themes["new"]));
|
|
2001
2010
|
};
|
|
2002
2011
|
var handleEditTheme = function handleEditTheme(theme) {
|
|
2003
2012
|
themeToEdit.current = theme;
|
|
@@ -2016,7 +2025,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2016
2025
|
};
|
|
2017
2026
|
var navigateToThemesScreen = function navigateToThemesScreen(themeId) {
|
|
2018
2027
|
highlightTheme(isPresent(themeId) ? themeId : currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme.id);
|
|
2019
|
-
history.push(
|
|
2028
|
+
history.push(buildPathname(routes.themes.index));
|
|
2020
2029
|
themeToEdit.current = null;
|
|
2021
2030
|
};
|
|
2022
2031
|
var handleBackPress = function handleBackPress(themeId) {
|
|
@@ -2112,6 +2121,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2112
2121
|
return /*#__PURE__*/jsx(Customize, {
|
|
2113
2122
|
currentScreen: currentScreen,
|
|
2114
2123
|
defaultImageSize: defaultImageSize,
|
|
2124
|
+
fixedAspectRatio: fixedAspectRatio,
|
|
2115
2125
|
isApplyingTheme: isApplyingTheme,
|
|
2116
2126
|
onApplyTheme: onApplyTheme,
|
|
2117
2127
|
onCreateTheme: onCreateTheme,
|
|
@@ -2127,6 +2137,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2127
2137
|
return /*#__PURE__*/jsx(Customize, {
|
|
2128
2138
|
currentScreen: currentScreen,
|
|
2129
2139
|
defaultImageSize: defaultImageSize,
|
|
2140
|
+
fixedAspectRatio: fixedAspectRatio,
|
|
2130
2141
|
isApplyingTheme: isApplyingTheme,
|
|
2131
2142
|
onApplyTheme: onApplyTheme,
|
|
2132
2143
|
onCreateTheme: onCreateTheme,
|
|
@@ -2171,6 +2182,8 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
|
|
|
2171
2182
|
onPropertiesChange = _ref.onPropertiesChange,
|
|
2172
2183
|
_ref$defaultImageSize = _ref.defaultImageSize,
|
|
2173
2184
|
defaultImageSize = _ref$defaultImageSize === void 0 ? {} : _ref$defaultImageSize,
|
|
2185
|
+
_ref$fixedAspectRatio = _ref.fixedAspectRatio,
|
|
2186
|
+
fixedAspectRatio = _ref$fixedAspectRatio === void 0 ? {} : _ref$fixedAspectRatio,
|
|
2174
2187
|
_ref$helpDocUrl = _ref.helpDocUrl,
|
|
2175
2188
|
helpDocUrl = _ref$helpDocUrl === void 0 ? null : _ref$helpDocUrl,
|
|
2176
2189
|
_ref$isTemplateThemes = _ref.isTemplateThemesEnabled,
|
|
@@ -2261,6 +2274,7 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
|
|
|
2261
2274
|
title: pageTitle || t("neetoThemes.common.theme")
|
|
2262
2275
|
}), /*#__PURE__*/jsx(Sidebar, {
|
|
2263
2276
|
defaultImageSize: defaultImageSize,
|
|
2277
|
+
fixedAspectRatio: fixedAspectRatio,
|
|
2264
2278
|
onApplyGlobalThemeSuccess: onApplyGlobalThemeSuccess,
|
|
2265
2279
|
onApplyThemeSuccess: onApplyThemeSuccess,
|
|
2266
2280
|
onPropertiesChange: onPropertiesChange,
|