infinity-forge 0.4.5 → 0.4.6
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.
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -74,7 +63,6 @@ exports.useAuthAdmin = exports.AuthAdminProvider = void 0;
|
|
|
74
63
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
75
64
|
var react_1 = require("react");
|
|
76
65
|
var axios_1 = __importStar(require("axios"));
|
|
77
|
-
var react_query_1 = require("@tanstack/react-query");
|
|
78
66
|
var ui_1 = require("../../../../ui/index.js");
|
|
79
67
|
var system_1 = require("../../../../system/index.js");
|
|
80
68
|
var AuthContext = (0, react_1.createContext)({});
|
|
@@ -115,7 +103,7 @@ function AuthAdminProvider(_a) {
|
|
|
115
103
|
queryClient.invalidateQueries();
|
|
116
104
|
system_1.container.get(system_1.InfraTypes.storage).set('token', { value: null });
|
|
117
105
|
}
|
|
118
|
-
|
|
106
|
+
// useQuery({ queryKey: ["load_user"], queryFn: loadUser, ...callApiOneTime, retry: 0 });
|
|
119
107
|
(0, react_1.useEffect)(function () {
|
|
120
108
|
axios_1.default.interceptors.response.use(function (r) { return r; }, function (err) {
|
|
121
109
|
if (err instanceof axios_1.AxiosError) {
|
|
@@ -126,7 +114,7 @@ function AuthAdminProvider(_a) {
|
|
|
126
114
|
throw err;
|
|
127
115
|
});
|
|
128
116
|
}, []);
|
|
129
|
-
return ((0, jsx_runtime_1.
|
|
117
|
+
return ((0, jsx_runtime_1.jsx)(AuthContext.Provider, { value: { user: user, signIn: signIn, signOut: signOut, queryClient: queryClient }, children: user === undefined && (0, jsx_runtime_1.jsx)(ui_1.LoadingScreen, { size: 30, color: '#000' }) }));
|
|
130
118
|
}
|
|
131
119
|
exports.AuthAdminProvider = AuthAdminProvider;
|
|
132
120
|
function useAuthAdmin() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/context.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAsE;AAEtE,6CAAyC;AAGzC,2BAAoC;AACpC,mCAA6I;AAI7I,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAC,EAAsB,CAAC,CAAA;AAEzD,SAAS,iBAAiB,CAAC,EAAkF;QAAhF,QAAQ,cAAA,EAAE,WAAW,iBAAA;IAC1C,IAAA,KAAkB,IAAA,gBAAQ,EAA+B,SAAS,CAAC,EAAlE,IAAI,QAAA,EAAE,OAAO,QAAqD,CAAA;IAEzE,SAAe,QAAQ;;;;;4BACR,qBAAM,kBAAS,CAAC,GAAG,CAAsB,cAAK,CAAC,mBAAmB,CAAC,CAAC,IAAI,EAAE,EAAA;;wBAAjF,IAAI,GAAG,SAA0E;wBACvF,OAAO,CAAC,IAAI,CAAC,CAAA;;;;;KACd;IAED,SAAe,MAAM,CAAC,OAAyB;;;;4BAC7C,qBAAM,kBAAS,CAAC,GAAG,CAAkB,cAAK,CAAC,eAAe,CAAC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O,OAAO,CAAA;AAChB,CAAC;AAE2B,oCAAY"}
|
package/package.json
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "infinity-forge",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "codie Library",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/CodieDigital/codiedigital-library"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"dev": "next -p 3015",
|
|
14
|
-
"start": "next start -p 3015",
|
|
15
|
-
"build": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w --resolve-full-paths\"",
|
|
16
|
-
"nextBuild": "next build",
|
|
17
|
-
"build:esm": "tsc",
|
|
18
|
-
"build:cjs": "tsc --module commonjs --outDir dist && tsc-alias -p tsconfig.json && for /r src %i in (.otf, *.ttf) do copy \"%i\" dist\\ && for /r src %i in (.css) do copy \"%i\" dist\\"
|
|
19
|
-
},
|
|
20
|
-
"peerDependencies": {
|
|
21
|
-
"react": ">=16"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist",
|
|
25
|
-
"LICENSE",
|
|
26
|
-
"README.md"
|
|
27
|
-
],
|
|
28
|
-
"keywords": [
|
|
29
|
-
"react",
|
|
30
|
-
"typescript",
|
|
31
|
-
"awesome-project"
|
|
32
|
-
],
|
|
33
|
-
"author": "Codie Digital",
|
|
34
|
-
"license": "MIT",
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/node": "^18.11.7",
|
|
37
|
-
"@types/react": "^18.0.12",
|
|
38
|
-
"@types/react-dom": "^18.2.18",
|
|
39
|
-
"@types/styled-components": "^5.1.26",
|
|
40
|
-
"prettier": "^2.6.2",
|
|
41
|
-
"react": "^18.1.0",
|
|
42
|
-
"react-dom": "^18.2.0",
|
|
43
|
-
"tslib": "^2.4.1",
|
|
44
|
-
"typescript": "^5.1.5"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@emotion/react": "^11.11.3",
|
|
48
|
-
"@emotion/styled": "^11.11.0",
|
|
49
|
-
"@fullcalendar/core": "^6.1.10",
|
|
50
|
-
"@fullcalendar/daygrid": "^6.1.10",
|
|
51
|
-
"@fullcalendar/interaction": "^6.1.10",
|
|
52
|
-
"@fullcalendar/react": "^6.1.10",
|
|
53
|
-
"@fullcalendar/timegrid": "^6.1.10",
|
|
54
|
-
"@react-input/mask": "^1.0.21",
|
|
55
|
-
"@tanstack/react-query": "^5.
|
|
56
|
-
"aos": "^2.3.4",
|
|
57
|
-
"axios": "^1.4.0",
|
|
58
|
-
"concurrently": "^8.2.2",
|
|
59
|
-
"formik": "^2.4.5",
|
|
60
|
-
"fs": "^0.0.1-security",
|
|
61
|
-
"fs-extra": "^11.1.1",
|
|
62
|
-
"glider-js": "^1.7.8",
|
|
63
|
-
"inversify": "^6.0.2",
|
|
64
|
-
"js-cookie": "^3.0.5",
|
|
65
|
-
"lz-string": "^1.4.4",
|
|
66
|
-
"next": "^13.1.6",
|
|
67
|
-
"npm": "^10.2.4",
|
|
68
|
-
"path": "^0.12.7",
|
|
69
|
-
"react-countup": "^6.5.0",
|
|
70
|
-
"react-error-boundary": "^3.1.4",
|
|
71
|
-
"react-ga": "^3.3.1",
|
|
72
|
-
"react-glider": "^4.0.2",
|
|
73
|
-
"react-google-recaptcha": "^3.1.0",
|
|
74
|
-
"react-select": "^5.8.0",
|
|
75
|
-
"react-slick": "^0.30.2",
|
|
76
|
-
"reflect-metadata": "^0.2.1",
|
|
77
|
-
"semantic-ui-css": "^2.5.0",
|
|
78
|
-
"semantic-ui-react": "^2.1.5",
|
|
79
|
-
"sharp": "^0.33.2",
|
|
80
|
-
"slick-carousel": "^1.8.1",
|
|
81
|
-
"styled-components": "^6.0.1",
|
|
82
|
-
"tsc-alias": "^1.8.8",
|
|
83
|
-
"zustand": "^4.3.8"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "infinity-forge",
|
|
3
|
+
"version": "0.4.6",
|
|
4
|
+
"description": "codie Library",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/CodieDigital/codiedigital-library"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "next -p 3015",
|
|
14
|
+
"start": "next start -p 3015",
|
|
15
|
+
"build": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w --resolve-full-paths\"",
|
|
16
|
+
"nextBuild": "next build",
|
|
17
|
+
"build:esm": "tsc",
|
|
18
|
+
"build:cjs": "tsc --module commonjs --outDir dist && tsc-alias -p tsconfig.json && for /r src %i in (.otf, *.ttf) do copy \"%i\" dist\\ && for /r src %i in (.css) do copy \"%i\" dist\\"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"react": ">=16"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"LICENSE",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"keywords": [
|
|
29
|
+
"react",
|
|
30
|
+
"typescript",
|
|
31
|
+
"awesome-project"
|
|
32
|
+
],
|
|
33
|
+
"author": "Codie Digital",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^18.11.7",
|
|
37
|
+
"@types/react": "^18.0.12",
|
|
38
|
+
"@types/react-dom": "^18.2.18",
|
|
39
|
+
"@types/styled-components": "^5.1.26",
|
|
40
|
+
"prettier": "^2.6.2",
|
|
41
|
+
"react": "^18.1.0",
|
|
42
|
+
"react-dom": "^18.2.0",
|
|
43
|
+
"tslib": "^2.4.1",
|
|
44
|
+
"typescript": "^5.1.5"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@emotion/react": "^11.11.3",
|
|
48
|
+
"@emotion/styled": "^11.11.0",
|
|
49
|
+
"@fullcalendar/core": "^6.1.10",
|
|
50
|
+
"@fullcalendar/daygrid": "^6.1.10",
|
|
51
|
+
"@fullcalendar/interaction": "^6.1.10",
|
|
52
|
+
"@fullcalendar/react": "^6.1.10",
|
|
53
|
+
"@fullcalendar/timegrid": "^6.1.10",
|
|
54
|
+
"@react-input/mask": "^1.0.21",
|
|
55
|
+
"@tanstack/react-query": "^5.24.1",
|
|
56
|
+
"aos": "^2.3.4",
|
|
57
|
+
"axios": "^1.4.0",
|
|
58
|
+
"concurrently": "^8.2.2",
|
|
59
|
+
"formik": "^2.4.5",
|
|
60
|
+
"fs": "^0.0.1-security",
|
|
61
|
+
"fs-extra": "^11.1.1",
|
|
62
|
+
"glider-js": "^1.7.8",
|
|
63
|
+
"inversify": "^6.0.2",
|
|
64
|
+
"js-cookie": "^3.0.5",
|
|
65
|
+
"lz-string": "^1.4.4",
|
|
66
|
+
"next": "^13.1.6",
|
|
67
|
+
"npm": "^10.2.4",
|
|
68
|
+
"path": "^0.12.7",
|
|
69
|
+
"react-countup": "^6.5.0",
|
|
70
|
+
"react-error-boundary": "^3.1.4",
|
|
71
|
+
"react-ga": "^3.3.1",
|
|
72
|
+
"react-glider": "^4.0.2",
|
|
73
|
+
"react-google-recaptcha": "^3.1.0",
|
|
74
|
+
"react-select": "^5.8.0",
|
|
75
|
+
"react-slick": "^0.30.2",
|
|
76
|
+
"reflect-metadata": "^0.2.1",
|
|
77
|
+
"semantic-ui-css": "^2.5.0",
|
|
78
|
+
"semantic-ui-react": "^2.1.5",
|
|
79
|
+
"sharp": "^0.33.2",
|
|
80
|
+
"slick-carousel": "^1.8.1",
|
|
81
|
+
"styled-components": "^6.0.1",
|
|
82
|
+
"tsc-alias": "^1.8.8",
|
|
83
|
+
"zustand": "^4.3.8"
|
|
84
|
+
}
|
|
85
|
+
}
|