@directus/app 9.10.0 → 9.12.0

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 (424) hide show
  1. package/dist/assets/@directus_extensions-sdk.1c0f07ca.entry.js +1 -0
  2. package/dist/assets/{accounts.5730f58a.js → accounts.edeb6689.js} +1 -1
  3. package/dist/assets/{active-line.ebb71fb8.js → active-line.0636efc2.js} +1 -1
  4. package/dist/assets/{activity-log.c9235b62.js → activity-log.ccf294c8.js} +1 -1
  5. package/dist/assets/{activity.ff4cb799.js → activity.499754f1.js} +1 -1
  6. package/dist/assets/af-ZA.c9c94fcd.js +1 -0
  7. package/dist/assets/{apl.976167c0.js → apl.7a44de96.js} +1 -1
  8. package/dist/assets/ar-SA.1a6c2c65.js +1 -0
  9. package/dist/assets/{asciiarmor.45c16f31.js → asciiarmor.5c853147.js} +1 -1
  10. package/dist/assets/{asn.1.7f874dea.js → asn.1.6b4c88d3.js} +1 -1
  11. package/dist/assets/{asterisk.55e38066.js → asterisk.8e49b2d4.js} +1 -1
  12. package/dist/assets/{authentication.37ab728d.js → authentication.b275d277.js} +2 -2
  13. package/dist/assets/{autorefresh.f4273b37.js → autorefresh.a124d3d5.js} +1 -1
  14. package/dist/assets/{aws.2cbdae9b.js → aws.58f13022.js} +1 -1
  15. package/dist/assets/{backing-directus.c30814b2.js → backing-directus.b130191d.js} +1 -1
  16. package/dist/assets/bg-BG.0eca7613.js +2 -0
  17. package/dist/assets/br-FR.1ad76918.js +1 -0
  18. package/dist/assets/{brainfuck.ab8ecbbf.js → brainfuck.40978cfa.js} +1 -1
  19. package/dist/assets/ca-ES.365a1fc4.js +1 -0
  20. package/dist/assets/{cli.972136c7.js → cli.0b1af962.js} +1 -1
  21. package/dist/assets/{cli.0a4df861.js → cli.7f7160a6.js} +4 -4
  22. package/dist/assets/{clike.8c0b0d8f.js → clike.00b06ab7.js} +1 -1
  23. package/dist/assets/{clojure.e58df985.js → clojure.10c02a8f.js} +1 -1
  24. package/dist/assets/{cloudron.c5c97204.js → cloudron.48238a4e.js} +1 -1
  25. package/dist/assets/{cmake.77c3a78b.js → cmake.d18a828d.js} +1 -1
  26. package/dist/assets/{cobol.5800890d.js → cobol.4a07e81a.js} +1 -1
  27. package/dist/assets/{codebase-overview.41eb2e19.js → codebase-overview.c751de28.js} +1 -1
  28. package/dist/assets/{coffeescript.65bdab88.js → coffeescript.299e7b17.js} +1 -1
  29. package/dist/assets/{collections.cf70d96a.js → collections.8d532d78.js} +1 -1
  30. package/dist/assets/{collections.c691fda2.js → collections.fe434f3d.js} +2 -2
  31. package/dist/assets/{commonlisp.fdaf9ea0.js → commonlisp.5d3e08ca.js} +1 -1
  32. package/dist/assets/{config-options.f4fd7c46.js → config-options.0cd2f84e.js} +12 -12
  33. package/dist/assets/{content.a28f530b.js → content.07663d5f.js} +1 -1
  34. package/dist/assets/{creating-extensions.5b5af540.js → creating-extensions.a48d5b6f.js} +1 -1
  35. package/dist/assets/{crystal.d36108d5.js → crystal.e8ccc500.js} +1 -1
  36. package/dist/assets/cs-CZ.6910228b.js +1 -0
  37. package/dist/assets/{css.af9df8d9.js → css.e214430c.js} +1 -1
  38. package/dist/assets/{cypher.c083eec3.js → cypher.93c35226.js} +1 -1
  39. package/dist/assets/{d.b4f5d1f2.js → d.45452c03.js} +1 -1
  40. package/dist/assets/da-DK.88f53a7d.js +1 -0
  41. package/dist/assets/{dart.af866fff.js → dart.6fca9dfe.js} +1 -1
  42. package/dist/assets/data-model.5b650232.js +1 -0
  43. package/dist/assets/{data-sharing.2f88743d.js → data-sharing.4ba1e153.js} +1 -1
  44. package/dist/assets/de-DE.d1197f4c.js +1 -0
  45. package/dist/assets/{diff.52a32496.js → diff.7a671810.js} +1 -1
  46. package/dist/assets/{digitalocean-app-platform.21eddffd.js → digitalocean-app-platform.a3805812.js} +2 -2
  47. package/dist/assets/display-templates.ef1705ab.js +1 -0
  48. package/dist/assets/{displays.74c0202c.js → displays.29c9a9ab.js} +1 -1
  49. package/dist/assets/{django.804afcea.js → django.70792d4e.js} +1 -1
  50. package/dist/assets/{docker.3fd073e7.js → docker.e74fbe37.js} +1 -1
  51. package/dist/assets/{dockerfile.8cc3eed0.js → dockerfile.4d9813c1.js} +1 -1
  52. package/dist/assets/{documentation.037616ed.js → documentation.74a793e9.js} +1 -1
  53. package/dist/assets/{dtd.5a4c5958.js → dtd.2b6ca795.js} +1 -1
  54. package/dist/assets/{dylan.f5a1dc92.js → dylan.bf03afb2.js} +1 -1
  55. package/dist/assets/{ebnf.19298dc4.js → ebnf.f0b8dcf5.js} +1 -1
  56. package/dist/assets/{ecl.1b12a71c.js → ecl.fb54f12a.js} +1 -1
  57. package/dist/assets/{eiffel.78a4a13f.js → eiffel.aa01c1cf.js} +1 -1
  58. package/dist/assets/el-GR.98199dde.js +1 -0
  59. package/dist/assets/{elm.c5b4e3d7.js → elm.7007e9b9.js} +1 -1
  60. package/dist/assets/{email-templates.015f656b.js → email-templates.ef4839b6.js} +1 -1
  61. package/dist/assets/en-CA.58d818b8.js +1 -0
  62. package/dist/assets/en-GB.74320d21.js +1 -0
  63. package/dist/assets/{endpoints.ad718303.js → endpoints.84b6faf9.js} +2 -2
  64. package/dist/assets/{erlang.5ba0e81e.js → erlang.801fa573.js} +1 -1
  65. package/dist/assets/es-419.aa0bf259.js +1 -0
  66. package/dist/assets/es-CL.e42c6c3c.js +1 -0
  67. package/dist/assets/es-ES.5c7e9438.js +1 -0
  68. package/dist/assets/es-MX.6a8efcab.js +1 -0
  69. package/dist/assets/et-EE.9e35920e.js +3 -0
  70. package/dist/assets/{extensions.a78a0bab.js → extensions.f89cb4f9.js} +1 -1
  71. package/dist/assets/fa-IR.f3dc75f9.js +1 -0
  72. package/dist/assets/{factor.474d1346.js → factor.f3fd82cf.js} +1 -1
  73. package/dist/assets/{faq.79215fd0.js → faq.5f488978.js} +1 -1
  74. package/dist/assets/{fcl.faa472c2.js → fcl.ccf78194.js} +1 -1
  75. package/dist/assets/fi-FI.42afdce0.js +1 -0
  76. package/dist/assets/{fields.446cb520.js → fields.f711b1ce.js} +1 -1
  77. package/dist/assets/{file-library.2eee653e.js → file-library.30569134.js} +1 -1
  78. package/dist/assets/{files.d159019e.js → files.8a404c59.js} +1 -1
  79. package/dist/assets/{filter-rules.da99ca6f.js → filter-rules.79bac758.js} +2 -2
  80. package/dist/assets/{filters.50017874.js → filters.efeb8b64.js} +1 -1
  81. package/dist/assets/{folders.8e9a04b0.js → folders.5102c9ea.js} +1 -1
  82. package/dist/assets/{forth.f24b3d09.js → forth.3c037035.js} +1 -1
  83. package/dist/assets/{fortran.fbb666b5.js → fortran.b05b78ad.js} +1 -1
  84. package/dist/assets/fr-CA.6d6d8d1f.js +1 -0
  85. package/dist/assets/fr-FR.7fa01b32.js +1 -0
  86. package/dist/assets/{gas.f0748dd2.js → gas.c36c196e.js} +1 -1
  87. package/dist/assets/{gcp.c7cb44ca.js → gcp.b10d08b2.js} +2 -2
  88. package/dist/assets/{gfm.877310b0.js → gfm.4af9c8c0.js} +1 -1
  89. package/dist/assets/{gherkin.3d7e0a5d.js → gherkin.102ec9b3.js} +1 -1
  90. package/dist/assets/{github-ci.a7b2c801.js → github-ci.b23bdb51.js} +2 -2
  91. package/dist/assets/{glossary.1f1de0b0.js → glossary.08aaa09a.js} +1 -1
  92. package/dist/assets/{glossary.36456466.js → glossary.2618dbcd.js} +1 -1
  93. package/dist/assets/{go.83a7c333.js → go.319184dc.js} +1 -1
  94. package/dist/assets/{groovy.884233c9.js → groovy.219a3f40.js} +1 -1
  95. package/dist/assets/{haml.3e1c682b.js → haml.c2cec3e9.js} +1 -1
  96. package/dist/assets/{handlebars.bef17c70.js → handlebars.c1ae3040.js} +1 -1
  97. package/dist/assets/{haskell-literate.26780990.js → haskell-literate.34e39e13.js} +1 -1
  98. package/dist/assets/{haskell.fd518ccf.js → haskell.cb6719a1.js} +1 -1
  99. package/dist/assets/{haxe.4b2e78c7.js → haxe.d5e820fa.js} +1 -1
  100. package/dist/assets/he-IL.62301c5a.js +1 -0
  101. package/dist/assets/{hi-IN.93e9208a.js → hi-IN.36e79faa.js} +1 -1
  102. package/dist/assets/{hooks.50182523.js → hooks.d0a9236e.js} +2 -2
  103. package/dist/assets/hr-HR.b1e41c07.js +1 -0
  104. package/dist/assets/{htmlembedded.d8b6ff8e.js → htmlembedded.b86f1a8b.js} +1 -1
  105. package/dist/assets/{htmlmixed.97a3b948.js → htmlmixed.9027b596.js} +1 -1
  106. package/dist/assets/{http.86104e7d.js → http.dddc47fa.js} +1 -1
  107. package/dist/assets/hu-HU.9c7ec38f.js +1 -0
  108. package/dist/assets/id-ID.a0052c00.js +1 -0
  109. package/dist/assets/{idl.b4dc075f.js → idl.c0519b30.js} +1 -1
  110. package/dist/assets/{iis.df3e4d3b.js → iis.fc6aa5dd.js} +1 -1
  111. package/dist/assets/{import-export.fa969793.js → import-export.3bcbaa5a.js} +1 -1
  112. package/dist/assets/{index.e6d22a55.js → index.008f8280.js} +1 -1
  113. package/dist/assets/{index.d48ea4d8.js → index.02e0a0ac.js} +1 -1
  114. package/dist/assets/{index.a0ae139c.js → index.08c47c7e.js} +1 -1
  115. package/dist/assets/{index.b8a7f65d.js → index.09f9fbcc.js} +1 -1
  116. package/dist/assets/{index.6bef0d6c.js → index.0aa19433.js} +1 -1
  117. package/dist/assets/{index.a2a6bfb1.js → index.113f40e2.js} +1 -1
  118. package/dist/assets/{index.e3fcfd5a.js → index.121f2a8c.js} +1 -1
  119. package/dist/assets/{index.21310180.js → index.15d64410.js} +1 -1
  120. package/dist/assets/{index.fcd87af8.js → index.1913d925.js} +1 -1
  121. package/dist/assets/{index.23fc74ac.js → index.1cdf4945.js} +1 -1
  122. package/dist/assets/{index.64299c43.js → index.1ee7fd69.js} +1 -1
  123. package/dist/assets/{index.47b05378.js → index.25ba1dd6.js} +1 -1
  124. package/dist/assets/{index.496e25ca.js → index.25c51012.js} +1 -1
  125. package/dist/assets/{index.b05c71d6.js → index.27dda6e3.js} +4 -4
  126. package/dist/assets/{index.c841431b.js → index.2a4455f2.js} +1 -1
  127. package/dist/assets/{index.3c303b00.js → index.2bc6ec6e.js} +1 -1
  128. package/dist/assets/{index.d58a43db.js → index.2d56f924.js} +1 -1
  129. package/dist/assets/{index.f8814651.js → index.35fd1f62.js} +1 -1
  130. package/dist/assets/{index.07942b86.js → index.36b203bd.js} +1 -1
  131. package/dist/assets/{index.03933ae1.js → index.39c20f1a.js} +1 -1
  132. package/dist/assets/{index.2497550e.js → index.3f0e45c1.js} +1 -1
  133. package/dist/assets/{index.5f7f173b.js → index.3fa2dd41.js} +1 -1
  134. package/dist/assets/{index.f9b96f27.js → index.48964803.js} +1 -1
  135. package/dist/assets/{index.6f66f6e6.js → index.4ad01be0.js} +1 -1
  136. package/dist/assets/{index.0ad4f3d0.js → index.511997cb.js} +1 -1
  137. package/dist/assets/{index.bf4dfe15.js → index.53f3d9fa.js} +1 -1
  138. package/dist/assets/{index.2c02b800.js → index.5679f5a7.js} +1 -1
  139. package/dist/assets/{index.7dcd13ec.js → index.57fe3e27.js} +1 -1
  140. package/dist/assets/{index.0965f2ea.js → index.591b77a6.js} +1 -1
  141. package/dist/assets/{index.287575da.js → index.5add30a0.js} +1 -1
  142. package/dist/assets/{index.682125dd.js → index.5e03ed98.js} +1 -1
  143. package/dist/assets/{index.c80ad32e.js → index.685be3df.js} +1 -1
  144. package/dist/assets/{index.8e6150b3.js → index.6868b6d6.js} +1 -1
  145. package/dist/assets/{index.43052732.js → index.6ad356db.js} +1 -1
  146. package/dist/assets/index.6c408ae4.entry.js +547 -0
  147. package/dist/assets/{index.b967027a.js → index.6ddc4fdc.js} +1 -1
  148. package/dist/assets/{index.33033888.js → index.6fe5d0b3.js} +1 -1
  149. package/dist/assets/{index.0a4cd515.js → index.713eb83a.js} +1 -1
  150. package/dist/assets/{index.22509b50.js → index.75c64623.js} +1 -1
  151. package/dist/assets/{index.2cbb3f8d.js → index.7aed9a74.js} +1 -1
  152. package/dist/assets/{index.7042ed95.js → index.7c788990.js} +1 -1
  153. package/dist/assets/{index.ff921dbe.js → index.8287e0f2.js} +1 -1
  154. package/dist/assets/{index.246ca0ff.js → index.86d0c122.js} +1 -1
  155. package/dist/assets/{index.581b15b9.js → index.8701e013.js} +1 -1
  156. package/dist/assets/{index.b298e8de.js → index.876e2150.js} +1 -1
  157. package/dist/assets/{index.aeb2c755.js → index.87f07d63.js} +1 -1
  158. package/dist/assets/{index.6f07a11e.js → index.8a9126c0.js} +1 -1
  159. package/dist/assets/{index.89e94c9c.js → index.9020f7f8.js} +1 -1
  160. package/dist/assets/{index.1bfa0805.js → index.95a38652.js} +1 -1
  161. package/dist/assets/{index.afd57094.js → index.967c699a.js} +1 -1
  162. package/dist/assets/{index.f748e411.js → index.9c19b896.js} +1 -1
  163. package/dist/assets/{index.7ecee286.js → index.9d085155.js} +1 -1
  164. package/dist/assets/index.9d19e89b.css +1 -0
  165. package/dist/assets/{index.720d195f.js → index.a2dcf3d3.js} +1 -1
  166. package/dist/assets/{index.debe4fb7.js → index.a33e3a0f.js} +1 -1
  167. package/dist/assets/{index.9aaa42b8.js → index.a3994e3e.js} +1 -1
  168. package/dist/assets/{index.e6ccad11.js → index.a4a0cf79.js} +1 -1
  169. package/dist/assets/{index.3615276e.js → index.a9130ef3.js} +1 -1
  170. package/dist/assets/{index.cb1b4143.js → index.a92db738.js} +1 -1
  171. package/dist/assets/{index.63373d3a.js → index.a939892c.js} +1 -1
  172. package/dist/assets/{index.de6c99b7.js → index.aaef5d37.js} +1 -1
  173. package/dist/assets/{index.bcb27c66.js → index.b94caa53.js} +1 -1
  174. package/dist/assets/{index.5f27ce64.js → index.be817c86.js} +1 -1
  175. package/dist/assets/{index.d1ed2a91.js → index.bea565ce.js} +1 -1
  176. package/dist/assets/{index.1c338ca1.js → index.beaf92cf.js} +1 -1
  177. package/dist/assets/{index.42d258a4.js → index.c1202cf2.js} +1 -1
  178. package/dist/assets/{index.e854339b.js → index.c3b8bf08.js} +1 -1
  179. package/dist/assets/{index.ae7d8610.js → index.c64d544a.js} +1 -1
  180. package/dist/assets/{index.31d97c88.js → index.caf0f908.js} +1 -1
  181. package/dist/assets/{index.8587b5df.js → index.cbab03d1.js} +1 -1
  182. package/dist/assets/{index.5faf5621.js → index.cc9ba44d.js} +1 -1
  183. package/dist/assets/{index.2ea1f7d6.js → index.ce185aa0.js} +1 -1
  184. package/dist/assets/{index.238a3268.js → index.d1676f89.js} +1 -1
  185. package/dist/assets/{index.80eaa583.js → index.da1ac686.js} +1 -1
  186. package/dist/assets/{index.d5e9d8c8.js → index.df9b999e.js} +1 -1
  187. package/dist/assets/{index.17154988.js → index.e4754ab9.js} +1 -1
  188. package/dist/assets/{index.ea34f437.js → index.e629cf0e.js} +1 -1
  189. package/dist/assets/{index.20fca3e7.js → index.e6be0eb0.js} +1 -1
  190. package/dist/assets/{index.821e1d62.js → index.ec867eba.js} +1 -1
  191. package/dist/assets/{index.58482880.js → index.f0af50e7.js} +1 -1
  192. package/dist/assets/{index.d368ce15.js → index.f54461df.js} +1 -1
  193. package/dist/assets/{index.a0a5fe39.js → index.f7d9fffc.js} +1 -1
  194. package/dist/assets/{index.f960c87a.js → index.fad2fd5d.js} +1 -1
  195. package/dist/assets/{input-rich-text-html.eae7c584.js → input-rich-text-html.4dd91dd7.js} +79 -78
  196. package/dist/assets/{input-rich-text-html.e6c9da69.css → input-rich-text-html.ef9358cf.css} +1 -1
  197. package/dist/assets/{insights.3d0e532e.js → insights.36c270c0.js} +1 -1
  198. package/dist/assets/{installation.4a2c097d.js → installation.16ae0771.js} +1 -1
  199. package/dist/assets/{interfaces.cccc9cc1.js → interfaces.b5cebf09.js} +1 -1
  200. package/dist/assets/{introduction.6527a259.js → introduction.04bbf522.js} +1 -1
  201. package/dist/assets/{introduction.7a9da828.js → introduction.1cc62f08.js} +1 -1
  202. package/dist/assets/{introduction.a2f61d58.js → introduction.33560106.js} +1 -1
  203. package/dist/assets/{introduction.d55a65c8.js → introduction.70bf2d81.js} +1 -1
  204. package/dist/assets/is-IS.de933c2f.js +1 -0
  205. package/dist/assets/it-IT.34d52fbd.js +1 -0
  206. package/dist/assets/{items.d7eaeea0.js → items.4e295453.js} +14 -14
  207. package/dist/assets/{items.7601f70b.js → items.83b34697.js} +1 -1
  208. package/dist/assets/ja-JP.819a38cf.js +1 -0
  209. package/dist/assets/{javascript-hint.4638e1df.js → javascript-hint.620ad47b.js} +1 -1
  210. package/dist/assets/{javascript.03bf484d.js → javascript.22a42c19.js} +1 -1
  211. package/dist/assets/{jinja2.e0978b57.js → jinja2.0b1cb0bb.js} +1 -1
  212. package/dist/assets/{jsx.123b4803.js → jsx.248607cc.js} +1 -1
  213. package/dist/assets/{julia.5a59262e.js → julia.2162bdbd.js} +1 -1
  214. package/dist/assets/ka-GE.aa0d4cf4.js +1 -0
  215. package/dist/assets/{layouts.41b77af2.js → layouts.4f3cc3e7.js} +1 -1
  216. package/dist/assets/{layouts.91e2348f.js → layouts.7ced46fd.js} +1 -1
  217. package/dist/assets/{livescript.9a958350.js → livescript.3ddfeda6.js} +1 -1
  218. package/dist/assets/{localization.98833475.js → localization.e9668093.js} +1 -1
  219. package/dist/assets/lt-LT.772aac6e.js +1 -0
  220. package/dist/assets/{lua.92f32265.js → lua.a305cd56.js} +1 -1
  221. package/dist/assets/manual.0e28cbc4.js +10 -0
  222. package/dist/assets/{mark-selection.4a693f01.js → mark-selection.7b5a6fc9.js} +1 -1
  223. package/dist/assets/{match-highlighter.17a81b47.js → match-highlighter.873d12a5.js} +1 -1
  224. package/dist/assets/{mathematica.f14d4707.js → mathematica.01c3553a.js} +1 -1
  225. package/dist/assets/{mbox.e7c08a48.js → mbox.22a8b245.js} +1 -1
  226. package/dist/assets/{migrations.55476341.js → migrations.7147c537.js} +1 -1
  227. package/dist/assets/{mirc.0311799e.js → mirc.fa73561d.js} +1 -1
  228. package/dist/assets/{mllike.d7bb3f6e.js → mllike.4c54ebfa.js} +1 -1
  229. package/dist/assets/{modelica.7e7c93c0.js → modelica.07339979.js} +1 -1
  230. package/dist/assets/{modules.b617791f.js → modules.bfb7199d.js} +1 -1
  231. package/dist/assets/ms-MY.e50ff23a.js +1 -0
  232. package/dist/assets/{mscgen.2cc54faf.js → mscgen.686cc266.js} +1 -1
  233. package/dist/assets/{multiplex.fb681b1b.js → multiplex.a88458b2.js} +1 -1
  234. package/dist/assets/{mumps.674bb5e3.js → mumps.003d0d45.js} +1 -1
  235. package/dist/assets/{nginx.165b607e.js → nginx.dcba875a.js} +1 -1
  236. package/dist/assets/nl-NL.b57de112.js +1 -0
  237. package/dist/assets/no-NO.79458b78.js +1 -0
  238. package/dist/assets/{notifications.ccba3d4a.js → notifications.78fe69c9.js} +1 -1
  239. package/dist/assets/{nsis.1ed5ef23.js → nsis.a2c211d0.js} +1 -1
  240. package/dist/assets/{ntriples.e3148272.js → ntriples.4e06baf8.js} +1 -1
  241. package/dist/assets/{octave.ab99cd73.js → octave.c6583f11.js} +1 -1
  242. package/dist/assets/{overlay.03a5b7fa.js → overlay.742dc1cd.js} +1 -1
  243. package/dist/assets/{overview.e3f03ff4.js → overview.28df1146.js} +1 -1
  244. package/dist/assets/{overview.b3a91d76.js → overview.508f215d.js} +1 -1
  245. package/dist/assets/{overview.c76d2a06.js → overview.97626817.js} +1 -1
  246. package/dist/assets/{oz.e21c8060.js → oz.afa3546c.js} +1 -1
  247. package/dist/assets/{panels.8635347d.js → panels.89c0ed45.js} +1 -1
  248. package/dist/assets/{pascal.8c592490.js → pascal.8941c2f2.js} +1 -1
  249. package/dist/assets/{pegjs.e94f313a.js → pegjs.3aee5930.js} +1 -1
  250. package/dist/assets/{perl.f7dcd896.js → perl.3625c222.js} +1 -1
  251. package/dist/assets/{permissions.4970c519.js → permissions.c754088f.js} +1 -1
  252. package/dist/assets/{php.ad6c4236.js → php.4cdaa752.js} +1 -1
  253. package/dist/assets/{pig.7b140cb8.js → pig.21fe63de.js} +1 -1
  254. package/dist/assets/pinia.70349f0e.entry.js +1 -0
  255. package/dist/assets/pl-PL.5a1f6a70.js +1 -0
  256. package/dist/assets/{plesk.6409199b.js → plesk.af9c7c77.js} +8 -8
  257. package/dist/assets/{powershell.8d5784a6.js → powershell.cfe96af1.js} +1 -1
  258. package/dist/assets/{presets-bookmarks.335e81c4.js → presets-bookmarks.e7d33809.js} +1 -1
  259. package/dist/assets/{presets.3fb59a7c.js → presets.21984d83.js} +1 -1
  260. package/dist/assets/{project-settings.da2b6026.js → project-settings.d98ebcb5.js} +1 -1
  261. package/dist/assets/projects.06f11c9e.js +1 -0
  262. package/dist/assets/{properties.bd6ae04f.js → properties.90e293bc.js} +1 -1
  263. package/dist/assets/{protobuf.f3e4657d.js → protobuf.19a9e9b8.js} +1 -1
  264. package/dist/assets/pt-BR.2d6fa7cc.js +1 -0
  265. package/dist/assets/pt-PT.c28534a0.js +1 -0
  266. package/dist/assets/{pug.3c534d03.js → pug.8fdd6886.js} +1 -1
  267. package/dist/assets/{puppet.088f8b16.js → puppet.6dfeb6da.js} +1 -1
  268. package/dist/assets/{python.c49e4c13.js → python.e0245f5c.js} +1 -1
  269. package/dist/assets/{q.61a8ab64.js → q.d3d8a6a4.js} +1 -1
  270. package/dist/assets/{query.e6b1f07e.js → query.8828d31d.js} +7 -7
  271. package/dist/assets/quickstart.26991a56.js +9 -0
  272. package/dist/assets/{quickstart.9c3c65b4.js → quickstart.60decafe.js} +2 -2
  273. package/dist/assets/{r.f34d7d93.js → r.09038281.js} +1 -1
  274. package/dist/assets/{relations.77fc85a4.js → relations.29fed98c.js} +1 -1
  275. package/dist/assets/{relationships.7a8128c2.js → relationships.9b51c50f.js} +1 -1
  276. package/dist/assets/{revisions.99756266.js → revisions.0f19e955.js} +1 -1
  277. package/dist/assets/ro-RO.5161835a.js +1 -0
  278. package/dist/assets/{roles.27092a50.js → roles.aa9ecdfc.js} +5 -5
  279. package/dist/assets/{rpm.6b2223a5.js → rpm.881b5f64.js} +1 -1
  280. package/dist/assets/rst.b571a0d9.js +1 -0
  281. package/dist/assets/ru-RU.39540ee0.js +1 -0
  282. package/dist/assets/{ruby.6eb0fa57.js → ruby.83d0f6e3.js} +1 -1
  283. package/dist/assets/{running-locally.7242ae0a.js → running-locally.261a8137.js} +8 -10
  284. package/dist/assets/{rust.6aadde77.js → rust.8eb02a00.js} +1 -1
  285. package/dist/assets/{sas.deab0a07.js → sas.1c3e0687.js} +1 -1
  286. package/dist/assets/{sass.af8ab6d2.js → sass.76cf8437.js} +1 -1
  287. package/dist/assets/{scheme.18c5344a.js → scheme.4fa8c610.js} +1 -1
  288. package/dist/assets/{sdk.269c9e85.js → sdk.c37a5fba.js} +1 -1
  289. package/dist/assets/{security.862613c7.js → security.ed33172c.js} +1 -1
  290. package/dist/assets/{server.191bd9cd.js → server.a0eeaade.js} +1 -1
  291. package/dist/assets/{settings.7e7b66b7.js → settings.d5f90d4f.js} +1 -1
  292. package/dist/assets/{settings.4970c672.js → settings.fd4e15aa.js} +1 -1
  293. package/dist/assets/{shell.8d43da03.js → shell.c82f9c19.js} +1 -1
  294. package/dist/assets/{show-hint.5f0a75a7.js → show-hint.40044b34.js} +1 -1
  295. package/dist/assets/sieve.55ac0753.js +1 -0
  296. package/dist/assets/{simple.9700ddf1.js → simple.96f65f94.js} +1 -1
  297. package/dist/assets/sl-SI.719d987e.js +2 -0
  298. package/dist/assets/{slim.61b8011a.js → slim.e70a287c.js} +1 -1
  299. package/dist/assets/{smalltalk.936c2132.js → smalltalk.d09dc24d.js} +1 -1
  300. package/dist/assets/{smarty.7684a399.js → smarty.8ea9900c.js} +1 -1
  301. package/dist/assets/{solr.351a6f56.js → solr.a026a0e6.js} +1 -1
  302. package/dist/assets/{soy.a54a888b.js → soy.5034b90a.js} +1 -1
  303. package/dist/assets/{sparql.b38e0bef.js → sparql.756dd255.js} +1 -1
  304. package/dist/assets/{spreadsheet.8ae834ee.js → spreadsheet.ec5c0c2e.js} +1 -1
  305. package/dist/assets/{sql.bd75a39a.js → sql.ec917110.js} +1 -1
  306. package/dist/assets/sr-CS.c513578f.js +1 -0
  307. package/dist/assets/sr-SP.f91eaaca.js +1 -0
  308. package/dist/assets/{sso-examples.dff690ca.js → sso-examples.6c849325.js} +1 -1
  309. package/dist/assets/{sso.ccd423a5.js → sso.9920cf75.js} +1 -1
  310. package/dist/assets/{stex.751640f7.js → stex.d0b9833b.js} +1 -1
  311. package/dist/assets/{stylus.44c9a636.js → stylus.8b561261.js} +1 -1
  312. package/dist/assets/support.b7301715.js +1 -0
  313. package/dist/assets/sv-SE.a70fd097.js +1 -0
  314. package/dist/assets/{swift.6bee86b1.js → swift.1654ac84.js} +1 -1
  315. package/dist/assets/{tcl.d6f60bbe.js → tcl.b39e3c47.js} +1 -1
  316. package/dist/assets/{teams.69678693.js → teams.7d07ab3c.js} +1 -1
  317. package/dist/assets/{textile.fd4c90e1.js → textile.f922c3fe.js} +1 -1
  318. package/dist/assets/th-TH.bdbc4a8c.js +2 -0
  319. package/dist/assets/{themes.96c4b04e.js → themes.a5e50284.js} +1 -1
  320. package/dist/assets/{tiddlywiki.7f1650d8.js → tiddlywiki.cb8704a6.js} +1 -1
  321. package/dist/assets/{tiki.f948533d.js → tiki.088d0dec.js} +1 -1
  322. package/dist/assets/{toml.9f585d06.js → toml.4bc9ea0d.js} +1 -1
  323. package/dist/assets/{tornado.c8c03b6f.js → tornado.b19655d1.js} +1 -1
  324. package/dist/assets/tr-TR.d7a7361f.js +1 -0
  325. package/dist/assets/{translations.a57ab24c.js → translations.cd3858e6.js} +1 -1
  326. package/dist/assets/{troff.75929447.js → troff.3a27423f.js} +1 -1
  327. package/dist/assets/{ttcn-cfg.2a42e89c.js → ttcn-cfg.66931016.js} +1 -1
  328. package/dist/assets/{ttcn.d2edc1c1.js → ttcn.4b670503.js} +1 -1
  329. package/dist/assets/{turtle.53a5c73e.js → turtle.8a998017.js} +1 -1
  330. package/dist/assets/{twig.ecd65687.js → twig.2e58d76f.js} +1 -1
  331. package/dist/assets/{ubuntu.f280193a.js → ubuntu.b8abc8f2.js} +1 -1
  332. package/dist/assets/uk-UA.473dd1c9.js +1 -0
  333. package/dist/assets/{upgrades-migrations.27ddad05.js → upgrades-migrations.5d6e809a.js} +1 -1
  334. package/dist/assets/use-sync.18016d01.js +1 -0
  335. package/dist/assets/user-directory.370a7f49.js +1 -0
  336. package/dist/assets/users-roles-permissions.7f9a42f3.js +1 -0
  337. package/dist/assets/{users.5aa98413.js → users.b4781411.js} +1 -1
  338. package/dist/assets/{utilities.bf7f4133.js → utilities.b9c2a9d8.js} +1 -1
  339. package/dist/assets/{vb.842b5727.js → vb.f5e6afca.js} +1 -1
  340. package/dist/assets/{vbscript.fcc607c0.js → vbscript.c44059f4.js} +1 -1
  341. package/dist/assets/{velocity.efde9b99.js → velocity.99ae445e.js} +1 -1
  342. package/dist/assets/{vendor.e0a21029.js → vendor.f6090249.js} +110 -123
  343. package/dist/assets/{verilog.95b86b19.js → verilog.75ff9f03.js} +1 -1
  344. package/dist/assets/{vhdl.05ad780d.js → vhdl.e0f4e9d6.js} +1 -1
  345. package/dist/assets/vi-VN.7478a743.js +1 -0
  346. package/dist/assets/vue-i18n.4c1cb94b.entry.js +1 -0
  347. package/dist/assets/vue-router.d21957c3.entry.js +1 -0
  348. package/dist/assets/{vue.6c1e2b28.js → vue.a6974133.js} +1 -1
  349. package/dist/assets/vue.deaebe46.entry.js +1 -0
  350. package/dist/assets/{wast.c5c40bca.js → wast.9a32ecc0.js} +1 -1
  351. package/dist/assets/{webhooks.07b4ac17.js → webhooks.1a2e06f9.js} +1 -1
  352. package/dist/assets/{webhooks.dc830bd4.js → webhooks.8a69b405.js} +1 -1
  353. package/dist/assets/{webidl.81f09aef.js → webidl.c677ed4a.js} +1 -1
  354. package/dist/assets/{xquery.4e7c6d54.js → xquery.766f7ffc.js} +1 -1
  355. package/dist/assets/{yacas.70a010d5.js → yacas.4cab11b4.js} +1 -1
  356. package/dist/assets/{yaml-frontmatter.2881b171.js → yaml-frontmatter.3fc182ba.js} +1 -1
  357. package/dist/assets/{yaml.0a0b8dc6.js → yaml.14967251.js} +1 -1
  358. package/dist/assets/{z80.dce13765.js → z80.ea9cb3dc.js} +1 -1
  359. package/dist/assets/zh-CN.c51e7308.js +1 -0
  360. package/dist/assets/zh-TW.8ef6cec8.js +1 -0
  361. package/dist/index.html +4 -4
  362. package/package.json +6 -6
  363. package/dist/assets/@directus_extensions-sdk.83ecd947.entry.js +0 -1
  364. package/dist/assets/af-ZA.71af2276.js +0 -1
  365. package/dist/assets/ar-SA.4e5e2a4d.js +0 -1
  366. package/dist/assets/bg-BG.ac12438e.js +0 -2
  367. package/dist/assets/br-FR.986ec639.js +0 -1
  368. package/dist/assets/ca-ES.56d2029e.js +0 -1
  369. package/dist/assets/cs-CZ.21eb314a.js +0 -1
  370. package/dist/assets/da-DK.eafe971e.js +0 -1
  371. package/dist/assets/data-model.5bf39838.js +0 -1
  372. package/dist/assets/de-DE.b11ba39d.js +0 -1
  373. package/dist/assets/el-GR.6cae7a1c.js +0 -1
  374. package/dist/assets/en-CA.111f28d7.js +0 -1
  375. package/dist/assets/en-GB.d49ab07c.js +0 -1
  376. package/dist/assets/es-419.6fa04597.js +0 -1
  377. package/dist/assets/es-CL.d5fe3b03.js +0 -1
  378. package/dist/assets/es-ES.5299ee2e.js +0 -1
  379. package/dist/assets/et-EE.98069bd5.js +0 -3
  380. package/dist/assets/fa-IR.e1677687.js +0 -1
  381. package/dist/assets/fi-FI.6cd45ca4.js +0 -1
  382. package/dist/assets/fr-CA.500843e8.js +0 -1
  383. package/dist/assets/fr-FR.3e980b29.js +0 -1
  384. package/dist/assets/he-IL.bc84c4a0.js +0 -1
  385. package/dist/assets/hr-HR.488f4f23.js +0 -1
  386. package/dist/assets/hu-HU.f8950e75.js +0 -1
  387. package/dist/assets/id-ID.ca6d20b9.js +0 -1
  388. package/dist/assets/index.87da20e6.css +0 -1
  389. package/dist/assets/index.cee72373.entry.js +0 -541
  390. package/dist/assets/is-IS.35706417.js +0 -1
  391. package/dist/assets/it-IT.36fdff8b.js +0 -1
  392. package/dist/assets/ja-JP.fd245edd.js +0 -1
  393. package/dist/assets/ka-GE.0bf65322.js +0 -1
  394. package/dist/assets/lt-LT.6a535ee7.js +0 -1
  395. package/dist/assets/manual.818edfc3.js +0 -10
  396. package/dist/assets/ms-MY.8f7b6e20.js +0 -1
  397. package/dist/assets/nl-NL.5b0204f4.js +0 -1
  398. package/dist/assets/no-NO.a66d336d.js +0 -1
  399. package/dist/assets/pinia.b29efb4f.entry.js +0 -1
  400. package/dist/assets/pl-PL.cb210ffb.js +0 -1
  401. package/dist/assets/projects.c04f28b7.js +0 -1
  402. package/dist/assets/pt-BR.92a32af8.js +0 -1
  403. package/dist/assets/pt-PT.f0cdce40.js +0 -1
  404. package/dist/assets/ro-RO.83d12aa1.js +0 -1
  405. package/dist/assets/rst.009c8d0d.js +0 -1
  406. package/dist/assets/ru-RU.ab488b3a.js +0 -1
  407. package/dist/assets/sieve.cd31ea4b.js +0 -1
  408. package/dist/assets/sl-SI.5337e803.js +0 -2
  409. package/dist/assets/sr-CS.c4a5b89f.js +0 -1
  410. package/dist/assets/sr-SP.e7aaced7.js +0 -1
  411. package/dist/assets/support.a4a37514.js +0 -1
  412. package/dist/assets/sv-SE.ea1c82a6.js +0 -1
  413. package/dist/assets/th-TH.f44de68e.js +0 -2
  414. package/dist/assets/tr-TR.bafc0664.js +0 -1
  415. package/dist/assets/uk-UA.6ba66c91.js +0 -1
  416. package/dist/assets/use-sync.bd3a1e5b.js +0 -1
  417. package/dist/assets/user-directory.d8b4d6b4.js +0 -1
  418. package/dist/assets/users-roles-permissions.a2f25725.js +0 -1
  419. package/dist/assets/vi-VN.2e3953bd.js +0 -1
  420. package/dist/assets/vue-i18n.bb58f1d6.entry.js +0 -1
  421. package/dist/assets/vue-router.86ff737d.entry.js +0 -1
  422. package/dist/assets/vue.0442bd87.entry.js +0 -1
  423. package/dist/assets/zh-CN.dcde1064.js +0 -1
  424. package/dist/assets/zh-TW.84c79b23.js +0 -1
