openxiangda-cli 2.0.0-alpha.60 → 2.0.0-alpha.62

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.
Files changed (40) hide show
  1. package/dist/create-workspace.d.ts +1 -0
  2. package/dist/create-workspace.d.ts.map +1 -1
  3. package/dist/create-workspace.js +1 -0
  4. package/dist/create-workspace.js.map +1 -1
  5. package/package.json +4 -4
  6. package/template/AGENTS.md +1 -1
  7. package/template/README.md +7 -7
  8. package/template/apps/server/package.json +1 -1
  9. package/template/apps/server/src/app.module.ts +1 -3
  10. package/template/apps/server/test/smoke.test.ts +6 -23
  11. package/template/apps/web/e2e/resources.spec.ts +20 -0
  12. package/template/apps/web/index.html +1 -1
  13. package/template/apps/web/package.json +1 -1
  14. package/template/apps/web/scripts/check.mjs +5 -2
  15. package/template/apps/web/src/AuthoritativeSelector.tsx +38 -29
  16. package/template/apps/web/src/Shell.tsx +39 -211
  17. package/template/apps/web/src/components/platform-fields/AttachmentFileList.tsx +1 -1
  18. package/template/apps/web/src/components/resource/GeneratedResourceCrud.tsx +306 -0
  19. package/template/apps/web/src/components/resource/StandardResourcePages.tsx +431 -0
  20. package/template/apps/web/src/components/resource/SurfaceFields.tsx +500 -0
  21. package/template/apps/web/src/data-provider.ts +36 -31
  22. package/template/apps/web/src/main.tsx +24 -54
  23. package/template/apps/web/src/platform-client.ts +131 -382
  24. package/template/apps/web/src/runtime-meta.ts +1 -1
  25. package/template/apps/web/src/styles.css +100 -3
  26. package/template/apps/web/test/contracts.test.ts +31 -693
  27. package/template/openxiangda.config.ts +14 -81
  28. package/template/package.json +3 -3
  29. package/template/packages/contracts/src/generated.ts +7 -130
  30. package/template/apps/server/src/instrument-context.controller.ts +0 -25
  31. package/template/apps/web/e2e/instruments.spec.ts +0 -1338
  32. package/template/apps/web/src/CollegePage.tsx +0 -181
  33. package/template/apps/web/src/InstrumentDetailPage.tsx +0 -134
  34. package/template/apps/web/src/InstrumentForm.tsx +0 -575
  35. package/template/apps/web/src/InstrumentFormPage.tsx +0 -117
  36. package/template/apps/web/src/InstrumentListPage.tsx +0 -385
  37. package/template/apps/web/src/fields.ts +0 -83
  38. package/template/apps/web/src/instrument.ts +0 -55
  39. package/template/platform/data/colleges.ts +0 -21
  40. package/template/platform/data/instruments.ts +0 -81
@@ -218,6 +218,103 @@ body {
218
218
  font-size: 12px;
219
219
  }
220
220
 
221
+ .oxa-mobile-page {
222
+ min-height: 100vh;
223
+ box-sizing: border-box;
224
+ background: #f3f7fd;
225
+ padding: 16px;
226
+ }
227
+
228
+ .oxa-mobile-header {
229
+ display: grid;
230
+ gap: 6px;
231
+ margin-bottom: 14px;
232
+ }
233
+
234
+ .oxa-mobile-header .ant-typography {
235
+ margin: 0;
236
+ }
237
+
238
+ .oxa-mobile-form {
239
+ margin-top: 14px;
240
+ }
241
+
242
+ .oxa-mobile-field .ant-form-item-control-input-content {
243
+ min-height: 44px;
244
+ }
245
+
246
+ .oxa-mobile-input {
247
+ width: 100%;
248
+ min-height: 42px;
249
+ box-sizing: border-box;
250
+ border: 1px solid #d9e2f0;
251
+ border-radius: 8px;
252
+ background: #fff;
253
+ padding: 9px 11px;
254
+ color: #172033;
255
+ font: inherit;
256
+ }
257
+
258
+ .oxa-mobile-input:focus {
259
+ border-color: #1677ff;
260
+ outline: 2px solid rgb(22 119 255 / 15%);
261
+ }
262
+
263
+ .oxa-mobile-filter,
264
+ .oxa-mobile-pagination,
265
+ .oxa-mobile-record-heading,
266
+ .oxa-mobile-record-fields {
267
+ display: grid;
268
+ gap: 10px;
269
+ }
270
+
271
+ .oxa-mobile-filter {
272
+ margin: 14px 0;
273
+ }
274
+
275
+ .oxa-mobile-record-list {
276
+ display: grid;
277
+ gap: 12px;
278
+ margin-top: 14px;
279
+ }
280
+
281
+ .oxa-mobile-record-card {
282
+ border-color: #dfe6ef;
283
+ }
284
+
285
+ .oxa-mobile-record-heading {
286
+ grid-template-columns: minmax(0, 1fr) auto;
287
+ align-items: center;
288
+ }
289
+
290
+ .oxa-mobile-record-heading a {
291
+ overflow: hidden;
292
+ color: #1677ff;
293
+ font-size: 16px;
294
+ font-weight: 650;
295
+ text-overflow: ellipsis;
296
+ white-space: nowrap;
297
+ }
298
+
299
+ .oxa-mobile-record-fields {
300
+ grid-template-columns: repeat(2, minmax(0, 1fr));
301
+ margin: 12px 0;
302
+ }
303
+
304
+ .oxa-mobile-record-fields > div {
305
+ min-width: 0;
306
+ }
307
+
308
+ .oxa-mobile-pagination {
309
+ grid-template-columns: 1fr auto 1fr;
310
+ align-items: center;
311
+ margin-top: 14px;
312
+ }
313
+
314
+ .oxa-mobile-pagination .ant-btn:last-child {
315
+ justify-self: end;
316
+ }
317
+
221
318
  .oxa-current-user-chevron {
222
319
  color: #65748a;
223
320
  font-size: 12px;
@@ -294,7 +391,7 @@ body {
294
391
  gap: 16px;
295
392
  }
296
393
 
297
- .oxa-instrument-form {
394
+ .oxa-resource-form {
298
395
  display: grid;
299
396
  gap: 16px;
300
397
  }
@@ -425,7 +522,7 @@ body {
425
522
  gap: 1px;
426
523
  }
427
524
 
428
- .oxa-resolved-college .oxa-resolved-item {
525
+ .oxa-resolved-resource .oxa-resolved-item {
429
526
  border-color: #cfe1ff;
430
527
  background: #eff6ff;
431
528
  color: #155fc7;
@@ -932,7 +1029,7 @@ body {
932
1029
  font-size: 22px;
933
1030
  }
934
1031
 
935
- .oxa-instrument-name.ant-typography {
1032
+ .oxa-resource-name.ant-typography {
936
1033
  margin-bottom: 2px;
937
1034
  font-size: 18px;
938
1035
  }