@huyooo/ui 0.4.67 → 0.4.69

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.
@@ -116,3 +116,4 @@ export interface PasswordVerifyParams {
116
116
  email: string;
117
117
  password: string;
118
118
  }
119
+ export type { UserProfileType, UserProfileApiResponse, UserCreateType, UserResponseType, PermissionInfo, RoleInfo, OperatorInfo, UserStatusType, BaseEntity, AuditableEntity, UserBaseInfo, UserVerificationInfo, GitHubInfo } from './user';
@@ -0,0 +1,114 @@
1
+ export type UserStatusType = 'inactive' | 'normal';
2
+ export interface BaseEntity {
3
+ id: string;
4
+ createAt: string;
5
+ updateAt: string;
6
+ }
7
+ export interface AuditableEntity extends BaseEntity {
8
+ creator: string | null;
9
+ updator: string | null;
10
+ creatorId: string;
11
+ updatorId: string;
12
+ }
13
+ export interface PermissionInfo {
14
+ id: string;
15
+ name: string;
16
+ permissionKey: string;
17
+ description: string;
18
+ }
19
+ export interface RoleInfo {
20
+ id: string;
21
+ name: string;
22
+ roleKey: string;
23
+ description: string;
24
+ }
25
+ export interface OperatorInfo {
26
+ id: string;
27
+ nickname: string;
28
+ email: string;
29
+ avatar?: string;
30
+ }
31
+ export interface UserBaseInfo {
32
+ nickname: string;
33
+ description: string;
34
+ email: string;
35
+ phone: string;
36
+ avatar: string;
37
+ avatarUrl: string;
38
+ status: UserStatusType;
39
+ }
40
+ export interface UserVerificationInfo {
41
+ email: {
42
+ isVerified: boolean;
43
+ verificationToken: string;
44
+ createAt: string | null;
45
+ };
46
+ phone: {
47
+ isVerified: boolean;
48
+ verificationToken: string;
49
+ createAt: string | null;
50
+ };
51
+ }
52
+ export interface GitHubInfo {
53
+ login: string;
54
+ id: number;
55
+ node_id: string;
56
+ avatar_url: string;
57
+ gravatar_id: string;
58
+ url: string;
59
+ html_url: string;
60
+ followers_url: string;
61
+ following_url: string;
62
+ gists_url: string;
63
+ starred_url: string;
64
+ subscriptions_url: string;
65
+ organizations_url: string;
66
+ repos_url: string;
67
+ events_url: string;
68
+ received_events_url: string;
69
+ type: string;
70
+ site_admin: boolean;
71
+ name: string;
72
+ company: string | null;
73
+ blog: string;
74
+ location: string;
75
+ email: string;
76
+ hireable: boolean;
77
+ bio: string;
78
+ twitter_username: string | null;
79
+ notification_email: string;
80
+ public_repos: number;
81
+ public_gists: number;
82
+ followers: number;
83
+ following: number;
84
+ created_at: string;
85
+ updated_at: string;
86
+ }
87
+ export interface UserCreateType extends UserBaseInfo {
88
+ password: string;
89
+ organizations: string[];
90
+ }
91
+ export interface UserResponseType extends UserBaseInfo {
92
+ userId: string;
93
+ organizations: string[];
94
+ }
95
+ export interface UserProfileType extends AuditableEntity, UserBaseInfo {
96
+ appId: string;
97
+ roleId: string | null;
98
+ verified: UserVerificationInfo;
99
+ github: GitHubInfo | null;
100
+ wechat: any;
101
+ google: any;
102
+ microsoft: any;
103
+ organizations: string[];
104
+ referrerId: string;
105
+ role: RoleInfo | null;
106
+ permissions: PermissionInfo[];
107
+ creatorInfo?: OperatorInfo;
108
+ updatorInfo?: OperatorInfo;
109
+ }
110
+ export interface UserProfileApiResponse {
111
+ code: number;
112
+ message: string;
113
+ data: UserProfileType;
114
+ }
package/dist/user.d.ts CHANGED
@@ -4,4 +4,4 @@ export { default as UserBasicInformation } from './components/User/UserBasicInfo
4
4
  export { default as UserButton } from './components/User/UserButton.vue';
5
5
  export { default as UserPanel } from './components/User/UserPanel.vue';
6
6
  export { default as UserAccountMenu } from './components/User/UserAccountMenu.vue';
