@directus/app 9.9.0 → 9.9.1

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 (338) hide show
  1. package/dist/assets/@directus_extensions-sdk.b16f3f9c.entry.js +1 -0
  2. package/dist/assets/accounts.5e4228ef.js +1 -0
  3. package/dist/assets/{active-line.6bbf91fb.js → active-line.c47b5f35.js} +1 -1
  4. package/dist/assets/{activity-log.53df200b.js → activity-log.05fbb6b2.js} +1 -1
  5. package/dist/assets/{activity.6947e1ed.js → activity.9ac0d92d.js} +1 -1
  6. package/dist/assets/{apl.e1278c87.js → apl.44b147a4.js} +1 -1
  7. package/dist/assets/{asciiarmor.d92435b7.js → asciiarmor.d9d1a74a.js} +1 -1
  8. package/dist/assets/{asn.1.2857fc96.js → asn.1.0bedcc18.js} +1 -1
  9. package/dist/assets/{asterisk.75e8ba21.js → asterisk.9e1e2b5c.js} +1 -1
  10. package/dist/assets/{authentication.47c00f3d.js → authentication.f55a38e7.js} +1 -1
  11. package/dist/assets/{autorefresh.09bfc818.js → autorefresh.bb3b714c.js} +1 -1
  12. package/dist/assets/{aws.de0c0245.js → aws.1b5dfcb9.js} +1 -1
  13. package/dist/assets/{backing-directus.88171fee.js → backing-directus.6688e1d8.js} +1 -1
  14. package/dist/assets/bg-BG.ac12438e.js +2 -0
  15. package/dist/assets/{brainfuck.a016239b.js → brainfuck.9f0e8180.js} +1 -1
  16. package/dist/assets/{cli.4e8add05.js → cli.0ca53593.js} +1 -1
  17. package/dist/assets/{cli.89ce48e4.js → cli.7b4e2953.js} +1 -1
  18. package/dist/assets/{clike.15e906e9.js → clike.99cd0401.js} +1 -1
  19. package/dist/assets/{clojure.b0de4658.js → clojure.1faf0a0a.js} +1 -1
  20. package/dist/assets/{cloudron.fe5d63bb.js → cloudron.e59a593d.js} +1 -1
  21. package/dist/assets/{cmake.9a27cfee.js → cmake.cfb44e0d.js} +1 -1
  22. package/dist/assets/{cobol.c3f5c63a.js → cobol.94e4970e.js} +1 -1
  23. package/dist/assets/{codebase-overview.1e599f59.js → codebase-overview.2a6823b1.js} +1 -1
  24. package/dist/assets/{coffeescript.761ef50a.js → coffeescript.c48d036c.js} +1 -1
  25. package/dist/assets/{collections.463715a2.js → collections.315f4d8c.js} +1 -1
  26. package/dist/assets/collections.709f5818.js +2 -0
  27. package/dist/assets/{commonlisp.231b0519.js → commonlisp.38e77db1.js} +1 -1
  28. package/dist/assets/{config-options.2736d5bd.js → config-options.09a44368.js} +1 -1
  29. package/dist/assets/content.8dfe4d0f.js +1 -0
  30. package/dist/assets/{creating-extensions.9724777a.js → creating-extensions.0c8abfa1.js} +1 -1
  31. package/dist/assets/{crystal.2b86a02f.js → crystal.797d41f8.js} +1 -1
  32. package/dist/assets/{css.643fd125.js → css.4143f596.js} +1 -1
  33. package/dist/assets/{cypher.b6cd34c8.js → cypher.b8b073de.js} +2 -2
  34. package/dist/assets/{d.79974865.js → d.1d4ff6fe.js} +1 -1
  35. package/dist/assets/da-DK.6750ac06.js +1 -0
  36. package/dist/assets/{dart.2b047faf.js → dart.09b87006.js} +1 -1
  37. package/dist/assets/{data-model.118e1717.js → data-model.3e1183a6.js} +1 -1
  38. package/dist/assets/{data-sharing.816eb372.js → data-sharing.17c81a27.js} +1 -1
  39. package/dist/assets/de-DE.b11ba39d.js +1 -0
  40. package/dist/assets/{diff.b48d7234.js → diff.5151f967.js} +1 -1
  41. package/dist/assets/{digitalocean-app-platform.b190b883.js → digitalocean-app-platform.05c4c314.js} +1 -1
  42. package/dist/assets/{displays.3a307d23.js → displays.f0798610.js} +1 -1
  43. package/dist/assets/{django.00c70387.js → django.25ec1935.js} +1 -1
  44. package/dist/assets/{docker.8baa0007.js → docker.50e94433.js} +1 -1
  45. package/dist/assets/{dockerfile.ce5f82bf.js → dockerfile.cabedb31.js} +1 -1
  46. package/dist/assets/{documentation.dbed6912.js → documentation.1ed9f7a2.js} +1 -1
  47. package/dist/assets/{dtd.9325a71e.js → dtd.82e83b59.js} +1 -1
  48. package/dist/assets/{dylan.cbeabfca.js → dylan.9c51410f.js} +1 -1
  49. package/dist/assets/{ebnf.44341bfa.js → ebnf.ae5c413a.js} +1 -1
  50. package/dist/assets/{ecl.af27a747.js → ecl.c4cb88ea.js} +1 -1
  51. package/dist/assets/{eiffel.f67e2e9c.js → eiffel.353baac9.js} +1 -1
  52. package/dist/assets/{elm.8233aaa9.js → elm.bd4624df.js} +1 -1
  53. package/dist/assets/{email-templates.b00d05fb.js → email-templates.f9a5e9df.js} +2 -2
  54. package/dist/assets/{endpoints.e2ce5f17.js → endpoints.33794f8d.js} +2 -2
  55. package/dist/assets/{erlang.ab89130e.js → erlang.9dbc839d.js} +1 -1
  56. package/dist/assets/{extensions.51436697.js → extensions.de24a384.js} +1 -1
  57. package/dist/assets/{fa-IR.1fe08a4a.js → fa-IR.e1677687.js} +1 -1
  58. package/dist/assets/{factor.52bac3a6.js → factor.c11b1d46.js} +1 -1
  59. package/dist/assets/{faq.935a706b.js → faq.ac13aeaa.js} +1 -1
  60. package/dist/assets/{fcl.dfe77506.js → fcl.a5a5f935.js} +1 -1
  61. package/dist/assets/{fields.be40c23b.js → fields.bc105e57.js} +8 -8
  62. package/dist/assets/{file-library.8fb8619c.js → file-library.bc6397f9.js} +1 -1
  63. package/dist/assets/{files.85bdd938.js → files.18ebb2c6.js} +1 -1
  64. package/dist/assets/{filter-rules.024e541c.js → filter-rules.0cd75320.js} +1 -1
  65. package/dist/assets/{filters.7dc92551.js → filters.ce249fa9.js} +1 -1
  66. package/dist/assets/{folders.320547cb.js → folders.8f839f67.js} +1 -1
  67. package/dist/assets/{forth.40fb17ec.js → forth.2a48338c.js} +1 -1
  68. package/dist/assets/{fortran.c4d99723.js → fortran.39a5d2da.js} +1 -1
  69. package/dist/assets/{gas.a1476537.js → gas.2be39a3b.js} +1 -1
  70. package/dist/assets/{gcp.8cbf4c5f.js → gcp.f6eca353.js} +1 -1
  71. package/dist/assets/{gfm.936c4c99.js → gfm.8e609735.js} +1 -1
  72. package/dist/assets/{gherkin.04587d07.js → gherkin.7379fdd0.js} +1 -1
  73. package/dist/assets/{github-ci.f546ec05.js → github-ci.35b5d221.js} +1 -1
  74. package/dist/assets/{glossary.277f4a7a.js → glossary.0bfb8dee.js} +1 -1
  75. package/dist/assets/glossary.50f82640.js +1 -0
  76. package/dist/assets/{go.cd420c08.js → go.57e9d20a.js} +1 -1
  77. package/dist/assets/{groovy.313bf71b.js → groovy.0164fcf3.js} +1 -1
  78. package/dist/assets/{haml.a80d61e3.js → haml.9baa3f10.js} +1 -1
  79. package/dist/assets/{handlebars.7dafd88d.js → handlebars.2ca50502.js} +1 -1
  80. package/dist/assets/{haskell-literate.b319f491.js → haskell-literate.d6ca9fd0.js} +1 -1
  81. package/dist/assets/{haskell.e42a7cfa.js → haskell.bc6c4772.js} +1 -1
  82. package/dist/assets/{haxe.09aa5393.js → haxe.478e9912.js} +1 -1
  83. package/dist/assets/{hooks.aa5c59e4.js → hooks.3d981c49.js} +3 -3
  84. package/dist/assets/{htmlembedded.15b0cc02.js → htmlembedded.62531935.js} +1 -1
  85. package/dist/assets/{htmlmixed.6fb46fc5.js → htmlmixed.634bf459.js} +1 -1
  86. package/dist/assets/{http.9728e5fb.js → http.67a323b7.js} +1 -1
  87. package/dist/assets/{idl.a67cc49d.js → idl.8238e552.js} +1 -1
  88. package/dist/assets/{iis.7dcc60ab.js → iis.f17cd9e8.js} +1 -1
  89. package/dist/assets/import-export.37729346.js +2 -0
  90. package/dist/assets/{index.e6f59818.js → index.03e82d0f.js} +1 -1
  91. package/dist/assets/{index.21a9834f.js → index.0898ffcc.js} +1 -1
  92. package/dist/assets/{index.a1b5c958.js → index.17aaf60e.js} +1 -1
  93. package/dist/assets/{index.75a8cc02.js → index.199627f2.js} +1 -1
  94. package/dist/assets/{index.89eeb36a.js → index.1f8cd33b.js} +1 -1
  95. package/dist/assets/{index.6605d006.js → index.20d232c4.js} +1 -1
  96. package/dist/assets/{index.61b89348.js → index.2ade6f4c.js} +1 -1
  97. package/dist/assets/{index.5a794321.js → index.2b376698.js} +1 -1
  98. package/dist/assets/{index.cb5110f9.js → index.2eae8e43.js} +1 -1
  99. package/dist/assets/{index.0506eaa6.js → index.3018ece6.js} +1 -1
  100. package/dist/assets/{index.3b0742fc.js → index.370f33b2.js} +1 -1
  101. package/dist/assets/{index.685bce47.js → index.39fac911.js} +1 -1
  102. package/dist/assets/{index.8a8407be.js → index.3a3a3436.js} +1 -1
  103. package/dist/assets/{index.fb18b52c.js → index.3fcc5be7.js} +1 -1
  104. package/dist/assets/{index.07cfe1c3.js → index.3fd307c9.js} +1 -1
  105. package/dist/assets/{index.171b6af1.js → index.47c4a06c.js} +1 -1
  106. package/dist/assets/{index.96312f2c.js → index.4d327518.js} +1 -1
  107. package/dist/assets/{index.c8dc6ca5.js → index.5225bff7.js} +1 -1
  108. package/dist/assets/{index.6cf34799.js → index.52478625.js} +1 -1
  109. package/dist/assets/{index.157c8d64.js → index.524bdca1.js} +1 -1
  110. package/dist/assets/{index.eaf464e6.js → index.54056858.js} +1 -1
  111. package/dist/assets/{index.4ec78136.js → index.5836bfd3.js} +1 -1
  112. package/dist/assets/index.5ca402ee.css +1 -0
  113. package/dist/assets/{index.97e65647.js → index.5f8f7e76.js} +1 -1
  114. package/dist/assets/{index.b483240d.js → index.6146ee27.js} +1 -1
  115. package/dist/assets/{index.88920074.js → index.61ee2548.js} +1 -1
  116. package/dist/assets/{index.c703aee9.js → index.66ad62bb.js} +1 -1
  117. package/dist/assets/{index.610c9151.js → index.66e22b6f.js} +1 -1
  118. package/dist/assets/{index.a315ecd2.js → index.69b05a1e.js} +1 -1
  119. package/dist/assets/{index.15d7886b.js → index.6a8f8e56.js} +1 -1
  120. package/dist/assets/{index.21c3f865.js → index.6b991ff5.js} +1 -1
  121. package/dist/assets/{index.b186fde0.js → index.6c1cd895.js} +1 -1
  122. package/dist/assets/{index.5fc64b2a.js → index.6e68ad3a.js} +1 -1
  123. package/dist/assets/{index.018dcc11.js → index.6f987d91.js} +1 -1
  124. package/dist/assets/{index.a5a4912c.js → index.6fd7572a.js} +1 -1
  125. package/dist/assets/{index.98d878f1.js → index.709876ee.js} +1 -1
  126. package/dist/assets/{index.a91c6b45.js → index.71c27623.js} +1 -1
  127. package/dist/assets/{index.13f5fe5f.js → index.72f04310.js} +1 -1
  128. package/dist/assets/{index.685424cd.js → index.73cf06c6.js} +1 -1
  129. package/dist/assets/{index.c3784752.js → index.74831233.js} +1 -1
  130. package/dist/assets/{index.f9cd3880.js → index.74a3bead.js} +1 -1
  131. package/dist/assets/{index.45da29ab.js → index.7910f707.js} +1 -1
  132. package/dist/assets/{index.63ee3afa.js → index.840dec92.js} +1 -1
  133. package/dist/assets/{index.389b94c8.js → index.897edae9.js} +1 -1
  134. package/dist/assets/{index.64de2009.js → index.8c02ccc9.js} +1 -1
  135. package/dist/assets/{index.83fd5341.js → index.8cb5cecc.js} +1 -1
  136. package/dist/assets/{index.e9b7ab4d.js → index.8d30a9b7.js} +1 -1
  137. package/dist/assets/{index.d883fc0c.js → index.93145a08.js} +1 -1
  138. package/dist/assets/{index.513e0ab5.js → index.946634f1.js} +1 -1
  139. package/dist/assets/{index.7d29bb6a.js → index.94c37923.js} +1 -1
  140. package/dist/assets/{index.46b7778c.js → index.99a868e4.js} +1 -1
  141. package/dist/assets/{index.a10b94b2.js → index.9a02c131.js} +1 -1
  142. package/dist/assets/{index.3d78c763.js → index.9a4eb005.js} +1 -1
  143. package/dist/assets/{index.724a695d.js → index.9bc985db.js} +4 -4
  144. package/dist/assets/{index.2fc2fbc9.js → index.9c32a380.js} +1 -1
  145. package/dist/assets/{index.6001ef1f.js → index.9f82e3be.js} +1 -1
  146. package/dist/assets/{index.97a18cb3.js → index.a3ff4cef.js} +1 -1
  147. package/dist/assets/{index.ff6caf93.js → index.a40ba614.js} +1 -1
  148. package/dist/assets/{index.80450287.js → index.a453d122.js} +1 -1
  149. package/dist/assets/{index.ca8764c7.js → index.a585d6b9.js} +1 -1
  150. package/dist/assets/{index.2f6f0c07.js → index.aba657de.js} +1 -1
  151. package/dist/assets/{index.59ae5d0f.js → index.b7eb2760.js} +1 -1
  152. package/dist/assets/{index.cd6a933f.js → index.b90a9a9e.js} +1 -1
  153. package/dist/assets/{index.e02e0d28.js → index.c62b6868.js} +1 -1
  154. package/dist/assets/{index.6af4ce1f.js → index.c6614b22.js} +1 -1
  155. package/dist/assets/{index.e27e5b8a.js → index.ced9e6c4.js} +1 -1
  156. package/dist/assets/{index.c3791f49.js → index.d05c258f.js} +1 -1
  157. package/dist/assets/{index.7ed0bfe9.js → index.d4b072f4.js} +1 -1
  158. package/dist/assets/{index.a88be96b.js → index.d67df067.js} +1 -1
  159. package/dist/assets/index.dd44fb28.entry.js +541 -0
  160. package/dist/assets/{index.46b3c602.js → index.e02bc037.js} +1 -1
  161. package/dist/assets/{index.9e8d6925.js → index.e420cfa9.js} +1 -1
  162. package/dist/assets/{index.0caa9081.js → index.e4d21fbc.js} +1 -1
  163. package/dist/assets/{index.3dbbaf52.js → index.e503db08.js} +1 -1
  164. package/dist/assets/{index.3c08b982.js → index.e56bb3bf.js} +1 -1
  165. package/dist/assets/{index.97668bbf.js → index.e6b36791.js} +1 -1
  166. package/dist/assets/{index.cc5ad547.js → index.e9dcaf1e.js} +1 -1
  167. package/dist/assets/{index.b4a92868.js → index.ea7d7704.js} +1 -1
  168. package/dist/assets/{index.b88de3ae.js → index.eaede45c.js} +1 -1
  169. package/dist/assets/{index.4456c277.js → index.eca0f639.js} +1 -1
  170. package/dist/assets/{index.7f5ed078.js → index.f64580fa.js} +1 -1
  171. package/dist/assets/{index.ae9a5fb4.js → index.fd99a2e6.js} +1 -1
  172. package/dist/assets/{index.a9aa6205.js → index.fd9a5f6e.js} +1 -1
  173. package/dist/assets/{input-rich-text-html.f36d783f.js → input-rich-text-html.d4c2e2cf.js} +32 -32
  174. package/dist/assets/{input-rich-text-html.be7d2388.css → input-rich-text-html.e6c9da69.css} +1 -1
  175. package/dist/assets/{insights.f4b71ab3.js → insights.4db4d732.js} +1 -1
  176. package/dist/assets/{installation.2d8a8652.js → installation.268919de.js} +1 -1
  177. package/dist/assets/{interfaces.c83b17eb.js → interfaces.c498302c.js} +3 -3
  178. package/dist/assets/{introduction.bacd0561.js → introduction.83bcfc15.js} +1 -1
  179. package/dist/assets/{introduction.49afd7d0.js → introduction.c10f10d3.js} +1 -1
  180. package/dist/assets/{introduction.f8521883.js → introduction.c5e5e21e.js} +1 -1
  181. package/dist/assets/{introduction.9fd81346.js → introduction.d6821907.js} +1 -1
  182. package/dist/assets/it-IT.c7c56676.js +1 -0
  183. package/dist/assets/items.5732b18d.js +1 -0
  184. package/dist/assets/{items.e40513d2.js → items.b0a4ab61.js} +1 -1
  185. package/dist/assets/{javascript-hint.43d87191.js → javascript-hint.7ae21fbe.js} +1 -1
  186. package/dist/assets/{javascript.95ea34e5.js → javascript.4f51ecf0.js} +1 -1
  187. package/dist/assets/{jinja2.7c722e68.js → jinja2.9bf9144f.js} +1 -1
  188. package/dist/assets/{jsx.0c14c29e.js → jsx.a7b4e734.js} +1 -1
  189. package/dist/assets/{julia.99fcb669.js → julia.5461c3cc.js} +1 -1
  190. package/dist/assets/layouts.c0d4d117.js +1 -0
  191. package/dist/assets/{layouts.f954ab28.js → layouts.effabdf0.js} +1 -1
  192. package/dist/assets/{livescript.6a0081fc.js → livescript.7b500566.js} +1 -1
  193. package/dist/assets/{localization.2d59121a.js → localization.be7f565c.js} +1 -1
  194. package/dist/assets/{lua.fb9bace7.js → lua.00c71164.js} +1 -1
  195. package/dist/assets/{manual.2832d043.js → manual.1c389d8b.js} +3 -3
  196. package/dist/assets/{mark-selection.86d150aa.js → mark-selection.97d7037b.js} +1 -1
  197. package/dist/assets/{match-highlighter.248bdfe3.js → match-highlighter.a02da4f0.js} +1 -1
  198. package/dist/assets/{mathematica.72fe85ec.js → mathematica.8f6aa856.js} +1 -1
  199. package/dist/assets/{mbox.0c468b08.js → mbox.fd92e018.js} +1 -1
  200. package/dist/assets/{migrations.9453b678.js → migrations.362ff4f6.js} +1 -1
  201. package/dist/assets/{mirc.e2eda47f.js → mirc.fdf10b1b.js} +1 -1
  202. package/dist/assets/{mllike.40e2af87.js → mllike.6f004a2c.js} +1 -1
  203. package/dist/assets/{modelica.fd7f5524.js → modelica.cbd88d45.js} +1 -1
  204. package/dist/assets/{modules.8036e25b.js → modules.b091090c.js} +1 -1
  205. package/dist/assets/{mscgen.5dfb9d6d.js → mscgen.14353b86.js} +1 -1
  206. package/dist/assets/{multiplex.84790171.js → multiplex.cd44ee19.js} +1 -1
  207. package/dist/assets/{mumps.f303daa2.js → mumps.efe96b5e.js} +1 -1
  208. package/dist/assets/{nginx.3aeb34e2.js → nginx.96c9c4df.js} +1 -1
  209. package/dist/assets/{notifications.997cf62b.js → notifications.3e5cfc89.js} +1 -1
  210. package/dist/assets/{nsis.f5b95ae5.js → nsis.55581ab2.js} +1 -1
  211. package/dist/assets/{ntriples.5776c71b.js → ntriples.aca0fe40.js} +1 -1
  212. package/dist/assets/{octave.dc062387.js → octave.62945644.js} +1 -1
  213. package/dist/assets/{overlay.a7fd1141.js → overlay.2efdf812.js} +1 -1
  214. package/dist/assets/{overview.3cb4afdc.js → overview.332df7ba.js} +1 -1
  215. package/dist/assets/{overview.1ff1c87d.js → overview.dfc729e7.js} +1 -1
  216. package/dist/assets/overview.fb04e55f.js +1 -0
  217. package/dist/assets/{oz.386b3e46.js → oz.c7a6ef55.js} +1 -1
  218. package/dist/assets/{panels.ea3ae2f7.js → panels.93ebd845.js} +1 -1
  219. package/dist/assets/{pascal.41299bfd.js → pascal.9f427f36.js} +1 -1
  220. package/dist/assets/{pegjs.48382749.js → pegjs.f95b4e7c.js} +1 -1
  221. package/dist/assets/{perl.f0945fb0.js → perl.157b1d6a.js} +1 -1
  222. package/dist/assets/{permissions.a9f997e9.js → permissions.3a997b1b.js} +1 -1
  223. package/dist/assets/{php.3cebc8fd.js → php.45aaf3ff.js} +1 -1
  224. package/dist/assets/{pig.60461179.js → pig.abf158b5.js} +1 -1
  225. package/dist/assets/pinia.b0a7f3a9.entry.js +1 -0
  226. package/dist/assets/{pl-PL.b64bb4c6.js → pl-PL.369789f9.js} +1 -1
  227. package/dist/assets/{plesk.1c0cdc6c.js → plesk.93413565.js} +1 -1
  228. package/dist/assets/{powershell.069f8b6a.js → powershell.c8483dfa.js} +1 -1
  229. package/dist/assets/{presets-bookmarks.c79e514b.js → presets-bookmarks.821ff603.js} +1 -1
  230. package/dist/assets/{presets.17a36c3f.js → presets.e40c980c.js} +1 -1
  231. package/dist/assets/{project-settings.3c79eba5.js → project-settings.990a7733.js} +1 -1
  232. package/dist/assets/projects.8446f9e0.js +1 -0
  233. package/dist/assets/{properties.64766cf8.js → properties.9746447f.js} +1 -1
  234. package/dist/assets/{protobuf.eb9545c9.js → protobuf.da387992.js} +1 -1
  235. package/dist/assets/{pug.7574d837.js → pug.799b8b48.js} +1 -1
  236. package/dist/assets/{puppet.db905457.js → puppet.50c5f4a8.js} +1 -1
  237. package/dist/assets/{python.02eff423.js → python.24183ff4.js} +1 -1
  238. package/dist/assets/{q.66027833.js → q.a6bde20d.js} +1 -1
  239. package/dist/assets/{query.2dd7bdcf.js → query.0b8a58bf.js} +1 -1
  240. package/dist/assets/{quickstart.c3e1b244.js → quickstart.c03909d1.js} +1 -1
  241. package/dist/assets/{r.cac68cee.js → r.5ef93882.js} +1 -1
  242. package/dist/assets/{relations.47d0f3eb.js → relations.3075f46c.js} +1 -1
  243. package/dist/assets/{relationships.83d3827b.js → relationships.799d5eb1.js} +1 -1
  244. package/dist/assets/{revisions.ae53c876.js → revisions.0fdeffdb.js} +2 -2
  245. package/dist/assets/{ro-RO.e90ce157.js → ro-RO.26d41bde.js} +1 -1
  246. package/dist/assets/{roles.89a9f17e.js → roles.454d01a2.js} +1 -1
  247. package/dist/assets/{rpm.3646a7b5.js → rpm.dc7eb8c7.js} +1 -1
  248. package/dist/assets/rst.c0f0c052.js +1 -0
  249. package/dist/assets/{ruby.6b26f9ed.js → ruby.5f2c5d49.js} +1 -1
  250. package/dist/assets/{running-locally.1375752e.js → running-locally.b169fd6b.js} +1 -1
  251. package/dist/assets/{rust.81523550.js → rust.cb883a51.js} +1 -1
  252. package/dist/assets/{sas.4cb2d15a.js → sas.d4698414.js} +1 -1
  253. package/dist/assets/{sass.d12ac852.js → sass.2a5b4ded.js} +1 -1
  254. package/dist/assets/{scheme.b03f0aaa.js → scheme.03cb579f.js} +1 -1
  255. package/dist/assets/{sdk.2fc84efb.js → sdk.b30c40c3.js} +1 -1
  256. package/dist/assets/{security.4d0d72b1.js → security.bb444305.js} +1 -1
  257. package/dist/assets/{server.5bd847b0.js → server.96d2684f.js} +1 -1
  258. package/dist/assets/{settings.031b3a38.js → settings.590609ba.js} +1 -1
  259. package/dist/assets/{settings.7eccffc9.js → settings.6ee8ba3d.js} +1 -1
  260. package/dist/assets/{shell.7b49bfc1.js → shell.823d1fdc.js} +1 -1
  261. package/dist/assets/{show-hint.86339a62.js → show-hint.ed75f164.js} +1 -1
  262. package/dist/assets/{sieve.a5a26641.js → sieve.ca0810e1.js} +1 -1
  263. package/dist/assets/{simple.c622d8f9.js → simple.6f7c2241.js} +1 -1
  264. package/dist/assets/{slim.f3ea8ff0.js → slim.6963eba3.js} +1 -1
  265. package/dist/assets/{smalltalk.56194f87.js → smalltalk.e8a89293.js} +1 -1
  266. package/dist/assets/{smarty.4e6d88d2.js → smarty.c1c7c7b6.js} +1 -1
  267. package/dist/assets/{solr.a43eac68.js → solr.d56d44ed.js} +1 -1
  268. package/dist/assets/{soy.283d449e.js → soy.73095779.js} +1 -1
  269. package/dist/assets/{sparql.4cebd3ac.js → sparql.3250c390.js} +1 -1
  270. package/dist/assets/{spreadsheet.ef6314d6.js → spreadsheet.502aed5e.js} +1 -1
  271. package/dist/assets/{sql.47341a68.js → sql.2669a728.js} +1 -1
  272. package/dist/assets/{sso.add8d47b.js → sso.3e95ead4.js} +3 -3
  273. package/dist/assets/{stex.e1b5f235.js → stex.805ccf9b.js} +1 -1
  274. package/dist/assets/{stylus.d3df3258.js → stylus.7a36e1a2.js} +1 -1
  275. package/dist/assets/{support.377697d0.js → support.53f88829.js} +1 -1
  276. package/dist/assets/{swift.ca59c50a.js → swift.8e6dedf9.js} +1 -1
  277. package/dist/assets/{tcl.fe2a837f.js → tcl.218bb297.js} +1 -1
  278. package/dist/assets/teams.2936126f.js +1 -0
  279. package/dist/assets/{textile.ee8dd95b.js → textile.6739cf22.js} +1 -1
  280. package/dist/assets/{themes.25e9bf0d.js → themes.99cb1672.js} +1 -1
  281. package/dist/assets/{tiddlywiki.444c4106.js → tiddlywiki.9838bde4.js} +1 -1
  282. package/dist/assets/{tiki.b76198ed.js → tiki.80b69321.js} +1 -1
  283. package/dist/assets/{toml.e5225bb9.js → toml.1089d432.js} +1 -1
  284. package/dist/assets/{tornado.b78a0b6c.js → tornado.43361bdb.js} +1 -1
  285. package/dist/assets/{translations.7fe47fa2.js → translations.b9e0ee2e.js} +1 -1
  286. package/dist/assets/{troff.b93ac9c8.js → troff.6fa2515b.js} +1 -1
  287. package/dist/assets/{ttcn-cfg.a3d8d93e.js → ttcn-cfg.29c11a29.js} +1 -1
  288. package/dist/assets/{ttcn.9f09f7fd.js → ttcn.7e441eeb.js} +1 -1
  289. package/dist/assets/{turtle.ed601c60.js → turtle.cc980bba.js} +1 -1
  290. package/dist/assets/{twig.3cf94a98.js → twig.c208e31e.js} +1 -1
  291. package/dist/assets/{ubuntu.a99406a6.js → ubuntu.0d81a10a.js} +1 -1
  292. package/dist/assets/{upgrades-migrations.34198d2c.js → upgrades-migrations.715ee1d6.js} +1 -1
  293. package/dist/assets/{use-sync.7248288e.js → use-sync.1c032102.js} +1 -1
  294. package/dist/assets/{user-directory.8b299819.js → user-directory.1c64c935.js} +1 -1
  295. package/dist/assets/{users-roles-permissions.06bc5099.js → users-roles-permissions.4e51ac63.js} +1 -1
  296. package/dist/assets/{users.4949054a.js → users.8d9b68a7.js} +1 -1
  297. package/dist/assets/{utilities.00721659.js → utilities.dfed4954.js} +1 -1
  298. package/dist/assets/{vb.10798406.js → vb.6e5aca67.js} +1 -1
  299. package/dist/assets/{vbscript.6cb5632b.js → vbscript.93c429fa.js} +1 -1
  300. package/dist/assets/{velocity.aed5a56f.js → velocity.c1a64e08.js} +1 -1
  301. package/dist/assets/{vendor.48c33a64.js → vendor.c37f7cab.js} +1137 -174
  302. package/dist/assets/{verilog.4ad9b773.js → verilog.748a4e09.js} +1 -1
  303. package/dist/assets/{vhdl.467abe16.js → vhdl.b6c77d3f.js} +1 -1
  304. package/dist/assets/vue-i18n.38d89027.entry.js +1 -0
  305. package/dist/assets/vue-router.e188e24d.entry.js +1 -0
  306. package/dist/assets/vue.ea10f693.entry.js +1 -0
  307. package/dist/assets/{vue.61ef1ae9.js → vue.f9ff97ec.js} +1 -1
  308. package/dist/assets/{wast.950795ac.js → wast.a3dcc216.js} +1 -1
  309. package/dist/assets/{webhooks.eb5c2a39.js → webhooks.006f48f5.js} +1 -1
  310. package/dist/assets/{webhooks.42069e63.js → webhooks.41585988.js} +1 -1
  311. package/dist/assets/{webidl.f9d842ca.js → webidl.935b4665.js} +1 -1
  312. package/dist/assets/{xquery.bc08e347.js → xquery.1cd12bcf.js} +1 -1
  313. package/dist/assets/{yacas.28c0aa9a.js → yacas.b7fa45c7.js} +1 -1
  314. package/dist/assets/{yaml-frontmatter.4c3ba2ae.js → yaml-frontmatter.e47634fc.js} +1 -1
  315. package/dist/assets/{yaml.7a4d45f9.js → yaml.34a5a469.js} +1 -1
  316. package/dist/assets/{z80.d020b658.js → z80.4847a5a2.js} +1 -1
  317. package/dist/index.html +6 -5
  318. package/package.json +7 -6
  319. package/dist/assets/@directus_extensions-sdk.00774475.entry.js +0 -1
  320. package/dist/assets/accounts.ff6de473.js +0 -1
  321. package/dist/assets/bg-BG.5bed2efd.js +0 -2
  322. package/dist/assets/content-collections.a52785f6.js +0 -1
  323. package/dist/assets/content-items.9c999e8f.js +0 -1
  324. package/dist/assets/content.ad233407.js +0 -1
  325. package/dist/assets/da-DK.098d136f.js +0 -1
  326. package/dist/assets/de-DE.05347446.js +0 -1
  327. package/dist/assets/glossary.187c4442.js +0 -1
  328. package/dist/assets/index.7e3fd466.css +0 -1
  329. package/dist/assets/index.e573c648.entry.js +0 -542
  330. package/dist/assets/it-IT.b16a9044.js +0 -1
  331. package/dist/assets/overview.bf8e2858.js +0 -1
  332. package/dist/assets/pinia.0d7a4211.entry.js +0 -1
  333. package/dist/assets/projects.10455c80.js +0 -1
  334. package/dist/assets/rst.5ad53166.js +0 -1
  335. package/dist/assets/teams.2a3b4729.js +0 -1
  336. package/dist/assets/vue-i18n.bc4889d3.entry.js +0 -1
  337. package/dist/assets/vue-router.5965359d.entry.js +0 -1
  338. package/dist/assets/vue.701b3d92.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import{w as a,y as c,z as d,A as s,E as e,C as r,W as t}from"./vendor.48c33a64.js";var h="assets/plesk-screenshot.00f26a33.png";const u={class:"markdown-body"},p=e("p",null,[t("On many shared hosts you are not allowed to directly invoke node commands but you have to use the Plesk configuration panel instead. Unfortunately, Plesk does not allow the interactive execution of node scripts. Therefore we can\u2019t use Directus\u2019 "),e("code",null,"init"),t(" script and have to set up the project by our own.")],-1),_=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Successful tests"),e("p",null,"This approach has successfully been tested with a webhosting offer from netcup.")],-1),f=e("h2",{id:"setup-database"},[t("Setup database "),e("a",{class:"header-anchor",href:"#setup-database"},"#")],-1),m=e("p",null,"First, make sure that you\u2019ve already created a database and a user for it. We will use MySQL in this guide. When you plan to use SQLite you can ignore this.",-1),g=e("h2",{id:"setup-a-project-folder"},[t("Setup a project folder "),e("a",{class:"header-anchor",href:"#setup-a-project-folder"},"#")],-1),y=e("p",null,"On the server, create a project folder with 4 files in it.",-1),b=e("h3",{id:"1.-add-.env-file"},[t("1. Add .env file "),e("a",{class:"header-anchor",href:"#1.-add-.env-file"},"#")],-1),v=t("This file is used to configure Directus. Normally, the "),k=e("code",null,"init",-1),w=t(" script would create it for us. So now we have to do it manually. You can just copy it from another Directus installation or use the "),j=e("a",{href:"https://github.com/directus/directus/blob/main/api/example.env",target:"_blank",rel:"noopener noreferrer"},"example file",-1),x=t(" of Directus and then modify it (see "),D=t("Environment Variables"),A=t("). You likely have to adjust the database information."),P=e("p",null,"If you have not already a user in the database make sure to add a first user by adding the following two lines so that you can later login to Directus.",-1),S=e("pre",null,[e("code",null,`ADMIN_EMAIL="admin@example.com"
