@directus/app 9.14.0 → 9.14.3

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 (479) hide show
  1. package/dist/assets/@directus_extensions-sdk.118c3166.entry.js +1 -0
  2. package/dist/assets/{accounts.40ab36c1.js → accounts.d4221901.js} +1 -1
  3. package/dist/assets/{active-line.71775521.js → active-line.c42b5ccc.js} +1 -1
  4. package/dist/assets/{activity-log.9449feec.js → activity-log.0479877c.js} +1 -1
  5. package/dist/assets/activity.941cbf2b.js +80 -0
  6. package/dist/assets/{af.b15e3fdc.js → af.ffe603d7.js} +0 -0
  7. package/dist/assets/{apl.fabbb08e.js → apl.fc3177e6.js} +1 -1
  8. package/dist/assets/ar-SA.52ee85f9.js +1 -0
  9. package/dist/assets/{ar-dz.5481d0db.js → ar-dz.923ce4b9.js} +0 -0
  10. package/dist/assets/{ar-kw.77cb7412.js → ar-kw.7f81a6f6.js} +0 -0
  11. package/dist/assets/{ar-ly.d2852686.js → ar-ly.eeb6eb8f.js} +0 -0
  12. package/dist/assets/{ar-ma.6b2052c4.js → ar-ma.edaad637.js} +0 -0
  13. package/dist/assets/{ar-sa.0ce4896b.js → ar-sa.a955cf78.js} +0 -0
  14. package/dist/assets/{ar-tn.0075ee1e.js → ar-tn.0bd79035.js} +0 -0
  15. package/dist/assets/{ar.01c8813a.js → ar.dfbee566.js} +0 -0
  16. package/dist/assets/{architecture.9e90b6f3.js → architecture.ddda2484.js} +1 -1
  17. package/dist/assets/{asciiarmor.f87dc63a.js → asciiarmor.a8ce3f8e.js} +1 -1
  18. package/dist/assets/{asn.1.5dd57608.js → asn.1.646b8b76.js} +1 -1
  19. package/dist/assets/{asterisk.395cf0ad.js → asterisk.b941d12b.js} +1 -1
  20. package/dist/assets/authentication.d5cd539e.js +73 -0
  21. package/dist/assets/{autorefresh.2c9c0320.js → autorefresh.567e17ed.js} +1 -1
  22. package/dist/assets/{aws.6652a1fd.js → aws.65b39fe1.js} +1 -1
  23. package/dist/assets/{az.839e5437.js → az.ac368cbb.js} +0 -0
  24. package/dist/assets/{backing-directus.02c28d29.js → backing-directus.2809dd5a.js} +1 -1
  25. package/dist/assets/{bg.71bbc37d.js → bg.63a91564.js} +0 -0
  26. package/dist/assets/{bn.28eb3677.js → bn.a1d9b410.js} +0 -0
  27. package/dist/assets/{brainfuck.60536f63.js → brainfuck.f26a5772.js} +1 -1
  28. package/dist/assets/{bs.b0570362.js → bs.92a16737.js} +0 -0
  29. package/dist/assets/{ca.d17b0b48.js → ca.31d0764d.js} +0 -0
  30. package/dist/assets/{cli.863ef0d2.js → cli.6ee7cfc0.js} +1 -1
  31. package/dist/assets/{cli.6e61515e.js → cli.fce4fcbe.js} +2 -2
  32. package/dist/assets/{clike.74e0448b.js → clike.cfce5ee3.js} +1 -1
  33. package/dist/assets/{clojure.8f96f0f7.js → clojure.2fe79f1b.js} +1 -1
  34. package/dist/assets/{cloudron.a348537b.js → cloudron.735aeaf5.js} +1 -1
  35. package/dist/assets/{cmake.723ea5dd.js → cmake.3cfd7c00.js} +1 -1
  36. package/dist/assets/{cobol.a990507c.js → cobol.21633223.js} +1 -1
  37. package/dist/assets/codebase-overview.3de1bbdc.js +1 -0
  38. package/dist/assets/{coffeescript.c826a1f4.js → coffeescript.9fc4b4fa.js} +1 -1
  39. package/dist/assets/collections.11aae4a8.js +106 -0
  40. package/dist/assets/{collections.60e4b448.js → collections.e06a8b1f.js} +1 -1
  41. package/dist/assets/{commonlisp.0f5d3fae.js → commonlisp.f6b276ff.js} +1 -1
  42. package/dist/assets/{config-options.8e2d8e17.js → config-options.9b79feaf.js} +15 -15
  43. package/dist/assets/{content.003d7d7c.js → content.07b42fc5.js} +1 -1
  44. package/dist/assets/creating-extensions.054f4231.js +13 -0
  45. package/dist/assets/{crystal.8517c407.js → crystal.68fa9fad.js} +1 -1
  46. package/dist/assets/cs-CZ.5045b098.js +1 -0
  47. package/dist/assets/{cs.23d06f43.js → cs.021e612f.js} +0 -0
  48. package/dist/assets/{css.f2b45d65.js → css.05f1267f.js} +1 -1
  49. package/dist/assets/{cy.3b5a8132.js → cy.abf1b7d8.js} +0 -0
  50. package/dist/assets/{cypher.0f67a8c4.js → cypher.3ba27a55.js} +1 -1
  51. package/dist/assets/{d.d8c5a86d.js → d.0b29fec8.js} +1 -1
  52. package/dist/assets/{da.18bc0ec4.js → da.230eee14.js} +0 -0
  53. package/dist/assets/{dart.ff540412.js → dart.47537d5c.js} +1 -1
  54. package/dist/assets/{data-model.086edd1e.js → data-model.eb5f7e27.js} +1 -1
  55. package/dist/assets/{data-sharing.27afa5ee.js → data-sharing.8b80b0f4.js} +1 -1
  56. package/dist/assets/de-DE.5535b278.js +1 -0
  57. package/dist/assets/{de-at.a1f7dd1d.js → de-at.9a82fa84.js} +0 -0
  58. package/dist/assets/{de.a8c4aad1.js → de.1f4f2676.js} +0 -0
  59. package/dist/assets/{diff.1b6cf85e.js → diff.bff206b2.js} +1 -1
  60. package/dist/assets/{digitalocean-app-platform.aff2a50b.js → digitalocean-app-platform.62c81303.js} +1 -1
  61. package/dist/assets/{display-templates.d8e93a19.js → display-templates.2bbee0eb.js} +1 -1
  62. package/dist/assets/{displays.e528abde.js → displays.037994a0.js} +9 -9
  63. package/dist/assets/{django.b05a00dd.js → django.bab533fa.js} +1 -1
  64. package/dist/assets/{docker.6f265c46.js → docker.1f4e694b.js} +1 -1
  65. package/dist/assets/{dockerfile.50e7896f.js → dockerfile.6988104d.js} +1 -1
  66. package/dist/assets/{documentation.ad1fdaf2.js → documentation.60e724e3.js} +1 -1
  67. package/dist/assets/{dtd.4f30128b.js → dtd.8853bc1d.js} +1 -1
  68. package/dist/assets/{dylan.295f582b.js → dylan.7091311e.js} +1 -1
  69. package/dist/assets/{ebnf.48a4d2a4.js → ebnf.27bafe31.js} +1 -1
  70. package/dist/assets/{ecl.686a8714.js → ecl.e3862bc7.js} +1 -1
  71. package/dist/assets/{eiffel.ee4a91b5.js → eiffel.bbe77ebc.js} +1 -1
  72. package/dist/assets/el-GR.60ea8245.js +1 -0
  73. package/dist/assets/{el.fd48dbad.js → el.d2f58204.js} +0 -0
  74. package/dist/assets/{elm.3575efea.js → elm.3edb1cb8.js} +1 -1
  75. package/dist/assets/{email-templates.2bdb87a6.js → email-templates.062d08d1.js} +1 -1
  76. package/dist/assets/{en-au.1268cbf1.js → en-au.c1303a25.js} +0 -0
  77. package/dist/assets/{en-gb.0165e0db.js → en-gb.e85a2393.js} +0 -0
  78. package/dist/assets/{en-nz.01361cd3.js → en-nz.e8e12a64.js} +0 -0
  79. package/dist/assets/endpoints.b6214ea4.js +27 -0
  80. package/dist/assets/{eo.7ba085ab.js → eo.af51bcc8.js} +0 -0
  81. package/dist/assets/{erlang.2f06eab4.js → erlang.5e30c077.js} +1 -1
  82. package/dist/assets/es-419.ca94d216.js +1 -0
  83. package/dist/assets/es-CL.ae584c00.js +1 -0
  84. package/dist/assets/es-MX.059cc750.js +1 -0
  85. package/dist/assets/{es-us.8d0a5dcc.js → es-us.2395a850.js} +0 -0
  86. package/dist/assets/{es.33209895.js → es.90080285.js} +0 -0
  87. package/dist/assets/{et.d879b698.js → et.b4d59d2c.js} +0 -0
  88. package/dist/assets/{eu.bfb2c22e.js → eu.85a86bfb.js} +0 -0
  89. package/dist/assets/{extensions.8d3df212.js → extensions.0f9a4545.js} +1 -1
  90. package/dist/assets/{fa.d9f705ee.js → fa.b477e584.js} +0 -0
  91. package/dist/assets/{factor.59c6a149.js → factor.59d4e225.js} +1 -1
  92. package/dist/assets/faq.c134fb00.js +2 -0
  93. package/dist/assets/{fcl.a6a387b9.js → fcl.e1c74774.js} +1 -1
  94. package/dist/assets/{fi.5a2e9662.js → fi.7a66a1a3.js} +0 -0
  95. package/dist/assets/fields.2c2cc037.js +135 -0
  96. package/dist/assets/{file-library.a4de4015.js → file-library.92f387e2.js} +1 -1
  97. package/dist/assets/files.1d250203.js +189 -0
  98. package/dist/assets/filter-rules.6cc70dd4.js +76 -0
  99. package/dist/assets/{filters.2cb82fd9.js → filters.0ef5a5ed.js} +1 -1
  100. package/dist/assets/{flows.f378a262.js → flows.03ed1b32.js} +15 -15
  101. package/dist/assets/flows.19c6599f.js +172 -0
  102. package/dist/assets/{folders.fa66a5ce.js → folders.e417fd8b.js} +33 -33
  103. package/dist/assets/forth.573974b7.js +1 -0
  104. package/dist/assets/{fortran.b9df31da.js → fortran.43c825fe.js} +1 -1
  105. package/dist/assets/fr-CA.6b485ca2.js +1 -0
  106. package/dist/assets/{fr-ca.cd8c81b9.js → fr-ca.d550f5bd.js} +0 -0
  107. package/dist/assets/{fr-ch.d9522a23.js → fr-ch.96feab2f.js} +0 -0
  108. package/dist/assets/{fr.56b3c7ac.js → fr.cc2f5568.js} +0 -0
  109. package/dist/assets/{gas.1bf79f8f.js → gas.bf0e12f5.js} +1 -1
  110. package/dist/assets/{gcp.6c61b39e.js → gcp.293edb91.js} +1 -1
  111. package/dist/assets/{gfm.04d0828d.js → gfm.fdab0f12.js} +1 -1
  112. package/dist/assets/{gherkin.f334d646.js → gherkin.cbdb3147.js} +1 -1
  113. package/dist/assets/{github-ci.04483301.js → github-ci.20236bca.js} +1 -1
  114. package/dist/assets/{gl.addde635.js → gl.1bee5350.js} +0 -0
  115. package/dist/assets/{glossary.6efd77ad.js → glossary.26a7ec6d.js} +1 -1
  116. package/dist/assets/{glossary.485603d9.js → glossary.c947165b.js} +1 -1
  117. package/dist/assets/go.ed3ba974.js +1 -0
  118. package/dist/assets/{groovy.3fb79de5.js → groovy.d30f60f6.js} +1 -1
  119. package/dist/assets/{haml.9645befc.js → haml.67008da4.js} +1 -1
  120. package/dist/assets/{handlebars.c78fa1ca.js → handlebars.7db26db6.js} +1 -1
  121. package/dist/assets/{haskell-literate.ee77a8c9.js → haskell-literate.ff1f638d.js} +1 -1
  122. package/dist/assets/{haskell.0f131af0.js → haskell.992c1ca3.js} +1 -1
  123. package/dist/assets/{haxe.5ecd20ea.js → haxe.4a61b505.js} +1 -1
  124. package/dist/assets/{he.343cc1d8.js → he.6f56199f.js} +0 -0
  125. package/dist/assets/{hi.b7726273.js → hi.1ebe75fb.js} +0 -0
  126. package/dist/assets/hooks.619f1e3f.js +60 -0
  127. package/dist/assets/{hr.2709fc3c.js → hr.d0e09cc1.js} +0 -0
  128. package/dist/assets/{htmlembedded.b9d52c93.js → htmlembedded.1307bd8e.js} +1 -1
  129. package/dist/assets/{htmlmixed.b02b6e2e.js → htmlmixed.c0eeda2f.js} +1 -1
  130. package/dist/assets/{http.705b0cd9.js → http.7edf5d36.js} +1 -1
  131. package/dist/assets/{hu.ec48b74d.js → hu.971007ac.js} +0 -0
  132. package/dist/assets/{hy-am.30c58054.js → hy-am.b000430d.js} +0 -0
  133. package/dist/assets/{id.08bda718.js → id.1d3fb755.js} +0 -0
  134. package/dist/assets/{idl.ee86fe0e.js → idl.dd23bb5b.js} +1 -1
  135. package/dist/assets/{iis.e068f41a.js → iis.28211ce4.js} +3 -3
  136. package/dist/assets/{import-export.d334c127.js → import-export.34657c23.js} +1 -1
  137. package/dist/assets/{index.fa57ca3f.js → index.01a3b92d.js} +1 -1
  138. package/dist/assets/index.04f4681f.js +1 -0
  139. package/dist/assets/{index.bce5f50d.js → index.062b5c4e.js} +1 -1
  140. package/dist/assets/{index.55a12dfb.js → index.0659d17a.js} +1 -1
  141. package/dist/assets/{index.b67f8116.js → index.0b930698.js} +1 -1
  142. package/dist/assets/{index.c35b11e6.js → index.107979f6.js} +1 -1
  143. package/dist/assets/{index.627523d7.js → index.172f9ed4.js} +1 -1
  144. package/dist/assets/{index.b43832c6.js → index.19099a8f.js} +1 -1
  145. package/dist/assets/{index.456ff0bd.js → index.201cdc9c.js} +1 -1
  146. package/dist/assets/{index.cc6496a8.js → index.243aba72.js} +1 -1
  147. package/dist/assets/{index.a5d15d7f.js → index.2451efbb.js} +1 -1
  148. package/dist/assets/{index.5f5bf5b9.js → index.2598162d.js} +1 -1
  149. package/dist/assets/{index.ebb444cf.js → index.2799a3fe.js} +1 -1
  150. package/dist/assets/{index.28aa754b.js → index.28d160f6.js} +1 -1
  151. package/dist/assets/{index.e3dcc63c.js → index.2aaac8bd.js} +1 -1
  152. package/dist/assets/{index.ef3faba8.js → index.2e81f792.js} +1 -1
  153. package/dist/assets/{index.2598f40b.js → index.2ef6ea17.js} +1 -1
  154. package/dist/assets/{index.ffc6c203.js → index.2f10fad2.js} +1 -1
  155. package/dist/assets/index.3d147166.css +1 -0
  156. package/dist/assets/{index.56188e3b.js → index.3fc8253a.js} +1 -1
  157. package/dist/assets/{index.98713a56.js → index.46f1f69a.js} +1 -1
  158. package/dist/assets/{index.663b73a9.js → index.476a4006.js} +1 -1
  159. package/dist/assets/{index.d0fe3776.js → index.4d7f8516.js} +1 -1
  160. package/dist/assets/{index.2926879f.js → index.51da8268.js} +1 -1
  161. package/dist/assets/{index.4ef25ded.js → index.552cd104.js} +1 -1
  162. package/dist/assets/{index.5c54c17f.js → index.55a57945.js} +1 -1
  163. package/dist/assets/{index.16acfb90.js → index.55f95a2f.js} +1 -1
  164. package/dist/assets/{index.e6715953.js → index.5cee23da.js} +1 -1
  165. package/dist/assets/{index.cef58c9b.js → index.60e074b9.js} +1 -1
  166. package/dist/assets/{index.4fbaebb7.js → index.61092ae0.js} +1 -1
  167. package/dist/assets/{index.c9fb33ab.js → index.610f817e.js} +1 -1
  168. package/dist/assets/{index.a71fa74c.js → index.632970d8.js} +1 -1
  169. package/dist/assets/{index.14c720ba.js → index.640cb361.js} +1 -1
  170. package/dist/assets/{index.0e101049.js → index.64d37708.js} +1 -1
  171. package/dist/assets/{index.0295bc4b.js → index.65c58270.js} +1 -1
  172. package/dist/assets/{index.4100d6f0.js → index.6a44e176.js} +1 -1
  173. package/dist/assets/{index.55d799e2.js → index.6ff4b32e.js} +0 -0
  174. package/dist/assets/{index.bfd23a9c.js → index.70c01091.js} +1 -1
  175. package/dist/assets/{index.a8aa4628.js → index.733f5f4d.js} +1 -1
  176. package/dist/assets/{index.402d83c0.js → index.74e00be8.js} +1 -1
  177. package/dist/assets/{index.7fd5e2a0.js → index.76fb5db6.js} +1 -1
  178. package/dist/assets/{index.2ec06d14.js → index.777553ca.js} +1 -1
  179. package/dist/assets/{index.7b2f54b1.js → index.7993990d.js} +1 -1
  180. package/dist/assets/{index.af021d8a.js → index.7aa33ef4.js} +1 -1
  181. package/dist/assets/{index.6bebaca7.js → index.7b1ae0e3.js} +1 -1
  182. package/dist/assets/{index.1b3cf886.js → index.7c229bc2.js} +1 -1
  183. package/dist/assets/{index.b5ed5076.js → index.7c8f7bca.js} +1 -1
  184. package/dist/assets/{index.9b60cfa4.js → index.7fee55e4.js} +1 -1
  185. package/dist/assets/{index.d653bbf2.js → index.84179c87.js} +1 -1
  186. package/dist/assets/{index.4e2109fe.js → index.8849b22a.js} +1 -1
  187. package/dist/assets/{index.07257d01.js → index.888b390d.js} +1 -1
  188. package/dist/assets/{index.10f90411.js → index.899d7ee6.js} +1 -1
  189. package/dist/assets/{index.20b34242.js → index.903dc700.js} +1 -1
  190. package/dist/assets/{index.175a81f8.js → index.90f3c017.js} +1 -1
  191. package/dist/assets/{index.98ee194a.js → index.91fbefea.js} +1 -1
  192. package/dist/assets/{index.94cf6fb4.js → index.998500ca.js} +1 -1
  193. package/dist/assets/{index.8493b2e7.js → index.9ac7a0ad.js} +1 -1
  194. package/dist/assets/{index.3d4cd218.js → index.9c1c3dcb.js} +1 -1
  195. package/dist/assets/{index.1b44d300.js → index.9f57589f.js} +1 -1
  196. package/dist/assets/{index.a9faa4e8.js → index.a0faf01e.js} +1 -1
  197. package/dist/assets/{index.60d33aa1.js → index.a2d2ff92.js} +1 -1
  198. package/dist/assets/{index.77260d1d.js → index.a3a6d636.js} +1 -1
  199. package/dist/assets/{index.1a65b37a.js → index.a8265354.js} +1 -1
  200. package/dist/assets/{index.93059741.js → index.a968c50b.js} +1 -1
  201. package/dist/assets/{index.7fe984e4.js → index.a977949d.js} +1 -1
  202. package/dist/assets/{index.ee22568a.js → index.ad338b08.js} +1 -1
  203. package/dist/assets/{index.c5266851.js → index.ad869bd2.js} +1 -1
  204. package/dist/assets/{index.c2e6211e.js → index.b22c6489.js} +1 -1
  205. package/dist/assets/{index.399c0d62.js → index.b62592c3.js} +1 -1
  206. package/dist/assets/{index.d8fe2ade.js → index.ba2729bd.js} +1 -1
  207. package/dist/assets/{index.d9285c22.js → index.c1fc17bc.js} +1 -1
  208. package/dist/assets/{index.85b9f847.js → index.c62ebcc5.js} +1 -1
  209. package/dist/assets/{index.cda6c2d6.js → index.c859516b.js} +1 -1
  210. package/dist/assets/{index.a40592f5.js → index.ca7fad51.js} +1 -1
  211. package/dist/assets/index.d3abd983.js +1 -0
  212. package/dist/assets/index.d4c6a59b.js +26 -0
  213. package/dist/assets/{index.6f497914.css → index.dbec7bd8.css} +1 -1
  214. package/dist/assets/{index.8a9f2874.js → index.df853543.js} +1 -1
  215. package/dist/assets/{index.3eda79ec.js → index.dff2a130.js} +1 -1
  216. package/dist/assets/{index.dc71b91a.js → index.e000ab7f.js} +0 -0
  217. package/dist/assets/{index.b702042e.js → index.e003b179.js} +1 -1
  218. package/dist/assets/{index.a3e085ea.js → index.e0295cb0.js} +1 -1
  219. package/dist/assets/{index.43fa9898.js → index.e282364f.js} +1 -1
  220. package/dist/assets/{index.a9b73f2c.js → index.e95f45d7.js} +1 -1
  221. package/dist/assets/{index.6f0b7179.js → index.e975fc43.js} +1 -1
  222. package/dist/assets/index.ed3b88b9.entry.js +3403 -0
  223. package/dist/assets/{index.7f906cfe.js → index.f1e5bfe4.js} +1 -1
  224. package/dist/assets/{index.7249f524.js → index.f3a47a7c.js} +1 -1
  225. package/dist/assets/{index.d060d5f6.js → index.f6326954.js} +1 -1
  226. package/dist/assets/{index.eedadecd.js → index.fc01b28f.js} +1 -1
  227. package/dist/assets/{index.c6e501ec.js → index.fe5f6362.js} +1 -1
  228. package/dist/assets/{input-rich-text-html.172a38cb.css → input-rich-text-html.0cdbc326.css} +1 -1
  229. package/dist/assets/{input-rich-text-html.c72d474e.js → input-rich-text-html.912b9ed4.js} +33 -33
  230. package/dist/assets/{insights.b3ba896c.js → insights.9f2c43c6.js} +1 -1
  231. package/dist/assets/{installation.2025f88b.js → installation.76fec85e.js} +1 -1
  232. package/dist/assets/{interfaces.606c790c.js → interfaces.a65a79df.js} +8 -8
  233. package/dist/assets/{introduction.527c3465.js → introduction.32669a19.js} +1 -1
  234. package/dist/assets/{introduction.41a72fb0.js → introduction.e626ca8d.js} +1 -1
  235. package/dist/assets/{introduction.ecd17b88.js → introduction.e73b1c6c.js} +1 -1
  236. package/dist/assets/introduction.eda1c2c4.js +90 -0
  237. package/dist/assets/{is.b36ebc71.js → is.655c0831.js} +0 -0
  238. package/dist/assets/it-IT.c08c5546.js +1 -0
  239. package/dist/assets/{it.3cadf6ad.js → it.fca4d703.js} +0 -0
  240. package/dist/assets/{items.d1f658a9.js → items.ee26fa45.js} +1 -1
  241. package/dist/assets/items.f5cdbca8.js +136 -0
  242. package/dist/assets/{ja.df6f4b08.js → ja.0d51d279.js} +0 -0
  243. package/dist/assets/{javascript-hint.af96cc6a.js → javascript-hint.a6afcb0f.js} +1 -1
  244. package/dist/assets/{javascript.ed7a2c00.js → javascript.81a1b13a.js} +1 -1
  245. package/dist/assets/{jinja2.541c30d3.js → jinja2.d776c6b3.js} +1 -1
  246. package/dist/assets/{jsonlint.e8823cb8.js → jsonlint.aae0c1e4.js} +0 -0
  247. package/dist/assets/{jsx.211ba53b.js → jsx.cfaedddf.js} +1 -1
  248. package/dist/assets/{julia.66e518ec.js → julia.c8a2dbf1.js} +1 -1
  249. package/dist/assets/{ka.805bf11c.js → ka.b19061bf.js} +0 -0
  250. package/dist/assets/{kk.a6e57d44.js → kk.f9f646d6.js} +0 -0
  251. package/dist/assets/{ko.08fe68a9.js → ko.bb48e2f9.js} +0 -0
  252. package/dist/assets/{layouts.0aa8d645.js → layouts.e590b93d.js} +9 -9
  253. package/dist/assets/{layouts.14b157dc.js → layouts.fc5fee9f.js} +1 -1
  254. package/dist/assets/{lb.e01f5df5.js → lb.7e51ca06.js} +0 -0
  255. package/dist/assets/{livescript.06428372.js → livescript.320b6968.js} +1 -1
  256. package/dist/assets/{localization.c89061c7.js → localization.998790e9.js} +1 -1
  257. package/dist/assets/{lt.0d291ae5.js → lt.90e26dcd.js} +0 -0
  258. package/dist/assets/{lua.4f86b0e3.js → lua.65570b21.js} +1 -1
  259. package/dist/assets/{lv.00399f94.js → lv.c48afa11.js} +0 -0
  260. package/dist/assets/manual.363297f0.js +12 -0
  261. package/dist/assets/{mark-selection.c376d4be.js → mark-selection.dfee1b48.js} +1 -1
  262. package/dist/assets/{match-highlighter.75cb1404.js → match-highlighter.3c006119.js} +1 -1
  263. package/dist/assets/{mathematica.1e1f53c5.js → mathematica.5bc4b95d.js} +1 -1
  264. package/dist/assets/{mbox.4a5729c3.js → mbox.4c3828bc.js} +1 -1
  265. package/dist/assets/migrations.5af99cef.js +19 -0
  266. package/dist/assets/{mirc.9b793041.js → mirc.3e3ace01.js} +1 -1
  267. package/dist/assets/{mk.5d734698.js → mk.f9301845.js} +0 -0
  268. package/dist/assets/{mllike.4e43f07d.js → mllike.ac84ca56.js} +1 -1
  269. package/dist/assets/{modelica.deb73769.js → modelica.b0561309.js} +1 -1
  270. package/dist/assets/{modules.9b5ee510.js → modules.2403c678.js} +8 -8
  271. package/dist/assets/{ms.d459f765.js → ms.bea4163e.js} +0 -0
  272. package/dist/assets/{mscgen.48ffdfc0.js → mscgen.96b8b96f.js} +1 -1
  273. package/dist/assets/{multiplex.a2d83d7f.js → multiplex.f4e017d5.js} +1 -1
  274. package/dist/assets/{mumps.210b8bdf.js → mumps.2c131ef7.js} +1 -1
  275. package/dist/assets/{nb.a3febc82.js → nb.2f4ab1ed.js} +0 -0
  276. package/dist/assets/{ne.afdfe3bf.js → ne.62693259.js} +0 -0
  277. package/dist/assets/{nginx.dbe68b8c.js → nginx.b585fef5.js} +1 -1
  278. package/dist/assets/{nl.12cdd5b8.js → nl.a58ee8a1.js} +0 -0
  279. package/dist/assets/{nn.535723b4.js → nn.97ead2b5.js} +0 -0
  280. package/dist/assets/notifications.152d86b7.js +153 -0
  281. package/dist/assets/{nsis.5576ebf1.js → nsis.237401b6.js} +1 -1
  282. package/dist/assets/{ntriples.07c64718.js → ntriples.22ef759c.js} +1 -1
  283. package/dist/assets/{octave.9cb94caa.js → octave.c8b0b61b.js} +1 -1
  284. package/dist/assets/operations.9b3b2514.js +169 -0
  285. package/dist/assets/{operations.46679bea.js → operations.f00b8c11.js} +1 -1
  286. package/dist/assets/{overlay.b1fd0f5a.js → overlay.7ab0da68.js} +1 -1
  287. package/dist/assets/{overview.3616b560.js → overview.288d5f54.js} +1 -1
  288. package/dist/assets/{overview.6438dc44.js → overview.c3e64ee1.js} +1 -1
  289. package/dist/assets/{overview.3c9f8f3d.js → overview.d2dd9f17.js} +1 -1
  290. package/dist/assets/{oz.4bedbc84.js → oz.d4ded91b.js} +1 -1
  291. package/dist/assets/{panels.570ee526.js → panels.f1f6334b.js} +7 -7
  292. package/dist/assets/{pascal.9f3e47db.js → pascal.ab5e5d67.js} +1 -1
  293. package/dist/assets/{pegjs.38dabda4.js → pegjs.58ca75d7.js} +1 -1
  294. package/dist/assets/{perl.d07c357e.js → perl.9cd37319.js} +1 -1
  295. package/dist/assets/permissions.de41ff3d.js +178 -0
  296. package/dist/assets/{php.a2fb29e5.js → php.da63348a.js} +1 -1
  297. package/dist/assets/{pig.cc357f9e.js → pig.cf941ffa.js} +1 -1
  298. package/dist/assets/{pinia.256cc3da.entry.js → pinia.b8e2dbe3.entry.js} +1 -1
  299. package/dist/assets/pl-PL.6e87b518.js +1 -0
  300. package/dist/assets/{pl.86440e6e.js → pl.0bbdb5d7.js} +0 -0
  301. package/dist/assets/plesk.0ef5ab4c.js +27 -0
  302. package/dist/assets/{powershell.283f357b.js → powershell.adf38a87.js} +1 -1
  303. package/dist/assets/{presets-bookmarks.522baf53.js → presets-bookmarks.5ef79225.js} +1 -1
  304. package/dist/assets/presets.db317f9f.js +164 -0
  305. package/dist/assets/project-settings.e940a11b.js +1 -0
  306. package/dist/assets/{projects.1ea6a392.js → projects.5cc2ad0c.js} +1 -1
  307. package/dist/assets/{properties.57480d0c.js → properties.43935bd7.js} +1 -1
  308. package/dist/assets/{protobuf.c1758733.js → protobuf.e76a4916.js} +1 -1
  309. package/dist/assets/pt-BR.02851ce6.js +1 -0
  310. package/dist/assets/{pt-PT.fae0fcc3.js → pt-PT.f5bc9b8e.js} +1 -1
  311. package/dist/assets/{pt-br.cc4b694f.js → pt-br.ce7dbf21.js} +0 -0
  312. package/dist/assets/{pt.73886c02.js → pt.0d25d212.js} +0 -0
  313. package/dist/assets/{pug.bdcaf1c5.js → pug.d55a01ed.js} +1 -1
  314. package/dist/assets/{puppet.8b6ff9f4.js → puppet.ed2aa69f.js} +1 -1
  315. package/dist/assets/{python.987c2ae7.js → python.a4264fb2.js} +1 -1
  316. package/dist/assets/{q.85f4c589.js → q.a9a6cb66.js} +1 -1
  317. package/dist/assets/{query.8abea6de.js → query.f187b00c.js} +40 -40
  318. package/dist/assets/{quickstart.75164dd7.js → quickstart.62cbd1cd.js} +8 -8
  319. package/dist/assets/quickstart.8d5c02c2.js +20 -0
  320. package/dist/assets/{r.25d10fd4.js → r.d1d5b008.js} +1 -1
  321. package/dist/assets/relations.a37c187d.js +115 -0
  322. package/dist/assets/{relationships.cbc9b1c5.js → relationships.5cda18e3.js} +1 -1
  323. package/dist/assets/{resources.25cb1e34.js → resources.540de098.js} +1 -1
  324. package/dist/assets/revisions.e044726e.js +40 -0
  325. package/dist/assets/{ro.c45ba3d9.js → ro.b6bf02de.js} +0 -0
  326. package/dist/assets/roles.83da9d9c.js +171 -0
  327. package/dist/assets/{rpm.8909ead0.js → rpm.701e8769.js} +1 -1
  328. package/dist/assets/{rst.4d43ef54.js → rst.78cdf25e.js} +1 -1
  329. package/dist/assets/ru-RU.1807a64c.js +1 -0
  330. package/dist/assets/{ru.638f4fa4.js → ru.ff0e24aa.js} +0 -0
  331. package/dist/assets/{ruby.b7e26986.js → ruby.cf585e82.js} +1 -1
  332. package/dist/assets/running-locally.31538f1b.js +27 -0
  333. package/dist/assets/{runtime-core.esm-bundler.b1f35d24.js → runtime-core.esm-bundler.e3d5f5b7.js} +1 -1
  334. package/dist/assets/{rust.6984b11a.js → rust.b1443070.js} +1 -1
  335. package/dist/assets/{sas.91990a72.js → sas.4f0759f7.js} +1 -1
  336. package/dist/assets/{sass.898f89c7.js → sass.634b3ae3.js} +1 -1
  337. package/dist/assets/scheme.dcfea99d.js +1 -0
  338. package/dist/assets/sdk.297840b0.js +393 -0
  339. package/dist/assets/{security.1963da73.js → security.c18b2f34.js} +1 -1
  340. package/dist/assets/server.d8bb0f4c.js +114 -0
  341. package/dist/assets/settings.65d8a9b5.js +51 -0
  342. package/dist/assets/{settings.a02abd85.js → settings.6c879748.js} +1 -1
  343. package/dist/assets/{shell.af2902da.js → shell.9d633861.js} +1 -1
  344. package/dist/assets/{show-hint.2d43524d.js → show-hint.88df65cb.js} +1 -1
  345. package/dist/assets/{sieve.327a81f8.js → sieve.a8542660.js} +1 -1
  346. package/dist/assets/simple.1606e663.js +1 -0
  347. package/dist/assets/{sk.883343ad.js → sk.ff92f7ac.js} +0 -0
  348. package/dist/assets/{sl.9c1d7271.js → sl.29a98aa1.js} +0 -0
  349. package/dist/assets/{slim.e97ce531.js → slim.18070787.js} +1 -1
  350. package/dist/assets/{smalltalk.b9556415.js → smalltalk.efc2a0dc.js} +1 -1
  351. package/dist/assets/{smarty.d91926e3.js → smarty.621ad4fc.js} +1 -1
  352. package/dist/assets/solr.a732ca41.js +1 -0
  353. package/dist/assets/{soy.a0154260.js → soy.e1e21a03.js} +1 -1
  354. package/dist/assets/{sparql.36de4d3f.js → sparql.8edeb8b4.js} +1 -1
  355. package/dist/assets/{spreadsheet.00a4877b.js → spreadsheet.22b3715c.js} +1 -1
  356. package/dist/assets/{sq.94f802c2.js → sq.74e96d5e.js} +0 -0
  357. package/dist/assets/{sql.1f7dd82a.js → sql.2149b70c.js} +1 -1
  358. package/dist/assets/{sr-cyrl.cf2bde33.js → sr-cyrl.02689042.js} +0 -0
  359. package/dist/assets/{sr.ae9ed7f6.js → sr.d758ce65.js} +0 -0
  360. package/dist/assets/{sso-examples.048b39c5.js → sso-examples.a785e77c.js} +1 -1
  361. package/dist/assets/{sso.70be105f.js → sso.36061e28.js} +6 -6
  362. package/dist/assets/{stex.2b7cb363.js → stex.02a09785.js} +1 -1
  363. package/dist/assets/{stylus.123ca166.js → stylus.66d13c06.js} +1 -1
  364. package/dist/assets/{support.fce2dba5.js → support.a149b5a4.js} +1 -1
  365. package/dist/assets/{sv.4d9818be.js → sv.424581fc.js} +0 -0
  366. package/dist/assets/{swift.9ca91d28.js → swift.942cdada.js} +1 -1
  367. package/dist/assets/{ta-in.58b9457c.js → ta-in.266b59a6.js} +0 -0
  368. package/dist/assets/{tcl.1b7f83bd.js → tcl.85852863.js} +1 -1
  369. package/dist/assets/{teams.44eb670e.js → teams.86e324d5.js} +1 -1
  370. package/dist/assets/{textile.ee402504.js → textile.6e394729.js} +1 -1
  371. package/dist/assets/{th.2e10ae87.js → th.503d2b5a.js} +0 -0
  372. package/dist/assets/{themes.e4a7762f.js → themes.3d8b2b78.js} +4 -4
  373. package/dist/assets/{tiddlywiki.67540872.js → tiddlywiki.7dd58c1c.js} +1 -1
  374. package/dist/assets/{tiki.fb6dd4a0.js → tiki.e51a3e37.js} +1 -1
  375. package/dist/assets/{toml.9c5fe3d8.js → toml.c0aa795a.js} +1 -1
  376. package/dist/assets/{tornado.c681a8fd.js → tornado.fc72bd58.js} +1 -1
  377. package/dist/assets/{tr.56778c02.js → tr.5f7e8301.js} +0 -0
  378. package/dist/assets/{translation-strings.4ed25965.js → translation-strings.2d32b80f.js} +1 -1
  379. package/dist/assets/{translations.cf2353ca.js → translations.9a0e8cc4.js} +1 -1
  380. package/dist/assets/{triggers.05092cdf.js → triggers.49fa8cca.js} +1 -1
  381. package/dist/assets/{troff.a6f4e798.js → troff.0ed99260.js} +1 -1
  382. package/dist/assets/{ttcn-cfg.a0214838.js → ttcn-cfg.afedb04b.js} +1 -1
  383. package/dist/assets/{ttcn.4c22a431.js → ttcn.c0c80a5f.js} +1 -1
  384. package/dist/assets/{turtle.d40e9c31.js → turtle.228b04a3.js} +1 -1
  385. package/dist/assets/{twig.d78613df.js → twig.f7e0b482.js} +1 -1
  386. package/dist/assets/ubuntu.bd27c73d.js +11 -0
  387. package/dist/assets/{ug.6363a215.js → ug.b3647d71.js} +0 -0
  388. package/dist/assets/{uk.5a9060bd.js → uk.d81573f6.js} +0 -0
  389. package/dist/assets/{upgrades-migrations.9218bbe9.js → upgrades-migrations.e91a553b.js} +1 -1
  390. package/dist/assets/use-sync.138c50b0.js +28 -0
  391. package/dist/assets/{user-directory.3daaa818.js → user-directory.8d94737c.js} +1 -1
  392. package/dist/assets/{users-roles-permissions.6e18f7ca.js → users-roles-permissions.d63af527.js} +1 -1
  393. package/dist/assets/users.9e656e05.js +252 -0
  394. package/dist/assets/utilities.4a346b3b.js +74 -0
  395. package/dist/assets/{uz.687d7fbd.js → uz.d1d62588.js} +0 -0
  396. package/dist/assets/{vb.5adeb8ea.js → vb.5451fc80.js} +1 -1
  397. package/dist/assets/{vbscript.27937162.js → vbscript.59585329.js} +1 -1
  398. package/dist/assets/{velocity.581c25aa.js → velocity.50d6a1f3.js} +1 -1
  399. package/dist/assets/{verilog.9f72c282.js → verilog.aac2d6a2.js} +1 -1
  400. package/dist/assets/{vhdl.4d290e0b.js → vhdl.699515be.js} +1 -1
  401. package/dist/assets/{vi.2bf54ce7.js → vi.7af054bb.js} +0 -0
  402. package/dist/assets/{vue-i18n.ecb0af35.entry.js → vue-i18n.3cc3a25f.entry.js} +1 -1
  403. package/dist/assets/{vue-router.8987d576.entry.js → vue-router.1ad5ff1f.entry.js} +2 -2
  404. package/dist/assets/{vue.cf5a232a.js → vue.25b60243.js} +1 -1
  405. package/dist/assets/{vue.1f4d921a.entry.js → vue.f73b7cd5.entry.js} +1 -1
  406. package/dist/assets/{vue.runtime.esm-bundler.ac4ff7af.js → vue.runtime.esm-bundler.ee2a778f.js} +1 -1
  407. package/dist/assets/{wast.16f886c5.js → wast.d2c6fea3.js} +1 -1
  408. package/dist/assets/{webhooks.01ddb390.js → webhooks.235f76fb.js} +1 -1
  409. package/dist/assets/webhooks.256ac76b.js +147 -0
  410. package/dist/assets/{webidl.1185b166.js → webidl.4134320a.js} +1 -1
  411. package/dist/assets/{xquery.34864271.js → xquery.08fc8439.js} +1 -1
  412. package/dist/assets/{yacas.880a270b.js → yacas.c3220ac1.js} +1 -1
  413. package/dist/assets/{yaml-frontmatter.4cec6c13.js → yaml-frontmatter.769d44a6.js} +1 -1
  414. package/dist/assets/{yaml.15292258.js → yaml.f2dc0339.js} +1 -1
  415. package/dist/assets/{z80.727a7271.js → z80.22642123.js} +1 -1
  416. package/dist/assets/zh-CN.5f89875e.js +1 -0
  417. package/dist/assets/{zh-cn.aac76920.js → zh-cn.fea96989.js} +0 -0
  418. package/dist/assets/{zh-tw.d89266cf.js → zh-tw.31f5361f.js} +0 -0
  419. package/dist/index.html +8 -8
  420. package/package.json +133 -119
  421. package/dist/assets/@directus_extensions-sdk.016f1070.entry.js +0 -1
  422. package/dist/assets/activity.fbd319d5.js +0 -80
  423. package/dist/assets/ar-SA.215069dc.js +0 -1
  424. package/dist/assets/authentication.bc20bce5.js +0 -73
  425. package/dist/assets/avatar-placeholder.446bf113.svg +0 -6
  426. package/dist/assets/codebase-overview.b46635f9.js +0 -1
  427. package/dist/assets/collections.80e4a52c.js +0 -106
  428. package/dist/assets/creating-extensions.9a98925a.js +0 -11
  429. package/dist/assets/cs-CZ.a3c83b73.js +0 -1
  430. package/dist/assets/de-DE.350023db.js +0 -1
  431. package/dist/assets/el-GR.103ebf8d.js +0 -1
  432. package/dist/assets/endpoints.2c9172db.js +0 -27
  433. package/dist/assets/es-419.10094709.js +0 -1
  434. package/dist/assets/es-CL.7f44ec7c.js +0 -1
  435. package/dist/assets/es-MX.17370b17.js +0 -1
  436. package/dist/assets/faq.63c79c18.js +0 -2
  437. package/dist/assets/fields.715d4591.js +0 -135
  438. package/dist/assets/files.7c2ccfe2.js +0 -189
  439. package/dist/assets/filter-rules.056b97be.js +0 -76
  440. package/dist/assets/flows.38f60cc8.js +0 -172
  441. package/dist/assets/forth.eec0a81d.js +0 -1
  442. package/dist/assets/fr-CA.0e824ae4.js +0 -1
  443. package/dist/assets/go.81bbba54.js +0 -1
  444. package/dist/assets/hooks.f7efe9af.js +0 -60
  445. package/dist/assets/index.192147d5.css +0 -1
  446. package/dist/assets/index.63d1f569.js +0 -1
  447. package/dist/assets/index.c2e31551.entry.js +0 -3402
  448. package/dist/assets/index.f0d32a46.js +0 -26
  449. package/dist/assets/introduction.5566b96e.js +0 -90
  450. package/dist/assets/it-IT.58422a56.js +0 -1
  451. package/dist/assets/items.d9c6a0b4.js +0 -136
  452. package/dist/assets/manual.20d730b3.js +0 -12
  453. package/dist/assets/migrations.f13ec64d.js +0 -19
  454. package/dist/assets/notifications.674ee6f9.js +0 -153
  455. package/dist/assets/operations.9995851b.js +0 -169
  456. package/dist/assets/permissions.768d1878.js +0 -178
  457. package/dist/assets/pl-PL.80cfbed6.js +0 -1
  458. package/dist/assets/plesk.b0ee9a9a.js +0 -27
  459. package/dist/assets/presets.d902ebfa.js +0 -164
  460. package/dist/assets/project-settings.1f95b799.js +0 -1
  461. package/dist/assets/pt-BR.40750500.js +0 -1
  462. package/dist/assets/quickstart.9985cb15.js +0 -20
  463. package/dist/assets/relations.9011b2b5.js +0 -115
  464. package/dist/assets/revisions.c90ecb76.js +0 -40
  465. package/dist/assets/roles.22f7aa37.js +0 -171
  466. package/dist/assets/ru-RU.35703ea4.js +0 -1
  467. package/dist/assets/running-locally.ce0a8200.js +0 -26
  468. package/dist/assets/scheme.f661c5b8.js +0 -1
  469. package/dist/assets/sdk.916109ed.js +0 -393
  470. package/dist/assets/server.afec52fc.js +0 -114
  471. package/dist/assets/settings.835be62f.js +0 -51
  472. package/dist/assets/simple.4fb4f28d.js +0 -1
  473. package/dist/assets/solr.20381d3e.js +0 -1
  474. package/dist/assets/ubuntu.35dc97df.js +0 -11
  475. package/dist/assets/use-sync.c0f4dfab.js +0 -28
  476. package/dist/assets/users.4f11a7c5.js +0 -252
  477. package/dist/assets/utilities.0e0d0ace.js +0 -74
  478. package/dist/assets/webhooks.00ee297b.js +0 -147
  479. package/dist/assets/zh-CN.432cf71e.js +0 -1
