openxiangda 1.0.149 → 1.0.151
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 +1 -1
- package/openxiangda-skills/SKILL.md +1 -1
- package/openxiangda-skills/references/automation-v3.md +1 -1
- package/openxiangda-skills/references/connector-resources.md +1 -1
- package/openxiangda-skills/references/resource-manifest-cheatsheet.md +2 -2
- package/openxiangda-skills/references/workflow-v3.md +1 -1
- package/openxiangda-skills/skills/openxiangda-workflow-automation/SKILL.md +1 -1
- package/package.json +1 -1
- package/packages/sdk/dist/runtime/index.cjs +308 -40
- package/packages/sdk/dist/runtime/index.cjs.map +1 -1
- package/packages/sdk/dist/runtime/index.d.mts +1 -1
- package/packages/sdk/dist/runtime/index.d.ts +1 -1
- package/packages/sdk/dist/runtime/index.mjs +308 -40
- package/packages/sdk/dist/runtime/index.mjs.map +1 -1
- package/packages/sdk/dist/runtime/react.cjs +296 -28
- package/packages/sdk/dist/runtime/react.cjs.map +1 -1
- package/packages/sdk/dist/runtime/react.d.mts +18 -1
- package/packages/sdk/dist/runtime/react.d.ts +18 -1
- package/packages/sdk/dist/runtime/react.mjs +296 -28
- package/packages/sdk/dist/runtime/react.mjs.map +1 -1
- package/templates/openxiangda-react-spa/src/app/router.tsx +6 -1
- package/templates/sy-lowcode-app-workspace/examples/best-practices/src/js-code-nodes/sync_roles_to_platform/index.ts +1 -1
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
OpenXiangdaPageProvider,
|
|
12
12
|
OpenXiangdaProvider,
|
|
13
13
|
PublicAccessGate,
|
|
14
|
+
RuntimeAuthGuard,
|
|
14
15
|
} from "openxiangda/runtime/react";
|
|
15
16
|
|
|
16
17
|
import { AdminShell } from "@/layouts/AdminShell";
|
|
@@ -122,7 +123,11 @@ export const router = createBrowserRouter([
|
|
|
122
123
|
},
|
|
123
124
|
{
|
|
124
125
|
path: "admin",
|
|
125
|
-
element:
|
|
126
|
+
element: (
|
|
127
|
+
<RuntimeAuthGuard>
|
|
128
|
+
<AdminShell />
|
|
129
|
+
</RuntimeAuthGuard>
|
|
130
|
+
),
|
|
126
131
|
children: [
|
|
127
132
|
{ index: true, element: <AdminDashboardPage /> },
|
|
128
133
|
{ path: "data/:formUuid", element: routeElement(<DataRoutePage />) },
|
|
@@ -21,7 +21,7 @@ export default async function syncRolesToPlatform(ctx: any) {
|
|
|
21
21
|
for (const row of rows) {
|
|
22
22
|
const roleCode = String(row.roleCode || "").trim().toLowerCase();
|
|
23
23
|
if (!roleCode) continue;
|
|
24
|
-
await ctx.platform.api.post(
|
|
24
|
+
await ctx.platform.api.post(`apps/${appType}/roles`, {
|
|
25
25
|
code: roleCode,
|
|
26
26
|
name: row.roleName || roleCode,
|
|
27
27
|
description: "由业务角色维护表同步",
|