1
+ import{w as a,y as c,z as d,A as s,E as e,C as r,W as t}from"./vendor.c37f7cab.js";var h="assets/plesk-screenshot.00f26a33.png";const u={class:"markdown-body"},p=e("p",null,[t("On many shared hosts you are not allowed to directly invoke node commands but you have to use the Plesk configuration panel instead. Unfortunately, Plesk does not allow the interactive execution of node scripts. Therefore we can\u2019t use Directus\u2019 "),e("code",null,"init"),t(" script and have to set up the project by our own.")],-1),_=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Successful tests"),e("p",null,"This approach has successfully been tested with a webhosting offer from netcup.")],-1),f=e("h2",{id:"setup-database"},[t("Setup database "),e("a",{class:"header-anchor",href:"#setup-database"},"#")],-1),m=e("p",null,"First, make sure that you\u2019ve already created a database and a user for it. We will use MySQL in this guide. When you plan to use SQLite you can ignore this.",-1),g=e("h2",{id:"setup-a-project-folder"},[t("Setup a project folder "),e("a",{class:"header-anchor",href:"#setup-a-project-folder"},"#")],-1),y=e("p",null,"On the server, create a project folder with 4 files in it.",-1),b=e("h3",{id:"1.-add-.env-file"},[t("1. Add .env file "),e("a",{class:"header-anchor",href:"#1.-add-.env-file"},"#")],-1),v=t("This file is used to configure Directus. Normally, the "),k=e("code",null,"init",-1),w=t(" script would create it for us. So now we have to do it manually. You can just copy it from another Directus installation or use the "),j=e("a",{href:"https://github.com/directus/directus/blob/main/api/example.env",target:"_blank",rel:"noopener noreferrer"},"example file",-1),x=t(" of Directus and then modify it (see "),D=t("Environment Variables"),A=t("). You likely have to adjust the database information."),P=e("p",null,"If you have not already a user in the database make sure to add a first user by adding the following two lines so that you can later login to Directus.",-1),S=e("pre",null,[e("code",null,`ADMIN_EMAIL="admin@example.com"
2
2
  ADMIN_PASSWORD="password"
