strapi-plugin-firebase-authentication 1.0.1 → 1.0.4
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 +3 -3
- package/dist/_chunks/{App-ucyQ3wQ0.js → App-CUXkt5vK.js} +3 -3
- package/dist/_chunks/{App-CSI6Err4.mjs → App-ClT17CMm.mjs} +94 -115
- package/dist/_chunks/{api-DsC4NiMF.mjs → api-4NKlZ1KL.mjs} +1 -1
- package/dist/_chunks/{api-_NrpM6KB.js → api-BJej9FGu.js} +1 -1
- package/dist/_chunks/{index-D6wh_wve.mjs → index-B9iNgpX2.mjs} +6 -6
- package/dist/_chunks/{index-DJDpecNi.mjs → index-CfEq2YaU.mjs} +2 -2
- package/dist/_chunks/{index-BavxEoR2.js → index-DE_DEDmy.js} +6 -6
- package/dist/_chunks/{index-C4tASYZr.js → index-Tl1tZb4M.js} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/pluginId.d.ts +2 -2
- package/dist/server/index.js +49 -44
- package/dist/server/index.mjs +49 -44
- package/dist/server/src/content-types/index.d.ts +1 -1
- package/dist/server/src/firebaseAuthentication/types.d.ts +4 -0
- package/dist/server/src/index.d.ts +4 -2
- package/dist/server/src/services/firebaseService.d.ts +3 -2
- package/dist/server/src/services/index.d.ts +3 -1
- package/package.json +2 -2
- package/dist/server/src/firebaseAuth/types.d.ts +0 -4
- /package/dist/server/src/routes/{firebase-auth-configuration.d.ts → firebase-authentication-configuration.d.ts} +0 -0
- /package/dist/server/src/services/{firebase-auth-configuration.d.ts → firebase-authentication-configuration.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -13,11 +13,11 @@ Generate types for the different collections, single types & components found in
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
yarn add strapi-plugin-firebase-
|
|
16
|
+
yarn add strapi-plugin-firebase-authentication
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm install strapi-plugin-firebase-
|
|
20
|
+
npm install strapi-plugin-firebase-authentication
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Configuration
|
|
@@ -31,7 +31,7 @@ The following options are available:
|
|
|
31
31
|
```typescript
|
|
32
32
|
// config/plugins.ts
|
|
33
33
|
export default ({ env }) => ({
|
|
34
|
-
"firebase-
|
|
34
|
+
"firebase-authentication": {
|
|
35
35
|
enabled: true,
|
|
36
36
|
config: {
|
|
37
37
|
FIREBASE_JSON_ENCRYPTION_KEY: env("FIREBASE_JSON_ENCRYPTION_KEY", "your-default-key"),
|
|
@@ -5,14 +5,14 @@ const admin = require("@strapi/strapi/admin");
|
|
|
5
5
|
const reactRouterDom = require("react-router-dom");
|
|
6
6
|
const react = require("react");
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
|
-
const index = require("./index-
|
|
8
|
+
const index = require("./index-DE_DEDmy.js");
|
|
9
9
|
const reactIntl = require("react-intl");
|
|
10
10
|
const icons = require("@strapi/icons");
|
|
11
11
|
const rx = require("react-icons/rx");
|
|
12
12
|
const styled = require("styled-components");
|
|
13
13
|
const ai = require("react-icons/ai");
|
|
14
14
|
const md = require("react-icons/md");
|
|
15
|
-
const api = require("./api-
|
|
15
|
+
const api = require("./api-BJej9FGu.js");
|
|
16
16
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
17
17
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
18
18
|
const fetchUsers = async (query = {}) => {
|
|
@@ -5044,7 +5044,7 @@ const HomePage = () => {
|
|
|
5044
5044
|
{
|
|
5045
5045
|
marginTop: 3,
|
|
5046
5046
|
onClick: () => {
|
|
5047
|
-
navigate("/settings/firebase-
|
|
5047
|
+
navigate("/settings/firebase-authentication");
|
|
5048
5048
|
},
|
|
5049
5049
|
children: "Configure firebase"
|
|
5050
5050
|
}
|
|
@@ -3,14 +3,14 @@ import { getFetchClient, Pagination, useQueryParams as useQueryParams$1, useNoti
|
|
|
3
3
|
import { useNavigate, useLocation, Routes, Route } from "react-router-dom";
|
|
4
4
|
import { useState, useEffect, useMemo, useCallback, useRef, useLayoutEffect, memo } from "react";
|
|
5
5
|
import { Flex, Tooltip, Thead, Tr, Th, Tbody, Td, Checkbox, Box, Button, Typography, Dialog, Table, SearchForm, Searchbar, TextInput, Main, Link } from "@strapi/design-system";
|
|
6
|
-
import { P as PLUGIN_ID } from "./index-
|
|
6
|
+
import { P as PLUGIN_ID } from "./index-B9iNgpX2.mjs";
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
8
|
import { Key, Trash, WarningCircle, ArrowLeft, Plus } from "@strapi/icons";
|
|
9
9
|
import { RxCheck, RxCross2 } from "react-icons/rx";
|
|
10
10
|
import styled from "styled-components";
|
|
11
11
|
import { AiOutlineUserAdd, AiFillPhone, AiFillMail, AiFillYahoo, AiFillGithub, AiFillTwitterCircle, AiFillFacebook, AiFillApple, AiFillGoogleCircle } from "react-icons/ai";
|
|
12
12
|
import { MdPassword } from "react-icons/md";
|
|
13
|
-
import { g as getFirebaseConfig } from "./api-
|
|
13
|
+
import { g as getFirebaseConfig } from "./api-4NKlZ1KL.mjs";
|
|
14
14
|
const fetchUsers = async (query = {}) => {
|
|
15
15
|
if (!query.page) {
|
|
16
16
|
query.page = 1;
|
|
@@ -2015,7 +2015,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
2015
2015
|
var ys = arrObjKeys(obj, inspect2);
|
|
2016
2016
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
2017
2017
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
2018
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
2018
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
|
|
2019
2019
|
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
2020
2020
|
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
2021
2021
|
if (ys.length === 0) {
|
|
@@ -2040,25 +2040,25 @@ function canTrustToString(obj) {
|
|
|
2040
2040
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
2041
2041
|
}
|
|
2042
2042
|
function isArray$3(obj) {
|
|
2043
|
-
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
2043
|
+
return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
|
|
2044
2044
|
}
|
|
2045
2045
|
function isDate(obj) {
|
|
2046
|
-
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
2046
|
+
return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
|
|
2047
2047
|
}
|
|
2048
2048
|
function isRegExp$1(obj) {
|
|
2049
|
-
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
2049
|
+
return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
2050
2050
|
}
|
|
2051
2051
|
function isError(obj) {
|
|
2052
|
-
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
2052
|
+
return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
|
|
2053
2053
|
}
|
|
2054
2054
|
function isString(obj) {
|
|
2055
|
-
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
2055
|
+
return toStr$1(obj) === "[object String]" && canTrustToString(obj);
|
|
2056
2056
|
}
|
|
2057
2057
|
function isNumber(obj) {
|
|
2058
|
-
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
2058
|
+
return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
|
|
2059
2059
|
}
|
|
2060
2060
|
function isBoolean(obj) {
|
|
2061
|
-
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
2061
|
+
return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
2062
2062
|
}
|
|
2063
2063
|
function isSymbol(obj) {
|
|
2064
2064
|
if (hasShammedSymbols) {
|
|
@@ -2094,7 +2094,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
2094
2094
|
function has$3(obj, key) {
|
|
2095
2095
|
return hasOwn$1.call(obj, key);
|
|
2096
2096
|
}
|
|
2097
|
-
function toStr(obj) {
|
|
2097
|
+
function toStr$1(obj) {
|
|
2098
2098
|
return objectToString.call(obj);
|
|
2099
2099
|
}
|
|
2100
2100
|
function nameOf(f) {
|
|
@@ -2403,7 +2403,7 @@ var syntax = SyntaxError;
|
|
|
2403
2403
|
var uri = URIError;
|
|
2404
2404
|
var abs$1 = Math.abs;
|
|
2405
2405
|
var floor$1 = Math.floor;
|
|
2406
|
-
var max$
|
|
2406
|
+
var max$2 = Math.max;
|
|
2407
2407
|
var min$1 = Math.min;
|
|
2408
2408
|
var pow$1 = Math.pow;
|
|
2409
2409
|
var round$1 = Math.round;
|
|
@@ -2532,99 +2532,78 @@ function requireObject_getPrototypeOf() {
|
|
|
2532
2532
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
2533
2533
|
return Object_getPrototypeOf;
|
|
2534
2534
|
}
|
|
2535
|
-
var
|
|
2536
|
-
var
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
var
|
|
2541
|
-
var
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
var
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
var str = "";
|
|
2563
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
2564
|
-
str += arr[i];
|
|
2565
|
-
if (i + 1 < arr.length) {
|
|
2566
|
-
str += joiner;
|
|
2567
|
-
}
|
|
2535
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
2536
|
+
var toStr = Object.prototype.toString;
|
|
2537
|
+
var max$1 = Math.max;
|
|
2538
|
+
var funcType = "[object Function]";
|
|
2539
|
+
var concatty = function concatty2(a, b) {
|
|
2540
|
+
var arr = [];
|
|
2541
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
2542
|
+
arr[i] = a[i];
|
|
2543
|
+
}
|
|
2544
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
2545
|
+
arr[j + a.length] = b[j];
|
|
2546
|
+
}
|
|
2547
|
+
return arr;
|
|
2548
|
+
};
|
|
2549
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
2550
|
+
var arr = [];
|
|
2551
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
2552
|
+
arr[j] = arrLike[i];
|
|
2553
|
+
}
|
|
2554
|
+
return arr;
|
|
2555
|
+
};
|
|
2556
|
+
var joiny = function(arr, joiner) {
|
|
2557
|
+
var str = "";
|
|
2558
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
2559
|
+
str += arr[i];
|
|
2560
|
+
if (i + 1 < arr.length) {
|
|
2561
|
+
str += joiner;
|
|
2568
2562
|
}
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
);
|
|
2584
|
-
if (Object(result) === result) {
|
|
2585
|
-
return result;
|
|
2586
|
-
}
|
|
2587
|
-
return this;
|
|
2588
|
-
}
|
|
2589
|
-
return target.apply(
|
|
2590
|
-
that,
|
|
2563
|
+
}
|
|
2564
|
+
return str;
|
|
2565
|
+
};
|
|
2566
|
+
var implementation$1 = function bind(that) {
|
|
2567
|
+
var target = this;
|
|
2568
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
2569
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
2570
|
+
}
|
|
2571
|
+
var args = slicy(arguments, 1);
|
|
2572
|
+
var bound;
|
|
2573
|
+
var binder = function() {
|
|
2574
|
+
if (this instanceof bound) {
|
|
2575
|
+
var result = target.apply(
|
|
2576
|
+
this,
|
|
2591
2577
|
concatty(args, arguments)
|
|
2592
2578
|
);
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
boundArgs[i] = "$" + i;
|
|
2598
|
-
}
|
|
2599
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
2600
|
-
if (target.prototype) {
|
|
2601
|
-
var Empty = function Empty2() {
|
|
2602
|
-
};
|
|
2603
|
-
Empty.prototype = target.prototype;
|
|
2604
|
-
bound.prototype = new Empty();
|
|
2605
|
-
Empty.prototype = null;
|
|
2579
|
+
if (Object(result) === result) {
|
|
2580
|
+
return result;
|
|
2581
|
+
}
|
|
2582
|
+
return this;
|
|
2606
2583
|
}
|
|
2607
|
-
return
|
|
2584
|
+
return target.apply(
|
|
2585
|
+
that,
|
|
2586
|
+
concatty(args, arguments)
|
|
2587
|
+
);
|
|
2608
2588
|
};
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
var
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
}
|
|
2589
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
2590
|
+
var boundArgs = [];
|
|
2591
|
+
for (var i = 0; i < boundLength; i++) {
|
|
2592
|
+
boundArgs[i] = "$" + i;
|
|
2593
|
+
}
|
|
2594
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
2595
|
+
if (target.prototype) {
|
|
2596
|
+
var Empty = function Empty2() {
|
|
2597
|
+
};
|
|
2598
|
+
Empty.prototype = target.prototype;
|
|
2599
|
+
bound.prototype = new Empty();
|
|
2600
|
+
Empty.prototype = null;
|
|
2601
|
+
}
|
|
2602
|
+
return bound;
|
|
2603
|
+
};
|
|
2604
|
+
var implementation = implementation$1;
|
|
2605
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
2606
|
+
var functionCall = Function.prototype.call;
|
|
2628
2607
|
var functionApply;
|
|
2629
2608
|
var hasRequiredFunctionApply;
|
|
2630
2609
|
function requireFunctionApply() {
|
|
@@ -2634,14 +2613,14 @@ function requireFunctionApply() {
|
|
|
2634
2613
|
return functionApply;
|
|
2635
2614
|
}
|
|
2636
2615
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
2637
|
-
var bind$2 =
|
|
2616
|
+
var bind$2 = functionBind;
|
|
2638
2617
|
var $apply$1 = requireFunctionApply();
|
|
2639
|
-
var $call$2 =
|
|
2618
|
+
var $call$2 = functionCall;
|
|
2640
2619
|
var $reflectApply = reflectApply;
|
|
2641
2620
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
2642
|
-
var bind$1 =
|
|
2621
|
+
var bind$1 = functionBind;
|
|
2643
2622
|
var $TypeError$4 = type;
|
|
2644
|
-
var $call$1 =
|
|
2623
|
+
var $call$1 = functionCall;
|
|
2645
2624
|
var $actualApply = actualApply;
|
|
2646
2625
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
2647
2626
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -2707,8 +2686,8 @@ function requireHasown() {
|
|
|
2707
2686
|
hasRequiredHasown = 1;
|
|
2708
2687
|
var call = Function.prototype.call;
|
|
2709
2688
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
2710
|
-
var
|
|
2711
|
-
hasown =
|
|
2689
|
+
var bind3 = functionBind;
|
|
2690
|
+
hasown = bind3.call(call, $hasOwn);
|
|
2712
2691
|
return hasown;
|
|
2713
2692
|
}
|
|
2714
2693
|
var undefined$1;
|
|
@@ -2722,7 +2701,7 @@ var $TypeError$3 = type;
|
|
|
2722
2701
|
var $URIError = uri;
|
|
2723
2702
|
var abs = abs$1;
|
|
2724
2703
|
var floor = floor$1;
|
|
2725
|
-
var max = max$
|
|
2704
|
+
var max = max$2;
|
|
2726
2705
|
var min = min$1;
|
|
2727
2706
|
var pow = pow$1;
|
|
2728
2707
|
var round = round$1;
|
|
@@ -2756,7 +2735,7 @@ var getProto = requireGetProto();
|
|
|
2756
2735
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
2757
2736
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
2758
2737
|
var $apply = requireFunctionApply();
|
|
2759
|
-
var $call =
|
|
2738
|
+
var $call = functionCall;
|
|
2760
2739
|
var needsEval = {};
|
|
2761
2740
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
2762
2741
|
var INTRINSICS = {
|
|
@@ -2927,13 +2906,13 @@ var LEGACY_ALIASES = {
|
|
|
2927
2906
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2928
2907
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2929
2908
|
};
|
|
2930
|
-
var
|
|
2909
|
+
var bind2 = functionBind;
|
|
2931
2910
|
var hasOwn = requireHasown();
|
|
2932
|
-
var $concat =
|
|
2933
|
-
var $spliceApply =
|
|
2934
|
-
var $replace =
|
|
2935
|
-
var $strSlice =
|
|
2936
|
-
var $exec =
|
|
2911
|
+
var $concat = bind2.call($call, Array.prototype.concat);
|
|
2912
|
+
var $spliceApply = bind2.call($apply, Array.prototype.splice);
|
|
2913
|
+
var $replace = bind2.call($call, String.prototype.replace);
|
|
2914
|
+
var $strSlice = bind2.call($call, String.prototype.slice);
|
|
2915
|
+
var $exec = bind2.call($call, RegExp.prototype.exec);
|
|
2937
2916
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2938
2917
|
var reEscapeChar = /\\(\\)?/g;
|
|
2939
2918
|
var stringToPath = function stringToPath2(string) {
|
|
@@ -5061,7 +5040,7 @@ const HomePage = () => {
|
|
|
5061
5040
|
{
|
|
5062
5041
|
marginTop: 3,
|
|
5063
5042
|
onClick: () => {
|
|
5064
|
-
navigate("/settings/firebase-
|
|
5043
|
+
navigate("/settings/firebase-authentication");
|
|
5065
5044
|
},
|
|
5066
5045
|
children: "Configure firebase"
|
|
5067
5046
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getFetchClient } from "@strapi/strapi/admin";
|
|
2
|
-
import { P as PLUGIN_ID } from "./index-
|
|
2
|
+
import { P as PLUGIN_ID } from "./index-B9iNgpX2.mjs";
|
|
3
3
|
const saveFirebaseConfig = async (json) => {
|
|
4
4
|
const url = `/${PLUGIN_ID}/settings/firebase-config`;
|
|
5
5
|
const { post } = getFetchClient();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const admin = require("@strapi/strapi/admin");
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-DE_DEDmy.js");
|
|
4
4
|
const saveFirebaseConfig = async (json) => {
|
|
5
5
|
const url = `/${index.PLUGIN_ID}/settings/firebase-config`;
|
|
6
6
|
const { post } = admin.getFetchClient();
|
|
@@ -17,7 +17,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
|
17
17
|
);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
const PLUGIN_ID = "firebase-
|
|
20
|
+
const PLUGIN_ID = "firebase-authentication";
|
|
21
21
|
const Initializer = ({ setPlugin }) => {
|
|
22
22
|
const ref = useRef(setPlugin);
|
|
23
23
|
useEffect(() => {
|
|
@@ -37,7 +37,7 @@ const PERMISSIONS = {
|
|
|
37
37
|
// If the plugin link should be displayed in the menu
|
|
38
38
|
// And also if the plugin is accessible. This use case is found when a user types the url of the
|
|
39
39
|
// plugin directly in the browser
|
|
40
|
-
"menu-link": [{ action: "plugin::firebase-
|
|
40
|
+
"menu-link": [{ action: "plugin::firebase-authentication.menu-link", subject: null }]
|
|
41
41
|
};
|
|
42
42
|
const getTranslation = (id) => `${PLUGIN_ID}.${id}`;
|
|
43
43
|
const index = {
|
|
@@ -49,7 +49,7 @@ const index = {
|
|
|
49
49
|
id: `${PLUGIN_ID}.page.title`,
|
|
50
50
|
defaultMessage: PLUGIN_ID
|
|
51
51
|
},
|
|
52
|
-
Component: () => import("./App-
|
|
52
|
+
Component: () => import("./App-ClT17CMm.mjs").then((mod) => ({
|
|
53
53
|
default: mod.App
|
|
54
54
|
})),
|
|
55
55
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -59,19 +59,19 @@ const index = {
|
|
|
59
59
|
id: PLUGIN_ID,
|
|
60
60
|
intlLabel: {
|
|
61
61
|
id: getTranslation("SettingsNav.section-label"),
|
|
62
|
-
defaultMessage: "Firebase-
|
|
62
|
+
defaultMessage: "Firebase-Authentication Plugin"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
[
|
|
66
66
|
{
|
|
67
67
|
intlLabel: {
|
|
68
|
-
id: getTranslation("Settings.firebase-
|
|
68
|
+
id: getTranslation("Settings.firebase-authentication.plugin.title"),
|
|
69
69
|
defaultMessage: "Settings"
|
|
70
70
|
},
|
|
71
71
|
id: "settings",
|
|
72
72
|
to: `/settings/${PLUGIN_ID}`,
|
|
73
73
|
async Component() {
|
|
74
|
-
const component = await import("./index-
|
|
74
|
+
const component = await import("./index-CfEq2YaU.mjs");
|
|
75
75
|
return component.default;
|
|
76
76
|
},
|
|
77
77
|
permissions: PERMISSIONS["menu-link"]
|