@bigbinary/neeto-custom-domains-frontend 3.3.0 → 3.3.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/app/javascript/src/translations/ar.json +14 -7
- package/app/javascript/src/translations/bg.json +14 -7
- package/app/javascript/src/translations/ca.json +14 -7
- package/app/javascript/src/translations/cs.json +14 -7
- package/app/javascript/src/translations/da.json +14 -7
- package/app/javascript/src/translations/de.json +14 -7
- package/app/javascript/src/translations/en.json +4 -0
- package/app/javascript/src/translations/es-MX.json +14 -7
- package/app/javascript/src/translations/es.json +14 -7
- package/app/javascript/src/translations/et.json +14 -7
- package/app/javascript/src/translations/fi.json +14 -7
- package/app/javascript/src/translations/fil.json +14 -7
- package/app/javascript/src/translations/fr.json +14 -7
- package/app/javascript/src/translations/he.json +14 -7
- package/app/javascript/src/translations/hi.json +14 -7
- package/app/javascript/src/translations/hr.json +14 -7
- package/app/javascript/src/translations/hu.json +13 -6
- package/app/javascript/src/translations/id.json +14 -7
- package/app/javascript/src/translations/it.json +14 -7
- package/app/javascript/src/translations/ja.json +14 -7
- package/app/javascript/src/translations/ko.json +14 -7
- package/app/javascript/src/translations/nl.json +14 -7
- package/app/javascript/src/translations/pl.json +14 -7
- package/app/javascript/src/translations/pt-BR.json +14 -7
- package/app/javascript/src/translations/pt.json +14 -7
- package/app/javascript/src/translations/ro.json +14 -7
- package/app/javascript/src/translations/ru.json +14 -7
- package/app/javascript/src/translations/sk.json +14 -7
- package/app/javascript/src/translations/sl.json +14 -7
- package/app/javascript/src/translations/sv.json +14 -7
- package/app/javascript/src/translations/th.json +14 -7
- package/app/javascript/src/translations/tr.json +14 -7
- package/app/javascript/src/translations/uk.json +14 -7
- package/app/javascript/src/translations/vi.json +14 -7
- package/app/javascript/src/translations/zh-CN.json +14 -7
- package/app/javascript/src/translations/zh-TW.json +14 -7
- package/dist/.ready +1 -1
- package/dist/CustomDomain.js +53 -26
- package/dist/CustomDomain.js.map +1 -1
- package/dist/cjs/CustomDomain.js +53 -26
- package/dist/cjs/CustomDomain.js.map +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/cjs/CustomDomain.js
CHANGED
|
@@ -4,14 +4,18 @@ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
6
6
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
7
|
+
var Callout = require('@bigbinary/neetoui/Callout');
|
|
7
8
|
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
9
|
+
var reactI18next = require('react-i18next');
|
|
8
10
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
9
11
|
var reactQuery = require('@tanstack/react-query');
|
|
10
12
|
var useMutationWithInvalidation = require('@bigbinary/neeto-commons-frontend/react-utils/useMutationWithInvalidation');
|
|
11
13
|
var axios = require('axios');
|
|
12
14
|
var Container = require('@bigbinary/neeto-molecules/Container');
|
|
15
|
+
var CheckCircle = require('@bigbinary/neeto-icons/CheckCircle');
|
|
16
|
+
var Warning2 = require('@bigbinary/neeto-icons/Warning2');
|
|
17
|
+
var CloseCircle = require('@bigbinary/neeto-icons/CloseCircle');
|
|
13
18
|
var Alert = require('@bigbinary/neetoui/Alert');
|
|
14
|
-
var reactI18next = require('react-i18next');
|
|
15
19
|
var jsxRuntime = require('react/jsx-runtime');
|
|
16
20
|
var classNames = require('classnames');
|
|
17
21
|
var constants = require('@bigbinary/neeto-commons-frontend/constants');
|
|
@@ -22,12 +26,8 @@ var Typography = require('@bigbinary/neetoui/Typography');
|
|
|
22
26
|
var Tooltip = require('@bigbinary/neetoui/Tooltip');
|
|
23
27
|
var CardLayout = require('@bigbinary/neeto-molecules/CardLayout');
|
|
24
28
|
var MoreDropdown = require('@bigbinary/neeto-molecules/MoreDropdown');
|
|
25
|
-
var CheckCircle = require('@bigbinary/neeto-icons/CheckCircle');
|
|
26
|
-
var Warning2 = require('@bigbinary/neeto-icons/Warning2');
|
|
27
|
-
var CloseCircle = require('@bigbinary/neeto-icons/CloseCircle');
|
|
28
29
|
var Pane = require('@bigbinary/neetoui/Pane');
|
|
29
30
|
var Stepper = require('@bigbinary/neetoui/Stepper');
|
|
30
|
-
var Callout = require('@bigbinary/neetoui/Callout');
|
|
31
31
|
var ActionBlock = require('@bigbinary/neetoui/formik/ActionBlock');
|
|
32
32
|
var Input = require('@bigbinary/neetoui/formik/Input');
|
|
33
33
|
var Form = require('@bigbinary/neetoui/formik/Form');
|
|
@@ -135,6 +135,32 @@ var useValidateDomain = function useValidateDomain(url) {
|
|
|
135
135
|
}, options));
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
+
var STATUS_TAG_STYLES = {
|
|
139
|
+
active: "success",
|
|
140
|
+
pending: "warning",
|
|
141
|
+
failed: "danger"
|
|
142
|
+
};
|
|
143
|
+
var STATUS_ICON = {
|
|
144
|
+
active: CheckCircle,
|
|
145
|
+
pending: Warning2,
|
|
146
|
+
failed: CloseCircle
|
|
147
|
+
};
|
|
148
|
+
var DNS_TARGETS = {
|
|
149
|
+
staging: {
|
|
150
|
+
cname: "staging.neetodeployapp.com",
|
|
151
|
+
ip: "98.89.128.226"
|
|
152
|
+
},
|
|
153
|
+
production: {
|
|
154
|
+
cname: "dns.neetodeployapp.com",
|
|
155
|
+
ip: "34.233.85.113"
|
|
156
|
+
},
|
|
157
|
+
development: {
|
|
158
|
+
cname: "dns.neetodeployapp.com",
|
|
159
|
+
ip: "34.233.85.113"
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
var NEETO_CUSTOM_DOMAINS_NANO_README_URL = "https://github.com/neetozone/neeto-custom-domains-nano#env-variables";
|
|
163
|
+
|
|
138
164
|
var DeleteAlert = reactUtils.withT(function (_ref) {
|
|
139
165
|
var t = _ref.t,
|
|
140
166
|
onClose = _ref.onClose,
|
|
@@ -159,27 +185,6 @@ var DeleteAlert = reactUtils.withT(function (_ref) {
|
|
|
159
185
|
});
|
|
160
186
|
});
|
|
161
187
|
|
|
162
|
-
var STATUS_TAG_STYLES = {
|
|
163
|
-
active: "success",
|
|
164
|
-
pending: "warning",
|
|
165
|
-
failed: "danger"
|
|
166
|
-
};
|
|
167
|
-
var STATUS_ICON = {
|
|
168
|
-
active: CheckCircle,
|
|
169
|
-
pending: Warning2,
|
|
170
|
-
failed: CloseCircle
|
|
171
|
-
};
|
|
172
|
-
var DNS_TARGETS = {
|
|
173
|
-
staging: {
|
|
174
|
-
cname: "staging.neetodeployapp.com",
|
|
175
|
-
ip: "98.89.128.226"
|
|
176
|
-
},
|
|
177
|
-
production: {
|
|
178
|
-
cname: "dns.neetodeployapp.com",
|
|
179
|
-
ip: "34.233.85.113"
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
|
|
183
188
|
var Domain = function Domain(_ref) {
|
|
184
189
|
var isCustomDomainAdded = _ref.isCustomDomainAdded,
|
|
185
190
|
disconnectedIntegrationCardDescription = _ref.disconnectedIntegrationCardDescription,
|
|
@@ -2072,6 +2077,7 @@ var CustomDomain = function CustomDomain(_ref) {
|
|
|
2072
2077
|
children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
|
|
2073
2078
|
});
|
|
2074
2079
|
}
|
|
2080
|
+
var isDevelopment = environment === "development";
|
|
2075
2081
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2076
2082
|
children: [/*#__PURE__*/jsxRuntime.jsxs(Container, {
|
|
2077
2083
|
children: [/*#__PURE__*/jsxRuntime.jsx(Header$1, {
|
|
@@ -2081,6 +2087,27 @@ var CustomDomain = function CustomDomain(_ref) {
|
|
|
2081
2087
|
openPane: openPane,
|
|
2082
2088
|
setSelectedCustomDomain: setSelectedCustomDomain,
|
|
2083
2089
|
size: headerSize
|
|
2090
|
+
}), isDevelopment && /*#__PURE__*/jsxRuntime.jsx(Callout, {
|
|
2091
|
+
className: "mb-4",
|
|
2092
|
+
style: "warning",
|
|
2093
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2094
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
2095
|
+
components: {
|
|
2096
|
+
Link: /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
2097
|
+
className: "underline",
|
|
2098
|
+
href: NEETO_CUSTOM_DOMAINS_NANO_README_URL,
|
|
2099
|
+
rel: "noreferrer",
|
|
2100
|
+
target: "_blank"
|
|
2101
|
+
})
|
|
2102
|
+
},
|
|
2103
|
+
i18nKey: "neetoCustomDomains.developmentBanner.message"
|
|
2104
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2105
|
+
className: "mt-2 text-xs opacity-75",
|
|
2106
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
2107
|
+
i18nKey: "neetoCustomDomains.developmentBanner.footnote"
|
|
2108
|
+
})
|
|
2109
|
+
})]
|
|
2110
|
+
})
|
|
2084
2111
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2085
2112
|
className: "flex h-full w-full justify-center",
|
|
2086
2113
|
children: /*#__PURE__*/jsxRuntime.jsx(Domain, {
|