@directus/app 9.0.0-rc.98 → 9.0.0-rc.99

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 (399) hide show
  1. package/dist/@directus_extensions-sdk.0c1dd463.js +1 -0
  2. package/dist/assets/{active-line.21c7c188.js → active-line.48de29b0.js} +1 -1
  3. package/dist/assets/{activity.7e6818a1.js → activity.6ae38b0f.js} +1 -1
  4. package/dist/assets/{activity.afea7c8e.js → activity.9e4ec41d.js} +1 -1
  5. package/dist/assets/api-config.c76a6613.js +62 -0
  6. package/dist/assets/{api-endpoints.25b9a2cc.js → api-endpoints.2f8fd276.js} +1 -1
  7. package/dist/assets/{api-hooks.28fce97f.js → api-hooks.49e7891b.js} +4 -4
  8. package/dist/assets/{apl.e1cac8e8.js → apl.958d4757.js} +1 -1
  9. package/dist/assets/{app.a092834a.js → app.ab10f7f0.js} +1 -1
  10. package/dist/assets/{application.e4ceecf4.js → application.2534d8a1.js} +1 -1
  11. package/dist/assets/{asciiarmor.56914f72.js → asciiarmor.1f4e8811.js} +1 -1
  12. package/dist/assets/{asn.1.0d72d374.js → asn.1.320671bb.js} +1 -1
  13. package/dist/assets/{assets.7c1c7e13.js → assets.0e687e4a.js} +1 -1
  14. package/dist/assets/{asterisk.217d929c.js → asterisk.67a02b7a.js} +1 -1
  15. package/dist/assets/authentication.ad641e07.js +70 -0
  16. package/dist/assets/{authentication.0de34170.js → authentication.e8cf4d61.js} +1 -1
  17. package/dist/assets/{autorefresh.db241e38.js → autorefresh.824ac9d2.js} +1 -1
  18. package/dist/assets/{aws.216201f6.js → aws.fd25516a.js} +1 -1
  19. package/dist/assets/{backing-directus.712e9b42.js → backing-directus.58d18b0c.js} +1 -1
  20. package/dist/assets/{brainfuck.6d97691a.js → brainfuck.0d6aa963.js} +1 -1
  21. package/dist/assets/{cli.5fd3486c.js → cli.1516127d.js} +1 -1
  22. package/dist/assets/{clike.8b1d1dac.js → clike.55471781.js} +1 -1
  23. package/dist/assets/{clojure.7b24d2df.js → clojure.e88e881b.js} +1 -1
  24. package/dist/assets/{cmake.2dd9d19b.js → cmake.4a9bd2f3.js} +1 -1
  25. package/dist/assets/{cobol.aa3e3b17.js → cobol.ddfaa48e.js} +1 -1
  26. package/dist/assets/{codebase-overview.769ab809.js → codebase-overview.e20f2975.js} +1 -1
  27. package/dist/assets/{coffeescript.e1f17dcd.js → coffeescript.004ec15d.js} +1 -1
  28. package/dist/assets/{collections.52393349.js → collections.14257f29.js} +1 -1
  29. package/dist/assets/{collections.ede965e3.js → collections.bd91de7e.js} +1 -1
  30. package/dist/assets/{collections.3ab1c08a.js → collections.fdbdfe7d.js} +1 -1
  31. package/dist/assets/{command-line-interface.e1beee60.js → command-line-interface.9a2a26c1.js} +1 -1
  32. package/dist/assets/{common-issues.9900baa5.js → common-issues.b34d0ba5.js} +1 -1
  33. package/dist/assets/{commonlisp.126ea5bc.js → commonlisp.f2d9b9b1.js} +1 -1
  34. package/dist/assets/{config-files.04baaabb.js → config-files.ac74fea8.js} +1 -1
  35. package/dist/assets/{crystal.2f74eaf5.js → crystal.97856865.js} +1 -1
  36. package/dist/assets/{css.6f8a654e.js → css.7f807b17.js} +1 -1
  37. package/dist/assets/{cypher.f7b4194f.js → cypher.7cd36030.js} +3 -3
  38. package/dist/assets/{d.b2c44973.js → d.fa2b4528.js} +1 -1
  39. package/dist/assets/{dart.807118ef.js → dart.af44f108.js} +1 -1
  40. package/dist/assets/{databases.39a13c5d.js → databases.2a42b1ba.js} +1 -1
  41. package/dist/assets/{diff.df7c2507.js → diff.33d776fc.js} +1 -1
  42. package/dist/assets/{digitalocean-app-platform.6d350032.js → digitalocean-app-platform.70c21592.js} +1 -1
  43. package/dist/assets/{displays.101c9edb.js → displays.d848b491.js} +1 -1
  44. package/dist/assets/{displays.2c15a911.js → displays.ecc2c613.js} +1 -1
  45. package/dist/assets/{django.31349418.js → django.1965042d.js} +1 -1
  46. package/dist/assets/{docker.0e180ff7.js → docker.6748365e.js} +1 -1
  47. package/dist/assets/{dockerfile.9cf1b5e9.js → dockerfile.f7e82fe7.js} +1 -1
  48. package/dist/assets/{dtd.2eb8046c.js → dtd.7de198c9.js} +1 -1
  49. package/dist/assets/{dylan.4342284d.js → dylan.4e0afffa.js} +1 -1
  50. package/dist/assets/{ebnf.ac110410.js → ebnf.423e92bf.js} +1 -1
  51. package/dist/assets/{ecl.ef1a0830.js → ecl.5ceaf630.js} +1 -1
  52. package/dist/assets/{eiffel.2cdba3dc.js → eiffel.4d7ae0c0.js} +1 -1
  53. package/dist/assets/{elm.1a8ac848.js → elm.0cc8719f.js} +1 -1
  54. package/dist/assets/{email-templates.cb788cb0.js → email-templates.9cecf0b9.js} +1 -1
  55. package/dist/assets/en-au.169355d7.js +1 -0
  56. package/dist/assets/en-gb.0b977da8.js +1 -0
  57. package/dist/assets/en-nz.6296f2b6.js +1 -0
  58. package/dist/assets/environment-variables.a5b5c0aa.js +25 -0
  59. package/dist/assets/{erlang.957b37e4.js → erlang.176bea7d.js} +1 -1
  60. package/dist/assets/{error-codes.606bec58.js → error-codes.db5ba230.js} +1 -1
  61. package/dist/assets/es.c516dd05.js +1 -0
  62. package/dist/assets/{extensions.e55fc936.js → extensions.10d6f6c3.js} +1 -1
  63. package/dist/assets/{extensions.803fb88b.js → extensions.735e74b3.js} +1 -1
  64. package/dist/assets/{factor.c01980f8.js → factor.be42c791.js} +1 -1
  65. package/dist/assets/{fcl.87824263.js → fcl.879030fb.js} +1 -1
  66. package/dist/assets/{field-transforms.aac4af27.js → field-transforms.60165e8c.js} +1 -1
  67. package/dist/assets/{fields.3458f9a0.js → fields.17d2cea0.js} +1 -1
  68. package/dist/assets/{fields.f80c6966.js → fields.3f49dba2.js} +1 -1
  69. package/dist/assets/{fields.c933a3eb.js → fields.4933da97.js} +1 -1
  70. package/dist/assets/{files.cef9529d.js → files.04ffc317.js} +1 -1
  71. package/dist/assets/{files.2458c938.js → files.b8b17303.js} +1 -1
  72. package/dist/assets/{files.d6673170.js → files.f9b3fda9.js} +1 -1
  73. package/dist/assets/{filter-rules.8dda275b.js → filter-rules.780bde9f.js} +2 -2
  74. package/dist/assets/{folders.6224f87b.js → folders.a05410b5.js} +1 -1
  75. package/dist/assets/{forth.51e0131d.js → forth.fb5f114f.js} +1 -1
  76. package/dist/assets/{fortran.ccea4744.js → fortran.ba9b6719.js} +1 -1
  77. package/dist/assets/fr-FR.37e1725b.js +1 -0
  78. package/dist/assets/{gas.5613bf5b.js → gas.1bbed2b2.js} +1 -1
  79. package/dist/assets/{gfm.bc3f0591.js → gfm.149e301f.js} +1 -1
  80. package/dist/assets/{gherkin.963fa577.js → gherkin.7de0d8e2.js} +1 -1
  81. package/dist/assets/{github-ci.00b8f37e.js → github-ci.1aafd624.js} +2 -2
  82. package/dist/assets/{go.b597488d.js → go.7caf0f36.js} +1 -1
  83. package/dist/assets/{groovy.748ae778.js → groovy.607002d9.js} +1 -1
  84. package/dist/assets/haml.504050d1.js +1 -0
  85. package/dist/assets/{handlebars.d230fbb5.js → handlebars.7f84f825.js} +1 -1
  86. package/dist/assets/haskell-literate.e78773ef.js +1 -0
  87. package/dist/assets/{haskell.69e61064.js → haskell.63e1f2d3.js} +1 -1
  88. package/dist/assets/{haxe.a1958409.js → haxe.fca1efc8.js} +1 -1
  89. package/dist/assets/{htmlembedded.77d86e89.js → htmlembedded.1eb21358.js} +1 -1
  90. package/dist/assets/{htmlmixed.d2d262fe.js → htmlmixed.cb1d7158.js} +1 -1
  91. package/dist/assets/{http.0389a281.js → http.28fca87c.js} +1 -1
  92. package/dist/assets/{idl.4073e14b.js → idl.32a8e30b.js} +1 -1
  93. package/dist/assets/iis.fba7e919.js +23 -0
  94. package/dist/assets/{index.34c4ff98.js → index.07865455.js} +1 -1
  95. package/dist/assets/{index.5943c6a2.js → index.0b19be3f.js} +1 -1
  96. package/dist/assets/{index.9021855c.js → index.1010e9a5.js} +1 -1
  97. package/dist/assets/{index.12a41b75.js → index.123a36ac.js} +1 -1
  98. package/dist/assets/{index.d5b3136c.js → index.12744d3d.js} +1 -1
  99. package/dist/assets/{index.adcbf017.js → index.129fb164.js} +1 -1
  100. package/dist/assets/{index.76bf6775.js → index.13149be9.js} +1 -1
  101. package/dist/assets/{index.5d7e4388.js → index.132ba1c4.js} +1 -1
  102. package/dist/assets/{index.a65c23d0.js → index.1380be04.js} +1 -1
  103. package/dist/assets/{index.8f1b058c.js → index.156ad6a0.js} +1 -1
  104. package/dist/assets/{index.60c6f994.js → index.159d3509.js} +1 -1
  105. package/dist/assets/{index.93176038.js → index.1e395c13.js} +1 -1
  106. package/dist/assets/{index.0f421bfb.js → index.1fd08b8f.js} +1 -1
  107. package/dist/assets/{index.f6faa78c.js → index.271fc58d.js} +1 -1
  108. package/dist/assets/{index.03fcf041.js → index.2a965c68.js} +1 -1
  109. package/dist/assets/{index.adde2dbc.js → index.2ecf1365.js} +1 -1
  110. package/dist/assets/{index.13caabe3.js → index.307681c6.js} +1 -1
  111. package/dist/assets/{index.fbb4da88.js → index.32a66f8e.js} +1 -1
  112. package/dist/assets/{index.582262f3.js → index.336d2876.js} +1 -1
  113. package/dist/assets/{index.2ce5ad4e.js → index.36d21aeb.js} +1 -1
  114. package/dist/assets/{index.460c28b2.js → index.39d438a3.js} +1 -1
  115. package/dist/assets/{index.857a444d.js → index.3dfc9f28.js} +1 -1
  116. package/dist/assets/{index.3dbbdda4.js → index.3efbdb40.js} +1 -1
  117. package/dist/assets/{index.52488452.js → index.41239663.js} +1 -1
  118. package/dist/assets/{index.6dfafdb8.js → index.48d93056.js} +1 -1
  119. package/dist/assets/{index.fc96c02d.js → index.4a1a5f7b.js} +1 -1
  120. package/dist/assets/{index.3cc58479.js → index.4da7e0ab.js} +1 -1
  121. package/dist/assets/{index.cbf2ab7b.js → index.5292cb2f.js} +1 -1
  122. package/dist/assets/{index.7d7c94cc.js → index.53d2e106.js} +1 -1
  123. package/dist/assets/{index.b021cacb.js → index.54b89000.js} +1 -1
  124. package/dist/assets/{index.d19dacc2.js → index.5569aba4.js} +1 -1
  125. package/dist/assets/{index.370eb912.js → index.5e9f194d.js} +1 -1
  126. package/dist/assets/{index.86d76d87.js → index.6281d871.js} +1 -1
  127. package/dist/assets/{index.a3619cd6.js → index.634af914.js} +1 -1
  128. package/dist/assets/{index.020eeba9.js → index.63d11508.js} +1 -1
  129. package/dist/assets/{index.f3dac8ae.js → index.671541d9.js} +1 -1
  130. package/dist/assets/{index.afe1580d.js → index.6819c895.js} +1 -1
  131. package/dist/assets/{index.5ddf1c09.js → index.68748c2d.js} +1 -1
  132. package/dist/assets/{index.3886bcc9.js → index.6a792b33.js} +1 -1
  133. package/dist/assets/{index.07e02ffc.js → index.6dd016c8.js} +1 -1
  134. package/dist/assets/{index.26626da8.js → index.71f5e63c.js} +1 -1
  135. package/dist/assets/{index.12160ad1.js → index.734a95e8.js} +1 -1
  136. package/dist/assets/{index.12bc1139.js → index.759611b6.js} +1 -1
  137. package/dist/assets/{index.278f6673.js → index.76d07b62.js} +1 -1
  138. package/dist/assets/{index.dc16b5fc.js → index.7bee8c77.js} +1 -1
  139. package/dist/assets/{index.967091bd.js → index.7c0f84b2.js} +1 -1
  140. package/dist/assets/{index.8d25e37e.js → index.7d228c67.js} +1 -1
  141. package/dist/assets/{index.2bddfec0.js → index.7fbf2f6a.js} +1 -1
  142. package/dist/assets/{index.a8032304.js → index.865af0fe.js} +1 -1
  143. package/dist/assets/{index.d21606d9.js → index.872629ec.js} +1 -1
  144. package/dist/assets/{index.7c109413.js → index.87a15825.js} +1 -1
  145. package/dist/assets/{index.8d30d8ec.js → index.8d3e2c04.js} +1 -1
  146. package/dist/assets/{index.ffdce238.js → index.8e3e39ae.js} +1 -1
  147. package/dist/assets/{index.ca14dcca.js → index.8fac67f3.js} +1 -1
  148. package/dist/assets/{index.9427fe3a.js → index.944ed685.js} +1 -1
  149. package/dist/assets/{index.cdc078f5.js → index.975605c7.js} +1 -1
  150. package/dist/assets/{index.a1fba609.js → index.9bf6dfc7.js} +1 -1
  151. package/dist/assets/{index.a89c6f27.css → index.9f6c6cb3.css} +1 -1
  152. package/dist/assets/{index.cc8365dc.js → index.a1b32348.js} +1 -1
  153. package/dist/assets/{index.e6c63fd8.js → index.a2724a18.js} +1 -1
  154. package/dist/assets/{index.9e6cb9fb.js → index.ab7a9d20.js} +1 -1
  155. package/dist/assets/{index.69d51e36.js → index.ae39c45d.js} +1 -1
  156. package/dist/assets/{index.a5c459a5.js → index.b0239526.js} +2 -2
  157. package/dist/assets/{index.2e10fa0a.js → index.b22d3b87.js} +1 -1
  158. package/dist/assets/{index.b49259cd.js → index.b2ce5853.js} +1 -1
  159. package/dist/assets/{index.8642f0ef.js → index.b3861ec3.js} +1 -1
  160. package/dist/assets/{index.453b8dd4.js → index.ba6582ce.js} +1 -1
  161. package/dist/assets/{index.0cdd93eb.js → index.c16fb6fc.js} +1 -1
  162. package/dist/assets/{index.0c668002.js → index.c2c4a871.js} +1 -1
  163. package/dist/assets/{index.b8f2f91f.js → index.c38b7f79.js} +1 -1
  164. package/dist/assets/{index.dad442a6.js → index.c6b3c631.js} +1 -1
  165. package/dist/assets/{index.1441a301.js → index.c8dd9a32.js} +1 -1
  166. package/dist/assets/{index.9df43656.js → index.d01ff2fc.js} +1 -1
  167. package/dist/assets/index.d07f63e3.css +1 -0
  168. package/dist/assets/{index.10f638cf.js → index.da1f65af.js} +1 -1
  169. package/dist/assets/{index.cc6ac81f.js → index.e0a5d0dd.js} +1 -1
  170. package/dist/assets/{index.c07a0137.js → index.e7b321ba.js} +1 -1
  171. package/dist/assets/{index.a5833a30.js → index.ec71a491.js} +1 -1
  172. package/dist/assets/{index.9fa02ab0.js → index.eee4f224.js} +1 -1
  173. package/dist/assets/{index.75da7150.js → index.f3f4fbd9.js} +1 -1
  174. package/dist/assets/{index.6cf6e65c.js → index.f757af12.js} +1 -1
  175. package/dist/assets/{index.513f493e.js → index.f99b041c.js} +1 -1
  176. package/dist/assets/{index.9b9992c2.js → index.fbfd2bd6.js} +1 -1
  177. package/dist/assets/{index.3beb87d3.js → index.ffd3af80.js} +1 -1
  178. package/dist/assets/{input-rich-text-html.ae77acab.js → input-rich-text-html.e15177a6.js} +9 -9
  179. package/dist/assets/{installation.ca7cfca2.js → installation.c4bff2d4.js} +1 -1
  180. package/dist/assets/{interfaces.f0ecff97.js → interfaces.1e1a05f4.js} +1 -1
  181. package/dist/assets/{interfaces.b4c6f273.js → interfaces.4d9d8da8.js} +1 -1
  182. package/dist/assets/{introduction.56c0c1cd.js → introduction.36187581.js} +1 -1
  183. package/dist/assets/{introduction.dd1bcb44.js → introduction.5bfc6d93.js} +1 -1
  184. package/dist/assets/{introduction.5c4ec6b9.js → introduction.c36fa9ca.js} +1 -1
  185. package/dist/assets/{items.e1d7ba61.js → items.2ec3ef4a.js} +1 -1
  186. package/dist/assets/{items.2ad153eb.js → items.5eb4a489.js} +1 -1
  187. package/dist/assets/{items.9e96b56b.js → items.7db06a6b.js} +1 -1
  188. package/dist/assets/{javascript-hint.9186051b.js → javascript-hint.968a99a5.js} +1 -1
  189. package/dist/assets/{javascript.2f3ede5a.js → javascript.76216d0d.js} +1 -1
  190. package/dist/assets/{jinja2.8d7f6a8b.js → jinja2.9eba4d82.js} +1 -1
  191. package/dist/assets/{jsx.c540510b.js → jsx.2200a77c.js} +1 -1
  192. package/dist/assets/{julia.a47aef56.js → julia.15f73490.js} +1 -1
  193. package/dist/assets/{layouts.37d32d4c.js → layouts.5a85a5bc.js} +1 -1
  194. package/dist/assets/{layouts.bc85bb07.js → layouts.c52bbf71.js} +1 -1
  195. package/dist/assets/{livescript.3fc737e8.js → livescript.e919a245.js} +1 -1
  196. package/dist/assets/{lua.948ce6b7.js → lua.75eda1a9.js} +1 -1
  197. package/dist/assets/{manual.18f4f30d.js → manual.bc0f8432.js} +1 -1
  198. package/dist/assets/{mark-selection.75c4ea7c.js → mark-selection.a99b3033.js} +1 -1
  199. package/dist/assets/{match-highlighter.bdbe0955.js → match-highlighter.668a64ca.js} +1 -1
  200. package/dist/assets/{mathematica.4f5f6aa2.js → mathematica.598d20b5.js} +1 -1
  201. package/dist/assets/{mbox.122aff2c.js → mbox.5b96e107.js} +1 -1
  202. package/dist/assets/{migrating-from-v8.311cd0e1.js → migrating-from-v8.667c19d3.js} +1 -1
  203. package/dist/assets/{migrations.fb0c9784.js → migrations.33fd8fc8.js} +1 -1
  204. package/dist/assets/{mirc.a72bdc8a.js → mirc.90d37912.js} +1 -1
  205. package/dist/assets/{mllike.eb583c07.js → mllike.137d1b89.js} +1 -1
  206. package/dist/assets/{modelica.f3e06d95.js → modelica.bd73920d.js} +1 -1
  207. package/dist/assets/{modules.7140afbb.js → modules.17def569.js} +1 -1
  208. package/dist/assets/{modules.8f34db3e.js → modules.43892717.js} +1 -1
  209. package/dist/assets/{mscgen.a5bf61ad.js → mscgen.5b4ab425.js} +1 -1
  210. package/dist/assets/{multiplex.796857c0.js → multiplex.87dad2d7.js} +1 -1
  211. package/dist/assets/{mumps.0e26badd.js → mumps.61c3783e.js} +1 -1
  212. package/dist/assets/{nginx.d228fa16.js → nginx.655bc186.js} +1 -1
  213. package/dist/assets/{nsis.7f6a0f90.js → nsis.fdad0c07.js} +1 -1
  214. package/dist/assets/{ntriples.994511c8.js → ntriples.97729057.js} +1 -1
  215. package/dist/assets/{octave.32e47905.js → octave.f73b18ac.js} +1 -1
  216. package/dist/assets/{overlay.8c05baaa.js → overlay.7f1c5fa5.js} +1 -1
  217. package/dist/assets/{oz.742a2172.js → oz.809f2a14.js} +1 -1
  218. package/dist/assets/{pascal.1609d5f5.js → pascal.f8cd95cf.js} +1 -1
  219. package/dist/assets/{pegjs.5173241b.js → pegjs.5dfc390d.js} +1 -1
  220. package/dist/assets/{perl.229a0cce.js → perl.6b530f7e.js} +1 -1
  221. package/dist/assets/{permissions.144d3fdf.js → permissions.1cc1e9ac.js} +1 -1
  222. package/dist/assets/{permissions.87246e2c.js → permissions.5186b062.js} +1 -1
  223. package/dist/assets/{permissions.1d7c8608.js → permissions.f9121dc8.js} +1 -1
  224. package/dist/assets/{php.5aaf45dc.js → php.328211b9.js} +1 -1
  225. package/dist/assets/{pig.59bb21b5.js → pig.8c9bf1f9.js} +1 -1
  226. package/dist/assets/{plesk.73a68904.js → plesk.68b64f87.js} +2 -2
  227. package/dist/assets/{powershell.60297f1d.js → powershell.015ab379.js} +1 -1
  228. package/dist/assets/{presets.af59754e.js → presets.83ef1429.js} +1 -1
  229. package/dist/assets/{presets.c061427e.js → presets.ac89e285.js} +1 -1
  230. package/dist/assets/{projects.767db627.js → projects.086e4104.js} +1 -1
  231. package/dist/assets/{projects.ec4144c5.js → projects.54a55899.js} +1 -1
  232. package/dist/assets/{properties.22ba7b4b.js → properties.882f6a5f.js} +1 -1
  233. package/dist/assets/{protobuf.85730256.js → protobuf.8dfcce9b.js} +1 -1
  234. package/dist/assets/{pug.70f01632.js → pug.5b875e17.js} +1 -1
  235. package/dist/assets/{puppet.a64ec0ec.js → puppet.5aa1fc3a.js} +1 -1
  236. package/dist/assets/{python.fe50fda4.js → python.67462152.js} +1 -1
  237. package/dist/assets/{q.88cb2b8c.js → q.28cbbad3.js} +1 -1
  238. package/dist/assets/{query.699b00aa.js → query.eaa960f0.js} +1 -1
  239. package/dist/assets/{quickstart.504e6d54.js → quickstart.39d64eea.js} +1 -1
  240. package/dist/assets/{r.59023feb.js → r.fdf280db.js} +1 -1
  241. package/dist/assets/{relations.5d7fec12.js → relations.30bf1e5e.js} +1 -1
  242. package/dist/assets/{relationships.850eb59c.js → relationships.8c5c9d45.js} +1 -1
  243. package/dist/assets/{revisions.edb861a6.js → revisions.78c66006.js} +1 -1
  244. package/dist/assets/{revisions.c65244b7.js → revisions.8430c29c.js} +1 -1
  245. package/dist/assets/ro-RO.5d125b41.js +1 -0
  246. package/dist/assets/{roles.d176bda2.js → roles.a5d56e09.js} +1 -1
  247. package/dist/assets/{roles.31bb987f.js → roles.ae48ac62.js} +1 -1
  248. package/dist/assets/{roles.be39bb88.js → roles.b691aabb.js} +1 -1
  249. package/dist/assets/{rpm.5b354114.js → rpm.3b8f7e29.js} +1 -1
  250. package/dist/assets/rst.528314cf.js +1 -0
  251. package/dist/assets/{ruby.fbe69f10.js → ruby.c4d5f740.js} +1 -1
  252. package/dist/assets/{running-locally.f7f27b40.js → running-locally.6bd2f854.js} +1 -1
  253. package/dist/assets/{rust.d5f860d4.js → rust.409632ee.js} +1 -1
  254. package/dist/assets/{sas.5078cd09.js → sas.47cbda6d.js} +1 -1
  255. package/dist/assets/{sass.ad94908f.js → sass.a244c156.js} +1 -1
  256. package/dist/assets/{scheme.62ef3aac.js → scheme.163a4a3b.js} +1 -1
  257. package/dist/assets/{sdk.1fa5df01.js → sdk.c46fe226.js} +1 -1
  258. package/dist/assets/{server.517326b4.js → server.b7e67b66.js} +1 -1
  259. package/dist/assets/{settings.80fdd488.js → settings.076e3b15.js} +1 -1
  260. package/dist/assets/{shell.21000e97.js → shell.6d60921a.js} +1 -1
  261. package/dist/assets/{show-hint.4e2adb57.js → show-hint.e595bcf5.js} +1 -1
  262. package/dist/assets/{sieve.8235bc52.js → sieve.c618d5d5.js} +1 -1
  263. package/dist/assets/{simple.c600ff81.js → simple.b69582f5.js} +1 -1
  264. package/dist/assets/{slim.b09565ba.js → slim.daebda4a.js} +1 -1
  265. package/dist/assets/{smalltalk.d1bdef54.js → smalltalk.70889ef5.js} +1 -1
  266. package/dist/assets/{smarty.68c55065.js → smarty.325ff529.js} +1 -1
  267. package/dist/assets/{solr.32afafb4.js → solr.bb397dc6.js} +1 -1
  268. package/dist/assets/{soy.71a94bd3.js → soy.1584d1b4.js} +1 -1
  269. package/dist/assets/{sparql.c13a6abd.js → sparql.9bd63ffb.js} +1 -1
  270. package/dist/assets/{spreadsheet.f06b861c.js → spreadsheet.bd23b833.js} +1 -1
  271. package/dist/assets/{sql.1622b7a0.js → sql.ed54c85d.js} +1 -1
  272. package/dist/assets/sr-CS.1840c0db.js +1 -0
  273. package/dist/assets/{stex.2997e8d4.js → stex.35f42f0e.js} +1 -1
  274. package/dist/assets/{styles.f321c37a.js → styles.8f31dcd9.js} +1 -1
  275. package/dist/assets/{stylus.09700176.js → stylus.5c8637e4.js} +1 -1
  276. package/dist/assets/{support.fb5b37c6.js → support.046994af.js} +1 -1
  277. package/dist/assets/{swift.ac31530b.js → swift.6e697047.js} +1 -1
  278. package/dist/assets/{tcl.3dcc845d.js → tcl.6462ea3a.js} +1 -1
  279. package/dist/assets/{textile.40aa3a77.js → textile.b5cd484d.js} +1 -1
  280. package/dist/assets/{tiddlywiki.bc050afc.js → tiddlywiki.b1e435a4.js} +1 -1
  281. package/dist/assets/{tiki.aa5136d5.js → tiki.4013883e.js} +1 -1
  282. package/dist/assets/{toml.7d0d7ed9.js → toml.d8214748.js} +1 -1
  283. package/dist/assets/{tornado.5818c716.js → tornado.20d8d573.js} +1 -1
  284. package/dist/assets/{transition-bounce.57b56dd5.js → transition-bounce.52382bc3.js} +1 -1
  285. package/dist/assets/{transition-dialog.239bd9f5.js → transition-dialog.5f5e2d17.js} +1 -1
  286. package/dist/assets/{transition-expand.15de075e.js → transition-expand.84ad1aa8.js} +1 -1
  287. package/dist/assets/{translations.067fabb9.js → translations.8b18280d.js} +1 -1
  288. package/dist/assets/{translations.a62970f2.js → translations.d6de3905.js} +1 -1
  289. package/dist/assets/{troff.444d4397.js → troff.72228b7a.js} +1 -1
  290. package/dist/assets/{ttcn-cfg.0a78bb0d.js → ttcn-cfg.f96a99f0.js} +1 -1
  291. package/dist/assets/{ttcn.112b0d67.js → ttcn.0e972000.js} +1 -1
  292. package/dist/assets/{turtle.4816436c.js → turtle.8ab64def.js} +1 -1
  293. package/dist/assets/{twig.d9de9f9a.js → twig.7589b410.js} +1 -1
  294. package/dist/assets/{types.78caa1da.js → types.48124f27.js} +1 -1
  295. package/dist/assets/{ubuntu.78911058.js → ubuntu.36ee13da.js} +1 -1
  296. package/dist/assets/{use-sync.25413196.js → use-sync.fa2fe3b0.js} +1 -1
  297. package/dist/assets/{users.aded52e8.js → users.adf2a2c8.js} +1 -1
  298. package/dist/assets/{users.b66610cf.js → users.d2e45508.js} +1 -1
  299. package/dist/assets/{users.fdd31e5b.js → users.d8f130a3.js} +1 -1
  300. package/dist/assets/{utilities.4cd9b9f2.js → utilities.4d891c04.js} +1 -1
  301. package/dist/assets/{v-avatar.7672b4c4.js → v-avatar.00e9b8eb.js} +1 -1
  302. package/dist/assets/{v-badge.c90c82e6.js → v-badge.7fc3bab4.js} +1 -1
  303. package/dist/assets/{v-breadcrumb.b77e4f18.js → v-breadcrumb.a2a2f370.js} +1 -1
  304. package/dist/assets/{v-button.6f71192d.js → v-button.36e765a2.js} +1 -1
  305. package/dist/assets/{v-card-actions.f7038c5a.js → v-card-actions.12455b5d.js} +1 -1
  306. package/dist/assets/{v-card-subtitle.64d51a7f.js → v-card-subtitle.b7280bd9.js} +2 -2
  307. package/dist/assets/{v-card-text.18cb0f11.js → v-card-text.095779dd.js} +2 -2
  308. package/dist/assets/v-card-title.78e39c82.js +4 -0
  309. package/dist/assets/{v-card.a3d24ca4.js → v-card.e9191679.js} +1 -1
  310. package/dist/assets/{v-checkbox.2a883e5d.js → v-checkbox.f755b3db.js} +1 -1
  311. package/dist/assets/{v-chip.9a1d06bd.js → v-chip.5f8fdbe9.js} +1 -1
  312. package/dist/assets/{v-detail.08081d02.js → v-detail.70d83e7f.js} +1 -1
  313. package/dist/assets/{v-dialog.429d7b8a.js → v-dialog.5e7fff0c.js} +2 -2
  314. package/dist/assets/{v-divider.d65da562.js → v-divider.9db45406.js} +2 -2
  315. package/dist/assets/{v-drawer.c3209884.js → v-drawer.9b03749d.js} +1 -1
  316. package/dist/assets/{v-error.e5cdff60.js → v-error.fb66a9e6.js} +2 -2
  317. package/dist/assets/{v-fancy-select.5f18b1f3.js → v-fancy-select.b54085b1.js} +1 -1
  318. package/dist/assets/{v-field-select.32fb1d44.js → v-field-select.dd25033c.js} +2 -2
  319. package/dist/assets/{v-field-template.929a86e7.js → v-field-template.9e342040.js} +1 -1
  320. package/dist/assets/{v-form.4f15ff0f.js → v-form.e08a28c3.js} +2 -2
  321. package/dist/assets/{v-hover.2765134e.js → v-hover.a44a3be2.js} +1 -1
  322. package/dist/assets/{v-icon.0f49dcdf.js → v-icon.4709fb88.js} +1 -1
  323. package/dist/assets/{v-info.b1cb42be.js → v-info.73d1c44b.js} +2 -2
  324. package/dist/assets/{v-input.8c2d8d91.js → v-input.fda37db3.js} +1 -1
  325. package/dist/assets/{v-item-group.06ee487a.js → v-item-group.76391fb0.js} +1 -1
  326. package/dist/assets/{v-item.db377719.js → v-item.38e2a78e.js} +1 -1
  327. package/dist/assets/{v-list-group.c058dd0e.js → v-list-group.e39085f1.js} +2 -2
  328. package/dist/assets/{v-list-item-content.fb662398.js → v-list-item-content.79e3ccea.js} +1 -1
  329. package/dist/assets/{v-list-item-hint.b3e2809b.js → v-list-item-hint.b72017df.js} +1 -1
  330. package/dist/assets/{v-list-item-icon.7c917677.js → v-list-item-icon.a4d86111.js} +1 -1
  331. package/dist/assets/{v-list-item.4062ea0e.js → v-list-item.aeb5be7e.js} +1 -1
  332. package/dist/assets/{v-list.52d7c7ae.js → v-list.f09d5055.js} +1 -1
  333. package/dist/assets/{v-menu.78d16370.js → v-menu.672ad2ec.js} +1 -1
  334. package/dist/assets/{v-notice.3c4dcb0c.js → v-notice.ca244793.js} +2 -2
  335. package/dist/assets/{v-overlay.9ee2a4ea.js → v-overlay.b2e5ff6e.js} +1 -1
  336. package/dist/assets/{v-pagination.1bcaff37.js → v-pagination.dc840ce8.js} +1 -1
  337. package/dist/assets/{v-progress-circular.b1271d61.js → v-progress-circular.822f61bb.js} +2 -2
  338. package/dist/assets/{v-progress-linear.40057ac3.js → v-progress-linear.33cf976d.js} +1 -1
  339. package/dist/assets/{v-radio.9ce87d06.js → v-radio.1aa97b7b.js} +1 -1
  340. package/dist/assets/{v-select.ad82a076.js → v-select.27ac4bef.js} +1 -1
  341. package/dist/assets/{v-sheet.5acc0a85.js → v-sheet.c6ba4912.js} +1 -1
  342. package/dist/assets/{v-skeleton-loader.c5b2acac.js → v-skeleton-loader.52915dd8.js} +1 -1
  343. package/dist/assets/{v-slider.6fe18dea.js → v-slider.b989ae59.js} +1 -1
  344. package/dist/assets/{v-switch.3839f607.js → v-switch.de111eb9.js} +1 -1
  345. package/dist/assets/{v-tab-item.2ab69292.js → v-tab-item.de7c0a28.js} +1 -1
  346. package/dist/assets/{v-tab.c4390cdb.js → v-tab.40afffbf.js} +1 -1
  347. package/dist/assets/{v-table.fc66e91c.js → v-table.9a5b33ab.js} +1 -1
  348. package/dist/assets/{v-tabs-items.23a4d028.js → v-tabs-items.15506baf.js} +1 -1
  349. package/dist/assets/{v-tabs.8cb6f20c.js → v-tabs.c9489007.js} +1 -1
  350. package/dist/assets/{v-text-overflow.674dc510.js → v-text-overflow.92c20f66.js} +1 -1
  351. package/dist/assets/{v-textarea.02bee531.js → v-textarea.4cced1c0.js} +2 -2
  352. package/dist/assets/{v-upload.685df91f.js → v-upload.ffe73a75.js} +1 -1
  353. package/dist/assets/{vb.4da8219a.js → vb.86e493cb.js} +1 -1
  354. package/dist/assets/{vbscript.b340075d.js → vbscript.74f96813.js} +1 -1
  355. package/dist/assets/{velocity.64e51bc5.js → velocity.a679c97c.js} +1 -1
  356. package/dist/assets/vendor.a626ab9c.js +2039 -0
  357. package/dist/assets/vendor.fe7856f0.css +1 -0
  358. package/dist/assets/{verilog.1bc5f3a3.js → verilog.e437b30d.js} +1 -1
  359. package/dist/assets/{vhdl.3c2ba104.js → vhdl.1c239e80.js} +1 -1
  360. package/dist/assets/{vue.fa209324.js → vue.b668d00e.js} +1 -1
  361. package/dist/assets/{wast.54b48569.js → wast.82d9b15b.js} +1 -1
  362. package/dist/assets/{webhooks.4f7eaa96.js → webhooks.439c510a.js} +1 -1
  363. package/dist/assets/{webhooks.e51fba7a.js → webhooks.4bdd0741.js} +1 -1
  364. package/dist/assets/{webidl.2374e180.js → webidl.5aceeff1.js} +1 -1
  365. package/dist/assets/{xquery.750a7cd1.js → xquery.900a45f6.js} +1 -1
  366. package/dist/assets/{yacas.6eba3f7b.js → yacas.56dd7cb2.js} +1 -1
  367. package/dist/assets/yaml-frontmatter.bdb5ae8b.js +1 -0
  368. package/dist/assets/{yaml.622de393.js → yaml.d877d25f.js} +1 -1
  369. package/dist/assets/{z80.f493b48f.js → z80.807d7c5a.js} +1 -1
  370. package/dist/index.514c2a9a.js +48 -0
  371. package/dist/index.html +5 -5
  372. package/dist/vue-i18n.c5bba31b.js +1 -0
  373. package/dist/vue-router.ba0fd454.js +1 -0
  374. package/dist/vue.010be4a3.js +1 -0
  375. package/package.json +17 -15
  376. package/dist/@directus_extensions-sdk.caa1292f.js +0 -1
  377. package/dist/assets/api-config.d4a334b4.js +0 -53
  378. package/dist/assets/authentication.2962910f.js +0 -54
  379. package/dist/assets/en-au.175fcb2b.js +0 -1
  380. package/dist/assets/en-gb.018f9a21.js +0 -1
  381. package/dist/assets/en-nz.2f0f7e5c.js +0 -1
  382. package/dist/assets/environment-variables.41ac3cc1.js +0 -25
  383. package/dist/assets/es.18d3cc7b.js +0 -1
  384. package/dist/assets/fr-FR.13498131.js +0 -1
  385. package/dist/assets/haml.071df27c.js +0 -1
  386. package/dist/assets/haskell-literate.d4663d82.js +0 -1
  387. package/dist/assets/iis.8d5a89ca.js +0 -23
  388. package/dist/assets/index.3339c532.css +0 -1
  389. package/dist/assets/ro-RO.381b685b.js +0 -1
  390. package/dist/assets/rst.dab09e05.js +0 -1
  391. package/dist/assets/sr-CS.f7a42011.js +0 -1
  392. package/dist/assets/v-card-title.37498457.js +0 -4
  393. package/dist/assets/vendor.62143b15.js +0 -1582
  394. package/dist/assets/vendor.de5758fd.css +0 -1
  395. package/dist/assets/yaml-frontmatter.f29f4a8c.js +0 -1
  396. package/dist/index.9cda602b.js +0 -48
  397. package/dist/vue-i18n.12eba70a.js +0 -1
  398. package/dist/vue-router.72dfb5ae.js +0 -1
  399. package/dist/vue.c17340c4.js +0 -1