7
- export type * from './types/users';
7
+ export type * from './types/user';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.4.67",
3
+ "version": "0.4.69",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1,128 +0,0 @@
1
- import { defineComponent as d, createElementBlock as n, openBlock as r, createElementVNode as c, createCommentVNode as _, toDisplayString as l, computed as a, normalizeStyle as p, renderSlot as f } from "vue";
2
- import { _ as i } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- const g = {
4
- class: "ContentHead"
5
- }, h = {
6
- class: "title"
7
- }, m = {
8
- key: 0,
9
- class: "description"
10
- }, S = /* @__PURE__ */ d({
11
- __name: "ContentHead",
12
- props: {
13
- title: {
14
- type: String,
15
- required: !0,
16
- default: () => ""
17
- },
18
- description: {
19
- type: String,
20
- required: !0,
21
- default: () => ""
22
- }
23
- },
24
- setup(t) {
25
- const e = t;
26
- return (s, o) => (r(), n("div", g, [c("h1", h, l(e.title), 1), e.description ? (r(), n("p", m, l(e.description), 1)) : _("", !0)]));
27
- }
28
- }), z = /* @__PURE__ */ i(S, [["__scopeId", "data-v-209a7bef"]]), y = /* @__PURE__ */ d({
29
- __name: "Gradientbackground",
30
- props: {
31
- width: {
32
- type: String,
33
- default: "100%"
34
- },
35
- height: {
36
- type: String,
37
- default: "100%"
38
- },
39
- zIndex: {
40
- type: String,
41
- default: "-1"
42
- },
43
- top: {
44
- type: String,
45
- default: "10%"
46
- },
47
- left: {
48
- type: String,
49
- default: "0%"
50
- },
51
- right: {
52
- type: String,
53
- default: "auto"
54
- },
55
- blur: {
56
- type: String,
57
- default: "0px"
58
- },
59
- background: {
60
- type: String,
61
- required: !1,
62
- default: () => "linear-gradient(180deg, rgb(0 225 10 / 10%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)"
63
- }
64
- },
65
- setup(t) {
66
- const e = t, s = a(() => ({
67
- pointerEvents: "none",
68
- position: "absolute",
69
- zIndex: e.zIndex,
70
- width: e.width,
71
- height: e.height,
72
- filter: `blur(${e.blur})`
73
- })), o = a(() => ({
74
- width: "100%",
75
- height: "100%",
76
- background: e.background
77
- // background: `linear-gradient(180deg, #D5D1FF 0.31%, #EAEDFF 74.99%, rgba(240, 246, 255, 0) 99.69%)`,
78
- // background: `linear-gradient(180deg, rgb(0 225 10 / 63%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)`,
79
- // background: `linear-gradient(315deg, rgb(0 225 10 / 63%) 10%, rgb(26 214 255 / 52%) 50%, rgb(220 189 0 / 37%) 100%)`,
80
- }));
81
- return (u, C) => (r(), n("div", {
82
- class: "ellipsis",
83
- style: p(s.value)
84
- }, [c("div", {
85
- class: "ellipsis-item",
86
- style: p(o.value)
87
- }, null, 4)], 4));
88
- }
89
- }), E = /* @__PURE__ */ i(y, [["__scopeId", "data-v-b6461ac4"]]), v = {
90
- class: "SvgIcon"
91
- }, b = ["href", "fill"], I = /* @__PURE__ */ d({
92
- __name: "SvgIcon",
93
- props: {
94
- prefix: {
95
- type: String,
96
- required: !1,
97
- default: "icon"
98
- },
99
- name: {
100
- type: String,
101
- required: !0
102
- },
103
- color: {
104
- type: String,
105
- required: !1,
106
- default: "#333"
107
- }
108
- },
109
- setup(t) {
110
- const e = t, s = a(() => `#${e.prefix ?? "icon"}-${e.name}`);
111
- return (o, u) => (r(), n("svg", v, [c("use", {
112
- href: s.value,
113
- fill: e.color
114
- }, null, 8, b)]));
115
- }
116
- }), G = /* @__PURE__ */ i(I, [["__scopeId", "data-v-0a9de94e"]]), x = {}, $ = {
117
- class: "WidthContainer"
118
- };
119
- function k(t, e) {
120
- return r(), n("div", $, [f(t.$slots, "default", {}, void 0, !0)]);
121
- }
122
- const H = /* @__PURE__ */ i(x, [["render", k], ["__scopeId", "data-v-d06aac1f"]]);
123
- export {
124
- z as C,
125
- E as G,
126
- G as S,
127
- H as W
128
- };
@@ -1,21 +0,0 @@
1
- export type UserStatusType = 'inactive' | 'normal';
2
- export type UsersType = {
3
- password: string;
4
- email: string;
5
- nickname: string;
6
- description: string;
7
- phone: string;
8
- avatar: string;
9
- status: UserStatusType;
10
- organizations: string[];
11
- };
12
- export type UsersResponseType = {
13
- userId: string;
14
- nickname: string;
15
- description: string;
16
- email: string;
17
- phone: string;
18
- avatar: string;
19
- status: UserStatusType;
20
- organizations: string[];
21
- };