@moudle/-user 0.0.3 → 0.0.5
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/dist/module/page/LoginPage.d.ts.map +1 -1
- package/dist/module/page/LoginPage.js +2 -1
- package/dist/module/page/LoginPage.js.map +1 -1
- package/dist/module/page/RegisterPage.d.ts.map +1 -1
- package/dist/module/page/RegisterPage.js +2 -1
- package/dist/module/page/RegisterPage.js.map +1 -1
- package/dist/module/page/components/Button.d.ts +6 -0
- package/dist/module/page/components/Button.d.ts.map +1 -0
- package/dist/module/page/components/Button.js +8 -0
- package/dist/module/page/components/Button.js.map +1 -0
- package/package.json +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginPage.d.ts","sourceRoot":"","sources":["../../../module/page/LoginPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoginPage.d.ts","sourceRoot":"","sources":["../../../module/page/LoginPage.tsx"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,4CA0CxB"}
|
|
@@ -8,6 +8,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
8
8
|
const axios_1 = __importDefault(require("axios"));
|
|
9
9
|
const react_1 = require("react");
|
|
10
10
|
const config_ui_1 = require("../config-ui");
|
|
11
|
+
const Button_1 = require("./components/Button");
|
|
11
12
|
function LoginPage() {
|
|
12
13
|
const [email, setEmail] = (0, react_1.useState)('');
|
|
13
14
|
const [password, setPassword] = (0, react_1.useState)('');
|
|
@@ -26,6 +27,6 @@ function LoginPage() {
|
|
|
26
27
|
setLoading(false);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("input", { type: "email", value: email, onChange: e => setEmail(e.target.value), placeholder: "Email" })
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "flex h-screen items-center justify-center", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2 bg-zinc-50/50 p-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-center text-xl font-bold", children: "Login Page" }), (0, jsx_runtime_1.jsx)("input", { className: "bg-zinc-100 p-2 px-4 w-100 rounded-md outline-none", type: "email", value: email, onChange: e => setEmail(e.target.value), placeholder: "Email" }), (0, jsx_runtime_1.jsx)("input", { className: "bg-zinc-100 p-2 px-4 w-100 rounded-md outline-none", type: "password", value: password, onChange: e => setPassword(e.target.value), placeholder: "Password" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: login, children: loading ? 'Loading' : 'Login' })] }) }));
|
|
30
31
|
}
|
|
31
32
|
//# sourceMappingURL=LoginPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginPage.js","sourceRoot":"","sources":["../../../module/page/LoginPage.tsx"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"LoginPage.js","sourceRoot":"","sources":["../../../module/page/LoginPage.tsx"],"names":[],"mappings":";;;;;AAKA,8BA0CC;;AA/CD,kDAA0B;AAC1B,iCAAiC;AACjC,4CAA8C;AAC9C,gDAA6C;AAE7C,SAAgB,SAAS;IACvB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAS,EAAE,CAAC,CAAC;IAC/C,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAS,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IAEvD,KAAK,UAAU,KAAK;QAClB,IAAI,CAAC;YACH,UAAU,CAAC,IAAI,CAAC,CAAC;YACjB,MAAM,GAAG,GAAG,MAAM,eAAK,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;YAChE,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC9C,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,0BAAc,CAAC,mBAAmB,CAAC;QAC5D,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvC,CAAC;gBAAS,CAAC;YACT,UAAU,CAAC,KAAK,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IAED,OAAO,CACL,gCAAK,SAAS,EAAC,2CAA2C,YACxD,iCAAK,SAAS,EAAC,uCAAuC,aACpD,gCAAK,SAAS,EAAC,+BAA+B,2BAExC,EACN,kCACE,SAAS,EAAC,oDAAoD,EAC9D,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACvC,WAAW,EAAC,OAAO,GAAG,EACxB,kCACE,SAAS,EAAC,oDAAoD,EAC9D,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC1C,WAAW,EAAC,UAAU,GAAG,EAC3B,uBAAC,eAAM,IAAC,OAAO,EAAE,KAAK,YACnB,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,GACvB,IACL,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterPage.d.ts","sourceRoot":"","sources":["../../../module/page/RegisterPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RegisterPage.d.ts","sourceRoot":"","sources":["../../../module/page/RegisterPage.tsx"],"names":[],"mappings":"AAKA,wBAAgB,YAAY,4CAgD3B"}
|
|
@@ -8,6 +8,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
8
8
|
const axios_1 = __importDefault(require("axios"));
|
|
9
9
|
const react_1 = require("react");
|
|
10
10
|
const config_ui_1 = require("../config-ui");
|
|
11
|
+
const Button_1 = require("./components/Button");
|
|
11
12
|
function RegisterPage() {
|
|
12
13
|
const [name, setName] = (0, react_1.useState)('');
|
|
13
14
|
const [email, setEmail] = (0, react_1.useState)('');
|
|
@@ -27,6 +28,6 @@ function RegisterPage() {
|
|
|
27
28
|
setLoading(false);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("input", { value: name, onChange: e => setName(e.target.value), placeholder: "Name" })
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "flex h-screen items-center justify-center", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2 bg-zinc-50/50 p-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-center text-xl font-bold", children: "Register Page" }), (0, jsx_runtime_1.jsx)("input", { className: "bg-zinc-100 p-2 px-4 w-100 rounded-md outline-none", value: name, onChange: e => setName(e.target.value), placeholder: "Name" }), (0, jsx_runtime_1.jsx)("input", { className: "bg-zinc-100 p-2 px-4 w-100 rounded-md outline-none", type: "email", value: email, onChange: e => setEmail(e.target.value), placeholder: "Email" }), (0, jsx_runtime_1.jsx)("input", { className: "bg-zinc-100 p-2 px-4 w-100 rounded-md outline-none", type: "password", value: password, onChange: e => setPassword(e.target.value), placeholder: "Password" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: register, children: loading ? 'Loading' : 'Register' })] }) }));
|
|
31
32
|
}
|
|
32
33
|
//# sourceMappingURL=RegisterPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterPage.js","sourceRoot":"","sources":["../../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AK,SAAS,EAAC,+BAA+B,8BAExC,EACN,kCACE,SAAS,EAAC,oDAAoD,EAC9D,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACtC,WAAW,EAAC,MAAM,GAAG,EACvB,kCACE,SAAS,EAAC,oDAAoD,EAC9D,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACvC,WAAW,EAAC,OAAO,GAAG,EACxB,kCACE,SAAS,EAAC,oDAAoD,EAC9D,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC1C,WAAW,EAAC,UAAU,GAAG,EAC3B,uBAAC,eAAM,IAAC,OAAO,EAAE,QAAQ,YACtB,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,GAC1B,IACL,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from "react";
|
|
2
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
}
|
|
4
|
+
export declare function Button(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../module/page/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAE7C,UAAU,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAExE,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CAMxC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Button = Button;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function Button(props) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("button", { ...props, className: `bg-blue-500 text-white p-3 px-5 rounded-md cursor-pointer hover:bg-blue-500/90 ${props.className || ''}` }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../module/page/components/Button.tsx"],"names":[],"mappings":";;AAIA,wBAMC;;AAND,SAAgB,MAAM,CAAC,KAAkB;IACvC,OAAO,CACL,sCACM,KAAK,EACT,SAAS,EAAE,kFAAkF,KAAK,CAAC,SAAS,IAAI,EAAE,EAAE,GAAI,CAC3H,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moudle/-user",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/lib.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"start": "npm run build && node dist",
|
|
18
|
-
"build": "rm -rf dist && tsc",
|
|
18
|
+
"build": "rm -rf dist && tsc && npm run copy-assets",
|
|
19
|
+
"copy-assets": "copyfiles -u 1 \"module/**/*.{css,png,jpg,svg}\" dist/module",
|
|
19
20
|
"typeorm": "typeorm-ts-node-commonjs",
|
|
20
21
|
"generate-migration": "npm run typeorm migration:generate -- $1 -d ./data-source.ts",
|
|
21
22
|
"migrate": "npm run typeorm migration:run -- -d ./data-source.ts"
|
|
@@ -37,11 +38,12 @@
|
|
|
37
38
|
"@types/react": "^19.2.14",
|
|
38
39
|
"@types/react-dom": "^19.2.3",
|
|
39
40
|
"@types/react-router-dom": "^5.3.3",
|
|
41
|
+
"copyfiles": "^2.4.1",
|
|
40
42
|
"ts-node": "^10.9.2",
|
|
41
43
|
"typescript": "^6.0.3"
|
|
42
44
|
},
|
|
43
45
|
"dependencies": {
|
|
44
|
-
"@moudle/start": "^0.0.
|
|
46
|
+
"@moudle/start": "^0.0.7",
|
|
45
47
|
"@react-router/express": "^7.15.1",
|
|
46
48
|
"axios": "^1.16.1",
|
|
47
49
|
"bcrypt": "^6.0.0",
|
|
@@ -49,6 +51,7 @@
|
|
|
49
51
|
"express": "^5.2.1",
|
|
50
52
|
"jsonwebtoken": "^9.0.3",
|
|
51
53
|
"mysql2": "^3.22.3",
|
|
54
|
+
"postcss": "^8.5.14",
|
|
52
55
|
"react-dom": "^19.2.6",
|
|
53
56
|
"react-router-dom": "^7.15.1",
|
|
54
57
|
"reflect-metadata": "^0.2.2",
|