@bigbinary/neeto-github-frontend 1.0.8 → 1.0.9
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/en.json +1 -1
- package/dist/index.cjs.js +36 -35
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +36 -35
- package/dist/index.js.map +1 -1
- package/package.json +75 -70
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"github": "GitHub",
|
|
5
5
|
"noRepos": "No repositories found",
|
|
6
6
|
"noReposDescription": "Connect a GitHub repository to begin using your existing repos for new services.",
|
|
7
|
-
"notConnectedDescription": "Connect your
|
|
7
|
+
"notConnectedDescription": "Connect your {{appName}} account to GitHub to begin using your existing repos for new services.",
|
|
8
8
|
"configureAccount": "Configure account",
|
|
9
9
|
"connectAccount": "Connect account",
|
|
10
10
|
"connectGithub": "Connect GitHub",
|
package/dist/index.cjs.js
CHANGED
|
@@ -128,31 +128,31 @@ function _arrayWithHoles(arr) {
|
|
|
128
128
|
if (Array.isArray(arr)) return arr;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
function _iterableToArrayLimit(
|
|
132
|
-
var
|
|
133
|
-
if (null !=
|
|
134
|
-
var
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
131
|
+
function _iterableToArrayLimit(r, l) {
|
|
132
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
133
|
+
if (null != t) {
|
|
134
|
+
var e,
|
|
135
|
+
n,
|
|
136
|
+
i,
|
|
137
|
+
u,
|
|
138
|
+
a = [],
|
|
139
|
+
f = !0,
|
|
140
|
+
o = !1;
|
|
141
141
|
try {
|
|
142
|
-
if (
|
|
143
|
-
if (Object(
|
|
144
|
-
|
|
145
|
-
} else for (; !(
|
|
146
|
-
} catch (
|
|
147
|
-
|
|
142
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
143
|
+
if (Object(t) !== t) return;
|
|
144
|
+
f = !1;
|
|
145
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
146
|
+
} catch (r) {
|
|
147
|
+
o = !0, n = r;
|
|
148
148
|
} finally {
|
|
149
149
|
try {
|
|
150
|
-
if (!
|
|
150
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
151
151
|
} finally {
|
|
152
|
-
if (
|
|
152
|
+
if (o) throw n;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
return
|
|
155
|
+
return a;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -285,7 +285,9 @@ var NotConnected = reactUtils.withT(function (_ref) {
|
|
|
285
285
|
className: "flex w-full max-w-sm flex-col items-center justify-center space-y-4 text-center"
|
|
286
286
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
287
287
|
style: "body2"
|
|
288
|
-
}, t("neetoGithub.notConnectedDescription"
|
|
288
|
+
}, t("neetoGithub.notConnectedDescription", {
|
|
289
|
+
appName: initializers.globalProps.appName
|
|
290
|
+
})), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
289
291
|
href: installationUrl,
|
|
290
292
|
icon: misc.Github,
|
|
291
293
|
iconPosition: "left",
|
|
@@ -447,7 +449,7 @@ var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
|
|
|
447
449
|
_ref$isPane = _ref.isPane,
|
|
448
450
|
isPane = _ref$isPane === void 0 ? false : _ref$isPane;
|
|
449
451
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
450
|
-
className: "flex w-full flex-col-reverse
|
|
452
|
+
className: "flex w-full flex-col-reverse xl:flex-row"
|
|
451
453
|
}, /*#__PURE__*/React__default["default"].createElement(Repositories, {
|
|
452
454
|
installationUrl: installationUrl,
|
|
453
455
|
isConnected: isConnected,
|
|
@@ -2135,7 +2137,6 @@ var arrayPrefixGenerators = {
|
|
|
2135
2137
|
};
|
|
2136
2138
|
|
|
2137
2139
|
var isArray$1 = Array.isArray;
|
|
2138
|
-
var split = String.prototype.split;
|
|
2139
2140
|
var push = Array.prototype.push;
|
|
2140
2141
|
var pushToArray = function (arr, valueOrArray) {
|
|
2141
2142
|
push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
@@ -2237,14 +2238,6 @@ var stringify$1 = function stringify(
|
|
|
2237
2238
|
if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
|
|
2238
2239
|
if (encoder) {
|
|
2239
2240
|
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
|
|
2240
|
-
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
|
|
2241
|
-
var valuesArray = split.call(String(obj), ',');
|
|
2242
|
-
var valuesJoined = '';
|
|
2243
|
-
for (var i = 0; i < valuesArray.length; ++i) {
|
|
2244
|
-
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults$1.encoder, charset, 'value', format));
|
|
2245
|
-
}
|
|
2246
|
-
return [formatter(keyValue) + (commaRoundTrip && isArray$1(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
|
|
2247
|
-
}
|
|
2248
2241
|
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
|
|
2249
2242
|
}
|
|
2250
2243
|
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
@@ -2259,6 +2252,9 @@ var stringify$1 = function stringify(
|
|
|
2259
2252
|
var objKeys;
|
|
2260
2253
|
if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
|
|
2261
2254
|
// we need to join elements in
|
|
2255
|
+
if (encodeValuesOnly && encoder) {
|
|
2256
|
+
obj = utils$1.maybeMap(obj, encoder);
|
|
2257
|
+
}
|
|
2262
2258
|
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
2263
2259
|
} else if (isArray$1(filter)) {
|
|
2264
2260
|
objKeys = filter;
|
|
@@ -2291,7 +2287,7 @@ var stringify$1 = function stringify(
|
|
|
2291
2287
|
commaRoundTrip,
|
|
2292
2288
|
strictNullHandling,
|
|
2293
2289
|
skipNulls,
|
|
2294
|
-
encoder,
|
|
2290
|
+
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder,
|
|
2295
2291
|
filter,
|
|
2296
2292
|
sort,
|
|
2297
2293
|
allowDots,
|
|
@@ -2490,7 +2486,8 @@ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
|
2490
2486
|
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
2491
2487
|
|
|
2492
2488
|
var parseValues = function parseQueryStringValues(str, options) {
|
|
2493
|
-
var obj = {};
|
|
2489
|
+
var obj = { __proto__: null };
|
|
2490
|
+
|
|
2494
2491
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
2495
2492
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
2496
2493
|
var parts = cleanStr.split(options.delimiter, limit);
|
|
@@ -2738,7 +2735,11 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
|
|
|
2738
2735
|
_ref$troubleshootUrl = _ref.troubleshootUrl,
|
|
2739
2736
|
troubleshootUrl = _ref$troubleshootUrl === void 0 ? TROUBLESHOOT_URL : _ref$troubleshootUrl,
|
|
2740
2737
|
_ref$onConnect = _ref.onConnect,
|
|
2741
|
-
onConnect = _ref$onConnect === void 0 ? neetoCist.noop : _ref$onConnect
|
|
2738
|
+
onConnect = _ref$onConnect === void 0 ? neetoCist.noop : _ref$onConnect,
|
|
2739
|
+
_ref$title = _ref.title,
|
|
2740
|
+
title = _ref$title === void 0 ? "" : _ref$title,
|
|
2741
|
+
_ref$description = _ref.description,
|
|
2742
|
+
description = _ref$description === void 0 ? "" : _ref$description;
|
|
2742
2743
|
var _useTranslation = reactI18next.useTranslation(),
|
|
2743
2744
|
t = _useTranslation.t;
|
|
2744
2745
|
var initialFocusRef = React.useRef(null);
|
|
@@ -2750,10 +2751,10 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
|
|
|
2750
2751
|
size: "large"
|
|
2751
2752
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Header, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
2752
2753
|
style: "h2"
|
|
2753
|
-
}, t("neetoGithub.modal.title")), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
2754
|
+
}, neetoCist.isPresent(title) ? title : t("neetoGithub.modal.title")), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
2754
2755
|
className: "mt-4",
|
|
2755
2756
|
style: "body2"
|
|
2756
|
-
}, t("neetoGithub.modal.description"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement(NeetoGithubNanoContainer, {
|
|
2757
|
+
}, neetoCist.isPresent(description) ? description : t("neetoGithub.modal.description"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement(NeetoGithubNanoContainer, {
|
|
2757
2758
|
accounts: accounts,
|
|
2758
2759
|
installationUrl: installationUrl,
|
|
2759
2760
|
isConnected: isConnected,
|