3
3
  `)],-1),T=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Choosing a Port"),e("p",null,[t("Since Plesk uses the "),e("a",{href:"https://www.phusionpassenger.com/",target:"_blank",rel:"noopener noreferrer"},"Phusion Passenger"),t(" application server to serve Node.js apps you do not need to worry about choosing a specific port. Just use an arbitrary number. To quote the Passenger docs:")]),e("blockquote",null,[e("p",null,"When run in Passenger, the port number that you pass to listen() is irrelevant and has no effect. Passenger always makes the app listen on a random Unix domain socket.")])],-1),I=e("h3",{id:"2.-add-package.json"},[t("2. Add package.json "),e("a",{class:"header-anchor",href:"#2.-add-package.json"},"#")],-1),N=e("p",null,[t("Add Directus and your database connector as a dependency. To execute Directus\u2019 "),e("code",null,"bootstrap"),t(" command you also have to add a script entry for it.")],-1),W=e("pre",null,[e("code",{class:"language-json"},[t(`{
4
4
  `),e("span",{class:"hljs-attr"},'"scripts"'),t(`: {
@@ -1 +1 @@
1
- import{bS as F}from"./vendor.48c33a64.js";function W(s,S){return S.forEach(function(a){a&&typeof a!="string"&&!Array.isArray(a)&&Object.keys(a).forEach(function(i){if(i!=="default"&&!(i in s)){var c=Object.getOwnPropertyDescriptor(a,i);Object.defineProperty(s,i,c.get?c:{enumerable:!0,get:function(){return a[i]}})}})}),Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}};(function(s,S){(function(a){a(F.exports)})(function(a){a.defineMode("powershell",function(){function i(e,r){r=r||{};for(var n=r.prefix!==void 0?r.prefix:"^",o=r.suffix!==void 0?r.suffix:"\\b",t=0;t<e.length;t++)e[t]instanceof RegExp?e[t]=e[t].source:e[t]=e[t].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(n+"("+e.join("|")+")"+o,"i")}var c="(?=[^A-Za-z\\d\\-_]|$)",p=/[\w\-:]/,h=i([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:c}),k=/[\[\]{},;`\\\.]|@[({]/,x=i(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),E=/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/,y=i([x,E],{suffix:""}),w=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,M=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,R=/[A-Z]:|%|\?/i,I=i([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),j=i([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),O=i([R,I,j],{suffix:c}),m={keyword:h,number:w,operator:y,builtin:O,punctuation:k,identifier:M};function u(e,r){var n=r.returnStack[r.returnStack.length-1];if(n&&n.shouldReturnFrom(r))return r.tokenize=n.tokenize,r.returnStack.pop(),r.tokenize(e,r);if(e.eatSpace())return null;if(e.eat("("))return r.bracketNesting+=1,"punctuation";if(e.eat(")"))return r.bracketNesting-=1,"punctuation";for(var o in m)if(e.match(m[o]))return o;var t=e.next();if(t==="'")return z(e,r);if(t==="$")return f(e,r);if(t==='"')return d(e,r);if(t==="<"&&e.eat("#"))return r.tokenize=g,g(e,r);if(t==="#")return e.skipToEnd(),"comment";if(t==="@"){var P=e.eat(/["']/);if(P&&e.eol())return r.tokenize=l,r.startQuote=P[0],l(e,r);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(p))return f(e,r)}return"error"}function z(e,r){for(var n;(n=e.peek())!=null;)if(e.next(),n==="'"&&!e.eat("'"))return r.tokenize=u,"string";return"error"}function d(e,r){for(var n;(n=e.peek())!=null;){if(n==="$")return r.tokenize=T,"string";if(e.next(),n==="`"){e.next();continue}if(n==='"'&&!e.eat('"'))return r.tokenize=u,"string"}return"error"}function T(e,r){return v(e,r,d)}function D(e,r){return r.tokenize=l,r.startQuote='"',l(e,r)}function A(e,r){return v(e,r,D)}function v(e,r,n){if(e.match("$(")){var o=r.bracketNesting;return r.returnStack.push({shouldReturnFrom:function(t){return t.bracketNesting===o},tokenize:n}),r.tokenize=u,r.bracketNesting+=1,"punctuation"}else return e.next(),r.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),r.tokenize=f,r.tokenize(e,r)}function g(e,r){for(var n=!1,o;(o=e.next())!=null;){if(n&&o==">"){r.tokenize=u;break}n=o==="#"}return"comment"}function f(e,r){var n=e.peek();return e.eat("{")?(r.tokenize=b,b(e,r)):n!=null&&n.match(p)?(e.eatWhile(p),r.tokenize=u,"variable-2"):(r.tokenize=u,"error")}function b(e,r){for(var n;(n=e.next())!=null;)if(n==="}"){r.tokenize=u;break}return"variable-2"}function l(e,r){var n=r.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))r.tokenize=u;else if(n==='"')for(;!e.eol();){var o=e.peek();if(o==="$")return r.tokenize=A,"string";e.next(),o==="`"&&e.next()}else e.skipToEnd();return"string"}var H={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:u}},token:function(e,r){return r.tokenize(e,r)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return H}),a.defineMIME("application/x-powershell","powershell")})})();var L=C.exports,N=W({__proto__:null,default:L},[C.exports]);export{N as p};
1
+ import{bT as F}from"./vendor.c37f7cab.js";function W(s,S){return S.forEach(function(a){a&&typeof a!="string"&&!Array.isArray(a)&&Object.keys(a).forEach(function(i){if(i!=="default"&&!(i in s)){var c=Object.getOwnPropertyDescriptor(a,i);Object.defineProperty(s,i,c.get?c:{enumerable:!0,get:function(){return a[i]}})}})}),Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}};(function(s,S){(function(a){a(F.exports)})(function(a){a.defineMode("powershell",function(){function i(e,r){r=r||{};for(var n=r.prefix!==void 0?r.prefix:"^",o=r.suffix!==void 0?r.suffix:"\\b",t=0;t<e.length;t++)e[t]instanceof RegExp?e[t]=e[t].source:e[t]=e[t].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(n+"("+e.join("|")+")"+o,"i")}var c="(?=[^A-Za-z\\d\\-_]|$)",p=/[\w\-:]/,h=i([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:c}),k=/[\[\]{},;`\\\.]|@[({]/,x=i(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),E=/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/,y=i([x,E],{suffix:""}),w=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,M=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,R=/[A-Z]:|%|\?/i,I=i([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),j=i([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),O=i([R,I,j],{suffix:c}),m={keyword:h,number:w,operator:y,builtin:O,punctuation:k,identifier:M};function u(e,r){var n=r.returnStack[r.returnStack.length-1];if(n&&n.shouldReturnFrom(r))return r.tokenize=n.tokenize,r.returnStack.pop(),r.tokenize(e,r);if(e.eatSpace())return null;if(e.eat("("))return r.bracketNesting+=1,"punctuation";if(e.eat(")"))return r.bracketNesting-=1,"punctuation";for(var o in m)if(e.match(m[o]))return o;var t=e.next();if(t==="'")return z(e,r);if(t==="$")return f(e,r);if(t==='"')return d(e,r);if(t==="<"&&e.eat("#"))return r.tokenize=b,b(e,r);if(t==="#")return e.skipToEnd(),"comment";if(t==="@"){var P=e.eat(/["']/);if(P&&e.eol())return r.tokenize=l,r.startQuote=P[0],l(e,r);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(p))return f(e,r)}return"error"}function z(e,r){for(var n;(n=e.peek())!=null;)if(e.next(),n==="'"&&!e.eat("'"))return r.tokenize=u,"string";return"error"}function d(e,r){for(var n;(n=e.peek())!=null;){if(n==="$")return r.tokenize=T,"string";if(e.next(),n==="`"){e.next();continue}if(n==='"'&&!e.eat('"'))return r.tokenize=u,"string"}return"error"}function T(e,r){return v(e,r,d)}function D(e,r){return r.tokenize=l,r.startQuote='"',l(e,r)}function A(e,r){return v(e,r,D)}function v(e,r,n){if(e.match("$(")){var o=r.bracketNesting;return r.returnStack.push({shouldReturnFrom:function(t){return t.bracketNesting===o},tokenize:n}),r.tokenize=u,r.bracketNesting+=1,"punctuation"}else return e.next(),r.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),r.tokenize=f,r.tokenize(e,r)}function b(e,r){for(var n=!1,o;(o=e.next())!=null;){if(n&&o==">"){r.tokenize=u;break}n=o==="#"}return"comment"}function f(e,r){var n=e.peek();return e.eat("{")?(r.tokenize=g,g(e,r)):n!=null&&n.match(p)?(e.eatWhile(p),r.tokenize=u,"variable-2"):(r.tokenize=u,"error")}function g(e,r){for(var n;(n=e.next())!=null;)if(n==="}"){r.tokenize=u;break}return"variable-2"}function l(e,r){var n=r.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))r.tokenize=u;else if(n==='"')for(;!e.eol();){var o=e.peek();if(o==="$")return r.tokenize=A,"string";e.next(),o==="`"&&e.next()}else e.skipToEnd();return"string"}var H={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:u}},token:function(e,r){return r.tokenize(e,r)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return H}),a.defineMIME("application/x-powershell","powershell")})})();var L=C.exports,N=W({__proto__:null,default:L},[C.exports]);export{N as p};
@@ -1 +1 @@
1
- import{w as n,y as c,z as u,A as o,E as e,C as i,W as t}from"./vendor.48c33a64.js";const d={class:"markdown-body"},h=t("Presets store the state of a Collection Detail page. They can be used to set layout defaults or define bookmarks to specific datasets. "),p=t("Learn more about Presets"),_=t("."),f=e("h2",{id:"creating-a-preset"},[t("Creating a Preset "),e("a",{class:"header-anchor",href:"#creating-a-preset"},"#")],-1),g=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,[t("Settings "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),t(" Presets & Bookmarks")])]),e("li",null,[t("Click "),e("span",{mi:"",btn:""},"add"),t(" in the header")]),e("li",null,[t("Complete the "),e("strong",null,"other preset form fields"),t(" outlined below")])],-1),m=e("ul",null,[e("li",null,[e("strong",null,"Collection"),t(" \u2014 The collection of this preset; supports any project collection, Directus Files, or Directus Users")]),e("li",null,[e("strong",null,"Scope"),t(" \u2014 The users that will have access to this preset, either Global, a specific Role, or an individual User")]),e("li",null,[e("strong",null,"Layout"),t(" \u2014 The collection detail\u2019s layout this preset applies to")]),e("li",null,[e("strong",null,"Name"),t(" \u2014 If left blank, this preset will act as a Default for the collection/layout; if given a name, it will be shown as a bookmark")])],-1),v=e("p",null,[t("After you have completed the form, the layout preview will be populated with live data. "),e("strong",null,"You can now tailor the layout as desired by updating the preview or the filter component in the page sidebar.")],-1),k=e("p",null,"Each preset saves all of the information needed to recreate a view of the collection/layout, including:",-1),y=e("ul",null,[e("li",null,[e("strong",null,"Collection"),t(" \u2014 The collection of the preset")]),e("li",null,[e("strong",null,"Layout"),t(" \u2014 The Layout the preset applies to")]),e("li",null,[e("strong",null,"Layout Query"),t(" \u2014 Order direction, order field, pagination, etc")]),e("li",null,[e("strong",null,"Layout Options"),t(" \u2014 The configuration of all layout options")]),e("li",null,[e("strong",null,"Search"),t(" \u2014 Any full-text search query applied")]),e("li",null,[e("strong",null,"Filters"),t(" \u2014 Any advanced filters applied")]),e("li",null,[e("strong",null,"User"),t(" \u2014 Optional; scopes to a specific user")]),e("li",null,[e("strong",null,"Role"),t(" \u2014 Optional; scopes to a specific role")]),e("li",null,[e("strong",null,"Bookmark Name"),t(" \u2014 Optional; determines if the preset is a bookmark")])],-1),b={class:"tip hint"},w=e("div",{class:"hint-title"},"Defaults vs Bookmarks",-1),D=t("It\u2019s important to be aware of the difference between a collection\u2019s "),C=e("em",null,"defaults",-1),P=t(" and its "),T=e("em",null,"bookmarks",-1),B=t(", both of which are configured by presets. A "),N=e("em",null,"default",-1),x=t(" is how a user will initially view the collection detail without any further customization, while a "),A=e("em",null,"bookmark",-1),L=t(" is a named dataset that can be recalled at any point via the "),O=t("navigation bar"),S=t("."),U=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"System Defaults"),e("p",null,"You can also adjust the defaults and bookmarks for the Directus Activity, Directus Files, and Directus Users collections.")],-1),I=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Order of Defaults"),e("p",null,"Multiple defaults can be configured for a user, either for different layouts of even the same layout. In this case, the preset priority is: User, then Role, then Global.")],-1),j=e("h2",{id:"deleting-a-preset"},[t("Deleting a Preset "),e("a",{class:"header-anchor",href:"#deleting-a-preset"},"#")],-1),E=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,[t("Settings "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),t(" Presets & Bookmarks "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),t(" [Preset]")])]),e("li",null,[t("Click "),e("span",{mi:"",btn:"",dngr:""},"delete"),t(" in the header")]),e("li",null,[t("Confirm this decision by clicking "),e("strong",null,"Delete"),t(" in the dialog")])],-1),F=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,"This action is permanent and can not be undone. Please proceed with caution.")],-1),z={setup(R,{expose:a}){const l={title:"Collection Presets",modularExtension:!1};return a({frontmatter:l}),(V,W)=>{const s=n("router-link"),r=n("DocsWrapper");return c(),u(r,{frontmatter:l},{default:o(()=>[e("div",d,[e("blockquote",null,[e("p",null,[h,i(s,{to:"/docs/getting-started/glossary/#presets"},{default:o(()=>[p]),_:1}),_])]),f,g,m,v,k,y,e("div",b,[w,e("p",null,[D,C,P,T,B,N,x,A,L,i(s,{to:"/docs/app/overview/#_2-navigation-bar"},{default:o(()=>[O]),_:1}),S])]),U,I,j,E,F])]),_:1})}}};export{z as default};
1
+ import{w as n,y as c,z as u,A as o,E as e,C as i,W as t}from"./vendor.c37f7cab.js";const d={class:"markdown-body"},h=t("Presets store the state of a Collection Detail page. They can be used to set layout defaults or define bookmarks to specific datasets. "),p=t("Learn more about Presets"),_=t("."),f=e("h2",{id:"creating-a-preset"},[t("Creating a Preset "),e("a",{class:"header-anchor",href:"#creating-a-preset"},"#")],-1),g=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,[t("Settings "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),t(" Presets & Bookmarks")])]),e("li",null,[t("Click "),e("span",{mi:"",btn:""},"add"),t(" in the header")]),e("li",null,[t("Complete the "),e("strong",null,"other preset form fields"),t(" outlined below")])],-1),m=e("ul",null,[e("li",null,[e("strong",null,"Collection"),t(" \u2014 The collection of this preset; supports any project collection, Directus Files, or Directus Users")]),e("li",null,[e("strong",null,"Scope"),t(" \u2014 The users that will have access to this preset, either Global, a specific Role, or an individual User")]),e("li",null,[e("strong",null,"Layout"),t(" \u2014 The collection detail\u2019s layout this preset applies to")]),e("li",null,[e("strong",null,"Name"),t(" \u2014 If left blank, this preset will act as a Default for the collection/layout; if given a name, it will be shown as a bookmark")])],-1),v=e("p",null,[t("After you have completed the form, the layout preview will be populated with live data. "),e("strong",null,"You can now tailor the layout as desired by updating the preview or the filter component in the page sidebar.")],-1),k=e("p",null,"Each preset saves all of the information needed to recreate a view of the collection/layout, including:",-1),y=e("ul",null,[e("li",null,[e("strong",null,"Collection"),t(" \u2014 The collection of the preset")]),e("li",null,[e("strong",null,"Layout"),t(" \u2014 The Layout the preset applies to")]),e("li",null,[e("strong",null,"Layout Query"),t(" \u2014 Order direction, order field, pagination, etc")]),e("li",null,[e("strong",null,"Layout Options"),t(" \u2014 The configuration of all layout options")]),e("li",null,[e("strong",null,"Search"),t(" \u2014 Any full-text search query applied")]),e("li",null,[e("strong",null,"Filters"),t(" \u2014 Any advanced filters applied")]),e("li",null,[e("strong",null,"User"),t(" \u2014 Optional; scopes to a specific user")]),e("li",null,[e("strong",null,"Role"),t(" \u2014 Optional; scopes to a specific role")]),e("li",null,[e("strong",null,"Bookmark Name"),t(" \u2014 Optional; determines if the preset is a bookmark")])],-1),b={class:"tip hint"},w=e("div",{class:"hint-title"},"Defaults vs Bookmarks",-1),D=t("It\u2019s important to be aware of the difference between a collection\u2019s "),C=e("em",null,"defaults",-1),P=t(" and its "),T=e("em",null,"bookmarks",-1),B=t(", both of which are configured by presets. A "),N=e("em",null,"default",-1),x=t(" is how a user will initially view the collection detail without any further customization, while a "),A=e("em",null,"bookmark",-1),L=t(" is a named dataset that can be recalled at any point via the "),O=t("navigation bar"),S=t("."),U=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"System Defaults"),e("p",null,"You can also adjust the defaults and bookmarks for the Directus Activity, Directus Files, and Directus Users collections.")],-1),I=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Order of Defaults"),e("p",null,"Multiple defaults can be configured for a user, either for different layouts of even the same layout. In this case, the preset priority is: User, then Role, then Global.")],-1),j=e("h2",{id:"deleting-a-preset"},[t("Deleting a Preset "),e("a",{class:"header-anchor",href:"#deleting-a-preset"},"#")],-1),E=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,[t("Settings "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),t(" Presets & Bookmarks "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),t(" [Preset]")])]),e("li",null,[t("Click "),e("span",{mi:"",btn:"",dngr:""},"delete"),t(" in the header")]),e("li",null,[t("Confirm this decision by clicking "),e("strong",null,"Delete"),t(" in the dialog")])],-1),F=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,"This action is permanent and can not be undone. Please proceed with caution.")],-1),z={setup(R,{expose:a}){const l={title:"Collection Presets",modularExtension:!1};return a({frontmatter:l}),(V,W)=>{const s=n("router-link"),r=n("DocsWrapper");return c(),u(r,{frontmatter:l},{default:o(()=>[e("div",d,[e("blockquote",null,[e("p",null,[h,i(s,{to:"/docs/getting-started/glossary/#presets"},{default:o(()=>[p]),_:1}),_])]),f,g,m,v,k,y,e("div",b,[w,e("p",null,[D,C,P,T,B,N,x,A,L,i(s,{to:"/docs/app/overview/#_2-navigation-bar"},{default:o(()=>[O]),_:1}),S])]),U,I,j,E,F])]),_:1})}}};export{z as default};
@@ -1,4 +1,4 @@
1
- import{w as n,y as c,z as p,A as t,E as s,C as l,W as e}from"./vendor.48c33a64.js";const d={class:"markdown-body"},i={class:"two-up"},u={class:"left"},_=e("Presets hold the preferences of individual users of the platform. This allows Directus to show and maintain custom item listings and bookmarks for users of the app. "),m=e("Learn more about Presets"),g=e("."),f=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-preset-object"},"The Preset Object")]),s("li",null,[s("a",{href:"#list-presets"},"List Presets")]),s("li",null,[s("a",{href:"#retrieve-a-preset"},"Retrieve a preset")]),s("li",null,[s("a",{href:"#create-a-preset"},"Create a Preset")]),s("li",null,[s("a",{href:"#create-multiple-presets"},"Create Multiple Presets")]),s("li",null,[s("a",{href:"#update-a-preset"},"Update a Preset")]),s("li",null,[s("a",{href:"#update-multiple-presets"},"Update Multiple Presets")]),s("li",null,[s("a",{href:"#delete-a-preset"},"Delete a Preset")]),s("li",null,[s("a",{href:"#delete-multiple-presets"},"Delete Multiple Presets")])])])])],-1),j=s("hr",null,null,-1),y=s("h2",{id:"the-preset-object"},[e("The Preset Object "),s("a",{class:"header-anchor",href:"#the-preset-object"},"#")],-1),b={class:"two-up"},q={class:"left"},x={class:"definitions"},P=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the preset.")],-1),v=s("p",null,[s("code",null,"bookmark"),e(),s("strong",null,"string"),s("br"),e(" The title of the bookmark. If this value is "),s("code",null,"null"),e(", it\u2019s considered a preset instead of a bookmark.")],-1),E=s("code",null,"user",-1),T=e(),k=s("strong",null,"many-to-one",-1),w=s("br",null,null,-1),R=e(" User this preset applies to. Many-to-one to "),S=e("users"),D=e("."),A=s("code",null,"role",-1),L=e(),C=s("strong",null,"many-to-one",-1),Q=s("br",null,null,-1),I=e(" Role this preset applies to. Many-to-one to "),M=e("users"),O=e("."),G=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection this preset applies to.")],-1),B=s("p",null,[s("code",null,"search"),e(),s("strong",null,"string"),s("br"),e(" The search query used in the preset.")],-1),U=s("p",null,[s("code",null,"filters"),e(),s("strong",null,"array"),s("br"),e(" The filters used in the preset.")],-1),H=s("p",null,[s("code",null,"layout"),e(),s("strong",null,"string"),s("br"),e(" The layout used in this preset.")],-1),N=s("p",null,[s("code",null,"layout_query"),e(),s("strong",null,"object"),s("br"),e(" The item query used by the layout. This structure is based on the used layout.")],-1),V=s("p",null,[s("code",null,"layout_options"),e(),s("strong",null,"object"),s("br"),e(" The options used by the layout. This structure is based on the used layout.")],-1),W=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
1
+ import{w as n,y as c,z as p,A as t,E as s,C as l,W as e}from"./vendor.c37f7cab.js";const d={class:"markdown-body"},i={class:"two-up"},u={class:"left"},_=e("Presets hold the preferences of individual users of the platform. This allows Directus to show and maintain custom item listings and bookmarks for users of the app. "),m=e("Learn more about Presets"),g=e("."),f=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-preset-object"},"The Preset Object")]),s("li",null,[s("a",{href:"#list-presets"},"List Presets")]),s("li",null,[s("a",{href:"#retrieve-a-preset"},"Retrieve a preset")]),s("li",null,[s("a",{href:"#create-a-preset"},"Create a Preset")]),s("li",null,[s("a",{href:"#create-multiple-presets"},"Create Multiple Presets")]),s("li",null,[s("a",{href:"#update-a-preset"},"Update a Preset")]),s("li",null,[s("a",{href:"#update-multiple-presets"},"Update Multiple Presets")]),s("li",null,[s("a",{href:"#delete-a-preset"},"Delete a Preset")]),s("li",null,[s("a",{href:"#delete-multiple-presets"},"Delete Multiple Presets")])])])])],-1),j=s("hr",null,null,-1),y=s("h2",{id:"the-preset-object"},[e("The Preset Object "),s("a",{class:"header-anchor",href:"#the-preset-object"},"#")],-1),b={class:"two-up"},q={class:"left"},x={class:"definitions"},P=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the preset.")],-1),v=s("p",null,[s("code",null,"bookmark"),e(),s("strong",null,"string"),s("br"),e(" The title of the bookmark. If this value is "),s("code",null,"null"),e(", it\u2019s considered a preset instead of a bookmark.")],-1),E=s("code",null,"user",-1),T=e(),k=s("strong",null,"many-to-one",-1),w=s("br",null,null,-1),R=e(" User this preset applies to. Many-to-one to "),S=e("users"),D=e("."),A=s("code",null,"role",-1),L=e(),C=s("strong",null,"many-to-one",-1),Q=s("br",null,null,-1),I=e(" Role this preset applies to. Many-to-one to "),M=e("users"),O=e("."),G=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection this preset applies to.")],-1),B=s("p",null,[s("code",null,"search"),e(),s("strong",null,"string"),s("br"),e(" The search query used in the preset.")],-1),U=s("p",null,[s("code",null,"filters"),e(),s("strong",null,"array"),s("br"),e(" The filters used in the preset.")],-1),H=s("p",null,[s("code",null,"layout"),e(),s("strong",null,"string"),s("br"),e(" The layout used in this preset.")],-1),N=s("p",null,[s("code",null,"layout_query"),e(),s("strong",null,"object"),s("br"),e(" The item query used by the layout. This structure is based on the used layout.")],-1),V=s("p",null,[s("code",null,"layout_options"),e(),s("strong",null,"object"),s("br"),e(" The options used by the layout. This structure is based on the used layout.")],-1),W=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
2
2
  `),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-number"},"39"),e(`,
3
3
  `),s("span",{class:"hljs-attr"},'"bookmark"'),e(": "),s("span",{class:"hljs-literal"},"null"),e(`,
4
4
  `),s("span",{class:"hljs-attr"},'"user"'),e(": "),s("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),e(`,