@@ -1 +1 @@
1
- import{bV as w}from"./vendor.e0a21029.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{bW as w}from"./vendor.f6090249.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.e0a21029.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.f6090249.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
@@ -58,13 +58,13 @@ sections.item:videos.source
58
58
  id
59
59
  }
60
60
  }
61
- `)])])])],-1),I=e("hr",null,null,-1),P=e("h2",{id:"limit"},[l("Limit "),e("a",{class:"header-anchor",href:"#limit"},"#")],-1),D=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Set the maximum number of items that will be returned. The default limit is set to "),e("code",null,"100"),l(".")])])],-1),F=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-4"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-4"},"#")]),e("p",null,[l("Get the first 200 items"),e("br"),e("code",null,"200")]),e("p",null,[l("Get all items"),e("br"),e("code",null,"-1")]),e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"All Items"),e("p",null,"Depending on the size of your collection, fetching unlimited data may result in degraded performance or timeouts, use with caution.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-5"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",null,`?limit=200
61
+ `)])])])],-1),I=e("hr",null,null,-1),P=e("h2",{id:"limit"},[l("Limit "),e("a",{class:"header-anchor",href:"#limit"},"#")],-1),Q=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Set the maximum number of items that will be returned. The default limit is set to "),e("code",null,"100"),l(".")])])],-1),D=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-4"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-4"},"#")]),e("p",null,[l("Get the first 200 items"),e("br"),e("code",null,"200")]),e("p",null,[l("Get all items"),e("br"),e("code",null,"-1")]),e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"All Items"),e("p",null,"Depending on the size of your collection, fetching unlimited data may result in degraded performance or timeouts, use with caution.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-5"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",null,`?limit=200
62
62
  `)]),e("h3",{id:"graphql-5"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-5"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
63
63
  articles(limit: `),e("span",{class:"hljs-number"},"200"),l(`) {
64
64
  id
65
65
  }
66
66
  }
67
- `)])])])],-1),Q=e("hr",null,null,-1),N=e("h2",{id:"offset"},[l("Offset "),e("a",{class:"header-anchor",href:"#offset"},"#")],-1),C=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Skip the first "),e("code",null,"n"),l(" items in the response. Can be used for pagination.")])])],-1),B=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-5"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-5"},"#")]),e("p",null,[l("Get items 101\u2014200"),e("br"),e("code",null,"100")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-6"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),e("pre",null,[e("code",null,`?offset=100
67
+ `)])])])],-1),F=e("hr",null,null,-1),N=e("h2",{id:"offset"},[l("Offset "),e("a",{class:"header-anchor",href:"#offset"},"#")],-1),C=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Skip the first "),e("code",null,"n"),l(" items in the response. Can be used for pagination.")])])],-1),B=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-5"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-5"},"#")]),e("p",null,[l("Get items 101\u2014200"),e("br"),e("code",null,"100")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-6"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),e("pre",null,[e("code",null,`?offset=100
68
68
  `)]),e("h3",{id:"graphql-6"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-6"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
69
69
  articles(offset: `),e("span",{class:"hljs-number"},"100"),l(`) {
70
70
  id
@@ -76,7 +76,7 @@ sections.item:videos.source
76
76
  id
77
77
  }
78
78
  }
79
- `)])])])],-1),U=e("hr",null,null,-1),V=e("h2",{id:"aggregation-%26-grouping"},[l("Aggregation & Grouping "),e("a",{class:"header-anchor",href:"#aggregation-%26-grouping"},"#")],-1),J=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Aggregate functions allow you to perform calculations on a set of values, returning a single result.")])],-1),Y=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"The following aggregation functions are available in Directus:"),e("table",null,[e("thead",null,[e("tr",null,[e("th",null,"Name"),e("th",null,"Description")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("code",null,"count")]),e("td",null,"Counts how many items there are")]),e("tr",null,[e("td",null,[e("code",null,"countDistinct")]),e("td",null,"Counts how many unique items there are")]),e("tr",null,[e("td",null,[e("code",null,"sum")]),e("td",null,"Adds together the values in the given field")]),e("tr",null,[e("td",null,[e("code",null,"sumDistinct")]),e("td",null,"Adds together the unique values in the given field")]),e("tr",null,[e("td",null,[e("code",null,"avg")]),e("td",null,"Get the average value of the given field")]),e("tr",null,[e("td",null,[e("code",null,"avgDistinct")]),e("td",null,"Get the average value of the unique values in the given field")]),e("tr",null,[e("td",null,[e("code",null,"min")]),e("td",null,"Return the lowest value in the field")]),e("tr",null,[e("td",null,[e("code",null,"max")]),e("td",null,"Return the highest value in the field")])])]),e("h3",{id:"grouping"},[l("Grouping "),e("a",{class:"header-anchor",href:"#grouping"},"#")]),e("p",null,[l("By default, the above aggregation functions run on the whole dataset. To allow for more flexible reporting, you can combine the above aggregation with grouping. Grouping allows for running the aggregation functions based on a shared value. This allows for things like "),e("em",null,"\u201CAverage rating per month\u201D"),l(" or "),e("em",null,"\u201CTotal sales of items in the jeans category\u201D"),l(".")]),e("p",null,[l("The "),e("code",null,"groupBy"),l(" query allows for grouping on multiple fields simultaneously. Combined with the "),e("a",{href:"#functions"},"Functions"),l(", this allows for aggregate reporting per year-month-date.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-8"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-8"},"#")]),e("pre",null,[e("code",null,`?aggregate[avg]=cost
79
+ `)])])])],-1),U=e("hr",null,null,-1),V=e("h2",{id:"aggregation-%26-grouping"},[l("Aggregation & Grouping "),e("a",{class:"header-anchor",href:"#aggregation-%26-grouping"},"#")],-1),J=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Aggregate functions allow you to perform calculations on a set of values, returning a single result.")])],-1),Y=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"The following aggregation functions are available in Directus:"),e("table",null,[e("thead",null,[e("tr",null,[e("th",null,"Name"),e("th",null,"Description")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("code",null,"count")]),e("td",null,"Counts how many items there are")]),e("tr",null,[e("td",null,[e("code",null,"countDistinct")]),e("td",null,"Counts how many unique items there are")]),e("tr",null,[e("td",null,[e("code",null,"sum")]),e("td",null,"Adds together the values in the given field")]),e("tr",null,[e("td",null,[e("code",null,"sumDistinct")]),e("td",null,"Adds together the unique values in the given field")]),e("tr",null,[e("td",null,[e("code",null,"avg")]),e("td",null,"Get the average value of the given field")]),e("tr",null,[e("td",null,[e("code",null,"avgDistinct")]),e("td",null,"Get the average value of the unique values in the given field")]),e("tr",null,[e("td",null,[e("code",null,"min")]),e("td",null,"Return the lowest value in the field")]),e("tr",null,[e("td",null,[e("code",null,"max")]),e("td",null,"Return the highest value in the field")]),e("tr",null,[e("td",null,[e("code",null,"countAll")]),e("td",null,[l("Equivalent to "),e("code",null,"?aggregate[count]=*"),l(" (GraphQL only)")])])])]),e("h3",{id:"grouping"},[l("Grouping "),e("a",{class:"header-anchor",href:"#grouping"},"#")]),e("p",null,[l("By default, the above aggregation functions run on the whole dataset. To allow for more flexible reporting, you can combine the above aggregation with grouping. Grouping allows for running the aggregation functions based on a shared value. This allows for things like "),e("em",null,"\u201CAverage rating per month\u201D"),l(" or "),e("em",null,"\u201CTotal sales of items in the jeans category\u201D"),l(".")]),e("p",null,[l("The "),e("code",null,"groupBy"),l(" query allows for grouping on multiple fields simultaneously. Combined with the "),e("a",{href:"#functions"},"Functions"),l(", this allows for aggregate reporting per year-month-date.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-8"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-8"},"#")]),e("pre",null,[e("code",null,`?aggregate[avg]=cost
80
80
  &groupBy[]=author
