ShtukbaseStandard
archivo del paquete→ .shtukbase/packages/lenses/kit/examples/base/map.html

kit/examples/base/map.html

68 líneas, 3.1 KB.

El archivo tal como está en el paquete: el código y sus comentarios no se traducen.

  1. <!--
  2. ---
  3. type: Lens
  4. title: Garden map
  5. icon: "🗺️"
  6. description: "Why the garden, the beds, what grows on them and how the plot is arranged, on one canvas"
  7. template: canvas
  8. lensType: map
  9. render: live
  10. sources: [needs.md, "needs/*.md", beds.md, "beds/*.md", plants.md, "plants/*.md", plot.md, "plot/*.md"]
  11. generator: "node apps/standard/packages/lenses/kit/bin/shtukbase-lenses.js build --root apps/standard/packages/lenses/kit/examples/base"
  12. look: atlas
  13. surface: paper
  14. areaMax: 1600
  15. fit: width
  16. mode: short
  17. modes:
  18. - {id: names, label: "Names", card: {sub: false, size: xs, chips: []}}
  19. - {id: short, label: "Short", card: {sub: description, size: s}}
  20. - id: full
  21. label: "Detailed"
  22. card: {sub: statement, size: auto}
  23. columns: "474px max-content max-content"
  24. units: {needs: 4}
  25. layout:
  26. columns: "248px max-content max-content"
  27. areas:
  28. - "needs beds plot"
  29. - "needs growing plot"
  30. regions:
  31. - {id: needs, title: "Why", hint: "why we have a garden", icon: "🎯", color: red, units: 2,
  32. from: /needs, sort: order, card: {sub: description, full: true, art: art, size: s, chips: []}}
  33. - {id: beds, title: "Beds", hint: "the three beds of the garden", icon: "🟫", color: orange, units: 6, hug: true,
  34. from: /beds, sort: order, card: {sub: description, full: true, art: art, size: s, chips: []}}
  35. - id: growing
  36. title: "What grows"
  37. hint: "plants by beds"
  38. icon: "🌱"
  39. color: green
  40. layout: {columns: "248px 248px"}
  41. regions:
  42. - {id: greens, title: "Greens", icon: "🌿", color: green, units: 2,
  43. from: /plants, where: {bed: /beds/greens.md}, sort: order, card: {sub: description, full: true, art: art, size: s, chips: [mark]}}
  44. - {id: rootcrops, title: "Root crops", icon: "🥕", color: green, units: 2,
  45. from: /plants, where: {bed: /beds/roots.md}, sort: order, card: {sub: description, full: true, art: art, size: s, chips: [mark]}}
  46. - {id: plot, title: "Plot", hint: "left to right: what consists of what", icon: "🏡", color: blue, tree: parent,
  47. from: /plot, sort: order, card: {sub: description, full: true, art: art, size: s, chips: []}}
  48. edges:
  49. - {field: servedBy, from: needs, to: beds, label: covered by a bed, color: red}
  50. - {field: bed, from: [greens, rootcrops], to: beds, label: grows on a bed, color: green}
  51. ---
  52. A teaching map of the lens kit: the guide apps/standard/packages/lenses/kit/patterns/map.md goes through it step by step.
  53. On the left is why the garden, on top in the middle the beds, under them the frame "What grows" with two regions, on the right the tree
  54. of the plot by the field "Part of". The "Cards" switch in the side panel changes the view: names, short, detailed.
  55. -->
  56. <!doctype html>
  57. <html lang="en">
  58. <head>
  59. <meta charset="utf-8">
  60. <meta name="viewport" content="width=device-width, initial-scale=1">
  61. <title>Garden map</title>
  62. <link rel="stylesheet" href="lib/kit.css">
  63. <script src="lib/data.js"></script>
  64. <script src="lib/kit.js"></script>
  65. </head>
  66. <body><p class="lx-missing">The lens "Garden map". There is no data yet: build it with the command <code>shtukbase-lenses build</code> in the root of the base.</p></body>
  67. </html>