@@ -1 +1 @@
1
- import{r as a,p as l,q as d,w as o,B as e,t as n,P as t}from"./vendor.62143b15.js";const u={class:"markdown-body"},p=e("blockquote",null,[e("p",null,[t("A Project is a complete instance of Directus. Each project represents a "),e("strong",null,"Database"),t(", but also encapsulates a config file, asset storage, and any custom extensions.")])],-1),h=t("Projects are the highest level of structure in Directus. While there are many customizable facets to a Project, you can essentially think of them as individual "),g=t("Databases"),_=t("."),m=e("h4",{id:"relevant-guides"},[t("Relevant Guides "),e("a",{class:"header-anchor",href:"#relevant-guides"},"#")],-1),f=t("Creating a Project"),j=t("Configuring a Project"),v=t("Adjusting Project Settings"),y=t("Upgrading a Project"),P=t("Backing-up a Project"),b=t("Migrating a Project"),w=t("Deleting a Project"),D=e("h2",{id:"environments"},[t("Environments "),e("a",{class:"header-anchor",href:"#environments"},"#")],-1),k=e("p",null,"This compartmentalized approach means you can also create different Environments (eg: Dev, Staging, Prod) simply by creating additional Project instances. In short, there is no difference between a Project and an Environment.",-1),x=e("h4",{id:"relevant-guides-2"},[t("Relevant Guides "),e("a",{class:"header-anchor",href:"#relevant-guides-2"},"#")],-1),C=t("Migrating a Project"),B=e("h2",{id:"multitenancy"},[t("Multitenancy "),e("a",{class:"header-anchor",href:"#multitenancy"},"#")],-1),E=e("p",null,"Previous versions of Directus allowed managing multiple databases within a single installation. However this because overly complex in the scoping of routes, API endpoints, and custom code. In Directus 9+, to create multitenancy you have several options:",-1),I=e("ul",null,[e("li",null,[e("strong",null,"Project Scoping"),t(" \u2014 Creating a super-admin layer that provisions new tenant projects has been made easier by the Cloud-native model of Directus 9+. This method involves developing custom code that can dynamically spin up/down projects, but is also the most flexible, supporting scoped extensions and differentiated project settings.")]),e("li",null,[e("strong",null,"Role Scoping"),t(" \u2014 In this method, you create one Role per tenant, and configure their permissions to properly scope them within a single project. This direction allows for tenants to share a single schema using "),e("em",null,"item"),t(" scoped permissions, or different schemas by using "),e("em",null,"collection"),t(" scoped permissions.")])],-1),M={setup(R,{expose:r}){const i={title:"Projects",modularExtension:!1};return r({frontmatter:i}),(S,T)=>{const s=a("router-link"),c=a("DocsWrapper");return l(),d(c,{frontmatter:i},{default:o(()=>[e("div",u,[p,e("p",null,[h,n(s,{to:"/docsconcepts/databases/"},{default:o(()=>[g]),_:1}),_]),m,e("ul",null,[e("li",null,[n(s,{to:"/docs/guides/projects/#creating-a-project"},{default:o(()=>[f]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#configuring-a-project"},{default:o(()=>[j]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#adjusting-project-settings"},{default:o(()=>[v]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#upgrading-a-project"},{default:o(()=>[y]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#backing-up-a-project"},{default:o(()=>[P]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#migrating-a-project"},{default:o(()=>[b]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#configuring-a-project"},{default:o(()=>[w]),_:1})])]),D,k,x,e("ul",null,[e("li",null,[n(s,{to:"/docs/guides/projects/#migrating-a-project"},{default:o(()=>[C]),_:1})])]),B,E,I])]),_:1})}}};export{M as default};
1
+ import{r as i,p as l,q as d,w as o,B as e,t as n,P as t}from"./vendor.a626ab9c.js";const u={class:"markdown-body"},p=e("blockquote",null,[e("p",null,[t("A Project is a complete instance of Directus. Each project represents a "),e("strong",null,"Database"),t(", but also encapsulates a config file, asset storage, and any custom extensions.")])],-1),h=t("Projects are the highest level of structure in Directus. While there are many customizable facets to a Project, you can essentially think of them as individual "),g=t("Databases"),_=t("."),m=e("h4",{id:"relevant-guides"},[t("Relevant Guides "),e("a",{class:"header-anchor",href:"#relevant-guides"},"#")],-1),f=t("Creating a Project"),j=t("Configuring a Project"),v=t("Adjusting Project Settings"),y=t("Upgrading a Project"),P=t("Backing-up a Project"),b=t("Migrating a Project"),w=t("Deleting a Project"),D=e("h2",{id:"environments"},[t("Environments "),e("a",{class:"header-anchor",href:"#environments"},"#")],-1),k=e("p",null,"This compartmentalized approach means you can also create different Environments (eg: Dev, Staging, Prod) simply by creating additional Project instances. In short, there is no difference between a Project and an Environment.",-1),x=e("h4",{id:"relevant-guides-2"},[t("Relevant Guides "),e("a",{class:"header-anchor",href:"#relevant-guides-2"},"#")],-1),C=t("Migrating a Project"),B=e("h2",{id:"multitenancy"},[t("Multitenancy "),e("a",{class:"header-anchor",href:"#multitenancy"},"#")],-1),E=e("p",null,"Previous versions of Directus allowed managing multiple databases within a single installation. However this because overly complex in the scoping of routes, API endpoints, and custom code. In Directus 9+, to create multitenancy you have several options:",-1),I=e("ul",null,[e("li",null,[e("strong",null,"Project Scoping"),t(" \u2014 Creating a super-admin layer that provisions new tenant projects has been made easier by the Cloud-native model of Directus 9+. This method involves developing custom code that can dynamically spin up/down projects, but is also the most flexible, supporting scoped extensions and differentiated project settings.")]),e("li",null,[e("strong",null,"Role Scoping"),t(" \u2014 In this method, you create one Role per tenant, and configure their permissions to properly scope them within a single project. This direction allows for tenants to share a single schema using "),e("em",null,"item"),t(" scoped permissions, or different schemas by using "),e("em",null,"collection"),t(" scoped permissions.")])],-1),M={setup(R,{expose:c}){const a={title:"Projects",modularExtension:!1};return c({frontmatter:a}),(S,T)=>{const s=i("router-link"),r=i("DocsWrapper");return l(),d(r,{frontmatter:a},{default:o(()=>[e("div",u,[p,e("p",null,[h,n(s,{to:"/docsconcepts/databases/"},{default:o(()=>[g]),_:1}),_]),m,e("ul",null,[e("li",null,[n(s,{to:"/docs/guides/projects/#creating-a-project"},{default:o(()=>[f]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#configuring-a-project"},{default:o(()=>[j]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#adjusting-project-settings"},{default:o(()=>[v]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#upgrading-a-project"},{default:o(()=>[y]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#backing-up-a-project"},{default:o(()=>[P]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#migrating-a-project"},{default:o(()=>[b]),_:1})]),e("li",null,[n(s,{to:"/docs/guides/projects/#configuring-a-project"},{default:o(()=>[w]),_:1})])]),D,k,x,e("ul",null,[e("li",null,[n(s,{to:"/docs/guides/projects/#migrating-a-project"},{default:o(()=>[C]),_:1})])]),B,E,I])]),_:1})}}};export{M as default};
@@ -1 +1 @@
1
- import{bA as p}from"./vendor.62143b15.js";function c(t,f){return f.forEach(function(n){Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in t)){var e=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,e.get?e:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(t)}var l={exports:{}};(function(t,f){(function(n){n(p.exports)})(function(n){n.defineMode("properties",function(){return{token:function(i,e){var r=i.sol()||e.afterSection,u=i.eol();if(e.afterSection=!1,r&&(e.nextMultiline?(e.inMultiline=!0,e.nextMultiline=!1):e.position="def"),u&&!e.nextMultiline&&(e.inMultiline=!1,e.position="def"),r)for(;i.eatSpace(););var o=i.next();return r&&(o==="#"||o==="!"||o===";")?(e.position="comment",i.skipToEnd(),"comment"):r&&o==="["?(e.afterSection=!0,i.skipTo("]"),i.eat("]"),"header"):o==="="||o===":"?(e.position="quote",null):(o==="\\"&&e.position==="quote"&&i.eol()&&(e.nextMultiline=!0),e.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),n.defineMIME("text/x-properties","properties"),n.defineMIME("text/x-ini","properties")})})();var s=l.exports,d=Object.freeze(c({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[l.exports]));export{d as p};
1
+ import{bE as p}from"./vendor.a626ab9c.js";function c(t,f){return f.forEach(function(n){Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in t)){var e=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,e.get?e:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(t)}var l={exports:{}};(function(t,f){(function(n){n(p.exports)})(function(n){n.defineMode("properties",function(){return{token:function(i,e){var r=i.sol()||e.afterSection,u=i.eol();if(e.afterSection=!1,r&&(e.nextMultiline?(e.inMultiline=!0,e.nextMultiline=!1):e.position="def"),u&&!e.nextMultiline&&(e.inMultiline=!1,e.position="def"),r)for(;i.eatSpace(););var o=i.next();return r&&(o==="#"||o==="!"||o===";")?(e.position="comment",i.skipToEnd(),"comment"):r&&o==="["?(e.afterSection=!0,i.skipTo("]"),i.eat("]"),"header"):o==="="||o===":"?(e.position="quote",null):(o==="\\"&&e.position==="quote"&&i.eol()&&(e.nextMultiline=!0),e.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),n.defineMIME("text/x-properties","properties"),n.defineMIME("text/x-ini","properties")})})();var s=l.exports,a=Object.freeze(c({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[l.exports]));export{a as p};
@@ -1 +1 @@
1
- import{bA as p}from"./vendor.62143b15.js";function d(o,f){return f.forEach(function(t){Object.keys(t).forEach(function(r){if(r!=="default"&&!(r in o)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})}),Object.freeze(o)}var i={exports:{}};(function(o,f){(function(t){t(p.exports)})(function(t){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],u=r(n);t.registerHelper("hintWords","protobuf",n);var a=new RegExp("^[_A-Za-z\xA1-\uFFFF][_A-Za-z0-9\xA1-\uFFFF]*");function c(e){return e.eatSpace()?null:e.match("//")?(e.skipToEnd(),"comment"):e.match(/^[0-9\.+-]/,!1)&&(e.match(/^[+-]?0x[0-9a-fA-F]+/)||e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))?"number":e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(u)?"keyword":e.match(a)?"variable":(e.next(),null)}t.defineMode("protobuf",function(){return{token:c,fold:"brace"}}),t.defineMIME("text/x-protobuf","protobuf")})})();var b=i.exports,l=Object.freeze(d({__proto__:null,[Symbol.toStringTag]:"Module",default:b},[i.exports]));export{l as p};
1
+ import{bE as p}from"./vendor.a626ab9c.js";function d(o,f){return f.forEach(function(t){Object.keys(t).forEach(function(r){if(r!=="default"&&!(r in o)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})}),Object.freeze(o)}var i={exports:{}};(function(o,f){(function(t){t(p.exports)})(function(t){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],u=r(n);t.registerHelper("hintWords","protobuf",n);var a=new RegExp("^[_A-Za-z\xA1-\uFFFF][_A-Za-z0-9\xA1-\uFFFF]*");function c(e){return e.eatSpace()?null:e.match("//")?(e.skipToEnd(),"comment"):e.match(/^[0-9\.+-]/,!1)&&(e.match(/^[+-]?0x[0-9a-fA-F]+/)||e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))?"number":e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(u)?"keyword":e.match(a)?"variable":(e.next(),null)}t.defineMode("protobuf",function(){return{token:c,fold:"brace"}}),t.defineMIME("text/x-protobuf","protobuf")})})();var b=i.exports,l=Object.freeze(d({__proto__:null,[Symbol.toStringTag]:"Module",default:b},[i.exports]));export{l as p};
@@ -1 +1 @@
1
- import{bA as un}from"./vendor.62143b15.js";import{a as cn}from"./javascript.2f3ede5a.js";import{a as fn}from"./css.6f8a654e.js";import{a as ln}from"./htmlmixed.d2d262fe.js";function an(f,o){return o.forEach(function(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(f)}var v={exports:{}};(function(f,o){(function(t){t(un.exports,cn.exports,fn.exports,ln.exports)})(function(t){t.defineMode("pug",function(u){var r="keyword",g="meta",j="builtin",b="qualifier",p={"{":"}","(":")","[":"]"},c=t.getMode(u,"javascript");function l(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=t.startState(c),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}l.prototype.copy=function(){var n=new l;return n.javaScriptLine=this.javaScriptLine,n.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,n.javaScriptArguments=this.javaScriptArguments,n.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,n.isInterpolating=this.isInterpolating,n.interpolationNesting=this.interpolationNesting,n.jsState=t.copyState(c,this.jsState),n.innerMode=this.innerMode,this.innerMode&&this.innerState&&(n.innerState=t.copyState(this.innerMode,this.innerState)),n.restOfLine=this.restOfLine,n.isIncludeFiltered=this.isIncludeFiltered,n.isEach=this.isEach,n.lastTag=this.lastTag,n.scriptType=this.scriptType,n.isAttrs=this.isAttrs,n.attrsNest=this.attrsNest.slice(),n.inAttributeName=this.inAttributeName,n.attributeIsType=this.attributeIsType,n.attrValue=this.attrValue,n.indentOf=this.indentOf,n.indentToken=this.indentToken,n.innerModeForLine=this.innerModeForLine,n};function L(n,i){if(n.sol()&&(i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1),i.javaScriptLine){if(i.javaScriptLineExcludesColon&&n.peek()===":"){i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1;return}var e=c.token(n,i.jsState);return n.eol()&&(i.javaScriptLine=!1),e||!0}}function x(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 y(n){if(n.match(/^(?:doctype) *([^\n]+)?/))return g}function h(n,i){if(n.match("#{"))return i.isInterpolating=!0,i.interpolationNesting=0,"punctuation"}function T(n,i){if(i.isInterpolating){if(n.peek()==="}"){if(i.interpolationNesting--,i.interpolationNesting<0)return n.next(),i.isInterpolating=!1,"punctuation"}else n.peek()==="{"&&i.interpolationNesting++;return c.token(n,i.jsState)||!0}}function O(n,i){if(n.match(/^case\b/))return i.javaScriptLine=!0,r}function k(n,i){if(n.match(/^when\b/))return i.javaScriptLine=!0,i.javaScriptLineExcludesColon=!0,r}function N(n){if(n.match(/^default\b/))return r}function w(n,i){if(n.match(/^extends?\b/))return i.restOfLine="string",r}function I(n,i){if(n.match(/^append\b/))return i.restOfLine="variable",r}function E(n,i){if(n.match(/^prepend\b/))return i.restOfLine="variable",r}function F(n,i){if(n.match(/^block\b *(?:(prepend|append)\b)?/))return i.restOfLine="variable",r}function D(n,i){if(n.match(/^include\b/))return i.restOfLine="string",r}function M(n,i){if(n.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&n.match("include"))return i.isIncludeFiltered=!0,r}function C(n,i){if(i.isIncludeFiltered){var e=s(n,i);return i.isIncludeFiltered=!1,i.restOfLine="string",e}}function m(n,i){if(n.match(/^mixin\b/))return i.javaScriptLine=!0,r}function V(n,i){if(n.match(/^\+([-\w]+)/))return n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),"variable";if(n.match("+#{",!1))return n.next(),i.mixinCallAfter=!0,h(n,i)}function _(n,i){if(i.mixinCallAfter)return i.mixinCallAfter=!1,n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),!0}function z(n,i){if(n.match(/^(if|unless|else if|else)\b/))return i.javaScriptLine=!0,r}function P(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)),a(n,i,e),"atom"}}function q(n,i){if(n.match(/^(!?=|-)/))return i.javaScriptLine=!0,"punctuation"}function B(n){if(n.match(/^#([\w-]+)/))return j}function K(n){if(n.match(/^\.([\w-]+)/))return b}function U(n,i){if(n.peek()=="(")return n.next(),i.isAttrs=!0,i.attrsNest=[],i.inAttributeName=!0,i.attrValue="",i.attributeIsType=!1,"punctuation"}function d(n,i){if(i.isAttrs){if(p[n.peek()]&&i.attrsNest.push(p[n.peek()]),i.attrsNest[i.attrsNest.length-1]===n.peek())i.attrsNest.pop();else if(n.eat(")"))return i.isAttrs=!1,"punctuation";if(i.inAttributeName&&n.match(/^[^=,\)!]+/))return(n.peek()==="="||n.peek()==="!")&&(i.inAttributeName=!1,i.jsState=t.startState(c),i.lastTag==="script"&&n.current().trim().toLowerCase()==="type"?i.attributeIsType=!0:i.attributeIsType=!1),"attribute";var e=c.token(n,i.jsState);if(i.attributeIsType&&e==="string"&&(i.scriptType=n.current().toString()),i.attrsNest.length===0&&(e==="string"||e==="variable"||e==="keyword"))try{return Function("","var x "+i.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),i.inAttributeName=!0,i.attrValue="",n.backUp(n.current().length),d(n,i)}catch(pn){}return i.attrValue+=n.current(),e||!0}}function W(n,i){if(n.match(/^&attributes\b/))return i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0,"keyword"}function Z(n){if(n.sol()&&n.eatSpace())return"indent"}function G(n,i){if(n.match(/^ *\/\/(-)?([^\n]*)/))return i.indentOf=n.indentation(),i.indentToken="comment","comment"}function H(n){if(n.match(/^: */))return"colon"}function J(n,i){if(n.match(/^(?:\| ?| )([^\n]+)/))return"string";if(n.match(/^(<[^\n]*)/,!1))return a(n,i,"htmlmixed"),i.innerModeForLine=!0,S(n,i,!0)}function Q(n,i){if(n.eat(".")){var e=null;return i.lastTag==="script"&&i.scriptType.toLowerCase().indexOf("javascript")!=-1?e=i.scriptType.toLowerCase().replace(/"|'/g,""):i.lastTag==="style"&&(e="css"),a(n,i,e),"dot"}}function X(n){return n.next(),null}function a(n,i,e){e=t.mimeModes[e]||e,e=u.innerModes&&u.innerModes(e)||e,e=t.mimeModes[e]||e,e=t.getMode(u,e),i.indentOf=n.indentation(),e&&e.name!=="null"?i.innerMode=e:i.indentToken="string"}function S(n,i,e){if(n.indentation()>i.indentOf||i.innerModeForLine&&!n.sol()||e)return i.innerMode?(i.innerState||(i.innerState=i.innerMode.startState?t.startState(i.innerMode,n.indentation()):{}),n.hideFirstChars(i.indentOf+2,function(){return i.innerMode.token(n,i.innerState)||!0})):(n.skipToEnd(),i.indentToken);n.sol()&&(i.indentOf=1/0,i.indentToken=null,i.innerMode=null,i.innerState=null)}function nn(n,i){if(n.sol()&&(i.restOfLine=""),i.restOfLine){n.skipToEnd();var e=i.restOfLine;return i.restOfLine="",e}}function en(){return new l}function tn(n){return n.copy()}function rn(n,i){var e=S(n,i)||nn(n,i)||T(n,i)||C(n,i)||$(n,i)||d(n,i)||L(n,i)||x(n,i)||_(n,i)||A(n)||y(n)||h(n,i)||O(n,i)||k(n,i)||N(n)||w(n,i)||I(n,i)||E(n,i)||F(n,i)||D(n,i)||M(n,i)||m(n,i)||V(n,i)||z(n,i)||P(n,i)||R(n,i)||Y(n,i)||s(n,i)||q(n,i)||B(n)||K(n)||U(n,i)||W(n,i)||Z(n)||J(n,i)||G(n,i)||H(n)||Q(n,i)||X(n);return e===!0?null:e}return{startState:en,copyState:tn,token:rn}},"javascript","css","htmlmixed"),t.defineMIME("text/x-pug","pug"),t.defineMIME("text/x-jade","pug")})})();var on=v.exports,vn=Object.freeze(an({__proto__:null,[Symbol.toStringTag]:"Module",default:on},[v.exports]));export{v as a,vn as p};
1
+ import{bE as un}from"./vendor.a626ab9c.js";import{a as cn}from"./javascript.76216d0d.js";import{a as fn}from"./css.7f807b17.js";import{a as ln}from"./htmlmixed.cb1d7158.js";function an(f,o){return o.forEach(function(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(f)}var v={exports:{}};(function(f,o){(function(t){t(un.exports,cn.exports,fn.exports,ln.exports)})(function(t){t.defineMode("pug",function(u){var r="keyword",g="meta",j="builtin",b="qualifier",p={"{":"}","(":")","[":"]"},c=t.getMode(u,"javascript");function l(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=t.startState(c),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}l.prototype.copy=function(){var n=new l;return n.javaScriptLine=this.javaScriptLine,n.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,n.javaScriptArguments=this.javaScriptArguments,n.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,n.isInterpolating=this.isInterpolating,n.interpolationNesting=this.interpolationNesting,n.jsState=t.copyState(c,this.jsState),n.innerMode=this.innerMode,this.innerMode&&this.innerState&&(n.innerState=t.copyState(this.innerMode,this.innerState)),n.restOfLine=this.restOfLine,n.isIncludeFiltered=this.isIncludeFiltered,n.isEach=this.isEach,n.lastTag=this.lastTag,n.scriptType=this.scriptType,n.isAttrs=this.isAttrs,n.attrsNest=this.attrsNest.slice(),n.inAttributeName=this.inAttributeName,n.attributeIsType=this.attributeIsType,n.attrValue=this.attrValue,n.indentOf=this.indentOf,n.indentToken=this.indentToken,n.innerModeForLine=this.innerModeForLine,n};function L(n,i){if(n.sol()&&(i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1),i.javaScriptLine){if(i.javaScriptLineExcludesColon&&n.peek()===":"){i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1;return}var e=c.token(n,i.jsState);return n.eol()&&(i.javaScriptLine=!1),e||!0}}function x(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 y(n){if(n.match(/^(?:doctype) *([^\n]+)?/))return g}function h(n,i){if(n.match("#{"))return i.isInterpolating=!0,i.interpolationNesting=0,"punctuation"}function T(n,i){if(i.isInterpolating){if(n.peek()==="}"){if(i.interpolationNesting--,i.interpolationNesting<0)return n.next(),i.isInterpolating=!1,"punctuation"}else n.peek()==="{"&&i.interpolationNesting++;return c.token(n,i.jsState)||!0}}function O(n,i){if(n.match(/^case\b/))return i.javaScriptLine=!0,r}function k(n,i){if(n.match(/^when\b/))return i.javaScriptLine=!0,i.javaScriptLineExcludesColon=!0,r}function N(n){if(n.match(/^default\b/))return r}function w(n,i){if(n.match(/^extends?\b/))return i.restOfLine="string",r}function I(n,i){if(n.match(/^append\b/))return i.restOfLine="variable",r}function E(n,i){if(n.match(/^prepend\b/))return i.restOfLine="variable",r}function F(n,i){if(n.match(/^block\b *(?:(prepend|append)\b)?/))return i.restOfLine="variable",r}function D(n,i){if(n.match(/^include\b/))return i.restOfLine="string",r}function M(n,i){if(n.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&n.match("include"))return i.isIncludeFiltered=!0,r}function C(n,i){if(i.isIncludeFiltered){var e=s(n,i);return i.isIncludeFiltered=!1,i.restOfLine="string",e}}function m(n,i){if(n.match(/^mixin\b/))return i.javaScriptLine=!0,r}function V(n,i){if(n.match(/^\+([-\w]+)/))return n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),"variable";if(n.match("+#{",!1))return n.next(),i.mixinCallAfter=!0,h(n,i)}function _(n,i){if(i.mixinCallAfter)return i.mixinCallAfter=!1,n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),!0}function z(n,i){if(n.match(/^(if|unless|else if|else)\b/))return i.javaScriptLine=!0,r}function P(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)),a(n,i,e),"atom"}}function q(n,i){if(n.match(/^(!?=|-)/))return i.javaScriptLine=!0,"punctuation"}function B(n){if(n.match(/^#([\w-]+)/))return j}function K(n){if(n.match(/^\.([\w-]+)/))return b}function U(n,i){if(n.peek()=="(")return n.next(),i.isAttrs=!0,i.attrsNest=[],i.inAttributeName=!0,i.attrValue="",i.attributeIsType=!1,"punctuation"}function d(n,i){if(i.isAttrs){if(p[n.peek()]&&i.attrsNest.push(p[n.peek()]),i.attrsNest[i.attrsNest.length-1]===n.peek())i.attrsNest.pop();else if(n.eat(")"))return i.isAttrs=!1,"punctuation";if(i.inAttributeName&&n.match(/^[^=,\)!]+/))return(n.peek()==="="||n.peek()==="!")&&(i.inAttributeName=!1,i.jsState=t.startState(c),i.lastTag==="script"&&n.current().trim().toLowerCase()==="type"?i.attributeIsType=!0:i.attributeIsType=!1),"attribute";var e=c.token(n,i.jsState);if(i.attributeIsType&&e==="string"&&(i.scriptType=n.current().toString()),i.attrsNest.length===0&&(e==="string"||e==="variable"||e==="keyword"))try{return Function("","var x "+i.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),i.inAttributeName=!0,i.attrValue="",n.backUp(n.current().length),d(n,i)}catch{}return i.attrValue+=n.current(),e||!0}}function W(n,i){if(n.match(/^&attributes\b/))return i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0,"keyword"}function Z(n){if(n.sol()&&n.eatSpace())return"indent"}function G(n,i){if(n.match(/^ *\/\/(-)?([^\n]*)/))return i.indentOf=n.indentation(),i.indentToken="comment","comment"}function H(n){if(n.match(/^: */))return"colon"}function J(n,i){if(n.match(/^(?:\| ?| )([^\n]+)/))return"string";if(n.match(/^(<[^\n]*)/,!1))return a(n,i,"htmlmixed"),i.innerModeForLine=!0,S(n,i,!0)}function Q(n,i){if(n.eat(".")){var e=null;return i.lastTag==="script"&&i.scriptType.toLowerCase().indexOf("javascript")!=-1?e=i.scriptType.toLowerCase().replace(/"|'/g,""):i.lastTag==="style"&&(e="css"),a(n,i,e),"dot"}}function X(n){return n.next(),null}function a(n,i,e){e=t.mimeModes[e]||e,e=u.innerModes&&u.innerModes(e)||e,e=t.mimeModes[e]||e,e=t.getMode(u,e),i.indentOf=n.indentation(),e&&e.name!=="null"?i.innerMode=e:i.indentToken="string"}function S(n,i,e){if(n.indentation()>i.indentOf||i.innerModeForLine&&!n.sol()||e)return i.innerMode?(i.innerState||(i.innerState=i.innerMode.startState?t.startState(i.innerMode,n.indentation()):{}),n.hideFirstChars(i.indentOf+2,function(){return i.innerMode.token(n,i.innerState)||!0})):(n.skipToEnd(),i.indentToken);n.sol()&&(i.indentOf=1/0,i.indentToken=null,i.innerMode=null,i.innerState=null)}function nn(n,i){if(n.sol()&&(i.restOfLine=""),i.restOfLine){n.skipToEnd();var e=i.restOfLine;return i.restOfLine="",e}}function en(){return new l}function tn(n){return n.copy()}function rn(n,i){var e=S(n,i)||nn(n,i)||T(n,i)||C(n,i)||$(n,i)||d(n,i)||L(n,i)||x(n,i)||_(n,i)||A(n)||y(n)||h(n,i)||O(n,i)||k(n,i)||N(n)||w(n,i)||I(n,i)||E(n,i)||F(n,i)||D(n,i)||M(n,i)||m(n,i)||V(n,i)||z(n,i)||P(n,i)||R(n,i)||Y(n,i)||s(n,i)||q(n,i)||B(n)||K(n)||U(n,i)||W(n,i)||Z(n)||J(n,i)||G(n,i)||H(n)||Q(n,i)||X(n);return e===!0?null:e}return{startState:en,copyState:tn,token:rn}},"javascript","css","htmlmixed"),t.defineMIME("text/x-pug","pug"),t.defineMIME("text/x-jade","pug")})})();var on=v.exports,vn=Object.freeze(an({__proto__:null,[Symbol.toStringTag]:"Module",default:on},[v.exports]));export{v as a,vn as p};
@@ -1 +1 @@
1
- import{bA as _}from"./vendor.62143b15.js";function v(u,l){return l.forEach(function(o){Object.keys(o).forEach(function(t){if(t!=="default"&&!(t in u)){var a=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(u,t,a.get?a:{enumerable:!0,get:function(){return o[t]}})}})}),Object.freeze(u)}var d={exports:{}};(function(u,l){(function(o){o(_.exports)})(function(o){o.defineMode("puppet",function(){var t={},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++)t[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),r=e.next();if(r==="$")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&&t.hasOwnProperty(i)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),i=="include"&&(n.inInclude=!0),t[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"):r=="#"?(e.skipToEnd(),"comment"):r=="'"||r=='"'?(n.pending=r,p(e,n)):r=="{"||r=="}"?"bracket":r=="/"?(e.match(/^[^\/]*\//),"variable-3"):r.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):r=="="?(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)}}}),o.defineMIME("text/x-puppet","puppet")})})();var b=d.exports,k=Object.freeze(v({__proto__:null,[Symbol.toStringTag]:"Module",default:b},[d.exports]));export{k as p};
1
+ import{bE as _}from"./vendor.a626ab9c.js";function v(u,l){return l.forEach(function(o){Object.keys(o).forEach(function(t){if(t!=="default"&&!(t in u)){var a=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(u,t,a.get?a:{enumerable:!0,get:function(){return o[t]}})}})}),Object.freeze(u)}var d={exports:{}};(function(u,l){(function(o){o(_.exports)})(function(o){o.defineMode("puppet",function(){var t={},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++)t[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),r=e.next();if(r==="$")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&&t.hasOwnProperty(i)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),i=="include"&&(n.inInclude=!0),t[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"):r=="#"?(e.skipToEnd(),"comment"):r=="'"||r=='"'?(n.pending=r,p(e,n)):r=="{"||r=="}"?"bracket":r=="/"?(e.match(/^[^\/]*\//),"variable-3"):r.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):r=="="?(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)}}}),o.defineMIME("text/x-puppet","puppet")})})();var b=d.exports,k=Object.freeze(v({__proto__:null,[Symbol.toStringTag]:"Module",default:b},[d.exports]));export{k as p};
@@ -1 +1 @@
1
- import{bA as J}from"./vendor.62143b15.js";function K(b,S){return S.forEach(function(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(b)}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),D=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=P(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(D)?"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 P(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=Object.freeze(K({__proto__:null,[Symbol.toStringTag]:"Module",default:M},[L.exports]));export{L as a,q as p};
1
+ import{bE as J}from"./vendor.a626ab9c.js";function K(b,S){return S.forEach(function(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(b)}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),D=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=P(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(D)?"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 P(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=Object.freeze(K({__proto__:null,[Symbol.toStringTag]:"Module",default:M},[L.exports]));export{L as a,q as p};
@@ -1 +1 @@
1
- import{bA as w}from"./vendor.62143b15.js";function j(f,s){return s.forEach(function(r){Object.keys(r).forEach(function(c){if(c!=="default"&&!(c in f)){var d=Object.getOwnPropertyDescriptor(r,c);Object.defineProperty(f,c,d.get?d:{enumerable:!0,get:function(){return r[c]}})}})}),Object.freeze(f)}var v={exports:{}};(function(f,s){(function(r){r(w.exports)})(function(r){r.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 i=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}/)?i="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)?/))&&(i="number"),i&&(!(t=e.peek())||m.test(t))?i:(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,i=!1;t=e.next();){if(t=='"'&&!o){i=!0;break}o=!o&&t=="\\"}return i&&(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 i=t&&o==t.type;return t?t.type=="pattern"?t.col:t.align?t.col+(i?0:1):t.indent+(i?0:d):0}}}),r.defineMIME("text/x-q","q")})})();var z=v.exports,q=Object.freeze(j({__proto__:null,[Symbol.toStringTag]:"Module",default:z},[v.exports]));export{q};
1
+ import{bE as w}from"./vendor.a626ab9c.js";function j(f,s){return s.forEach(function(r){Object.keys(r).forEach(function(c){if(c!=="default"&&!(c in f)){var d=Object.getOwnPropertyDescriptor(r,c);Object.defineProperty(f,c,d.get?d:{enumerable:!0,get:function(){return r[c]}})}})}),Object.freeze(f)}var v={exports:{}};(function(f,s){(function(r){r(w.exports)})(function(r){r.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 i=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}/)?i="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)?/))&&(i="number"),i&&(!(t=e.peek())||m.test(t))?i:(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,i=!1;t=e.next();){if(t=='"'&&!o){i=!0;break}o=!o&&t=="\\"}return i&&(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 i=t&&o==t.type;return t?t.type=="pattern"?t.col:t.align?t.col+(i?0:1):t.indent+(i?0:d):0}}}),r.defineMIME("text/x-q","q")})})();var z=v.exports,q=Object.freeze(j({__proto__:null,[Symbol.toStringTag]:"Module",default:z},[v.exports]));export{q};
@@ -1,4 +1,4 @@
1
- import{r as a,p as o,q as d,w as s,B as e,t as h,P as l}from"./vendor.62143b15.js";const c={class:"markdown-body"},u=e("div",{class:"two-up"},[e("div",{class:"left"},[e("blockquote",null,[e("p",null,"Most Directus API Endpoint operations can be manipulated with the following parameters. It is important to understand them to get the most out of the platform.")])]),e("div",{class:"right"},[e("p"),e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#fields"},"Fields")]),e("li",null,[e("a",{href:"#filter"},"Filter")]),e("li",null,[e("a",{href:"#search"},"Search")]),e("li",null,[e("a",{href:"#sort"},"Sort")]),e("li",null,[e("a",{href:"#limit"},"Limit")]),e("li",null,[e("a",{href:"#offset"},"Offset"),l(" / "),e("a",{href:"#page"},"Page")]),e("li",null,[e("a",{href:"#aggregation-grouping"},"Aggregation & Grouping")]),e("li",null,[e("a",{href:"#deep"},"Deep")]),e("li",null,[e("a",{href:"#aliases"},"Aliases")]),e("li",null,[e("a",{href:"#export"},"Export")])]),e("p"),l(" - [Functions](#functions) "),e("p"),l(" - [Metadata](#metadata) - [Total Count](#total-count) - [Filter Count](#filter-count) ")])])],-1),p=e("hr",null,null,-1),f=e("h2",{id:"fields"},[l("Fields "),e("a",{class:"header-anchor",href:"#fields"},"#")],-1),g=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Choose the fields that are returned in the current dataset. This parameter supports dot notation to request nested relational fields. You can also use a wildcard (*) to include all fields at a specific depth.")])],-1),m=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples"},"#")]),e("p",null,[l("Get all top-level fields"),e("br"),e("code",null,"*")]),e("p",null,[l("Get all top-level fields and all second-level relational fields"),e("br"),e("code",null,"*.*")]),e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Performance & Size"),e("p",null,[l("While the fields wildcard is very useful for debugging purposes, we recommend only requesting "),e("em",null,"specific"),l(" fields for production use. By only requesting the fields you really need, you can speed up the request, and reduce the overall output size.")])]),e("p",null,[l("Get all top-level fields and second-level relational fields within images"),e("br"),e("code",null,"*,images.*")]),e("p",null,[l("Get only the first_name and last_name fields"),e("br"),e("code",null,"first_name,last_name")]),e("p",null,[l("Get all top-level and second-level relational fields, and third-level fields within images.thumbnails"),e("br"),e("code",null,"*.*,images.thumbnails.*")]),e("h3",{id:"many-to-any-(union-types)"},[l("Many-To-Any (Union Types) "),e("a",{class:"header-anchor",href:"#many-to-any-(union-types)"},"#")]),e("p",null,[l("Seeing that Many-to-Any (m2a) fields have nested data from multiple collections, it\u2019s not always safe / wanted to fetch the same field from every related collection. In m2a fields, you can use the following syntax to specify what fields to fetch from which related nested collection type:"),e("br"),e("code",null,"?fields=<m2a-field>:<collection-scope>.<field>"),l(".")]),e("p",null,[l("Lets say we have a collection "),e("code",null,"pages"),l(" with a many-to-any field called "),e("code",null,"sections"),l(" that points to "),e("code",null,"headings"),l(", "),e("code",null,"paragraphs"),l(", and "),e("code",null,"videos"),l(". We only want to fetch "),e("code",null,"title"),l(" and "),e("code",null,"level"),l(" from "),e("code",null,"headings"),l(", "),e("code",null,"body"),l(" from "),e("code",null,"paragraphs"),l(" and "),e("code",null,"source"),l(" from "),e("code",null,"videos"),l(". We can achieve that by using:")]),e("pre",null,[e("code",null,`sections.item:headings.title
1
+ import{r as a,p as o,q as d,w as s,B as e,t as h,P as l}from"./vendor.a626ab9c.js";const c={class:"markdown-body"},u=e("div",{class:"two-up"},[e("div",{class:"left"},[e("blockquote",null,[e("p",null,"Most Directus API Endpoint operations can be manipulated with the following parameters. It is important to understand them to get the most out of the platform.")])]),e("div",{class:"right"},[e("p"),e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#fields"},"Fields")]),e("li",null,[e("a",{href:"#filter"},"Filter")]),e("li",null,[e("a",{href:"#search"},"Search")]),e("li",null,[e("a",{href:"#sort"},"Sort")]),e("li",null,[e("a",{href:"#limit"},"Limit")]),e("li",null,[e("a",{href:"#offset"},"Offset"),l(" / "),e("a",{href:"#page"},"Page")]),e("li",null,[e("a",{href:"#aggregation-grouping"},"Aggregation & Grouping")]),e("li",null,[e("a",{href:"#deep"},"Deep")]),e("li",null,[e("a",{href:"#aliases"},"Aliases")]),e("li",null,[e("a",{href:"#export"},"Export")])]),e("p"),l(" - [Functions](#functions) "),e("p"),l(" - [Metadata](#metadata) - [Total Count](#total-count) - [Filter Count](#filter-count) ")])])],-1),p=e("hr",null,null,-1),f=e("h2",{id:"fields"},[l("Fields "),e("a",{class:"header-anchor",href:"#fields"},"#")],-1),g=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Choose the fields that are returned in the current dataset. This parameter supports dot notation to request nested relational fields. You can also use a wildcard (*) to include all fields at a specific depth.")])],-1),m=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples"},"#")]),e("p",null,[l("Get all top-level fields"),e("br"),e("code",null,"*")]),e("p",null,[l("Get all top-level fields and all second-level relational fields"),e("br"),e("code",null,"*.*")]),e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Performance & Size"),e("p",null,[l("While the fields wildcard is very useful for debugging purposes, we recommend only requesting "),e("em",null,"specific"),l(" fields for production use. By only requesting the fields you really need, you can speed up the request, and reduce the overall output size.")])]),e("p",null,[l("Get all top-level fields and second-level relational fields within images"),e("br"),e("code",null,"*,images.*")]),e("p",null,[l("Get only the first_name and last_name fields"),e("br"),e("code",null,"first_name,last_name")]),e("p",null,[l("Get all top-level and second-level relational fields, and third-level fields within images.thumbnails"),e("br"),e("code",null,"*.*,images.thumbnails.*")]),e("h3",{id:"many-to-any-(union-types)"},[l("Many-To-Any (Union Types) "),e("a",{class:"header-anchor",href:"#many-to-any-(union-types)"},"#")]),e("p",null,[l("Seeing that Many-to-Any (m2a) fields have nested data from multiple collections, it\u2019s not always safe / wanted to fetch the same field from every related collection. In m2a fields, you can use the following syntax to specify what fields to fetch from which related nested collection type:"),e("br"),e("code",null,"?fields=<m2a-field>:<collection-scope>.<field>"),l(".")]),e("p",null,[l("Lets say we have a collection "),e("code",null,"pages"),l(" with a many-to-any field called "),e("code",null,"sections"),l(" that points to "),e("code",null,"headings"),l(", "),e("code",null,"paragraphs"),l(", and "),e("code",null,"videos"),l(". We only want to fetch "),e("code",null,"title"),l(" and "),e("code",null,"level"),l(" from "),e("code",null,"headings"),l(", "),e("code",null,"body"),l(" from "),e("code",null,"paragraphs"),l(" and "),e("code",null,"source"),l(" from "),e("code",null,"videos"),l(". We can achieve that by using:")]),e("pre",null,[e("code",null,`sections.item:headings.title
2
2
  sections.item:headings.level
3
3
  sections.item:paragraphs.body
4
4
  sections.item:videos.source
@@ -1,4 +1,4 @@
1
- import{r as a,p as c,q as d,w as o,B as e,t as n,P as t}from"./vendor.62143b15.js";var h="assets/terminal-install.44adb787.png",u="assets/terminal-start.72064e09.png",_="assets/empty-state.bbc4e874.png",p="assets/add-field.880542d6.png",m="assets/create-item.32e17f40.png",g="assets/permissions.b47530e9.png";const f={class:"markdown-body"},b=e("blockquote",null,[e("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),w=e("h2",{id:"1.-installation"},[t("1. Installation "),e("a",{class:"header-anchor",href:"#1.-installation"},"#")],-1),y=e("p",null,[t("Make sure you have the latest LTS version or newer of "),e("a",{href:"https://nodejs.dev",target:"_blank",rel:"noopener noreferrer"},"Node.js"),t(" installed, and have a running database ready to connect to.")],-1),v=e("p",null,"Run the following command in your terminal and follow the prompts.",-1),k=e("pre",null,[e("code",{class:"language-bash"},`npm init directus-project example-project
1
+ import{r as a,p as c,q as d,w as o,B as e,t as n,P as t}from"./vendor.a626ab9c.js";var h="assets/terminal-install.44adb787.png",u="assets/terminal-start.72064e09.png",_="assets/empty-state.bbc4e874.png",p="assets/add-field.880542d6.png",m="assets/create-item.32e17f40.png",g="assets/permissions.b47530e9.png";const f={class:"markdown-body"},b=e("blockquote",null,[e("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),w=e("h2",{id:"1.-installation"},[t("1. Installation "),e("a",{class:"header-anchor",href:"#1.-installation"},"#")],-1),y=e("p",null,[t("Make sure you have the latest LTS version or newer of "),e("a",{href:"https://nodejs.dev",target:"_blank",rel:"noopener noreferrer"},"Node.js"),t(" installed, and have a running database ready to connect to.")],-1),v=e("p",null,"Run the following command in your terminal and follow the prompts.",-1),k=e("pre",null,[e("code",{class:"language-bash"},`npm init directus-project example-project
2
2
  `)],-1),I=e("p",null,[e("img",{src:h,alt:"Successful installation"})],-1),C=e("p",null,[t("Once the installation is complete, you can start Directus by navigating to your project folder (in this case "),e("code",null,"example-project"),t(") and running:")],-1),j=e("pre",null,[e("code",null,`npx directus start
3
3
  `)],-1),P=e("p",null,[e("img",{src:u,alt:"Server started"})],-1),F=e("h2",{id:"2.-login-to-app"},[t("2. Login to App "),e("a",{class:"header-anchor",href:"#2.-login-to-app"},"#")],-1),D=e("p",null,"With the server running, you\u2019re now able to login to your new Directus project and start using it.",-1),S=e("p",null,[t("Our start command stated that the server started at port "),e("code",null,"8055"),t(", which means we can navigate to "),e("a",{href:"http://localhost:8055",target:"_blank",rel:"noopener noreferrer"},"http://localhost:8055"),t(" to open Directus in the browser.")],-1),x=e("p",null,"Login using the admin credentials you configured during the installation in Step 1.",-1),T=e("h2",{id:"3.-create-a-collection"},[t("3. Create a Collection "),e("a",{class:"header-anchor",href:"#3.-create-a-collection"},"#")],-1),A=e("p",null,"Once logged in, you\u2019re greeted with the option to create your first Collection:",-1),N=e("p",null,[e("img",{src:_,alt:"Directus Empty State"})],-1),R=e("p",null,[t("Follow the prompts and create a Collection. For the sake of this demo, we\u2019ll be calling ours "),e("code",null,"articles"),t(", but feel free to make it your own!")],-1),M={class:"tip hint"},W=e("div",{class:"hint-title"},"More Info on Collections",-1),B=t("For a more in-depth guide to setting up Collections, see "),L=t("Collections"),O=t("."),E=e("h2",{id:"4.-create-a-field"},[t("4. Create a Field "),e("a",{class:"header-anchor",href:"#4.-create-a-field"},"#")],-1),q=e("p",null,[t("With the Collection created, it\u2019s time to start adding some Fields. Click the "),e("strong",null,"\u201CCreate Field\u201D"),t(" button, and select \u201CStandard Field\u201D:")],-1),V=e("p",null,[e("img",{src:p,alt:"Directus Add a Field"})],-1),G=e("p",null,[t("We\u2019ll be calling our Field "),e("code",null,"title"),t(". 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 and \u201CText Input\u201D interface")],-1),Q={class:"tip hint"},z=e("div",{class:"hint-title"},"More Info on Fields",-1),H=t("To learn more about the different types of Fields, and all available options, see "),J=t("Fields"),U=t("."),K=e("h2",{id:"5.-create-an-item"},[t("5. Create an Item "),e("a",{class:"header-anchor",href:"#5.-create-an-item"},"#")],-1),X=e("p",null,"Now that we have a Collection with a Field configured, it\u2019s time to start adding some content. Navigate to the Collections Module (top left), open your created Collection, and click the \u201C+\u201D button in the top-right to get started.",-1),Y=e("p",null,[e("img",{src:m,alt:"Directus Create Item"})],-1),Z=e("p",null,"Once you\u2019re happy with your creation, click the checkmark in the top-right to save your item to the database.",-1),$={class:"tip hint"},ee=e("div",{class:"hint-title"},"More Info on Items",-1),te=t("To learn more about the different types of Items, and all available options, see "),oe=t("Items"),se=t("."),ne=e("h2",{id:"6.-set-role%2Fpublic-permissions"},[t("6. Set Role/Public Permissions "),e("a",{class:"header-anchor",href:"#6.-set-role%2Fpublic-permissions"},"#")],-1),ie=e("p",null,[t("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 "),e("strong",null,"Settings Module > Roles & Permissions"),t(".")],-1),ae=e("p",null,[t("Directus ships with a special "),e("strong",null,"\u201CPublic\u201D"),t(" role that controls what data is returned to non-authenticated users. Select the public role, find your collection, and click the icon under the \u201Ceye\u201D icon (read/view permission) to allow the public role to read the items in your collection.")],-1),le=e("p",null,[e("img",{src:g,alt:"Directus Permissions"})],-1),re={class:"tip hint"},ce=e("div",{class:"hint-title"},"More Info on Roles & Permissions",-1),de=t("Roles & Permissions are extremely powerful and can get pretty in-depth. To learn all about the nuances in setting up roles & permissions, see "),he=t("Roles"),ue=t(" & "),_e=t("Permissions"),pe=t("."),me=e("h2",{id:"7.-connect-to-the-api"},[t("7. Connect to the API "),e("a",{class:"header-anchor",href:"#7.-connect-to-the-api"},"#")],-1),ge=t("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 "),fe=t("the "),be=e("code",null,"/items/",-1),we=t(" REST API endpoint"),ye=t(" to retrieve the item we just created."),ve=e("p",null,[t("Using your browser, or an API tool like "),e("a",{href:"http://postman.com",target:"_blank",rel:"noopener noreferrer"},"Postman"),t(" or "),e("a",{href:"https://paw.cloud",target:"_blank",rel:"noopener noreferrer"},"Paw"),t(", open "),e("a",{href:"http://localhost:8055/items/articles",target:"_blank",rel:"noopener noreferrer"},"http://localhost:8055/items/articles"),t(".")],-1),ke=e("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),Ie=e("pre",null,[e("code",{class:"language-json"},[t(`{
4
4
  `),e("span",{class:"hljs-attr"},'"data"'),t(`: [
@@ -1 +1 @@
1
- import{bA as S}from"./vendor.62143b15.js";function z(c,s){return s.forEach(function(o){Object.keys(o).forEach(function(l){if(l!=="default"&&!(l in c)){var f=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(c,l,f.get?f:{enumerable:!0,get:function(){return o[l]}})}})}),Object.freeze(c)}var _={exports:{}};(function(c,s){(function(o){o(S.exports)})(function(o){o.registerHelper("wordChars","r",/[\w.]/),o.defineMode("r",function(l){function f(e){for(var n={},r=0;r<e.length;++r)n[e[r]]=!0;return n}var x=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],g=["list","quote","bquote","eval","return","call","parse","deparse"],k=["if","else","repeat","while","function","for","in","next","break"],E=["if","else","repeat","while","function","for"];o.registerHelper("hintWords","r",x.concat(g,k));var w=f(x),A=f(g),N=f(k),I=f(E),y=/[+\-*\/^<>=!&|~$:]/,t;function p(e,n){t=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 w.propertyIsEnumerable(i)?"atom":N.propertyIsEnumerable(i)?(I.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(t="block"),"keyword"):A.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":y.test(r)?r=="$"?"operator dollar":(e.eatWhile(y),"operator"):/[\(\){}\[\];]/.test(r)?(t=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,b=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&b&&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),(t==";"||t=="{"||t=="}")&&n.ctx.type=="block"&&v(n),t=="{"?a(n,"}",e):t=="("?(a(n,")",e),n.afterIdent&&(n.ctx.argList=!0)):t=="["?a(n,"]",e):t=="block"?a(n,"block",e):t==n.ctx.type?v(n):n.ctx.type=="block"&&r!="comment"&&m(n,b),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&b&&(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:"#"}}),o.defineMIME("text/x-rsrc","r")})})();var O=_.exports,j=Object.freeze(z({__proto__:null,[Symbol.toStringTag]:"Module",default:O},[_.exports]));export{j as r};
1
+ import{bE as S}from"./vendor.a626ab9c.js";function z(c,s){return s.forEach(function(o){Object.keys(o).forEach(function(l){if(l!=="default"&&!(l in c)){var f=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(c,l,f.get?f:{enumerable:!0,get:function(){return o[l]}})}})}),Object.freeze(c)}var _={exports:{}};(function(c,s){(function(o){o(S.exports)})(function(o){o.registerHelper("wordChars","r",/[\w.]/),o.defineMode("r",function(l){function f(e){for(var n={},r=0;r<e.length;++r)n[e[r]]=!0;return n}var x=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],g=["list","quote","bquote","eval","return","call","parse","deparse"],k=["if","else","repeat","while","function","for","in","next","break"],E=["if","else","repeat","while","function","for"];o.registerHelper("hintWords","r",x.concat(g,k));var w=f(x),N=f(g),A=f(k),I=f(E),y=/[+\-*\/^<>=!&|~$:]/,t;function p(e,n){t=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 w.propertyIsEnumerable(i)?"atom":A.propertyIsEnumerable(i)?(I.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(t="block"),"keyword"):N.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":y.test(r)?r=="$"?"operator dollar":(e.eatWhile(y),"operator"):/[\(\){}\[\];]/.test(r)?(t=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,b=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&b&&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),(t==";"||t=="{"||t=="}")&&n.ctx.type=="block"&&v(n),t=="{"?a(n,"}",e):t=="("?(a(n,")",e),n.afterIdent&&(n.ctx.argList=!0)):t=="["?a(n,"]",e):t=="block"?a(n,"block",e):t==n.ctx.type?v(n):n.ctx.type=="block"&&r!="comment"&&m(n,b),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&b&&(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:"#"}}),o.defineMIME("text/x-rsrc","r")})})();var O=_.exports,j=Object.freeze(z({__proto__:null,[Symbol.toStringTag]:"Module",default:O},[_.exports]));export{j as r};
@@ -1,4 +1,4 @@
1
- import{r as s,p as i,q as c,w as t,B as e,t as h,P as l}from"./vendor.62143b15.js";const d={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=l("What data is linked to what other data. Allows you to assign authors to articles, products to sales, and whatever other structures you can think of. "),g=l("Learn more about Relationships"),f=l("."),m=e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-relation-object"},"The Relation Object")]),e("li",null,[e("a",{href:"#list-relations"},"List relations")]),e("li",null,[e("a",{href:"#list-relations-in-collection"},"List relations in collection")]),e("li",null,[e("a",{href:"#retrieve-a-relation"},"Retrieve a relation")]),e("li",null,[e("a",{href:"#create-a-relation"},"Create a Relation")]),e("li",null,[e("a",{href:"#update-a-relation"},"Update a Relation")]),e("li",null,[e("a",{href:"#delete-a-relation"},"Delete a Relation")])])])])],-1),y=e("hr",null,null,-1),j=e("h2",{id:"the-relation-object"},[l("The Relation Object "),e("a",{class:"header-anchor",href:"#the-relation-object"},"#")],-1),b=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"definitions"},[e("p",null,[e("code",null,"collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. This matches the table name in the database.")]),e("p",null,[e("code",null,"field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field that holds the related primary key. This matches the column name in the database.")]),e("p",null,[e("code",null,"related_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. This matches the table name in the database.")])]),e("h4",{id:"meta"},[l("Meta "),e("a",{class:"header-anchor",href:"#meta"},"#")]),e("p",null,"Directus metadata. Used to enable non-database relationship types"),e("div",{class:"definitions"},[e("p",null,[e("code",null,"id"),l(),e("strong",null,"integer"),e("br"),l(" Primary key of the metadata row in "),e("code",null,"directus_relations"),l(".")]),e("p",null,[e("code",null,"many_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. Matches the top level "),e("code",null,"collection"),l(" field.")]),e("p",null,[e("code",null,"many_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field. Matches the top level "),e("code",null,"field"),l(" field.")]),e("p",null,[e("code",null,"one_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. Matches the top level "),e("code",null,"related_collection"),l(" field.")]),e("p",null,[e("code",null,"one_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the one to many field on the other side of the relation.")]),e("p",null,[e("code",null,"one_allowed_collections"),l(),e("strong",null,"string"),e("br"),l(" What collections are allowed to be used in a many-to-any context.")]),e("p",null,[e("code",null,"one_collection_field"),l(),e("strong",null,"string"),e("br"),l(" Field that holds the collection name in a many-to-any context.")]),e("p",null,[e("code",null,"one_deselect_action"),l(),e("strong",null,"nullify | delete"),e("br"),l(" Whether to nullify or delete related one-to-many records.")]),e("p",null,[e("code",null,"sort_field"),l(),e("strong",null,"string"),e("br"),l(" What field is used to hold the sort field.")]),e("p",null,[e("code",null,"junction_field"),l(),e("strong",null,"string"),e("br"),l(" What field connects two relations in a many-to-many (o2m-m2o) context.")])]),e("h4",{id:"schema"},[l("Schema "),e("a",{class:"header-anchor",href:"#schema"},"#")]),e("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers."),e("div",{class:"definitions"},[e("p",null,[e("code",null,"table"),l(),e("strong",null,"string"),e("br"),l(" The table name.")]),e("p",null,[e("code",null,"column"),l(),e("strong",null,"string"),e("br"),l(" The column name.")]),e("p",null,[e("code",null,"foreign_key_table"),l(),e("strong",null,"string"),e("br"),l(" Related table name.")]),e("p",null,[e("code",null,"foreign_key_column"),l(),e("strong",null,"string"),e("br"),l(" Related column name.")]),e("p",null,[e("code",null,"constraint_name"),l(),e("strong",null,"string"),e("br"),l(" Name for the foreign key constraint.")]),e("p",null,[e("code",null,"on_update"),l(),e("strong",null,"string"),e("br"),l(" Update trigger for the foreign key constraint.")]),e("p",null,[e("code",null,"on_delete"),l(),e("strong",null,"string"),e("br"),l(" Delete trigger for the foreign key constraint.")])])]),e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[l(`{
1
+ import{r as s,p as i,q as c,w as t,B as e,t as h,P as l}from"./vendor.a626ab9c.js";const d={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=l("What data is linked to what other data. Allows you to assign authors to articles, products to sales, and whatever other structures you can think of. "),g=l("Learn more about Relationships"),f=l("."),m=e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-relation-object"},"The Relation Object")]),e("li",null,[e("a",{href:"#list-relations"},"List relations")]),e("li",null,[e("a",{href:"#list-relations-in-collection"},"List relations in collection")]),e("li",null,[e("a",{href:"#retrieve-a-relation"},"Retrieve a relation")]),e("li",null,[e("a",{href:"#create-a-relation"},"Create a Relation")]),e("li",null,[e("a",{href:"#update-a-relation"},"Update a Relation")]),e("li",null,[e("a",{href:"#delete-a-relation"},"Delete a Relation")])])])])],-1),y=e("hr",null,null,-1),j=e("h2",{id:"the-relation-object"},[l("The Relation Object "),e("a",{class:"header-anchor",href:"#the-relation-object"},"#")],-1),b=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"definitions"},[e("p",null,[e("code",null,"collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. This matches the table name in the database.")]),e("p",null,[e("code",null,"field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field that holds the related primary key. This matches the column name in the database.")]),e("p",null,[e("code",null,"related_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. This matches the table name in the database.")])]),e("h4",{id:"meta"},[l("Meta "),e("a",{class:"header-anchor",href:"#meta"},"#")]),e("p",null,"Directus metadata. Used to enable non-database relationship types"),e("div",{class:"definitions"},[e("p",null,[e("code",null,"id"),l(),e("strong",null,"integer"),e("br"),l(" Primary key of the metadata row in "),e("code",null,"directus_relations"),l(".")]),e("p",null,[e("code",null,"many_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. Matches the top level "),e("code",null,"collection"),l(" field.")]),e("p",null,[e("code",null,"many_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field. Matches the top level "),e("code",null,"field"),l(" field.")]),e("p",null,[e("code",null,"one_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. Matches the top level "),e("code",null,"related_collection"),l(" field.")]),e("p",null,[e("code",null,"one_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the one to many field on the other side of the relation.")]),e("p",null,[e("code",null,"one_allowed_collections"),l(),e("strong",null,"string"),e("br"),l(" What collections are allowed to be used in a many-to-any context.")]),e("p",null,[e("code",null,"one_collection_field"),l(),e("strong",null,"string"),e("br"),l(" Field that holds the collection name in a many-to-any context.")]),e("p",null,[e("code",null,"one_deselect_action"),l(),e("strong",null,"nullify | delete"),e("br"),l(" Whether to nullify or delete related one-to-many records.")]),e("p",null,[e("code",null,"sort_field"),l(),e("strong",null,"string"),e("br"),l(" What field is used to hold the sort field.")]),e("p",null,[e("code",null,"junction_field"),l(),e("strong",null,"string"),e("br"),l(" What field connects two relations in a many-to-many (o2m-m2o) context.")])]),e("h4",{id:"schema"},[l("Schema "),e("a",{class:"header-anchor",href:"#schema"},"#")]),e("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers."),e("div",{class:"definitions"},[e("p",null,[e("code",null,"table"),l(),e("strong",null,"string"),e("br"),l(" The table name.")]),e("p",null,[e("code",null,"column"),l(),e("strong",null,"string"),e("br"),l(" The column name.")]),e("p",null,[e("code",null,"foreign_key_table"),l(),e("strong",null,"string"),e("br"),l(" Related table name.")]),e("p",null,[e("code",null,"foreign_key_column"),l(),e("strong",null,"string"),e("br"),l(" Related column name.")]),e("p",null,[e("code",null,"constraint_name"),l(),e("strong",null,"string"),e("br"),l(" Name for the foreign key constraint.")]),e("p",null,[e("code",null,"on_update"),l(),e("strong",null,"string"),e("br"),l(" Update trigger for the foreign key constraint.")]),e("p",null,[e("code",null,"on_delete"),l(),e("strong",null,"string"),e("br"),l(" Delete trigger for the foreign key constraint.")])])]),e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[l(`{
2
2
  `),e("span",{class:"hljs-attr"},'"collection"'),l(": "),e("span",{class:"hljs-string"},'"about_us"'),l(`,
3
3
  `),e("span",{class:"hljs-attr"},'"field"'),l(": "),e("span",{class:"hljs-string"},'"logo"'),l(`,
4
4
  `),e("span",{class:"hljs-attr"},'"related_collection"'),l(": "),e("span",{class:"hljs-string"},'"directus_files"'),l(`,
@@ -1,4 +1,4 @@
1
- import{r as s,p as r,q as d,w as n,B as e,t as i,P as t}from"./vendor.62143b15.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("As you might have guessed, relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more "),e("em",null,"compound"),t(" types that offer greater flexibility.")])],-1),m=e("p",null,"While it may seem complex at first, relational data is actually quite straightforward once you understand what\u2019s happening behind the confusing terminology. Before diving into the details of each type, let\u2019s first cover a few basics that will help you better visualize each in your mind\u2019s eye.",-1),p=e("h3",{id:"primary-and-foreign-keys"},[t("Primary and Foreign Keys "),e("a",{class:"header-anchor",href:"#primary-and-foreign-keys"},"#")],-1),_=t("Every "),y=t("Item"),f=t(" in a relational database has a unique \u201Ckey\u201D that identifies it within its "),g=t("Collection"),v=t(". Because it\u2019s required, the key is the first "),M=t("field"),b=t(" created within a collection, typically storing an \u201Cauto-increment\u201D number, an automatically generated unique hash, or a manually entered value. They are often abbreviated to \u201CPK\u201D (Primary Key), \u201CID\u201D (Identifier), \u201CUID\u201D (Unique Identifier), or \u201CUUID\u201D (Universally Unique Identifier), depending on the type of value they store. After it\u2019s created, the value of an item\u2019s PK should "),O=e("em",null,"never",-1),w=t(" change."),k=e("p",null,[t("To link items together relationally, you simply save a reference of an item\u2019s PK in a different field. That "),e("em",null,"reference"),t(" is called a Foreign Key (FK).")],-1),K=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Compound Keys"),e("p",null,"To keep things simple, we\u2019ve ignored compound keys in the above explanation.")],-1),x=e("h3",{id:"perspective-matters"},[t("Perspective Matters "),e("a",{class:"header-anchor",href:"#perspective-matters"},"#")],-1),A=e("p",null,"Just like primary and foreign keys are directional, relationships are always relative to their \u201Cparent\u201D collection. Looking at the same relationship/key from the perspective of a different collection may change or reverse its type.",-1),P=e("h2",{id:"many-to-one-(m2o)"},[t("Many-to-One (M2O) "),e("a",{class:"header-anchor",href:"#many-to-one-(m2o)"},"#")],-1),T=e("p",null,[t("A Many-to-One (M2O) relationship exists on a field that saves a single FK. For example, a "),e("em",null,"city"),t(" can only be in one "),e("em",null,"country"),t(", but a "),e("em",null,"country"),t(" can have many "),e("em",null,"cities"),t(". So the M2O data model would look like this:")],-1),C=e("pre",null,[e("code",null,`cities ("Many" Collection)
1
+ import{r as s,p as r,q as d,w as n,B as e,t as i,P as t}from"./vendor.a626ab9c.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("As you might have guessed, relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more "),e("em",null,"compound"),t(" types that offer greater flexibility.")])],-1),m=e("p",null,"While it may seem complex at first, relational data is actually quite straightforward once you understand what\u2019s happening behind the confusing terminology. Before diving into the details of each type, let\u2019s first cover a few basics that will help you better visualize each in your mind\u2019s eye.",-1),p=e("h3",{id:"primary-and-foreign-keys"},[t("Primary and Foreign Keys "),e("a",{class:"header-anchor",href:"#primary-and-foreign-keys"},"#")],-1),_=t("Every "),y=t("Item"),f=t(" in a relational database has a unique \u201Ckey\u201D that identifies it within its "),g=t("Collection"),v=t(". Because it\u2019s required, the key is the first "),M=t("field"),b=t(" created within a collection, typically storing an \u201Cauto-increment\u201D number, an automatically generated unique hash, or a manually entered value. They are often abbreviated to \u201CPK\u201D (Primary Key), \u201CID\u201D (Identifier), \u201CUID\u201D (Unique Identifier), or \u201CUUID\u201D (Universally Unique Identifier), depending on the type of value they store. After it\u2019s created, the value of an item\u2019s PK should "),O=e("em",null,"never",-1),w=t(" change."),k=e("p",null,[t("To link items together relationally, you simply save a reference of an item\u2019s PK in a different field. That "),e("em",null,"reference"),t(" is called a Foreign Key (FK).")],-1),K=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Compound Keys"),e("p",null,"To keep things simple, we\u2019ve ignored compound keys in the above explanation.")],-1),x=e("h3",{id:"perspective-matters"},[t("Perspective Matters "),e("a",{class:"header-anchor",href:"#perspective-matters"},"#")],-1),A=e("p",null,"Just like primary and foreign keys are directional, relationships are always relative to their \u201Cparent\u201D collection. Looking at the same relationship/key from the perspective of a different collection may change or reverse its type.",-1),P=e("h2",{id:"many-to-one-(m2o)"},[t("Many-to-One (M2O) "),e("a",{class:"header-anchor",href:"#many-to-one-(m2o)"},"#")],-1),T=e("p",null,[t("A Many-to-One (M2O) relationship exists on a field that saves a single FK. For example, a "),e("em",null,"city"),t(" can only be in one "),e("em",null,"country"),t(", but a "),e("em",null,"country"),t(" can have many "),e("em",null,"cities"),t(". So the M2O data model would look like this:")],-1),C=e("pre",null,[e("code",null,`cities ("Many" Collection)
2
2
  - id (PK)
3
3
  - name
4
4
  - country (M2O that stores the FK to a country)
@@ -1,4 +1,4 @@
1
- import{r as l,p as c,q as h,w as t,B as s,t as o,P as e}from"./vendor.62143b15.js";const d={class:"markdown-body"},_={class:"two-up"},p={class:"left"},u=e("Revisions are individual changes to items made. Directus keeps track of changes made, so you\u2019re able to revert to a previous state at will. "),v=e("Learn more about Revisions"),m=e("."),f=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-revision-object"},"The Revision Object")]),s("li",null,[s("a",{href:"#list-revisions"},"List revisions")]),s("li",null,[s("a",{href:"#retrieve-a-revision"},"Retrieve a revision")])])])])],-1),y=s("hr",null,null,-1),g=s("h2",{id:"the-revision-object"},[e("The Revision Object "),s("a",{class:"header-anchor",href:"#the-revision-object"},"#")],-1),b={class:"two-up"},j={class:"left"},q={class:"definitions"},x=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the revision.")],-1),w=s("code",null,"activity",-1),k=e(),R=s("strong",null,"many-to-one",-1),E=s("br",null,null,-1),P=e(" Related activity record. Many-to-one to "),T=e("activity"),S=e("."),L=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection in which this revision happened.")],-1),C=s("p",null,[s("code",null,"item"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the item that was changed.")],-1),D=s("p",null,[s("code",null,"data"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the top-level item data.")],-1),Q=s("p",null,[s("code",null,"delta"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the changes made in this revision.")],-1),A=s("p",null,[s("code",null,"parent"),e(),s("strong",null,"many-to-one"),s("br"),e(" Parent revision that triggered this revision. Many-to-one to revisions (recursive).")],-1),G=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
1
+ import{r as l,p as c,q as h,w as t,B as s,t as o,P as e}from"./vendor.a626ab9c.js";const d={class:"markdown-body"},_={class:"two-up"},p={class:"left"},u=e("Revisions are individual changes to items made. Directus keeps track of changes made, so you\u2019re able to revert to a previous state at will. "),v=e("Learn more about Revisions"),m=e("."),f=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-revision-object"},"The Revision Object")]),s("li",null,[s("a",{href:"#list-revisions"},"List revisions")]),s("li",null,[s("a",{href:"#retrieve-a-revision"},"Retrieve a revision")])])])])],-1),y=s("hr",null,null,-1),g=s("h2",{id:"the-revision-object"},[e("The Revision Object "),s("a",{class:"header-anchor",href:"#the-revision-object"},"#")],-1),b={class:"two-up"},j={class:"left"},q={class:"definitions"},x=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the revision.")],-1),w=s("code",null,"activity",-1),k=e(),R=s("strong",null,"many-to-one",-1),E=s("br",null,null,-1),P=e(" Related activity record. Many-to-one to "),T=e("activity"),S=e("."),L=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection in which this revision happened.")],-1),C=s("p",null,[s("code",null,"item"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the item that was changed.")],-1),D=s("p",null,[s("code",null,"data"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the top-level item data.")],-1),Q=s("p",null,[s("code",null,"delta"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the changes made in this revision.")],-1),A=s("p",null,[s("code",null,"parent"),e(),s("strong",null,"many-to-one"),s("br"),e(" Parent revision that triggered this revision. Many-to-one to revisions (recursive).")],-1),G=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
2
2
  `),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-number"},"368"),e(`,
3
3
  `),s("span",{class:"hljs-attr"},'"activity"'),e(": "),s("span",{class:"hljs-number"},"438"),e(`,
4
4
  `),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"articles"'),e(`,
@@ -1 +1 @@
1
- import{r as i,p as c,q as d,w as s,B as e,t as a,P as t}from"./vendor.62143b15.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("Revisions are created when an "),e("em",null,"original"),t(" Item is updated. These alternate versions are tracked so that previous states can be recovered, or potential edits can be staged.")])],-1),_=t("Every change made to items in Directus is stored as a complete versioned snapshot. The Revisions system is tightly coupled to the Activity Logs system, with each revision being linked to the specific "),p=t("Activity"),v=t(" event which created it."),m=e("h2",{id:"revision-fields"},[t("Revision Fields "),e("a",{class:"header-anchor",href:"#revision-fields"},"#")],-1),f=e("ul",null,[e("li",null,[e("strong",null,"Data"),t(" \u2014 A full snapshot of the item "),e("em",null,"after"),t(" the event")]),e("li",null,[e("strong",null,"Delta"),t(" \u2014 The specific field data changed by this event")]),e("li",null,[e("strong",null,"Parent"),t(" \u2014 If this revision was created via a nested relationship")])],-1),g=e("h4",{id:"relevant-guides"},[t("Relevant Guides "),e("a",{class:"header-anchor",href:"#relevant-guides"},"#")],-1),y=t("Reverting an Item"),x={setup(k,{expose:l}){const o={title:"Revisions & Versioning",modularExtension:!1};return l({frontmatter:o}),(b,w)=>{const n=i("router-link"),r=i("DocsWrapper");return c(),d(r,{frontmatter:o},{default:s(()=>[e("div",h,[u,e("p",null,[_,a(n,{to:"/docs/concepts/application/#activity-log"},{default:s(()=>[p]),_:1}),v]),m,f,g,e("ul",null,[e("li",null,[a(n,{to:"/docs/guides/items/#reverting-an-item"},{default:s(()=>[y]),_:1})])])])]),_:1})}}};export{x as default};
1
+ import{r as i,p as c,q as d,w as s,B as e,t as a,P as t}from"./vendor.a626ab9c.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("Revisions are created when an "),e("em",null,"original"),t(" Item is updated. These alternate versions are tracked so that previous states can be recovered, or potential edits can be staged.")])],-1),_=t("Every change made to items in Directus is stored as a complete versioned snapshot. The Revisions system is tightly coupled to the Activity Logs system, with each revision being linked to the specific "),p=t("Activity"),v=t(" event which created it."),m=e("h2",{id:"revision-fields"},[t("Revision Fields "),e("a",{class:"header-anchor",href:"#revision-fields"},"#")],-1),f=e("ul",null,[e("li",null,[e("strong",null,"Data"),t(" \u2014 A full snapshot of the item "),e("em",null,"after"),t(" the event")]),e("li",null,[e("strong",null,"Delta"),t(" \u2014 The specific field data changed by this event")]),e("li",null,[e("strong",null,"Parent"),t(" \u2014 If this revision was created via a nested relationship")])],-1),g=e("h4",{id:"relevant-guides"},[t("Relevant Guides "),e("a",{class:"header-anchor",href:"#relevant-guides"},"#")],-1),y=t("Reverting an Item"),x={setup(k,{expose:l}){const o={title:"Revisions & Versioning",modularExtension:!1};return l({frontmatter:o}),(b,w)=>{const n=i("router-link"),r=i("DocsWrapper");return c(),d(r,{frontmatter:o},{default:s(()=>[e("div",h,[u,e("p",null,[_,a(n,{to:"/docs/concepts/application/#activity-log"},{default:s(()=>[p]),_:1}),v]),m,f,g,e("ul",null,[e("li",null,[a(n,{to:"/docs/guides/items/#reverting-an-item"},{default:s(()=>[y]),_:1})])])])]),_:1})}}};export{x as default};
@@ -0,0 +1 @@
1
+ var e={avatar:"Avatar",default_provider:"Implicit",published:"Publicat",draft:"Ciorn\u0103",archived:"Arhivat",modules:"Module",module_bar:"Bar\u0103 module",edit_field:"Editeaz\u0103 c\xE2mp",conditions:"Condi\u021Bii",maps:"H\u0103r\u0163i",item_creation:"Creare articol",item_revision:"Revizuire element",enter_a_name:"Introduce\u021Bi un nume...",duplicate_field:"Duplicare c\xE2mp",half_width:"Jum\u0103tate de l\u0103\u0163ime",full_width:"L\u0103\u0163ime total\u0103",group:"Grup",and:"\u015Ei",or:"Sau",fill_width:"Umple l\u0103\u0163ime",field_name_translations:"Traducerile numelui c\xE2mpului",enter_password_to_enable_tfa:"Introduce\u021Bi parola pentru a activa autentificarea \xEEn doi pa\u015Fi",add_field:"Adaug\u0103 c\xE2mp",role_name:"Nume de rol",branch:"Ramur\u0103",leaf:"Frunz\u0103",edit_collection:"Editeaz\u0103 colec\u021Bia",exclusive:"Exclusiv",children:"Copii",db_only_click_to_configure:"Doar baza de date: ap\u0103sa\u021Bi pentru configurare",show_archived_items:"Arat\u0103 elementele arhivate",edited:"Valoare editat\u0103",required:"Necesar",required_for_app_access:"Necesar pentru acces aplica\u0163ie",requires_value:"Necesit\u0103 valoare",create_preset:"Creeaz\u0103 presetare",create_role:"Creeaz\u0103 Rol",create_user:"Creeaz\u0103 utilizator",create_webhook:"Creeaz\u0103 Webhook",invite_users:"Invit\u0103 utilizatori",invite:"Invit\u0103",emails:"E-mailuri",connection_excellent:"Conexiune excelent\u0103",connection_good:"Conexiune bun\u0103",connection_fair:"Conexiune rezonabil\u0103",connection_poor:"Conexiune slab\u0103",rename_folder:"Redenume\u015Fte folderul",delete_folder:"\u015Eterge folderul",reset_bookmark:"Reseteaz\u0103 semnul de carte",rename_bookmark:"Redenume\u015Fte semnul de carte",update_bookmark:"Actualizeaz\u0103 semnul de carte",delete_bookmark:"\u0218terge semn de carte",delete_bookmark_copy:'Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 \u015Fterge\u0163i semnul de carte "{bookmark}"? Aceast\u0103 ac\u0163iune nu poate fi modificat\u0103 ulterior.',logoutReason:{SIGN_OUT:"Deconectat",SESSION_EXPIRED:"Sesiunea a expirat"},public_description:"Controleaz\u0103 ce date API sunt disponibile f\u0103r\u0103 autentificare.",not_allowed:"Nu este permis",directus_version:"Versiune Directus",node_version:"Versiune Node",node_uptime:"Timp de activitate Node",os_type:"Tipul SO",os_version:"Versiunea SO",os_uptime:"Timpul de activitate al SO",os_totalmem:"Memoria SO",archive:"Arhiveaz\u0103",archive_confirm:"Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 arhiva\u0163i acest element?",archive_confirm_count:"Niciun element selectat | Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 arhiva\u0163i acest element? | Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 arhiva\u0163i aceste {count} elemente?",unarchive:"Dezarhivare",unarchive_confirm:"Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 dezarhiva\u0163i acest element?",nested_files_folders_will_be_moved:"Fi\u015Fierele \u015Fi folderele suprapuse vor fi mutate cu un nivel mai sus.",create_field:"Creeaz\u0103 C\xE2mp",auto_generate:"Generare automat\u0103",add_note:"Adaug\u0103 o not\u0103 ajut\u0103toare pentru utilizatori...",default_value:"Valoare implicit\u0103",clear_value:"\u0218terge valoarea",title:"Titlu",checksum:"Sum\u0103 de control",owner:"Proprietar",download:"Desc\u0103rca\u021Bi",created_by:"Creat De",created_on:"Creat Pe",comments:"Comentarii",create_collection:"Creeaz\u0103 Colec\u021Bie",users:"Utilizatori",activity:"Activitate",action:"Ac\u0163iune",ip_address:"Adres\u0103 IP",user_agent:"User Agent",duration:"Durat\u0103",status:"Stare",bookmarks:"Semne de carte",back:"\xCEnapoi",operators:{gt:"Mai mare ca",gte:"Mai mare sau egal cu",contains:"Con\u021Bine"},role:"Rol",create:"Creeaz\u0103",width:"L\u0103\u021Bime",height:"\xCEn\u0103l\u0163ime",wysiwyg_options:{table:"Tabel"},choices:"Op\u021Biuni",deselect:"Deselecta\u0163i",editing_in_batch:"Editare lot de {count} elemente",discard_changes:"Renun\u021B\u0103 la modific\u0103ri",add_new:"Adaugare intrare nou\u0103",all:"Tot",batch_delete_confirm:"Nu au fost selectate articole | Sigur dori\u021Bi s\u0103 \u0219terge\u021Bi acest articol? Aceast\u0103 ac\u021Biune nu poate fi anulat\u0103. | Sigur dori\u021Bi s\u0103 \u0219terge\u021Bi aceste {count} elemente? Aceast\u0103 ac\u021Biune nu poate fi anulat\u0103.",cancel:"Anuleaz\u0103",collection:"Colec\u021Bie",collections:"Colec\u021Bii",fields:{directus_activity:{item:"Cheia primar\u0103 a elementului",action:"Ac\u0163iune",collection:"Colec\u021Bie",timestamp:"Ac\u021Biune pe",user:"Ac\u021Biune de",comment:"Comentariu",user_agent:"User Agent",ip:"Adres\u0103 IP"},directus_collections:{collection:"Colec\u021Bie",icon:"Iconi\u021B\u0103",hidden:"Ascuns"},directus_files:{title:"Titlu",description:"Descriere",tags:"Etichete",location:"Loca\u021Bie",metadata:"Metadate",filesize:"Dimensiune fi\u015Fier",created_on:"Creat Pe",created_by:"Creat De",embed:"\xCEncorpora\u021Bi",uploaded_by:"\xCEnc\u0103rcat de",width:"L\u0103\u021Bime",uploaded_on:"\xCEnc\u0103rcat pe",height:"\xCEn\u0103l\u0163ime",duration:"Durat\u0103"},directus_users:{first_name:"Prenume",last_name:"Nume",email:"Email",password:"Parol\u0103",avatar:"Avatar",location:"Loca\u021Bie",title:"Titlu",description:"Descriere",tags:"Etichete",theme:"Tem\u0103",tfa_secret:"Autentificare \xEEn doi pa\u0219i",status:"Stare",role:"Rol"},directus_fields:{hidden:"Ascuns",translation:"Traducerile numelui c\xE2mpului"},directus_roles:{name:"Nume de rol",description:"Descriere"},directus_webhooks:{status:"Stare"}},field_options:{directus_activity:{create:"Creeaz\u0103"},directus_collections:{archive_divider:"Arhiveaz\u0103"},directus_roles:{fields:{icon_name:"Iconi\u021B\u0103"},collections_name:"Colec\u021Bii"},directus_webhooks:{actions_create:"Creeaz\u0103"}},comment:"Comentariu",delete_field_are_you_sure:'Sunte\u0163i sigur c\u0103 dori\u0163i s\u0103 \u015Fterge\u0163i c\xE2mpul "{field}"? Aceast\u0103 ac\u0163iune nu poate fi modificat\u0103 ulterior.',description:"Descriere",done:"Efectuat",duplicate:"Duplicare",email:"Email",embed:"\xCEncorpora\u021Bi",field:"C\xE2mp | C\xE2mpuri",hidden:"Ascuns",icon:"Iconi\u021B\u0103",info:"Info",password:"Parol\u0103",interfaces:{filter:{all:"Tot"},"system-collection":{collection:"Colec\u021Bie"},"system-collections":{collections:"Colec\u021Bii"},files:{files:"Fi\u015Fiere"},"select-icon":{icon:"Iconi\u021B\u0103"},tags:{tags:"Etichete"}},displays:{collection:{collection:"Colec\u021Bie"},icon:{icon:"Iconi\u021B\u0103"},user:{avatar:"Avatar",both:"Ambele"}},layouts:{cards:{cards:"Carduri",image_source:"Sursa Imaginii",title:"Titlu",subtitle:"Subtitlu"},tabular:{tabular:"Tabel",comfortable:"Confortabil",compact:"Compact",cozy:"Comod"}}},a=e.avatar,i=e.default_provider,r=e.published,t=e.draft,o=e.archived,c=e.modules,n=e.module_bar,l=e.edit_field,d=e.conditions,s=e.maps,_=e.item_creation,u=e.item_revision,v=e.enter_a_name,m=e.duplicate_field,p=e.half_width,f=e.full_width,h=e.group,b=e.and,g=e.or,k=e.fill_width,w=e.field_name_translations,C=e.enter_password_to_enable_tfa,y=e.add_field,A=e.role_name,z=e.branch,S=e.leaf,D=e.edit_collection,I=e.exclusive,T=e.children,x=e.db_only_click_to_configure,E=e.show_archived_items,N=e.edited,R=e.required,P=e.required_for_app_access,q=e.requires_value,O=e.create_preset,L=e.create_role,M=e.create_user,U=e.create_webhook,V=e.invite_users,F=e.invite,G=e.emails,j=e.connection_excellent,B=e.connection_good,H=e.connection_fair,J=e.connection_poor,W=e.rename_folder,X=e.delete_folder,K=e.reset_bookmark,Q=e.rename_bookmark,Y=e.update_bookmark,Z=e.delete_bookmark,$=e.delete_bookmark_copy,ee=e.logoutReason,ae=e.public_description,ie=e.not_allowed,re=e.directus_version,te=e.node_version,oe=e.node_uptime,ce=e.os_type,ne=e.os_version,le=e.os_uptime,de=e.os_totalmem,se=e.archive,_e=e.archive_confirm,ue=e.archive_confirm_count,ve=e.unarchive,me=e.unarchive_confirm,pe=e.nested_files_folders_will_be_moved,fe=e.create_field,he=e.auto_generate,be=e.add_note,ge=e.default_value,ke=e.clear_value,we=e.title,Ce=e.checksum,ye=e.owner,Ae=e.download,ze=e.created_by,Se=e.created_on,De=e.comments,Ie=e.create_collection,Te=e.users,xe=e.activity,Ee=e.action,Ne=e.ip_address,Re=e.user_agent,Pe=e.duration,qe=e.status,Oe=e.bookmarks,Le=e.back,Me=e.operators,Ue=e.role,Ve=e.create,Fe=e.width,Ge=e.height,je=e.wysiwyg_options,Be=e.choices,He=e.deselect,Je=e.editing_in_batch,We=e.discard_changes,Xe=e.add_new,Ke=e.all,Qe=e.batch_delete_confirm,Ye=e.cancel,Ze=e.collection,$e=e.collections,ea=e.fields,aa=e.field_options,ia=e.comment,ra=e.delete_field_are_you_sure,ta=e.description,oa=e.done,ca=e.duplicate,na=e.email,la=e.embed,da=e.field,sa=e.hidden,_a=e.icon,ua=e.info,va=e.password,ma=e.interfaces,pa=e.displays,fa=e.layouts;export{Ee as action,xe as activity,y as add_field,Xe as add_new,be as add_note,Ke as all,b as and,se as archive,_e as archive_confirm,ue as archive_confirm_count,o as archived,he as auto_generate,a as avatar,Le as back,Qe as batch_delete_confirm,Oe as bookmarks,z as branch,Ye as cancel,Ce as checksum,T as children,Be as choices,ke as clear_value,Ze as collection,$e as collections,ia as comment,De as comments,d as conditions,j as connection_excellent,H as connection_fair,B as connection_good,J as connection_poor,Ve as create,Ie as create_collection,fe as create_field,O as create_preset,L as create_role,M as create_user,U as create_webhook,ze as created_by,Se as created_on,x as db_only_click_to_configure,e as default,i as default_provider,ge as default_value,Z as delete_bookmark,$ as delete_bookmark_copy,ra as delete_field_are_you_sure,X as delete_folder,ta as description,He as deselect,re as directus_version,We as discard_changes,pa as displays,oa as done,Ae as download,t as draft,ca as duplicate,m as duplicate_field,Pe as duration,D as edit_collection,l as edit_field,N as edited,Je as editing_in_batch,na as email,G as emails,la as embed,v as enter_a_name,C as enter_password_to_enable_tfa,I as exclusive,da as field,w as field_name_translations,aa as field_options,ea as fields,k as fill_width,f as full_width,h as group,p as half_width,Ge as height,sa as hidden,_a as icon,ua as info,ma as interfaces,F as invite,V as invite_users,Ne as ip_address,_ as item_creation,u as item_revision,fa as layouts,S as leaf,ee as logoutReason,s as maps,n as module_bar,c as modules,pe as nested_files_folders_will_be_moved,oe as node_uptime,te as node_version,ie as not_allowed,Me as operators,g as or,de as os_totalmem,ce as os_type,le as os_uptime,ne as os_version,ye as owner,va as password,ae as public_description,r as published,Q as rename_bookmark,W as rename_folder,R as required,P as required_for_app_access,q as requires_value,K as reset_bookmark,Ue as role,A as role_name,E as show_archived_items,qe as status,we as title,ve as unarchive,me as unarchive_confirm,Y as update_bookmark,Re as user_agent,Te as users,Fe as width,je as wysiwyg_options};
@@ -1 +1 @@
1
- import{r as a,p as c,q as d,w as o,B as e,t as i,P as s}from"./vendor.62143b15.js";const u={class:"markdown-body"},h=e("blockquote",null,[e("p",null,"Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform.")],-1),_=s("Each User is assigned a single Role which determines their "),p=s("Permissions"),m=s(" within the App and API. Roles also include options for configuring platform access, Two-Factor Auth, Module Navigation, and Collection Navigation. You can create an unlimited number of roles, so organize your users in whatever way feels most appropriate."),f=e("p",null,[s("Two default roles, "),e("em",null,"Public"),s(" and "),e("em",null,"Administrators"),s(", are available after installing a clean copy of Directus.")],-1),g=e("h4",{id:"relevant-guides"},[s("Relevant Guides "),e("a",{class:"header-anchor",href:"#relevant-guides"},"#")],-1),b=s("Creating a Role"),v=s("Configuring a Role"),w=s("Configuring Role Permissions"),y=s("Configuring System Permissions"),R=s("Deleting a Role"),P=e("h3",{id:"public-role"},[s("Public Role "),e("a",{class:"header-anchor",href:"#public-role"},"#")],-1),A=e("p",null,[s("Not technically a role, \u201CPublic\u201D can\u2019t be found in the "),e("code",null,"directus_roles"),s(" table. Instead, it represents the "),e("em",null,"lack"),s(" of a role, providing a place to configure permissions for "),e("em",null,"unauthenticated"),s(" users. This role can not be deleted.")],-1),D=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Private by Default"),e("p",null,"All of the data within Directus is private by default. Permissions within the public role can be added by administrators on a case-by-case basis.")],-1),k=e("h3",{id:"administrators-role"},[s("Administrators Role "),e("a",{class:"header-anchor",href:"#administrators-role"},"#")],-1),C=e("p",null,[s("During the installation process, Directus automatically creates an \u201CAdministrators\u201D Role, which is used to provide the initial admin user with full platform access. However this is just a "),e("em",null,"normal"),s(" role, and so it can still be updated, renamed, or even deleted. Keep in mind that your project must maintain at least one role with Admin Access at all times.")],-1),j={setup(N,{expose:l}){const n={title:"Roles",modularExtension:!1};return l({frontmatter:n}),(x,B)=>{const t=a("router-link"),r=a("DocsWrapper");return c(),d(r,{frontmatter:n},{default:o(()=>[e("div",u,[h,e("p",null,[_,i(t,{to:"/docs/concepts/permissions/"},{default:o(()=>[p]),_:1}),m]),f,g,e("ul",null,[e("li",null,[i(t,{to:"/docs/guides/roles/#creating-a-role"},{default:o(()=>[b]),_:1})]),e("li",null,[i(t,{to:"/docs/guides/roles/#configuring-a-role"},{default:o(()=>[v]),_:1})]),e("li",null,[i(t,{to:"/docs/guides/permissions/#configuring-role-permissions"},{default:o(()=>[w]),_:1})]),e("li",null,[i(t,{to:"/docs/guides/permissions/#configuring-system-permissions"},{default:o(()=>[y]),_:1})]),e("li",null,[i(t,{to:"/docs/guides/roles/#deleting-a-role"},{default:o(()=>[R]),_:1})])]),P,A,D,k,C])]),_:1})}}};export{j as default};
1
+ import{r as a,p as c,q as d,w as o,B as e,t as i,P as s}from"./vendor.a626ab9c.js";const u={class:"markdown-body"},h=e("blockquote",null,[e("p",null,"Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform.")],-1),_=s("Each User is assigned a single Role which determines their "),p=s("Permissions"),m=s(" within the App and API. Roles also include options for configuring platform access, Two-Factor Auth, Module Navigation, and Collection Navigation. You can create an unlimited number of roles, so organize your users in whatever way feels most appropriate."),f=e("p",null,[s("Two default roles, "),e("em",null,"Public"),s(" and "),e("em",null,"Administrators"),s(", are available after installing a clean copy of Directus.")],-1),g=e("h4",{id:"relevant-guides"},[s("Relevant Guides "),e("a",{class:"header-anchor",href:"#relevant-guides"},"#")],-1),b=s("Creating a Role"),v=s("Configuring a Role"),w=s("Configuring Role Permissions"),y=s("Configuring System Permissions"),R=s("Deleting a Role"),P=e("h3",{id:"public-role"},[s("Public Role "),e("a",{class:"header-anchor",href:"#public-role"},"#")],-1),A=e("p",null,[s("Not technically a role, \u201CPublic\u201D can\u2019t be found in the "),e("code",null,"directus_roles"),s(" table. Instead, it represents the "),e("em",null,"lack"),s(" of a role, providing a place to configure permissions for "),e("em",null,"unauthenticated"),s(" users. This role can not be deleted.")],-1),D=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Private by Default"),e("p",null,"All of the data within Directus is private by default. Permissions within the public role can be added by administrators on a case-by-case basis.")],-1),k=e("h3",{id:"administrators-role"},[s("Administrators Role "),e("a",{class:"header-anchor",href:"#administrators-role"},"#")],-1),C=e("p",null,[s("During the installation process, Directus automatically creates an \u201CAdministrators\u201D Role, which is used to provide the initial admin user with full platform access. However this is just a "),e("em",null,"normal"),s(" role, and so it can still be updated, renamed, or even deleted. Keep in mind that your project must maintain at least one role with Admin Access at all times.")],-1),j={setup(N,{expose:l}){const n={title:"Roles",modularExtension:!1};return l({frontmatter:n}),(x,B)=>{const t=a("router-link"),r=a("DocsWrapper");return c(),d(r,{frontmatter:n},{default:o(()=>[e("div",u,[h,e("p",null,[_,i(t,{to:"/docs/concepts/permissions/"},{default:o(()=>[p]),_:1}),m]),f,g,e("ul",null,[e("li",null,[i(t,{to:"/docs/guides/roles/#creating-a-role"},{default:o(()=>[b]),_:1})]),e("li",null,[i(t,{to:"/docs/guides/roles/#configuring-a-role"},{default:o(()=>[v]),_:1})]),e("li",null,[i(t,{to:"/docs/guides/permissions/#configuring-role-permissions"},{default:o(()=>[w]),_:1})]),e("li",null,[i(t,{to:"/docs/guides/permissions/#configuring-system-permissions"},{default:o(()=>[y]),_:1})]),e("li",null,[i(t,{to:"/docs/guides/roles/#deleting-a-role"},{default:o(()=>[R]),_:1})])]),P,A,D,k,C])]),_:1})}}};export{j as default};
@@ -1,4 +1,4 @@
1
- import{r as i,p as c,q as u,w as e,B as l,t as s,P as t}from"./vendor.62143b15.js";const h={class:"markdown-body"},d=t("Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform. "),g=t("Learn more about Roles"),p=t("."),m=l("h2",{id:"creating-a-role"},[t("Creating a Role "),l("a",{class:"header-anchor",href:"#creating-a-role"},"#")],-1),_=l("ol",null,[l("li",null,[t("Navigate to "),l("strong",null,"Settings > Roles & Permissions")]),l("li",null,[t("Click the "),l("strong",null,"Create Role"),t(" action button in the header")]),l("li",null,[t("Enter a unique "),l("strong",null,"Role Name")]),l("li",null,[t("Enabling "),l("strong",null,"App Access"),t(" allows logging in to the App")]),l("li",null,[t("Enabling "),l("strong",null,"Admin Access"),t(" gives full permission to project data and Settings")])],-1),f=l("h2",{id:"configuring-a-role"},[t("Configuring a Role "),l("a",{class:"header-anchor",href:"#configuring-a-role"},"#")],-1),v=l("ul",null,[l("li",null,[l("strong",null,"Permissions"),t(" \u2014 Defines the role\u2019s access permissions")]),l("li",null,[l("strong",null,"Role Name"),t(" \u2014 This is the name of the role")]),l("li",null,[l("strong",null,"Role Icon"),t(" \u2014 The icon used throughout the App when referencing this role")]),l("li",null,[l("strong",null,"Description"),t(" \u2014 A helpful note that explains the role\u2019s purpose")]),l("li",null,[l("strong",null,"App Access"),t(" \u2014 Allows logging in to the App")]),l("li",null,[l("strong",null,"Admin Access"),t(" \u2014 Gives full permission to project data and Settings")]),l("li",null,[l("strong",null,"IP Access"),t(" \u2014 An allow-list of IP addresses from which the platform can be accessed, empty allows all")]),l("li",null,[l("strong",null,"Require 2FA"),t(" \u2014 Forces all users within this role to use two-factor authentication")]),l("li",null,[l("strong",null,"Users in Role"),t(" \u2014 A list of all users within this role")]),l("li",null,[l("strong",null,"Module Navigation"),t(" \u2014 Overrides the visible modules")]),l("li",null,[l("strong",null,"Collection Navigation"),t(" \u2014 Overrides the collection module\u2019s navigation")])],-1),b=l("h3",{id:"customizing-the-module-navigation"},[t("Customizing the Module Navigation "),l("a",{class:"header-anchor",href:"#customizing-the-module-navigation"},"#")],-1),w=t("The options in the "),j=t("Module Bar"),A=t(" can be overridden with custom options per role. When this setting is empty, the default modules are used."),C=l("ol",null,[l("li",null,[t("Navigate to "),l("strong",null,"Settings > Roles & Permissions > [Role Name]")]),l("li",null,[t("Scroll to the "),l("strong",null,"Module Navigation"),t(" field")]),l("li",null,[t("Click the "),l("strong",null,"Add a new item"),t(" button to add a module")]),l("li",null,[t("Choose an "),l("strong",null,"Icon"),t(" to display for the module")]),l("li",null,[t("Choose a "),l("strong",null,"Name"),t(" for the module")]),l("li",null,[t("Enter a relative (App) or absolute (external) "),l("strong",null,"link"),t(" for the module")]),l("li",null,[t("Use the drag handles to "),l("strong",null,"drag-and-drop"),t(" the modules into the desired order")])],-1),y=l("p",null,"If you are looking to replicate the default modules, paste the following configuration into the Module Navigation field using the Raw Value field label option.",-1),N=l("pre",null,[l("code",{class:"language-json"},[t(`[
1
+ import{r as i,p as c,q as u,w as e,B as l,t as s,P as t}from"./vendor.a626ab9c.js";const h={class:"markdown-body"},d=t("Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform. "),g=t("Learn more about Roles"),p=t("."),m=l("h2",{id:"creating-a-role"},[t("Creating a Role "),l("a",{class:"header-anchor",href:"#creating-a-role"},"#")],-1),_=l("ol",null,[l("li",null,[t("Navigate to "),l("strong",null,"Settings > Roles & Permissions")]),l("li",null,[t("Click the "),l("strong",null,"Create Role"),t(" action button in the header")]),l("li",null,[t("Enter a unique "),l("strong",null,"Role Name")]),l("li",null,[t("Enabling "),l("strong",null,"App Access"),t(" allows logging in to the App")]),l("li",null,[t("Enabling "),l("strong",null,"Admin Access"),t(" gives full permission to project data and Settings")])],-1),f=l("h2",{id:"configuring-a-role"},[t("Configuring a Role "),l("a",{class:"header-anchor",href:"#configuring-a-role"},"#")],-1),v=l("ul",null,[l("li",null,[l("strong",null,"Permissions"),t(" \u2014 Defines the role\u2019s access permissions")]),l("li",null,[l("strong",null,"Role Name"),t(" \u2014 This is the name of the role")]),l("li",null,[l("strong",null,"Role Icon"),t(" \u2014 The icon used throughout the App when referencing this role")]),l("li",null,[l("strong",null,"Description"),t(" \u2014 A helpful note that explains the role\u2019s purpose")]),l("li",null,[l("strong",null,"App Access"),t(" \u2014 Allows logging in to the App")]),l("li",null,[l("strong",null,"Admin Access"),t(" \u2014 Gives full permission to project data and Settings")]),l("li",null,[l("strong",null,"IP Access"),t(" \u2014 An allow-list of IP addresses from which the platform can be accessed, empty allows all")]),l("li",null,[l("strong",null,"Require 2FA"),t(" \u2014 Forces all users within this role to use two-factor authentication")]),l("li",null,[l("strong",null,"Users in Role"),t(" \u2014 A list of all users within this role")]),l("li",null,[l("strong",null,"Module Navigation"),t(" \u2014 Overrides the visible modules")]),l("li",null,[l("strong",null,"Collection Navigation"),t(" \u2014 Overrides the collection module\u2019s navigation")])],-1),b=l("h3",{id:"customizing-the-module-navigation"},[t("Customizing the Module Navigation "),l("a",{class:"header-anchor",href:"#customizing-the-module-navigation"},"#")],-1),w=t("The options in the "),j=t("Module Bar"),A=t(" can be overridden with custom options per role. When this setting is empty, the default modules are used."),C=l("ol",null,[l("li",null,[t("Navigate to "),l("strong",null,"Settings > Roles & Permissions > [Role Name]")]),l("li",null,[t("Scroll to the "),l("strong",null,"Module Navigation"),t(" field")]),l("li",null,[t("Click the "),l("strong",null,"Add a new item"),t(" button to add a module")]),l("li",null,[t("Choose an "),l("strong",null,"Icon"),t(" to display for the module")]),l("li",null,[t("Choose a "),l("strong",null,"Name"),t(" for the module")]),l("li",null,[t("Enter a relative (App) or absolute (external) "),l("strong",null,"link"),t(" for the module")]),l("li",null,[t("Use the drag handles to "),l("strong",null,"drag-and-drop"),t(" the modules into the desired order")])],-1),y=l("p",null,"If you are looking to replicate the default modules, paste the following configuration into the Module Navigation field using the Raw Value field label option.",-1),N=l("pre",null,[l("code",{class:"language-json"},[t(`[
2
2
  {
3
3
  `),l("span",{class:"hljs-attr"},'"icon"'),t(": "),l("span",{class:"hljs-string"},'"box"'),t(`,
4
4
  `),l("span",{class:"hljs-attr"},'"name"'),t(": "),l("span",{class:"hljs-string"},'"Collections"'),t(`,
@@ -1,4 +1,4 @@
1
- import{r,p as h,q as i,w as l,B as s,t,P as e}from"./vendor.62143b15.js";const d={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=e("Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform. "),f=e("Learn more about Roles"),m=e("."),g=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-role-object"},"The Role Object")]),s("li",null,[s("a",{href:"#list-roles"},"List Roles")]),s("li",null,[s("a",{href:"#retrieve-a-role"},"Retrieve a Role")]),s("li",null,[s("a",{href:"#create-a-role"},"Create a Role")]),s("li",null,[s("a",{href:"#create-multiple-roles"},"Create Multiple Roles")]),s("li",null,[s("a",{href:"#update-a-role"},"Update a Role")]),s("li",null,[s("a",{href:"#update-multiple-roles"},"Update Multiple Roles")]),s("li",null,[s("a",{href:"#delete-a-role"},"Delete a Role")]),s("li",null,[s("a",{href:"#delete-multiple-roles"},"Delete Multiple Roles")])])])])],-1),j=s("hr",null,null,-1),y=s("h2",{id:"the-role-object"},[e("The Role Object "),s("a",{class:"header-anchor",href:"#the-role-object"},"#")],-1),b={class:"two-up"},q={class:"left"},x={class:"definitions"},v=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the role.")],-1),R=s("p",null,[s("code",null,"name"),e(),s("strong",null,"string"),s("br"),e(" Name of the role.")],-1),E=s("p",null,[s("code",null,"icon"),e(),s("strong",null,"string"),s("br"),e(" Icon for the role. Displayed in the Admin App.")],-1),T=s("p",null,[s("code",null,"description"),e(),s("strong",null,"string"),s("br"),e(" Description for the role. Displayed in the Admin App.")],-1),w=s("p",null,[s("code",null,"ip_access"),e(),s("strong",null,"csv"),s("br"),e(" CSV of IP addresses that have access to this role. Allows you to configure an allowlist of IP addresses.")],-1),P=s("p",null,[s("code",null,"enforce_tfa"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not Two-Factor Authentication is required for users in this role.")],-1),A=s("p",null,[s("code",null,"collection_list"),e(),s("strong",null,"object"),s("br"),e(" Override for the collection listing in the navigation of the collections module in the Admin App.")],-1),k=s("p",null,[s("code",null,"admin_access"),e(),s("strong",null,"boolean"),s("br"),e(" If this role is considered an admin role. This means that users in this role have full permissions to everything.")],-1),S=s("p",null,[s("code",null,"app_access"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not users in this role have access to use the Admin App.")],-1),I=s("code",null,"users",-1),D=e(),C=s("strong",null,"one-to-many",-1),L=s("br",null,null,-1),O=e(" The users in this role. One-to-many to "),Q=e("users"),M=e("."),G=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
1
+ import{r,p as h,q as i,w as l,B as s,t,P as e}from"./vendor.a626ab9c.js";const d={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=e("Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform. "),f=e("Learn more about Roles"),m=e("."),g=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-role-object"},"The Role Object")]),s("li",null,[s("a",{href:"#list-roles"},"List Roles")]),s("li",null,[s("a",{href:"#retrieve-a-role"},"Retrieve a Role")]),s("li",null,[s("a",{href:"#create-a-role"},"Create a Role")]),s("li",null,[s("a",{href:"#create-multiple-roles"},"Create Multiple Roles")]),s("li",null,[s("a",{href:"#update-a-role"},"Update a Role")]),s("li",null,[s("a",{href:"#update-multiple-roles"},"Update Multiple Roles")]),s("li",null,[s("a",{href:"#delete-a-role"},"Delete a Role")]),s("li",null,[s("a",{href:"#delete-multiple-roles"},"Delete Multiple Roles")])])])])],-1),j=s("hr",null,null,-1),y=s("h2",{id:"the-role-object"},[e("The Role Object "),s("a",{class:"header-anchor",href:"#the-role-object"},"#")],-1),b={class:"two-up"},q={class:"left"},x={class:"definitions"},v=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the role.")],-1),R=s("p",null,[s("code",null,"name"),e(),s("strong",null,"string"),s("br"),e(" Name of the role.")],-1),E=s("p",null,[s("code",null,"icon"),e(),s("strong",null,"string"),s("br"),e(" Icon for the role. Displayed in the Admin App.")],-1),T=s("p",null,[s("code",null,"description"),e(),s("strong",null,"string"),s("br"),e(" Description for the role. Displayed in the Admin App.")],-1),w=s("p",null,[s("code",null,"ip_access"),e(),s("strong",null,"csv"),s("br"),e(" CSV of IP addresses that have access to this role. Allows you to configure an allowlist of IP addresses.")],-1),P=s("p",null,[s("code",null,"enforce_tfa"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not Two-Factor Authentication is required for users in this role.")],-1),A=s("p",null,[s("code",null,"collection_list"),e(),s("strong",null,"object"),s("br"),e(" Override for the collection listing in the navigation of the collections module in the Admin App.")],-1),k=s("p",null,[s("code",null,"admin_access"),e(),s("strong",null,"boolean"),s("br"),e(" If this role is considered an admin role. This means that users in this role have full permissions to everything.")],-1),S=s("p",null,[s("code",null,"app_access"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not users in this role have access to use the Admin App.")],-1),I=s("code",null,"users",-1),D=e(),C=s("strong",null,"one-to-many",-1),L=s("br",null,null,-1),O=e(" The users in this role. One-to-many to "),Q=e("users"),M=e("."),G=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
2
2
  `),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-string"},'"653925a9-970e-487a-bfc0-ab6c96affcdc"'),e(`,
3
3
  `),s("span",{class:"hljs-attr"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"Admin"'),e(`,
4
4
  `),s("span",{class:"hljs-attr"},'"icon"'),e(": "),s("span",{class:"hljs-string"},'"supervised_user_circle"'),e(`,
@@ -1 +1 @@
1
- import{bA as d}from"./vendor.62143b15.js";function m(i,f){return f.forEach(function(e){Object.keys(e).forEach(function(n){if(n!=="default"&&!(n in i)){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}})}),Object.freeze(i)}var p={exports:{}};(function(i,f){(function(e){e(d.exports)})(function(e){e.defineMode("rpm-changes",function(){var n=/^-+$/,c=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,a=/^[\w+.-]+@[\w.-]+/;return{token:function(o){return o.sol()&&(o.match(n)||o.match(c))?"tag":o.match(a)?"string":(o.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){var n=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,c=/^[a-zA-Z0-9()]+:/,a=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,o=/^%(ifnarch|ifarch|if)/,u=/^%(else|endif)/,l=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,t){var h=r.peek();if(h=="#")return r.skipToEnd(),"comment";if(r.sol()){if(r.match(c))return"header";if(r.match(a))return"atom"}if(r.match(/^\$\w+/)||r.match(/^\$\{\w+\}/))return"def";if(r.match(u))return"keyword";if(r.match(o))return t.controlFlow=!0,"keyword";if(t.controlFlow){if(r.match(l))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(t.controlFlow=!1)}if(r.match(n))return r.eol()&&(t.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(t.macroParameters=!0),"keyword";if(t.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return t.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(t.controlFlow=!1),"def"):(r.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")})})();var g=p.exports,v=Object.freeze(m({__proto__:null,[Symbol.toStringTag]:"Module",default:g},[p.exports]));export{v as r};
1
+ import{bE as d}from"./vendor.a626ab9c.js";function m(i,f){return f.forEach(function(e){Object.keys(e).forEach(function(n){if(n!=="default"&&!(n in i)){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}})}),Object.freeze(i)}var p={exports:{}};(function(i,f){(function(e){e(d.exports)})(function(e){e.defineMode("rpm-changes",function(){var n=/^-+$/,c=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,a=/^[\w+.-]+@[\w.-]+/;return{token:function(o){return o.sol()&&(o.match(n)||o.match(c))?"tag":o.match(a)?"string":(o.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){var n=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,c=/^[a-zA-Z0-9()]+:/,a=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,o=/^%(ifnarch|ifarch|if)/,u=/^%(else|endif)/,l=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,t){var h=r.peek();if(h=="#")return r.skipToEnd(),"comment";if(r.sol()){if(r.match(c))return"header";if(r.match(a))return"atom"}if(r.match(/^\$\w+/)||r.match(/^\$\{\w+\}/))return"def";if(r.match(u))return"keyword";if(r.match(o))return t.controlFlow=!0,"keyword";if(t.controlFlow){if(r.match(l))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(t.controlFlow=!1)}if(r.match(n))return r.eol()&&(t.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(t.macroParameters=!0),"keyword";if(t.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return t.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(t.controlFlow=!1),"def"):(r.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")})})();var g=p.exports,v=Object.freeze(m({__proto__:null,[Symbol.toStringTag]:"Module",default:g},[p.exports]));export{v as r};
@@ -0,0 +1 @@
1
+ import{bE as oe}from"./vendor.a626ab9c.js";import{a as ae}from"./python.67462152.js";import{a as ie}from"./stex.35f42f0e.js";import{o as le}from"./overlay.7f1c5fa5.js";function fe(s,P){return P.forEach(function(f){Object.keys(f).forEach(function(p){if(p!=="default"&&!(p in s)){var i=Object.getOwnPropertyDescriptor(f,p);Object.defineProperty(s,p,i.get?i:{enumerable:!0,get:function(){return f[p]}})}})}),Object.freeze(s)}var L={exports:{}};(function(s,P){(function(f){f(oe.exports,ae.exports,ie.exports,le.exports)})(function(f){f.defineMode("rst",function(p,i){var v=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,b=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,w=/^``[^`\s](?:[^`]*[^`\s])``/,u=/^(?:[\d]+(?:[\.,]\d+)*)/,E=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,_=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,T="[Hh][Tt][Tt][Pp][Ss]?://",q="(?:[\\d\\w.-]+)\\.(?:\\w{2,6})",x="(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*",R=new RegExp("^"+T+q+x),y={token:function(l){if(l.match(v)&&l.match(/\W+|$/,!1))return"strong";if(l.match(b)&&l.match(/\W+|$/,!1))return"em";if(l.match(w)&&l.match(/\W+|$/,!1))return"string-2";if(l.match(u))return"number";if(l.match(E))return"positive";if(l.match(_))return"negative";if(l.match(R))return"link";for(;l.next()!=null&&!(l.match(v,!1)||l.match(b,!1)||l.match(w,!1)||l.match(u,!1)||l.match(E,!1)||l.match(_,!1)||l.match(R,!1)););return null}},W=f.getMode(p,i.backdrop||"rst-base");return f.overlayMode(W,y,!0)},"python","stex"),f.defineMode("rst-base",function(p){function i(c){var e=Array.prototype.slice.call(arguments,1);return c.replace(/{(\d+)}/g,function(r,N){return typeof e[N]!="undefined"?e[N]:r})}var v=f.getMode(p,"python"),b=f.getMode(p,"stex"),w="\\s+",u="(?:\\s*|\\W|$)",E=new RegExp(i("^{0}",u)),_=`(?:[^\\W\\d_](?:[\\w!"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)`,T=new RegExp(i("^{0}",_)),q=`(?:[^\\W\\d_](?:[\\w\\s!"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)`,x=i("(?:{0}|`{1}`)",_,q),R="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",y="(?:[^\\`]+)",W=new RegExp(i("^{0}",y)),l=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),M=new RegExp(i("^\\.\\.{0}",w)),A=new RegExp(i("^_{0}:{1}|^__:{1}",x,u)),j=new RegExp(i("^{0}::{1}",x,u)),S=new RegExp(i("^\\|{0}\\|{1}{2}::{3}",R,w,x,u)),D=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]{1}",x,u)),F=new RegExp(i("^\\[{0}\\]{1}",x,u)),O=new RegExp(i("^\\|{0}\\|",R)),H=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]_",x)),B=new RegExp(i("^\\[{0}\\]_",x)),G=new RegExp(i("^{0}__?",x)),g=new RegExp(i("^`{0}`_",y)),h=new RegExp(i("^:{0}:`{1}`{2}",_,y,u)),m=new RegExp(i("^`{1}`:{0}:{2}",_,y,u)),$=new RegExp(i("^:{0}:{1}",_,u)),J=new RegExp(i("^{0}",x)),K=new RegExp(i("^::{0}",u)),X=new RegExp(i("^\\|{0}\\|",R)),Q=new RegExp(i("^{0}",w)),U=new RegExp(i("^{0}",x)),V=new RegExp(i("^::{0}",u)),Y=new RegExp("^_"),Z=new RegExp(i("^{0}|_",x)),C=new RegExp(i("^:{0}",u)),ee=new RegExp("^::\\s*$"),ce=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");function o(c,e){var r=null;if(c.sol()&&c.match(ce,!1))n(e,I,{mode:v,local:f.startState(v)});else if(c.sol()&&c.match(M))n(e,t),r="meta";else if(c.sol()&&c.match(l))n(e,o),r="header";else if(k(e)==h||c.match(h,!1))switch(d(e)){case 0:n(e,o,a(h,1)),c.match(/^:/),r="meta";break;case 1:n(e,o,a(h,2)),c.match(T),r="keyword",c.current().match(/^(?:math|latex)/)&&(e.tmp_stex=!0);break;case 2:n(e,o,a(h,3)),c.match(/^:`/),r="meta";break;case 3:if(e.tmp_stex&&(e.tmp_stex=void 0,e.tmp={mode:b,local:f.startState(b)}),e.tmp){if(c.peek()=="`"){n(e,o,a(h,4)),e.tmp=void 0;break}r=e.tmp.mode.token(c,e.tmp.local);break}n(e,o,a(h,4)),c.match(W),r="string";break;case 4:n(e,o,a(h,5)),c.match(/^`/),r="meta";break;case 5:n(e,o,a(h,6)),c.match(E);break;default:n(e,o)}else if(k(e)==m||c.match(m,!1))switch(d(e)){case 0:n(e,o,a(m,1)),c.match(/^`/),r="meta";break;case 1:n(e,o,a(m,2)),c.match(W),r="string";break;case 2:n(e,o,a(m,3)),c.match(/^`:/),r="meta";break;case 3:n(e,o,a(m,4)),c.match(T),r="keyword";break;case 4:n(e,o,a(m,5)),c.match(/^:/),r="meta";break;case 5:n(e,o,a(m,6)),c.match(E);break;default:n(e,o)}else if(k(e)==$||c.match($,!1))switch(d(e)){case 0:n(e,o,a($,1)),c.match(/^:/),r="meta";break;case 1:n(e,o,a($,2)),c.match(T),r="keyword";break;case 2:n(e,o,a($,3)),c.match(/^:/),r="meta";break;case 3:n(e,o,a($,4)),c.match(E);break;default:n(e,o)}else if(k(e)==O||c.match(O,!1))switch(d(e)){case 0:n(e,o,a(O,1)),c.match(X),r="variable-2";break;case 1:n(e,o,a(O,2)),c.match(/^_?_?/)&&(r="link");break;default:n(e,o)}else if(c.match(H))n(e,o),r="quote";else if(c.match(B))n(e,o),r="quote";else if(c.match(G))n(e,o),(!c.peek()||c.peek().match(/^\W$/))&&(r="link");else if(k(e)==g||c.match(g,!1))switch(d(e)){case 0:!c.peek()||c.peek().match(/^\W$/)?n(e,o,a(g,1)):c.match(g);break;case 1:n(e,o,a(g,2)),c.match(/^`/),r="link";break;case 2:n(e,o,a(g,3)),c.match(W);break;case 3:n(e,o,a(g,4)),c.match(/^`_/),r="link";break;default:n(e,o)}else c.match(ee)?n(e,re):c.next()&&n(e,o);return r}function t(c,e){var r=null;if(k(e)==S||c.match(S,!1))switch(d(e)){case 0:n(e,t,a(S,1)),c.match(X),r="variable-2";break;case 1:n(e,t,a(S,2)),c.match(Q);break;case 2:n(e,t,a(S,3)),c.match(U),r="keyword";break;case 3:n(e,t,a(S,4)),c.match(V),r="meta";break;default:n(e,o)}else if(k(e)==j||c.match(j,!1))switch(d(e)){case 0:n(e,t,a(j,1)),c.match(J),r="keyword",c.current().match(/^(?:math|latex)/)?e.tmp_stex=!0:c.current().match(/^python/)&&(e.tmp_py=!0);break;case 1:n(e,t,a(j,2)),c.match(K),r="meta",(c.match(/^latex\s*$/)||e.tmp_stex)&&(e.tmp_stex=void 0,n(e,I,{mode:b,local:f.startState(b)}));break;case 2:n(e,t,a(j,3)),(c.match(/^python\s*$/)||e.tmp_py)&&(e.tmp_py=void 0,n(e,I,{mode:v,local:f.startState(v)}));break;default:n(e,o)}else if(k(e)==A||c.match(A,!1))switch(d(e)){case 0:n(e,t,a(A,1)),c.match(Y),c.match(Z),r="link";break;case 1:n(e,t,a(A,2)),c.match(C),r="meta";break;default:n(e,o)}else c.match(D)||c.match(F)?(n(e,o),r="quote"):(c.eatSpace(),c.eol()?n(e,o):(c.skipToEnd(),n(e,ne),r="comment"));return r}function ne(c,e){return z(c,e,"comment")}function re(c,e){return z(c,e,"meta")}function z(c,e,r){return c.eol()||c.eatSpace()?(c.skipToEnd(),r):(n(e,o),null)}function I(c,e){return e.ctx.mode&&e.ctx.local?c.sol()?(c.eatSpace()||n(e,o),null):e.ctx.mode.token(c,e.ctx.local):(n(e,o),null)}function a(c,e,r,N){return{phase:c,stage:e,mode:r,local:N}}function n(c,e,r){c.tok=e,c.ctx=r||{}}function d(c){return c.ctx.stage||0}function k(c){return c.ctx.phase}return{startState:function(){return{tok:o,ctx:a(void 0,0)}},copyState:function(c){var e=c.ctx,r=c.tmp;return e.local&&(e={mode:e.mode,local:f.copyState(e.mode,e.local)}),r&&(r={mode:r.mode,local:f.copyState(r.mode,r.local)}),{tok:c.tok,ctx:e,tmp:r}},innerMode:function(c){return c.tmp?{state:c.tmp.local,mode:c.tmp.mode}:c.ctx.mode?{state:c.ctx.local,mode:c.ctx.mode}:null},token:function(c,e){return e.tok(c,e)}}},"python","stex"),f.defineMIME("text/x-rst","rst")})})();var ue=L.exports,_e=Object.freeze(fe({__proto__:null,[Symbol.toStringTag]:"Module",default:ue},[L.exports]));export{_e as r};
@@ -1 +1 @@
1
- import{bA as I}from"./vendor.62143b15.js";function A(b,_){return _.forEach(function(u){Object.keys(u).forEach(function(d){if(d!=="default"&&!(d in b)){var h=Object.getOwnPropertyDescriptor(u,d);Object.defineProperty(b,d,h.get?h:{enumerable:!0,get:function(){return u[d]}})}})}),Object.freeze(b)}var s={exports:{}};(function(b,_){(function(u){u(I.exports)})(function(u){function d(p){for(var f={},l=0,a=p.length;l<a;++l)f[p[l]]=!0;return f}var h=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],y=d(h),g=d(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),w=d(["end","until"]),z={"[":"]","{":"}","(":")"},E={"]":"[","}":"{",")":"("};u.defineMode("ruby",function(p){var f;function l(e,i,n){return n.tokenize.push(e),e(i,n)}function a(e,i){if(e.sol()&&e.match("=begin")&&e.eol())return i.tokenize.push(O),"comment";if(e.eatSpace())return null;var n=e.next(),r;if(n=="`"||n=="'"||n=='"')return l(v(n,"string",n=='"'||n=="`"),e,i);if(n=="/")return W(e)?l(v(n,"string-2",!0),e,i):"operator";if(n=="%"){var t="string",o=!0;e.eat("s")?t="atom":e.eat(/[WQ]/)?t="string":e.eat(/[r]/)?t="string-2":e.eat(/[wxq]/)&&(t="string",o=!1);var c=e.eat(/[^\w\s=]/);return c?(z.propertyIsEnumerable(c)&&(c=z[c]),l(v(c,t,o,!0),e,i)):"operator"}else{if(n=="#")return e.skipToEnd(),"comment";if(n=="<"&&(r=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return l(L(r[2],r[1]),e,i);if(n=="0")return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(n))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(n=="?"){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}else{if(n==":")return e.eat("'")?l(v("'","atom",!1),e,i):e.eat('"')?l(v('"',"atom",!0),e,i):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if(n=="@"&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(n=="$")return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(n))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if(n=="|"&&(i.varList||i.lastTok=="{"||i.lastTok=="do"))return f="|",null;if(/[\(\)\[\]{}\\;]/.test(n))return f=n,null;if(n=="-"&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(n)){var k=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return n=="."&&!k&&(f="."),"operator"}else return null}}}function W(e){for(var i=e.pos,n=0,r,t=!1,o=!1;(r=e.next())!=null;)if(o)o=!1;else{if("[{(".indexOf(r)>-1)n++;else if("]})".indexOf(r)>-1){if(n--,n<0)break}else if(r=="/"&&n==0){t=!0;break}o=r=="\\"}return e.backUp(e.pos-i),t}function x(e){return e||(e=1),function(i,n){if(i.peek()=="}"){if(e==1)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](i,n);n.tokenize[n.tokenize.length-1]=x(e-1)}else i.peek()=="{"&&(n.tokenize[n.tokenize.length-1]=x(e+1));return a(i,n)}}function T(){var e=!1;return function(i,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](i,n)):(e=!0,a(i,n))}}function v(e,i,n,r){return function(t,o){var c=!1,k;for(o.context.type==="read-quoted-paused"&&(o.context=o.context.prev,t.eat("}"));(k=t.next())!=null;){if(k==e&&(r||!c)){o.tokenize.pop();break}if(n&&k=="#"&&!c){if(t.eat("{")){e=="}"&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(x());break}else if(/[@\$]/.test(t.peek())){o.tokenize.push(T());break}}c=!c&&k=="\\"}return i}}function L(e,i){return function(n,r){return i&&n.eatSpace(),n.match(e)?r.tokenize.pop():n.skipToEnd(),"string"}}function O(e,i){return e.sol()&&e.match("=end")&&e.eol()&&i.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[a],indented:0,context:{type:"top",indented:-p.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,i){f=null,e.sol()&&(i.indented=e.indentation());var n=i.tokenize[i.tokenize.length-1](e,i),r,t=f;if(n=="ident"){var o=e.current();n=i.lastTok=="."?"property":y.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(o)?"tag":i.lastTok=="def"||i.lastTok=="class"||i.varList?"def":"variable",n=="keyword"&&(t=o,g.propertyIsEnumerable(o)?r="indent":w.propertyIsEnumerable(o)?r="dedent":((o=="if"||o=="unless")&&e.column()==e.indentation()||o=="do"&&i.context.indented<i.indented)&&(r="indent"))}return(f||n&&n!="comment")&&(i.lastTok=t),f=="|"&&(i.varList=!i.varList),r=="indent"||/[\(\[\{]/.test(f)?i.context={prev:i.context,type:f||n,indented:i.indented}:(r=="dedent"||/[\)\]\}]/.test(f))&&i.context.prev&&(i.context=i.context.prev),e.eol()&&(i.continuedLine=f=="\\"||n=="operator"),n},indent:function(e,i){if(e.tokenize[e.tokenize.length-1]!=a)return u.Pass;var n=i&&i.charAt(0),r=e.context,t=r.type==E[n]||r.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(i);return r.indented+(t?0:p.indentUnit)+(e.continuedLine?p.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),u.defineMIME("text/x-ruby","ruby"),u.registerHelper("hintWords","ruby",h)})})();var $=s.exports,B=Object.freeze(A({__proto__:null,[Symbol.toStringTag]:"Module",default:$},[s.exports]));export{s as a,B as r};
1
+ import{bE as I}from"./vendor.a626ab9c.js";function $(b,_){return _.forEach(function(u){Object.keys(u).forEach(function(d){if(d!=="default"&&!(d in b)){var h=Object.getOwnPropertyDescriptor(u,d);Object.defineProperty(b,d,h.get?h:{enumerable:!0,get:function(){return u[d]}})}})}),Object.freeze(b)}var s={exports:{}};(function(b,_){(function(u){u(I.exports)})(function(u){function d(p){for(var f={},l=0,a=p.length;l<a;++l)f[p[l]]=!0;return f}var h=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],y=d(h),g=d(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),w=d(["end","until"]),z={"[":"]","{":"}","(":")"},E={"]":"[","}":"{",")":"("};u.defineMode("ruby",function(p){var f;function l(e,i,n){return n.tokenize.push(e),e(i,n)}function a(e,i){if(e.sol()&&e.match("=begin")&&e.eol())return i.tokenize.push(O),"comment";if(e.eatSpace())return null;var n=e.next(),r;if(n=="`"||n=="'"||n=='"')return l(v(n,"string",n=='"'||n=="`"),e,i);if(n=="/")return W(e)?l(v(n,"string-2",!0),e,i):"operator";if(n=="%"){var t="string",o=!0;e.eat("s")?t="atom":e.eat(/[WQ]/)?t="string":e.eat(/[r]/)?t="string-2":e.eat(/[wxq]/)&&(t="string",o=!1);var c=e.eat(/[^\w\s=]/);return c?(z.propertyIsEnumerable(c)&&(c=z[c]),l(v(c,t,o,!0),e,i)):"operator"}else{if(n=="#")return e.skipToEnd(),"comment";if(n=="<"&&(r=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return l(L(r[2],r[1]),e,i);if(n=="0")return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(n))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(n=="?"){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}else{if(n==":")return e.eat("'")?l(v("'","atom",!1),e,i):e.eat('"')?l(v('"',"atom",!0),e,i):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if(n=="@"&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(n=="$")return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(n))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if(n=="|"&&(i.varList||i.lastTok=="{"||i.lastTok=="do"))return f="|",null;if(/[\(\)\[\]{}\\;]/.test(n))return f=n,null;if(n=="-"&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(n)){var k=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return n=="."&&!k&&(f="."),"operator"}else return null}}}function W(e){for(var i=e.pos,n=0,r,t=!1,o=!1;(r=e.next())!=null;)if(o)o=!1;else{if("[{(".indexOf(r)>-1)n++;else if("]})".indexOf(r)>-1){if(n--,n<0)break}else if(r=="/"&&n==0){t=!0;break}o=r=="\\"}return e.backUp(e.pos-i),t}function x(e){return e||(e=1),function(i,n){if(i.peek()=="}"){if(e==1)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](i,n);n.tokenize[n.tokenize.length-1]=x(e-1)}else i.peek()=="{"&&(n.tokenize[n.tokenize.length-1]=x(e+1));return a(i,n)}}function T(){var e=!1;return function(i,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](i,n)):(e=!0,a(i,n))}}function v(e,i,n,r){return function(t,o){var c=!1,k;for(o.context.type==="read-quoted-paused"&&(o.context=o.context.prev,t.eat("}"));(k=t.next())!=null;){if(k==e&&(r||!c)){o.tokenize.pop();break}if(n&&k=="#"&&!c){if(t.eat("{")){e=="}"&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(x());break}else if(/[@\$]/.test(t.peek())){o.tokenize.push(T());break}}c=!c&&k=="\\"}return i}}function L(e,i){return function(n,r){return i&&n.eatSpace(),n.match(e)?r.tokenize.pop():n.skipToEnd(),"string"}}function O(e,i){return e.sol()&&e.match("=end")&&e.eol()&&i.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[a],indented:0,context:{type:"top",indented:-p.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,i){f=null,e.sol()&&(i.indented=e.indentation());var n=i.tokenize[i.tokenize.length-1](e,i),r,t=f;if(n=="ident"){var o=e.current();n=i.lastTok=="."?"property":y.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(o)?"tag":i.lastTok=="def"||i.lastTok=="class"||i.varList?"def":"variable",n=="keyword"&&(t=o,g.propertyIsEnumerable(o)?r="indent":w.propertyIsEnumerable(o)?r="dedent":((o=="if"||o=="unless")&&e.column()==e.indentation()||o=="do"&&i.context.indented<i.indented)&&(r="indent"))}return(f||n&&n!="comment")&&(i.lastTok=t),f=="|"&&(i.varList=!i.varList),r=="indent"||/[\(\[\{]/.test(f)?i.context={prev:i.context,type:f||n,indented:i.indented}:(r=="dedent"||/[\)\]\}]/.test(f))&&i.context.prev&&(i.context=i.context.prev),e.eol()&&(i.continuedLine=f=="\\"||n=="operator"),n},indent:function(e,i){if(e.tokenize[e.tokenize.length-1]!=a)return u.Pass;var n=i&&i.charAt(0),r=e.context,t=r.type==E[n]||r.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(i);return r.indented+(t?0:p.indentUnit)+(e.continuedLine?p.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),u.defineMIME("text/x-ruby","ruby"),u.registerHelper("hintWords","ruby",h)})})();var j=s.exports,B=Object.freeze($({__proto__:null,[Symbol.toStringTag]:"Module",default:j},[s.exports]));export{s as a,B as r};