81
81
  &groupBy[]=year(publish_date)
82
82
  `)]),e("h3",{id:"graphql-8"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-8"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
@@ -130,10 +130,10 @@ sections.item:videos.source
130
130
  }
131
131
  }
132
132
  }
133
- `)])])])],-1),ae=e("hr",null,null,-1),se=e("h2",{id:"export"},[l("Export "),e("a",{class:"header-anchor",href:"#export"},"#")],-1),ne=e("p",null,"Save the current API response to a file.",-1),ie=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Saves the API response to a file. Accepts one of "),e("code",null,"json"),l(", "),e("code",null,"csv"),l(", "),e("code",null,"xml"),l(".")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-11"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-11"},"#")]),e("pre",null,[e("code",null,`?export=json
133
+ `)])])])],-1),ae=e("hr",null,null,-1),se=e("h2",{id:"export"},[l("Export "),e("a",{class:"header-anchor",href:"#export"},"#")],-1),ne=e("p",null,"Save the current API response to a file.",-1),re=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Saves the API response to a file. Accepts one of "),e("code",null,"json"),l(", "),e("code",null,"csv"),l(", "),e("code",null,"xml"),l(".")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-11"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-11"},"#")]),e("pre",null,[e("code",null,`?export=json
134
134
  ?export=csv