@@ -1 +1 @@
1
- import{A as un}from"./index.c2e31551.entry.js";import{a as cn}from"./javascript.ed7a2c00.js";import{a as fn}from"./css.f2b45d65.js";import{a as ln}from"./htmlmixed.b02b6e2e.js";function on(f,a){return a.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(u){if(u!=="default"&&!(u in f)){var r=Object.getOwnPropertyDescriptor(t,u);Object.defineProperty(f,u,r.get?r:{enumerable:!0,get:function(){return t[u]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(f,a){(function(t){t(un.exports,cn.exports,fn.exports,ln.exports)})(function(t){t.defineMode("pug",function(u){var r="keyword",g="meta",j="builtin",b="qualifier",p={"{":"}","(":")","[":"]"},c=t.getMode(u,"javascript");function l(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=t.startState(c),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}l.prototype.copy=function(){var n=new l;return n.javaScriptLine=this.javaScriptLine,n.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,n.javaScriptArguments=this.javaScriptArguments,n.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,n.isInterpolating=this.isInterpolating,n.interpolationNesting=this.interpolationNesting,n.jsState=t.copyState(c,this.jsState),n.innerMode=this.innerMode,this.innerMode&&this.innerState&&(n.innerState=t.copyState(this.innerMode,this.innerState)),n.restOfLine=this.restOfLine,n.isIncludeFiltered=this.isIncludeFiltered,n.isEach=this.isEach,n.lastTag=this.lastTag,n.scriptType=this.scriptType,n.isAttrs=this.isAttrs,n.attrsNest=this.attrsNest.slice(),n.inAttributeName=this.inAttributeName,n.attributeIsType=this.attributeIsType,n.attrValue=this.attrValue,n.indentOf=this.indentOf,n.indentToken=this.indentToken,n.innerModeForLine=this.innerModeForLine,n};function L(n,i){if(n.sol()&&(i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1),i.javaScriptLine){if(i.javaScriptLineExcludesColon&&n.peek()===":"){i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1;return}var e=c.token(n,i.jsState);return n.eol()&&(i.javaScriptLine=!1),e||!0}}function y(n,i){if(i.javaScriptArguments){if(i.javaScriptArgumentsDepth===0&&n.peek()!=="("){i.javaScriptArguments=!1;return}if(n.peek()==="("?i.javaScriptArgumentsDepth++:n.peek()===")"&&i.javaScriptArgumentsDepth--,i.javaScriptArgumentsDepth===0){i.javaScriptArguments=!1;return}var e=c.token(n,i.jsState);return e||!0}}function A(n){if(n.match(/^yield\b/))return"keyword"}function x(n){if(n.match(/^(?:doctype) *([^\n]+)?/))return g}function h(n,i){if(n.match("#{"))return i.isInterpolating=!0,i.interpolationNesting=0,"punctuation"}function T(n,i){if(i.isInterpolating){if(n.peek()==="}"){if(i.interpolationNesting--,i.interpolationNesting<0)return n.next(),i.isInterpolating=!1,"punctuation"}else n.peek()==="{"&&i.interpolationNesting++;return c.token(n,i.jsState)||!0}}function O(n,i){if(n.match(/^case\b/))return i.javaScriptLine=!0,r}function k(n,i){if(n.match(/^when\b/))return i.javaScriptLine=!0,i.javaScriptLineExcludesColon=!0,r}function N(n){if(n.match(/^default\b/))return r}function w(n,i){if(n.match(/^extends?\b/))return i.restOfLine="string",r}function I(n,i){if(n.match(/^append\b/))return i.restOfLine="variable",r}function E(n,i){if(n.match(/^prepend\b/))return i.restOfLine="variable",r}function F(n,i){if(n.match(/^block\b *(?:(prepend|append)\b)?/))return i.restOfLine="variable",r}function D(n,i){if(n.match(/^include\b/))return i.restOfLine="string",r}function M(n,i){if(n.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&n.match("include"))return i.isIncludeFiltered=!0,r}function C(n,i){if(i.isIncludeFiltered){var e=s(n,i);return i.isIncludeFiltered=!1,i.restOfLine="string",e}}function V(n,i){if(n.match(/^mixin\b/))return i.javaScriptLine=!0,r}function m(n,i){if(n.match(/^\+([-\w]+)/))return n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),"variable";if(n.match("+#{",!1))return n.next(),i.mixinCallAfter=!0,h(n,i)}function _(n,i){if(i.mixinCallAfter)return i.mixinCallAfter=!1,n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),!0}function P(n,i){if(n.match(/^(if|unless|else if|else)\b/))return i.javaScriptLine=!0,r}function $(n,i){if(n.match(/^(- *)?(each|for)\b/))return i.isEach=!0,r}function z(n,i){if(i.isEach){if(n.match(/^ in\b/))return i.javaScriptLine=!0,i.isEach=!1,r;if(n.sol()||n.eol())i.isEach=!1;else if(n.next()){for(;!n.match(/^ in\b/,!1)&&n.next(););return"variable"}}}function R(n,i){if(n.match(/^while\b/))return i.javaScriptLine=!0,r}function Y(n,i){var e;if(e=n.match(/^(\w(?:[-:\w]*\w)?)\/?/))return i.lastTag=e[1].toLowerCase(),i.lastTag==="script"&&(i.scriptType="application/javascript"),"tag"}function s(n,i){if(n.match(/^:([\w\-]+)/)){var e;return u&&u.innerModes&&(e=u.innerModes(n.current().substring(1))),e||(e=n.current().substring(1)),typeof e=="string"&&(e=t.getMode(u,e)),o(n,i,e),"atom"}}function q(n,i){if(n.match(/^(!?=|-)/))return i.javaScriptLine=!0,"punctuation"}function B(n){if(n.match(/^#([\w-]+)/))return j}function K(n){if(n.match(/^\.([\w-]+)/))return b}function U(n,i){if(n.peek()=="(")return n.next(),i.isAttrs=!0,i.attrsNest=[],i.inAttributeName=!0,i.attrValue="",i.attributeIsType=!1,"punctuation"}function d(n,i){if(i.isAttrs){if(p[n.peek()]&&i.attrsNest.push(p[n.peek()]),i.attrsNest[i.attrsNest.length-1]===n.peek())i.attrsNest.pop();else if(n.eat(")"))return i.isAttrs=!1,"punctuation";if(i.inAttributeName&&n.match(/^[^=,\)!]+/))return(n.peek()==="="||n.peek()==="!")&&(i.inAttributeName=!1,i.jsState=t.startState(c),i.lastTag==="script"&&n.current().trim().toLowerCase()==="type"?i.attributeIsType=!0:i.attributeIsType=!1),"attribute";var e=c.token(n,i.jsState);if(i.attributeIsType&&e==="string"&&(i.scriptType=n.current().toString()),i.attrsNest.length===0&&(e==="string"||e==="variable"||e==="keyword"))try{return Function("","var x "+i.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),i.inAttributeName=!0,i.attrValue="",n.backUp(n.current().length),d(n,i)}catch{}return i.attrValue+=n.current(),e||!0}}function W(n,i){if(n.match(/^&attributes\b/))return i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0,"keyword"}function Z(n){if(n.sol()&&n.eatSpace())return"indent"}function G(n,i){if(n.match(/^ *\/\/(-)?([^\n]*)/))return i.indentOf=n.indentation(),i.indentToken="comment","comment"}function H(n){if(n.match(/^: */))return"colon"}function J(n,i){if(n.match(/^(?:\| ?| )([^\n]+)/))return"string";if(n.match(/^(<[^\n]*)/,!1))return o(n,i,"htmlmixed"),i.innerModeForLine=!0,S(n,i,!0)}function Q(n,i){if(n.eat(".")){var e=null;return i.lastTag==="script"&&i.scriptType.toLowerCase().indexOf("javascript")!=-1?e=i.scriptType.toLowerCase().replace(/"|'/g,""):i.lastTag==="style"&&(e="css"),o(n,i,e),"dot"}}function X(n){return n.next(),null}function o(n,i,e){e=t.mimeModes[e]||e,e=u.innerModes&&u.innerModes(e)||e,e=t.mimeModes[e]||e,e=t.getMode(u,e),i.indentOf=n.indentation(),e&&e.name!=="null"?i.innerMode=e:i.indentToken="string"}function S(n,i,e){if(n.indentation()>i.indentOf||i.innerModeForLine&&!n.sol()||e)return i.innerMode?(i.innerState||(i.innerState=i.innerMode.startState?t.startState(i.innerMode,n.indentation()):{}),n.hideFirstChars(i.indentOf+2,function(){return i.innerMode.token(n,i.innerState)||!0})):(n.skipToEnd(),i.indentToken);n.sol()&&(i.indentOf=1/0,i.indentToken=null,i.innerMode=null,i.innerState=null)}function nn(n,i){if(n.sol()&&(i.restOfLine=""),i.restOfLine){n.skipToEnd();var e=i.restOfLine;return i.restOfLine="",e}}function en(){return new l}function tn(n){return n.copy()}function rn(n,i){var e=S(n,i)||nn(n,i)||T(n,i)||C(n,i)||z(n,i)||d(n,i)||L(n,i)||y(n,i)||_(n,i)||A(n)||x(n)||h(n,i)||O(n,i)||k(n,i)||N(n)||w(n,i)||I(n,i)||E(n,i)||F(n,i)||D(n,i)||M(n,i)||V(n,i)||m(n,i)||P(n,i)||$(n,i)||R(n,i)||Y(n,i)||s(n,i)||q(n,i)||B(n)||K(n)||U(n,i)||W(n,i)||Z(n)||J(n,i)||G(n,i)||H(n)||Q(n,i)||X(n);return e===!0?null:e}return{startState:en,copyState:tn,token:rn}},"javascript","css","htmlmixed"),t.defineMIME("text/x-pug","pug"),t.defineMIME("text/x-jade","pug")})})();var an=v.exports,vn=on({__proto__:null,default:an},[v.exports]);export{v as a,vn as p};
1
+ import{z as un}from"./index.ed3b88b9.entry.js";import{a as cn}from"./javascript.81a1b13a.js";import{a as fn}from"./css.05f1267f.js";import{a as ln}from"./htmlmixed.c0eeda2f.js";function on(f,a){return a.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(u){if(u!=="default"&&!(u in f)){var r=Object.getOwnPropertyDescriptor(t,u);Object.defineProperty(f,u,r.get?r:{enumerable:!0,get:function(){return t[u]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(f,a){(function(t){t(un.exports,cn.exports,fn.exports,ln.exports)})(function(t){t.defineMode("pug",function(u){var r="keyword",g="meta",j="builtin",b="qualifier",p={"{":"}","(":")","[":"]"},c=t.getMode(u,"javascript");function l(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=t.startState(c),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}l.prototype.copy=function(){var n=new l;return n.javaScriptLine=this.javaScriptLine,n.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,n.javaScriptArguments=this.javaScriptArguments,n.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,n.isInterpolating=this.isInterpolating,n.interpolationNesting=this.interpolationNesting,n.jsState=t.copyState(c,this.jsState),n.innerMode=this.innerMode,this.innerMode&&this.innerState&&(n.innerState=t.copyState(this.innerMode,this.innerState)),n.restOfLine=this.restOfLine,n.isIncludeFiltered=this.isIncludeFiltered,n.isEach=this.isEach,n.lastTag=this.lastTag,n.scriptType=this.scriptType,n.isAttrs=this.isAttrs,n.attrsNest=this.attrsNest.slice(),n.inAttributeName=this.inAttributeName,n.attributeIsType=this.attributeIsType,n.attrValue=this.attrValue,n.indentOf=this.indentOf,n.indentToken=this.indentToken,n.innerModeForLine=this.innerModeForLine,n};function L(n,i){if(n.sol()&&(i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1),i.javaScriptLine){if(i.javaScriptLineExcludesColon&&n.peek()===":"){i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1;return}var e=c.token(n,i.jsState);return n.eol()&&(i.javaScriptLine=!1),e||!0}}function y(n,i){if(i.javaScriptArguments){if(i.javaScriptArgumentsDepth===0&&n.peek()!=="("){i.javaScriptArguments=!1;return}if(n.peek()==="("?i.javaScriptArgumentsDepth++:n.peek()===")"&&i.javaScriptArgumentsDepth--,i.javaScriptArgumentsDepth===0){i.javaScriptArguments=!1;return}var e=c.token(n,i.jsState);return e||!0}}function A(n){if(n.match(/^yield\b/))return"keyword"}function x(n){if(n.match(/^(?:doctype) *([^\n]+)?/))return g}function h(n,i){if(n.match("#{"))return i.isInterpolating=!0,i.interpolationNesting=0,"punctuation"}function T(n,i){if(i.isInterpolating){if(n.peek()==="}"){if(i.interpolationNesting--,i.interpolationNesting<0)return n.next(),i.isInterpolating=!1,"punctuation"}else n.peek()==="{"&&i.interpolationNesting++;return c.token(n,i.jsState)||!0}}function O(n,i){if(n.match(/^case\b/))return i.javaScriptLine=!0,r}function k(n,i){if(n.match(/^when\b/))return i.javaScriptLine=!0,i.javaScriptLineExcludesColon=!0,r}function N(n){if(n.match(/^default\b/))return r}function w(n,i){if(n.match(/^extends?\b/))return i.restOfLine="string",r}function I(n,i){if(n.match(/^append\b/))return i.restOfLine="variable",r}function E(n,i){if(n.match(/^prepend\b/))return i.restOfLine="variable",r}function F(n,i){if(n.match(/^block\b *(?:(prepend|append)\b)?/))return i.restOfLine="variable",r}function D(n,i){if(n.match(/^include\b/))return i.restOfLine="string",r}function M(n,i){if(n.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&n.match("include"))return i.isIncludeFiltered=!0,r}function C(n,i){if(i.isIncludeFiltered){var e=s(n,i);return i.isIncludeFiltered=!1,i.restOfLine="string",e}}function V(n,i){if(n.match(/^mixin\b/))return i.javaScriptLine=!0,r}function m(n,i){if(n.match(/^\+([-\w]+)/))return n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),"variable";if(n.match("+#{",!1))return n.next(),i.mixinCallAfter=!0,h(n,i)}function _(n,i){if(i.mixinCallAfter)return i.mixinCallAfter=!1,n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),!0}function P(n,i){if(n.match(/^(if|unless|else if|else)\b/))return i.javaScriptLine=!0,r}function z(n,i){if(n.match(/^(- *)?(each|for)\b/))return i.isEach=!0,r}function $(n,i){if(i.isEach){if(n.match(/^ in\b/))return i.javaScriptLine=!0,i.isEach=!1,r;if(n.sol()||n.eol())i.isEach=!1;else if(n.next()){for(;!n.match(/^ in\b/,!1)&&n.next(););return"variable"}}}function R(n,i){if(n.match(/^while\b/))return i.javaScriptLine=!0,r}function Y(n,i){var e;if(e=n.match(/^(\w(?:[-:\w]*\w)?)\/?/))return i.lastTag=e[1].toLowerCase(),i.lastTag==="script"&&(i.scriptType="application/javascript"),"tag"}function s(n,i){if(n.match(/^:([\w\-]+)/)){var e;return u&&u.innerModes&&(e=u.innerModes(n.current().substring(1))),e||(e=n.current().substring(1)),typeof e=="string"&&(e=t.getMode(u,e)),o(n,i,e),"atom"}}function q(n,i){if(n.match(/^(!?=|-)/))return i.javaScriptLine=!0,"punctuation"}function B(n){if(n.match(/^#([\w-]+)/))return j}function K(n){if(n.match(/^\.([\w-]+)/))return b}function U(n,i){if(n.peek()=="(")return n.next(),i.isAttrs=!0,i.attrsNest=[],i.inAttributeName=!0,i.attrValue="",i.attributeIsType=!1,"punctuation"}function d(n,i){if(i.isAttrs){if(p[n.peek()]&&i.attrsNest.push(p[n.peek()]),i.attrsNest[i.attrsNest.length-1]===n.peek())i.attrsNest.pop();else if(n.eat(")"))return i.isAttrs=!1,"punctuation";if(i.inAttributeName&&n.match(/^[^=,\)!]+/))return(n.peek()==="="||n.peek()==="!")&&(i.inAttributeName=!1,i.jsState=t.startState(c),i.lastTag==="script"&&n.current().trim().toLowerCase()==="type"?i.attributeIsType=!0:i.attributeIsType=!1),"attribute";var e=c.token(n,i.jsState);if(i.attributeIsType&&e==="string"&&(i.scriptType=n.current().toString()),i.attrsNest.length===0&&(e==="string"||e==="variable"||e==="keyword"))try{return Function("","var x "+i.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),i.inAttributeName=!0,i.attrValue="",n.backUp(n.current().length),d(n,i)}catch{}return i.attrValue+=n.current(),e||!0}}function W(n,i){if(n.match(/^&attributes\b/))return i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0,"keyword"}function Z(n){if(n.sol()&&n.eatSpace())return"indent"}function G(n,i){if(n.match(/^ *\/\/(-)?([^\n]*)/))return i.indentOf=n.indentation(),i.indentToken="comment","comment"}function H(n){if(n.match(/^: */))return"colon"}function J(n,i){if(n.match(/^(?:\| ?| )([^\n]+)/))return"string";if(n.match(/^(<[^\n]*)/,!1))return o(n,i,"htmlmixed"),i.innerModeForLine=!0,S(n,i,!0)}function Q(n,i){if(n.eat(".")){var e=null;return i.lastTag==="script"&&i.scriptType.toLowerCase().indexOf("javascript")!=-1?e=i.scriptType.toLowerCase().replace(/"|'/g,""):i.lastTag==="style"&&(e="css"),o(n,i,e),"dot"}}function X(n){return n.next(),null}function o(n,i,e){e=t.mimeModes[e]||e,e=u.innerModes&&u.innerModes(e)||e,e=t.mimeModes[e]||e,e=t.getMode(u,e),i.indentOf=n.indentation(),e&&e.name!=="null"?i.innerMode=e:i.indentToken="string"}function S(n,i,e){if(n.indentation()>i.indentOf||i.innerModeForLine&&!n.sol()||e)return i.innerMode?(i.innerState||(i.innerState=i.innerMode.startState?t.startState(i.innerMode,n.indentation()):{}),n.hideFirstChars(i.indentOf+2,function(){return i.innerMode.token(n,i.innerState)||!0})):(n.skipToEnd(),i.indentToken);n.sol()&&(i.indentOf=1/0,i.indentToken=null,i.innerMode=null,i.innerState=null)}function nn(n,i){if(n.sol()&&(i.restOfLine=""),i.restOfLine){n.skipToEnd();var e=i.restOfLine;return i.restOfLine="",e}}function en(){return new l}function tn(n){return n.copy()}function rn(n,i){var e=S(n,i)||nn(n,i)||T(n,i)||C(n,i)||$(n,i)||d(n,i)||L(n,i)||y(n,i)||_(n,i)||A(n)||x(n)||h(n,i)||O(n,i)||k(n,i)||N(n)||w(n,i)||I(n,i)||E(n,i)||F(n,i)||D(n,i)||M(n,i)||V(n,i)||m(n,i)||P(n,i)||z(n,i)||R(n,i)||Y(n,i)||s(n,i)||q(n,i)||B(n)||K(n)||U(n,i)||W(n,i)||Z(n)||J(n,i)||G(n,i)||H(n)||Q(n,i)||X(n);return e===!0?null:e}return{startState:en,copyState:tn,token:rn}},"javascript","css","htmlmixed"),t.defineMIME("text/x-pug","pug"),t.defineMIME("text/x-jade","pug")})})();var an=v.exports,vn=on({__proto__:null,default:an},[v.exports]);export{v as a,vn as p};
@@ -1 +1 @@
1
- import{A as _}from"./index.c2e31551.entry.js";function v(u,l){return l.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(o){if(o!=="default"&&!(o in u)){var a=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(u,o,a.get?a:{enumerable:!0,get:function(){return r[o]}})}})}),Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var d={exports:{}};(function(u,l){(function(r){r(_.exports)})(function(r){r.defineMode("puppet",function(){var o={},a=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function f(e,n){for(var i=n.split(" "),c=0;c<i.length;c++)o[i[c]]=e}f("keyword","class define site node include import inherits"),f("keyword","case if else in and elsif default or"),f("atom","false true running present absent file directory undef"),f("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");function p(e,n){for(var i,c,s=!1;!e.eol()&&(i=e.next())!=n.pending;){if(i==="$"&&c!="\\"&&n.pending=='"'){s=!0;break}c=i}return s&&e.backUp(1),i==n.pending?n.continueString=!1:n.continueString=!0,"string"}function g(e,n){var i=e.match(/[\w]+/,!1),c=e.match(/(\s+)?\w+\s+=>.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),h=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),t=e.next();if(t==="$")return e.match(a)?n.continueString?"variable-2":"variable":"error";if(n.continueString)return e.backUp(1),p(e,n);if(n.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),n.inDefinition=!1}return n.inInclude?(e.match(/(\s+)?\S+(\s+)?/),n.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):c?(e.match(/(\s+)?\w+/),"tag"):i&&o.hasOwnProperty(i)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),i=="include"&&(n.inInclude=!0),o[i]):/(^|\s+)[A-Z][\w:_]+/.test(i)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(e.match(/(\s+)?[\w:_]+/),"def"):h?(e.match(/(\s+)?[@]{1,2}/),"special"):t=="#"?(e.skipToEnd(),"comment"):t=="'"||t=='"'?(n.pending=t,p(e,n)):t=="{"||t=="}"?"bracket":t=="/"?(e.match(/^[^\/]*\//),"variable-3"):t.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):t=="="?(e.peek()==">"&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}return{startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,n){return e.eatSpace()?null:g(e,n)}}}),r.defineMIME("text/x-puppet","puppet")})})();var b=d.exports,y=v({__proto__:null,default:b},[d.exports]);export{y as p};
1
+ import{z as _}from"./index.ed3b88b9.entry.js";function v(u,l){return l.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(o){if(o!=="default"&&!(o in u)){var a=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(u,o,a.get?a:{enumerable:!0,get:function(){return r[o]}})}})}),Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var d={exports:{}};(function(u,l){(function(r){r(_.exports)})(function(r){r.defineMode("puppet",function(){var o={},a=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function f(e,n){for(var i=n.split(" "),c=0;c<i.length;c++)o[i[c]]=e}f("keyword","class define site node include import inherits"),f("keyword","case if else in and elsif default or"),f("atom","false true running present absent file directory undef"),f("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");function p(e,n){for(var i,c,s=!1;!e.eol()&&(i=e.next())!=n.pending;){if(i==="$"&&c!="\\"&&n.pending=='"'){s=!0;break}c=i}return s&&e.backUp(1),i==n.pending?n.continueString=!1:n.continueString=!0,"string"}function g(e,n){var i=e.match(/[\w]+/,!1),c=e.match(/(\s+)?\w+\s+=>.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),h=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),t=e.next();if(t==="$")return e.match(a)?n.continueString?"variable-2":"variable":"error";if(n.continueString)return e.backUp(1),p(e,n);if(n.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),n.inDefinition=!1}return n.inInclude?(e.match(/(\s+)?\S+(\s+)?/),n.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):c?(e.match(/(\s+)?\w+/),"tag"):i&&o.hasOwnProperty(i)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),i=="include"&&(n.inInclude=!0),o[i]):/(^|\s+)[A-Z][\w:_]+/.test(i)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(e.match(/(\s+)?[\w:_]+/),"def"):h?(e.match(/(\s+)?[@]{1,2}/),"special"):t=="#"?(e.skipToEnd(),"comment"):t=="'"||t=='"'?(n.pending=t,p(e,n)):t=="{"||t=="}"?"bracket":t=="/"?(e.match(/^[^\/]*\//),"variable-3"):t.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):t=="="?(e.peek()==">"&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}return{startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,n){return e.eatSpace()?null:g(e,n)}}}),r.defineMIME("text/x-puppet","puppet")})})();var b=d.exports,y=v({__proto__:null,default:b},[d.exports]);export{y as p};
@@ -1 +1 @@
1
- import{A as J}from"./index.c2e31551.entry.js";function K(b,S){return S.forEach(function(c){c&&typeof c!="string"&&!Array.isArray(c)&&Object.keys(c).forEach(function(p){if(p!=="default"&&!(p in b)){var v=Object.getOwnPropertyDescriptor(c,p);Object.defineProperty(b,p,v.get?v:{enumerable:!0,get:function(){return c[p]}})}})}),Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}};(function(b,S){(function(c){c(J.exports)})(function(c){function p(a){return new RegExp("^(("+a.join(")|(")+"))\\b")}var v=p(["and","or","not","is"]),E=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],O=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];c.registerHelper("hintWords","python",E.concat(O));function f(a){return a.scopes[a.scopes.length-1]}c.defineMode("python",function(a,l){for(var h="error",B=l.delimiters||l.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,s=[l.singleOperators,l.doubleOperators,l.doubleDelimiters,l.tripleDelimiters,l.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],k=0;k<s.length;k++)s[k]||s.splice(k--,1);var z=l.hangingIndent||a.indentUnit,y=E,g=O;l.extra_keywords!=null&&(y=y.concat(l.extra_keywords)),l.extra_builtins!=null&&(g=g.concat(l.extra_builtins));var T=!(l.version&&Number(l.version)<3);if(T){var x=l.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;y=y.concat(["nonlocal","False","True","None","async","await"]),g=g.concat(["ascii","bytes","exec","print"]);var A=new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var x=l.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;y=y.concat(["exec","print"]),g=g.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var A=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var N=p(y),P=p(g);function F(e,n){var r=e.sol()&&n.lastToken!="\\";if(r&&(n.indent=e.indentation()),r&&f(n).type=="py"){var i=f(n).offset;if(e.eatSpace()){var t=e.indentation();return t>i?m(n):t<i&&I(e,n)&&e.peek()!="#"&&(n.errorToken=!0),null}else{var u=_(e,n);return i>0&&I(e,n)&&(u+=" "+h),u}}return _(e,n)}function _(e,n,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var t=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(t=!0),e.match(/^0b[01_]+/i)&&(t=!0),e.match(/^0o[0-7_]+/i)&&(t=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),t=!0),e.match(/^0(?![\dx])/i)&&(t=!0),t)return e.eat(/L/i),"number"}if(e.match(A)){var u=e.current().toLowerCase().indexOf("f")!==-1;return u?(n.tokenize=D(e.current(),n.tokenize),n.tokenize(e,n)):(n.tokenize=$(e.current(),n.tokenize),n.tokenize(e,n))}for(var o=0;o<s.length;o++)if(e.match(s[o]))return"operator";return e.match(B)?"punctuation":n.lastToken=="."&&e.match(x)?"property":e.match(N)||e.match(v)?"keyword":e.match(P)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(x)?n.lastToken=="def"||n.lastToken=="class"?"def":"variable":(e.next(),r?null:h)}function D(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,i="string";function t(o){return function(d,w){var j=_(d,w,!0);return j=="punctuation"&&(d.current()=="{"?w.tokenize=t(o+1):d.current()=="}"&&(o>1?w.tokenize=t(o-1):w.tokenize=u)),j}}function u(o,d){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return d.tokenize=n,i;if(o.match("{{"))return i;if(o.match("{",!1))return d.tokenize=t(0),o.current()?i:d.tokenize(o,d);if(o.match("}}"))return i;if(o.match("}"))return h;o.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;d.tokenize=n}return i}return u.isString=!0,u}function $(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,i="string";function t(u,o){for(;!u.eol();)if(u.eatWhile(/[^'"\\]/),u.eat("\\")){if(u.next(),r&&u.eol())return i}else{if(u.match(e))return o.tokenize=n,i;u.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;o.tokenize=n}return i}return t.isString=!0,t}function m(e){for(;f(e).type!="py";)e.scopes.pop();e.scopes.push({offset:f(e).offset+a.indentUnit,type:"py",align:null})}function U(e,n,r){var i=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;n.scopes.push({offset:n.indent+z,type:r,align:i})}function I(e,n){for(var r=e.indentation();n.scopes.length>1&&f(n).offset>r;){if(f(n).type!="py")return!0;n.scopes.pop()}return f(n).offset!=r}function Z(e,n){e.sol()&&(n.beginningOfLine=!0,n.dedent=!1);var r=n.tokenize(e,n),i=e.current();if(n.beginningOfLine&&i=="@")return e.match(x,!1)?"meta":T?"operator":h;if(/\S/.test(i)&&(n.beginningOfLine=!1),(r=="variable"||r=="builtin")&&n.lastToken=="meta"&&(r="meta"),(i=="pass"||i=="return")&&(n.dedent=!0),i=="lambda"&&(n.lambda=!0),i==":"&&!n.lambda&&f(n).type=="py"&&e.match(/^\s*(?:#|$)/,!1)&&m(n),i.length==1&&!/string|comment/.test(r)){var t="[({".indexOf(i);if(t!=-1&&U(e,n,"])}".slice(t,t+1)),t="])}".indexOf(i),t!=-1)if(f(n).type==i)n.indent=n.scopes.pop().offset-z;else return h}return n.dedent&&e.eol()&&f(n).type=="py"&&n.scopes.length>1&&n.scopes.pop(),r}var W={startState:function(e){return{tokenize:F,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,n){var r=n.errorToken;r&&(n.errorToken=!1);var i=Z(e,n);return i&&i!="comment"&&(n.lastToken=i=="keyword"||i=="punctuation"?e.current():i),i=="punctuation"&&(i=null),e.eol()&&n.lambda&&(n.lambda=!1),r?i+" "+h:i},indent:function(e,n){if(e.tokenize!=F)return e.tokenize.isString?c.Pass:0;var r=f(e),i=r.type==n.charAt(0)||r.type=="py"&&!e.dedent&&/^(else:|elif |except |finally:)/.test(n);return r.align!=null?r.align-(i?1:0):r.offset-(i?z:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return W}),c.defineMIME("text/x-python","python");var R=function(a){return a.split(" ")};c.defineMIME("text/x-cython",{name:"python",extra_keywords:R("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();var M=L.exports,q=K({__proto__:null,default:M},[L.exports]);export{L as a,q as p};
1
+ import{z as J}from"./index.ed3b88b9.entry.js";function K(b,S){return S.forEach(function(c){c&&typeof c!="string"&&!Array.isArray(c)&&Object.keys(c).forEach(function(p){if(p!=="default"&&!(p in b)){var v=Object.getOwnPropertyDescriptor(c,p);Object.defineProperty(b,p,v.get?v:{enumerable:!0,get:function(){return c[p]}})}})}),Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}};(function(b,S){(function(c){c(J.exports)})(function(c){function p(a){return new RegExp("^(("+a.join(")|(")+"))\\b")}var v=p(["and","or","not","is"]),E=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],O=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];c.registerHelper("hintWords","python",E.concat(O));function f(a){return a.scopes[a.scopes.length-1]}c.defineMode("python",function(a,l){for(var h="error",B=l.delimiters||l.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,s=[l.singleOperators,l.doubleOperators,l.doubleDelimiters,l.tripleDelimiters,l.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],k=0;k<s.length;k++)s[k]||s.splice(k--,1);var z=l.hangingIndent||a.indentUnit,y=E,g=O;l.extra_keywords!=null&&(y=y.concat(l.extra_keywords)),l.extra_builtins!=null&&(g=g.concat(l.extra_builtins));var T=!(l.version&&Number(l.version)<3);if(T){var x=l.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;y=y.concat(["nonlocal","False","True","None","async","await"]),g=g.concat(["ascii","bytes","exec","print"]);var F=new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var x=l.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;y=y.concat(["exec","print"]),g=g.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var F=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var N=p(y),P=p(g);function m(e,n){var r=e.sol()&&n.lastToken!="\\";if(r&&(n.indent=e.indentation()),r&&f(n).type=="py"){var i=f(n).offset;if(e.eatSpace()){var t=e.indentation();return t>i?A(n):t<i&&I(e,n)&&e.peek()!="#"&&(n.errorToken=!0),null}else{var u=_(e,n);return i>0&&I(e,n)&&(u+=" "+h),u}}return _(e,n)}function _(e,n,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var t=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(t=!0),e.match(/^0b[01_]+/i)&&(t=!0),e.match(/^0o[0-7_]+/i)&&(t=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),t=!0),e.match(/^0(?![\dx])/i)&&(t=!0),t)return e.eat(/L/i),"number"}if(e.match(F)){var u=e.current().toLowerCase().indexOf("f")!==-1;return u?(n.tokenize=D(e.current(),n.tokenize),n.tokenize(e,n)):(n.tokenize=$(e.current(),n.tokenize),n.tokenize(e,n))}for(var o=0;o<s.length;o++)if(e.match(s[o]))return"operator";return e.match(B)?"punctuation":n.lastToken=="."&&e.match(x)?"property":e.match(N)||e.match(v)?"keyword":e.match(P)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(x)?n.lastToken=="def"||n.lastToken=="class"?"def":"variable":(e.next(),r?null:h)}function D(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,i="string";function t(o){return function(d,w){var j=_(d,w,!0);return j=="punctuation"&&(d.current()=="{"?w.tokenize=t(o+1):d.current()=="}"&&(o>1?w.tokenize=t(o-1):w.tokenize=u)),j}}function u(o,d){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return d.tokenize=n,i;if(o.match("{{"))return i;if(o.match("{",!1))return d.tokenize=t(0),o.current()?i:d.tokenize(o,d);if(o.match("}}"))return i;if(o.match("}"))return h;o.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;d.tokenize=n}return i}return u.isString=!0,u}function $(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,i="string";function t(u,o){for(;!u.eol();)if(u.eatWhile(/[^'"\\]/),u.eat("\\")){if(u.next(),r&&u.eol())return i}else{if(u.match(e))return o.tokenize=n,i;u.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;o.tokenize=n}return i}return t.isString=!0,t}function A(e){for(;f(e).type!="py";)e.scopes.pop();e.scopes.push({offset:f(e).offset+a.indentUnit,type:"py",align:null})}function U(e,n,r){var i=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;n.scopes.push({offset:n.indent+z,type:r,align:i})}function I(e,n){for(var r=e.indentation();n.scopes.length>1&&f(n).offset>r;){if(f(n).type!="py")return!0;n.scopes.pop()}return f(n).offset!=r}function Z(e,n){e.sol()&&(n.beginningOfLine=!0,n.dedent=!1);var r=n.tokenize(e,n),i=e.current();if(n.beginningOfLine&&i=="@")return e.match(x,!1)?"meta":T?"operator":h;if(/\S/.test(i)&&(n.beginningOfLine=!1),(r=="variable"||r=="builtin")&&n.lastToken=="meta"&&(r="meta"),(i=="pass"||i=="return")&&(n.dedent=!0),i=="lambda"&&(n.lambda=!0),i==":"&&!n.lambda&&f(n).type=="py"&&e.match(/^\s*(?:#|$)/,!1)&&A(n),i.length==1&&!/string|comment/.test(r)){var t="[({".indexOf(i);if(t!=-1&&U(e,n,"])}".slice(t,t+1)),t="])}".indexOf(i),t!=-1)if(f(n).type==i)n.indent=n.scopes.pop().offset-z;else return h}return n.dedent&&e.eol()&&f(n).type=="py"&&n.scopes.length>1&&n.scopes.pop(),r}var W={startState:function(e){return{tokenize:m,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,n){var r=n.errorToken;r&&(n.errorToken=!1);var i=Z(e,n);return i&&i!="comment"&&(n.lastToken=i=="keyword"||i=="punctuation"?e.current():i),i=="punctuation"&&(i=null),e.eol()&&n.lambda&&(n.lambda=!1),r?i+" "+h:i},indent:function(e,n){if(e.tokenize!=m)return e.tokenize.isString?c.Pass:0;var r=f(e),i=r.type==n.charAt(0)||r.type=="py"&&!e.dedent&&/^(else:|elif |except |finally:)/.test(n);return r.align!=null?r.align-(i?1:0):r.offset-(i?z:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return W}),c.defineMIME("text/x-python","python");var R=function(a){return a.split(" ")};c.defineMIME("text/x-cython",{name:"python",extra_keywords:R("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();var M=L.exports,q=K({__proto__:null,default:M},[L.exports]);export{L as a,q as p};
@@ -1 +1 @@
1
- import{A as w}from"./index.c2e31551.entry.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{z as w}from"./index.ed3b88b9.entry.js";function z(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 j=v.exports,q=z({__proto__:null,default:j},[v.exports]);export{q};
@@ -1,4 +1,4 @@
1
- import{a,o,b as d,w as n,g as e,e as c,B as l}from"./runtime-core.esm-bundler.b1f35d24.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")]),e("li",null,[e("a",{href:"#functions"},"Functions"),e("p")]),e("li",null,[e("a",{href:"#metadata"},"Metadata"),e("ul",null,[e("li",null,[e("a",{href:"#total-count"},"Total Count")]),e("li",null,[e("a",{href:"#filter-count"},"Filter Count")])])])])])])],-1),p=e("hr",null,null,-1),f=e("h2",{id:"fields",tabindex:"-1"},[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",tabindex:"-1"},[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)",tabindex:"-1"},[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{a,o,b as d,w as s,g as e,e as c,B as l}from"./runtime-core.esm-bundler.e3d5f5b7.js";const u={class:"markdown-body"},h=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")]),e("li",null,[e("a",{href:"#functions"},"Functions"),e("p")]),e("li",null,[e("a",{href:"#metadata"},"Metadata"),e("ul",null,[e("li",null,[e("a",{href:"#total-count"},"Total Count")]),e("li",null,[e("a",{href:"#filter-count"},"Filter Count")])])])])])])],-1),p=e("hr",null,null,-1),f=e("h2",{id:"fields",tabindex:"-1"},[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",tabindex:"-1"},[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)",tabindex:"-1"},[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
@@ -9,28 +9,28 @@ sections.item:videos.source
9
9
  ?fields[]=title
10
10
  &fields[]=body
11
11
  &fields[]=featured_image.*
12
- `)]),e("h3",{id:"graphql",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")]),e("p",null,[e("em",null,"Natively supported in GraphQL")])])],-1),_=e("hr",null,null,-1),v=e("h2",{id:"filter",tabindex:"-1"},[l("Filter "),e("a",{class:"header-anchor",href:"#filter"},"#")],-1),b={class:"two-up"},y={class:"left"},x=l("Used to search items in a collection that matches the filter\u2019s conditions. The filter param follows "),w=l("the Filter Rules spec"),q=l(", which includes additional information on logical operators (AND/OR), nested relational filtering, and dynamic variables."),j=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-1",tabindex:"-1"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-1"},"#")]),e("p",null,[l("Retrieve all items where "),e("code",null,"first_name"),l(" equals \u201CRijk\u201D")]),e("pre",null,[e("code",{class:"language-json"},[l(`{
13
- `),e("span",{class:"hljs-attr"},'"first_name"'),l(`: {
14
- `),e("span",{class:"hljs-attr"},'"_eq"'),l(": "),e("span",{class:"hljs-string"},'"Rijk"'),l(`
15
- }
16
- }
17
- `)])]),e("p",null,"Retrieve all items in one of the following categories: \u201Cvegetables\u201D, \u201Cfruit\u201D"),e("pre",null,[e("code",{class:"language-json"},[l(`{
18
- `),e("span",{class:"hljs-attr"},'"categories"'),l(`: {
19
- `),e("span",{class:"hljs-attr"},'"_in"'),l(": ["),e("span",{class:"hljs-string"},'"vegetables"'),l(", "),e("span",{class:"hljs-string"},'"fruit"'),l(`]
20
- }
21
- }
22
- `)])]),e("p",null,"Retrieve all items that are published between two dates"),e("pre",null,[e("code",{class:"language-json"},[l(`{
23
- `),e("span",{class:"hljs-attr"},'"date_published"'),l(`: {
24
- `),e("span",{class:"hljs-attr"},'"_between"'),l(": ["),e("span",{class:"hljs-string"},'"2021-01-24"'),l(", "),e("span",{class:"hljs-string"},'"2021-02-23"'),l(`]
25
- }
26
- }
27
- `)])]),e("p",null,"Retrieve all items where the author\u2019s \u201Cvip\u201D flag is true"),e("pre",null,[e("code",{class:"language-json"},[l(`{
28
- `),e("span",{class:"hljs-attr"},'"author"'),l(`: {
29
- `),e("span",{class:"hljs-attr"},'"vip"'),l(`: {
30
- `),e("span",{class:"hljs-attr"},'"_eq"'),l(": "),e("span",{class:"hljs-literal"},"true"),l(`
31
- }
32
- }
33
- }
12
+ `)]),e("h3",{id:"graphql",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")]),e("p",null,[e("em",null,"Natively supported in GraphQL")])])],-1),_=e("hr",null,null,-1),v=e("h2",{id:"filter",tabindex:"-1"},[l("Filter "),e("a",{class:"header-anchor",href:"#filter"},"#")],-1),b={class:"two-up"},y={class:"left"},j=l("Used to search items in a collection that matches the filter\u2019s conditions. The filter param follows "),x=l("the Filter Rules spec"),w=l(", which includes additional information on logical operators (AND/OR), nested relational filtering, and dynamic variables."),q=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-1",tabindex:"-1"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-1"},"#")]),e("p",null,[l("Retrieve all items where "),e("code",null,"first_name"),l(" equals \u201CRijk\u201D")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"{"),l(`
13
+ `),e("span",{class:"hljs-attr"},'"first_name"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-punctuation"},"{"),l(`
14
+ `),e("span",{class:"hljs-attr"},'"_eq"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-string"},'"Rijk"'),l(`
15
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
16
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
17
+ `)])]),e("p",null,"Retrieve all items in one of the following categories: \u201Cvegetables\u201D, \u201Cfruit\u201D"),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"{"),l(`
18
+ `),e("span",{class:"hljs-attr"},'"categories"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-punctuation"},"{"),l(`
19
+ `),e("span",{class:"hljs-attr"},'"_in"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-punctuation"},"["),e("span",{class:"hljs-string"},'"vegetables"'),e("span",{class:"hljs-punctuation"},","),l(),e("span",{class:"hljs-string"},'"fruit"'),e("span",{class:"hljs-punctuation"},"]"),l(`
20
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
21
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
22
+ `)])]),e("p",null,"Retrieve all items that are published between two dates"),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"{"),l(`
23
+ `),e("span",{class:"hljs-attr"},'"date_published"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-punctuation"},"{"),l(`
24
+ `),e("span",{class:"hljs-attr"},'"_between"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-punctuation"},"["),e("span",{class:"hljs-string"},'"2021-01-24"'),e("span",{class:"hljs-punctuation"},","),l(),e("span",{class:"hljs-string"},'"2021-02-23"'),e("span",{class:"hljs-punctuation"},"]"),l(`
25
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
26
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
27
+ `)])]),e("p",null,"Retrieve all items where the author\u2019s \u201Cvip\u201D flag is true"),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"{"),l(`
28
+ `),e("span",{class:"hljs-attr"},'"author"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-punctuation"},"{"),l(`
29
+ `),e("span",{class:"hljs-attr"},'"vip"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-punctuation"},"{"),l(`
30
+ `),e("span",{class:"hljs-attr"},'"_eq"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-literal"},[e("span",{class:"hljs-keyword"},"true")]),l(`
31
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
32
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
33
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
34
34
  `)])]),e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Nested Filters"),e("p",null,[l("The above example will filter the "),e("em",null,"top level"),l(" items based on a condition "),e("em",null,"in"),l(" the related item. If you\u2019re looking to filter the related items themselves, take a look at "),e("a",{href:"#deep"},[l("the "),e("code",null,"deep"),l(" parameter")]),l("!")])])]),e("div",{class:"right"},[e("h3",{id:"rest-api-1",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-1"},"#")]),e("pre",null,[e("code",null,`?filter[first_name][_eq]=Rijk
35
35
 
36
36
  // or
@@ -87,20 +87,20 @@ sections.item:videos.source
87
87
  }
88
88
  }
89
89
  }
90
- `)])])])],-1),H=e("hr",null,null,-1),K=e("h2",{id:"deep",tabindex:"-1"},[l("Deep "),e("a",{class:"header-anchor",href:"#deep"},"#")],-1),X=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Deep allows you to set any of the other query parameters on a nested relational dataset.")])],-1),Z=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-6",tabindex:"-1"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-6"},"#")]),e("p",null,"Limit the nested related articles to 3"),e("pre",null,[e("code",{class:"language-json"},[l(`{
91
- `),e("span",{class:"hljs-attr"},'"related_articles"'),l(`: {
92
- `),e("span",{class:"hljs-attr"},'"_limit"'),l(": "),e("span",{class:"hljs-number"},"3"),l(`
93
- }
94
- }
95
- `)])]),e("p",null,"Only get 3 related articles, with only the top rated comment nested"),e("pre",null,[e("code",{class:"language-json"},[l(`{
96
- `),e("span",{class:"hljs-attr"},'"related_articles"'),l(`: {
97
- `),e("span",{class:"hljs-attr"},'"_limit"'),l(": "),e("span",{class:"hljs-number"},"3"),l(`,
98
- `),e("span",{class:"hljs-attr"},'"comments"'),l(`: {
99
- `),e("span",{class:"hljs-attr"},'"_sort"'),l(": "),e("span",{class:"hljs-string"},'"rating"'),l(`,
100
- `),e("span",{class:"hljs-attr"},'"_limit"'),l(": "),e("span",{class:"hljs-number"},"1"),l(`
101
- }
102
- }
103
- }
90
+ `)])])])],-1),H=e("hr",null,null,-1),K=e("h2",{id:"deep",tabindex:"-1"},[l("Deep "),e("a",{class:"header-anchor",href:"#deep"},"#")],-1),X=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Deep allows you to set any of the other query parameters on a nested relational dataset.")])],-1),Z=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-6",tabindex:"-1"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-6"},"#")]),e("p",null,"Limit the nested related articles to 3"),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"{"),l(`
91
+ `),e("span",{class:"hljs-attr"},'"related_articles"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-punctuation"},"{"),l(`
92
+ `),e("span",{class:"hljs-attr"},'"_limit"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-number"},"3"),l(`
93
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
94
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
95
+ `)])]),e("p",null,"Only get 3 related articles, with only the top rated comment nested"),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"{"),l(`
96
+ `),e("span",{class:"hljs-attr"},'"related_articles"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-punctuation"},"{"),l(`
97
+ `),e("span",{class:"hljs-attr"},'"_limit"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-number"},"3"),e("span",{class:"hljs-punctuation"},","),l(`
98
+ `),e("span",{class:"hljs-attr"},'"comments"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-punctuation"},"{"),l(`
99
+ `),e("span",{class:"hljs-attr"},'"_sort"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-string"},'"rating"'),e("span",{class:"hljs-punctuation"},","),l(`
100
+ `),e("span",{class:"hljs-attr"},'"_limit"'),e("span",{class:"hljs-punctuation"},":"),l(),e("span",{class:"hljs-number"},"1"),l(`
101
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
102
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
103
+ `),e("span",{class:"hljs-punctuation"},"}"),l(`
104
104
  `)])])]),e("div",{class:"right"},[e("h3",{id:"rest-api-8",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-8"},"#")]),e("pre",null,[e("code",null,`?deep[translations][_filter][languages_code][_eq]=en-US
105
105
 
106
106
  // or
@@ -130,7 +130,7 @@ sections.item:videos.source
130
130
  }
131
131
  }
132
132
  }
133
- `)])])])],-1),ae=e("hr",null,null,-1),ne=e("h2",{id:"export",tabindex:"-1"},[l("Export "),e("a",{class:"header-anchor",href:"#export"},"#")],-1),se=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-10",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-10"},"#")]),e("pre",null,[e("code",null,`?export=json
133
+ `)])])])],-1),ae=e("hr",null,null,-1),se=e("h2",{id:"export",tabindex:"-1"},[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-10",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-10"},"#")]),e("pre",null,[e("code",null,`?export=json
134
134
  ?export=csv
135
135
  ?export=xml
136
136
  `)]),e("h3",{id:"graphql-10",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-10"},"#")]),e("p",null,"n/a")])],-1),re=e("hr",null,null,-1),oe=e("h2",{id:"functions",tabindex:"-1"},[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",tabindex:"-1"},[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",tabindex:"-1"},[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-11",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-11"},"#")]),e("pre",null,[e("code",null,`?fields=id,title,weekday(date_published)
@@ -144,9 +144,9 @@ sections.item:videos.source
144
144
  }
145
145
  }
146
146
  }
147
- `)])])])],-1),he=e("hr",null,null,-1),ue=e("h2",{id:"metadata",tabindex:"-1"},[l("Metadata "),e("a",{class:"header-anchor",href:"#metadata"},"#")],-1),pe=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Metadata allows you to retrieve some additional information about the items in the collection you\u2019re fetching. "),e("code",null,"*"),l(" can be used as a wildcard to retrieve all metadata.")])])],-1),fe=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"total-count",tabindex:"-1"},[l("Total Count "),e("a",{class:"header-anchor",href:"#total-count"},"#")]),e("p",null,"Returns the total item count of the collection you\u2019re querying."),e("h3",{id:"filter-count",tabindex:"-1"},[l("Filter Count "),e("a",{class:"header-anchor",href:"#filter-count"},"#")]),e("p",null,"Returns the item count of the collection you\u2019re querying, taking the current filter/search parameters into account.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-12",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-12"},"#")]),e("pre",null,[e("code",null,`?meta=total_count
147
+ `)])])])],-1),ue=e("hr",null,null,-1),he=e("h2",{id:"metadata",tabindex:"-1"},[l("Metadata "),e("a",{class:"header-anchor",href:"#metadata"},"#")],-1),pe=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Metadata allows you to retrieve some additional information about the items in the collection you\u2019re fetching. "),e("code",null,"*"),l(" can be used as a wildcard to retrieve all metadata.")])])],-1),fe=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"total-count",tabindex:"-1"},[l("Total Count "),e("a",{class:"header-anchor",href:"#total-count"},"#")]),e("p",null,"Returns the total item count of the collection you\u2019re querying."),e("h3",{id:"filter-count",tabindex:"-1"},[l("Filter Count "),e("a",{class:"header-anchor",href:"#filter-count"},"#")]),e("p",null,"Returns the item count of the collection you\u2019re querying, taking the current filter/search parameters into account.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-12",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-12"},"#")]),e("pre",null,[e("code",null,`?meta=total_count
148
148
 
149
149
  ?meta=filter_count
150
150
 
151
151
  ?meta=*
152
- `)]),e("h3",{id:"graphql-12",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-12"},"#")]),e("p",null,"n/a")])],-1),be="Global Query Parameters",ye=!1,xe="page-reference",we={name:"query",setup(ge,{expose:s}){const t={title:"Global Query Parameters",modularExtension:!1,pageClass:"page-reference"};return s({frontmatter:t}),(me,_e)=>{const i=a("router-link"),r=a("docs-wrapper");return o(),d(r,{frontmatter:t},{default:n(()=>[e("div",h,[u,p,f,g,m,_,v,e("div",b,[e("div",y,[e("p",null,[x,c(i,{to:"/docs/reference/filter-rules"},{default:n(()=>[w]),_:1}),q])])]),j,k,G,E,A,S,T,R,L,I,P,Q,F,D,N,C,B,M,z,O,U,W,V,J,Y,H,K,X,Z,$,ee,le,te,ae,ne,se,ie,re,oe,de,ce,he,ue,pe,fe])]),_:1})}}};export{we as default,ye as modularExtension,xe as pageClass,be as title};
152
+ `)]),e("h3",{id:"graphql-12",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-12"},"#")]),e("p",null,"n/a")])],-1),be="Global Query Parameters",ye=!1,je="page-reference",xe={name:"query",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("docs-wrapper");return o(),d(r,{frontmatter:t},{default:s(()=>[e("div",u,[h,p,f,g,m,_,v,e("div",b,[e("div",y,[e("p",null,[j,c(i,{to:"/docs/reference/filter-rules"},{default:s(()=>[x]),_:1}),w])])]),q,k,G,E,A,S,T,R,L,I,P,Q,F,D,N,C,B,M,z,O,U,W,V,J,Y,H,K,X,Z,$,ee,le,te,ae,se,ne,ie,re,oe,de,ce,ue,he,pe,fe])]),_:1})}}};export{xe as default,ye as modularExtension,je as pageClass,be as title};
@@ -1,9 +1,9 @@
1
- import{a as i,o as r,b as d,w as o,g as t,e as n,B as e}from"./runtime-core.esm-bundler.b1f35d24.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",tabindex:"-1"},[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 "),b=t("a",{href:"https://directus.cloud/login",target:"_blank",rel:"noopener noreferrer"},"Directus Cloud",-1),y=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),w=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),v=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),k=e("Overview"),P=e("Cloud Accounts"),j=e("Cloud Teams"),I=t("h2",{id:"2.-create-and-access-project",tabindex:"-1"},[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),x=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"),D=e(" the desired Team."),M=t("li",null,[e("Navigate to "),t("strong",null,"\u201CProjects\u201D"),e(" and click "),t("strong",null,"\u201CCreate Project\u201D"),e(".")],-1),q=t("li",null,"Set the Project Name.",-1),N=t("li",null,"Select the Community tier.",-1),R=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),L=t("li",null,[e("Click "),t("strong",null,"\u201CCreate Project\u201D"),e(".")],-1),B=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),G={start:"7"},O=e("You can "),E=e("access a Project"),H=e(" from within the Cloud Dashboard or type the URL into your browser."),U=t("li",null,"Log in with your username and password from the email.",-1),Q=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),V={class:"tip hint"},W=t("div",{class:"hint-title"},"Learn More About Cloud Projects",-1),Y=e("Overview"),z=e("Cloud Projects"),K=t("h2",{id:"3.-create-a-collection",tabindex:"-1"},[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",tabindex:"-1"},[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",tabindex:"-1"},[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 "),bt=e("Item"),yt=e("."),wt=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),vt={class:"tip hint"},Ct=t("div",{class:"hint-title"},"Learn More About Items",-1),At=e("The Content Module"),kt=e("The Item Page"),Pt=t("h2",{id:"6.-set-roles-%26-permissions",tabindex:"-1"},[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),xt=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),Dt=e("Users, Roles and Permissions"),Mt=e("."),qt=t("h2",{id:"7.-connect-to-the-api",tabindex:"-1"},[e("7. Connect to the API "),t("a",{class:"header-anchor",href:"#7.-connect-to-the-api"},"#")],-1),Nt=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 "),Rt=t("code",null,"/items/",-1),Lt=e(),Bt=e("REST API endpoint"),Gt=e(" to retrieve the Item we just created."),Ot=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),Et=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),Ht=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
- }
1
+ import{a as i,o as r,b as d,w as o,g as t,e as n,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.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",tabindex:"-1"},[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 "),b=t("a",{href:"https://directus.cloud/login",target:"_blank",rel:"noopener noreferrer"},"Directus Cloud",-1),y=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),w=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),v=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),k=e("Overview"),P=e("Cloud Accounts"),j=e("Cloud Teams"),I=t("h2",{id:"2.-create-and-access-project",tabindex:"-1"},[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),x=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"),D=e(" the desired Team."),M=t("li",null,[e("Navigate to "),t("strong",null,"\u201CProjects\u201D"),e(" and click "),t("strong",null,"\u201CCreate Project\u201D"),e(".")],-1),q=t("li",null,"Set the Project Name.",-1),N=t("li",null,"Select the Community tier.",-1),R=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),L=t("li",null,[e("Click "),t("strong",null,"\u201CCreate Project\u201D"),e(".")],-1),B=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),G={start:"7"},O=e("You can "),E=e("access a Project"),H=e(" from within the Cloud Dashboard or type the URL into your browser."),U=t("li",null,"Log in with your username and password from the email.",-1),Q=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),V={class:"tip hint"},W=t("div",{class:"hint-title"},"Learn More About Cloud Projects",-1),Y=e("Overview"),z=e("Cloud Projects"),K=t("h2",{id:"3.-create-a-collection",tabindex:"-1"},[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",tabindex:"-1"},[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",tabindex:"-1"},[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 "),bt=e("Item"),yt=e("."),wt=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),vt={class:"tip hint"},Ct=t("div",{class:"hint-title"},"Learn More About Items",-1),At=e("The Content Module"),kt=e("The Item Page"),Pt=t("h2",{id:"6.-set-roles-%26-permissions",tabindex:"-1"},[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),xt=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),Dt=e("Users, Roles and Permissions"),Mt=e("."),qt=t("h2",{id:"7.-connect-to-the-api",tabindex:"-1"},[e("7. Connect to the API "),t("a",{class:"header-anchor",href:"#7.-connect-to-the-api"},"#")],-1),Nt=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 "),Rt=t("code",null,"/items/",-1),Lt=e(),Bt=e("REST API endpoint"),Gt=e(" to retrieve the Item we just created."),Ot=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),Et=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),Ht=t("pre",null,[t("code",{class:"language-json"},[t("span",{class:"hljs-punctuation"},"{"),e(`
2
+ `),t("span",{class:"hljs-attr"},'"data"'),t("span",{class:"hljs-punctuation"},":"),e(),t("span",{class:"hljs-punctuation"},"["),e(`
3
+ `),t("span",{class:"hljs-punctuation"},"{"),e(`
4
+ `),t("span",{class:"hljs-attr"},'"id"'),t("span",{class:"hljs-punctuation"},":"),e(),t("span",{class:"hljs-number"},"1"),t("span",{class:"hljs-punctuation"},","),e(`
5
+ `),t("span",{class:"hljs-attr"},'"title"'),t("span",{class:"hljs-punctuation"},":"),e(),t("span",{class:"hljs-string"},'"Hello World!"'),e(`
6
+ `),t("span",{class:"hljs-punctuation"},"}"),e(`
7
+ `),t("span",{class:"hljs-punctuation"},"]"),e(`
8
+ `),t("span",{class:"hljs-punctuation"},"}"),e(`
9
9
  `)])],-1),Ut=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),Qt={class:"tip hint"},Vt=t("div",{class:"hint-title"},"Learn More About The API",-1),Wt=e("Intro to the API"),Yt=e("JS SDK"),Zt="Quickstart Guide",$t=!1,te={name:"quickstart",setup(zt,{expose:a}){const l={title:"Quickstart Guide",modularExtension:!1};return a({frontmatter:l}),(Kt,Jt)=>{const s=i("router-link"),c=i("docs-wrapper");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,b]),y,w,v,t("div",C,[A,t("ul",null,[t("li",null,[n(s,{to:"/docs/cloud/overview/"},{default:o(()=>[k]),_:1})]),t("li",null,[n(s,{to:"/docs/cloud/accounts/"},{default:o(()=>[P]),_:1})]),t("li",null,[n(s,{to:"/docs/cloud/teams/"},{default:o(()=>[j]),_:1})])])]),I,T,x,t("ol",null,[t("li",null,[S,n(s,{to:"/docs/cloud/teams/#create-a-team"},{default:o(()=>[F]),_:1}),D]),M,q,N,R,L]),B,t("ol",G,[t("li",null,[O,n(s,{to:"/docs/cloud/projects/#access-a-project"},{default:o(()=>[E]),_:1}),H]),U]),Q,t("div",V,[W,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(()=>[z]),_:1})])])]),K,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(()=>[bt]),_:1}),yt]),wt,t("div",vt,[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(()=>[kt]),_:1})])])]),Pt,jt,It,Tt,xt,t("div",St,[Ft,t("ul",null,[t("li",null,[n(s,{to:"/docs/configuration/users-roles-permissions/"},{default:o(()=>[Dt]),_:1}),Mt])])]),qt,t("p",null,[Nt,Rt,Lt,n(s,{to:"/docs/reference/items"},{default:o(()=>[Bt]),_:1}),Gt]),Ot,Et,Ht,Ut,t("div",Qt,[Vt,t("ul",null,[t("li",null,[n(s,{to:"/docs/reference/introduction/"},{default:o(()=>[Wt]),_:1})]),t("li",null,[n(s,{to:"/docs/reference/sdk/"},{default:o(()=>[Yt]),_:1})])])])])]),_:1})}}};export{te as default,$t as modularExtension,Zt as title};
@@ -0,0 +1,20 @@
1
+ import{a as i,o as c,b as d,w as s,g as t,e as n,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.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",tabindex:"-1"},[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
+ `)],-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
+ `)],-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
+ `)],-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:
5
+ ? Email: admin@example.com
6
+ ? Password: ********
7
+ `)],-1),j=t("p",null,"After that, you\u2019re all set!",-1),x=t("pre",null,[t("code",null,`Your project has been created at <file-path>/example-project.
8
+
9
+ The configuration can be found in <file-path>/example-project/.env
10
+ `)],-1),P=t("p",null,[e("Once the installation is complete, you can start Directus by navigating to your project folder "),t("em",null,[e("(in this case "),t("code",null,"example-project"),e(")")]),e(" and running:")],-1),I=t("pre",null,[t("code",{class:"language-bash"},`npx directus start
11
+ `)],-1),C=t("p",null,"After that, you will see this message:",-1),A=t("pre",null,[t("code",{class:"language-bash"},`\u2728 Server started at http://localhost:8055
12
+ `)],-1),D=t("h4",{id:"other-options",tabindex:"-1"},[e("Other Options "),t("a",{class:"header-anchor",href:"#other-options"},"#")],-1),S=t("p",null,"When you link other types of SQL to Directus, you may have additional prompts:",-1),N=t("ul",null,[t("li",null,[t("strong",null,"Database Host"),e(" \u2013 IP address for your database.")]),t("li",null,[t("strong",null,"Port"),e(" \u2013 Port number your database is running on.")]),t("li",null,[t("strong",null,"Database Name"),e(" \u2013 Name of your existing database.")]),t("li",null,[t("strong",null,"Database User"),e(" \u2013 Name of existing user in database.")]),t("li",null,[t("strong",null,"Database Password"),e(" \u2013 Password to enter database.")]),t("li",null,[t("strong",null,"Enable SSL"),e(" \u2013 Select "),t("code",null,"Y"),e(" for yes or "),t("code",null,"N"),e(" for no.")]),t("li",null,[t("strong",null,"Root"),e(" \u2013 Provide the root name.")])],-1),T=t("p",null,"Simply configure these according to your project\u2019s needs.",-1),F=t("div",{class:"warning hint"},[t("div",{class:"hint-title"},"Directus seeds your database"),t("p",null,"Directus installs a few dozen tables into the database it is linked to. However, this will not alter the pre-existing data tables.")],-1),q=t("h2",{id:"2.-login-to-app",tabindex:"-1"},[e("2. Login to App "),t("a",{class:"header-anchor",href:"#2.-login-to-app"},"#")],-1),R=t("p",null,"With the server running, you\u2019re now able to login to your new Directus project and start using it.",-1),L=t("p",null,[e("Our start command stated that the server started at port "),t("code",null,"8055"),e(", which means we can navigate to "),t("a",{href:"http://localhost:8055",target:"_blank",rel:"noopener noreferrer"},"http://localhost:8055"),e(" to open Directus in the browser.")],-1),E=t("p",null,"Login using the admin credentials you configured during the installation in Step 1.",-1),M=t("h2",{id:"3.-create-a-collection",tabindex:"-1"},[e("3. Create a Collection "),t("a",{class:"header-anchor",href:"#3.-create-a-collection"},"#")],-1),O=t("p",null,"Once logged in, you\u2019re greeted with the option to create your first Collection:",-1),Q=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/getting-started/quickstart/quickstart-20220217A/empty-state-20220217A.webp",alt:"Directus Empty State"})],-1),W=t("p",null,[e("Follow the prompts and create a Collection. For the sake of this demo, we\u2019ll be calling ours "),t("code",null,"articles"),e(", but feel free to make it your own!")],-1),B={class:"tip hint"},H=t("div",{class:"hint-title"},"More Info on Collections",-1),G=e("To learn more, see our documentation "),U=e("Collections"),V=e("."),z=t("h2",{id:"4.-create-a-field",tabindex:"-1"},[e("4. Create a Field "),t("a",{class:"header-anchor",href:"#4.-create-a-field"},"#")],-1),Y=t("p",null,[e("With the Collection created, it\u2019s time to start adding some Fields. Click the "),t("strong",null,"\u201CCreate Field\u201D"),e(" button, and select "),t("strong",null,"\u201CInput\u201D"),e(":")],-1),J=t("video",{autoplay:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/getting-started/quickstart/quickstart-20220217A/add-field-20220217A.mp4",type:"video/mp4"})],-1),K=t("p",null,[e("We\u2019ll be calling our Field "),t("code",null,"title"),e(". While Directus offers a range of powerful field customization options, we\u2019ll be sticking to the defaults for now. These defaults use the \u201CString\u201D datatype.")],-1),X={class:"tip hint"},Z=t("div",{class:"hint-title"},"More Info on Fields",-1),$=e("To learn more, see our documentation on "),tt=e("Fields"),et=e("."),st=t("h2",{id:"5.-create-an-item",tabindex:"-1"},[e("5. Create an Item "),t("a",{class:"header-anchor",href:"#5.-create-an-item"},"#")],-1),ot=t("p",null,[e("Now that we have a Collection with a Field configured, it\u2019s time to start adding some content. Navigate to the Content Module (top left), and click "),t("span",{mi:"",btn:""},"add"),e(" in the top-right to get started. This will take you to the Create/Edit Item page:")],-1),nt=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/getting-started/quickstart/quickstart-20220217A/create-item-20220217A.webp",alt:"Directus Create Item"})],-1),at=t("p",null,[e("Once you\u2019re happy with your creation, click "),t("span",{mi:"",btn:""},"check"),e(" in the top-right to save your Item to the database.")],-1),it={class:"tip hint"},lt=t("div",{class:"hint-title"},"More Info on Items",-1),rt=e("To learn more, see our documentation on "),ct=e("Items"),dt=e("."),ht=t("h2",{id:"6.-set-role%2Fpublic-permissions",tabindex:"-1"},[e("6. Set Role/Public Permissions "),t("a",{class:"header-anchor",href:"#6.-set-role%2Fpublic-permissions"},"#")],-1),ut=t("p",null,[e("By default, all content entered into Directus is considered private. This means that no data will be returned by the API, unless requested by an authenticated user that has the correct permissions. In order to have the API return our items, we\u2019ll have to setup some permissions. Navigate to "),t("strong",null,[e("Settings Module "),t("span",{mi:"",icon:"",dark:""},"chevron_right"),e(" Roles & Permissions")]),e(".")],-1),pt=t("p",null,[e("Directus ships with a special "),t("strong",null,"\u201CPublic\u201D"),e(" role that controls what data is returned to non-authenticated users. Select the Public Role, find your Collection, and click the icon under the "),t("span",{mi:"",icon:""},"visibility"),e(" icon (read/view permission) to allow the Public Role to read the Items in your Collection.")],-1),_t=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/getting-started/quickstart/quickstart-20220217A/permissions-20220217A.webp",alt:"Directus Permissions"})],-1),mt={class:"tip hint"},gt=t("div",{class:"hint-title"},"More Info on Roles & Permissions",-1),ft=e("Roles & Permissions are extremely powerful and can get pretty in-depth. To learn all about the nuances in setting these up, see "),bt=e("Roles"),yt=e(" & "),wt=e("Permissions"),vt=e("."),kt=t("h2",{id:"7.-connect-to-the-api",tabindex:"-1"},[e("7. Connect to the API "),t("a",{class:"header-anchor",href:"#7.-connect-to-the-api"},"#")],-1),jt=e("Now that your project has some content in it, it\u2019s time to start using this content externally. Data can be accessed in a number of ways, including the REST API, GraphQL, the CLI, or even straight from the database. In this case, we\u2019ll use "),xt=e("the "),Pt=t("code",null,"/items/",-1),It=e(" REST API endpoint"),Ct=e(" to retrieve the item we just created."),At=t("p",null,[e("Use your 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"),e(" to open "),t("a",{href:"http://localhost:8055/items/articles",target:"_blank",rel:"noopener noreferrer"},"http://localhost:8055/items/articles"),e(".")],-1),Dt=t("p",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),St=t("pre",null,[t("code",{class:"language-json"},[t("span",{class:"hljs-punctuation"},"{"),e(`
13
+ `),t("span",{class:"hljs-attr"},'"data"'),t("span",{class:"hljs-punctuation"},":"),e(),t("span",{class:"hljs-punctuation"},"["),e(`
14
+ `),t("span",{class:"hljs-punctuation"},"{"),e(`
15
+ `),t("span",{class:"hljs-attr"},'"id"'),t("span",{class:"hljs-punctuation"},":"),e(),t("span",{class:"hljs-number"},"1"),t("span",{class:"hljs-punctuation"},","),e(`
16
+ `),t("span",{class:"hljs-attr"},'"title"'),t("span",{class:"hljs-punctuation"},":"),e(),t("span",{class:"hljs-string"},'"Hello World!"'),e(`
17
+ `),t("span",{class:"hljs-punctuation"},"}"),e(`
18
+ `),t("span",{class:"hljs-punctuation"},"]"),e(`
19
+ `),t("span",{class:"hljs-punctuation"},"}"),e(`
20
+ `)])],-1),Rt="Quickstart Guide",Lt=!1,Et={name:"quickstart",setup(Nt,{expose:l}){const a={title:"Quickstart Guide",modularExtension:!1};return l({frontmatter:a}),(Tt,Ft)=>{const o=i("router-link"),r=i("docs-wrapper");return c(),d(r,{frontmatter:a},{default:s(()=>[t("div",h,[u,p,_,m,g,f,b,y,w,v,k,j,x,P,I,C,A,D,S,N,T,F,q,R,L,E,M,O,Q,W,t("div",B,[H,t("p",null,[G,n(o,{to:"/docs/app/content/collections"},{default:s(()=>[U]),_:1}),V])]),z,Y,J,K,t("div",X,[Z,t("p",null,[$,n(o,{to:"/docs/getting-started/glossary/#fields"},{default:s(()=>[tt]),_:1}),et])]),st,ot,nt,at,t("div",it,[lt,t("p",null,[rt,n(o,{to:"/docs/app/content/items"},{default:s(()=>[ct]),_:1}),dt])]),ht,ut,pt,_t,t("div",mt,[gt,t("p",null,[ft,n(o,{to:"/docs/reference/system/roles"},{default:s(()=>[bt]),_:1}),yt,n(o,{to:"/docs/reference/system/permissions"},{default:s(()=>[wt]),_:1}),vt])]),kt,t("p",null,[jt,n(o,{to:"/docs/reference/items"},{default:s(()=>[xt,Pt,It]),_:1}),Ct]),At,Dt,St])]),_:1})}}};export{Et as default,Lt as modularExtension,Rt as title};
@@ -1 +1 @@
1
- import{A as S}from"./index.c2e31551.entry.js";function O(c,x){return x.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,x){(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 b=["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",b.concat(y,g));var E=f(b),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,j=O({__proto__:null,default:U},[_.exports]);export{j as r};
1
+ import{z as S}from"./index.ed3b88b9.entry.js";function z(c,x){return x.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,x){(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 b=["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",b.concat(y,g));var E=f(b),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 O=_.exports,j=z({__proto__:null,default:O},[_.exports]);export{j as r};