@@ -1 +1 @@
1
- import{w as i,y as d,z as h,A as t,E as e,C as n,W as o}from"./vendor.48c33a64.js";const c={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[o("This is where you can adjust all of the "),e("strong",null,"global"),o(" settings for your project. Changes saved here are instantly reflected throughout the platform.")])],-1),g=e("h2",{id:"general"},[o("General "),e("a",{class:"header-anchor",href:"#general"},"#")],-1),p=e("strong",null,"Project Name",-1),_=o(" \u2014 The name used at the top of the "),m=o("Navigation Bar"),f=o(" and on the login/public pages"),w=e("strong",null,"Project Descriptor",-1),b=o(" - The descriptor shown below the Project Name at the top of the "),y=o("Navigation Bar"),v=o(" and on the login/public pages"),k=e("strong",null,"Project URL",-1),A=o(" \u2014 The URL when clicking the logo at the top of the "),T=o("Module Bar"),x=e("h2",{id:"branding-%26-style"},[o("Branding & Style "),e("a",{class:"header-anchor",href:"#branding-%26-style"},"#")],-1),P=e("strong",null,"Project Color",-1),B=o(" \u2014 The color used behind the logo at the top of the "),j=o("Module Bar"),C=o(", on the login/public pages, and for the browser\u2019s FavIcon"),S=e("strong",null,"Project Logo",-1),N=o(" \u2014 A 40x40 pixel logo at the top of the "),F=o("Module Bar"),M=o(" and on the login/public pages. The image is "),q=e("em",null,"inset",-1),W=o(" within the 64x64 pixel square filled with the Project Color, so we recommend using a SVG or PNG logo with transparency to avoid a \u201Cboxy\u201D look."),D=e("li",null,[e("strong",null,"Public Foreground"),o(" \u2014 An image centered in the public page\u2019s right-pane. Limited to a maximum width of 400px.")],-1),L=e("li",null,[e("strong",null,"Public Background"),o(" \u2014 An image displayed behind the above foreground image, shown full-bleed within the public page\u2019s right-pane. When a Public Background image is not set, the Project Color is used instead.")],-1),G=e("li",null,[e("strong",null,"Public Note"),o(" \u2014 A helpful note displayed at the bottom of the public page\u2019s right-pane; supports markdown for rich-text formatting")],-1),I=e("li",null,[e("strong",null,"Custom CSS"),o(" \u2014 Allows for adding CSS rules to override the App\u2019s default styling. Be aware that the App\u2019s core code, and therefore its DOM selectors, can change at any time. These updates are not considered a breaking change.")],-1),U=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Browser FavIcon & Title"),e("p",null,"The Project Color is also used to set a dynamic favicon and the Project Name is used in the browser\u2019s page title, making it easier to identify different Directus projects.")],-1),z=e("h2",{id:"modules"},[o("Modules "),e("a",{class:"header-anchor",href:"#modules"},"#")],-1),V=e("strong",null,"Module Bar",-1),O=o(" - Allows the following customization of links displayed in the module bar. Show or hide modules by toggling the checkbox, reorder links by dragging on the sort handle, or create new custom links with these fields: "),R=e("li",null,[e("strong",null,"Name"),o(" \u2014 The title of the module link, also shown in a tooltip on hover")],-1),E=e("li",null,[e("strong",null,"Icon"),o(" \u2014 Choose an icon for the module button")],-1),H=e("strong",null,"URL",-1),J=o(" \u2014 Should start with a "),K=e("code",null,"/",-1),Q=o(" for links within the "),X=o("Directus App"),Y=e("h2",{id:"security"},[o("Security "),e("a",{class:"header-anchor",href:"#security"},"#")],-1),Z=e("ul",null,[e("li",null,[e("strong",null,"Auth Password Policy"),o(" \u2014 Allows setting a policy requirement for all user\u2019s passwords, with the following options: "),e("ul",null,[e("li",null,"None \u2014 Not recommended"),e("li",null,"Weak \u2014 Minimum of 8 characters"),e("li",null,"Strong \u2014 Uppercase, lowercase, numbers, and special characters")])]),e("li",null,[e("strong",null,"Auth Login Attempts"),o(" \u2014 Sets the number of failed login attempts allowed before a user\u2019s account is locked. Once locked, an Admin user is required to unlock the account.")])],-1),$=e("h2",{id:"files-%26-storage"},[o("Files & Storage "),e("a",{class:"header-anchor",href:"#files-%26-storage"},"#")],-1),ee=e("p",null,"The platform\u2019s file middleware allows for cropping and transforming image assets on the fly. This means you can simply request an original image, include any desired transformation parameters, and you\u2019ll be served the new asset as a response.",-1),oe=e("p",null,"To impede malicious users from consuming your storage by requesting a large number of random sizes, you can use the following options to limit what transformations are possible.",-1),te=e("ul",null,[e("li",null,[e("strong",null,"Allowed Transformations"),o(" \u2014 For enabling, disabling, or limiting image transformations")]),e("li",null,[e("strong",null,"Default Folder"),o(" \u2014 Sets the default folder where new assets are added. This does not affect existing files. Be aware that fields may override this value.")]),e("li",null,[e("strong",null,"Transformation Presets"),o(" \u2014 Allows setting specific image transformations to simplify requests or limit usage. "),e("ul",null,[e("li",null,"Key \u2014 A unique identifier allowing faster and easier image transformation requests"),e("li",null,"Fit \u2014 Contain (preserve aspect ratio), Cover (force exact size), Fit Inside, or Fit Outside"),e("li",null,"Width \u2014 The width of the image"),e("li",null,"Height \u2014 The height of the image"),e("li",null,"Quality \u2014 The compression or quality of the image"),e("li",null,"Upscaling \u2014 When enabled, images won\u2019t be upscaled"),e("li",null,"Format \u2014 Allows changing the output format to: JPG, PNG, WebP, or TIFF"),e("li",null,[o("Additional Transformations \u2014 Allows adding additional transformations using "),e("a",{href:"https://sharp.pixelplumbing.com/api-constructor",target:"_blank",rel:"noopener noreferrer"},"Sharp")])])])],-1),se=e("h2",{id:"mapping"},[o("Mapping "),e("a",{class:"header-anchor",href:"#mapping"},"#")],-1),ne=e("ul",null,[e("li",null,[e("strong",null,"Mapbox Access Token"),o(" \u2014 Create a "),e("a",{href:"https://docs.mapbox.com/help/glossary/access-token/",target:"_blank",rel:"noopener noreferrer"},"Mapbox Access Token"),o(" and enter it here to improve the platform\u2019s mapping experience.")]),e("li",null,[e("strong",null,"Basemaps"),o(" \u2014 Allows overriding the Mapbox defaults with custom tiles")])],-1),de={setup(le,{expose:a}){const l={title:"Project Settings",modularExtension:!1};return a({frontmatter:l}),(ie,ae)=>{const s=i("router-link"),r=i("DocsWrapper");return d(),h(r,{frontmatter:l},{default:t(()=>[e("div",c,[u,g,e("ul",null,[e("li",null,[p,_,n(s,{to:"/docs/app/overview/#_2-navigation-bar"},{default:t(()=>[m]),_:1}),f]),e("li",null,[w,b,n(s,{to:"/docs/app/overview/#_2-navigation-bar"},{default:t(()=>[y]),_:1}),v]),e("li",null,[k,A,n(s,{to:"/docs/app/overview/#_1-module-bar"},{default:t(()=>[T]),_:1})])]),x,e("ul",null,[e("li",null,[P,B,n(s,{to:"/docs/app/overview/#_1-module-bar"},{default:t(()=>[j]),_:1}),C]),e("li",null,[S,N,n(s,{to:"/docs/app/overview/#_1-module-bar"},{default:t(()=>[F]),_:1}),M,q,W]),D,L,G,I]),U,z,e("ul",null,[e("li",null,[V,O,e("ul",null,[R,E,e("li",null,[H,J,K,Q,n(s,{to:"/docs/app/overview/"},{default:t(()=>[X]),_:1})])])])]),Y,Z,$,ee,oe,te,se,ne])]),_:1})}}};export{de as default};
1
+ import{w as i,y as d,z as h,A as t,E as e,C as n,W as o}from"./vendor.c37f7cab.js";const c={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[o("This is where you can adjust all of the "),e("strong",null,"global"),o(" settings for your project. Changes saved here are instantly reflected throughout the platform.")])],-1),g=e("h2",{id:"general"},[o("General "),e("a",{class:"header-anchor",href:"#general"},"#")],-1),p=e("strong",null,"Project Name",-1),_=o(" \u2014 The name used at the top of the "),m=o("Navigation Bar"),f=o(" and on the login/public pages"),w=e("strong",null,"Project Descriptor",-1),b=o(" - The descriptor shown below the Project Name at the top of the "),y=o("Navigation Bar"),v=o(" and on the login/public pages"),k=e("strong",null,"Project URL",-1),A=o(" \u2014 The URL when clicking the logo at the top of the "),T=o("Module Bar"),x=e("h2",{id:"branding-%26-style"},[o("Branding & Style "),e("a",{class:"header-anchor",href:"#branding-%26-style"},"#")],-1),P=e("strong",null,"Project Color",-1),B=o(" \u2014 The color used behind the logo at the top of the "),j=o("Module Bar"),C=o(", on the login/public pages, and for the browser\u2019s FavIcon"),S=e("strong",null,"Project Logo",-1),N=o(" \u2014 A 40x40 pixel logo at the top of the "),F=o("Module Bar"),M=o(" and on the login/public pages. The image is "),q=e("em",null,"inset",-1),W=o(" within the 64x64 pixel square filled with the Project Color, so we recommend using a SVG or PNG logo with transparency to avoid a \u201Cboxy\u201D look."),D=e("li",null,[e("strong",null,"Public Foreground"),o(" \u2014 An image centered in the public page\u2019s right-pane. Limited to a maximum width of 400px.")],-1),L=e("li",null,[e("strong",null,"Public Background"),o(" \u2014 An image displayed behind the above foreground image, shown full-bleed within the public page\u2019s right-pane. When a Public Background image is not set, the Project Color is used instead.")],-1),G=e("li",null,[e("strong",null,"Public Note"),o(" \u2014 A helpful note displayed at the bottom of the public page\u2019s right-pane; supports markdown for rich-text formatting")],-1),I=e("li",null,[e("strong",null,"Custom CSS"),o(" \u2014 Allows for adding CSS rules to override the App\u2019s default styling. Be aware that the App\u2019s core code, and therefore its DOM selectors, can change at any time. These updates are not considered a breaking change.")],-1),U=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Browser FavIcon & Title"),e("p",null,"The Project Color is also used to set a dynamic favicon and the Project Name is used in the browser\u2019s page title, making it easier to identify different Directus projects.")],-1),z=e("h2",{id:"modules"},[o("Modules "),e("a",{class:"header-anchor",href:"#modules"},"#")],-1),V=e("strong",null,"Module Bar",-1),O=o(" - Allows the following customization of links displayed in the module bar. Show or hide modules by toggling the checkbox, reorder links by dragging on the sort handle, or create new custom links with these fields: "),R=e("li",null,[e("strong",null,"Name"),o(" \u2014 The title of the module link, also shown in a tooltip on hover")],-1),E=e("li",null,[e("strong",null,"Icon"),o(" \u2014 Choose an icon for the module button")],-1),H=e("strong",null,"URL",-1),J=o(" \u2014 Should start with a "),K=e("code",null,"/",-1),Q=o(" for links within the "),X=o("Directus App"),Y=e("h2",{id:"security"},[o("Security "),e("a",{class:"header-anchor",href:"#security"},"#")],-1),Z=e("ul",null,[e("li",null,[e("strong",null,"Auth Password Policy"),o(" \u2014 Allows setting a policy requirement for all user\u2019s passwords, with the following options: "),e("ul",null,[e("li",null,"None \u2014 Not recommended"),e("li",null,"Weak \u2014 Minimum of 8 characters"),e("li",null,"Strong \u2014 Uppercase, lowercase, numbers, and special characters")])]),e("li",null,[e("strong",null,"Auth Login Attempts"),o(" \u2014 Sets the number of failed login attempts allowed before a user\u2019s account is locked. Once locked, an Admin user is required to unlock the account.")])],-1),$=e("h2",{id:"files-%26-storage"},[o("Files & Storage "),e("a",{class:"header-anchor",href:"#files-%26-storage"},"#")],-1),ee=e("p",null,"The platform\u2019s file middleware allows for cropping and transforming image assets on the fly. This means you can simply request an original image, include any desired transformation parameters, and you\u2019ll be served the new asset as a response.",-1),oe=e("p",null,"To impede malicious users from consuming your storage by requesting a large number of random sizes, you can use the following options to limit what transformations are possible.",-1),te=e("ul",null,[e("li",null,[e("strong",null,"Allowed Transformations"),o(" \u2014 For enabling, disabling, or limiting image transformations")]),e("li",null,[e("strong",null,"Default Folder"),o(" \u2014 Sets the default folder where new assets are added. This does not affect existing files. Be aware that fields may override this value.")]),e("li",null,[e("strong",null,"Transformation Presets"),o(" \u2014 Allows setting specific image transformations to simplify requests or limit usage. "),e("ul",null,[e("li",null,"Key \u2014 A unique identifier allowing faster and easier image transformation requests"),e("li",null,"Fit \u2014 Contain (preserve aspect ratio), Cover (force exact size), Fit Inside, or Fit Outside"),e("li",null,"Width \u2014 The width of the image"),e("li",null,"Height \u2014 The height of the image"),e("li",null,"Quality \u2014 The compression or quality of the image"),e("li",null,"Upscaling \u2014 When enabled, images won\u2019t be upscaled"),e("li",null,"Format \u2014 Allows changing the output format to: JPG, PNG, WebP, or TIFF"),e("li",null,[o("Additional Transformations \u2014 Allows adding additional transformations using "),e("a",{href:"https://sharp.pixelplumbing.com/api-constructor",target:"_blank",rel:"noopener noreferrer"},"Sharp")])])])],-1),se=e("h2",{id:"mapping"},[o("Mapping "),e("a",{class:"header-anchor",href:"#mapping"},"#")],-1),ne=e("ul",null,[e("li",null,[e("strong",null,"Mapbox Access Token"),o(" \u2014 Create a "),e("a",{href:"https://docs.mapbox.com/help/glossary/access-token/",target:"_blank",rel:"noopener noreferrer"},"Mapbox Access Token"),o(" and enter it here to improve the platform\u2019s mapping experience.")]),e("li",null,[e("strong",null,"Basemaps"),o(" \u2014 Allows overriding the Mapbox defaults with custom tiles")])],-1),de={setup(le,{expose:a}){const l={title:"Project Settings",modularExtension:!1};return a({frontmatter:l}),(ie,ae)=>{const s=i("router-link"),r=i("DocsWrapper");return d(),h(r,{frontmatter:l},{default:t(()=>[e("div",c,[u,g,e("ul",null,[e("li",null,[p,_,n(s,{to:"/docs/app/overview/#_2-navigation-bar"},{default:t(()=>[m]),_:1}),f]),e("li",null,[w,b,n(s,{to:"/docs/app/overview/#_2-navigation-bar"},{default:t(()=>[y]),_:1}),v]),e("li",null,[k,A,n(s,{to:"/docs/app/overview/#_1-module-bar"},{default:t(()=>[T]),_:1})])]),x,e("ul",null,[e("li",null,[P,B,n(s,{to:"/docs/app/overview/#_1-module-bar"},{default:t(()=>[j]),_:1}),C]),e("li",null,[S,N,n(s,{to:"/docs/app/overview/#_1-module-bar"},{default:t(()=>[F]),_:1}),M,q,W]),D,L,G,I]),U,z,e("ul",null,[e("li",null,[V,O,e("ul",null,[R,E,e("li",null,[H,J,K,Q,n(s,{to:"/docs/app/overview/"},{default:t(()=>[X]),_:1})])])])]),Y,Z,$,ee,oe,te,se,ne])]),_:1})}}};export{de as default};
@@ -0,0 +1 @@
1
+ import{w as r,y as i,z as d,A as o,E as e,C as n,W as t}from"./vendor.c37f7cab.js";const u={class:"markdown-body"},h=e("blockquote",null,[e("p",null,"Cloud Projects are individual instances of Directus, managed within a Team. Community, Standard and Enterprise tier Projects are available, with each offering different options for infrastructure, configuration and professional services.")],-1),p=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#view-a-team's-projects"},"View a Team's Projects")]),e("li",null,[e("a",{href:"#create-a-community-project"},"Create a Community Project")]),e("li",null,[e("a",{href:"#create-a-standard-project"},"Create a Standard Project")]),e("li",null,[e("a",{href:"#create-an-enterprise-project"},"Create an Enterprise Project")]),e("li",null,[e("a",{href:"#access-a-project"},"Access a Project")]),e("li",null,[e("a",{href:"#monitor-a-project"},"Monitor a Project")]),e("li",null,[e("a",{href:"#manage-a-community-project"},"Manage a Community Project")]),e("li",null,[e("a",{href:"#manage-a-standard-project"},"Manage a Standard Project")]),e("li",null,[e("a",{href:"#manage-an-enterprise-project"},"Manage an Enterprise Project")]),e("li",null,[e("a",{href:"#resume-a-community-project"},"Resume a Community Project")]),e("li",null,[e("a",{href:"#destroy-a-project"},"Destroy a Project")])])])],-1),_=t("A Cloud Project is a Directus Instance, the "),m=t("Infrastructure"),j=t(" it runs on, and all of its "),g=t("data and file assets"),f=t(". All Cloud Projects come "),P=t("quota-free"),y=t(" and include all "),C=t("Cloud Exclusives"),b=t(". See "),w=t("Support Options"),v=t(" to find out how to get help on your Project."),T=e("p",null,[t("There are three different Project tiers on Directus Cloud: "),e("a",{href:"#create-a-community-project"},"Community"),t(", "),e("a",{href:"#create-a-standard-project"},"Standard"),t(", and "),e("a",{href:"#create-an-enterprise-project"},"Enterprise"),t(". A side-by-side comparison of what\u2019s included in each tier can be found on the "),e("a",{href:"https://directus.io/pricing/",target:"_blank",rel:"noopener noreferrer"},"Pricing page"),t(".")],-1),k=t("See the "),N=t("Overview"),S=t(" to learn how Accounts, Teams and Projects interrelate."),A=e("h2",{id:"view-a-team%E2%80%99s-projects"},[t("View a Team\u2019s Projects "),e("a",{class:"header-anchor",href:"#view-a-team%E2%80%99s-projects"},"#")],-1),D=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/cloud/projects/projects-20220322A/view-projects-20220322A.webp",alt:"View Projects"})],-1),M=t("All of a Team\u2019s Projects are listed on the Projects Page. For each Project, the following information and shortcuts are provided. On Project creation, the provisioning progress will be displayed until fully complete. The icon on the far left indicates whether it\u2019s online, "),E=t("offline"),O=t(" or "),R=e("a",{href:"#resume-a-community-project"},"paused",-1),I=t(". Next to that icon are the Project Name and Project Slug. On the right, you\u2019ll see the Project tier, followed by shortcuts, which allow you to "),U=e("span",{mi:"",icon:""},"edit",-1),H=t(" edit and "),x=e("span",{mi:"",icon:""},"launch",-1),L=t(" access the Project. To view a Team\u2019s Projects:"),q=e("ol",null,[e("li",null,"Open the Team Menu in the Dashboard Header and select the desired Team."),e("li",null,[t("Click "),e("strong",null,"\u201CProjects\u201D"),t(".")])],-1),B=e("h2",{id:"create-a-community-project"},[t("Create a Community Project "),e("a",{class:"header-anchor",href:"#create-a-community-project"},"#")],-1),V=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/cloud/projects/projects-20220329A/create-a-community-project-20220329A.webp",alt:"Create a Community Project"})],-1),z=e("p",null,"The Community tier offers a completely free Directus Project, perfect for spinning up hobby projects, trying out Directus Cloud, testing a proof-of-concept or performing any other non-production activity. Community Projects come with the following configurations:",-1),F=e("li",null,[e("strong",null,"Project Name"),t(" \u2014 Custom. "),e("em",null,"This can be changed at any time with no impact on the Project"),t(".")],-1),Y=e("li",null,[e("strong",null,"Project URL"),t(" \u2014 Random URL: "),e("code",null,"aa3i82.directus.app"),t(". "),e("em",null,"This cannot be changed"),t(".")],-1),W=t("Datacenter Region"),G=t(" \u2014 "),J=e("code",null,"United States, East",-1),K=t("."),Q=t("Node Type"),X=t(" \u2014 Community Node."),Z=t("Load Balancing"),$=t(" \u2014 One Active Node."),ee=e("li",null,[e("strong",null,"Starting Template"),t(" \u2014 Create an Empty Project or a Demo Project with dummy data.")],-1),te=t("Note that "),oe=t("Auto-Scaling"),se=t("is not available with the Community tier."),ne=e("p",null,"To create a Community Project:",-1),ae=e("ol",null,[e("li",null,"Open the Team Menu in the Dashboard Header and select the desired Team."),e("li",null,[t("Click "),e("strong",null,"\u201CProjects\u201D"),t(".")]),e("li",null,[t("Click "),e("strong",null,"\u201CCreate Project\u201D"),t(".")]),e("li",null,"Set the Project Name."),e("li",null,"Select the Community tier."),e("li",null,"Scroll to the bottom of the screen and choose a Starting Template."),e("li",null,[t("Click "),e("strong",null,"\u201CCreate Project\u201D"),t(".")])],-1),re=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Project Name"),e("p",null,"The Project Name displays within Directus Cloud. This can be changed at any time and is purely for organizational purposes. It has no impact on the Project itself.")],-1),le=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Standard Tier"),e("p",null,[t("Need a production-ready Project that can scale as needed?"),e("br"),t(" Create a "),e("a",{href:"#create-a-standard-project"},"Standard Project"),t(".")])],-1),ce=e("h2",{id:"create-a-standard-project"},[t("Create a Standard Project "),e("a",{class:"header-anchor",href:"#create-a-standard-project"},"#")],-1),ie=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/cloud/projects/projects-20220322A/create-a-project-20220228A.webp",alt:"Create a Standard Project"})],-1),de=t("The Standard tier is perfect for most production-ready use cases. Standard tier Projects come with custom URLs, daily "),ue=t("backups"),he=t(" and higher-powered Nodes. In addition, Node configuration can be scaled up and down as needed."),pe=e("p",null,"Standard Projects come with the following configuration options:",-1),_e=e("li",null,[e("strong",null,"Project Name"),t(" \u2014 Custom. "),e("em",null,"This can be changed at any time with no impact on the Project"),t(".")],-1),me=e("li",null,[e("strong",null,"Project URL"),t(" \u2014 Custom URL: "),e("code",null,"your-custom-url.directus.app"),t(". "),e("em",null,"This cannot be changed"),t(".")],-1),je=t("Datacenter Region"),ge=t(" \u2014 "),fe=e("code",null,"United States, East",-1),Pe=t(" or "),ye=e("code",null,"Europe, Frankfurt",-1),Ce=t("."),be=t("Node Type"),we=t(" \u2014 General Purpose or Performance Tier Nodes."),ve=t("Load Balancing"),Te=t(" \u2014 1-6 Active Nodes."),ke=t("Auto-Scaling"),Ne=t(" \u2014 0-5 Standby Nodes."),Se=e("p",null,"To create a Standard Project:",-1),Ae=e("ol",null,[e("li",null,"Open the Team Menu in the Dashboard Header and select the desired Team."),e("li",null,[t("Click "),e("strong",null,"\u201CProjects\u201D"),t(".")]),e("li",null,"Click the Team you wish to create a Project under."),e("li",null,[t("Click "),e("strong",null,"\u201CCreate Project\u201D"),t(".")]),e("li",null,"Set the Project Name as desired."),e("li",null,"Select the Standard tier."),e("li",null,"Set the configuration options as desired."),e("li",null,[t("Click "),e("strong",null,"\u201CProceed to Checkout\u201D"),t(". You will be taken to a checkout page.")]),e("li",null,[t("Enter payment information and hit "),e("strong",null,"\u201CSubscribe\u201D"),t(".")])],-1),De=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Enterprise Tier"),e("p",null,[t("Need even more power, scale, customization and support?"),e("br"),t(" Upgrade to an "),e("a",{href:"#create-an-enterprise-project"},"Enterprise Project"),t(".")])],-1),Me=e("h2",{id:"create-an-enterprise-project"},[t("Create an Enterprise Project "),e("a",{class:"header-anchor",href:"#create-an-enterprise-project"},"#")],-1),Ee=t("Enterprise tier offers power and scale to meet any Project\u2019s needs and offers 19 "),Oe=t("Datacenter regions"),Re=t(", upgraded "),Ie=t("support options"),Ue=t(", and much more."),He=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Ready to to go Enterprise?"),e("p",null,[e("a",{href:"https://directus.io/contact/",target:"_blank",rel:"noopener noreferrer"},"Contact Sales")])],-1),xe=e("h2",{id:"access-a-project"},[t("Access a Project "),e("a",{class:"header-anchor",href:"#access-a-project"},"#")],-1),Le=e("video",{alt:"Access a Project",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/cloud/projects/projects-20220329A/access-a-project-20220329A.mp4",type:"video/mp4"})],-1),qe=e("p",null,"At some point, you will want to log in and access the actual managed Project. You can go the Project\u2019s URL directly, or you can access it from within the Cloud Dashboard two different ways. To access a Project from the Cloud Dashboard:",-1),Be=e("ol",null,[e("li",null,"Open the Team Menu in the Dashboard Header and click the desired Team."),e("li",null,[t("Click "),e("strong",null,"\u201CProjects\u201D"),t(" to enter the Projects page."),e("br"),t(" From here, there are two ways to access a Project:")])],-1),Ve=e("h4",{id:"from-the-projects-page"},[t("From the Projects Page "),e("a",{class:"header-anchor",href:"#from-the-projects-page"},"#")],-1),ze=e("ol",{start:"3"},[e("li",null,[t("Click "),e("span",{mi:"",icon:""},"launch"),t(" on the desired Project. Your Project login page will open in a new tab.")])],-1),Fe=e("h4",{id:"from-project-monitor-page"},[t("From Project Monitor Page "),e("a",{class:"header-anchor",href:"#from-project-monitor-page"},"#")],-1),Ye=e("ol",{start:"3"},[e("li",null,"Click a Project to enter its Project Monitor page."),e("li",null,[t("Click "),e("strong",null,"\u201COpen Project\u201D"),t(". Your Project login page will open in a new tab.")])],-1),We=e("h2",{id:"monitor-a-project"},[t("Monitor a Project "),e("a",{class:"header-anchor",href:"#monitor-a-project"},"#")],-1),Ge=e("video",{alt:"Project Monitor Page",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/cloud/glossary/glossary-20220322A/monitor-a-project-20220322A.mp4",type:"video/mp4"})],-1),Je=e("p",null,"Graphs on the Project Monitor page display daily Project information over the last month. The four graphs on this page may help inform your decisions around configuring Nodes.",-1),Ke=e("ul",null,[e("li",null,[e("strong",null,"Combined Node Usage"),e("br"),t(" Total load placed on all Nodes. If CPU or memory are overloaded, the Node could crash! High usage is a sign that it\u2019s time to scale up.")]),e("li",null,[e("strong",null,"Horizontal Scaling"),e("br"),t(" Number of Standby Nodes activated. If one or more Standy Nodes are frequently activated, it may be time to add more Active Nodes.")]),e("li",null,[e("strong",null,"API Requests"),e("br"),t(" Number of API requests. This provides basic insight into traffic cycles, including overall volatility. If there are huge spikes in traffic, it may be wise to configure more Standby Nodes.")]),e("li",null,[e("strong",null,"API Bandwidth"),e("br"),t(" The read/write bandwidth. If bandwidth is high, it may be beneficial to vertically scale with Performance Tier or Enterprise Nodes, to better manage a larger volume of data.")])],-1),Qe=e("p",null,"To access the Project Monitor Page:",-1),Xe=e("ol",null,[e("li",null,"Open the Team Menu in the Dashboard Header and click the desired Team."),e("li",null,[t("Click "),e("strong",null,"\u201CProjects\u201D"),t(" to enter the Projects page.")]),e("li",null,"Click the Project to enter the Project Monitor page.")],-1),Ze=e("h2",{id:"manage-a-community-project"},[t("Manage a Community Project "),e("a",{class:"header-anchor",href:"#manage-a-community-project"},"#")],-1),$e=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/cloud/projects/projects-20220329A/manage-a-community-project-20220329A.webp",alt:"Manage a Project"})],-1),et=e("p",null,"On Community Projects, the only option available is to change the Project\u2019s Name. To manage a Community Project:",-1),tt=e("ol",null,[e("li",null,"Open the Team Menu in the Dashboard Header and click the desired Team."),e("li",null,[t("Click "),e("strong",null,"\u201CProjects\u201D"),t(" to enter the Projects page.")]),e("li",null,"Click the Project to enter the Project Monitor page."),e("li",null,[t("Click "),e("strong",null,"\u201CEdit\u201D"),t(" to enter the Project Details page.")]),e("li",null,"Change Project Name as desired."),e("li",null,[t("Click "),e("strong",null,"\u201CUpdate Project\u201D"),t(".")])],-1),ot=e("h2",{id:"manage-a-standard-project"},[t("Manage a Standard Project "),e("a",{class:"header-anchor",href:"#manage-a-standard-project"},"#")],-1),st=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/cloud/projects/projects-20220322A/manage-a-project-20220322A.webp",alt:"Manage a Project"})],-1),nt=t("On Standard Projects, it\u2019s possible to change the Project Name as well as reconfigure the "),at=t("Node Type"),rt=t(", number of "),lt=t("Active Nodes"),ct=t(" and number of "),it=t("Standby Nodes"),dt=t("."),ut=e("ol",null,[e("li",null,"Open the Team Menu in the Dashboard Header and click the desired Team."),e("li",null,[t("Click "),e("strong",null,"\u201CProjects\u201D"),t(" to enter the Projects page.")]),e("li",null,"Click the Project to enter the Project Monitor page."),e("li",null,[t("Click "),e("strong",null,"\u201CEdit\u201D"),t(" to enter the Project Details page.")]),e("li",null,"Make changes as desired."),e("li",null,[t("Click "),e("strong",null,"\u201CUpdate Project\u201D"),t(".")])],-1),ht=e("h2",{id:"manage-an-enterprise-project"},[t("Manage an Enterprise Project "),e("a",{class:"header-anchor",href:"#manage-an-enterprise-project"},"#")],-1),pt=e("p",null,"Each Enterprise Project is customized, so it can\u2019t be managed from the Cloud Dashboard. The Project will be managed in tandem with the Directus Core Team.",-1),_t=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Ready to to go Enterprise?"),e("p",null,[e("a",{href:"https://directus.io/contact/",target:"_blank",rel:"noopener noreferrer"},"Contact Sales")])],-1),mt=e("h2",{id:"resume-a-community-project"},[t("Resume a Community Project "),e("a",{class:"header-anchor",href:"#resume-a-community-project"},"#")],-1),jt=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/cloud/projects/projects-20220322A/resume-paused-project-20220322A.webp",alt:"Resume Paused Project"})],-1),gt=t("If there is no app activity for 3 days on a Community Project, the "),ft=t("Infrastructure"),Pt=t(" gets paused. Projects that remain paused for a certain duration will be automatically deleted (see details in "),yt=e("a",{href:"https://directus.io/cloud-policies/#",target:"_blank",rel:"noopener noreferrer"},"Cloud Policies",-1),Ct=t("). To avoid deletion, you have to manually resume the Project within the Cloud Dashboard, because requests to the app will not resume the Project. To resume a paused Community Project:"),bt=e("ol",null,[e("li",null,"Open the Team Menu in the Dashboard Header and click the desired Team."),e("li",null,[t("Click "),e("strong",null,"\u201CProjects\u201D"),t(" to enter the Projects page.")]),e("li",null,"Click the paused Project to enter the Project Monitor page."),e("li",null,[t("Click "),e("strong",null,"\u201CResume Project\u201D"),t(".")])],-1),wt=e("h2",{id:"destroy-a-project"},[t("Destroy a Project "),e("a",{class:"header-anchor",href:"#destroy-a-project"},"#")],-1),vt=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/cloud/projects/projects-20220322A/destroy-a-project-20220225A.webp",alt:"Destroying a Project"})],-1),Tt=e("p",null,"Destroying a Directus Cloud Project completely removes all its data, assets, settings and users from the platform. To destroy a Directus Cloud Project, follow these steps:",-1),kt=e("ol",null,[e("li",null,"Open the Team Menu in the Dashboard Header and click the desired Team."),e("li",null,[t("Click "),e("strong",null,"\u201CProjects\u201D"),t(" to enter the Projects page.")]),e("li",null,"Click the Project you wish to delete."),e("li",null,[t("Scroll to the bottom of the page and toggle "),e("span",{mi:"",icon:"",dngr:""},"local_fire_department"),t(".")]),e("li",null,"Type in the Project Name."),e("li",null,[t("Click "),e("strong",null,"\u201CDestroy Project\u201D"),t(".")])],-1),Nt=e("div",{class:"tip hint"},[e("p",null,[t("This action will break any external apps connecting to the Project\u2019s API or linking to Project files, and is permanent and irreversible. "),e("strong",null,"Directus Cloud is not responsible for data or files lost due to this action!")])],-1),Et={setup(St,{expose:l}){const a={title:"Cloud Projects",modularExtension:!1};return l({frontmatter:a}),(At,Dt)=>{const s=r("router-link"),c=r("DocsWrapper");return i(),d(c,{frontmatter:a},{default:o(()=>[e("div",u,[h,p,e("p",null,[_,n(s,{to:"/docs/cloud/glossary/#infrastructure"},{default:o(()=>[m]),_:1}),j,n(s,{to:"/docs/cloud/glossary/#asset-storage"},{default:o(()=>[g]),_:1}),f,n(s,{to:"/docs/cloud/glossary/#quotas"},{default:o(()=>[P]),_:1}),y,n(s,{to:"/docs/cloud/glossary/#cloud-exclusives"},{default:o(()=>[C]),_:1}),b,n(s,{to:"/docs/cloud/glossary/#support-options"},{default:o(()=>[w]),_:1}),v]),T,e("p",null,[k,n(s,{to:"/docs/cloud/overview"},{default:o(()=>[N]),_:1}),S]),A,D,e("p",null,[M,n(s,{to:"/docs/cloud/glossary/#system-status"},{default:o(()=>[E]),_:1}),O,R,I,U,H,x,L]),q,B,V,z,e("ul",null,[F,Y,e("li",null,[n(s,{to:"/docs/cloud/glossary/#datacenter-regions"},{default:o(()=>[W]),_:1}),G,J,K]),e("li",null,[n(s,{to:"/docs/cloud/glossary/#node-types"},{default:o(()=>[Q]),_:1}),X]),e("li",null,[n(s,{to:"/docs/cloud/glossary/#load-balancing"},{default:o(()=>[Z]),_:1}),$]),ee]),e("p",null,[te,n(s,{to:"/docs/cloud/glossary/#auto-scaling"},{default:o(()=>[oe]),_:1}),se]),ne,ae,re,le,ce,ie,e("p",null,[de,n(s,{to:"/docs/cloud/glossary/#backups"},{default:o(()=>[ue]),_:1}),he]),pe,e("ul",null,[_e,me,e("li",null,[n(s,{to:"/docs/cloud/glossary/#datacenter-regions"},{default:o(()=>[je]),_:1}),ge,fe,Pe,ye,Ce]),e("li",null,[n(s,{to:"/docs/cloud/glossary/#node-types"},{default:o(()=>[be]),_:1}),we]),e("li",null,[n(s,{to:"/docs/cloud/glossary/#load-balancing"},{default:o(()=>[ve]),_:1}),Te]),e("li",null,[n(s,{to:"/docs/cloud/glossary/#auto-scaling"},{default:o(()=>[ke]),_:1}),Ne])]),Se,Ae,De,Me,e("p",null,[Ee,n(s,{to:"/docs/cloud/glossary/#datacenter-regions"},{default:o(()=>[Oe]),_:1}),Re,n(s,{to:"/docs/cloud/glossary/#support-options"},{default:o(()=>[Ie]),_:1}),Ue]),He,xe,Le,qe,Be,Ve,ze,Fe,Ye,We,Ge,Je,Ke,Qe,Xe,Ze,$e,et,tt,ot,st,e("p",null,[nt,n(s,{to:"/docs/cloud/glossary/#node-types"},{default:o(()=>[at]),_:1}),rt,n(s,{to:"/docs/cloud/glossary/#active-nodes"},{default:o(()=>[lt]),_:1}),ct,n(s,{to:"/docs/cloud/glossary/#standby-nodes"},{default:o(()=>[it]),_:1}),dt]),ut,ht,pt,_t,mt,jt,e("p",null,[gt,n(s,{to:"/docs/cloud/glossary/#infrastructure"},{default:o(()=>[ft]),_:1}),Pt,yt,Ct]),bt,wt,vt,Tt,kt,Nt])]),_:1})}}};export{Et as default};
@@ -1 +1 @@
1
- import{bS as p}from"./vendor.48c33a64.js";function c(r,f){return f.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in r)){var e=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(r,i,e.get?e:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(r,f){(function(n){n(p.exports)})(function(n){n.defineMode("properties",function(){return{token:function(i,e){var t=i.sol()||e.afterSection,u=i.eol();if(e.afterSection=!1,t&&(e.nextMultiline?(e.inMultiline=!0,e.nextMultiline=!1):e.position="def"),u&&!e.nextMultiline&&(e.inMultiline=!1,e.position="def"),t)for(;i.eatSpace(););var o=i.next();return t&&(o==="#"||o==="!"||o===";")?(e.position="comment",i.skipToEnd(),"comment"):t&&o==="["?(e.afterSection=!0,i.skipTo("]"),i.eat("]"),"header"):o==="="||o===":"?(e.position="quote",null):(o==="\\"&&e.position==="quote"&&i.eol()&&(e.nextMultiline=!0),e.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),n.defineMIME("text/x-properties","properties"),n.defineMIME("text/x-ini","properties")})})();var s=l.exports,x=c({__proto__:null,default:s},[l.exports]);export{x as p};
1
+ import{bT as p}from"./vendor.c37f7cab.js";function c(r,f){return f.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in r)){var e=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(r,i,e.get?e:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(r,f){(function(n){n(p.exports)})(function(n){n.defineMode("properties",function(){return{token:function(i,e){var t=i.sol()||e.afterSection,u=i.eol();if(e.afterSection=!1,t&&(e.nextMultiline?(e.inMultiline=!0,e.nextMultiline=!1):e.position="def"),u&&!e.nextMultiline&&(e.inMultiline=!1,e.position="def"),t)for(;i.eatSpace(););var o=i.next();return t&&(o==="#"||o==="!"||o===";")?(e.position="comment",i.skipToEnd(),"comment"):t&&o==="["?(e.afterSection=!0,i.skipTo("]"),i.eat("]"),"header"):o==="="||o===":"?(e.position="quote",null):(o==="\\"&&e.position==="quote"&&i.eol()&&(e.nextMultiline=!0),e.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),n.defineMIME("text/x-properties","properties"),n.defineMIME("text/x-ini","properties")})})();var s=l.exports,x=c({__proto__:null,default:s},[l.exports]);export{x as p};
@@ -1 +1 @@
1
- import{bS as p}from"./vendor.48c33a64.js";function d(o,i){return i.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(t){if(t!=="default"&&!(t in o)){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}})}),Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var f={exports:{}};(function(o,i){(function(r){r(p.exports)})(function(r){function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],u=t(n);r.registerHelper("hintWords","protobuf",n);var a=new RegExp("^[_A-Za-z\xA1-\uFFFF][_A-Za-z0-9\xA1-\uFFFF]*");function c(e){return e.eatSpace()?null:e.match("//")?(e.skipToEnd(),"comment"):e.match(/^[0-9\.+-]/,!1)&&(e.match(/^[+-]?0x[0-9a-fA-F]+/)||e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))?"number":e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(u)?"keyword":e.match(a)?"variable":(e.next(),null)}r.defineMode("protobuf",function(){return{token:c,fold:"brace"}}),r.defineMIME("text/x-protobuf","protobuf")})})();var s=f.exports,l=d({__proto__:null,default:s},[f.exports]);export{l as p};
1
+ import{bT as p}from"./vendor.c37f7cab.js";function d(o,f){return f.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(t){if(t!=="default"&&!(t in o)){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}})}),Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var i={exports:{}};(function(o,f){(function(r){r(p.exports)})(function(r){function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],u=t(n);r.registerHelper("hintWords","protobuf",n);var a=new RegExp("^[_A-Za-z\xA1-\uFFFF][_A-Za-z0-9\xA1-\uFFFF]*");function c(e){return e.eatSpace()?null:e.match("//")?(e.skipToEnd(),"comment"):e.match(/^[0-9\.+-]/,!1)&&(e.match(/^[+-]?0x[0-9a-fA-F]+/)||e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))?"number":e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(u)?"keyword":e.match(a)?"variable":(e.next(),null)}r.defineMode("protobuf",function(){return{token:c,fold:"brace"}}),r.defineMIME("text/x-protobuf","protobuf")})})();var s=i.exports,l=d({__proto__:null,default:s},[i.exports]);export{l as p};
@@ -1 +1 @@
1
- import{bS as un}from"./vendor.48c33a64.js";import{a as cn}from"./javascript.95ea34e5.js";import{a as fn}from"./css.643fd125.js";import{a as ln}from"./htmlmixed.6fb46fc5.js";function an(f,o){return o.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(u){if(u!=="default"&&!(u in f)){var r=Object.getOwnPropertyDescriptor(t,u);Object.defineProperty(f,u,r.get?r:{enumerable:!0,get:function(){return t[u]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(f,o){(function(t){t(un.exports,cn.exports,fn.exports,ln.exports)})(function(t){t.defineMode("pug",function(u){var r="keyword",g="meta",j="builtin",b="qualifier",p={"{":"}","(":")","[":"]"},c=t.getMode(u,"javascript");function l(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=t.startState(c),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}l.prototype.copy=function(){var n=new l;return n.javaScriptLine=this.javaScriptLine,n.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,n.javaScriptArguments=this.javaScriptArguments,n.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,n.isInterpolating=this.isInterpolating,n.interpolationNesting=this.interpolationNesting,n.jsState=t.copyState(c,this.jsState),n.innerMode=this.innerMode,this.innerMode&&this.innerState&&(n.innerState=t.copyState(this.innerMode,this.innerState)),n.restOfLine=this.restOfLine,n.isIncludeFiltered=this.isIncludeFiltered,n.isEach=this.isEach,n.lastTag=this.lastTag,n.scriptType=this.scriptType,n.isAttrs=this.isAttrs,n.attrsNest=this.attrsNest.slice(),n.inAttributeName=this.inAttributeName,n.attributeIsType=this.attributeIsType,n.attrValue=this.attrValue,n.indentOf=this.indentOf,n.indentToken=this.indentToken,n.innerModeForLine=this.innerModeForLine,n};function L(n,i){if(n.sol()&&(i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1),i.javaScriptLine){if(i.javaScriptLineExcludesColon&&n.peek()===":"){i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1;return}var e=c.token(n,i.jsState);return n.eol()&&(i.javaScriptLine=!1),e||!0}}function y(n,i){if(i.javaScriptArguments){if(i.javaScriptArgumentsDepth===0&&n.peek()!=="("){i.javaScriptArguments=!1;return}if(n.peek()==="("?i.javaScriptArgumentsDepth++:n.peek()===")"&&i.javaScriptArgumentsDepth--,i.javaScriptArgumentsDepth===0){i.javaScriptArguments=!1;return}var e=c.token(n,i.jsState);return e||!0}}function x(n){if(n.match(/^yield\b/))return"keyword"}function A(n){if(n.match(/^(?:doctype) *([^\n]+)?/))return g}function h(n,i){if(n.match("#{"))return i.isInterpolating=!0,i.interpolationNesting=0,"punctuation"}function T(n,i){if(i.isInterpolating){if(n.peek()==="}"){if(i.interpolationNesting--,i.interpolationNesting<0)return n.next(),i.isInterpolating=!1,"punctuation"}else n.peek()==="{"&&i.interpolationNesting++;return c.token(n,i.jsState)||!0}}function O(n,i){if(n.match(/^case\b/))return i.javaScriptLine=!0,r}function k(n,i){if(n.match(/^when\b/))return i.javaScriptLine=!0,i.javaScriptLineExcludesColon=!0,r}function N(n){if(n.match(/^default\b/))return r}function w(n,i){if(n.match(/^extends?\b/))return i.restOfLine="string",r}function I(n,i){if(n.match(/^append\b/))return i.restOfLine="variable",r}function E(n,i){if(n.match(/^prepend\b/))return i.restOfLine="variable",r}function F(n,i){if(n.match(/^block\b *(?:(prepend|append)\b)?/))return i.restOfLine="variable",r}function D(n,i){if(n.match(/^include\b/))return i.restOfLine="string",r}function M(n,i){if(n.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&n.match("include"))return i.isIncludeFiltered=!0,r}function C(n,i){if(i.isIncludeFiltered){var e=s(n,i);return i.isIncludeFiltered=!1,i.restOfLine="string",e}}function m(n,i){if(n.match(/^mixin\b/))return i.javaScriptLine=!0,r}function V(n,i){if(n.match(/^\+([-\w]+)/))return n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),"variable";if(n.match("+#{",!1))return n.next(),i.mixinCallAfter=!0,h(n,i)}function _(n,i){if(i.mixinCallAfter)return i.mixinCallAfter=!1,n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),!0}function P(n,i){if(n.match(/^(if|unless|else if|else)\b/))return i.javaScriptLine=!0,r}function $(n,i){if(n.match(/^(- *)?(each|for)\b/))return i.isEach=!0,r}function z(n,i){if(i.isEach){if(n.match(/^ in\b/))return i.javaScriptLine=!0,i.isEach=!1,r;if(n.sol()||n.eol())i.isEach=!1;else if(n.next()){for(;!n.match(/^ in\b/,!1)&&n.next(););return"variable"}}}function R(n,i){if(n.match(/^while\b/))return i.javaScriptLine=!0,r}function Y(n,i){var e;if(e=n.match(/^(\w(?:[-:\w]*\w)?)\/?/))return i.lastTag=e[1].toLowerCase(),i.lastTag==="script"&&(i.scriptType="application/javascript"),"tag"}function s(n,i){if(n.match(/^:([\w\-]+)/)){var e;return u&&u.innerModes&&(e=u.innerModes(n.current().substring(1))),e||(e=n.current().substring(1)),typeof e=="string"&&(e=t.getMode(u,e)),a(n,i,e),"atom"}}function q(n,i){if(n.match(/^(!?=|-)/))return i.javaScriptLine=!0,"punctuation"}function B(n){if(n.match(/^#([\w-]+)/))return j}function K(n){if(n.match(/^\.([\w-]+)/))return b}function U(n,i){if(n.peek()=="(")return n.next(),i.isAttrs=!0,i.attrsNest=[],i.inAttributeName=!0,i.attrValue="",i.attributeIsType=!1,"punctuation"}function d(n,i){if(i.isAttrs){if(p[n.peek()]&&i.attrsNest.push(p[n.peek()]),i.attrsNest[i.attrsNest.length-1]===n.peek())i.attrsNest.pop();else if(n.eat(")"))return i.isAttrs=!1,"punctuation";if(i.inAttributeName&&n.match(/^[^=,\)!]+/))return(n.peek()==="="||n.peek()==="!")&&(i.inAttributeName=!1,i.jsState=t.startState(c),i.lastTag==="script"&&n.current().trim().toLowerCase()==="type"?i.attributeIsType=!0:i.attributeIsType=!1),"attribute";var e=c.token(n,i.jsState);if(i.attributeIsType&&e==="string"&&(i.scriptType=n.current().toString()),i.attrsNest.length===0&&(e==="string"||e==="variable"||e==="keyword"))try{return Function("","var x "+i.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),i.inAttributeName=!0,i.attrValue="",n.backUp(n.current().length),d(n,i)}catch{}return i.attrValue+=n.current(),e||!0}}function W(n,i){if(n.match(/^&attributes\b/))return i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0,"keyword"}function Z(n){if(n.sol()&&n.eatSpace())return"indent"}function G(n,i){if(n.match(/^ *\/\/(-)?([^\n]*)/))return i.indentOf=n.indentation(),i.indentToken="comment","comment"}function H(n){if(n.match(/^: */))return"colon"}function J(n,i){if(n.match(/^(?:\| ?| )([^\n]+)/))return"string";if(n.match(/^(<[^\n]*)/,!1))return a(n,i,"htmlmixed"),i.innerModeForLine=!0,S(n,i,!0)}function Q(n,i){if(n.eat(".")){var e=null;return i.lastTag==="script"&&i.scriptType.toLowerCase().indexOf("javascript")!=-1?e=i.scriptType.toLowerCase().replace(/"|'/g,""):i.lastTag==="style"&&(e="css"),a(n,i,e),"dot"}}function X(n){return n.next(),null}function a(n,i,e){e=t.mimeModes[e]||e,e=u.innerModes&&u.innerModes(e)||e,e=t.mimeModes[e]||e,e=t.getMode(u,e),i.indentOf=n.indentation(),e&&e.name!=="null"?i.innerMode=e:i.indentToken="string"}function S(n,i,e){if(n.indentation()>i.indentOf||i.innerModeForLine&&!n.sol()||e)return i.innerMode?(i.innerState||(i.innerState=i.innerMode.startState?t.startState(i.innerMode,n.indentation()):{}),n.hideFirstChars(i.indentOf+2,function(){return i.innerMode.token(n,i.innerState)||!0})):(n.skipToEnd(),i.indentToken);n.sol()&&(i.indentOf=1/0,i.indentToken=null,i.innerMode=null,i.innerState=null)}function nn(n,i){if(n.sol()&&(i.restOfLine=""),i.restOfLine){n.skipToEnd();var e=i.restOfLine;return i.restOfLine="",e}}function en(){return new l}function tn(n){return n.copy()}function rn(n,i){var e=S(n,i)||nn(n,i)||T(n,i)||C(n,i)||z(n,i)||d(n,i)||L(n,i)||y(n,i)||_(n,i)||x(n)||A(n)||h(n,i)||O(n,i)||k(n,i)||N(n)||w(n,i)||I(n,i)||E(n,i)||F(n,i)||D(n,i)||M(n,i)||m(n,i)||V(n,i)||P(n,i)||$(n,i)||R(n,i)||Y(n,i)||s(n,i)||q(n,i)||B(n)||K(n)||U(n,i)||W(n,i)||Z(n)||J(n,i)||G(n,i)||H(n)||Q(n,i)||X(n);return e===!0?null:e}return{startState:en,copyState:tn,token:rn}},"javascript","css","htmlmixed"),t.defineMIME("text/x-pug","pug"),t.defineMIME("text/x-jade","pug")})})();var on=v.exports,vn=an({__proto__:null,default:on},[v.exports]);export{v as a,vn as p};
1
+ import{bT as un}from"./vendor.c37f7cab.js";import{a as cn}from"./javascript.4f51ecf0.js";import{a as fn}from"./css.4143f596.js";import{a as ln}from"./htmlmixed.634bf459.js";function an(f,o){return o.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(u){if(u!=="default"&&!(u in f)){var r=Object.getOwnPropertyDescriptor(t,u);Object.defineProperty(f,u,r.get?r:{enumerable:!0,get:function(){return t[u]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(f,o){(function(t){t(un.exports,cn.exports,fn.exports,ln.exports)})(function(t){t.defineMode("pug",function(u){var r="keyword",g="meta",j="builtin",b="qualifier",p={"{":"}","(":")","[":"]"},c=t.getMode(u,"javascript");function l(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=t.startState(c),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}l.prototype.copy=function(){var n=new l;return n.javaScriptLine=this.javaScriptLine,n.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,n.javaScriptArguments=this.javaScriptArguments,n.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,n.isInterpolating=this.isInterpolating,n.interpolationNesting=this.interpolationNesting,n.jsState=t.copyState(c,this.jsState),n.innerMode=this.innerMode,this.innerMode&&this.innerState&&(n.innerState=t.copyState(this.innerMode,this.innerState)),n.restOfLine=this.restOfLine,n.isIncludeFiltered=this.isIncludeFiltered,n.isEach=this.isEach,n.lastTag=this.lastTag,n.scriptType=this.scriptType,n.isAttrs=this.isAttrs,n.attrsNest=this.attrsNest.slice(),n.inAttributeName=this.inAttributeName,n.attributeIsType=this.attributeIsType,n.attrValue=this.attrValue,n.indentOf=this.indentOf,n.indentToken=this.indentToken,n.innerModeForLine=this.innerModeForLine,n};function L(n,i){if(n.sol()&&(i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1),i.javaScriptLine){if(i.javaScriptLineExcludesColon&&n.peek()===":"){i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1;return}var e=c.token(n,i.jsState);return n.eol()&&(i.javaScriptLine=!1),e||!0}}function y(n,i){if(i.javaScriptArguments){if(i.javaScriptArgumentsDepth===0&&n.peek()!=="("){i.javaScriptArguments=!1;return}if(n.peek()==="("?i.javaScriptArgumentsDepth++:n.peek()===")"&&i.javaScriptArgumentsDepth--,i.javaScriptArgumentsDepth===0){i.javaScriptArguments=!1;return}var e=c.token(n,i.jsState);return e||!0}}function x(n){if(n.match(/^yield\b/))return"keyword"}function A(n){if(n.match(/^(?:doctype) *([^\n]+)?/))return g}function h(n,i){if(n.match("#{"))return i.isInterpolating=!0,i.interpolationNesting=0,"punctuation"}function T(n,i){if(i.isInterpolating){if(n.peek()==="}"){if(i.interpolationNesting--,i.interpolationNesting<0)return n.next(),i.isInterpolating=!1,"punctuation"}else n.peek()==="{"&&i.interpolationNesting++;return c.token(n,i.jsState)||!0}}function O(n,i){if(n.match(/^case\b/))return i.javaScriptLine=!0,r}function k(n,i){if(n.match(/^when\b/))return i.javaScriptLine=!0,i.javaScriptLineExcludesColon=!0,r}function N(n){if(n.match(/^default\b/))return r}function w(n,i){if(n.match(/^extends?\b/))return i.restOfLine="string",r}function I(n,i){if(n.match(/^append\b/))return i.restOfLine="variable",r}function E(n,i){if(n.match(/^prepend\b/))return i.restOfLine="variable",r}function F(n,i){if(n.match(/^block\b *(?:(prepend|append)\b)?/))return i.restOfLine="variable",r}function D(n,i){if(n.match(/^include\b/))return i.restOfLine="string",r}function M(n,i){if(n.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&n.match("include"))return i.isIncludeFiltered=!0,r}function C(n,i){if(i.isIncludeFiltered){var e=s(n,i);return i.isIncludeFiltered=!1,i.restOfLine="string",e}}function m(n,i){if(n.match(/^mixin\b/))return i.javaScriptLine=!0,r}function V(n,i){if(n.match(/^\+([-\w]+)/))return n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),"variable";if(n.match("+#{",!1))return n.next(),i.mixinCallAfter=!0,h(n,i)}function _(n,i){if(i.mixinCallAfter)return i.mixinCallAfter=!1,n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),!0}function P(n,i){if(n.match(/^(if|unless|else if|else)\b/))return i.javaScriptLine=!0,r}function $(n,i){if(n.match(/^(- *)?(each|for)\b/))return i.isEach=!0,r}function z(n,i){if(i.isEach){if(n.match(/^ in\b/))return i.javaScriptLine=!0,i.isEach=!1,r;if(n.sol()||n.eol())i.isEach=!1;else if(n.next()){for(;!n.match(/^ in\b/,!1)&&n.next(););return"variable"}}}function R(n,i){if(n.match(/^while\b/))return i.javaScriptLine=!0,r}function Y(n,i){var e;if(e=n.match(/^(\w(?:[-:\w]*\w)?)\/?/))return i.lastTag=e[1].toLowerCase(),i.lastTag==="script"&&(i.scriptType="application/javascript"),"tag"}function s(n,i){if(n.match(/^:([\w\-]+)/)){var e;return u&&u.innerModes&&(e=u.innerModes(n.current().substring(1))),e||(e=n.current().substring(1)),typeof e=="string"&&(e=t.getMode(u,e)),a(n,i,e),"atom"}}function q(n,i){if(n.match(/^(!?=|-)/))return i.javaScriptLine=!0,"punctuation"}function B(n){if(n.match(/^#([\w-]+)/))return j}function K(n){if(n.match(/^\.([\w-]+)/))return b}function U(n,i){if(n.peek()=="(")return n.next(),i.isAttrs=!0,i.attrsNest=[],i.inAttributeName=!0,i.attrValue="",i.attributeIsType=!1,"punctuation"}function d(n,i){if(i.isAttrs){if(p[n.peek()]&&i.attrsNest.push(p[n.peek()]),i.attrsNest[i.attrsNest.length-1]===n.peek())i.attrsNest.pop();else if(n.eat(")"))return i.isAttrs=!1,"punctuation";if(i.inAttributeName&&n.match(/^[^=,\)!]+/))return(n.peek()==="="||n.peek()==="!")&&(i.inAttributeName=!1,i.jsState=t.startState(c),i.lastTag==="script"&&n.current().trim().toLowerCase()==="type"?i.attributeIsType=!0:i.attributeIsType=!1),"attribute";var e=c.token(n,i.jsState);if(i.attributeIsType&&e==="string"&&(i.scriptType=n.current().toString()),i.attrsNest.length===0&&(e==="string"||e==="variable"||e==="keyword"))try{return Function("","var x "+i.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),i.inAttributeName=!0,i.attrValue="",n.backUp(n.current().length),d(n,i)}catch{}return i.attrValue+=n.current(),e||!0}}function W(n,i){if(n.match(/^&attributes\b/))return i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0,"keyword"}function Z(n){if(n.sol()&&n.eatSpace())return"indent"}function G(n,i){if(n.match(/^ *\/\/(-)?([^\n]*)/))return i.indentOf=n.indentation(),i.indentToken="comment","comment"}function H(n){if(n.match(/^: */))return"colon"}function J(n,i){if(n.match(/^(?:\| ?| )([^\n]+)/))return"string";if(n.match(/^(<[^\n]*)/,!1))return a(n,i,"htmlmixed"),i.innerModeForLine=!0,S(n,i,!0)}function Q(n,i){if(n.eat(".")){var e=null;return i.lastTag==="script"&&i.scriptType.toLowerCase().indexOf("javascript")!=-1?e=i.scriptType.toLowerCase().replace(/"|'/g,""):i.lastTag==="style"&&(e="css"),a(n,i,e),"dot"}}function X(n){return n.next(),null}function a(n,i,e){e=t.mimeModes[e]||e,e=u.innerModes&&u.innerModes(e)||e,e=t.mimeModes[e]||e,e=t.getMode(u,e),i.indentOf=n.indentation(),e&&e.name!=="null"?i.innerMode=e:i.indentToken="string"}function S(n,i,e){if(n.indentation()>i.indentOf||i.innerModeForLine&&!n.sol()||e)return i.innerMode?(i.innerState||(i.innerState=i.innerMode.startState?t.startState(i.innerMode,n.indentation()):{}),n.hideFirstChars(i.indentOf+2,function(){return i.innerMode.token(n,i.innerState)||!0})):(n.skipToEnd(),i.indentToken);n.sol()&&(i.indentOf=1/0,i.indentToken=null,i.innerMode=null,i.innerState=null)}function nn(n,i){if(n.sol()&&(i.restOfLine=""),i.restOfLine){n.skipToEnd();var e=i.restOfLine;return i.restOfLine="",e}}function en(){return new l}function tn(n){return n.copy()}function rn(n,i){var e=S(n,i)||nn(n,i)||T(n,i)||C(n,i)||z(n,i)||d(n,i)||L(n,i)||y(n,i)||_(n,i)||x(n)||A(n)||h(n,i)||O(n,i)||k(n,i)||N(n)||w(n,i)||I(n,i)||E(n,i)||F(n,i)||D(n,i)||M(n,i)||m(n,i)||V(n,i)||P(n,i)||$(n,i)||R(n,i)||Y(n,i)||s(n,i)||q(n,i)||B(n)||K(n)||U(n,i)||W(n,i)||Z(n)||J(n,i)||G(n,i)||H(n)||Q(n,i)||X(n);return e===!0?null:e}return{startState:en,copyState:tn,token:rn}},"javascript","css","htmlmixed"),t.defineMIME("text/x-pug","pug"),t.defineMIME("text/x-jade","pug")})})();var on=v.exports,vn=an({__proto__:null,default:on},[v.exports]);export{v as a,vn as p};
@@ -1 +1 @@
1
- import{bS as _}from"./vendor.48c33a64.js";function v(a,l){return l.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(o){if(o!=="default"&&!(o in a)){var u=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(a,o,u.get?u:{enumerable:!0,get:function(){return r[o]}})}})}),Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var d={exports:{}};(function(a,l){(function(r){r(_.exports)})(function(r){r.defineMode("puppet",function(){var o={},u=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function f(e,n){for(var i=n.split(" "),c=0;c<i.length;c++)o[i[c]]=e}f("keyword","class define site node include import inherits"),f("keyword","case if else in and elsif default or"),f("atom","false true running present absent file directory undef"),f("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");function p(e,n){for(var i,c,s=!1;!e.eol()&&(i=e.next())!=n.pending;){if(i==="$"&&c!="\\"&&n.pending=='"'){s=!0;break}c=i}return s&&e.backUp(1),i==n.pending?n.continueString=!1:n.continueString=!0,"string"}function g(e,n){var i=e.match(/[\w]+/,!1),c=e.match(/(\s+)?\w+\s+=>.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),h=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),t=e.next();if(t==="$")return e.match(u)?n.continueString?"variable-2":"variable":"error";if(n.continueString)return e.backUp(1),p(e,n);if(n.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),n.inDefinition=!1}return n.inInclude?(e.match(/(\s+)?\S+(\s+)?/),n.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):c?(e.match(/(\s+)?\w+/),"tag"):i&&o.hasOwnProperty(i)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),i=="include"&&(n.inInclude=!0),o[i]):/(^|\s+)[A-Z][\w:_]+/.test(i)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(e.match(/(\s+)?[\w:_]+/),"def"):h?(e.match(/(\s+)?[@]{1,2}/),"special"):t=="#"?(e.skipToEnd(),"comment"):t=="'"||t=='"'?(n.pending=t,p(e,n)):t=="{"||t=="}"?"bracket":t=="/"?(e.match(/^[^\/]*\//),"variable-3"):t.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):t=="="?(e.peek()==">"&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}return{startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,n){return e.eatSpace()?null:g(e,n)}}}),r.defineMIME("text/x-puppet","puppet")})})();var b=d.exports,y=v({__proto__:null,default:b},[d.exports]);export{y as p};
1
+ import{bT as _}from"./vendor.c37f7cab.js";function v(a,l){return l.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(o){if(o!=="default"&&!(o in a)){var u=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(a,o,u.get?u:{enumerable:!0,get:function(){return r[o]}})}})}),Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var d={exports:{}};(function(a,l){(function(r){r(_.exports)})(function(r){r.defineMode("puppet",function(){var o={},u=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function f(e,n){for(var i=n.split(" "),c=0;c<i.length;c++)o[i[c]]=e}f("keyword","class define site node include import inherits"),f("keyword","case if else in and elsif default or"),f("atom","false true running present absent file directory undef"),f("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");function p(e,n){for(var i,c,s=!1;!e.eol()&&(i=e.next())!=n.pending;){if(i==="$"&&c!="\\"&&n.pending=='"'){s=!0;break}c=i}return s&&e.backUp(1),i==n.pending?n.continueString=!1:n.continueString=!0,"string"}function g(e,n){var i=e.match(/[\w]+/,!1),c=e.match(/(\s+)?\w+\s+=>.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),h=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),t=e.next();if(t==="$")return e.match(u)?n.continueString?"variable-2":"variable":"error";if(n.continueString)return e.backUp(1),p(e,n);if(n.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),n.inDefinition=!1}return n.inInclude?(e.match(/(\s+)?\S+(\s+)?/),n.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):c?(e.match(/(\s+)?\w+/),"tag"):i&&o.hasOwnProperty(i)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),i=="include"&&(n.inInclude=!0),o[i]):/(^|\s+)[A-Z][\w:_]+/.test(i)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(e.match(/(\s+)?[\w:_]+/),"def"):h?(e.match(/(\s+)?[@]{1,2}/),"special"):t=="#"?(e.skipToEnd(),"comment"):t=="'"||t=='"'?(n.pending=t,p(e,n)):t=="{"||t=="}"?"bracket":t=="/"?(e.match(/^[^\/]*\//),"variable-3"):t.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):t=="="?(e.peek()==">"&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}return{startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,n){return e.eatSpace()?null:g(e,n)}}}),r.defineMIME("text/x-puppet","puppet")})})();var b=d.exports,y=v({__proto__:null,default:b},[d.exports]);export{y as p};
@@ -1 +1 @@
1
- import{bS as J}from"./vendor.48c33a64.js";function K(b,S){return S.forEach(function(c){c&&typeof c!="string"&&!Array.isArray(c)&&Object.keys(c).forEach(function(p){if(p!=="default"&&!(p in b)){var v=Object.getOwnPropertyDescriptor(c,p);Object.defineProperty(b,p,v.get?v:{enumerable:!0,get:function(){return c[p]}})}})}),Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}};(function(b,S){(function(c){c(J.exports)})(function(c){function p(a){return new RegExp("^(("+a.join(")|(")+"))\\b")}var v=p(["and","or","not","is"]),E=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],O=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];c.registerHelper("hintWords","python",E.concat(O));function f(a){return a.scopes[a.scopes.length-1]}c.defineMode("python",function(a,l){for(var h="error",B=l.delimiters||l.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,s=[l.singleOperators,l.doubleOperators,l.doubleDelimiters,l.tripleDelimiters,l.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],k=0;k<s.length;k++)s[k]||s.splice(k--,1);var z=l.hangingIndent||a.indentUnit,y=E,g=O;l.extra_keywords!=null&&(y=y.concat(l.extra_keywords)),l.extra_builtins!=null&&(g=g.concat(l.extra_builtins));var T=!(l.version&&Number(l.version)<3);if(T){var x=l.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;y=y.concat(["nonlocal","False","True","None","async","await"]),g=g.concat(["ascii","bytes","exec","print"]);var F=new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var x=l.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;y=y.concat(["exec","print"]),g=g.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var F=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var N=p(y),P=p(g);function m(e,n){var r=e.sol()&&n.lastToken!="\\";if(r&&(n.indent=e.indentation()),r&&f(n).type=="py"){var i=f(n).offset;if(e.eatSpace()){var t=e.indentation();return t>i?A(n):t<i&&I(e,n)&&e.peek()!="#"&&(n.errorToken=!0),null}else{var u=_(e,n);return i>0&&I(e,n)&&(u+=" "+h),u}}return _(e,n)}function _(e,n,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var t=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(t=!0),e.match(/^0b[01_]+/i)&&(t=!0),e.match(/^0o[0-7_]+/i)&&(t=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),t=!0),e.match(/^0(?![\dx])/i)&&(t=!0),t)return e.eat(/L/i),"number"}if(e.match(F)){var u=e.current().toLowerCase().indexOf("f")!==-1;return u?(n.tokenize=D(e.current(),n.tokenize),n.tokenize(e,n)):(n.tokenize=$(e.current(),n.tokenize),n.tokenize(e,n))}for(var o=0;o<s.length;o++)if(e.match(s[o]))return"operator";return e.match(B)?"punctuation":n.lastToken=="."&&e.match(x)?"property":e.match(N)||e.match(v)?"keyword":e.match(P)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(x)?n.lastToken=="def"||n.lastToken=="class"?"def":"variable":(e.next(),r?null:h)}function D(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,i="string";function t(o){return function(d,w){var j=_(d,w,!0);return j=="punctuation"&&(d.current()=="{"?w.tokenize=t(o+1):d.current()=="}"&&(o>1?w.tokenize=t(o-1):w.tokenize=u)),j}}function u(o,d){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return d.tokenize=n,i;if(o.match("{{"))return i;if(o.match("{",!1))return d.tokenize=t(0),o.current()?i:d.tokenize(o,d);if(o.match("}}"))return i;if(o.match("}"))return h;o.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;d.tokenize=n}return i}return u.isString=!0,u}function $(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,i="string";function t(u,o){for(;!u.eol();)if(u.eatWhile(/[^'"\\]/),u.eat("\\")){if(u.next(),r&&u.eol())return i}else{if(u.match(e))return o.tokenize=n,i;u.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;o.tokenize=n}return i}return t.isString=!0,t}function A(e){for(;f(e).type!="py";)e.scopes.pop();e.scopes.push({offset:f(e).offset+a.indentUnit,type:"py",align:null})}function U(e,n,r){var i=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;n.scopes.push({offset:n.indent+z,type:r,align:i})}function I(e,n){for(var r=e.indentation();n.scopes.length>1&&f(n).offset>r;){if(f(n).type!="py")return!0;n.scopes.pop()}return f(n).offset!=r}function Z(e,n){e.sol()&&(n.beginningOfLine=!0,n.dedent=!1);var r=n.tokenize(e,n),i=e.current();if(n.beginningOfLine&&i=="@")return e.match(x,!1)?"meta":T?"operator":h;if(/\S/.test(i)&&(n.beginningOfLine=!1),(r=="variable"||r=="builtin")&&n.lastToken=="meta"&&(r="meta"),(i=="pass"||i=="return")&&(n.dedent=!0),i=="lambda"&&(n.lambda=!0),i==":"&&!n.lambda&&f(n).type=="py"&&e.match(/^\s*(?:#|$)/,!1)&&A(n),i.length==1&&!/string|comment/.test(r)){var t="[({".indexOf(i);if(t!=-1&&U(e,n,"])}".slice(t,t+1)),t="])}".indexOf(i),t!=-1)if(f(n).type==i)n.indent=n.scopes.pop().offset-z;else return h}return n.dedent&&e.eol()&&f(n).type=="py"&&n.scopes.length>1&&n.scopes.pop(),r}var W={startState:function(e){return{tokenize:m,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,n){var r=n.errorToken;r&&(n.errorToken=!1);var i=Z(e,n);return i&&i!="comment"&&(n.lastToken=i=="keyword"||i=="punctuation"?e.current():i),i=="punctuation"&&(i=null),e.eol()&&n.lambda&&(n.lambda=!1),r?i+" "+h:i},indent:function(e,n){if(e.tokenize!=m)return e.tokenize.isString?c.Pass:0;var r=f(e),i=r.type==n.charAt(0)||r.type=="py"&&!e.dedent&&/^(else:|elif |except |finally:)/.test(n);return r.align!=null?r.align-(i?1:0):r.offset-(i?z:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return W}),c.defineMIME("text/x-python","python");var R=function(a){return a.split(" ")};c.defineMIME("text/x-cython",{name:"python",extra_keywords:R("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();var M=L.exports,q=K({__proto__:null,default:M},[L.exports]);export{L as a,q as p};
1
+ import{bT as J}from"./vendor.c37f7cab.js";function K(b,S){return S.forEach(function(c){c&&typeof c!="string"&&!Array.isArray(c)&&Object.keys(c).forEach(function(p){if(p!=="default"&&!(p in b)){var v=Object.getOwnPropertyDescriptor(c,p);Object.defineProperty(b,p,v.get?v:{enumerable:!0,get:function(){return c[p]}})}})}),Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}};(function(b,S){(function(c){c(J.exports)})(function(c){function p(a){return new RegExp("^(("+a.join(")|(")+"))\\b")}var v=p(["and","or","not","is"]),E=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],T=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];c.registerHelper("hintWords","python",E.concat(T));function f(a){return a.scopes[a.scopes.length-1]}c.defineMode("python",function(a,l){for(var h="error",B=l.delimiters||l.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,s=[l.singleOperators,l.doubleOperators,l.doubleDelimiters,l.tripleDelimiters,l.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],k=0;k<s.length;k++)s[k]||s.splice(k--,1);var z=l.hangingIndent||a.indentUnit,y=E,g=T;l.extra_keywords!=null&&(y=y.concat(l.extra_keywords)),l.extra_builtins!=null&&(g=g.concat(l.extra_builtins));var O=!(l.version&&Number(l.version)<3);if(O){var x=l.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;y=y.concat(["nonlocal","False","True","None","async","await"]),g=g.concat(["ascii","bytes","exec","print"]);var F=new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var x=l.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;y=y.concat(["exec","print"]),g=g.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var F=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var N=p(y),P=p(g);function m(e,n){var r=e.sol()&&n.lastToken!="\\";if(r&&(n.indent=e.indentation()),r&&f(n).type=="py"){var i=f(n).offset;if(e.eatSpace()){var t=e.indentation();return t>i?A(n):t<i&&I(e,n)&&e.peek()!="#"&&(n.errorToken=!0),null}else{var u=_(e,n);return i>0&&I(e,n)&&(u+=" "+h),u}}return _(e,n)}function _(e,n,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var t=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(t=!0),e.match(/^0b[01_]+/i)&&(t=!0),e.match(/^0o[0-7_]+/i)&&(t=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),t=!0),e.match(/^0(?![\dx])/i)&&(t=!0),t)return e.eat(/L/i),"number"}if(e.match(F)){var u=e.current().toLowerCase().indexOf("f")!==-1;return u?(n.tokenize=D(e.current(),n.tokenize),n.tokenize(e,n)):(n.tokenize=$(e.current(),n.tokenize),n.tokenize(e,n))}for(var o=0;o<s.length;o++)if(e.match(s[o]))return"operator";return e.match(B)?"punctuation":n.lastToken=="."&&e.match(x)?"property":e.match(N)||e.match(v)?"keyword":e.match(P)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(x)?n.lastToken=="def"||n.lastToken=="class"?"def":"variable":(e.next(),r?null:h)}function D(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,i="string";function t(o){return function(d,w){var j=_(d,w,!0);return j=="punctuation"&&(d.current()=="{"?w.tokenize=t(o+1):d.current()=="}"&&(o>1?w.tokenize=t(o-1):w.tokenize=u)),j}}function u(o,d){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return d.tokenize=n,i;if(o.match("{{"))return i;if(o.match("{",!1))return d.tokenize=t(0),o.current()?i:d.tokenize(o,d);if(o.match("}}"))return i;if(o.match("}"))return h;o.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;d.tokenize=n}return i}return u.isString=!0,u}function $(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,i="string";function t(u,o){for(;!u.eol();)if(u.eatWhile(/[^'"\\]/),u.eat("\\")){if(u.next(),r&&u.eol())return i}else{if(u.match(e))return o.tokenize=n,i;u.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;o.tokenize=n}return i}return t.isString=!0,t}function A(e){for(;f(e).type!="py";)e.scopes.pop();e.scopes.push({offset:f(e).offset+a.indentUnit,type:"py",align:null})}function U(e,n,r){var i=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;n.scopes.push({offset:n.indent+z,type:r,align:i})}function I(e,n){for(var r=e.indentation();n.scopes.length>1&&f(n).offset>r;){if(f(n).type!="py")return!0;n.scopes.pop()}return f(n).offset!=r}function Z(e,n){e.sol()&&(n.beginningOfLine=!0,n.dedent=!1);var r=n.tokenize(e,n),i=e.current();if(n.beginningOfLine&&i=="@")return e.match(x,!1)?"meta":O?"operator":h;if(/\S/.test(i)&&(n.beginningOfLine=!1),(r=="variable"||r=="builtin")&&n.lastToken=="meta"&&(r="meta"),(i=="pass"||i=="return")&&(n.dedent=!0),i=="lambda"&&(n.lambda=!0),i==":"&&!n.lambda&&f(n).type=="py"&&e.match(/^\s*(?:#|$)/,!1)&&A(n),i.length==1&&!/string|comment/.test(r)){var t="[({".indexOf(i);if(t!=-1&&U(e,n,"])}".slice(t,t+1)),t="])}".indexOf(i),t!=-1)if(f(n).type==i)n.indent=n.scopes.pop().offset-z;else return h}return n.dedent&&e.eol()&&f(n).type=="py"&&n.scopes.length>1&&n.scopes.pop(),r}var W={startState:function(e){return{tokenize:m,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,n){var r=n.errorToken;r&&(n.errorToken=!1);var i=Z(e,n);return i&&i!="comment"&&(n.lastToken=i=="keyword"||i=="punctuation"?e.current():i),i=="punctuation"&&(i=null),e.eol()&&n.lambda&&(n.lambda=!1),r?i+" "+h:i},indent:function(e,n){if(e.tokenize!=m)return e.tokenize.isString?c.Pass:0;var r=f(e),i=r.type==n.charAt(0)||r.type=="py"&&!e.dedent&&/^(else:|elif |except |finally:)/.test(n);return r.align!=null?r.align-(i?1:0):r.offset-(i?z:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return W}),c.defineMIME("text/x-python","python");var R=function(a){return a.split(" ")};c.defineMIME("text/x-cython",{name:"python",extra_keywords:R("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();var M=L.exports,q=K({__proto__:null,default:M},[L.exports]);export{L as a,q as p};
@@ -1 +1 @@
1
- import{bS as w}from"./vendor.48c33a64.js";function j(f,s){return s.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(c){if(c!=="default"&&!(c in f)){var d=Object.getOwnPropertyDescriptor(i,c);Object.defineProperty(f,c,d.get?d:{enumerable:!0,get:function(){return i[c]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(f,s){(function(i){i(w.exports)})(function(i){i.defineMode("q",function(c){var d=c.indentUnit,l,a=k(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),m=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function k(e){return new RegExp("^("+e.join("|")+")$")}function u(e,n){var o=e.sol(),t=e.next();if(l=null,o){if(t=="/")return(n.tokenize=g)(e,n);if(t=="\\")return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(n.tokenize=y)(e):n.tokenize=u,"comment"):(n.tokenize=u,"builtin")}if(/\s/.test(t))return e.peek()=="/"?(e.skipToEnd(),"comment"):"whitespace";if(t=='"')return(n.tokenize=b)(e,n);if(t=="`")return e.eatWhile(/[A-Za-z\d_:\/.]/),"symbol";if(t=="."&&/\d/.test(e.peek())||/\d/.test(t)){var r=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?r="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(r="number"),r&&(!(t=e.peek())||m.test(t))?r:(e.next(),"error")}return/[A-Za-z]|\./.test(t)?(e.eatWhile(/[A-Za-z._\d]/),a.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(t)||/[{}\(\[\]\)]/.test(t)?null:"error"}function g(e,n){return e.skipToEnd(),/\/\s*$/.test(e.current())?(n.tokenize=h)(e,n):n.tokenize=u,"comment"}function h(e,n){var o=e.sol()&&e.peek()=="\\";return e.skipToEnd(),o&&/^\\\s*$/.test(e.current())&&(n.tokenize=u),"comment"}function y(e){return e.skipToEnd(),"comment"}function b(e,n){for(var o=!1,t,r=!1;t=e.next();){if(t=='"'&&!o){r=!0;break}o=!o&&t=="\\"}return r&&(n.tokenize=u),"string"}function p(e,n,o){e.context={prev:e.context,indent:e.indent,col:o,type:n}}function x(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:u,context:null,indent:0,col:0}},token:function(e,n){e.sol()&&(n.context&&n.context.align==null&&(n.context.align=!1),n.indent=e.indentation());var o=n.tokenize(e,n);if(o!="comment"&&n.context&&n.context.align==null&&n.context.type!="pattern"&&(n.context.align=!0),l=="(")p(n,")",e.column());else if(l=="[")p(n,"]",e.column());else if(l=="{")p(n,"}",e.column());else if(/[\]\}\)]/.test(l)){for(;n.context&&n.context.type=="pattern";)x(n);n.context&&l==n.context.type&&x(n)}else l=="."&&n.context&&n.context.type=="pattern"?x(n):/atom|string|variable/.test(o)&&n.context&&(/[\}\]]/.test(n.context.type)?p(n,"pattern",e.column()):n.context.type=="pattern"&&!n.context.align&&(n.context.align=!0,n.context.col=e.column()));return o},indent:function(e,n){var o=n&&n.charAt(0),t=e.context;if(/[\]\}]/.test(o))for(;t&&t.type=="pattern";)t=t.prev;var r=t&&o==t.type;return t?t.type=="pattern"?t.col:t.align?t.col+(r?0:1):t.indent+(r?0:d):0}}}),i.defineMIME("text/x-q","q")})})();var z=v.exports,q=j({__proto__:null,default:z},[v.exports]);export{q};
1
+ import{bT as w}from"./vendor.c37f7cab.js";function j(f,s){return s.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(c){if(c!=="default"&&!(c in f)){var d=Object.getOwnPropertyDescriptor(i,c);Object.defineProperty(f,c,d.get?d:{enumerable:!0,get:function(){return i[c]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(f,s){(function(i){i(w.exports)})(function(i){i.defineMode("q",function(c){var d=c.indentUnit,l,a=k(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),m=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function k(e){return new RegExp("^("+e.join("|")+")$")}function u(e,n){var o=e.sol(),t=e.next();if(l=null,o){if(t=="/")return(n.tokenize=g)(e,n);if(t=="\\")return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(n.tokenize=y)(e):n.tokenize=u,"comment"):(n.tokenize=u,"builtin")}if(/\s/.test(t))return e.peek()=="/"?(e.skipToEnd(),"comment"):"whitespace";if(t=='"')return(n.tokenize=b)(e,n);if(t=="`")return e.eatWhile(/[A-Za-z\d_:\/.]/),"symbol";if(t=="."&&/\d/.test(e.peek())||/\d/.test(t)){var r=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?r="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(r="number"),r&&(!(t=e.peek())||m.test(t))?r:(e.next(),"error")}return/[A-Za-z]|\./.test(t)?(e.eatWhile(/[A-Za-z._\d]/),a.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(t)||/[{}\(\[\]\)]/.test(t)?null:"error"}function g(e,n){return e.skipToEnd(),/\/\s*$/.test(e.current())?(n.tokenize=h)(e,n):n.tokenize=u,"comment"}function h(e,n){var o=e.sol()&&e.peek()=="\\";return e.skipToEnd(),o&&/^\\\s*$/.test(e.current())&&(n.tokenize=u),"comment"}function y(e){return e.skipToEnd(),"comment"}function b(e,n){for(var o=!1,t,r=!1;t=e.next();){if(t=='"'&&!o){r=!0;break}o=!o&&t=="\\"}return r&&(n.tokenize=u),"string"}function p(e,n,o){e.context={prev:e.context,indent:e.indent,col:o,type:n}}function x(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:u,context:null,indent:0,col:0}},token:function(e,n){e.sol()&&(n.context&&n.context.align==null&&(n.context.align=!1),n.indent=e.indentation());var o=n.tokenize(e,n);if(o!="comment"&&n.context&&n.context.align==null&&n.context.type!="pattern"&&(n.context.align=!0),l=="(")p(n,")",e.column());else if(l=="[")p(n,"]",e.column());else if(l=="{")p(n,"}",e.column());else if(/[\]\}\)]/.test(l)){for(;n.context&&n.context.type=="pattern";)x(n);n.context&&l==n.context.type&&x(n)}else l=="."&&n.context&&n.context.type=="pattern"?x(n):/atom|string|variable/.test(o)&&n.context&&(/[\}\]]/.test(n.context.type)?p(n,"pattern",e.column()):n.context.type=="pattern"&&!n.context.align&&(n.context.align=!0,n.context.col=e.column()));return o},indent:function(e,n){var o=n&&n.charAt(0),t=e.context;if(/[\]\}]/.test(o))for(;t&&t.type=="pattern";)t=t.prev;var r=t&&o==t.type;return t?t.type=="pattern"?t.col:t.align?t.col+(r?0:1):t.indent+(r?0:d):0}}}),i.defineMIME("text/x-q","q")})})();var z=v.exports,q=j({__proto__:null,default:z},[v.exports]);export{q};
@@ -1,4 +1,4 @@
1
- import{w as a,y as o,z as d,A as s,E as e,C as c,W as l}from"./vendor.48c33a64.js";const h={class:"markdown-body"},u=e("div",{class:"two-up"},[e("div",{class:"left"},[e("blockquote",null,[e("p",null,"Most Directus API Endpoint operations can be manipulated with the following parameters. It is important to understand them to get the most out of the platform.")])]),e("div",{class:"right"},[e("p"),e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#fields"},"Fields")]),e("li",null,[e("a",{href:"#filter"},"Filter")]),e("li",null,[e("a",{href:"#search"},"Search")]),e("li",null,[e("a",{href:"#sort"},"Sort")]),e("li",null,[e("a",{href:"#limit"},"Limit")]),e("li",null,[e("a",{href:"#offset"},"Offset"),l(" / "),e("a",{href:"#page"},"Page")]),e("li",null,[e("a",{href:"#aggregation-grouping"},"Aggregation & Grouping")]),e("li",null,[e("a",{href:"#deep"},"Deep")]),e("li",null,[e("a",{href:"#aliases"},"Aliases")]),e("li",null,[e("a",{href:"#export"},"Export")])]),e("p"),l(" - [Functions](#functions) "),e("p"),l(" - [Metadata](#metadata) - [Total Count](#total-count) - [Filter Count](#filter-count) ")])])],-1),p=e("hr",null,null,-1),f=e("h2",{id:"fields"},[l("Fields "),e("a",{class:"header-anchor",href:"#fields"},"#")],-1),g=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Choose the fields that are returned in the current dataset. This parameter supports dot notation to request nested relational fields. You can also use a wildcard (*) to include all fields at a specific depth.")])],-1),m=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples"},"#")]),e("p",null,[l("Get all top-level fields"),e("br"),e("code",null,"*")]),e("p",null,[l("Get all top-level fields and all second-level relational fields"),e("br"),e("code",null,"*.*")]),e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Performance & Size"),e("p",null,[l("While the fields wildcard is very useful for debugging purposes, we recommend only requesting "),e("em",null,"specific"),l(" fields for production use. By only requesting the fields you really need, you can speed up the request, and reduce the overall output size.")])]),e("p",null,[l("Get all top-level fields and second-level relational fields within images"),e("br"),e("code",null,"*,images.*")]),e("p",null,[l("Get only the first_name and last_name fields"),e("br"),e("code",null,"first_name,last_name")]),e("p",null,[l("Get all top-level and second-level relational fields, and third-level fields within images.thumbnails"),e("br"),e("code",null,"*.*,images.thumbnails.*")]),e("h3",{id:"many-to-any-(union-types)"},[l("Many-To-Any (Union Types) "),e("a",{class:"header-anchor",href:"#many-to-any-(union-types)"},"#")]),e("p",null,[l("Seeing that Many-to-Any (m2a) fields have nested data from multiple collections, it\u2019s not always safe / wanted to fetch the same field from every related collection. In m2a fields, you can use the following syntax to specify what fields to fetch from which related nested collection type:"),e("br"),e("code",null,"?fields=<m2a-field>:<collection-scope>.<field>"),l(".")]),e("p",null,[l("Lets say we have a collection "),e("code",null,"pages"),l(" with a many-to-any field called "),e("code",null,"sections"),l(" that points to "),e("code",null,"headings"),l(", "),e("code",null,"paragraphs"),l(", and "),e("code",null,"videos"),l(". We only want to fetch "),e("code",null,"title"),l(" and "),e("code",null,"level"),l(" from "),e("code",null,"headings"),l(", "),e("code",null,"body"),l(" from "),e("code",null,"paragraphs"),l(" and "),e("code",null,"source"),l(" from "),e("code",null,"videos"),l(". We can achieve that by using:")]),e("pre",null,[e("code",null,`sections.item:headings.title
1
+ import{w as a,y as o,z as d,A as s,E as e,C as c,W as l}from"./vendor.c37f7cab.js";const h={class:"markdown-body"},u=e("div",{class:"two-up"},[e("div",{class:"left"},[e("blockquote",null,[e("p",null,"Most Directus API Endpoint operations can be manipulated with the following parameters. It is important to understand them to get the most out of the platform.")])]),e("div",{class:"right"},[e("p"),e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#fields"},"Fields")]),e("li",null,[e("a",{href:"#filter"},"Filter")]),e("li",null,[e("a",{href:"#search"},"Search")]),e("li",null,[e("a",{href:"#sort"},"Sort")]),e("li",null,[e("a",{href:"#limit"},"Limit")]),e("li",null,[e("a",{href:"#offset"},"Offset"),l(" / "),e("a",{href:"#page"},"Page")]),e("li",null,[e("a",{href:"#aggregation-grouping"},"Aggregation & Grouping")]),e("li",null,[e("a",{href:"#deep"},"Deep")]),e("li",null,[e("a",{href:"#aliases"},"Aliases")]),e("li",null,[e("a",{href:"#export"},"Export")])]),e("p"),l(" - [Functions](#functions) "),e("p"),l(" - [Metadata](#metadata) - [Total Count](#total-count) - [Filter Count](#filter-count) ")])])],-1),p=e("hr",null,null,-1),f=e("h2",{id:"fields"},[l("Fields "),e("a",{class:"header-anchor",href:"#fields"},"#")],-1),g=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Choose the fields that are returned in the current dataset. This parameter supports dot notation to request nested relational fields. You can also use a wildcard (*) to include all fields at a specific depth.")])],-1),m=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples"},"#")]),e("p",null,[l("Get all top-level fields"),e("br"),e("code",null,"*")]),e("p",null,[l("Get all top-level fields and all second-level relational fields"),e("br"),e("code",null,"*.*")]),e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Performance & Size"),e("p",null,[l("While the fields wildcard is very useful for debugging purposes, we recommend only requesting "),e("em",null,"specific"),l(" fields for production use. By only requesting the fields you really need, you can speed up the request, and reduce the overall output size.")])]),e("p",null,[l("Get all top-level fields and second-level relational fields within images"),e("br"),e("code",null,"*,images.*")]),e("p",null,[l("Get only the first_name and last_name fields"),e("br"),e("code",null,"first_name,last_name")]),e("p",null,[l("Get all top-level and second-level relational fields, and third-level fields within images.thumbnails"),e("br"),e("code",null,"*.*,images.thumbnails.*")]),e("h3",{id:"many-to-any-(union-types)"},[l("Many-To-Any (Union Types) "),e("a",{class:"header-anchor",href:"#many-to-any-(union-types)"},"#")]),e("p",null,[l("Seeing that Many-to-Any (m2a) fields have nested data from multiple collections, it\u2019s not always safe / wanted to fetch the same field from every related collection. In m2a fields, you can use the following syntax to specify what fields to fetch from which related nested collection type:"),e("br"),e("code",null,"?fields=<m2a-field>:<collection-scope>.<field>"),l(".")]),e("p",null,[l("Lets say we have a collection "),e("code",null,"pages"),l(" with a many-to-any field called "),e("code",null,"sections"),l(" that points to "),e("code",null,"headings"),l(", "),e("code",null,"paragraphs"),l(", and "),e("code",null,"videos"),l(". We only want to fetch "),e("code",null,"title"),l(" and "),e("code",null,"level"),l(" from "),e("code",null,"headings"),l(", "),e("code",null,"body"),l(" from "),e("code",null,"paragraphs"),l(" and "),e("code",null,"source"),l(" from "),e("code",null,"videos"),l(". We can achieve that by using:")]),e("pre",null,[e("code",null,`sections.item:headings.title
2
2
  sections.item:headings.level
3
3
  sections.item:paragraphs.body
4
4
  sections.item:videos.source
@@ -1,4 +1,4 @@
1
- import{w as i,y as c,z as d,A as o,E as t,C as n,W as e}from"./vendor.48c33a64.js";const h={class:"markdown-body"},u=t("blockquote",null,[t("p",null,"If you\u2019re looking for the fastest way to get up-and-running with Directus, this guide will walk you through getting things installed, configured, and modeled.")],-1),p=t("h2",{id:"1.-installation"},[e("1. Installation "),t("a",{class:"header-anchor",href:"#1.-installation"},"#")],-1),_=t("p",null,[e("Make sure you have the latest LTS version or newer of "),t("a",{href:"https://nodejs.dev",target:"_blank",rel:"noopener noreferrer"},"Node.js"),e(" installed, and have a running database ready to connect to.")],-1),m=t("p",null,"Run the following command in your terminal and follow the prompts.",-1),g=t("pre",null,[t("code",{class:"language-bash"},`npm init directus-project example-project
1
+ import{w as i,y as c,z as d,A as o,E as t,C as n,W as e}from"./vendor.c37f7cab.js";const h={class:"markdown-body"},u=t("blockquote",null,[t("p",null,"If you\u2019re looking for the fastest way to get up-and-running with Directus, this guide will walk you through getting things installed, configured, and modeled.")],-1),p=t("h2",{id:"1.-installation"},[e("1. Installation "),t("a",{class:"header-anchor",href:"#1.-installation"},"#")],-1),_=t("p",null,[e("Make sure you have the latest LTS version or newer of "),t("a",{href:"https://nodejs.dev",target:"_blank",rel:"noopener noreferrer"},"Node.js"),e(" installed, and have a running database ready to connect to.")],-1),m=t("p",null,"Run the following command in your terminal and follow the prompts.",-1),g=t("pre",null,[t("code",{class:"language-bash"},`npm init directus-project example-project
2
2
  `)],-1),f=t("p",null,"Choose SQLite from the list. Use up/down arrow keys to select the SQL type.",-1),b=t("pre",null,[t("code",{class:"language-bash"},`? Choose your database client SQLite
3
3
  `)],-1),y=t("p",null,[e("After that a file path for "),t("code",null,"data.db"),e(", your database, will be suggested. Hit the enter key to stick with the default path.")],-1),w=t("pre",null,[t("code",{class:"language-bash"},`? Database File Path: <file-path>/example-project/data.db
4
4
  `)],-1),v=t("p",null,"Next you\u2019ll set your username/email and password.",-1),k=t("pre",null,[t("code",{class:"language-bash"},`Create your first admin user:
@@ -1 +1 @@
1
- import{bS as L}from"./vendor.48c33a64.js";function O(c,b){return b.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(l){if(l!=="default"&&!(l in c)){var f=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(c,l,f.get?f:{enumerable:!0,get:function(){return t[l]}})}})}),Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(c,b){(function(t){t(L.exports)})(function(t){t.registerHelper("wordChars","r",/[\w.]/),t.defineMode("r",function(l){function f(e){for(var n={},r=0;r<e.length;++r)n[e[r]]=!0;return n}var x=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],y=["list","quote","bquote","eval","return","call","parse","deparse"],g=["if","else","repeat","while","function","for","in","next","break"],A=["if","else","repeat","while","function","for"];t.registerHelper("hintWords","r",x.concat(y,g));var E=f(x),w=f(y),N=f(g),I=f(A),k=/[+\-*\/^<>=!&|~$:]/,o;function p(e,n){o=null;var r=e.next();if(r=="#")return e.skipToEnd(),"comment";if(r=="0"&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if(r=="."&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if(r=="'"||r=='"')return n.tokenize=S(r),"string";if(r=="`")return e.match(/[^`]+`/),"variable-3";if(r=="."&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var i=e.current();return E.propertyIsEnumerable(i)?"atom":N.propertyIsEnumerable(i)?(I.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(o="block"),"keyword"):w.propertyIsEnumerable(i)?"builtin":"variable"}else return r=="%"?(e.skipTo("%")&&e.next(),"operator variable-2"):r=="<"&&e.eat("-")||r=="<"&&e.match("<-")||r=="-"&&e.match(/>>?/)?"operator arrow":r=="="&&n.ctx.argList?"arg-is":k.test(r)?r=="$"?"operator dollar":(e.eatWhile(k),"operator"):/[\(\){}\[\];]/.test(r)?(o=r,r==";"?"semi":null):null}function S(e){return function(n,r){if(n.eat("\\")){var i=n.next();return i=="x"?n.match(/^[a-f0-9]{2}/i):(i=="u"||i=="U")&&n.eat("{")&&n.skipTo("}")?n.next():i=="u"?n.match(/^[a-f0-9]{4}/i):i=="U"?n.match(/^[a-f0-9]{8}/i):/[0-7]/.test(i)&&n.match(/^[0-7]{1,2}/),"string-2"}else{for(var u;(u=n.next())!=null;){if(u==e){r.tokenize=p;break}if(u=="\\"){n.backUp(1);break}}return"string"}}}var h=1,d=2,s=4;function a(e,n,r){e.ctx={type:n,indent:e.indent,flags:0,column:r.column(),prev:e.ctx}}function m(e,n){var r=e.ctx;e.ctx={type:r.type,indent:r.indent,flags:r.flags|n,column:r.column,prev:r.prev}}function v(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:p,ctx:{type:"top",indent:-l.indentUnit,flags:d},indent:0,afterIdent:!1}},token:function(e,n){if(e.sol()&&((n.ctx.flags&3)==0&&(n.ctx.flags|=d),n.ctx.flags&s&&v(n),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);return r!="comment"&&(n.ctx.flags&d)==0&&m(n,h),(o==";"||o=="{"||o=="}")&&n.ctx.type=="block"&&v(n),o=="{"?a(n,"}",e):o=="("?(a(n,")",e),n.afterIdent&&(n.ctx.argList=!0)):o=="["?a(n,"]",e):o=="block"?a(n,"block",e):o==n.ctx.type?v(n):n.ctx.type=="block"&&r!="comment"&&m(n,s),n.afterIdent=r=="variable"||r=="keyword",r},indent:function(e,n){if(e.tokenize!=p)return 0;var r=n&&n.charAt(0),i=e.ctx,u=r==i.type;return i.flags&s&&(i=i.prev),i.type=="block"?i.indent+(r=="{"?0:l.indentUnit):i.flags&h?i.column+(u?0:1):i.indent+(u?0:l.indentUnit)},lineComment:"#"}}),t.defineMIME("text/x-rsrc","r")})})();var U=_.exports,z=O({__proto__:null,default:U},[_.exports]);export{z as r};
1
+ import{bT as S}from"./vendor.c37f7cab.js";function O(c,b){return b.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(l){if(l!=="default"&&!(l in c)){var f=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(c,l,f.get?f:{enumerable:!0,get:function(){return t[l]}})}})}),Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(c,b){(function(t){t(S.exports)})(function(t){t.registerHelper("wordChars","r",/[\w.]/),t.defineMode("r",function(l){function f(e){for(var n={},r=0;r<e.length;++r)n[e[r]]=!0;return n}var x=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],y=["list","quote","bquote","eval","return","call","parse","deparse"],g=["if","else","repeat","while","function","for","in","next","break"],A=["if","else","repeat","while","function","for"];t.registerHelper("hintWords","r",x.concat(y,g));var E=f(x),w=f(y),N=f(g),I=f(A),k=/[+\-*\/^<>=!&|~$:]/,o;function p(e,n){o=null;var r=e.next();if(r=="#")return e.skipToEnd(),"comment";if(r=="0"&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if(r=="."&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if(r=="'"||r=='"')return n.tokenize=L(r),"string";if(r=="`")return e.match(/[^`]+`/),"variable-3";if(r=="."&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var i=e.current();return E.propertyIsEnumerable(i)?"atom":N.propertyIsEnumerable(i)?(I.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(o="block"),"keyword"):w.propertyIsEnumerable(i)?"builtin":"variable"}else return r=="%"?(e.skipTo("%")&&e.next(),"operator variable-2"):r=="<"&&e.eat("-")||r=="<"&&e.match("<-")||r=="-"&&e.match(/>>?/)?"operator arrow":r=="="&&n.ctx.argList?"arg-is":k.test(r)?r=="$"?"operator dollar":(e.eatWhile(k),"operator"):/[\(\){}\[\];]/.test(r)?(o=r,r==";"?"semi":null):null}function L(e){return function(n,r){if(n.eat("\\")){var i=n.next();return i=="x"?n.match(/^[a-f0-9]{2}/i):(i=="u"||i=="U")&&n.eat("{")&&n.skipTo("}")?n.next():i=="u"?n.match(/^[a-f0-9]{4}/i):i=="U"?n.match(/^[a-f0-9]{8}/i):/[0-7]/.test(i)&&n.match(/^[0-7]{1,2}/),"string-2"}else{for(var u;(u=n.next())!=null;){if(u==e){r.tokenize=p;break}if(u=="\\"){n.backUp(1);break}}return"string"}}}var h=1,d=2,s=4;function a(e,n,r){e.ctx={type:n,indent:e.indent,flags:0,column:r.column(),prev:e.ctx}}function m(e,n){var r=e.ctx;e.ctx={type:r.type,indent:r.indent,flags:r.flags|n,column:r.column,prev:r.prev}}function v(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:p,ctx:{type:"top",indent:-l.indentUnit,flags:d},indent:0,afterIdent:!1}},token:function(e,n){if(e.sol()&&((n.ctx.flags&3)==0&&(n.ctx.flags|=d),n.ctx.flags&s&&v(n),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);return r!="comment"&&(n.ctx.flags&d)==0&&m(n,h),(o==";"||o=="{"||o=="}")&&n.ctx.type=="block"&&v(n),o=="{"?a(n,"}",e):o=="("?(a(n,")",e),n.afterIdent&&(n.ctx.argList=!0)):o=="["?a(n,"]",e):o=="block"?a(n,"block",e):o==n.ctx.type?v(n):n.ctx.type=="block"&&r!="comment"&&m(n,s),n.afterIdent=r=="variable"||r=="keyword",r},indent:function(e,n){if(e.tokenize!=p)return 0;var r=n&&n.charAt(0),i=e.ctx,u=r==i.type;return i.flags&s&&(i=i.prev),i.type=="block"?i.indent+(r=="{"?0:l.indentUnit):i.flags&h?i.column+(u?0:1):i.indent+(u?0:l.indentUnit)},lineComment:"#"}}),t.defineMIME("text/x-rsrc","r")})})();var U=_.exports,z=O({__proto__:null,default:U},[_.exports]);export{z as r};
@@ -1,4 +1,4 @@
1
- import{w as s,y as i,z as c,A as t,E as e,C as h,W as l}from"./vendor.48c33a64.js";const d={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=l("What data is linked to what other data. Allows you to assign authors to articles, products to sales, and whatever other structures you can think of. "),g=l("Learn more about Relationships"),f=l("."),m=e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-relation-object"},"The Relation Object")]),e("li",null,[e("a",{href:"#list-relations"},"List relations")]),e("li",null,[e("a",{href:"#list-relations-in-collection"},"List relations in collection")]),e("li",null,[e("a",{href:"#retrieve-a-relation"},"Retrieve a relation")]),e("li",null,[e("a",{href:"#create-a-relation"},"Create a Relation")]),e("li",null,[e("a",{href:"#update-a-relation"},"Update a Relation")]),e("li",null,[e("a",{href:"#delete-a-relation"},"Delete a Relation")])])])])],-1),y=e("hr",null,null,-1),j=e("h2",{id:"the-relation-object"},[l("The Relation Object "),e("a",{class:"header-anchor",href:"#the-relation-object"},"#")],-1),b=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"definitions"},[e("p",null,[e("code",null,"collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. This matches the table name in the database.")]),e("p",null,[e("code",null,"field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field that holds the related primary key. This matches the column name in the database.")]),e("p",null,[e("code",null,"related_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. This matches the table name in the database.")])]),e("h4",{id:"meta"},[l("Meta "),e("a",{class:"header-anchor",href:"#meta"},"#")]),e("p",null,"Directus metadata. Used to enable non-database relationship types"),e("div",{class:"definitions"},[e("p",null,[e("code",null,"id"),l(),e("strong",null,"integer"),e("br"),l(" Primary key of the metadata row in "),e("code",null,"directus_relations"),l(".")]),e("p",null,[e("code",null,"many_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. Matches the top level "),e("code",null,"collection"),l(" field.")]),e("p",null,[e("code",null,"many_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field. Matches the top level "),e("code",null,"field"),l(" field.")]),e("p",null,[e("code",null,"one_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. Matches the top level "),e("code",null,"related_collection"),l(" field.")]),e("p",null,[e("code",null,"one_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the one to many field on the other side of the relation.")]),e("p",null,[e("code",null,"one_allowed_collections"),l(),e("strong",null,"string"),e("br"),l(" What collections are allowed to be used in a many-to-any context.")]),e("p",null,[e("code",null,"one_collection_field"),l(),e("strong",null,"string"),e("br"),l(" Field that holds the collection name in a many-to-any context.")]),e("p",null,[e("code",null,"one_deselect_action"),l(),e("strong",null,"nullify | delete"),e("br"),l(" Whether to nullify or delete related one-to-many records.")]),e("p",null,[e("code",null,"sort_field"),l(),e("strong",null,"string"),e("br"),l(" What field is used to hold the sort field.")]),e("p",null,[e("code",null,"junction_field"),l(),e("strong",null,"string"),e("br"),l(" What field connects two relations in a many-to-many (o2m-m2o) context.")])]),e("h4",{id:"schema"},[l("Schema "),e("a",{class:"header-anchor",href:"#schema"},"#")]),e("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers."),e("div",{class:"definitions"},[e("p",null,[e("code",null,"table"),l(),e("strong",null,"string"),e("br"),l(" The table name.")]),e("p",null,[e("code",null,"column"),l(),e("strong",null,"string"),e("br"),l(" The column name.")]),e("p",null,[e("code",null,"foreign_key_table"),l(),e("strong",null,"string"),e("br"),l(" Related table name.")]),e("p",null,[e("code",null,"foreign_key_column"),l(),e("strong",null,"string"),e("br"),l(" Related column name.")]),e("p",null,[e("code",null,"constraint_name"),l(),e("strong",null,"string"),e("br"),l(" Name for the foreign key constraint.")]),e("p",null,[e("code",null,"on_update"),l(),e("strong",null,"string"),e("br"),l(" Update trigger for the foreign key constraint.")]),e("p",null,[e("code",null,"on_delete"),l(),e("strong",null,"string"),e("br"),l(" Delete trigger for the foreign key constraint.")])])]),e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[l(`{
1
+ import{w as s,y as i,z as c,A as t,E as e,C as h,W as l}from"./vendor.c37f7cab.js";const d={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=l("What data is linked to what other data. Allows you to assign authors to articles, products to sales, and whatever other structures you can think of. "),g=l("Learn more about Relationships"),f=l("."),m=e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-relation-object"},"The Relation Object")]),e("li",null,[e("a",{href:"#list-relations"},"List relations")]),e("li",null,[e("a",{href:"#list-relations-in-collection"},"List relations in collection")]),e("li",null,[e("a",{href:"#retrieve-a-relation"},"Retrieve a relation")]),e("li",null,[e("a",{href:"#create-a-relation"},"Create a Relation")]),e("li",null,[e("a",{href:"#update-a-relation"},"Update a Relation")]),e("li",null,[e("a",{href:"#delete-a-relation"},"Delete a Relation")])])])])],-1),y=e("hr",null,null,-1),j=e("h2",{id:"the-relation-object"},[l("The Relation Object "),e("a",{class:"header-anchor",href:"#the-relation-object"},"#")],-1),b=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"definitions"},[e("p",null,[e("code",null,"collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. This matches the table name in the database.")]),e("p",null,[e("code",null,"field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field that holds the related primary key. This matches the column name in the database.")]),e("p",null,[e("code",null,"related_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. This matches the table name in the database.")])]),e("h4",{id:"meta"},[l("Meta "),e("a",{class:"header-anchor",href:"#meta"},"#")]),e("p",null,"Directus metadata. Used to enable non-database relationship types"),e("div",{class:"definitions"},[e("p",null,[e("code",null,"id"),l(),e("strong",null,"integer"),e("br"),l(" Primary key of the metadata row in "),e("code",null,"directus_relations"),l(".")]),e("p",null,[e("code",null,"many_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. Matches the top level "),e("code",null,"collection"),l(" field.")]),e("p",null,[e("code",null,"many_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field. Matches the top level "),e("code",null,"field"),l(" field.")]),e("p",null,[e("code",null,"one_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. Matches the top level "),e("code",null,"related_collection"),l(" field.")]),e("p",null,[e("code",null,"one_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the one to many field on the other side of the relation.")]),e("p",null,[e("code",null,"one_allowed_collections"),l(),e("strong",null,"string"),e("br"),l(" What collections are allowed to be used in a many-to-any context.")]),e("p",null,[e("code",null,"one_collection_field"),l(),e("strong",null,"string"),e("br"),l(" Field that holds the collection name in a many-to-any context.")]),e("p",null,[e("code",null,"one_deselect_action"),l(),e("strong",null,"nullify | delete"),e("br"),l(" Whether to nullify or delete related one-to-many records.")]),e("p",null,[e("code",null,"sort_field"),l(),e("strong",null,"string"),e("br"),l(" What field is used to hold the sort field.")]),e("p",null,[e("code",null,"junction_field"),l(),e("strong",null,"string"),e("br"),l(" What field connects two relations in a many-to-many (o2m-m2o) context.")])]),e("h4",{id:"schema"},[l("Schema "),e("a",{class:"header-anchor",href:"#schema"},"#")]),e("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers."),e("div",{class:"definitions"},[e("p",null,[e("code",null,"table"),l(),e("strong",null,"string"),e("br"),l(" The table name.")]),e("p",null,[e("code",null,"column"),l(),e("strong",null,"string"),e("br"),l(" The column name.")]),e("p",null,[e("code",null,"foreign_key_table"),l(),e("strong",null,"string"),e("br"),l(" Related table name.")]),e("p",null,[e("code",null,"foreign_key_column"),l(),e("strong",null,"string"),e("br"),l(" Related column name.")]),e("p",null,[e("code",null,"constraint_name"),l(),e("strong",null,"string"),e("br"),l(" Name for the foreign key constraint.")]),e("p",null,[e("code",null,"on_update"),l(),e("strong",null,"string"),e("br"),l(" Update trigger for the foreign key constraint.")]),e("p",null,[e("code",null,"on_delete"),l(),e("strong",null,"string"),e("br"),l(" Delete trigger for the foreign key constraint.")])])]),e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[l(`{
2
2
  `),e("span",{class:"hljs-attr"},'"collection"'),l(": "),e("span",{class:"hljs-string"},'"about_us"'),l(`,
3
3
  `),e("span",{class:"hljs-attr"},'"field"'),l(": "),e("span",{class:"hljs-string"},'"logo"'),l(`,
4
4
  `),e("span",{class:"hljs-attr"},'"related_collection"'),l(": "),e("span",{class:"hljs-string"},'"directus_files"'),l(`,
@@ -1,4 +1,4 @@
1
- import{w as s,y as c,z as d,A as n,E as e,C as l,W as t}from"./vendor.48c33a64.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("As you might have guessed, relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more "),e("em",null,"compound"),t(" types that offer greater flexibility.")])],-1),f=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#many-to-one-(m2o)"},"Many-to-One (M2O)")]),e("li",null,[e("a",{href:"#one-to-many-(o2m)"},"One-to-Many (O2M)")]),e("li",null,[e("a",{href:"#translations-(o2m)"},"Translations (O2M)")]),e("li",null,[e("a",{href:"#many-to-many-(m2m)"},"Many-to-Many (M2M)")]),e("li",null,[e("a",{href:"#many-to-any-(m2a)"},"Many-to-Any (M2A)")]),e("li",null,[e("a",{href:"#one-to-one-(o2o)"},"One-to-One (O2O)")])])])],-1),p=e("h3",{id:"introduction"},[t("Introduction "),e("a",{class:"header-anchor",href:"#introduction"},"#")],-1),m=e("p",null,"While it may seem complex at first, relational data is actually quite straightforward once you understand what\u2019s happening behind the sometimes confusing terminology. Before diving into the details of each type, let\u2019s first cover a few basics that will help you better visualize them in your mind\u2019s eye.",-1),_=e("h3",{id:"primary-and-foreign-keys"},[t("Primary and Foreign Keys "),e("a",{class:"header-anchor",href:"#primary-and-foreign-keys"},"#")],-1),y=t("Every "),g=t("Item"),w=t(" in a relational database has a unique "),M=t("Primary Key"),b=t(" (or \u201CPK\u201D) that identifies it within its "),v=t("Collection"),O=t(". Because it\u2019s required, the key is the first "),k=t("field"),T=t(" created within a collection, typically storing an \u201Cauto-increment\u201D number, an automatically generated unique hash, or a manually entered value. They are often abbreviated to \u201CPK\u201D (Primary Key), \u201CID\u201D (Identifier), \u201CUID\u201D (Unique Identifier), or \u201CUUID\u201D (Universally Unique Identifier), depending on the type of value they store. After it\u2019s created, the value of an item\u2019s PK should "),C=e("em",null,"never",-1),x=t(" change."),A=e("p",null,[t("To link items together relationally, you simply save a reference to an item\u2019s PK in a different field. That "),e("em",null,"reference"),t(" is called a Foreign Key (FK). If the primary key is a "),e("em",null,"person"),t(", the foreign key is like their "),e("em",null,"business card"),t(". It references the actual person, providing just enough information to find them.")],-1),j=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Composite & Compound Keys"),e("p",null,[t("In the above explanation we\u2019ve ignored "),e("em",null,"composite"),t(" and "),e("em",null,"compound"),t(" keys, which are essentially unique keys created by combining "),e("em",null,"multiple"),t(" field/column values.")])],-1),I=e("h3",{id:"perspective-matters"},[t("Perspective Matters "),e("a",{class:"header-anchor",href:"#perspective-matters"},"#")],-1),P=e("p",null,"Just like primary and foreign keys, relationships are always described relative to their \u201Cparent\u201D collection. Looking at the same relationship/key from the perspective of the opposite collection would reverse it. This means that a many-to-one relationship can also be seen as a one-to-many relationship, it just depends on which collection is considered the parent.",-1),D=e("h2",{id:"many-to-one-(m2o)"},[t("Many-to-One (M2O) "),e("a",{class:"header-anchor",href:"#many-to-one-(m2o)"},"#")],-1),S=e("p",null,[t("The Many-to-One is the only relationship type with an actual field on the parent Collection. This field saves the foreign key to a single related item. For example, a "),e("em",null,"city"),t(" can only be in one "),e("em",null,"country"),t(", but a "),e("em",null,"country"),t(" can have many "),e("em",null,"cities"),t(".")],-1),F=e("p",null,"Below is an example of a M2O relationship:",-1),R=e("pre",null,[e("code",null,`cities (the "Many" Collection)
1
+ import{w as s,y as c,z as d,A as n,E as e,C as l,W as t}from"./vendor.c37f7cab.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("As you might have guessed, relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more "),e("em",null,"compound"),t(" types that offer greater flexibility.")])],-1),f=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#many-to-one-(m2o)"},"Many-to-One (M2O)")]),e("li",null,[e("a",{href:"#one-to-many-(o2m)"},"One-to-Many (O2M)")]),e("li",null,[e("a",{href:"#translations-(o2m)"},"Translations (O2M)")]),e("li",null,[e("a",{href:"#many-to-many-(m2m)"},"Many-to-Many (M2M)")]),e("li",null,[e("a",{href:"#many-to-any-(m2a)"},"Many-to-Any (M2A)")]),e("li",null,[e("a",{href:"#one-to-one-(o2o)"},"One-to-One (O2O)")])])])],-1),p=e("h3",{id:"introduction"},[t("Introduction "),e("a",{class:"header-anchor",href:"#introduction"},"#")],-1),m=e("p",null,"While it may seem complex at first, relational data is actually quite straightforward once you understand what\u2019s happening behind the sometimes confusing terminology. Before diving into the details of each type, let\u2019s first cover a few basics that will help you better visualize them in your mind\u2019s eye.",-1),_=e("h3",{id:"primary-and-foreign-keys"},[t("Primary and Foreign Keys "),e("a",{class:"header-anchor",href:"#primary-and-foreign-keys"},"#")],-1),y=t("Every "),g=t("Item"),w=t(" in a relational database has a unique "),M=t("Primary Key"),b=t(" (or \u201CPK\u201D) that identifies it within its "),v=t("Collection"),O=t(". Because it\u2019s required, the key is the first "),k=t("field"),T=t(" created within a collection, typically storing an \u201Cauto-increment\u201D number, an automatically generated unique hash, or a manually entered value. They are often abbreviated to \u201CPK\u201D (Primary Key), \u201CID\u201D (Identifier), \u201CUID\u201D (Unique Identifier), or \u201CUUID\u201D (Universally Unique Identifier), depending on the type of value they store. After it\u2019s created, the value of an item\u2019s PK should "),C=e("em",null,"never",-1),x=t(" change."),A=e("p",null,[t("To link items together relationally, you simply save a reference to an item\u2019s PK in a different field. That "),e("em",null,"reference"),t(" is called a Foreign Key (FK). If the primary key is a "),e("em",null,"person"),t(", the foreign key is like their "),e("em",null,"business card"),t(". It references the actual person, providing just enough information to find them.")],-1),j=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Composite & Compound Keys"),e("p",null,[t("In the above explanation we\u2019ve ignored "),e("em",null,"composite"),t(" and "),e("em",null,"compound"),t(" keys, which are essentially unique keys created by combining "),e("em",null,"multiple"),t(" field/column values.")])],-1),I=e("h3",{id:"perspective-matters"},[t("Perspective Matters "),e("a",{class:"header-anchor",href:"#perspective-matters"},"#")],-1),P=e("p",null,"Just like primary and foreign keys, relationships are always described relative to their \u201Cparent\u201D collection. Looking at the same relationship/key from the perspective of the opposite collection would reverse it. This means that a many-to-one relationship can also be seen as a one-to-many relationship, it just depends on which collection is considered the parent.",-1),D=e("h2",{id:"many-to-one-(m2o)"},[t("Many-to-One (M2O) "),e("a",{class:"header-anchor",href:"#many-to-one-(m2o)"},"#")],-1),S=e("p",null,[t("The Many-to-One is the only relationship type with an actual field on the parent Collection. This field saves the foreign key to a single related item. For example, a "),e("em",null,"city"),t(" can only be in one "),e("em",null,"country"),t(", but a "),e("em",null,"country"),t(" can have many "),e("em",null,"cities"),t(".")],-1),F=e("p",null,"Below is an example of a M2O relationship:",-1),R=e("pre",null,[e("code",null,`cities (the "Many" Collection)
2
2
  - id (Primary Key)
3
3
  - name
4
4
  - country (the M2O field that stores the country key)