135
135
  ?export=xml
136
- `)]),e("h3",{id:"graphql-11"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-11"},"#")]),e("p",null,"n/a")])],-1),re=e("hr",null,null,-1),oe=e("h2",{id:"functions"},[l("Functions "),e("a",{class:"header-anchor",href:"#functions"},"#")],-1),de=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Functions allow for \u201Clive\u201D modification of values stored in a field. Functions can be used in any query parameter you\u2019d normally supply a field key, including fields, aggregation, and filter.")])],-1),ce=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Functions can be used by wrapping the field key in a JavaScript like syntax, for example:"),e("p",null,[e("code",null,"timestamp"),l(" -> "),e("code",null,"year(timestamp)")]),e("h3",{id:"datetime-functions"},[l("DateTime Functions "),e("a",{class:"header-anchor",href:"#datetime-functions"},"#")]),e("table",null,[e("thead",null,[e("tr",null,[e("th",null,"Filter"),e("th",null,"Description")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("code",null,"year")]),e("td",null,"Extract the year from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"month")]),e("td",null,"Extract the month from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"week")]),e("td",null,"Extract the week from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"day")]),e("td",null,"Extract the day from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"weekday")]),e("td",null,"Extract the weekday from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"hour")]),e("td",null,"Extract the hour from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"minute")]),e("td",null,"Extract the minute from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"second")]),e("td",null,"Extract the second from a datetime/date/timestamp field")])])]),e("h3",{id:"array-functions"},[l("Array Functions "),e("a",{class:"header-anchor",href:"#array-functions"},"#")]),e("table",null,[e("thead",null,[e("tr",null,[e("th",null,"Filter"),e("th",null,"Description")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("code",null,"count")]),e("td",null,"Extract the number of items from a JSON array or relational field")])])]),e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"GraphQL"),e("p",null,[l("Names aren\u2019t allowed to include any special characters in GraphQL, preventing the "),e("code",null,"()"),l(" syntax from being used.")]),e("p",null,[l("As an alternative, the above functions can be used by appending "),e("code",null,"_func"),l(" at the end of the field name, and using the function name as the nested field (see the example that follows).")])])]),e("div",{class:"right"},[e("h3",{id:"rest-api-12"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-12"},"#")]),e("pre",null,[e("code",null,`?fields=id,title,weekday(date_published)
136
+ `)]),e("h3",{id:"graphql-11"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-11"},"#")]),e("p",null,"n/a")])],-1),ie=e("hr",null,null,-1),oe=e("h2",{id:"functions"},[l("Functions "),e("a",{class:"header-anchor",href:"#functions"},"#")],-1),de=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Functions allow for \u201Clive\u201D modification of values stored in a field. Functions can be used in any query parameter you\u2019d normally supply a field key, including fields, aggregation, and filter.")])],-1),ce=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Functions can be used by wrapping the field key in a JavaScript like syntax, for example:"),e("p",null,[e("code",null,"timestamp"),l(" -> "),e("code",null,"year(timestamp)")]),e("h3",{id:"datetime-functions"},[l("DateTime Functions "),e("a",{class:"header-anchor",href:"#datetime-functions"},"#")]),e("table",null,[e("thead",null,[e("tr",null,[e("th",null,"Filter"),e("th",null,"Description")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("code",null,"year")]),e("td",null,"Extract the year from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"month")]),e("td",null,"Extract the month from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"week")]),e("td",null,"Extract the week from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"day")]),e("td",null,"Extract the day from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"weekday")]),e("td",null,"Extract the weekday from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"hour")]),e("td",null,"Extract the hour from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"minute")]),e("td",null,"Extract the minute from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"second")]),e("td",null,"Extract the second from a datetime/date/timestamp field")])])]),e("h3",{id:"array-functions"},[l("Array Functions "),e("a",{class:"header-anchor",href:"#array-functions"},"#")]),e("table",null,[e("thead",null,[e("tr",null,[e("th",null,"Filter"),e("th",null,"Description")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("code",null,"count")]),e("td",null,"Extract the number of items from a JSON array or relational field")])])]),e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"GraphQL"),e("p",null,[l("Names aren\u2019t allowed to include any special characters in GraphQL, preventing the "),e("code",null,"()"),l(" syntax from being used.")]),e("p",null,[l("As an alternative, the above functions can be used by appending "),e("code",null,"_func"),l(" at the end of the field name, and using the function name as the nested field (see the example that follows).")])])]),e("div",{class:"right"},[e("h3",{id:"rest-api-12"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-12"},"#")]),e("pre",null,[e("code",null,`?fields=id,title,weekday(date_published)
137
137
  &filter[year(date_published)][_eq]=2021
