@thestarweb/star-framework-app-web-vue 1.0.17 → 1.1.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/CHANGELOG.md +7 -0
- package/dist/data-context/base-url.js +3 -3
- package/dist/data-context/base-url.js.map +1 -1
- package/dist/data-context/index.js +2 -1
- package/dist/data-context/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/data-context/base-url.ts +3 -3
- package/src/data-context/index.ts +4 -1
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.1.0](https://github.com/star-ss-qaq/star-node-framework/compare/%40thestarweb%2Fstar-framework-app-web-vue%401.0.17...%40thestarweb%2Fstar-framework-app-web-vue%401.1.0) (2026-11-25)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **app-web:** 优化prefix ([d639262](https://github.com/star-ss-qaq/star-node-framework/commit/d6392622222acdb67b448f6ebe0d0e0e48a7f3a9))
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
## [1.0.17](https://github.com/star-ss-qaq/star-node-framework/compare/%40thestarweb%2Fstar-framework-app-web-vue%401.0.16...%40thestarweb%2Fstar-framework-app-web-vue%401.0.17) (2026-11-25)
|
|
7
14
|
|
|
8
15
|
**Note:** Version bump only for package @thestarweb/star-framework-app-web-vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createSystemProvide } from "./context-helper.js";
|
|
2
|
-
const base = createSystemProvide("
|
|
3
|
-
export const
|
|
4
|
-
export const
|
|
2
|
+
const base = createSystemProvide("prefix", "/");
|
|
3
|
+
export const providePrefix = base.provide;
|
|
4
|
+
export const usePrefix = base.use;
|
|
5
5
|
//# sourceMappingURL=base-url.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-url.js","sourceRoot":"","sources":["../../src/data-context/base-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,IAAI,GAAG,mBAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"base-url.js","sourceRoot":"","sources":["../../src/data-context/base-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,IAAI,GAAG,mBAAmB,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AAChD,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC;AAC1C,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC"}
|
|
@@ -5,11 +5,12 @@ function __assignType(fn, args) {
|
|
|
5
5
|
provideSystemContext.__type = ['RenderDataContext', 'context', 'App', 'app', 'provideSystemContext', 'P"w!2""w#2$"/%'];
|
|
6
6
|
import { provideRequest } from "./request.js";
|
|
7
7
|
import { provideRoute } from "./route.js";
|
|
8
|
+
import { providePrefix } from "./base-url.js";
|
|
8
9
|
export * from "./context-helper.js";
|
|
9
10
|
export * from "./route.js";
|
|
10
11
|
export * from "./request.js";
|
|
11
12
|
export * from "./base-url.js";
|
|
12
13
|
export function provideSystemContext(context, app) {
|
|
13
|
-
[provideRoute, provideRequest].forEach(__assignType((fn) => fn(context, app), ['fn', '', 'P"2!"/"']));
|
|
14
|
+
[provideRoute, provideRequest, providePrefix].forEach(__assignType((fn) => fn(context, app), ['fn', '', 'P"2!"/"']));
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data-context/index.ts"],"names":[],"mappings":";;;;;AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data-context/index.ts"],"names":[],"mappings":";;;;;AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAE9B,MAAM,UAAU,oBAAoB,CAAC,OAA0B,EAAE,GAAQ;IACxE,CAAC,YAAY,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC,OAAO,cAAC,CAAC,EAAE,EAAE,EAAE,CAC5D,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,yBAChB,CAAC;AACH,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./render.js";
|
|
2
2
|
// @side-only server
|
|
3
3
|
export * from "./cli/index.js";
|
|
4
|
-
export { useRoute, useRequest,
|
|
4
|
+
export { useRoute, useRequest, usePrefix } from "./data-context/index.js";
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,oBAAoB;AACpB,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,oBAAoB;AACpB,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thestarweb/star-framework-app-web-vue",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Star Framework Web App VUE plugin",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"test": "vitest"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@thestarweb/star-framework-app-web": "^1.
|
|
21
|
+
"@thestarweb/star-framework-app-web": "^1.3.0",
|
|
22
22
|
"@thestarweb/star-framework-utils": "^1.0.5",
|
|
23
23
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
24
24
|
"tslib": "^2.8.1"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
41
|
"license": "ISC",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "925725cb91c4b0636242fff9540521ca3329fe83"
|
|
43
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createSystemProvide } from "./context-helper.js";
|
|
2
2
|
|
|
3
|
-
const base = createSystemProvide("
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
3
|
+
const base = createSystemProvide("prefix", "/");
|
|
4
|
+
export const providePrefix = base.provide;
|
|
5
|
+
export const usePrefix = base.use;
|
|
@@ -2,6 +2,7 @@ import { type RenderDataContext } from "@thestarweb/star-framework-app-web";
|
|
|
2
2
|
import { provideRequest } from "./request.js";
|
|
3
3
|
import { App } from "vue";
|
|
4
4
|
import { provideRoute } from "./route.js";
|
|
5
|
+
import { providePrefix } from "./base-url.js";
|
|
5
6
|
|
|
6
7
|
export * from "./context-helper.js";
|
|
7
8
|
export * from "./route.js";
|
|
@@ -9,5 +10,7 @@ export * from "./request.js";
|
|
|
9
10
|
export * from "./base-url.js";
|
|
10
11
|
|
|
11
12
|
export function provideSystemContext(context: RenderDataContext, app: App) {
|
|
12
|
-
[provideRoute, provideRequest].forEach((fn) =>
|
|
13
|
+
[provideRoute, provideRequest, providePrefix].forEach((fn) =>
|
|
14
|
+
fn(context, app),
|
|
15
|
+
);
|
|
13
16
|
}
|
package/src/index.ts
CHANGED