@vuetify/one 2.3.0 → 2.4.0
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/auth-fh7sX38H.js +518 -0
- package/dist/index.d.ts +14 -16
- package/dist/index.js +1854 -2381
- package/dist/{index.css → one.css} +1 -1
- package/dist/stores/auth.d.ts +64 -0
- package/dist/stores/auth.js +7 -0
- package/package.json +27 -30
|
@@ -1 +1 @@
|
|
|
1
|
-
.v-footer__image[data-v-31335c0a]{display:flex;height:40px;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.social-link[data-v-7a9688b8] .v-icon{color:rgba(var(--v-theme-on-background),var(--v-disabled-opacity));text-decoration:none;transition:.2s ease-in-out}.social-link[data-v-7a9688b8] .v-icon:hover{color:rgb(var(--v-theme-primary))}.v-app-bar[data-v-
|
|
1
|
+
.v-footer__image[data-v-31335c0a]{display:flex;height:40px;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.social-link[data-v-7a9688b8] .v-icon{color:rgba(var(--v-theme-on-background),var(--v-disabled-opacity));text-decoration:none;transition:.2s ease-in-out}.social-link[data-v-7a9688b8] .v-icon:hover{color:rgb(var(--v-theme-primary))}.v-app-bar[data-v-16020f45] .v-toolbar__image:after{content:"";position:absolute;inset:0;-webkit-backdrop-filter:blur(calc(var(--3ce3c21e) * 1px));backdrop-filter:blur(calc(var(--3ce3c21e) * 1px));background:linear-gradient(15deg,#000000a6,#00000092,#0000007f,#0000006d,#0000005d,#0000004e,#00000041,#00000034,#00000029,#00000020,#00000017,#00000010,#0000000a,#00000006,#00000003,#00000001,#0000)}.v-list-item-subtitle[data-v-16020f45]{color:currentColor;opacity:var(--v-high-emphasis-opacity)}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as pinia from 'pinia';
|
|
2
|
+
import { Ref, ShallowRef } from 'vue';
|
|
3
|
+
|
|
4
|
+
type VOneTeam = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
inviteCode: string;
|
|
8
|
+
members: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
picture: string;
|
|
12
|
+
}[];
|
|
13
|
+
owner: {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
picture: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
interface VOneSponsorship {
|
|
21
|
+
id: string;
|
|
22
|
+
platform: string;
|
|
23
|
+
interval: 'month' | 'year' | 'once';
|
|
24
|
+
target: string;
|
|
25
|
+
tierName: string;
|
|
26
|
+
amount: number;
|
|
27
|
+
isActive: boolean;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
}
|
|
30
|
+
interface VOneIdentity {
|
|
31
|
+
id: string;
|
|
32
|
+
emails: string[];
|
|
33
|
+
provider: string;
|
|
34
|
+
userId: string;
|
|
35
|
+
userHandle: string;
|
|
36
|
+
primary: boolean;
|
|
37
|
+
}
|
|
38
|
+
interface VOneUser {
|
|
39
|
+
id: string;
|
|
40
|
+
isAdmin: boolean;
|
|
41
|
+
name: string;
|
|
42
|
+
picture: string;
|
|
43
|
+
settings: Record<string, any> | null;
|
|
44
|
+
createdAt: string;
|
|
45
|
+
identities: VOneIdentity[];
|
|
46
|
+
sponsorships: VOneSponsorship[];
|
|
47
|
+
team: VOneTeam;
|
|
48
|
+
}
|
|
49
|
+
interface AuthState {
|
|
50
|
+
user: Ref<VOneUser | null>;
|
|
51
|
+
url: string;
|
|
52
|
+
dialog: Ref<boolean>;
|
|
53
|
+
isLoading: ShallowRef<boolean>;
|
|
54
|
+
verify: (force?: boolean) => Promise<void>;
|
|
55
|
+
findIdentity: (provider: string) => VOneIdentity | undefined;
|
|
56
|
+
login: (provider?: 'github' | 'discord' | 'shopify') => Promise<void>;
|
|
57
|
+
logout: (identity?: string) => Promise<void>;
|
|
58
|
+
lastLoginProvider: () => string | null;
|
|
59
|
+
sync: () => Promise<void>;
|
|
60
|
+
}
|
|
61
|
+
declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<AuthState, "isLoading" | "user" | "url" | "dialog">, Pick<AuthState, never>, Pick<AuthState, "sync" | "verify" | "findIdentity" | "login" | "logout" | "lastLoginProvider">>;
|
|
62
|
+
|
|
63
|
+
export { useAuthStore };
|
|
64
|
+
export type { AuthState, VOneIdentity, VOneSponsorship, VOneUser };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/one",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"default": "./dist/index.js"
|
|
17
17
|
},
|
|
18
|
+
"./stores/auth": "./dist/stores/auth.js",
|
|
18
19
|
"./styles": {
|
|
19
20
|
"import": "./dist/index.css"
|
|
20
21
|
},
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
"release": "pnpm build:dev && pnpm version && git push --follow-tags",
|
|
29
30
|
"watch": "pnpm build:dev --watch",
|
|
30
31
|
"preview": "vite preview",
|
|
31
|
-
"lint": "eslint . --ext .ts,.vue",
|
|
32
|
+
"lint": "eslint . --ext .ts,.vue && vue-tsc --pretty -p tsconfig.json --noEmit",
|
|
32
33
|
"lint:fix": "eslint . --ext .ts,.vue --fix",
|
|
33
34
|
"test": "vitest",
|
|
34
35
|
"coverage": "vitest run --coverage",
|
|
@@ -42,49 +43,49 @@
|
|
|
42
43
|
"vuetify": "^3.8.0"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@babel/types": "^7.
|
|
46
|
+
"@babel/types": "^7.28.4",
|
|
46
47
|
"@fontsource/roboto": "^5.2.6",
|
|
47
48
|
"@mdi/js": "7.4.47",
|
|
48
49
|
"@rollup/plugin-alias": "^5.1.1",
|
|
49
50
|
"@types/lodash-es": "^4.17.12",
|
|
50
|
-
"@types/node": "^24.
|
|
51
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
52
|
-
"@vitest/eslint-plugin": "^1.
|
|
53
|
-
"@vueuse/router": "^13.
|
|
51
|
+
"@types/node": "^24.3.1",
|
|
52
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
53
|
+
"@vitest/eslint-plugin": "^1.3.9",
|
|
54
|
+
"@vueuse/router": "^13.9.0",
|
|
54
55
|
"conventional-changelog-cli": "^5.0.0",
|
|
55
56
|
"conventional-changelog-vuetify": "^2.0.2",
|
|
56
57
|
"conventional-github-releaser": "^3.1.5",
|
|
57
|
-
"core-js": "^3.
|
|
58
|
+
"core-js": "^3.45.1",
|
|
58
59
|
"date-fns": "^4.1.0",
|
|
59
|
-
"eslint": "^9.
|
|
60
|
+
"eslint": "^9.35.0",
|
|
60
61
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
61
|
-
"eslint-config-vuetify": "^4.
|
|
62
|
+
"eslint-config-vuetify": "^4.1.0",
|
|
62
63
|
"jsdom": "^26.1.0",
|
|
63
64
|
"lodash-es": "^4.17.21",
|
|
64
65
|
"pinia": "^3.0.3",
|
|
65
66
|
"rimraf": "^6.0.1",
|
|
66
|
-
"rollup": "^4.
|
|
67
|
-
"rollup-plugin-dts": "^6.2.
|
|
68
|
-
"sass": "^1.
|
|
69
|
-
"taze": "^19.
|
|
67
|
+
"rollup": "^4.50.1",
|
|
68
|
+
"rollup-plugin-dts": "^6.2.3",
|
|
69
|
+
"sass": "^1.92.1",
|
|
70
|
+
"taze": "^19.6.0",
|
|
70
71
|
"typescript": "5.8.3",
|
|
71
|
-
"unplugin-auto-import": "^
|
|
72
|
-
"unplugin-fonts": "^1.
|
|
73
|
-
"unplugin-vue-components": "^
|
|
74
|
-
"unplugin-vue-router": "^0.
|
|
75
|
-
"vite": "^7.0.
|
|
76
|
-
"vite-plugin-vuetify": "^2.1.
|
|
72
|
+
"unplugin-auto-import": "^20.1.0",
|
|
73
|
+
"unplugin-fonts": "^1.4.0",
|
|
74
|
+
"unplugin-vue-components": "^29.0.0",
|
|
75
|
+
"unplugin-vue-router": "^0.15.0",
|
|
76
|
+
"vite": "^7.0.7",
|
|
77
|
+
"vite-plugin-vuetify": "^2.1.2",
|
|
77
78
|
"vite-tsconfig-paths": "^5.1.4",
|
|
78
79
|
"vitest": "^3.2.4",
|
|
79
|
-
"vue": "^3.5.
|
|
80
|
+
"vue": "^3.5.21",
|
|
80
81
|
"vue-router": "^4.5.1",
|
|
81
|
-
"vue-tsc": "^
|
|
82
|
-
"vuetify": "^3.
|
|
82
|
+
"vue-tsc": "^3.0.6",
|
|
83
|
+
"vuetify": "^3.10.0"
|
|
83
84
|
},
|
|
84
|
-
"packageManager": "pnpm@10.
|
|
85
|
+
"packageManager": "pnpm@10.15.1",
|
|
85
86
|
"dependencies": {
|
|
86
87
|
"vite-plugin-pages": "^0.33.1",
|
|
87
|
-
"vite-plugin-vue-layouts-next": "^0.
|
|
88
|
+
"vite-plugin-vue-layouts-next": "^1.0.0"
|
|
88
89
|
},
|
|
89
90
|
"pnpm": {
|
|
90
91
|
"onlyBuiltDependencies": [
|
|
@@ -92,10 +93,6 @@
|
|
|
92
93
|
"core-js",
|
|
93
94
|
"esbuild",
|
|
94
95
|
"unrs-resolver"
|
|
95
|
-
]
|
|
96
|
-
"overrides": {
|
|
97
|
-
"unplugin-fonts>vite": "^7.0.0",
|
|
98
|
-
"vite-plugin-vue-layouts-next>vite": "^7.0.0"
|
|
99
|
-
}
|
|
96
|
+
]
|
|
100
97
|
}
|
|
101
98
|
}
|