138
138
  `)]),e("h3",{id:"graphql-12"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-12"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
139
139
  articles(filter: { date_published_func: { year: { _eq: `),e("span",{class:"hljs-number"},"2021"),l(` } } }) {
@@ -149,4 +149,4 @@ sections.item:videos.source
149
149
  ?meta=filter_count
150
150
 
151
151
  ?meta=*
152
- `)]),e("h3",{id:"graphql-13"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-13"},"#")]),e("p",null,"n/a")])],-1),ye={setup(ge,{expose:n}){const t={title:"Global Query Parameters",modularExtension:!1,pageClass:"page-reference"};return n({frontmatter:t}),(me,_e)=>{const i=a("router-link"),r=a("DocsWrapper");return o(),d(r,{frontmatter:t},{default:s(()=>[e("div",h,[u,p,f,g,m,_,v,e("div",y,[e("div",w,[e("p",null,[b,c(i,{to:"/docs/configuration/filter-rules"},{default:s(()=>[q]),_:1}),j])])]),x,k,G,A,E,S,T,R,L,I,P,D,F,Q,N,C,B,M,W,z,O,U,V,J,Y,H,K,X,Z,$,ee,le,te,ae,se,ne,ie,re,oe,de,ce,he,ue,pe,fe])]),_:1})}}};export{ye as default};
152
+ `)]),e("h3",{id:"graphql-13"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-13"},"#")]),e("p",null,"n/a")])],-1),ye={setup(ge,{expose:n}){const t={title:"Global Query Parameters",modularExtension:!1,pageClass:"page-reference"};return n({frontmatter:t}),(me,_e)=>{const r=a("router-link"),i=a("DocsWrapper");return o(),d(i,{frontmatter:t},{default:s(()=>[e("div",h,[u,p,f,g,m,_,v,e("div",y,[e("div",w,[e("p",null,[b,c(r,{to:"/docs/configuration/filter-rules"},{default:s(()=>[q]),_:1}),j])])]),x,k,G,A,E,S,T,R,L,I,P,Q,D,F,N,C,B,M,W,z,O,U,V,J,Y,H,K,X,Z,$,ee,le,te,ae,se,ne,re,ie,oe,de,ce,he,ue,pe,fe])]),_:1})}}};export{ye as default};
@@ -0,0 +1,9 @@
1
+ import{w as i,y as r,z as d,A as o,E as t,C as n,W as e}from"./vendor.f6090249.js";const u={class:"markdown-body"},h=t("blockquote",null,[t("p",null,[e("This quickstart guide is designed to get you up and running with a Directus Cloud Project in a snap. Along the way, you will better understand what Directus is, setup your free Directus Cloud Account, get a "),t("em",null,"hands-on introduction"),e(" to the App and API, and find more resources to deep-dive into.")])],-1),_=t("h2",{id:"1.-create-cloud-account-and-login"},[e("1. Create Cloud Account and Login "),t("a",{class:"header-anchor",href:"#1.-create-cloud-account-and-login"},"#")],-1),p=t("video",{autoplay:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/getting-started/quickstart/quickstart-20220427A/create-account-and-login-20220427.mp4",type:"video/mp4"})],-1),m=e("First, you\u2019ll need to "),f=e("create an Account and log in"),g=e(" on "),y=t("a",{href:"https://directus.cloud/login",target:"_blank",rel:"noopener noreferrer"},"Directus Cloud",-1),b=t("p",null,"Your Directus Cloud Account allows you to create and manage any number of Community and Standard Projects. We\u2019ve made life easier by giving you the option to create and log in to your free Cloud Account automatically with GitHub. If you don\u2019t have a GitHub account or prefer not to use this login method, email-and-password login is available as well.",-1),v=t("p",null,"The very first time you log in to your cloud account, you will be prompted to create a Team. Teams are totally free to create. Each Directus Cloud Project exists within the scope of one Team. They allow you to organize Team Members, Projects and Project Billing as desired.",-1),w=t("p",null,"Once your Team is created, it\u2019s time to create your free Community Cloud Project!",-1),C={class:"tip hint"},A=t("div",{class:"hint-title"},"Learn More About Cloud",-1),P=e("Overview"),k=e("Cloud Accounts"),j=e("Cloud Teams"),I=t("h2",{id:"2.-create-and-access-project"},[e("2. Create and Access Project "),t("a",{class:"header-anchor",href:"#2.-create-and-access-project"},"#")],-1),T=t("video",{autoplay:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/getting-started/quickstart/quickstart-20220427A/create-and-access-project-20220427A.mp4",type:"video/mp4"})],-1),D=t("p",null,"To create a Community Project, follow the steps below:",-1),S=e("Open the Team Menu in the Dashboard Header and select or "),F=e("create"),M=e(" the desired Team."),N=t("li",null,[e("Navigate to "),t("strong",null,"\u201CProjects\u201D"),e(" and click "),t("strong",null,"\u201CCreate Project\u201D"),e(".")],-1),R=t("li",null,"Set the Project Name.",-1),q=t("li",null,"Select the Community tier.",-1),L=t("li",null,[e("Scroll to the bottom of the screen and choose the "),t("strong",null,"\u201CEmpty Project\u201D"),e(" Starting Template."),t("br"),e(" Note: The "),t("strong",null,"\u201CDemo Project\u201D"),e(" adds in dummy data for in-depth feature demonstrations.")],-1),x=t("li",null,[e("Click "),t("strong",null,"\u201CCreate Project\u201D"),e(".")],-1),O=t("p",null,[t("em",null,"It should take around 90 seconds for the Cloud Project to build out. During this time, a link will be sent to the email associated with your Cloud Account. The email will contain your Project URL as well as an email and password to login. If you used GitHub to create your account, this will be your GitHub email. Once the build is complete, it\u2019s time log in!")],-1),B={start:"7"},E=e("You can "),G=e("access a Project"),W=e(" from within the Cloud Dashboard or type the URL into your browser."),H=t("li",null,"Log in with your username and password from the email.",-1),U=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Check All Inbox Folders"),t("p",null,"Due to the algorithms used by some email providers, it is possible the email containing your Project login information will end up in another folder like \u201CSocial\u201D or \u201CPromotions\u201D.")],-1),z={class:"tip hint"},V=t("div",{class:"hint-title"},"Learn More About Cloud Projects",-1),Y=e("Overview"),K=e("Cloud Projects"),Q=t("h2",{id:"3.-create-a-collection"},[e("3. Create a Collection "),t("a",{class:"header-anchor",href:"#3.-create-a-collection"},"#")],-1),J=t("video",{autoplay:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/getting-started/quickstart/quickstart-20220427A/create-a-collection-20220427A.mp4",type:"video/mp4"})],-1),X=e("Once logged in, you\u2019re greeted with the option to create your first "),Z=e("Collection"),$=e("."),tt=t("ol",null,[t("li",null,"Navigate into the Content Module."),t("li",null,[e("Click "),t("strong",null,"\u201CCreate Collection\u201D"),e(" and a side menu will appear.")]),t("li",null,[e("Fill in a "),t("strong",null,"Name"),e("."),t("br"),e(" For the sake of this demo, we\u2019ll call ours "),t("code",null,"articles"),e(", but feel free to make it your own!")]),t("li",null,[e("Leave the other options at default. Click "),t("span",{mi:"",btn:""},"arrow_forward"),e(" and the "),t("strong",null,"\u201COptional System Fields\u201D"),e(" menu will open."),t("br"),e(" Keep the values in this menu at the default, toggled off, for now. You can adjust them later.")]),t("li",null,[e("Click "),t("span",{mi:"",btn:""},"check"),e(" in the menu header.")])],-1),et={class:"tip hint"},ot=t("div",{class:"hint-title"},"Learn More About Collections",-1),st=e("The Content Module"),nt=e("Create and Manage a Collection"),lt=e("Build Relationships Between Collections"),it=t("h2",{id:"4.-create-a-field"},[e("4. Create a Field "),t("a",{class:"header-anchor",href:"#4.-create-a-field"},"#")],-1),at=t("video",{autoplay:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/getting-started/quickstart/quickstart-20220427A/create-a-field-20220427A.mp4",type:"video/mp4"})],-1),ct=e("With your first Collection created, it\u2019s time to start adding some "),rt=e("Fields"),dt=e("."),ut=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,[e("Settings Module > Data Model > "),t("code",null,"Collection-Name")]),e(".")]),t("li",null,[e("Click the "),t("strong",null,"\u201CCreate Field\u201D"),e(" button and select the "),t("strong",null,"\u201CInput\u201D"),e(" Field type.")]),t("li",null,[e("Fill in a Field name under "),t("strong",null,"Key"),e(". We\u2019ll be calling our Field "),t("code",null,"title"),e("."),t("br"),e(" Directus offers powerful Field customization options, but let\u2019s stick to the defaults for now.")]),t("li",null,[e("Select "),t("strong",null,"\u201CSave\u201D"),e(".")])],-1),ht={class:"tip hint"},_t=t("div",{class:"hint-title"},"Learn More About Fields",-1),pt=e("Create and Manage Fields in the App"),mt=t("h2",{id:"5.-create-an-item"},[e("5. Create an Item "),t("a",{class:"header-anchor",href:"#5.-create-an-item"},"#")],-1),ft=t("video",{autoplay:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/getting-started/quickstart/quickstart-20220427A/create-an-item-20220427B.mp4",type:"video/mp4"})],-1),gt=e("Now that we have a Collection with a Field configured, it\u2019s time to add an "),yt=e("Item"),bt=e("."),vt=t("ol",null,[t("li",null,"Navigate to the Content Module."),t("li",null,[e("Click "),t("span",{mi:"",btn:""},"add"),e(" in the page header to open the Item Page.")]),t("li",null,"Fill in the Field Value(s) as desired."),t("li",null,[e("Click "),t("span",{mi:"",btn:""},"check"),e(" in the top-right to save your Item.")])],-1),wt={class:"tip hint"},Ct=t("div",{class:"hint-title"},"Learn More About Items",-1),At=e("The Content Module"),Pt=e("The Item Page"),kt=t("h2",{id:"6.-set-roles-%26-permissions"},[e("6. Set Roles & Permissions "),t("a",{class:"header-anchor",href:"#6.-set-roles-%26-permissions"},"#")],-1),jt=t("video",{autoplay:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/getting-started/quickstart/quickstart-20220427A/set-read-permissions-20220427A.mp4",type:"video/mp4"})],-1),It=t("p",null,"Directus comes with two built-in roles: Public and Admin. The Public Role determines what data is returned to non-authenticated users. Public comes with all permissions turned off and can be reconfigured with fully granular control to expose exactly what you want unauthenticated Users to see. The Admin role has full permissions and this cannot be changed. Aside from these built-in Roles, any number of new Roles can be created, all with fully customized, granular permissions.",-1),Tt=t("p",null,[e("By Default, content entered into Directus will be considered private. So permissions always start off set to the default of "),t("span",{mi:"",icon:"",dngr:""},"block"),e(),t("strong",null,"No Access"),e(", with full ability to reconfigure as desired. So, in order to have the API return our Items, let\u2019s add some read permissions. For simplicity\u2019s sake, we\u2019ll do this on the Public Role, instead of creating a new Role.")],-1),Dt=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings Module > Roles & Permissions > Public"),e(".")]),t("li",null,[e("Click "),t("span",{mi:"",icon:"",dngr:""},"block"),e(" under the "),t("span",{mi:"",icon:""},"visibility"),e(" icon on the desired Collection."),t("br"),e(" In our case, the Collection name is "),t("code",null,"article"),e(".")]),t("li",null,[e("Click "),t("strong",null,"\u201CAll Access\u201D"),e(" to give the Public Role full read permissions to the Items in this Collection.")])],-1),St={class:"tip hint"},Ft=t("div",{class:"hint-title"},"Learn More About Roles & Permissions",-1),Mt=e("Users, Roles and Permissions"),Nt=e("."),Rt=t("h2",{id:"7.-connect-to-the-api"},[e("7. Connect to the API "),t("a",{class:"header-anchor",href:"#7.-connect-to-the-api"},"#")],-1),qt=e("Now that your Project has some content in it which is exposed to the Public, it\u2019s time to start using this content externally! Data can be accessed in a number of ways, including the REST and GraphQL API Enpoints. In this case, we\u2019ll use the "),Lt=t("code",null,"/items/",-1),xt=e(),Ot=e("REST API endpoint"),Bt=e(" to retrieve the Item we just created."),Et=t("ol",null,[t("li",null,[e("Open "),t("code",null,"http://your-project-url.directus.app/items/articles"),e("."),t("br"),e(" You can use the browser or an API tool like "),t("a",{href:"http://postman.com",target:"_blank",rel:"noopener noreferrer"},"Postman"),e(" or "),t("a",{href:"https://paw.cloud",target:"_blank",rel:"noopener noreferrer"},"Paw")])],-1),Gt=t("p",null,[t("em",null,"And there it is! The Article Item you just created is being served in beautiful JSON, ready to be used anywhere and everywhere!")],-1),Wt=t("pre",null,[t("code",{class:"language-json"},[e(`{
2
+ `),t("span",{class:"hljs-attr"},'"data"'),e(`: [
3
+ {
4
+ `),t("span",{class:"hljs-attr"},'"id"'),e(": "),t("span",{class:"hljs-number"},"1"),e(`,
5
+ `),t("span",{class:"hljs-attr"},'"title"'),e(": "),t("span",{class:"hljs-string"},'"Hello World!"'),e(`
6
+ }
7
+ ]
8
+ }
9
+ `)])],-1),Ht=t("p",null,[t("em",null,"In this example, we made a super-simple read request with the API, but there\u2019s more! The REST and GraphQL APIs provide exhaustive endpoints for the data model and every single action that you can do in the App can be done via the API. In fact, the App is just a GUI powered by the API.")],-1),Ut={class:"tip hint"},zt=t("div",{class:"hint-title"},"Learn More About The API",-1),Vt=e("Intro to the API"),Yt=e("JS SDK"),Zt={setup(Kt,{expose:a}){const l={title:"Quickstart Guide",modularExtension:!1};return a({frontmatter:l}),(Qt,Jt)=>{const s=i("router-link"),c=i("DocsWrapper");return r(),d(c,{frontmatter:l},{default:o(()=>[t("div",u,[h,_,p,t("p",null,[m,n(s,{to:"/docs/cloud/accounts/#create-account-and-login"},{default:o(()=>[f]),_:1}),g,y]),b,v,w,t("div",C,[A,t("ul",null,[t("li",null,[n(s,{to:"/docs/cloud/overview/"},{default:o(()=>[P]),_:1})]),t("li",null,[n(s,{to:"/docs/cloud/accounts/"},{default:o(()=>[k]),_:1})]),t("li",null,[n(s,{to:"/docs/cloud/teams/"},{default:o(()=>[j]),_:1})])])]),I,T,D,t("ol",null,[t("li",null,[S,n(s,{to:"/docs/cloud/teams/#create-a-team"},{default:o(()=>[F]),_:1}),M]),N,R,q,L,x]),O,t("ol",B,[t("li",null,[E,n(s,{to:"/docs/cloud/projects/#access-a-project"},{default:o(()=>[G]),_:1}),W]),H]),U,t("div",z,[V,t("ul",null,[t("li",null,[n(s,{to:"/docs/cloud/overview/"},{default:o(()=>[Y]),_:1})]),t("li",null,[n(s,{to:"/docs/cloud/projects/"},{default:o(()=>[K]),_:1})])])]),Q,J,t("p",null,[X,n(s,{to:"/docs/getting-started/glossary/#collections"},{default:o(()=>[Z]),_:1}),$]),tt,t("div",et,[ot,t("ul",null,[t("li",null,[n(s,{to:"/docs/app/content"},{default:o(()=>[st]),_:1})]),t("li",null,[n(s,{to:"/docs/configuration/data-model/"},{default:o(()=>[nt]),_:1})]),t("li",null,[n(s,{to:"/docs/configuration/relationships/"},{default:o(()=>[lt]),_:1})])])]),it,at,t("p",null,[ct,n(s,{to:"/docs/getting-started/glossary/#fields"},{default:o(()=>[rt]),_:1}),dt]),ut,t("div",ht,[_t,t("ul",null,[t("li",null,[n(s,{to:"/docs/configuration/data-model/"},{default:o(()=>[pt]),_:1})])])]),mt,ft,t("p",null,[gt,n(s,{to:"/docs/getting-started/glossary/#"},{default:o(()=>[yt]),_:1}),bt]),vt,t("div",wt,[Ct,t("ul",null,[t("li",null,[n(s,{to:"/docs/app/content/"},{default:o(()=>[At]),_:1})]),t("li",null,[n(s,{to:"/docs/app/content/items"},{default:o(()=>[Pt]),_:1})])])]),kt,jt,It,Tt,Dt,t("div",St,[Ft,t("ul",null,[t("li",null,[n(s,{to:"/docs/configuration/users-roles-permissions/"},{default:o(()=>[Mt]),_:1}),Nt])])]),Rt,t("p",null,[qt,Lt,xt,n(s,{to:"/docs/reference/items"},{default:o(()=>[Ot]),_:1}),Bt]),Et,Gt,Wt,Ht,t("div",Ut,[zt,t("ul",null,[t("li",null,[n(s,{to:"/docs/reference/introduction/"},{default:o(()=>[Vt]),_:1})]),t("li",null,[n(s,{to:"/docs/reference/sdk/"},{default:o(()=>[Yt]),_:1})])])])])]),_:1})}}};export{Zt as default};
@@ -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.e0a21029.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.f6090249.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:
@@ -17,4 +17,4 @@ The configuration can be found in <file-path>/example-project/.env
17
17
  }
18
18
  ]
19
19
  }
20
- `)])],-1),qt={setup(Ft,{expose:l}){const a={title:"Quickstart Guide",modularExtension:!1};return l({frontmatter:a}),(Nt,Tt)=>{const s=i("router-link"),r=i("DocsWrapper");return c(),d(r,{frontmatter:a},{default:o(()=>[t("div",h,[u,p,_,m,g,f,b,y,w,v,k,C,I,P,j,D,A,x,S,F,N,T,R,q,L,W,E,M,O,Q,t("div",B,[H,t("p",null,[z,n(s,{to:"/docs/app/content/collections"},{default:o(()=>[U]),_:1}),V])]),G,Y,J,K,t("div",X,[Z,t("p",null,[$,n(s,{to:"/docs/getting-started/glossary/#fields"},{default:o(()=>[tt]),_:1}),et])]),ot,st,nt,at,t("div",it,[lt,t("p",null,[rt,n(s,{to:"/docs/app/content-items/"},{default:o(()=>[ct]),_:1}),dt])]),ht,ut,pt,_t,t("div",mt,[gt,t("p",null,[ft,n(s,{to:"/docs/reference/system/roles"},{default:o(()=>[bt]),_:1}),yt,n(s,{to:"/docs/reference/system/permissions"},{default:o(()=>[wt]),_:1}),vt])]),kt,t("p",null,[Ct,n(s,{to:"/docs/reference/items"},{default:o(()=>[It,Pt,jt]),_:1}),Dt]),At,xt,St])]),_:1})}}};export{qt as default};
20
+ `)])],-1),qt={setup(Ft,{expose:l}){const a={title:"Quickstart Guide",modularExtension:!1};return l({frontmatter:a}),(Nt,Tt)=>{const s=i("router-link"),r=i("DocsWrapper");return c(),d(r,{frontmatter:a},{default:o(()=>[t("div",h,[u,p,_,m,g,f,b,y,w,v,k,C,I,P,j,D,A,x,S,F,N,T,R,q,L,W,E,M,O,Q,t("div",B,[H,t("p",null,[z,n(s,{to:"/docs/app/content-collections"},{default:o(()=>[U]),_:1}),V])]),G,Y,J,K,t("div",X,[Z,t("p",null,[$,n(s,{to:"/docs/getting-started/glossary/#fields"},{default:o(()=>[tt]),_:1}),et])]),ot,st,nt,at,t("div",it,[lt,t("p",null,[rt,n(s,{to:"/docs/app/content-items/"},{default:o(()=>[ct]),_:1}),dt])]),ht,ut,pt,_t,t("div",mt,[gt,t("p",null,[ft,n(s,{to:"/docs/reference/system/roles"},{default:o(()=>[bt]),_:1}),yt,n(s,{to:"/docs/reference/system/permissions"},{default:o(()=>[wt]),_:1}),vt])]),kt,t("p",null,[Ct,n(s,{to:"/docs/reference/items"},{default:o(()=>[It,Pt,jt]),_:1}),Dt]),At,xt,St])]),_:1})}}};export{qt as default};
@@ -1 +1 @@
1
- import{bV as S}from"./vendor.e0a21029.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
+ import{bW as S}from"./vendor.f6090249.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.e0a21029.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.f6090249.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.e0a21029.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.f6090249.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)
@@ -1,4 +1,4 @@
1
- import{w as l,y as c,z as h,A as t,E as s,C as o,W as e}from"./vendor.e0a21029.js";const d={class:"markdown-body"},_={class:"two-up"},p={class:"left"},u=e("Revisions are individual changes to items made. Directus keeps track of changes made, so you\u2019re able to revert to a previous state at will. "),v=e("Learn more about Revisions"),m=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-revision-object"},"The Revision Object")]),s("li",null,[s("a",{href:"#list-revisions"},"List revisions")]),s("li",null,[s("a",{href:"#retrieve-a-revision"},"Retrieve a revision")])])])])],-1),g=s("hr",null,null,-1),y=s("h2",{id:"the-revision-object"},[e("The Revision Object "),s("a",{class:"header-anchor",href:"#the-revision-object"},"#")],-1),j={class:"two-up"},b={class:"left"},q={class:"definitions"},x=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the revision.")],-1),w=s("code",null,"activity",-1),k=e(),R=s("strong",null,"many-to-one",-1),E=s("br",null,null,-1),T=e(" Related activity record. Many-to-one to "),P=e("activity"),S=e("."),L=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection in which this revision happened.")],-1),C=s("p",null,[s("code",null,"item"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the item that was changed.")],-1),A=s("p",null,[s("code",null,"data"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the top-level item data.")],-1),D=s("p",null,[s("code",null,"delta"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the changes made in this revision.")],-1),Q=s("p",null,[s("code",null,"parent"),e(),s("strong",null,"many-to-one"),s("br"),e(" Parent revision that triggered this revision. Many-to-one to revisions (recursive).")],-1),G=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
1
+ import{w as l,y as c,z as h,A as t,E as s,C as o,W as e}from"./vendor.f6090249.js";const d={class:"markdown-body"},_={class:"two-up"},p={class:"left"},u=e("Revisions are individual changes to items made. Directus keeps track of changes made, so you\u2019re able to revert to a previous state at will. "),v=e("Learn more about Revisions"),m=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-revision-object"},"The Revision Object")]),s("li",null,[s("a",{href:"#list-revisions"},"List revisions")]),s("li",null,[s("a",{href:"#retrieve-a-revision"},"Retrieve a revision")])])])])],-1),g=s("hr",null,null,-1),y=s("h2",{id:"the-revision-object"},[e("The Revision Object "),s("a",{class:"header-anchor",href:"#the-revision-object"},"#")],-1),j={class:"two-up"},b={class:"left"},q={class:"definitions"},x=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the revision.")],-1),w=s("code",null,"activity",-1),k=e(),R=s("strong",null,"many-to-one",-1),E=s("br",null,null,-1),T=e(" Related activity record. Many-to-one to "),P=e("activity"),S=e("."),L=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection in which this revision happened.")],-1),C=s("p",null,[s("code",null,"item"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the item that was changed.")],-1),A=s("p",null,[s("code",null,"data"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the top-level item data.")],-1),D=s("p",null,[s("code",null,"delta"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the changes made in this revision.")],-1),Q=s("p",null,[s("code",null,"parent"),e(),s("strong",null,"many-to-one"),s("br"),e(" Parent revision that triggered this revision. Many-to-one to revisions (recursive).")],-1),G=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"},"368"),e(`,
3
3
  `),s("span",{class:"hljs-attr"},'"activity"'),e(": "),s("span",{class:"hljs-number"},"438"),e(`,
4
4
  `),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"articles"'),e(`,