@moudle/-user 0.0.3 → 0.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/dist/module/page/LoginPage.d.ts +1 -0
- package/dist/module/page/LoginPage.d.ts.map +1 -1
- package/dist/module/page/LoginPage.js +3 -1
- package/dist/module/page/LoginPage.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/dist/module/page/index.css +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":"AAGA,OAAO,aAAa,CAAC;AAGrB,wBAAgB,SAAS,4CAoCxB"}
|
|
@@ -8,6 +8,8 @@ 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
|
+
require("./index.css");
|
|
12
|
+
const Button_1 = require("./components/Button");
|
|
11
13
|
function LoginPage() {
|
|
12
14
|
const [email, setEmail] = (0, react_1.useState)('');
|
|
13
15
|
const [password, setPassword] = (0, react_1.useState)('');
|
|
@@ -26,6 +28,6 @@ function LoginPage() {
|
|
|
26
28
|
setLoading(false);
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2", children: [(0, jsx_runtime_1.jsx)("input", { className: "bg-zinc-200", type: "email", value: email, onChange: e => setEmail(e.target.value), placeholder: "Email" }), (0, jsx_runtime_1.jsx)("input", { 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
32
|
}
|
|
31
33
|
//# 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":";;;;;AAMA,8BAoCC;;AA1CD,kDAA0B;AAC1B,iCAAiC;AACjC,4CAA8C;AAC9C,uBAAqB;AACrB,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,iCAAK,SAAS,EAAC,qBAAqB,aAClC,kCACE,SAAS,EAAC,aAAa,EACvB,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,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,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-zinc-300 ${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,eAAe,KAAK,CAAC,SAAS,IAAI,EAAE,EAAE,GAAI,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moudle/-user",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
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.6",
|
|
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",
|