@directus/app 9.7.1 → 9.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/@directus_extensions-sdk.6a88b0f4.entry.js +1 -0
- package/dist/assets/{active-line.6375d8ad.js → active-line.abea5a9c.js} +1 -1
- package/dist/assets/{activity-log.de8d5bc0.js → activity-log.4e41ba72.js} +1 -1
- package/dist/assets/{activity.3a289d00.js → activity.be984fb6.js} +2 -2
- package/dist/assets/{apl.1708cb28.js → apl.a00caba3.js} +1 -1
- package/dist/assets/ar-SA.48a35bb7.js +1 -0
- package/dist/assets/{asciiarmor.e2285682.js → asciiarmor.0aa51f1f.js} +1 -1
- package/dist/assets/{asn.1.fe12a5dc.js → asn.1.9704888b.js} +1 -1
- package/dist/assets/{asterisk.44d442de.js → asterisk.600840fc.js} +1 -1
- package/dist/assets/{authentication.fa5f5fbf.js → authentication.a92d9423.js} +5 -5
- package/dist/assets/{autorefresh.f0e90988.js → autorefresh.1e21c42b.js} +1 -1
- package/dist/assets/{aws.2ea60aef.js → aws.e45226e2.js} +1 -1
- package/dist/assets/{backing-directus.d243249f.js → backing-directus.49225ce6.js} +1 -1
- package/dist/assets/bg-BG.b5eb28ac.js +2 -0
- package/dist/assets/br-FR.986ec639.js +1 -0
- package/dist/assets/{brainfuck.ad35519f.js → brainfuck.1e4b4eb1.js} +1 -1
- package/dist/assets/ca-ES.56d2029e.js +1 -0
- package/dist/assets/{cli.762d4191.js → cli.05ed41b2.js} +5 -5
- package/dist/assets/{cli.363cb692.js → cli.e26acb28.js} +3 -3
- package/dist/assets/{clike.5b5b5e72.js → clike.dc304041.js} +1 -1
- package/dist/assets/{clojure.252cb52a.js → clojure.f8e8933d.js} +1 -1
- package/dist/assets/{cloudron.fb83901b.js → cloudron.7a7c23f9.js} +1 -1
- package/dist/assets/{cmake.ec70f2a6.js → cmake.65af898d.js} +1 -1
- package/dist/assets/{cobol.4ab4edec.js → cobol.ad22984c.js} +1 -1
- package/dist/assets/{codebase-overview.58ee046d.js → codebase-overview.87d26c65.js} +1 -1
- package/dist/assets/{coffeescript.e9fb6ceb.js → coffeescript.afc1aad8.js} +1 -1
- package/dist/assets/{collections.bc720d33.js → collections.44c6300b.js} +4 -4
- package/dist/assets/{commonlisp.fb62c5ad.js → commonlisp.76fd7a26.js} +1 -1
- package/dist/assets/{config-options.1dc0d5ed.js → config-options.7f7ccdfb.js} +12 -12
- package/dist/assets/{content-collections.84a369f0.js → content-collections.c9c672d0.js} +1 -1
- package/dist/assets/{content-items.284eff30.js → content-items.4b31c7b8.js} +1 -1
- package/dist/assets/{content.8f45d29b.js → content.a121c4e2.js} +1 -1
- package/dist/assets/{creating-extensions.f95a89af.js → creating-extensions.84f93517.js} +4 -4
- package/dist/assets/{crystal.c3fd0f99.js → crystal.aa9896b4.js} +1 -1
- package/dist/assets/cs-CZ.21eb314a.js +1 -0
- package/dist/assets/{css.bce2e857.js → css.7bfded2c.js} +1 -1
- package/dist/assets/{cypher.240e0449.js → cypher.83f1f068.js} +1 -1
- package/dist/assets/{d.3b7d124d.js → d.ec3a4bfa.js} +1 -1
- package/dist/assets/da-DK.e857b021.js +1 -0
- package/dist/assets/{dart.87d21eb3.js → dart.3ebe28fd.js} +1 -1
- package/dist/assets/{data-model.c1aabf84.js → data-model.eed0cfd7.js} +1 -1
- package/dist/assets/de-DE.ec2886ab.js +1 -0
- package/dist/assets/{diff.0485c08c.js → diff.6609b473.js} +1 -1
- package/dist/assets/{digitalocean-app-platform.2a64aa2b.js → digitalocean-app-platform.657cbe04.js} +2 -2
- package/dist/assets/{displays.b69d4a64.js → displays.363da4e2.js} +4 -4
- package/dist/assets/{django.c5439874.js → django.87c18b51.js} +1 -1
- package/dist/assets/{docker.10363ed7.js → docker.4f8ae677.js} +1 -1
- package/dist/assets/{dockerfile.09928133.js → dockerfile.f24a5abb.js} +1 -1
- package/dist/assets/{documentation.03c2bbdf.js → documentation.8a170431.js} +1 -1
- package/dist/assets/{dtd.2cbc993e.js → dtd.fdaf06e1.js} +1 -1
- package/dist/assets/{dylan.1c4709a8.js → dylan.efa621ed.js} +1 -1
- package/dist/assets/{ebnf.4eace14d.js → ebnf.758e105f.js} +1 -1
- package/dist/assets/{ecl.86ab1d92.js → ecl.ee402f8b.js} +1 -1
- package/dist/assets/{eiffel.d65fb100.js → eiffel.6fdb661b.js} +1 -1
- package/dist/assets/el-GR.b15e80c2.js +1 -0
- package/dist/assets/{elm.ba340dcd.js → elm.19d667b0.js} +1 -1
- package/dist/assets/{email-templates.5d338a5d.js → email-templates.4e6edece.js} +2 -2
- package/dist/assets/en-CA.e43c4502.js +1 -0
- package/dist/assets/en-GB.0ad6cc93.js +1 -0
- package/dist/assets/{endpoints.dc405b01.js → endpoints.9f52f90e.js} +2 -2
- package/dist/assets/{erlang.6d8de3ae.js → erlang.9de2b6a5.js} +1 -1
- package/dist/assets/es-419.e287f065.js +1 -0
- package/dist/assets/es-CL.0d49105b.js +1 -0
- package/dist/assets/es-ES.e38e7128.js +1 -0
- package/dist/assets/et-EE.98069bd5.js +3 -0
- package/dist/assets/{extensions.46c0c4d5.js → extensions.ef388d4c.js} +2 -2
- package/dist/assets/fa-IR.1fe08a4a.js +1 -0
- package/dist/assets/{factor.3a8a4e9e.js → factor.48b8a3ef.js} +1 -1
- package/dist/assets/{faq.f30d939a.js → faq.af3fc9a5.js} +1 -1
- package/dist/assets/{fcl.40019ca5.js → fcl.02ca64a1.js} +1 -1
- package/dist/assets/fi-FI.afa1b4dc.js +1 -0
- package/dist/assets/{fields.a57e7d83.js → fields.2664e4a3.js} +3 -3
- package/dist/assets/{file-library.bc27695e.js → file-library.fb43136a.js} +1 -1
- package/dist/assets/{files.7a74d1e5.js → files.743ea6fa.js} +9 -9
- package/dist/assets/{filter-rules.883e19c8.js → filter-rules.3c7bc379.js} +1 -1
- package/dist/assets/{filters.f6249cf7.js → filters.906d441f.js} +1 -1
- package/dist/assets/fo-FO.ffe478b0.js +1 -0
- package/dist/assets/{folders.de1fb384.js → folders.f4482879.js} +4 -4
- package/dist/assets/{forth.9eeae1ad.js → forth.e689b3eb.js} +1 -1
- package/dist/assets/{fortran.2f0c1e58.js → fortran.6a5fc001.js} +1 -1
- package/dist/assets/fr-CA.819e1769.js +1 -0
- package/dist/assets/fr-FR.e66806fc.js +1 -0
- package/dist/assets/{gas.c7c58752.js → gas.2daa1304.js} +1 -1
- package/dist/assets/{gcp.840b8fd1.js → gcp.7df0ea83.js} +3 -3
- package/dist/assets/{gfm.89f8b0da.js → gfm.f3e8b40f.js} +1 -1
- package/dist/assets/{gherkin.0a58b297.js → gherkin.b43a3252.js} +1 -1
- package/dist/assets/{github-ci.6ee6ced1.js → github-ci.5fbe15aa.js} +2 -2
- package/dist/assets/{glossary.351c390e.js → glossary.22a75054.js} +1 -1
- package/dist/assets/{go.cffa3b2e.js → go.63f87011.js} +1 -1
- package/dist/assets/{groovy.3cb854bc.js → groovy.16ddd911.js} +1 -1
- package/dist/assets/{haml.11c77bc4.js → haml.9443aeec.js} +1 -1
- package/dist/assets/{handlebars.9ae7286e.js → handlebars.23e8be7a.js} +1 -1
- package/dist/assets/{haskell-literate.65e44262.js → haskell-literate.758ca559.js} +1 -1
- package/dist/assets/{haskell.e1faad6e.js → haskell.9e54d423.js} +1 -1
- package/dist/assets/{haxe.bb82fb6d.js → haxe.24bb4baa.js} +1 -1
- package/dist/assets/hi-IN.37411d7d.js +1 -0
- package/dist/assets/{hooks.481ce879.js → hooks.b1e615f8.js} +1 -1
- package/dist/assets/hr-HR.ab611e2d.js +1 -0
- package/dist/assets/{htmlembedded.72e58237.js → htmlembedded.bfe7ab41.js} +1 -1
- package/dist/assets/{htmlmixed.73a6225e.js → htmlmixed.bb060c99.js} +1 -1
- package/dist/assets/{http.b18b22e3.js → http.0a0f008a.js} +1 -1
- package/dist/assets/hu-HU.72c70fe7.js +1 -0
- package/dist/assets/id-ID.ca6d20b9.js +1 -0
- package/dist/assets/{idl.6596cd41.js → idl.e488de81.js} +1 -1
- package/dist/assets/{iis.4ebc99ef.js → iis.eef9978f.js} +2 -2
- package/dist/assets/{index.1242a7ae.js → index.00230ef2.js} +1 -1
- package/dist/assets/{index.33336da1.js → index.0f87b330.js} +1 -1
- package/dist/assets/{index.290accca.js → index.11b1d4d6.js} +1 -1
- package/dist/assets/{index.cc86593a.js → index.1509d4cc.js} +1 -1
- package/dist/assets/{index.a842af3c.js → index.1556730f.js} +1 -1
- package/dist/assets/{index.66e1b7f7.js → index.17322a75.js} +1 -1
- package/dist/assets/{index.7c617be3.js → index.19bafff6.js} +1 -1
- package/dist/assets/{index.243d5e7b.js → index.1f6df8f3.js} +1 -1
- package/dist/assets/{index.5e4442c6.js → index.209dfd3c.js} +1 -1
- package/dist/assets/{index.a7239a95.js → index.225ca76b.js} +1 -1
- package/dist/assets/{index.5aa4c214.js → index.27b9d143.js} +1 -1
- package/dist/assets/{index.1980416e.js → index.2990b353.js} +1 -1
- package/dist/assets/{index.72267c6b.js → index.2aa210ef.js} +1 -1
- package/dist/assets/{index.80ed1eef.js → index.2b9b12e5.js} +1 -1
- package/dist/assets/{index.a11c3487.js → index.2d5f1100.js} +1 -1
- package/dist/assets/{index.674e631d.js → index.2fa715a7.js} +1 -1
- package/dist/assets/{index.7c0a7bfe.js → index.3606730a.js} +1 -1
- package/dist/assets/{index.204221af.js → index.3891403e.js} +1 -1
- package/dist/assets/{index.7110f06c.js → index.38dcd045.js} +1 -1
- package/dist/assets/{index.c0dc6448.js → index.3ccb6082.js} +1 -1
- package/dist/assets/{index.a0a7b403.js → index.3ea7b619.js} +1 -1
- package/dist/assets/{index.ed8bef08.js → index.3ee8527a.js} +1 -1
- package/dist/assets/{index.b63d3efb.js → index.43735b46.js} +1 -1
- package/dist/assets/{index.451644b7.js → index.4a071c64.js} +1 -1
- package/dist/assets/{index.598d0a93.js → index.4affbacb.js} +1 -1
- package/dist/assets/{index.81a41182.js → index.4e0ab8dd.js} +1 -1
- package/dist/assets/{index.0e7739e5.js → index.517b48c5.js} +1 -1
- package/dist/assets/{index.26dab856.js → index.56246fd1.js} +1 -1
- package/dist/assets/{index.ed3eb336.js → index.5aaa9002.js} +1 -1
- package/dist/assets/{index.1da570e0.js → index.5aaef0f5.js} +1 -1
- package/dist/assets/index.5bac3394.entry.js +542 -0
- package/dist/assets/{index.e25325da.js → index.5efef841.js} +1 -1
- package/dist/assets/{index.56390c1c.js → index.5f45ee1c.js} +1 -1
- package/dist/assets/{index.c48ea2dd.js → index.6a46a652.js} +1 -1
- package/dist/assets/{index.530e8e3d.js → index.6b1d2be1.js} +1 -1
- package/dist/assets/{index.781c12a9.js → index.6f370662.js} +1 -1
- package/dist/assets/{index.0fe387ed.js → index.70c2751c.js} +1 -1
- package/dist/assets/{index.a685b380.js → index.7829f5d8.js} +1 -1
- package/dist/assets/{index.4f95210a.js → index.7898e2da.js} +1 -1
- package/dist/assets/{index.15d25a9a.js → index.79882312.js} +1 -1
- package/dist/assets/{index.97725763.js → index.7a1461df.js} +1 -1
- package/dist/assets/{index.966c8297.js → index.7f70333f.js} +1 -1
- package/dist/assets/{index.b9d60646.js → index.87c635a5.js} +1 -1
- package/dist/assets/{index.35e56ebe.js → index.8a723a92.js} +1 -1
- package/dist/assets/{index.858628e0.js → index.8a7af2f4.js} +1 -1
- package/dist/assets/{index.8c95f791.js → index.8d80b40a.js} +1 -1
- package/dist/assets/{index.1044f1b9.js → index.97467629.js} +1 -1
- package/dist/assets/{index.d8e33291.js → index.98b80c09.js} +1 -1
- package/dist/assets/{index.3d9abe2a.js → index.a06f1268.js} +1 -1
- package/dist/assets/{index.38cc4e96.js → index.a65d3053.js} +1 -1
- package/dist/assets/{index.3a3927a1.js → index.a851960c.js} +1 -1
- package/dist/assets/{index.edbb286b.js → index.aa4177f9.js} +1 -1
- package/dist/assets/{index.22fbda34.js → index.af2cbd13.js} +1 -1
- package/dist/assets/{index.c50bcd37.js → index.b3de25f7.js} +1 -1
- package/dist/assets/{index.4f1c9e2c.js → index.bd60d2ff.js} +1 -1
- package/dist/assets/{index.9718529e.js → index.be449ac3.js} +1 -1
- package/dist/assets/{index.d04651a5.js → index.bea32c39.js} +1 -1
- package/dist/assets/{index.5d9e83b8.js → index.bee94ac8.js} +1 -1
- package/dist/assets/{index.bfd9be8b.js → index.c46cec0b.js} +1 -1
- package/dist/assets/{index.9033efd4.js → index.c660c1b8.js} +1 -1
- package/dist/assets/{index.33dd62e3.js → index.c988211f.js} +1 -1
- package/dist/assets/{index.7ac0116c.js → index.cfaefc8a.js} +1 -1
- package/dist/assets/{index.c32660ce.js → index.d4bf7d76.js} +1 -1
- package/dist/assets/{index.2b95062f.js → index.d9f46f43.js} +1 -1
- package/dist/assets/{index.bebee43c.js → index.dc9a0145.js} +1 -1
- package/dist/assets/index.df92cd9e.js +26 -0
- package/dist/assets/{index.96811e72.js → index.e03b0ae8.js} +1 -1
- package/dist/assets/index.e0506f3a.css +1 -0
- package/dist/assets/{index.286b115e.js → index.e2ee7cbb.js} +1 -1
- package/dist/assets/{index.e5aa4fb4.js → index.e3a77573.js} +1 -1
- package/dist/assets/{index.13c42333.js → index.e3df6478.js} +1 -1
- package/dist/assets/{index.d196ee40.js → index.e641f513.js} +1 -1
- package/dist/assets/{index.5306b116.js → index.e7037868.js} +1 -1
- package/dist/assets/{index.e568b9e3.js → index.ea05e41c.js} +1 -1
- package/dist/assets/{index.4b3944b1.js → index.eab8de80.js} +1 -1
- package/dist/assets/{index.8ce7a16f.js → index.eae13b09.js} +1 -1
- package/dist/assets/{index.eb479801.js → index.ecd86516.js} +1 -1
- package/dist/assets/{index.0286776b.js → index.ee8728a8.js} +1 -1
- package/dist/assets/{index.a2ad3c46.js → index.f5754cc1.js} +1 -1
- package/dist/assets/{index.20df85c5.js → index.f5ea85c0.js} +1 -1
- package/dist/assets/{index.f6b60290.js → index.f80c179a.js} +1 -1
- package/dist/assets/{index.1f9b2432.js → index.faf1336c.js} +1 -1
- package/dist/assets/{index.1d9d2719.js → index.fc6dba99.js} +1 -1
- package/dist/assets/{input-rich-text-html.c9156531.js → input-rich-text-html.edcdd41e.js} +29 -29
- package/dist/assets/{insights.bb71b59c.js → insights.dd2f1319.js} +1 -1
- package/dist/assets/{installation.69c6e8b3.js → installation.03c76b82.js} +1 -1
- package/dist/assets/{interfaces.1651e5d5.js → interfaces.8a75b0b1.js} +3 -3
- package/dist/assets/{introduction.fff52202.js → introduction.069a697e.js} +2 -2
- package/dist/assets/{introduction.f7647fc1.js → introduction.1442bb90.js} +3 -3
- package/dist/assets/{introduction.a63d87df.js → introduction.296a12be.js} +1 -1
- package/dist/assets/introduction.4f6984ac.js +1 -0
- package/dist/assets/it-IT.66c00a2e.js +1 -0
- package/dist/assets/{items.76a09b87.js → items.16c6da62.js} +9 -9
- package/dist/assets/ja-JP.fd245edd.js +1 -0
- package/dist/assets/{javascript-hint.36fc2c99.js → javascript-hint.069603da.js} +1 -1
- package/dist/assets/{javascript.03e76510.js → javascript.e77a31d7.js} +1 -1
- package/dist/assets/{jinja2.fd7fe523.js → jinja2.62d35d26.js} +1 -1
- package/dist/assets/{jsx.dd4c1cd5.js → jsx.7c3e211a.js} +1 -1
- package/dist/assets/{julia.4255f0a0.js → julia.82615a40.js} +1 -1
- package/dist/assets/ko-KR.30f60079.js +1 -0
- package/dist/assets/ku-TR.9eee23ff.js +1 -0
- package/dist/assets/{layouts.30c8a1e1.js → layouts.5d28cc0e.js} +4 -4
- package/dist/assets/{livescript.23fa45b9.js → livescript.bf7c6356.js} +1 -1
- package/dist/assets/{localization.341816ac.js → localization.348f1994.js} +1 -1
- package/dist/assets/lt-LT.6a535ee7.js +1 -0
- package/dist/assets/{lua.c66dd609.js → lua.df9f8de8.js} +1 -1
- package/dist/assets/{manual.dc5b3116.js → manual.85e4cab3.js} +4 -4
- package/dist/assets/{mark-selection.8d87324c.js → mark-selection.a5c78240.js} +1 -1
- package/dist/assets/{match-highlighter.4899e3b1.js → match-highlighter.b8b7c0fa.js} +1 -1
- package/dist/assets/{mathematica.ddf4b03a.js → mathematica.35866057.js} +1 -1
- package/dist/assets/{mbox.7efd7aae.js → mbox.b588a798.js} +1 -1
- package/dist/assets/{migrations.5769e3a6.js → migrations.78085c15.js} +1 -1
- package/dist/assets/{mirc.5519309e.js → mirc.11811abc.js} +1 -1
- package/dist/assets/{mllike.4fba1c9f.js → mllike.f80953fc.js} +1 -1
- package/dist/assets/mn-MN.ae109212.js +1 -0
- package/dist/assets/{modelica.d5785180.js → modelica.31203d9d.js} +1 -1
- package/dist/assets/{modules.79942055.js → modules.5950dac1.js} +3 -3
- package/dist/assets/ms-MY.c32899bd.js +1 -0
- package/dist/assets/{mscgen.d1084fac.js → mscgen.14d048a5.js} +1 -1
- package/dist/assets/{multiplex.997f0efa.js → multiplex.2a683323.js} +2 -2
- package/dist/assets/{mumps.45d27bdc.js → mumps.14b46927.js} +1 -1
- package/dist/assets/{nginx.f2329a2e.js → nginx.147916f5.js} +1 -1
- package/dist/assets/nl-NL.5b0204f4.js +1 -0
- package/dist/assets/no-NO.60cb3308.js +1 -0
- package/dist/assets/{notifications.684fcdb3.js → notifications.6c634105.js} +4 -4
- package/dist/assets/{nsis.7671fe5a.js → nsis.10cfff1e.js} +1 -1
- package/dist/assets/{ntriples.1ef293c5.js → ntriples.9eadeec1.js} +1 -1
- package/dist/assets/{octave.1e6f25b7.js → octave.bcd50d60.js} +1 -1
- package/dist/assets/{overlay.d53bab44.js → overlay.ae430c07.js} +1 -1
- package/dist/assets/{overview.aaebfd46.js → overview.2770b6cc.js} +1 -1
- package/dist/assets/{overview.27b05ee2.js → overview.efc5d559.js} +1 -1
- package/dist/assets/{oz.80d1ccf6.js → oz.2f895b39.js} +1 -1
- package/dist/assets/{panels.5df101f1.js → panels.a1feb89d.js} +4 -4
- package/dist/assets/{pascal.cf8a9c43.js → pascal.fcf5fb90.js} +1 -1
- package/dist/assets/{pegjs.564a1721.js → pegjs.bfe8c0d8.js} +1 -1
- package/dist/assets/{perl.90f6ad1e.js → perl.34e1ebd8.js} +1 -1
- package/dist/assets/{permissions.3fecdff8.js → permissions.ee57d2c5.js} +8 -8
- package/dist/assets/{php.fa8c9bb5.js → php.123c0022.js} +1 -1
- package/dist/assets/{pig.4b3e46fe.js → pig.c87dc3c5.js} +1 -1
- package/dist/assets/pinia.d0ad97a9.entry.js +1 -0
- package/dist/assets/pl-PL.e4805847.js +1 -0
- package/dist/assets/{plesk.98782a18.js → plesk.0f675304.js} +5 -5
- package/dist/assets/{powershell.5bdeb681.js → powershell.acd58c14.js} +1 -1
- package/dist/assets/{presets-bookmarks.e8a7bd44.js → presets-bookmarks.4c61f585.js} +1 -1
- package/dist/assets/{presets.517e5211.js → presets.c5652da2.js} +4 -4
- package/dist/assets/{project-settings.36e7f38f.js → project-settings.223c2b56.js} +1 -1
- package/dist/assets/{properties.b9725bf0.js → properties.bb44ad2a.js} +1 -1
- package/dist/assets/{protobuf.e8913b71.js → protobuf.56cee688.js} +1 -1
- package/dist/assets/pt-BR.e60f90d6.js +1 -0
- package/dist/assets/pt-PT.f0cdce40.js +1 -0
- package/dist/assets/{pug.e47e51d9.js → pug.bd4388b6.js} +1 -1
- package/dist/assets/{puppet.02d0c537.js → puppet.595e3b11.js} +1 -1
- package/dist/assets/{python.5a331182.js → python.96cc4158.js} +1 -1
- package/dist/assets/{q.7abd2e98.js → q.c1c89979.js} +1 -1
- package/dist/assets/{query.dd50494a.js → query.a5bea9e6.js} +5 -5
- package/dist/assets/{quickstart.2a30696e.js → quickstart.67ba41ce.js} +5 -5
- package/dist/assets/{r.559aca48.js → r.e8bd6183.js} +1 -1
- package/dist/assets/{relations.f34c0891.js → relations.a25697a0.js} +7 -7
- package/dist/assets/{relationships.4db828d3.js → relationships.33af294b.js} +4 -4
- package/dist/assets/{revisions.2eacaa0e.js → revisions.d1ad624a.js} +3 -3
- package/dist/assets/ro-RO.dbffee50.js +1 -0
- package/dist/assets/{roles.c8bc1e38.js → roles.2047801b.js} +7 -7
- package/dist/assets/{rpm.cf2624a1.js → rpm.9e17cfc6.js} +1 -1
- package/dist/assets/{rst.74a6e7f4.js → rst.e6212933.js} +1 -1
- package/dist/assets/{ru-RU.c800aa80.js → ru-RU.dce9c3b8.js} +1 -1
- package/dist/assets/{ruby.57e7ca16.js → ruby.7ff2b064.js} +1 -1
- package/dist/assets/{running-locally.3f08151c.js → running-locally.9ae4cbf8.js} +9 -9
- package/dist/assets/{rust.603cb7a9.js → rust.cef3d7aa.js} +1 -1
- package/dist/assets/{sas.02fe3105.js → sas.e7f0f539.js} +1 -1
- package/dist/assets/{sass.58d3cfe8.js → sass.08441508.js} +1 -1
- package/dist/assets/{scheme.23303e45.js → scheme.a74ee417.js} +1 -1
- package/dist/assets/{sdk.7feea4dd.js → sdk.ae03b443.js} +7 -7
- package/dist/assets/{security.2b004c67.js → security.868b43f5.js} +1 -1
- package/dist/assets/{server.64c51953.js → server.21e00a5b.js} +4 -4
- package/dist/assets/{settings.16945599.js → settings.15d0a9a7.js} +1 -1
- package/dist/assets/{settings.1f41229b.js → settings.18800337.js} +4 -4
- package/dist/assets/{shell.861e6b20.js → shell.47528095.js} +1 -1
- package/dist/assets/{show-hint.33e4b0da.js → show-hint.12dadc00.js} +1 -1
- package/dist/assets/sieve.424cbf77.js +1 -0
- package/dist/assets/{simple.1a88b993.js → simple.ef386c48.js} +1 -1
- package/dist/assets/sl-SI.5337e803.js +2 -0
- package/dist/assets/{slim.35fbe920.js → slim.014147b3.js} +1 -1
- package/dist/assets/{smalltalk.6cdc0be6.js → smalltalk.5d6d79d2.js} +1 -1
- package/dist/assets/{smarty.a83da96d.js → smarty.955de5dc.js} +1 -1
- package/dist/assets/{solr.38cb5333.js → solr.adf53b34.js} +1 -1
- package/dist/assets/{soy.d1dad77c.js → soy.14f8a682.js} +1 -1
- package/dist/assets/{sparql.8e0b9834.js → sparql.6a030390.js} +1 -1
- package/dist/assets/{spreadsheet.a9f547e6.js → spreadsheet.67ce0358.js} +1 -1
- package/dist/assets/{sql.0eddf5fb.js → sql.7bb80f22.js} +1 -1
- package/dist/assets/sr-CS.c4a5b89f.js +1 -0
- package/dist/assets/{sso.a0d3be3d.js → sso.ccca8958.js} +2 -2
- package/dist/assets/{stex.84414277.js → stex.f35da327.js} +1 -1
- package/dist/assets/{stylus.3ed8b40a.js → stylus.930fb7b6.js} +1 -1
- package/dist/assets/{support.c48dbfbf.js → support.d9e0bf60.js} +1 -1
- package/dist/assets/sv-SE.d698f222.js +1 -0
- package/dist/assets/{swift.9e36a6bc.js → swift.7f6fa792.js} +1 -1
- package/dist/assets/{tcl.1387f30d.js → tcl.468e3c20.js} +1 -1
- package/dist/assets/{textile.6b4f4a09.js → textile.5b724807.js} +1 -1
- package/dist/assets/th-TH.9bb0dc35.js +2 -0
- package/dist/assets/{themes.1726a995.js → themes.401eff12.js} +2 -2
- package/dist/assets/{tiddlywiki.9fd95c86.js → tiddlywiki.1a5a1bd6.js} +1 -1
- package/dist/assets/{tiki.1c3be72c.js → tiki.e5d1cc9c.js} +1 -1
- package/dist/assets/{toml.d8ce69ac.js → toml.309d9a71.js} +1 -1
- package/dist/assets/{tornado.4122acd7.js → tornado.33d6785e.js} +1 -1
- package/dist/assets/tr-TR.a3b3e8ea.js +1 -0
- package/dist/assets/{translations.50d38679.js → translations.141198a3.js} +1 -1
- package/dist/assets/{troff.923cc50a.js → troff.39a13d53.js} +1 -1
- package/dist/assets/{ttcn-cfg.c46d638e.js → ttcn-cfg.2227c343.js} +1 -1
- package/dist/assets/{ttcn.bc12e52c.js → ttcn.ff83f5df.js} +1 -1
- package/dist/assets/{turtle.907013ed.js → turtle.ef55cec6.js} +1 -1
- package/dist/assets/{twig.2616faf3.js → twig.367a43fb.js} +1 -1
- package/dist/assets/{ubuntu.47e4ed9d.js → ubuntu.013c7190.js} +2 -2
- package/dist/assets/uk-UA.17503b1f.js +1 -0
- package/dist/assets/{upgrades-migrations.f46e3e27.js → upgrades-migrations.21a07531.js} +1 -1
- package/dist/assets/{use-sync.33f9b39d.js → use-sync.7a0e9d8b.js} +1 -1
- package/dist/assets/{user-directory.dd6f9e40.js → user-directory.bdb10b6f.js} +1 -1
- package/dist/assets/{users-roles-permissions.cb571c73.js → users-roles-permissions.ae35914f.js} +1 -1
- package/dist/assets/{users.dabef07a.js → users.36943e09.js} +5 -5
- package/dist/assets/{utilities.46a0f632.js → utilities.8533f769.js} +1 -1
- package/dist/assets/{vb.245fd092.js → vb.af7fe20b.js} +1 -1
- package/dist/assets/{vbscript.b8912ba1.js → vbscript.2bd7f088.js} +1 -1
- package/dist/assets/{velocity.239a0928.js → velocity.223e9248.js} +1 -1
- package/dist/assets/{vendor.a27160c3.js → vendor.ef99adf3.js} +97 -97
- package/dist/assets/{verilog.27cb4562.js → verilog.4b62dd2f.js} +1 -1
- package/dist/assets/{vhdl.d0516a44.js → vhdl.58f6f384.js} +1 -1
- package/dist/assets/vi-VN.2e3953bd.js +1 -0
- package/dist/assets/vue-i18n.abcb633a.entry.js +1 -0
- package/dist/assets/vue-router.6a93788b.entry.js +1 -0
- package/dist/assets/{vue.5c82b9b9.js → vue.a51d1c54.js} +1 -1
- package/dist/assets/vue.c850cd15.entry.js +1 -0
- package/dist/assets/{wast.f00b2de6.js → wast.29e0da5e.js} +1 -1
- package/dist/assets/{webhooks.e456ff27.js → webhooks.4518eef3.js} +1 -1
- package/dist/assets/{webhooks.ca623606.js → webhooks.60a87075.js} +4 -4
- package/dist/assets/{webidl.02e956cd.js → webidl.34270659.js} +1 -1
- package/dist/assets/{xquery.4d6fc924.js → xquery.9af0937b.js} +1 -1
- package/dist/assets/{yacas.3411c4ff.js → yacas.4b55f53d.js} +1 -1
- package/dist/assets/{yaml-frontmatter.180c6ff5.js → yaml-frontmatter.6b3a826f.js} +1 -1
- package/dist/assets/{yaml.694821cc.js → yaml.26316285.js} +1 -1
- package/dist/assets/{z80.e52b0a7b.js → z80.06c57bfb.js} +1 -1
- package/dist/assets/zh-CN.ea7e03db.js +1 -0
- package/dist/assets/zh-TW.84c79b23.js +1 -0
- package/dist/index.html +4 -4
- package/package.json +8 -8
- package/dist/assets/@directus_extensions-sdk.cdb2e8d9.entry.js +0 -1
- package/dist/assets/ar-SA.0a552a0b.js +0 -1
- package/dist/assets/bg-BG.bc55bc91.js +0 -2
- package/dist/assets/br-FR.5cd59909.js +0 -1
- package/dist/assets/ca-ES.65d1acd8.js +0 -1
- package/dist/assets/cs-CZ.b18be214.js +0 -1
- package/dist/assets/da-DK.64f2463b.js +0 -1
- package/dist/assets/de-DE.15c2e3e1.js +0 -1
- package/dist/assets/el-GR.e46c7385.js +0 -1
- package/dist/assets/en-CA.aa96bcad.js +0 -1
- package/dist/assets/en-GB.5c2f476e.js +0 -1
- package/dist/assets/es-419.6e38424a.js +0 -1
- package/dist/assets/es-CL.5ceef757.js +0 -1
- package/dist/assets/es-ES.9856a734.js +0 -1
- package/dist/assets/et-EE.17e0caa0.js +0 -3
- package/dist/assets/fa-IR.f419c15f.js +0 -1
- package/dist/assets/fi-FI.7602b87c.js +0 -1
- package/dist/assets/fo-FO.9d2669e3.js +0 -1
- package/dist/assets/fr-CA.f9ad557e.js +0 -1
- package/dist/assets/fr-FR.e00afdf2.js +0 -1
- package/dist/assets/hi-IN.8c11e9ab.js +0 -1
- package/dist/assets/hr-HR.20250a9e.js +0 -1
- package/dist/assets/hu-HU.cff882cf.js +0 -1
- package/dist/assets/id-ID.b2378473.js +0 -1
- package/dist/assets/index.262f690c.entry.js +0 -542
- package/dist/assets/index.d6716446.css +0 -1
- package/dist/assets/index.e61d2e51.js +0 -26
- package/dist/assets/introduction.590e4eba.js +0 -1
- package/dist/assets/it-IT.41ec56b2.js +0 -1
- package/dist/assets/ja-JP.9041d966.js +0 -1
- package/dist/assets/ko-KR.b5ed9ca7.js +0 -1
- package/dist/assets/ku-TR.d790a5bf.js +0 -1
- package/dist/assets/lt-LT.471e35c1.js +0 -1
- package/dist/assets/mn-MN.3b64cd12.js +0 -1
- package/dist/assets/ms-MY.3afe9a48.js +0 -1
- package/dist/assets/nl-NL.9517ed64.js +0 -1
- package/dist/assets/no-NO.6684a30b.js +0 -1
- package/dist/assets/pinia.1b52d3f3.entry.js +0 -1
- package/dist/assets/pl-PL.802b9560.js +0 -1
- package/dist/assets/pt-BR.b7887762.js +0 -1
- package/dist/assets/pt-PT.9d22af9f.js +0 -1
- package/dist/assets/ro-RO.13404884.js +0 -1
- package/dist/assets/sieve.9f4137de.js +0 -1
- package/dist/assets/sl-SI.4d31a782.js +0 -2
- package/dist/assets/sr-CS.2c599d6f.js +0 -1
- package/dist/assets/sv-SE.379bf27b.js +0 -1
- package/dist/assets/th-TH.5c6acfee.js +0 -2
- package/dist/assets/tr-TR.7cec66df.js +0 -1
- package/dist/assets/uk-UA.fde73b19.js +0 -1
- package/dist/assets/vi-VN.3c48e9bb.js +0 -1
- package/dist/assets/vue-i18n.569004d7.entry.js +0 -1
- package/dist/assets/vue-router.a70f1b0a.entry.js +0 -1
- package/dist/assets/vue.a5867151.entry.js +0 -1
- package/dist/assets/zh-CN.8e195137.js +0 -1
- package/dist/assets/zh-TW.68a59250.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bR as A}from"./vendor.ef99adf3.js";function I(b,y){return y.forEach(function(u){u&&typeof u!="string"&&!Array.isArray(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(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(b,y){(function(u){u(A.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__"],g=d(h),z=d(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),w=d(["end","until"]),s={"[":"]","{":"}","(":")"},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?(s.propertyIsEnumerable(c)&&(c=s[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":g.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(o)?"tag":i.lastTok=="def"||i.lastTok=="class"||i.varList?"def":"variable",n=="keyword"&&(t=o,z.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 $=_.exports,B=I({__proto__:null,default:$},[_.exports]);export{_ as a,B as r};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{w as a,y as c,z as h,A as n,E as e,C as r,W as t}from"./vendor.ef99adf3.js";const u={class:"markdown-body"},d=t("This guide explains how to install the "),p=e("em",null,"Development",-1),_=t(" version of Directus locally so that you can work on the platform\u2019s source code. To install the "),m=e("em",null,"Production",-1),g=t(" version locally, please follow to our "),f=t("standard installation guides"),y=t("."),b=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Minimum Requirements"),e("p",null,[t("You will need to have "),e("a",{href:"https://nodejs.org/en/download/current/",target:"_blank",rel:"noopener noreferrer"},"the latest version of Node"),t(" to "),e("em",null,"build"),t(" a Development version of Directus.")]),e("p",null,[t("You can use the JavaScript tool manager "),e("a",{href:"https://volta.sh/",target:"_blank",rel:"noopener noreferrer"},"volta"),t(" to automatically install the current node and npm versions.")])],-1),v=e("h2",{id:"1.-fork-the-directus-repository"},[t("1. Fork the Directus repository "),e("a",{class:"header-anchor",href:"#1.-fork-the-directus-repository"},"#")],-1),k=e("p",null,[t("Go to the "),e("a",{href:"https://github.com/directus/directus",target:"_blank",rel:"noopener noreferrer"},"repository"),t(" and fork it to your GitHub account. A fork is your copy of the Directus repository. Forking the repository allows you to freely experiment with changes without affecting the original project.")],-1),w=e("h2",{id:"2.-clone-from-your-repository"},[t("2. Clone from your repository "),e("a",{class:"header-anchor",href:"#2.-clone-from-your-repository"},"#")],-1),j=e("pre",null,[e("code",{class:"language-bash"},[t("git "),e("span",{class:"hljs-built_in"},"clone"),t(` git@github.com:YOUR-USERNAME/directus.git
|
|
2
2
|
`)])],-1),x=e("h2",{id:"3.-make-a-new-branch"},[t("3. Make a new branch "),e("a",{class:"header-anchor",href:"#3.-make-a-new-branch"},"#")],-1),D=e("pre",null,[e("code",{class:"language-bash"},`git checkout -b YOUR-BRANCH-NAME
|
|
3
3
|
`)],-1),T=e("h2",{id:"4.-install-the-dependencies-and-build-the-project"},[t("4. Install the dependencies and build the project "),e("a",{class:"header-anchor",href:"#4.-install-the-dependencies-and-build-the-project"},"#")],-1),A=e("pre",null,[e("code",{class:"language-bash"},`npm install
|
|
4
4
|
npm run build
|
|
5
|
-
`)],-1),C=e("h2",{id:"5.-create-a-.env-file"},[t("5. Create a "),e("code",null,".env"),t(" file "),e("a",{class:"header-anchor",href:"#5.-create-a-.env-file"},"#")],-1),
|
|
5
|
+
`)],-1),C=e("h2",{id:"5.-create-a-.env-file"},[t("5. Create a "),e("code",null,".env"),t(" file "),e("a",{class:"header-anchor",href:"#5.-create-a-.env-file"},"#")],-1),E=e("p",null,[t("Create a "),e("code",null,".env"),t(" file under the "),e("code",null,"api"),t(" folder. You can use the "),e("code",null,"example.env"),t(" file provided under "),e("code",null,"api"),t(" as a starting point.")],-1),F=e("pre",null,[e("code",{class:"language-bash"},[e("span",{class:"hljs-comment"},"# To use the example file"),t(`
|
|
6
6
|
cp api/example.env api/.env
|
|
7
|
-
`)])],-1),
|
|
7
|
+
`)])],-1),R=e("h2",{id:"6.-initialize-the-database"},[t("6. Initialize the database "),e("a",{class:"header-anchor",href:"#6.-initialize-the-database"},"#")],-1),N=e("p",null,"For this step, you\u2019ll need to already have a SQL database up-and-running, except if you\u2019re using the SQLite driver, which will create the database (file) for you.",-1),S=e("p",null,"To start the initialization run the following command:",-1),Y=e("pre",null,[e("code",{class:"language-bash"},[e("span",{class:"hljs-comment"},"# From within the root of the project"),t(`
|
|
8
8
|
npm run cli bootstrap
|
|
9
9
|
|
|
10
10
|
`),e("span",{class:"hljs-comment"},"# For SQLite you need to run the command in the 'api' context (to ensure the database file is created in the right directory)"),t(`
|
|
11
11
|
npm run cli bootstrap --workspace=api
|
|
12
|
-
`)])],-1),
|
|
13
|
-
`)],-1),
|
|
12
|
+
`)])],-1),z=e("p",null,"This will set-up the required tables for Directus and make sure all the migrations have run.",-1),B=e("h2",{id:"7.-start-the-development-server"},[t("7. Start the development server "),e("a",{class:"header-anchor",href:"#7.-start-the-development-server"},"#")],-1),I=e("p",null,[t("First you need to choose what packages you want to work on. Then, you should run the "),e("code",null,"dev"),t(" script on that package. You can see their names and list of scripts in their related "),e("code",null,"package.json"),t(". Example of running APP:")],-1),M=e("pre",null,[e("code",{class:"language-bash"},`npm run dev -w @directus/app
|
|
13
|
+
`)],-1),q=e("p",null,"If you want to work on multiple packages at once, you should create a new instance of your terminal for each package: Example of running Api, App:",-1),H=e("table",null,[e("tr",null,[e("th",null," Terminal 1 [Api] "),e("th",null," Terminal 2 [App] ")]),e("tr",null,[e("td",null,[e("pre",null,[e("code",{class:"language-bash"},`npm run dev -w directus
|
|
14
14
|
`)])]),e("td",null,[e("pre",null,[e("code",{class:"language-bash"},`npm run dev -w @directus/app
|
|
15
|
-
`)])])])],-1),L=e("hr",null,null,-1),
|
|
16
|
-
`)],-1),
|
|
17
|
-
`)],-1),
|
|
15
|
+
`)])])])],-1),L=e("hr",null,null,-1),W=e("p",null,[t("To work on the Documentation (public website version), you should navigate to the "),e("code",null,"docs"),t(" directory and run the following command:")],-1),G=e("pre",null,[e("code",{class:"language-bash"},`npm install
|
|
16
|
+
`)],-1),P=e("p",null,[e("sup",null,"\u2139 This is necessary because the way vue-server-renderer imports vue")],-1),Q=e("p",null,"Then you should run",-1),U=e("pre",null,[e("code",{class:"language-bash"},`npm run dev:site
|
|
17
|
+
`)],-1),V=e("div",{class:"tip hint"},[e("p",null,"If you encounter errors during this installation process, make sure your node version meets the minimum requirements")],-1),O=e("h2",{id:"8.-make-your-fixes%2Fchanges"},[t("8. Make your fixes/changes "),e("a",{class:"header-anchor",href:"#8.-make-your-fixes%2Fchanges"},"#")],-1),J=t("At this point you are ready to start working on Directus! Before diving in however, it\u2019s worth reading through the introduction to "),K=t("Contributing"),X=t("."),Z=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Debugging"),e("p",null,[t("Check our Wiki for a "),e("a",{href:"https://github.com/directus/directus/wiki/debugging",target:"_blank",rel:"noopener noreferrer"},"guide"),t(" on debugging the app and api.")])],-1),$=e("h2",{id:"9.-running-tests"},[t("9. Running tests "),e("a",{class:"header-anchor",href:"#9.-running-tests"},"#")],-1),ee=e("p",null,"Tests run automatically through GitHub Actions. However you may wish to run the tests locally especially when you write tests.",-1),te=e("p",null,[t("Install "),e("a",{href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer"},"Docker"),t(" and ensure that the service is running.")],-1),ne=e("pre",null,[e("code",{class:"language-bash"},[e("span",{class:"hljs-comment"},"# Ensure that you are testing on the lastest codebase"),t(`
|
|
18
18
|
npm run build
|
|
19
19
|
|
|
20
20
|
`),e("span",{class:"hljs-comment"},"# Clean up in case you ran the tests before"),t(`
|
|
@@ -25,4 +25,4 @@ docker compose -f tests/docker-compose.yml up -d --`),e("span",{class:"hljs-buil
|
|
|
25
25
|
|
|
26
26
|
`),e("span",{class:"hljs-comment"},"# Run the tests"),t(`
|
|
27
27
|
npm run `),e("span",{class:"hljs-built_in"},"test"),t(`:e2e
|
|
28
|
-
`)])],-1),le={setup(oe,{expose:l}){const o={title:"Running Locally",modularExtension:!1};return l({frontmatter:o}),(se,ae)=>{const s=a("router-link"),i=a("DocsWrapper");return c(),h(i,{frontmatter:o},{default:n(()=>[e("div",u,[e("blockquote",null,[e("p",null,[d,p,_,m,g,r(s,{to:"/docs/getting-started/installation/"},{default:n(()=>[f]),_:1}),y])]),b,v,k,w,j,x,D,T,A,C,F,R,S,
|
|
28
|
+
`)])],-1),le={setup(oe,{expose:l}){const o={title:"Running Locally",modularExtension:!1};return l({frontmatter:o}),(se,ae)=>{const s=a("router-link"),i=a("DocsWrapper");return c(),h(i,{frontmatter:o},{default:n(()=>[e("div",u,[e("blockquote",null,[e("p",null,[d,p,_,m,g,r(s,{to:"/docs/getting-started/installation/"},{default:n(()=>[f]),_:1}),y])]),b,v,k,w,j,x,D,T,A,C,E,F,R,N,S,Y,z,B,I,M,q,H,L,W,G,P,Q,U,V,O,e("p",null,[J,r(s,{to:"/docs/contributing/introduction"},{default:n(()=>[K]),_:1}),X]),Z,$,ee,te,ne])]),_:1})}}};export{le as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bR as s}from"./vendor.ef99adf3.js";import{s as a}from"./simple.ef386c48.js";function u(r,n){return n.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(t){if(t!=="default"&&!(t in r)){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})}),Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i={exports:{}};(function(r,n){(function(e){e(s.exports,a.exports)})(function(e){e.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),e.defineMIME("text/x-rustsrc","rust"),e.defineMIME("text/rust","rust")})})();var f=i.exports,m=u({__proto__:null,default:f},[i.exports]);export{m as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bR as b}from"./vendor.ef99adf3.js";function v(c,p){return p.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(t){if(t!=="default"&&!(t in c)){var a=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(c,t,a.get?a:{enumerable:!0,get:function(){return i[t]}})}})}),Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var f={exports:{}};(function(c,p){(function(i){i(b.exports)})(function(i){i.defineMode("sas",function(){var t={},a={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},u=/(<=|>=|!=|<>)/,m=/[=\(:\),{}.*<>+\-\/^\[\]]/;function o(e,r,s){if(s)for(var l=r.split(" "),n=0;n<l.length;n++)t[l[n]]={style:e,state:s}}o("def","stack pgm view source debug nesting nolist",["inDataStep"]),o("def","if while until for do do; end end; then else cancel",["inDataStep"]),o("def","label format _n_ _error_",["inDataStep"]),o("def","ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME",["inDataStep"]),o("def","filevar finfo finv fipname fipnamel fipstate first firstobs floor",["inDataStep"]),o("def","varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday",["inDataStep"]),o("def","zipfips zipname zipnamel zipstate",["inDataStep"]),o("def","put putc putn",["inDataStep"]),o("builtin","data run",["inDataStep"]),o("def","data",["inProc"]),o("def","%if %end %end; %else %else; %do %do; %then",["inMacro"]),o("builtin","proc run; quit; libname filename %macro %mend option options",["ALL"]),o("def","footnote title libname ods",["ALL"]),o("def","%let %put %global %sysfunc %eval ",["ALL"]),o("variable","&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext",["ALL"]),o("def","source2 nosource2 page pageno pagesize",["ALL"]),o("def","_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddfm ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau random ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni rcorr read recfm register regr remote remove rename repeat repeated replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover sub subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max",["inDataStep","inProc"]),o("operator","and not ",["inDataStep","inProc"]);function y(e,r){var s=e.next();if(s==="/"&&e.eat("*"))return r.continueComment=!0,"comment";if(r.continueComment===!0)return s==="*"&&e.peek()==="/"?(e.next(),r.continueComment=!1):e.skipTo("*")?(e.skipTo("*"),e.next(),e.eat("/")&&(r.continueComment=!1)):e.skipToEnd(),"comment";if(s=="*"&&e.column()==e.indentation())return e.skipToEnd(),"comment";var l=s+e.peek();if((s==='"'||s==="'")&&!r.continueString)return r.continueString=s,"string";if(r.continueString)return r.continueString==s?r.continueString=null:e.skipTo(r.continueString)?(e.next(),r.continueString=null):e.skipToEnd(),"string";if(r.continueString!==null&&e.eol())return e.skipTo(r.continueString)||e.skipToEnd(),"string";if(/[\d\.]/.test(s))return s==="."?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):s==="0"?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(u.test(s+e.peek()))return e.next(),"operator";if(a.hasOwnProperty(l)){if(e.next(),e.peek()===" ")return a[l.toLowerCase()]}else if(m.test(s))return"operator";var n;if(e.match(/[%&;\w]+/,!1)!=null){if(n=s+e.match(/[%&;\w]+/,!0),/&/.test(n))return"variable"}else n=s;if(r.nextword)return e.match(/[\w]+/),e.peek()==="."&&e.skipTo(" "),r.nextword=!1,"variable-2";if(n=n.toLowerCase(),r.inDataStep){if(n==="run;"||e.match(/run\s;/))return r.inDataStep=!1,"builtin";if(n&&e.next()===".")return/\w/.test(e.peek())?"variable-2":"variable";if(n&&t.hasOwnProperty(n)&&(t[n].state.indexOf("inDataStep")!==-1||t[n].state.indexOf("ALL")!==-1)){e.start<e.pos&&e.backUp(e.pos-e.start);for(var d=0;d<n.length;++d)e.next();return t[n].style}}if(r.inProc){if(n==="run;"||n==="quit;")return r.inProc=!1,"builtin";if(n&&t.hasOwnProperty(n)&&(t[n].state.indexOf("inProc")!==-1||t[n].state.indexOf("ALL")!==-1))return e.match(/[\w]+/),t[n].style}return r.inMacro?n==="%mend"?(e.peek()===";"&&e.next(),r.inMacro=!1,"builtin"):n&&t.hasOwnProperty(n)&&(t[n].state.indexOf("inMacro")!==-1||t[n].state.indexOf("ALL")!==-1)?(e.match(/[\w]+/),t[n].style):"atom":n&&t.hasOwnProperty(n)?(e.backUp(1),e.match(/[\w]+/),n==="data"&&/=/.test(e.peek())===!1?(r.inDataStep=!0,r.nextword=!0,"builtin"):n==="proc"?(r.inProc=!0,r.nextword=!0,"builtin"):n==="%macro"?(r.inMacro=!0,r.nextword=!0,"builtin"):/title[1-9]/.test(n)?"def":n==="footnote"?(e.eat(/[1-9]/),"def"):r.inDataStep===!0&&t[n].state.indexOf("inDataStep")!==-1||r.inProc===!0&&t[n].state.indexOf("inProc")!==-1||r.inMacro===!0&&t[n].state.indexOf("inMacro")!==-1||t[n].state.indexOf("ALL")!==-1?t[n].style:null):null}return{startState:function(){return{inDataStep:!1,inProc:!1,inMacro:!1,nextword:!1,continueString:null,continueComment:!1}},token:function(e,r){return e.eatSpace()?null:y(e,r)},blockCommentStart:"/*",blockCommentEnd:"*/"}}),i.defineMIME("text/x-sas","sas")})})();var g=f.exports,x=v({__proto__:null,default:g},[f.exports]);export{x as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bR as _}from"./vendor.ef99adf3.js";import{a as $}from"./css.7bfded2c.js";function M(x,g){return g.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(t){if(t!=="default"&&!(t in x)){var p=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(x,t,p.get?p:{enumerable:!0,get:function(){return i[t]}})}})}),Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(x,g){(function(i){i(_.exports,$.exports)})(function(i){i.defineMode("sass",function(t){var p=i.mimeModes["text/css"],y=p.propertyKeywords||{},j=p.colorKeywords||{},E=p.valueKeywords||{},T=p.fontProperties||{};function R(r){return new RegExp("^"+r.join("|"))}var A=["true","false","null","auto"],s=new RegExp("^"+A.join("|")),K=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],b=R(K),L=/^::?[a-zA-Z_][\w\-]*/,u;function f(r){return!r.peek()||r.match(/\s+$/,!1)}function z(r,n){var e=r.peek();return e===")"?(r.next(),n.tokenizer=l,"operator"):e==="("?(r.next(),r.eatSpace(),"operator"):e==="'"||e==='"'?(n.tokenizer=a(r.next()),"string"):(n.tokenizer=a(")",!1),"string")}function H(r,n){return function(e,o){return e.sol()&&e.indentation()<=r?(o.tokenizer=l,l(e,o)):(n&&e.skipTo("*/")?(e.next(),e.next(),o.tokenizer=l):e.skipToEnd(),"comment")}}function a(r,n){n==null&&(n=!0);function e(o,h){var d=o.next(),k=o.peek(),v=o.string.charAt(o.pos-2),w=d!=="\\"&&k===r||d===r&&v!=="\\";return w?(d!==r&&n&&o.next(),f(o)&&(h.cursorHalf=0),h.tokenizer=l,"string"):d==="#"&&k==="{"?(h.tokenizer=P(e),o.next(),"operator"):"string"}return e}function P(r){return function(n,e){return n.peek()==="}"?(n.next(),e.tokenizer=r,"operator"):l(n,e)}}function c(r){if(r.indentCount==0){r.indentCount++;var n=r.scopes[0].offset,e=n+t.indentUnit;r.scopes.unshift({offset:e})}}function C(r){r.scopes.length!=1&&r.scopes.shift()}function l(r,n){var e=r.peek();if(r.match("/*"))return n.tokenizer=H(r.indentation(),!0),n.tokenizer(r,n);if(r.match("//"))return n.tokenizer=H(r.indentation(),!1),n.tokenizer(r,n);if(r.match("#{"))return n.tokenizer=P(l),"operator";if(e==='"'||e==="'")return r.next(),n.tokenizer=a(e),"string";if(n.cursorHalf){if(e==="#"&&(r.next(),r.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||r.match(/^-?[0-9\.]+/))return f(r)&&(n.cursorHalf=0),"number";if(r.match(/^(px|em|in)\b/))return f(r)&&(n.cursorHalf=0),"unit";if(r.match(s))return f(r)&&(n.cursorHalf=0),"keyword";if(r.match(/^url/)&&r.peek()==="(")return n.tokenizer=z,f(r)&&(n.cursorHalf=0),"atom";if(e==="$")return r.next(),r.eatWhile(/[\w-]/),f(r)&&(n.cursorHalf=0),"variable-2";if(e==="!")return r.next(),n.cursorHalf=0,r.match(/^[\w]+/)?"keyword":"operator";if(r.match(b))return f(r)&&(n.cursorHalf=0),"operator";if(r.eatWhile(/[\w-]/))return f(r)&&(n.cursorHalf=0),u=r.current().toLowerCase(),E.hasOwnProperty(u)?"atom":j.hasOwnProperty(u)?"keyword":y.hasOwnProperty(u)?(n.prevProp=r.current().toLowerCase(),"property"):"tag";if(f(r))return n.cursorHalf=0,null}else{if(e==="-"&&r.match(/^-\w+-/))return"meta";if(e==="."){if(r.next(),r.match(/^[\w-]+/))return c(n),"qualifier";if(r.peek()==="#")return c(n),"tag"}if(e==="#"){if(r.next(),r.match(/^[\w-]+/))return c(n),"builtin";if(r.peek()==="#")return c(n),"tag"}if(e==="$")return r.next(),r.eatWhile(/[\w-]/),"variable-2";if(r.match(/^-?[0-9\.]+/))return"number";if(r.match(/^(px|em|in)\b/))return"unit";if(r.match(s))return"keyword";if(r.match(/^url/)&&r.peek()==="(")return n.tokenizer=z,"atom";if(e==="="&&r.match(/^=[\w-]+/))return c(n),"meta";if(e==="+"&&r.match(/^\+[\w-]+/))return"variable-3";if(e==="@"&&r.match("@extend")&&(r.match(/\s*[\w]/)||C(n)),r.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return c(n),"def";if(e==="@")return r.next(),r.eatWhile(/[\w-]/),"def";if(r.eatWhile(/[\w-]/))if(r.match(/ *: *[\w-\+\$#!\("']/,!1)){u=r.current().toLowerCase();var o=n.prevProp+"-"+u;return y.hasOwnProperty(o)?"property":y.hasOwnProperty(u)?(n.prevProp=u,"property"):T.hasOwnProperty(u)?"property":"tag"}else return r.match(/ *:/,!1)?(c(n),n.cursorHalf=1,n.prevProp=r.current().toLowerCase(),"property"):(r.match(/ *,/,!1)||c(n),"tag");if(e===":")return r.match(L)?"variable-3":(r.next(),n.cursorHalf=1,"operator")}return r.match(b)?"operator":(r.next(),null)}function S(r,n){r.sol()&&(n.indentCount=0);var e=n.tokenizer(r,n),o=r.current();if((o==="@return"||o==="}")&&C(n),e!==null){for(var h=r.pos-o.length,d=h+t.indentUnit*n.indentCount,k=[],v=0;v<n.scopes.length;v++){var w=n.scopes[v];w.offset<=d&&k.push(w)}n.scopes=k}return e}return{startState:function(){return{tokenizer:l,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(r,n){var e=S(r,n);return n.lastToken={style:e,content:r.current()},e},indent:function(r){return r.scopes[0].offset},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}},"css"),i.defineMIME("text/x-sass","sass")})})();var W=O.exports,U=M({__proto__:null,default:W},[O.exports]);export{O as a,U as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bR as A}from"./vendor.ef99adf3.js";function D(f,x){return x.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(o){if(o!=="default"&&!(o in f)){var l=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(f,o,l.get?l:{enumerable:!0,get:function(){return t[o]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(f,x){(function(t){t(A.exports)})(function(t){t.defineMode("scheme",function(){var o="builtin",l="comment",v="string",d="atom",b="number",y="bracket",N=2;function w(e){for(var n={},i=e.split(" "),a=0;a<i.length;++a)n[i[a]]=!0;return n}var k=w("\u03BB case-lambda call/cc class cond-expand define-class define-values exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),C=w("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function O(e,n,i){this.indent=e,this.type=n,this.prev=i}function u(e,n,i){e.indentStack=new O(n,i,e.indentStack)}function Q(e){e.indentStack=e.indentStack.prev}var _=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),j=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),I=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),R=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function $(e){return e.match(_)}function B(e){return e.match(j)}function s(e,n){return n===!0&&e.backUp(1),e.match(R)}function U(e){return e.match(I)}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,n){if(n.indentStack==null&&e.sol()&&(n.indentation=e.indentation()),e.eatSpace())return null;var i=null;switch(n.mode){case"string":for(var a,p=!1;(a=e.next())!=null;){if(a=='"'&&!p){n.mode=!1;break}p=!p&&a=="\\"}i=v;break;case"comment":for(var a,E=!1;(a=e.next())!=null;){if(a=="#"&&E){n.mode=!1;break}E=a=="|"}i=l;break;case"s-expr-comment":if(n.mode=!1,e.peek()=="("||e.peek()=="[")n.sExprComment=0;else{e.eatWhile(/[^\s\(\)\[\]]/),i=l;break}default:var r=e.next();if(r=='"')n.mode="string",i=v;else if(r=="'")e.peek()=="("||e.peek()=="["?(typeof n.sExprQuote!="number"&&(n.sExprQuote=0),i=d):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),i=d);else if(r=="#")if(e.eat("|"))n.mode="comment",i=l;else if(e.eat(/[tf]/i))i=d;else if(e.eat(";"))n.mode="s-expr-comment",i=l;else{var c=null,m=!1,S=!0;e.eat(/[ei]/i)?m=!0:e.backUp(1),e.match(/^#b/i)?c=$:e.match(/^#o/i)?c=B:e.match(/^#x/i)?c=U:e.match(/^#d/i)?c=s:e.match(/^[-+0-9.]/,!1)?(S=!1,c=s):m||e.eat("#"),c!=null&&(S&&!m&&e.match(/^#[ei]/i),c(e)&&(i=b))}else if(/^[-+0-9.]/.test(r)&&s(e,!0))i=b;else if(r==";")e.skipToEnd(),i=l;else if(r=="("||r=="["){for(var h="",g=e.column(),q;(q=e.eat(/[^\s\(\[\;\)\]]/))!=null;)h+=q;h.length>0&&C.propertyIsEnumerable(h)?u(n,g+N,r):(e.eatSpace(),e.eol()||e.peek()==";"?u(n,g+1,r):u(n,g+e.current().length,r)),e.backUp(e.current().length-1),typeof n.sExprComment=="number"&&n.sExprComment++,typeof n.sExprQuote=="number"&&n.sExprQuote++,i=y}else r==")"||r=="]"?(i=y,n.indentStack!=null&&n.indentStack.type==(r==")"?"(":"[")&&(Q(n),typeof n.sExprComment=="number"&&--n.sExprComment==0&&(i=l,n.sExprComment=!1),typeof n.sExprQuote=="number"&&--n.sExprQuote==0&&(i=d,n.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),k&&k.propertyIsEnumerable(e.current())?i=o:i="variable")}return typeof n.sExprComment=="number"?l:typeof n.sExprQuote=="number"?d:i},indent:function(e){return e.indentStack==null?e.indentation:e.indentStack.indent},closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}}),t.defineMIME("text/x-scheme","scheme")})})();var K=M.exports,z=D({__proto__:null,default:K},[M.exports]);export{z as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{w as a,y as i,z as r,A as n,E as s,C as h,W as e}from"./vendor.ef99adf3.js";const d={class:"markdown-body"},p=s("blockquote",null,[s("p",null,[e("The JS SDK provides an intuitive interface for the Directus API from within a JavaScript-powered project (browsers and Node.js). The default implementation uses "),s("a",{href:"https://npmjs.com/axios",target:"_blank",rel:"noopener noreferrer"},"Axios"),e(" for transport and "),s("code",null,"localStorage"),e(" for storing state.")])],-1),u=s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#installation"},"Installation")]),s("li",null,[s("a",{href:"#usage"},"Usage")]),s("li",null,[s("a",{href:"#typescript"},"TypeScript")]),s("li",null,[s("a",{href:"#reference"},"Reference")]),s("li",null,[s("a",{href:"#auth"},"Auth")]),s("li",null,[s("a",{href:"#transport"},"Transport")]),s("li",null,[s("a",{href:"#storage"},"Storage")]),s("li",null,[s("a",{href:"#items"},"Items")]),s("li",null,[s("a",{href:"#activity"},"Activity")]),s("li",null,[s("a",{href:"#comments"},"Comments")]),s("li",null,[s("a",{href:"#collections"},"Collections")]),s("li",null,[s("a",{href:"#fields"},"Fields")]),s("li",null,[s("a",{href:"#files"},"Files")]),s("li",null,[s("a",{href:"#folders"},"Folders")]),s("li",null,[s("a",{href:"#permissions"},"Permissions")]),s("li",null,[s("a",{href:"#presets"},"Presets")]),s("li",null,[s("a",{href:"#relations"},"Relations")]),s("li",null,[s("a",{href:"#revisions"},"Revisions")]),s("li",null,[s("a",{href:"#roles"},"Roles")]),s("li",null,[s("a",{href:"#settings"},"Settings")]),s("li",null,[s("a",{href:"#server"},"Server")]),s("li",null,[s("a",{href:"#users"},"Users")]),s("li",null,[s("a",{href:"#utils"},"Utils")])])])],-1),j=s("h2",{id:"installation"},[e("Installation "),s("a",{class:"header-anchor",href:"#installation"},"#")],-1),m=s("pre",null,[s("code",{class:"language-bash"},`npm install @directus/sdk
|
|
2
2
|
`)],-1),_=s("h2",{id:"usage"},[e("Usage "),s("a",{class:"header-anchor",href:"#usage"},"#")],-1),g=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"import"),e(" { Directus } "),s("span",{class:"hljs-keyword"},"from"),e(),s("span",{class:"hljs-string"},"'@directus/sdk'"),e(`;
|
|
3
3
|
|
|
4
4
|
`),s("span",{class:"hljs-keyword"},"const"),e(" directus = "),s("span",{class:"hljs-keyword"},"new"),e(" Directus("),s("span",{class:"hljs-string"},"'http://directus.example.com'"),e(`);
|
|
@@ -105,10 +105,10 @@ me.level = `),s("span",{class:"hljs-number"},"42"),e(`;
|
|
|
105
105
|
|
|
106
106
|
`),s("span",{class:"hljs-comment"},'// Error TS2322: Type "string" is not assignable to type "number".'),e(`
|
|
107
107
|
me.experience = `),s("span",{class:"hljs-string"},"'high'"),e(`;
|
|
108
|
-
`)])],-1),D=s("h2",{id:"reference"},[e("Reference "),s("a",{class:"header-anchor",href:"#reference"},"#")],-1),T=s("h3",{id:"constructor"},[e("Constructor "),s("a",{class:"header-anchor",href:"#constructor"},"#")],-1),
|
|
108
|
+
`)])],-1),D=s("h2",{id:"reference"},[e("Reference "),s("a",{class:"header-anchor",href:"#reference"},"#")],-1),T=s("h3",{id:"constructor"},[e("Constructor "),s("a",{class:"header-anchor",href:"#constructor"},"#")],-1),I=s("p",null,[e("This is the starting point to use the SDK. You need to create an instance and invoke methods from it. In most cases a single instance is sufficient, but in case you need more, you need to define "),s("a",{href:"#options.storage.prefix"},[s("code",null,"options.storage.prefix")]),e(".")],-1),x=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"import"),e(" { Directus } "),s("span",{class:"hljs-keyword"},"from"),e(),s("span",{class:"hljs-string"},"'@directus/sdk'"),e(`;
|
|
109
109
|
|
|
110
110
|
`),s("span",{class:"hljs-keyword"},"const"),e(" directus = "),s("span",{class:"hljs-keyword"},"new"),e(` Directus(url, init);
|
|
111
|
-
`)])],-1),A=s("ul",null,[s("li",null,[s("p",null,[s("code",null,"url"),e(" [required] "),s("em",null,"String"),e(" - A string pointing to your Directus instance. E.g. "),s("code",null,"https://admin.directus.io")]),s("p",null,[s("a",{name:"options"})])]),s("li",null,[s("p",null,[s("code",null,"init"),e(" [optional] "),s("em",null,"Object"),e(" - Define settings that you want to customize .The possible options are:")]),s("p",null,[s("a",{name:"options.auth"})]),s("ul",null,[s("li",null,[s("p",null,[s("code",null,"auth"),e(" [optional] "),s("em",null,"Object"),e(" - Defines settings you want to customize regarding "),s("a",{href:"#auth"},"authentication"),e(". The possible options are:")]),s("ul",null,[s("li",null,[s("p",null,[s("code",null,"mode"),e(" [optional] "),s("em",null,"String"),e(" - Defines the mode you want to use for authentication. It can be "),s("code",null,"'cookie'"),e(" for cookies or "),s("code",null,"'json'"),e(" for JWT. Defaults to "),s("code",null,"'cookie'"),e(" on browsers and "),s("code",null,"'json'"),e(" otherwise. We recommend using cookies when possible to prevent any kind of attacks, mostly XSS.")]),s("p",null,[s("a",{name:"options.auth.autoRefresh"})])]),s("li",null,[s("p",null,[s("code",null,"autoRefresh"),e(" [optional] "),s("em",null,"Boolean"),e(" - Tells SDK if it should handle refresh tokens automatically. Defaults to "),s("code",null,"true"),e(".")])]),s("li",null,[s("p",null,[s("code",null,"
|
|
111
|
+
`)])],-1),A=s("ul",null,[s("li",null,[s("p",null,[s("code",null,"url"),e(" [required] "),s("em",null,"String"),e(" - A string pointing to your Directus instance. E.g. "),s("code",null,"https://admin.directus.io")]),s("p",null,[s("a",{name:"options"})])]),s("li",null,[s("p",null,[s("code",null,"init"),e(" [optional] "),s("em",null,"Object"),e(" - Define settings that you want to customize .The possible options are:")]),s("p",null,[s("a",{name:"options.auth"})]),s("ul",null,[s("li",null,[s("p",null,[s("code",null,"auth"),e(" [optional] "),s("em",null,"Object"),e(" - Defines settings you want to customize regarding "),s("a",{href:"#auth"},"authentication"),e(". The possible options are:")]),s("ul",null,[s("li",null,[s("p",null,[s("code",null,"mode"),e(" [optional] "),s("em",null,"String"),e(" - Defines the mode you want to use for authentication. It can be "),s("code",null,"'cookie'"),e(" for cookies or "),s("code",null,"'json'"),e(" for JWT. Defaults to "),s("code",null,"'cookie'"),e(" on browsers and "),s("code",null,"'json'"),e(" otherwise. We recommend using cookies when possible to prevent any kind of attacks, mostly XSS.")]),s("p",null,[s("a",{name:"options.auth.autoRefresh"})])]),s("li",null,[s("p",null,[s("code",null,"autoRefresh"),e(" [optional] "),s("em",null,"Boolean"),e(" - Tells SDK if it should handle refresh tokens automatically. Defaults to "),s("code",null,"true"),e(".")])]),s("li",null,[s("p",null,[s("code",null,"staticToken"),e(" [optional] "),s("em",null,"String"),e(" - Defines the static token to use. It is not compatible with the options above since it does not refresh. Defaults to "),s("code",null,"''"),e(" (no static token).")])])])])]),s("p",null,[s("a",{name:"options.storage"})]),s("ul",null,[s("li",null,[s("p",null,[s("code",null,"storage"),e(" [optional] "),s("em",null,"Object"),e(" - Defines settings you want to customize regarding "),s("a",{href:"#storage"},"storage"),e(".")]),s("p",null,[s("a",{name:"options.storage.prefix"})]),s("ul",null,[s("li",null,[s("code",null,"prefix"),e(" [optional] "),s("em",null,"String"),e(" - Defines the tokens prefix tokens that are saved. This should be fulfilled with different values when using multiple instances of SDK. Defaults to "),s("code",null,"''"),e(" (no prefix).")]),s("li",null,[s("code",null,"mode"),e(" [optional] "),s("em",null,"String"),e(" - Defines the storage location to be used to save tokens. Allowed values are "),s("code",null,"LocalStorage"),e(" and "),s("code",null,"MemoryStorage"),e(". Defaults to "),s("code",null,"LocalStorage"),e(" on browsers and "),s("code",null,"MemoryStorage"),e(" on Node.js. The mode "),s("code",null,"LocalStorage"),e(" is not compatible with Node.js.")])])])]),s("p",null,[s("a",{name:"options.transport"})]),s("ul",null,[s("li",null,[s("code",null,"transport"),e(" [optional] "),s("em",null,"Object"),e(" - Defines settings you want to customize regarding "),s("a",{href:"#transport"},"transport"),e(". "),s("ul",null,[s("li",null,[s("code",null,"params"),e(" [optional] "),s("em",null,"Object"),e(" - Defines an object with keys and values to be passed as additional query string.")]),s("li",null,[s("code",null,"headers"),e(" [optional] "),s("em",null,"Object"),e(" - Defines an object with keys and values to be passed as additional headers.")]),s("li",null,[s("code",null,"onUploadProgress"),e(" [optional] "),s("em",null,[e("(event: "),s("a",{href:"https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent",target:"_blank",rel:"noopener noreferrer"},"ProgressEvent"),e(" => void)")]),e(" - Defines a callback function to indicate the upload progress.")])])])])])],-1),R=s("h2",{id:"auth"},[e("Auth "),s("a",{class:"header-anchor",href:"#auth"},"#")],-1),B=s("p",null,"Defines how authentication is handled by the SDK.",-1),M=s("h3",{id:"custom-implementation"},[e("Custom Implementation "),s("a",{class:"header-anchor",href:"#custom-implementation"},"#")],-1),q=s("p",null,[e("It is possible to provide a custom implementation by extending "),s("code",null,"IAuth"),e(". While this could be useful for advanced usage, most use-cases do not need it.")],-1),C=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"import"),e(" { IAuth, Directus } "),s("span",{class:"hljs-keyword"},"from"),e(),s("span",{class:"hljs-string"},"'@directus/sdk'"),e(`;
|
|
112
112
|
|
|
113
113
|
`),s("span",{class:"hljs-class"},[s("span",{class:"hljs-keyword"},"class"),e(),s("span",{class:"hljs-title"},"MyAuth"),e(),s("span",{class:"hljs-keyword"},"extends"),e(),s("span",{class:"hljs-title"},"IAuth"),e()]),e(`{
|
|
114
114
|
`),s("span",{class:"hljs-keyword"},"async"),e(),s("span",{class:"hljs-function"},[s("span",{class:"hljs-title"},"login"),e("("),s("span",{class:"hljs-params"}),e(")")]),e(` {
|
|
@@ -189,7 +189,7 @@ me.experience = `),s("span",{class:"hljs-string"},"'high'"),e(`;
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
`),s("span",{class:"hljs-keyword"},"const"),e(" directus = "),s("span",{class:"hljs-keyword"},"new"),e(" Directus("),s("span",{class:"hljs-string"},"'http://directus.example.com'"),e(", { "),s("span",{class:"hljs-attr"},"storage"),e(": "),s("span",{class:"hljs-keyword"},"new"),e(` SessionStorage() });
|
|
192
|
-
`)])],-1),ks=s("h3",{id:"directus-implementation-3"},[e("Directus Implementation "),s("a",{class:"header-anchor",href:"#directus-implementation-3"},"#")],-1),bs=s("p",null,[e("By default, Directus creates an instance of "),s("code",null,"Storage"),e(" which handles store information automatically. Check "),s("a",{href:"#options.storage"},[s("code",null,"options.storage")]),e(" to see the available settings.")],-1),vs=s("p",null,[e("SDK uses "),s("code",null,"localStorage"),e(" on browsers and the memory itself on Node.js to save tokens. This behavior can be configured in "),s("a",{href:"#options.storage.mode"},[s("code",null,"options.storage.mode")]),e(". The "),s("code",null,"LocalStorage"),e(" is only available on browsers and the "),s("code",null,"MemoryStorage"),e(" is not persistent, i.e., once you leave the tab or quit the process, you will need to authenticate again.")],-1),Ss=s("p",null,[e("If you want to use multiple instances of the SDK you should set a different "),s("a",{href:"#options.storage.prefix"},[s("code",null,"prefix")]),e(" for each one.")],-1),Ds=s("h2",{id:"items"},[e("Items "),s("a",{class:"header-anchor",href:"#items"},"#")],-1),Ts=s("p",null,[e("You can get an instance of the item handler by providing the collection (and type, in the case of TypeScript) to the "),s("code",null,"items"),e(" function. The following examples will use the "),s("code",null,"Article"),e(" type.")],-1),
|
|
192
|
+
`)])],-1),ks=s("h3",{id:"directus-implementation-3"},[e("Directus Implementation "),s("a",{class:"header-anchor",href:"#directus-implementation-3"},"#")],-1),bs=s("p",null,[e("By default, Directus creates an instance of "),s("code",null,"Storage"),e(" which handles store information automatically. Check "),s("a",{href:"#options.storage"},[s("code",null,"options.storage")]),e(" to see the available settings.")],-1),vs=s("p",null,[e("SDK uses "),s("code",null,"localStorage"),e(" on browsers and the memory itself on Node.js to save tokens. This behavior can be configured in "),s("a",{href:"#options.storage.mode"},[s("code",null,"options.storage.mode")]),e(". The "),s("code",null,"LocalStorage"),e(" is only available on browsers and the "),s("code",null,"MemoryStorage"),e(" is not persistent, i.e., once you leave the tab or quit the process, you will need to authenticate again.")],-1),Ss=s("p",null,[e("If you want to use multiple instances of the SDK you should set a different "),s("a",{href:"#options.storage.prefix"},[s("code",null,"prefix")]),e(" for each one.")],-1),Ds=s("h2",{id:"items"},[e("Items "),s("a",{class:"header-anchor",href:"#items"},"#")],-1),Ts=s("p",null,[e("You can get an instance of the item handler by providing the collection (and type, in the case of TypeScript) to the "),s("code",null,"items"),e(" function. The following examples will use the "),s("code",null,"Article"),e(" type.")],-1),Is=s("blockquote",null,[s("p",null,"JavaScript")],-1),xs=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-comment"},"// import { Directus, ID } from '@directus/sdk';"),e(`
|
|
193
193
|
`),s("span",{class:"hljs-keyword"},"const"),e(" { Directus } = "),s("span",{class:"hljs-built_in"},"require"),e("("),s("span",{class:"hljs-string"},"'@directus/sdk'"),e(`);
|
|
194
194
|
|
|
195
195
|
`),s("span",{class:"hljs-keyword"},"const"),e(" directus = "),s("span",{class:"hljs-keyword"},"new"),e(" Directus("),s("span",{class:"hljs-string"},"'http://directus.example.com'"),e(`);
|
|
@@ -328,7 +328,7 @@ me.experience = `),s("span",{class:"hljs-string"},"'high'"),e(`;
|
|
|
328
328
|
`),s("span",{class:"hljs-tag"},[e("</"),s("span",{class:"hljs-name"},"html"),e(">")]),e(`
|
|
329
329
|
`)])],-1),be=s("h2",{id:"folders"},[e("Folders "),s("a",{class:"header-anchor",href:"#folders"},"#")],-1),ve=s("pre",null,[s("code",{class:"language-js"},`directus.folders;
|
|
330
330
|
`)],-1),Se=s("p",null,[e("Same methods as "),s("code",null,'directus.items("directus_folders")'),e(".")],-1),De=s("h2",{id:"permissions"},[e("Permissions "),s("a",{class:"header-anchor",href:"#permissions"},"#")],-1),Te=s("pre",null,[s("code",{class:"language-js"},`directus.permissions;
|
|
331
|
-
`)],-1),
|
|
331
|
+
`)],-1),Ie=s("p",null,[e("Same methods as "),s("code",null,'directus.items("directus_permissions")'),e(".")],-1),xe=s("h2",{id:"presets"},[e("Presets "),s("a",{class:"header-anchor",href:"#presets"},"#")],-1),Ae=s("pre",null,[s("code",{class:"language-js"},`directus.presets;
|
|
332
332
|
`)],-1),Re=s("p",null,[e("Same methods as "),s("code",null,'directus.items("directus_presets")'),e(".")],-1),Be=s("h2",{id:"relations"},[e("Relations "),s("a",{class:"header-anchor",href:"#relations"},"#")],-1),Me=s("pre",null,[s("code",{class:"language-js"},`directus.relations;
|
|
333
333
|
`)],-1),qe=s("p",null,[e("Same methods as "),s("code",null,'directus.items("directus_relations")'),e(".")],-1),Ce=s("h2",{id:"revisions"},[e("Revisions "),s("a",{class:"header-anchor",href:"#revisions"},"#")],-1),Pe=s("pre",null,[s("code",{class:"language-js"},`directus.revisions;
|
|
334
334
|
`)],-1),Ue=s("p",null,[e("Same methods as "),s("code",null,'directus.items("directus_revisions")'),e(".")],-1),Oe=s("h2",{id:"roles"},[e("Roles "),s("a",{class:"header-anchor",href:"#roles"},"#")],-1),Ee=s("pre",null,[s("code",{class:"language-js"},`directus.roles;
|
|
@@ -351,5 +351,5 @@ me.experience = `),s("span",{class:"hljs-string"},"'high'"),e(`;
|
|
|
351
351
|
`)])],-1),wt=s("h3",{id:"generate-a-hash-for-a-given-value"},[e("Generate a Hash for a Given Value "),s("a",{class:"header-anchor",href:"#generate-a-hash-for-a-given-value"},"#")],-1),kt=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),e(" directus.utils.hash.generate("),s("span",{class:"hljs-string"},"'My String'"),e(`);
|
|
352
352
|
`)])],-1),bt=s("h3",{id:"verify-if-a-hash-is-valid"},[e("Verify if a Hash is Valid "),s("a",{class:"header-anchor",href:"#verify-if-a-hash-is-valid"},"#")],-1),vt=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),e(" directus.utils.hash.verify("),s("span",{class:"hljs-string"},"'My String'"),e(", "),s("span",{class:"hljs-string"},"'$argon2i$v=19$m=4096,t=3,p=1$A5uogJh'"),e(`);
|
|
353
353
|
`)])],-1),St=s("h3",{id:"sort-items-in-a-collection"},[e("Sort Items in a Collection "),s("a",{class:"header-anchor",href:"#sort-items-in-a-collection"},"#")],-1),Dt=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),e(" directus.utils.sort("),s("span",{class:"hljs-string"},"'articles'"),e(", "),s("span",{class:"hljs-number"},"15"),e(", "),s("span",{class:"hljs-number"},"42"),e(`);
|
|
354
|
-
`)])],-1),Tt=s("p",null,[e("This will move item "),s("code",null,"15"),e(" to the position of item "),s("code",null,"42"),e(", and move everything in between one \u201Cslot\u201D up.")],-1),
|
|
355
|
-
`)])],-1),At=s("p",null,"Note: The key passed is the primary key of the revision you\u2019d like to apply.",-1),Rt=s("hr",null,null,-1),Pt={setup(Bt,{expose:l}){const t={title:"JavaScript SDK",modularExtension:!1};return l({frontmatter:t}),(Mt,qt)=>{const o=a("router-link"),c=a("DocsWrapper");return i(),r(c,{frontmatter:t},{default:n(()=>[s("div",d,[p,u,j,m,_,g,f,y,w,k,b,v,S,D,T,x,
|
|
354
|
+
`)])],-1),Tt=s("p",null,[e("This will move item "),s("code",null,"15"),e(" to the position of item "),s("code",null,"42"),e(", and move everything in between one \u201Cslot\u201D up.")],-1),It=s("h3",{id:"revert-to-a-previous-revision"},[e("Revert to a Previous Revision "),s("a",{class:"header-anchor",href:"#revert-to-a-previous-revision"},"#")],-1),xt=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),e(" directus.utils.revert("),s("span",{class:"hljs-number"},"451"),e(`);
|
|
355
|
+
`)])],-1),At=s("p",null,"Note: The key passed is the primary key of the revision you\u2019d like to apply.",-1),Rt=s("hr",null,null,-1),Pt={setup(Bt,{expose:l}){const t={title:"JavaScript SDK",modularExtension:!1};return l({frontmatter:t}),(Mt,qt)=>{const o=a("router-link"),c=a("DocsWrapper");return i(),r(c,{frontmatter:t},{default:n(()=>[s("div",d,[p,u,j,m,_,g,f,y,w,k,b,v,S,D,T,I,x,A,R,B,M,q,C,P,U,O,E,F,K,N,W,L,z,V,G,s("div",J,[Y,s("p",null,[H,h(o,{to:"/docs/configuration/config-options/#security"},{default:n(()=>[Q]),_:1}),$])]),X,Z,ss,es,ts,as,ns,ls,os,cs,is,rs,hs,ds,ps,us,js,ms,_s,gs,fs,ys,ws,ks,bs,vs,Ss,Ds,Ts,Is,xs,As,Rs,Bs,Ms,qs,Cs,Ps,Us,Os,Es,Fs,Ks,Ns,Ws,Ls,zs,Vs,Gs,Js,Ys,Hs,Qs,$s,Xs,Zs,se,ee,te,ae,ne,le,oe,ce,ie,re,he,de,pe,ue,je,me,_e,ge,fe,ye,we,ke,be,ve,Se,De,Te,Ie,xe,Ae,Re,Be,Me,qe,Ce,Pe,Ue,Oe,Ee,Fe,Ke,Ne,We,Le,ze,Ve,Ge,Je,Ye,He,Qe,$e,Xe,Ze,st,et,tt,at,nt,lt,ot,ct,it,rt,ht,dt,pt,ut,jt,mt,_t,gt,ft,yt,wt,kt,bt,vt,St,Dt,Tt,It,xt,At,Rt])]),_:1})}}};export{Pt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{w as i,y as c,z as n,A as o,E as e,W as a}from"./vendor.ef99adf3.js";const d=e("div",{class:"markdown-body"},[e("blockquote",null,[e("p",null,"TK")]),e("h2",{id:"https"},[a("HTTPS "),e("a",{class:"header-anchor",href:"#https"},"#")]),e("h2",{id:"password-salting%2Fhashing%2Falgorithm-%26-password-policy"},[a("Password Salting/Hashing/Algorithm & Password Policy "),e("a",{class:"header-anchor",href:"#password-salting%2Fhashing%2Falgorithm-%26-password-policy"},"#")]),e("h2",{id:"static-tokens"},[a("Static Tokens "),e("a",{class:"header-anchor",href:"#static-tokens"},"#")]),e("h2",{id:"encrypted-fields-%26-encrypted-database"},[a("Encrypted Fields & Encrypted Database "),e("a",{class:"header-anchor",href:"#encrypted-fields-%26-encrypted-database"},"#")]),e("h2",{id:"private-file-links"},[a("Private File Links "),e("a",{class:"header-anchor",href:"#private-file-links"},"#")]),e("h2",{id:"mfa-(required)-%26-sso"},[a("MFA (Required) & SSO "),e("a",{class:"header-anchor",href:"#mfa-(required)-%26-sso"},"#")]),e("h2",{id:"granular-access-control-%26-ip-white-listing-%26-app-access"},[a("Granular Access Control & IP WHite-Listing & App Access "),e("a",{class:"header-anchor",href:"#granular-access-control-%26-ip-white-listing-%26-app-access"},"#")]),e("h2",{id:"rate-limiting"},[a("Rate Limiting "),e("a",{class:"header-anchor",href:"#rate-limiting"},"#")]),e("h2",{id:"encrypted"},[a("Encrypted "),e("a",{class:"header-anchor",href:"#encrypted"},"#")]),e("h2",{id:"parameterized-database-queries"},[a("Parameterized Database Queries "),e("a",{class:"header-anchor",href:"#parameterized-database-queries"},"#")])],-1),m={setup(h,{expose:r}){const s={title:"Security",modularExtension:!1};return r({frontmatter:s}),(l,p)=>{const t=i("DocsWrapper");return c(),n(t,{frontmatter:s},{default:o(()=>[d]),_:1})}}};export{m as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{w as t,y as h,z as i,A as n,E as s,C as r,W as e}from"./vendor.ef99adf3.js";const p={class:"markdown-body"},d={class:"two-up"},u={class:"left"},g=e("Provides detailed information about the project server, its schema, and its health. "),_=e("Learn more about Projects"),f=e("."),m=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#get-openapi-specification"},"Get OpenAPI Specification")]),s("li",null,[s("a",{href:"#get-graphql-sdl"},"Get GraphQL SDL")]),s("li",null,[s("a",{href:"#ping"},"Ping")]),s("li",null,[s("a",{href:"#info"},"Info")]),s("li",null,[s("a",{href:"#health"},"Health")])])])])],-1),j=s("hr",null,null,-1),y=s("h2",{id:"get-openapi-specification"},[e("Get OpenAPI Specification "),s("a",{class:"header-anchor",href:"#get-openapi-specification"},"#")],-1),v=s("p",null,"Retrieve the OpenAPI spec for the current project.",-1),b=s("div",{class:"two-up"},[s("div",{class:"left"},[s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Permissions"),s("p",null,"This OAS spec is based on the read permissions of the currently authenticated user.")]),s("h3",{id:"returns"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")]),s("p",null,[e("Object conforming to "),s("a",{href:"https://swagger.io/specification/",target:"_blank",rel:"noopener noreferrer"},"the OpenAPI Specification")])]),s("div",{class:"right"},[s("h3",{id:"rest-api"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")]),s("pre",null,[s("code",null,`GET /server/specs/oas
|
|
2
2
|
`)]),s("h3",{id:"graphql"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
|
|
3
3
|
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
|
|
4
4
|
server_specs_oas:`),s("span",{class:"hljs-type"}," String"),e(`
|
|
@@ -6,7 +6,7 @@ import{p as t,q as h,t as i,w as n,z as s,v as r,S as e}from"./vendor.a27160c3.j
|
|
|
6
6
|
`)])]),s("h5",{id:"example"},[e("Example "),s("a",{class:"header-anchor",href:"#example"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
|
|
7
7
|
server_specs_oas
|
|
8
8
|
}
|
|
9
|
-
`)])])])],-1),q=s("hr",null,null,-1),k=s("h2",{id:"get-graphql-sdl"},[e("Get GraphQL SDL "),s("a",{class:"header-anchor",href:"#get-graphql-sdl"},"#")],-1),
|
|
9
|
+
`)])])])],-1),q=s("hr",null,null,-1),k=s("h2",{id:"get-graphql-sdl"},[e("Get GraphQL SDL "),s("a",{class:"header-anchor",href:"#get-graphql-sdl"},"#")],-1),w=s("p",null,"Retrieve the GraphQL SDL for the current project.",-1),S=s("div",{class:"two-up"},[s("div",{class:"left"},[s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Permissions"),s("p",null,"The SDL is based on the permissions of the currently authenticated user.")]),s("h3",{id:"returns-2"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-2"},"#")]),s("p",null,"GraphQL SDL file."),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),e(` about_us {
|
|
10
10
|
id:`),s("span",{class:"hljs-type"}," Int"),e(`
|
|
11
11
|
introduction:`),s("span",{class:"hljs-type"}," String"),e(`
|
|
12
12
|
our_process:`),s("span",{class:"hljs-type"}," String"),e(`
|
|
@@ -40,7 +40,7 @@ GET /server/specs/graphql/system
|
|
|
40
40
|
`)])]),s("h5",{id:"example-3"},[e("Example "),s("a",{class:"header-anchor",href:"#example-3"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
|
|
41
41
|
server_ping
|
|
42
42
|
}
|
|
43
|
-
`)])])])],-1),I=s("hr",null,null,-1),x=s("h2",{id:"info"},[e("Info "),s("a",{class:"header-anchor",href:"#info"},"#")],-1),E=s("p",null,"Information about the current installation.",-1),R={class:"two-up"},L={class:"left"},Q=s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Permissions"),s("p",null,"The public information is returned for everybody. Admin users get additional information (see below).")],-1),O=s("h3",{id:"returns-4"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),D={class:"definitions"},
|
|
43
|
+
`)])])])],-1),I=s("hr",null,null,-1),x=s("h2",{id:"info"},[e("Info "),s("a",{class:"header-anchor",href:"#info"},"#")],-1),E=s("p",null,"Information about the current installation.",-1),R={class:"two-up"},L={class:"left"},Q=s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Permissions"),s("p",null,"The public information is returned for everybody. Admin users get additional information (see below).")],-1),O=s("h3",{id:"returns-4"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),D={class:"definitions"},C=s("p",null,[s("code",null,"project"),e(),s("strong",null,"object"),s("br"),e(" Public information about the project. Used to render the Admin App public pages.")],-1),H=e("See "),V=e("the settings object"),B=e(" for more information on the individual properties of the "),N=s("code",null,"project",-1),U=e(" object."),W=s("p",null,"Admin users also get the following information:",-1),z=s("div",{class:"definitions"},[s("p",null,[s("code",null,"directus.version"),e(),s("strong",null,"string"),s("br"),e(" Current version of Directus used.")]),s("p",null,[s("code",null,"node.version"),e(),s("strong",null,"string"),s("br"),e(" Current version of Node used.")]),s("p",null,[s("code",null,"node.uptime"),e(),s("strong",null,"integer"),s("br"),e(" How long the current process has been running.")]),s("p",null,[s("code",null,"os.type"),e(),s("strong",null,"string"),s("br"),e(" What type of operation system is used.")]),s("p",null,[s("code",null,"os.version"),e(),s("strong",null,"string"),s("br"),e(" What version of the operation system is used.")]),s("p",null,[s("code",null,"os.uptime"),e(),s("strong",null,"string"),s("br"),e(" How long the operating system has been up.")]),s("p",null,[s("code",null,"os.totalmem"),e(),s("strong",null,"string"),s("br"),e(" How much memory is available on the operating system.")])],-1),F=s("div",{class:"right"},[s("h3",{id:"rest-api-4"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),s("pre",null,[s("code",null,`GET /server/info
|
|
44
44
|
`)]),s("h3",{id:"graphql-4"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-4"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
|
|
45
45
|
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
|
|
46
46
|
server_info: server_info
|
|
@@ -111,4 +111,4 @@ GET /server/specs/graphql/system
|
|
|
111
111
|
`)])]),s("h5",{id:"example-5"},[e("Example "),s("a",{class:"header-anchor",href:"#example-5"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
|
|
112
112
|
server_health
|
|
113
113
|
}
|
|
114
|
-
`)])])])],-1),Y=s("hr",null,null,-1),ns={setup(Z,{expose:o}){const l={title:"Server",modularExtension:!1,pageClass:"page-reference"};return o({frontmatter:l}),($,ss)=>{const a=t("router-link"),c=t("DocsWrapper");return h(),i(c,{frontmatter:l},{default:n(()=>[s("div",p,[s("div",d,[s("div",u,[s("blockquote",null,[s("p",null,[g,r(a,{to:"/docs/getting-started/glossary/#projects"},{default:n(()=>[_]),_:1}),f])])]),m]),j,y,v,b,q,k,S,
|
|
114
|
+
`)])])])],-1),Y=s("hr",null,null,-1),ns={setup(Z,{expose:o}){const l={title:"Server",modularExtension:!1,pageClass:"page-reference"};return o({frontmatter:l}),($,ss)=>{const a=t("router-link"),c=t("DocsWrapper");return h(),i(c,{frontmatter:l},{default:n(()=>[s("div",p,[s("div",d,[s("div",u,[s("blockquote",null,[s("p",null,[g,r(a,{to:"/docs/getting-started/glossary/#projects"},{default:n(()=>[_]),_:1}),f])])]),m]),j,y,v,b,q,k,w,S,T,P,A,G,I,x,E,s("div",R,[s("div",L,[Q,O,s("div",D,[C,s("p",null,[H,r(a,{to:"/docs/reference/system/settings/#the-settings-object"},{default:n(()=>[V]),_:1}),B,N,U])]),W,z]),F]),J,K,M,X,Y])]),_:1})}}};export{ns as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{w as r,y as d,z as c,A as o,E as t,C as n,W as e}from"./vendor.ef99adf3.js";const u={class:"markdown-body"},_=t("blockquote",null,[t("p",null,"The Settings Module is where your entire Project is configured, making it the first place to go after installation. To maintain project safety and integrity, this module is only available to Administrators.")],-1),h=t("video",{autoplay:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/settings/settings-20220308A/settings-20220308A.mp4",type:"video/mp4"})],-1),g=t("div",{class:"warning hint"},[t("div",{class:"hint-title"},"Administrators Only"),t("p",null,"Only Administrators have access to the Settings Module.")],-1),p=t("p",null,"Settings are split into five distinct sections, each described below.",-1),f=e("Project Settings"),m=e(" \u2014 Setup branding and other global style options."),b=e("Data Model"),y=e(" \u2014 Create and modify "),k=e("Collections"),v=e(", "),w=e("Relationships"),A=e(", form layout, and "),x=e("Fields"),C=e("."),S=e("Roles & Permissions"),j=e(" \u2014 Create and manage access via Roles and Permissions."),q=e("Presets & Bookmarks"),P=e(" \u2014 Set default views of data and configure bookmarks."),B=e("Webhooks"),R=e(" \u2014 Use platform events to trigger external services."),W=t("p",null,"Aside from the above pages, there are three shorthand links:",-1),D=t("li",null,[t("p",null,[t("strong",null,"Report Bug"),t("br"),e(" A direct link to report a bug in the platform. When using this button, helpful debugging information about your project is automatically included, such as: version number, operating system, and environment type.")])],-1),V=t("strong",null,"Request Feature",-1),F=t("br",null,null,-1),M=e(" A direct link to "),N=t("a",{href:"https://github.com/directus/directus/discussions/new",target:"_blank",rel:"noopener noreferrer"},"submit a new feature request",-1),T=e(" on Github. Feature requests are a great way to let our team know what should be prioritized next. Learn more about making feature requests in the "),z=e("Contributing > Introduction"),E=e("."),G=t("li",null,[t("p",null,[t("strong",null,"Platform Version"),t("br"),e(" Displays the exact version of your platform. Click this button to go to the GitHub releases page, which includes the full change logs.")])],-1),U={setup(O,{expose:l}){const i={title:"Settings",modularExtension:!1};return l({frontmatter:i}),(H,I)=>{const s=r("router-link"),a=r("DocsWrapper");return d(),c(a,{frontmatter:i},{default:o(()=>[t("div",u,[_,h,g,p,t("ul",null,[t("li",null,[n(s,{to:"/docs/configuration/project-settings"},{default:o(()=>[f]),_:1}),m]),t("li",null,[n(s,{to:"/docs/configuration/data-model"},{default:o(()=>[b]),_:1}),y,n(s,{to:"/docs/getting-started/glossary/#collections"},{default:o(()=>[k]),_:1}),v,n(s,{to:"/docs/getting-started/glossary/#relationships"},{default:o(()=>[w]),_:1}),A,n(s,{to:"/docs/getting-started/glossary/#fields"},{default:o(()=>[x]),_:1}),C]),t("li",null,[n(s,{to:"/docs/configuration/users-roles-permissions"},{default:o(()=>[S]),_:1}),j]),t("li",null,[n(s,{to:"/docs/configuration/presets-bookmarks"},{default:o(()=>[q]),_:1}),P]),t("li",null,[n(s,{to:"/docs/configuration/webhooks"},{default:o(()=>[B]),_:1}),R])]),W,t("ul",null,[D,t("li",null,[t("p",null,[V,F,M,N,T,n(s,{to:"/docs/contributing/introduction/#feature-requests"},{default:o(()=>[z]),_:1}),E])]),G])])]),_:1})}}};export{U as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{w as o,y as i,z as h,A as e,E as s,C as n,W as t}from"./vendor.ef99adf3.js";const d={class:"markdown-body"},p=s("div",{class:"two-up"},[s("div",{class:"left"},[s("blockquote",null,[s("p",null,"Settings are key-value pairs that are stored in the database, and control different aspects of the project. Only administrators have access to manage Settings.")])]),s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-settings-object"},"The Settings Object")]),s("li",null,[s("a",{href:"#retrieve-settings"},"Retrieve Settings")]),s("li",null,[s("a",{href:"#update-settings"},"Update Settings")])])])])])],-1),_=s("hr",null,null,-1),u=s("h2",{id:"the-settings-object"},[t("The Settings Object "),s("a",{class:"header-anchor",href:"#the-settings-object"},"#")],-1),g={class:"two-up"},f={class:"left"},j={class:"definitions"},m=s("p",null,[s("code",null,"id"),t(),s("strong",null,"uuid"),s("br"),t(" Primary key of the setting.")],-1),b=s("p",null,[s("code",null,"project_name"),t(),s("strong",null,"string"),s("br"),t(" Name of the project, shown in the Admin App.")],-1),y=s("p",null,[s("code",null,"project_descriptor"),t(),s("strong",null,"string"),s("br"),t(" Descriptor of the project, shown in the Admin App.")],-1),v=s("p",null,[s("code",null,"project_url"),t(),s("strong",null,"string"),s("br"),t(" Link to the (public) website that goes with this project.")],-1),w=s("p",null,[s("code",null,"project_color"),t(),s("strong",null,"string"),s("br"),t(" Brand color for the current project.")],-1),q=s("code",null,"project_logo",-1),x=t(),k=s("strong",null,"many-to-one",-1),A=s("br",null,null,-1),S=t(" Primary logo for the current project. Many-to-one to "),T=t("files"),E=t("."),P=s("code",null,"public_foreground",-1),R=t(),C=s("strong",null,"many-to-one",-1),M=s("br",null,null,-1),B=t(" Foreground image for the Admin App\u2019s public pages. Many-to-one to "),O=t("files"),W=t("."),D=s("code",null,"public_background",-1),N=t(),Q=s("strong",null,"many-to-one",-1),G=s("br",null,null,-1),H=t(" Background image for the Admin App\u2019s public pages. Many-to-one to "),I=t("files"),L=t("."),V=s("p",null,[s("code",null,"public_note"),t(),s("strong",null,"string"),s("br"),t(" Note shown on the Admin App\u2019s public pages. Supports Markdown.")],-1),F=s("p",null,[s("code",null,"auth_login_attempts"),t(),s("strong",null,"integer"),s("br"),t(" How often a user is allowed to try to login. After which times the user will be suspended.")],-1),U=s("p",null,[s("code",null,"auth_password_policy"),t(),s("strong",null,"RegEx"),s("br"),t(" What regex passwords must pass in order to be valid.")],-1),z=s("code",null,"storage_asset_transform",-1),J=t(),K=s("strong",null,"string",-1),X=s("br",null,null,-1),Y=t(" If the transform endpoints are allowed to be used on "),Z=t("the assets endpoint"),$=t(". One of "),ss=s("code",null,"all",-1),ts=t(", "),es=s("code",null,"none",-1),ls=t(" or "),ns=s("code",null,"presets",-1),as=t("."),os=s("code",null,"storage_asset_presets",-1),rs=t(),cs=s("strong",null,"array",-1),is=s("br",null,null,-1),hs=t(" What preset keys exist in "),ds=t("the assets endpoint"),ps=t("."),_s=s("p",null,[s("code",null,"custom_css"),t(),s("strong",null,"string"),s("br"),t(" CSS rules to override the App\u2019s default styling.")],-1),us=s("p",null,[s("code",null,"storage_default_folder"),t(),s("strong",null,"uuid"),s("br"),t(" Folder for uploaded files. Does not affect existing files.")],-1),gs=s("p",null,[s("code",null,"basemaps"),t(),s("strong",null,"array"),s("br"),t(" Custom tiles to overriding the Mapbox defaults.")],-1),fs=s("p",null,[s("code",null,"mapbox_key"),t(),s("strong",null,"string"),s("br"),s("a",{href:"https://docs.mapbox.com/help/glossary/access-token/",target:"_blank",rel:"noopener noreferrer"},"Mapbox Access Token"),t(".")],-1),js=s("p",null,[s("code",null,"module_bar"),t(),s("strong",null,"array"),s("br"),t(" What modules are enabled/added globally.")],-1),ms=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[t(`{
|
|
2
2
|
`),s("span",{class:"hljs-attr"},'"data"'),t(`: {
|
|
3
3
|
`),s("span",{class:"hljs-attr"},'"id"'),t(": "),s("span",{class:"hljs-number"},"1"),t(`,
|
|
4
4
|
`),s("span",{class:"hljs-attr"},'"project_name"'),t(": "),s("span",{class:"hljs-string"},'"Directus"'),t(`,
|
|
@@ -22,7 +22,7 @@ import{p as o,q as i,t as h,w as e,z as s,v as n,S as t}from"./vendor.a27160c3.j
|
|
|
22
22
|
`),s("span",{class:"hljs-attr"},'"module_bar"'),t(": "),s("span",{class:"hljs-literal"},"null"),t(`
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`)])])],-1),bs=s("hr",null,null,-1),ys=s("h2",{id:"retrieve-settings"},[t("Retrieve Settings "),s("a",{class:"header-anchor",href:"#retrieve-settings"},"#")],-1),vs={class:"two-up"},
|
|
25
|
+
`)])])],-1),bs=s("hr",null,null,-1),ys=s("h2",{id:"retrieve-settings"},[t("Retrieve Settings "),s("a",{class:"header-anchor",href:"#retrieve-settings"},"#")],-1),vs={class:"two-up"},ws={class:"left"},qs=s("h3",{id:"query-parameters"},[t("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),xs=t("Supports all "),ks=t("global query parameters"),As=t("."),Ss=s("h3",{id:"returns"},[t("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")],-1),Ts=s("p",null,[t("Returns the "),s("a",{href:"#the-settings-object"},"settings object"),t(".")],-1),Es=s("div",{class:"right"},[s("h3",{id:"rest-api"},[t("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")]),s("pre",null,[s("code",null,`GET /settings
|
|
26
26
|
`)]),s("h3",{id:"graphql"},[t("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
|
|
27
27
|
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),t(` {
|
|
28
28
|
settings: directus_settings
|
|
@@ -32,7 +32,7 @@ import{p as o,q as i,t as h,w as e,z as s,v as n,S as t}from"./vendor.a27160c3.j
|
|
|
32
32
|
project_name
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
`)])])],-1),
|
|
35
|
+
`)])])],-1),Ps=s("hr",null,null,-1),Rs=s("h2",{id:"update-settings"},[t("Update Settings "),s("a",{class:"header-anchor",href:"#update-settings"},"#")],-1),Cs={class:"two-up"},Ms={class:"left"},Bs=s("h3",{id:"query-parameters-2"},[t("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),Os=t("Supports all "),Ws=t("global query parameters"),Ds=t("."),Ns=s("h3",{id:"request-body"},[t("Request Body "),s("a",{class:"header-anchor",href:"#request-body"},"#")],-1),Qs=s("p",null,[t("A partial "),s("a",{href:"#the-settings-object"},"settings object"),t(".")],-1),Gs=s("h3",{id:"returns-2"},[t("Returns "),s("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),Hs=s("p",null,[t("Returns the "),s("a",{href:"#the-setting-object"},"settings object"),t(".")],-1),Is=s("div",{class:"right"},[s("h3",{id:"rest-api-2"},[t("REST API "),s("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),s("pre",null,[s("code",null,`PATCH /settings
|
|
36
36
|
`)]),s("h5",{id:"example-2"},[t("Example "),s("a",{class:"header-anchor",href:"#example-2"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /settings"),t(`
|
|
37
37
|
|
|
38
38
|
{
|
|
@@ -48,4 +48,4 @@ import{p as o,q as i,t as h,w as e,z as s,v as n,S as t}from"./vendor.a27160c3.j
|
|
|
48
48
|
project_url
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
`)])])],-1),zs={setup(Ls,{expose:r}){const a={title:"Settings",modularExtension:!1,pageClass:"page-reference"};return r({frontmatter:a}),(Vs,Fs)=>{const l=o("router-link"),c=o("DocsWrapper");return i(),h(c,{frontmatter:a},{default:e(()=>[s("div",d,[p,_,u,s("div",g,[s("div",
|
|
51
|
+
`)])])],-1),zs={setup(Ls,{expose:r}){const a={title:"Settings",modularExtension:!1,pageClass:"page-reference"};return r({frontmatter:a}),(Vs,Fs)=>{const l=o("router-link"),c=o("DocsWrapper");return i(),h(c,{frontmatter:a},{default:e(()=>[s("div",d,[p,_,u,s("div",g,[s("div",f,[s("div",j,[m,b,y,v,w,s("p",null,[q,x,k,A,S,n(l,{to:"/docs/reference/files/"},{default:e(()=>[T]),_:1}),E]),s("p",null,[P,R,C,M,B,n(l,{to:"/docs/reference/files/"},{default:e(()=>[O]),_:1}),W]),s("p",null,[D,N,Q,G,H,n(l,{to:"/docs/reference/files/"},{default:e(()=>[I]),_:1}),L]),V,F,U,s("p",null,[z,J,K,X,Y,n(l,{to:"/docs/reference/files/#requesting-a-thumbnail"},{default:e(()=>[Z]),_:1}),$,ss,ts,es,ls,ns,as]),s("p",null,[os,rs,cs,is,hs,n(l,{to:"/docs/reference/files/#requesting-a-thumbnail"},{default:e(()=>[ds]),_:1}),ps]),_s,us,gs,fs,js])]),ms]),bs,ys,s("div",vs,[s("div",ws,[qs,s("p",null,[xs,n(l,{to:"/docs/reference/query"},{default:e(()=>[ks]),_:1}),As]),Ss,Ts]),Es]),Ps,Rs,s("div",Cs,[s("div",Ms,[Bs,s("p",null,[Os,n(l,{to:"/docs/reference/query"},{default:e(()=>[Ws]),_:1}),Ds]),Ns,Qs,Gs,Hs]),Is])])]),_:1})}}};export{zs as default};
|