@userfrosting/sprinkle-core 6.0.0-beta.8 → 6.0.0-rc.2
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/README.md +27 -46
- package/dist/{Page401Unauthorized-Dkz0W0kI.js → Page401Unauthorized-D_EoXicK.js} +2 -2
- package/dist/{Page403Forbidden-CZrvZLe3.js → Page403Forbidden-C96BgRtx.js} +2 -2
- package/dist/{Page404NotFound-C7Y20KCv.js → Page404NotFound-CIs-2Fy2.js} +2 -2
- package/dist/{PageError-wq0-2ksY.js → PageError-Sk-QAv9A.js} +2 -2
- package/dist/composables.js +2 -2
- package/dist/index.js +4 -4
- package/dist/routes.js +4 -4
- package/dist/stores.js +1 -1
- package/dist/{useAlertsStore-BnSfoOG2.js → useAlertsStore-Ca6nXz8C.js} +4 -4
- package/dist/{useAxiosInterceptor-DTHSvv-f.js → useAxiosInterceptor-DcOpTLHG.js} +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
# UserFrosting
|
|
2
|
-
|
|
3
|
-
[![
|
|
4
|
-
![
|
|
5
|
-
[![
|
|
6
|
-
[![
|
|
7
|
-
[![
|
|
8
|
-
[![
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[
|
|
12
|
-
[
|
|
1
|
+
# UserFrosting 6.0 - Core Sprinkle
|
|
2
|
+
|
|
3
|
+
[![][UF6-CO-VER-I]][UF6-CO-VER-L]
|
|
4
|
+
[![][UF6-CO-NPM-I]][UF6-CO-NPM-L]
|
|
5
|
+
[![][UF6-LIS-I]][UF6-LIS-L]
|
|
6
|
+
[![][UF6-CHA-I]][UF6-CHA-L]
|
|
7
|
+
[![][UF6-COL-I]][UF6-COL-L]
|
|
8
|
+
[![][UF6-KOF-I]][UF6-KOF-L]
|
|
9
|
+
|
|
10
|
+
<!-- Links -->
|
|
11
|
+
[UF6-CO-VER-I]: https://img.shields.io/github/v/release/userfrosting/sprinkle-core?include_prereleases
|
|
12
|
+
[UF6-CO-VER-L]: https://github.com/userfrosting/sprinkle-core/releases
|
|
13
|
+
[UF6-CO-NPM-I]: https://img.shields.io/npm/v/%40userfrosting%2Fsprinkle-core
|
|
14
|
+
[UF6-CO-NPM-L]: https://www.npmjs.com/package/@userfrosting/sprinkle-core
|
|
15
|
+
[UF6-LIS-I]: https://img.shields.io/badge/license-MIT-brightgreen.svg
|
|
16
|
+
[UF6-LIS-L]: LICENSE
|
|
17
|
+
[UF6-CHA-I]: https://img.shields.io/badge/Chat-UserFrosting-brightgreen?logo=Rocket.Chat
|
|
18
|
+
[UF6-CHA-L]: https://chat.userfrosting.com
|
|
19
|
+
[UF6-COL-I]: https://img.shields.io/badge/Open_Collective-Donate-blue?logo=Open%20Collective
|
|
20
|
+
[UF6-COL-L]: https://opencollective.com/userfrosting#backer
|
|
21
|
+
[UF6-KOF-I]: https://img.shields.io/badge/Ko--fi-Donate-blue?logo=ko-fi&logoColor=white
|
|
22
|
+
[UF6-KOF-L]: https://ko-fi.com/lcharette
|
|
23
|
+
|
|
24
|
+
> [!WARNING]
|
|
25
|
+
> Since 6.0, this is a read-only subtree split of the [UserFrosting Monorepo](https://github.com/userfrosting/monorepo). To contribute, all Pull Requests should be sent against the monorepo. Please see the [contributing guidelines](https://github.com/userfrosting/.github/blob/main/.github/CONTRIBUTING.md) for more information.
|
|
13
26
|
|
|
14
27
|
## By [Alex Weissman](https://alexanderweissman.com) and [Louis Charette](https://bbqsoftwares.com)
|
|
15
28
|
|
|
16
|
-
Copyright (c) 2013-
|
|
29
|
+
Copyright (c) 2013-2026, free to use in personal and commercial software as per the [MIT license](LICENSE.md).
|
|
17
30
|
|
|
18
|
-
UserFrosting is a secure, modern user management system written in PHP and built on top of the [Slim Microframework](http://www.slimframework.com/), [Twig](http://twig.sensiolabs.org/) templating engine,
|
|
31
|
+
UserFrosting is a secure, modern user management system written in PHP and built on top of the [Slim Microframework](http://www.slimframework.com/), [Twig](http://twig.sensiolabs.org/) templating engine, [Eloquent](https://laravel.com/docs/10.x/eloquent#introduction) ORM, [Vite](https://vitejs.dev/), [Vue](https://vuejs.org/), and [UiKit](https://getuikit.com/).
|
|
19
32
|
|
|
20
33
|
This **Core Sprinkle** provides most of the "heavy lifting" PHP code. It provides all the necessary services for database, templating, error handling, mail support, request throttling, and more.
|
|
21
34
|
|
|
@@ -42,38 +55,6 @@ To use this sprinkle in your UserFrosting project, follow theses instructions (*
|
|
|
42
55
|
php bakery bake
|
|
43
56
|
```
|
|
44
57
|
|
|
45
|
-
## Install locally and run tests
|
|
46
|
-
You can also install this sprinkle locally. This can be useful to debug or contribute to this sprinkle.
|
|
47
|
-
|
|
48
|
-
1. Clone repo :
|
|
49
|
-
```
|
|
50
|
-
git clone https://github.com/userfrosting/sprinkle-core.git
|
|
51
|
-
```
|
|
52
|
-
2. Change directory
|
|
53
|
-
```
|
|
54
|
-
cd sprinkle-core
|
|
55
|
-
```
|
|
56
|
-
3. Install dependencies :
|
|
57
|
-
```
|
|
58
|
-
composer install
|
|
59
|
-
```
|
|
60
|
-
4. Run bake command :
|
|
61
|
-
```
|
|
62
|
-
php bakery bake
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
From this point, you can use the same command as with any other sprinkle.
|
|
66
|
-
|
|
67
|
-
Tests can be run using the bundled PHPUnit :
|
|
68
|
-
```
|
|
69
|
-
vendor/bin/phpunit
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Same for PHPStan, for code quality :
|
|
73
|
-
```
|
|
74
|
-
vendor/bin/phpstan analyse app/src/
|
|
75
|
-
```
|
|
76
|
-
|
|
77
58
|
## Documentation
|
|
78
59
|
See main [UserFrosting Documentation](https://learn.userfrosting.com) for more information.
|
|
79
60
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { resolveComponent as o,
|
|
1
|
+
import { resolveComponent as o, openBlock as e, createBlock as n } from "vue";
|
|
2
2
|
import { _ as t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
const c = {};
|
|
4
4
|
function _(a, s) {
|
|
5
5
|
const r = o("UFErrorPage");
|
|
6
|
-
return
|
|
6
|
+
return e(), n(r, { errorCode: "401" });
|
|
7
7
|
}
|
|
8
8
|
const p = /* @__PURE__ */ t(c, [["render", _]]);
|
|
9
9
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { resolveComponent as o,
|
|
1
|
+
import { resolveComponent as o, openBlock as e, createBlock as n } from "vue";
|
|
2
2
|
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
const t = {};
|
|
4
4
|
function _(a, s) {
|
|
5
5
|
const r = o("UFErrorPage");
|
|
6
|
-
return
|
|
6
|
+
return e(), n(r, { errorCode: "403" });
|
|
7
7
|
}
|
|
8
8
|
const p = /* @__PURE__ */ c(t, [["render", _]]);
|
|
9
9
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { resolveComponent as r,
|
|
1
|
+
import { resolveComponent as r, openBlock as e, createBlock as n } from "vue";
|
|
2
2
|
import { _ as t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
const c = {};
|
|
4
4
|
function _(a, s) {
|
|
5
5
|
const o = r("UFErrorPage");
|
|
6
|
-
return
|
|
6
|
+
return e(), n(o, { errorCode: "404" });
|
|
7
7
|
}
|
|
8
8
|
const p = /* @__PURE__ */ t(c, [["render", _]]);
|
|
9
9
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { resolveComponent as o,
|
|
1
|
+
import { resolveComponent as o, openBlock as e, createBlock as c } from "vue";
|
|
2
2
|
import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
const t = {};
|
|
4
4
|
function _(a, s) {
|
|
5
5
|
const r = o("UFErrorPage");
|
|
6
|
-
return
|
|
6
|
+
return e(), c(r);
|
|
7
7
|
}
|
|
8
8
|
const p = /* @__PURE__ */ n(t, [["render", _]]);
|
|
9
9
|
export {
|
package/dist/composables.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as _, computed as c, watchEffect as T, toValue as B } from "vue";
|
|
2
2
|
import D from "axios";
|
|
3
|
-
import { u as y, a as h } from "./useAxiosInterceptor-
|
|
3
|
+
import { u as y, a as h } from "./useAxiosInterceptor-DcOpTLHG.js";
|
|
4
4
|
import { required as q, withMessage as i, email as G, minLength as S, maxLength as V, integer as $, oneOf as p, regex as m, not as M, numeric as O, between as z, url as L } from "@regle/rules";
|
|
5
|
-
import {
|
|
5
|
+
import { c as H } from "./useAlertsStore-Ca6nXz8C.js";
|
|
6
6
|
const X = (s, a = {}, w = {}, o = 10, t = 0) => {
|
|
7
7
|
const e = _(o), n = _(t), g = _(a), u = _(w), r = _({
|
|
8
8
|
count: 0,
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as s, a as e } from "./useAxiosInterceptor-
|
|
1
|
+
import { a, c as r } from "./useAlertsStore-Ca6nXz8C.js";
|
|
2
|
+
import { u as s, a as e } from "./useAxiosInterceptor-DcOpTLHG.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "axios";
|
|
5
5
|
import "@regle/rules";
|
|
6
6
|
const p = {
|
|
7
7
|
install: (o) => {
|
|
8
|
-
s(),
|
|
9
|
-
const t =
|
|
8
|
+
s(), a().load();
|
|
9
|
+
const t = r();
|
|
10
10
|
t.load(), o.config.globalProperties.$t = t.translate, o.config.globalProperties.$tdate = t.translateDate, e();
|
|
11
11
|
}
|
|
12
12
|
};
|
package/dist/routes.js
CHANGED
|
@@ -6,7 +6,7 @@ const t = [
|
|
|
6
6
|
title: "ERROR.404.TITLE",
|
|
7
7
|
description: "ERROR.404.DESCRIPTION"
|
|
8
8
|
},
|
|
9
|
-
component: () => import("./Page404NotFound-
|
|
9
|
+
component: () => import("./Page404NotFound-CIs-2Fy2.js")
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
path: "/:pathMatch(.*)*",
|
|
@@ -15,7 +15,7 @@ const t = [
|
|
|
15
15
|
title: "ERROR.401.TITLE",
|
|
16
16
|
description: "ERROR.401.DESCRIPTION"
|
|
17
17
|
},
|
|
18
|
-
component: () => import("./Page401Unauthorized-
|
|
18
|
+
component: () => import("./Page401Unauthorized-D_EoXicK.js")
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
path: "/:pathMatch(.*)*",
|
|
@@ -24,7 +24,7 @@ const t = [
|
|
|
24
24
|
title: "ERROR.403.TITLE",
|
|
25
25
|
description: "ERROR.403.DESCRIPTION"
|
|
26
26
|
},
|
|
27
|
-
component: () => import("./Page403Forbidden-
|
|
27
|
+
component: () => import("./Page403Forbidden-C96BgRtx.js")
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
path: "/:pathMatch(.*)*",
|
|
@@ -33,7 +33,7 @@ const t = [
|
|
|
33
33
|
title: "ERROR.TITLE",
|
|
34
34
|
description: "ERROR.DESCRIPTION"
|
|
35
35
|
},
|
|
36
|
-
component: () => import("./PageError-
|
|
36
|
+
component: () => import("./PageError-Sk-QAv9A.js")
|
|
37
37
|
}
|
|
38
38
|
];
|
|
39
39
|
export {
|
package/dist/stores.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, watchEffect as S } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a as f, u as A } from "./useAlertsStore-Ca6nXz8C.js";
|
|
3
3
|
import u from "axios";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import { S as b } from "./severity-DwLpzIij.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@userfrosting/sprinkle-core",
|
|
3
|
-
"version": "6.0.0-
|
|
3
|
+
"version": "6.0.0-rc.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core Sprinkle for UserFrosting",
|
|
6
6
|
"funding": "https://opencollective.com/userfrosting",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"luxon": "^3.5.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"axios": "^1.
|
|
67
|
+
"axios": "^1.16.0",
|
|
68
68
|
"pinia": "^2.1.6",
|
|
69
69
|
"pinia-plugin-persistedstate": "^3.2.0",
|
|
70
70
|
"vue": "^3.4.21",
|