create-windy 0.2.10 → 0.2.11

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/cli.js CHANGED
@@ -4006,7 +4006,8 @@ var recipes = [
4006
4006
  { id: "starter-0.2.6-to-0.2.7", from: "0.2.6", to: "0.2.7" },
4007
4007
  { id: "starter-0.2.7-to-0.2.8", from: "0.2.7", to: "0.2.8" },
4008
4008
  { id: "starter-0.2.8-to-0.2.9", from: "0.2.8", to: "0.2.9" },
4009
- { id: "starter-0.2.9-to-0.2.10", from: "0.2.9", to: "0.2.10" }
4009
+ { id: "starter-0.2.9-to-0.2.10", from: "0.2.9", to: "0.2.10" },
4010
+ { id: "starter-0.2.10-to-0.2.11", from: "0.2.10", to: "0.2.11" }
4010
4011
  ];
4011
4012
  function resolveRecipeChain(sourceVersion, targetVersion) {
4012
4013
  if (sourceVersion === targetVersion)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-windy",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "创建单组织、单租户、私有部署优先的 Windy 企业 Dashboard Starter",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "templateCommit": "652e485ee74518b544f3cacaa20b917667e29970",
4
- "generatorVersion": "0.2.10",
3
+ "templateCommit": "3be52627976c276e8dafafa6bfd2c23ab10fd908",
4
+ "generatorVersion": "0.2.11",
5
5
  "modules": [
6
6
  {
7
7
  "name": "system",
@@ -15,7 +15,10 @@ import {
15
15
  import type { ResourceColumn, ResourceInlineToggle } from "../resource-config";
16
16
  import type { SystemRecord } from "@/services/system-api";
17
17
  import { formatDateTime } from "@/lib/date-time";
18
- import { AUDIT_ACTION_DEFINITIONS } from "@southwind-ai/shared";
18
+ import {
19
+ AUDIT_ACTION_DEFINITIONS,
20
+ LICENSE_CATALOG,
21
+ } from "@southwind-ai/shared";
19
22
  import { useAccessSnapshot } from "@/composables/useAccessSnapshot";
20
23
  import {
21
24
  Tooltip,
@@ -108,10 +111,8 @@ function formatLicensePolicy(item: SystemRecord): string {
108
111
  }
109
112
 
110
113
  function licenseVersionLabel(version: string): string {
111
- return (
112
- access.snapshot.value?.licenseCatalog?.find(({ key }) => key === version)
113
- ?.label || version
114
- );
114
+ const catalog = access.snapshot.value?.licenseCatalog || LICENSE_CATALOG;
115
+ return catalog.find(({ key }) => key === version)?.label || version;
115
116
  }
116
117
  </script>
117
118