@directus/app 9.16.0 → 9.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{@directus_extensions-sdk.a04f8e82.entry.js → @directus_extensions-sdk.3ef017de.entry.js} +1 -1
- package/dist/assets/{accounts.2e114db8.js → accounts.e4c64fb1.js} +1 -1
- package/dist/assets/{active-line.f9fd8e29.js → active-line.5c42d9f0.js} +1 -1
- package/dist/assets/activity-log.147dd93e.js +1 -0
- package/dist/assets/{activity.5589dea9.js → activity.dd401932.js} +4 -4
- package/dist/assets/{apl.8dd45420.js → apl.025ceee0.js} +1 -1
- package/dist/assets/{architecture.d16e36b1.js → architecture.aaf5c296.js} +1 -1
- package/dist/assets/{asciiarmor.3d35c700.js → asciiarmor.e1b5c1a3.js} +1 -1
- package/dist/assets/{asn.1.f669a398.js → asn.1.bfc58a58.js} +1 -1
- package/dist/assets/{asterisk.cdd7b5c4.js → asterisk.e714dc83.js} +1 -1
- package/dist/assets/{authentication.ee6465fd.js → authentication.61c42dda.js} +7 -7
- package/dist/assets/{autorefresh.51463d39.js → autorefresh.cc507a91.js} +1 -1
- package/dist/assets/{aws.8fa603ce.js → aws.55405db9.js} +1 -1
- package/dist/assets/{backing-directus.450274bb.js → backing-directus.bd29d5e2.js} +1 -1
- package/dist/assets/bg-BG.e76ce10c.js +1 -0
- package/dist/assets/{brainfuck.4ca7301f.js → brainfuck.6e87069f.js} +1 -1
- package/dist/assets/{cli.495194f0.js → cli.b2fbc62f.js} +4 -4
- package/dist/assets/{cli.f4f23732.js → cli.ca0055cb.js} +2 -2
- package/dist/assets/{clike.517e6aa3.js → clike.9663d2b3.js} +1 -1
- package/dist/assets/{clojure.57990b91.js → clojure.28ee7a22.js} +1 -1
- package/dist/assets/{cloudron.aa3368a8.js → cloudron.8200e84b.js} +1 -1
- package/dist/assets/{cmake.ed8f2dfc.js → cmake.aee3c431.js} +1 -1
- package/dist/assets/{cobol.de7e6ac3.js → cobol.a04dd0ed.js} +1 -1
- package/dist/assets/{codebase-overview.cf29e0f6.js → codebase-overview.7f69e795.js} +1 -1
- package/dist/assets/{coffeescript.f395c11c.js → coffeescript.3fea5290.js} +1 -1
- package/dist/assets/{collections.7776a374.js → collections.18cc2518.js} +2 -2
- package/dist/assets/{collections.74218877.js → collections.2fa0dd8e.js} +2 -2
- package/dist/assets/{collections.9e3af468.js → collections.b7aafbfb.js} +6 -6
- package/dist/assets/{commonlisp.a0911f52.js → commonlisp.030b0e58.js} +1 -1
- package/dist/assets/{conditions.1d6c9ac3.js → conditions.281a6ed5.js} +1 -1
- package/dist/assets/{config-options.3845d956.js → config-options.d33aab72.js} +14 -14
- package/dist/assets/{content.84d14f92.js → content.f9b34bf7.js} +1 -1
- package/dist/assets/{creating-extensions.50afb69b.js → creating-extensions.4533b8ed.js} +1 -1
- package/dist/assets/{crystal.1e7cf250.js → crystal.196d940f.js} +1 -1
- package/dist/assets/cs-CZ.2c006c7b.js +1 -0
- package/dist/assets/{css.ed8d4773.js → css.585f2cb0.js} +1 -1
- package/dist/assets/{cypher.863b9fa8.js → cypher.35036411.js} +1 -1
- package/dist/assets/{d.66d0201b.js → d.93cfb299.js} +1 -1
- package/dist/assets/da-DK.f9d9d6ca.js +1 -0
- package/dist/assets/{dart.878fcc86.js → dart.478f3544.js} +1 -1
- package/dist/assets/{data-model.ef4eedaf.js → data-model.dbce1366.js} +7 -7
- package/dist/assets/de-DE.729a1127.js +1 -0
- package/dist/assets/{diff.7a4d3ebd.js → diff.5cb6e186.js} +1 -1
- package/dist/assets/{digitalocean-app-platform.5dd9a78b.js → digitalocean-app-platform.b046ae55.js} +2 -2
- package/dist/assets/{display-templates.6412d9bf.js → display-templates.91e34e9f.js} +1 -1
- package/dist/assets/display.494b7d1f.js +1 -0
- package/dist/assets/{displays.c3b9934b.js → displays.54ddeb10.js} +3 -3
- package/dist/assets/{django.2a570d10.js → django.8f238632.js} +1 -1
- package/dist/assets/{docker.2130afa6.js → docker.36215dae.js} +2 -2
- package/dist/assets/{dockerfile.25c17dd8.js → dockerfile.8f0c0a1e.js} +1 -1
- package/dist/assets/{documentation.e232fdb2.js → documentation.cb5bf843.js} +1 -1
- package/dist/assets/{dtd.eefd1fda.js → dtd.989f5165.js} +1 -1
- package/dist/assets/{dylan.c614fa02.js → dylan.dea935ad.js} +1 -1
- package/dist/assets/{ebnf.e9066ab9.js → ebnf.4647a1c0.js} +1 -1
- package/dist/assets/{ecl.fe452b04.js → ecl.9a4cb085.js} +1 -1
- package/dist/assets/{eiffel.a0877698.js → eiffel.e0b19a69.js} +1 -1
- package/dist/assets/{elm.d26a7aa8.js → elm.391e151c.js} +1 -1
- package/dist/assets/{email-templates.0aa59541.js → email-templates.b0b82036.js} +1 -1
- package/dist/assets/{endpoints.b664ef10.js → endpoints.1ba44e66.js} +1 -1
- package/dist/assets/{erlang.92a68ba6.js → erlang.7fcf78c6.js} +1 -1
- package/dist/assets/es-419.9ec18edd.js +1 -0
- package/dist/assets/es-CL.4c3eb1b0.js +1 -0
- package/dist/assets/es-ES.4a8f0217.js +1 -0
- package/dist/assets/es-MX.76f4e344.js +1 -0
- package/dist/assets/{extensions.e511fc6d.js → extensions.b4c93ce0.js} +2 -2
- package/dist/assets/{factor.b5f382bf.js → factor.12bfd34d.js} +1 -1
- package/dist/assets/{faq.cc159e10.js → faq.4ca4b467.js} +1 -1
- package/dist/assets/{fcl.752a4039.js → fcl.bfa3e74f.js} +1 -1
- package/dist/assets/fi-FI.38180e94.js +1 -0
- package/dist/assets/{field-types.129a2c41.js → field-types.ed85836e.js} +1 -1
- package/dist/assets/{field.3061af3d.js → field.fb2213dd.js} +1 -1
- package/dist/assets/{fields.9e13d3e0.js → fields.057754cf.js} +5 -5
- package/dist/assets/{fields.1a3f05d2.js → fields.f3868bd3.js} +1 -1
- package/dist/assets/{file-library.531c267c.js → file-library.5d646392.js} +1 -1
- package/dist/assets/{files.af2c1a43.js → files.e0ad4209.js} +6 -6
- package/dist/assets/{filter-rules.454352d1.js → filter-rules.22fc9a6d.js} +1 -1
- package/dist/assets/{filters.57f37ec6.js → filters.5cf9b5c5.js} +1 -1
- package/dist/assets/flows.79e56304.js +17 -0
- package/dist/assets/{flows.4d2856ca.js → flows.eec58d0b.js} +5 -5
- package/dist/assets/{folders.10accc4b.js → folders.83d5bb9d.js} +1 -1
- package/dist/assets/{forth.68cc3f00.js → forth.0ff9d68f.js} +1 -1
- package/dist/assets/{fortran.af849fdf.js → fortran.6a74d293.js} +1 -1
- package/dist/assets/fr-CA.e0e0ef26.js +1 -0
- package/dist/assets/fr-FR.f3315fda.js +1 -0
- package/dist/assets/{gas.f1613e84.js → gas.0017dbfc.js} +1 -1
- package/dist/assets/{gcp.c7937b1a.js → gcp.60b49ff2.js} +1 -1
- package/dist/assets/{gfm.ea5bcf5f.js → gfm.0fc0d1d3.js} +1 -1
- package/dist/assets/{gherkin.255070ab.js → gherkin.782ca77e.js} +1 -1
- package/dist/assets/{github-ci.f7ee57b8.js → github-ci.b23bbe2d.js} +2 -2
- package/dist/assets/{glossary.80e53e05.js → glossary.238763c8.js} +1 -1
- package/dist/assets/{glossary.c84cb559.js → glossary.db37b807.js} +1 -1
- package/dist/assets/{go.b34c32f3.js → go.34e44348.js} +1 -1
- package/dist/assets/{groovy.145f8cf7.js → groovy.2b36f231.js} +1 -1
- package/dist/assets/{haml.8116bfb2.js → haml.812479fd.js} +1 -1
- package/dist/assets/{handlebars.8d60b385.js → handlebars.2683bde5.js} +1 -1
- package/dist/assets/{haskell-literate.169e6c59.js → haskell-literate.699b88bd.js} +1 -1
- package/dist/assets/{haskell.d4d4d77a.js → haskell.6faba30b.js} +1 -1
- package/dist/assets/{haxe.b95e20de.js → haxe.23162719.js} +1 -1
- package/dist/assets/he-IL.767fa735.js +1 -0
- package/dist/assets/{hooks.d1b00fc1.js → hooks.7b1e235e.js} +4 -4
- package/dist/assets/{htmlembedded.953ff7c2.js → htmlembedded.6bb4b539.js} +1 -1
- package/dist/assets/{htmlmixed.5ce6f41a.js → htmlmixed.b4abda11.js} +1 -1
- package/dist/assets/{http.9d3315fb.js → http.2093b31c.js} +1 -1
- package/dist/assets/id-ID.f65ae499.js +1 -0
- package/dist/assets/{idl.51f94c61.js → idl.cc7f893d.js} +1 -1
- package/dist/assets/{iis.2b991a80.js → iis.67a83939.js} +1 -1
- package/dist/assets/{import-export.74a08d53.js → import-export.92aee031.js} +1 -1
- package/dist/assets/{index.ab135b59.js → index.0645834a.js} +1 -1
- package/dist/assets/index.0c64ba3f.css +1 -0
- package/dist/assets/{index.4894f51e.js → index.0d2e59f7.js} +1 -1
- package/dist/assets/{index.15e3c95b.js → index.0eaf700c.js} +1 -1
- package/dist/assets/{index.58ce5d3f.js → index.197b17c1.js} +1 -1
- package/dist/assets/{index.36361e5b.js → index.1a3f31c4.js} +1 -1
- package/dist/assets/{index.e24720c2.js → index.1bbfd138.js} +1 -1
- package/dist/assets/{index.aeca2d25.js → index.1cd3d5ba.js} +1 -1
- package/dist/assets/{index.094d7435.js → index.22f2ba3c.js} +1 -1
- package/dist/assets/{index.b3227ed5.js → index.26419dc6.js} +1 -1
- package/dist/assets/{index.c0a6d945.js → index.27f67d42.js} +1 -1
- package/dist/assets/{index.5e2156f1.js → index.28a0ece3.js} +1 -1
- package/dist/assets/{index.719a1bf6.css → index.29c0adc9.css} +1 -1
- package/dist/assets/{index.69857a47.entry.js → index.2c592891.entry.js} +219 -219
- package/dist/assets/{index.43fc16cf.js → index.2e9e634f.js} +1 -1
- package/dist/assets/{index.a157d24b.js → index.322dc6a4.js} +1 -1
- package/dist/assets/{index.970729f9.js → index.32e3af07.js} +1 -1
- package/dist/assets/{index.44dfee18.js → index.34878ac2.js} +1 -1
- package/dist/assets/{index.b91f7cb9.js → index.38794fb2.js} +1 -1
- package/dist/assets/{index.4f3e1405.js → index.3907fbe9.js} +1 -1
- package/dist/assets/{index.8e6a2df6.js → index.39c3868e.js} +1 -1
- package/dist/assets/{index.6b8582b3.js → index.46908e35.js} +1 -1
- package/dist/assets/{index.5785bd5b.js → index.4a4f8949.js} +1 -1
- package/dist/assets/{index.8b727b3d.js → index.4a82f998.js} +1 -1
- package/dist/assets/{index.3dbbeee8.js → index.54ef22f3.js} +1 -1
- package/dist/assets/index.556512f9.js +1 -0
- package/dist/assets/{index.ee33b489.js → index.5713cf94.js} +1 -1
- package/dist/assets/{index.5efaa053.js → index.57954ae2.js} +1 -1
- package/dist/assets/{index.21e15966.js → index.594e4655.js} +1 -1
- package/dist/assets/{index.5bccbb70.js → index.5af46380.js} +1 -1
- package/dist/assets/{index.f45296e2.js → index.5b4bffdb.js} +1 -1
- package/dist/assets/{index.7fe2a6c1.js → index.5b507941.js} +1 -1
- package/dist/assets/{index.b990ffa7.js → index.6120d483.js} +1 -1
- package/dist/assets/{index.1c2bca61.js → index.620380a7.js} +1 -1
- package/dist/assets/{index.4caf473d.js → index.66b6c68b.js} +1 -1
- package/dist/assets/{index.286f3139.js → index.686784f1.js} +1 -1
- package/dist/assets/{index.b4512435.js → index.6c88db6e.js} +1 -1
- package/dist/assets/{index.238d8ccc.js → index.78f834f7.js} +1 -1
- package/dist/assets/{index.ac660d97.js → index.7ce1e572.js} +1 -1
- package/dist/assets/{index.34e50685.js → index.7dfe02f2.js} +1 -1
- package/dist/assets/{index.16102ca4.js → index.7e2708ed.js} +1 -1
- package/dist/assets/{index.ca46607e.js → index.7e4713d2.js} +1 -1
- package/dist/assets/{index.d9e06c0f.js → index.7eae9d5a.js} +1 -1
- package/dist/assets/{index.63beca13.js → index.81aae858.js} +1 -1
- package/dist/assets/{index.fee1fadb.js → index.83e516d5.js} +1 -1
- package/dist/assets/{index.2fa94ca6.js → index.84f0c372.js} +1 -1
- package/dist/assets/{index.8d64a2cc.js → index.86670575.js} +1 -1
- package/dist/assets/{index.ebc5fd3e.js → index.87b80a1b.js} +1 -1
- package/dist/assets/{index.d78b4dd1.js → index.92f081c8.js} +1 -1
- package/dist/assets/{index.86900d0e.js → index.9728d28b.js} +1 -1
- package/dist/assets/{index.ebace2a1.js → index.9ea39797.js} +1 -1
- package/dist/assets/{index.ce459a32.js → index.9f6f893d.js} +1 -1
- package/dist/assets/{index.38ca65a8.js → index.a07c2783.js} +1 -1
- package/dist/assets/{index.3a449212.js → index.a1938c4c.js} +1 -1
- package/dist/assets/{index.d3e27d97.js → index.a1e36825.js} +1 -1
- package/dist/assets/{index.cdc5693b.js → index.a47d735b.js} +3 -3
- package/dist/assets/{index.fd19f059.js → index.a4be7bd2.js} +1 -1
- package/dist/assets/{index.048bfcd4.js → index.a4f50556.js} +1 -1
- package/dist/assets/{index.727f38c4.js → index.a84a7598.js} +1 -1
- package/dist/assets/{index.9a2ded43.js → index.a981939a.js} +1 -1
- package/dist/assets/{index.ffa2a1cd.js → index.ad382721.js} +1 -1
- package/dist/assets/{index.dd5b5aec.js → index.b07b6c71.js} +1 -1
- package/dist/assets/{index.766f9329.js → index.b440ccbe.js} +1 -1
- package/dist/assets/{index.8b83352c.js → index.b4f005cc.js} +1 -1
- package/dist/assets/{index.504c871e.js → index.b7016c72.js} +1 -1
- package/dist/assets/{index.dae019ea.js → index.b73fc9df.js} +1 -1
- package/dist/assets/{index.efb2f918.js → index.b7eac46d.js} +1 -1
- package/dist/assets/{index.65ef9955.js → index.b8bc9ce9.js} +1 -1
- package/dist/assets/{index.6be1ec19.js → index.ba4d69a6.js} +1 -1
- package/dist/assets/{index.7f1515ca.js → index.babc408d.js} +1 -1
- package/dist/assets/{index.a14f652a.js → index.bb9b3d77.js} +1 -1
- package/dist/assets/{index.6ac5a367.js → index.bcef0184.js} +1 -1
- package/dist/assets/{index.558dbe9d.js → index.bf489604.js} +1 -1
- package/dist/assets/{index.73791b0b.js → index.c210d71e.js} +1 -1
- package/dist/assets/{index.6c3cfd9d.js → index.c378895c.js} +1 -1
- package/dist/assets/{index.8b6e1cf5.js → index.c7c5db2b.js} +1 -1
- package/dist/assets/{index.909efb92.js → index.d7318062.js} +1 -1
- package/dist/assets/{index.bb39eac1.js → index.db3bc6a7.js} +1 -1
- package/dist/assets/{index.87997092.js → index.e18ed1ac.js} +1 -1
- package/dist/assets/{index.b73eaa87.js → index.e22e6eb6.js} +1 -1
- package/dist/assets/{index.e7e3b4f1.js → index.e3c74acd.js} +1 -1
- package/dist/assets/{index.0152af18.js → index.e5ffe5fd.js} +1 -1
- package/dist/assets/{index.dccdb81c.js → index.ef505888.js} +1 -1
- package/dist/assets/{index.938b9c64.js → index.f32b69c8.js} +1 -1
- package/dist/assets/{index.22cbe4df.js → index.f7c78032.js} +1 -1
- package/dist/assets/{index.937b45e4.js → index.fd0568fe.js} +1 -1
- package/dist/assets/{input-rich-text-html.c5691bb5.js → input-rich-text-html.e34edefb.js} +30 -30
- package/dist/assets/{insights.0f2b188e.js → insights.c3df1bb3.js} +2 -2
- package/dist/assets/{installation.131e828a.js → installation.4ab6ce97.js} +1 -1
- package/dist/assets/{interface.aa4f61a0.js → interface.1195a442.js} +1 -1
- package/dist/assets/{interfaces.fc4c7384.js → interfaces.0dddec2f.js} +1 -1
- package/dist/assets/{introduction.b1da78a4.js → introduction.201b3a46.js} +2 -2
- package/dist/assets/{introduction.0f06a30b.js → introduction.2a49238f.js} +1 -1
- package/dist/assets/{introduction.24acabd2.js → introduction.569a3b41.js} +4 -4
- package/dist/assets/{introduction.e8ce5583.js → introduction.daef5dfe.js} +1 -1
- package/dist/assets/it-IT.b5b391d8.js +1 -0
- package/dist/assets/{items.cc5ed80d.js → items.207153dc.js} +10 -10
- package/dist/assets/{items.b5bb1efd.js → items.cc802753.js} +1 -1
- package/dist/assets/{javascript-hint.e20aef95.js → javascript-hint.973e4b78.js} +1 -1
- package/dist/assets/{javascript.5fd57163.js → javascript.0f987dbc.js} +1 -1
- package/dist/assets/{jinja2.50fcfe88.js → jinja2.1714c6b4.js} +1 -1
- package/dist/assets/{jsx.105d1c38.js → jsx.0436090e.js} +1 -1
- package/dist/assets/{julia.35f5ca7a.js → julia.17bcd86a.js} +1 -1
- package/dist/assets/{layouts.1b59a4c4.js → layouts.39ffa712.js} +1 -1
- package/dist/assets/{layouts.2759613b.js → layouts.6d10b629.js} +3 -3
- package/dist/assets/{livescript.c93edb54.js → livescript.e4f13644.js} +1 -1
- package/dist/assets/{localization.854fe2a6.js → localization.6486db5d.js} +1 -1
- package/dist/assets/{lua.9658c21a.js → lua.f648e91e.js} +1 -1
- package/dist/assets/{manual.e19c207e.js → manual.edc6cff6.js} +4 -4
- package/dist/assets/{mark-selection.53594d16.js → mark-selection.86c6319e.js} +1 -1
- package/dist/assets/{match-highlighter.102bdbf5.js → match-highlighter.a4271354.js} +1 -1
- package/dist/assets/{mathematica.9aa31b5e.js → mathematica.52dc4105.js} +1 -1
- package/dist/assets/{mbox.29766fd2.js → mbox.b896837f.js} +1 -1
- package/dist/assets/{migrations.70984e94.js → migrations.ecdb3334.js} +1 -1
- package/dist/assets/{mirc.7257ab91.js → mirc.10bbeea1.js} +1 -1
- package/dist/assets/{mllike.e8d0e664.js → mllike.191004b8.js} +1 -1
- package/dist/assets/{modelica.18fae917.js → modelica.bbfd56e6.js} +1 -1
- package/dist/assets/{modules.368e658d.js → modules.0dab0325.js} +1 -1
- package/dist/assets/{mscgen.ee9aeb3b.js → mscgen.c92fd74a.js} +1 -1
- package/dist/assets/{multiplex.5014c33e.js → multiplex.34a284fc.js} +1 -1
- package/dist/assets/{mumps.98967a5d.js → mumps.37f022fb.js} +1 -1
- package/dist/assets/{nginx.35db5339.js → nginx.baee9366.js} +1 -1
- package/dist/assets/no-NO.f3dbe81b.js +1 -0
- package/dist/assets/{notifications.71793dcb.js → notifications.5b10ad0b.js} +1 -1
- package/dist/assets/{nsis.5c925820.js → nsis.7f12c9dc.js} +1 -1
- package/dist/assets/{ntriples.ebc8952a.js → ntriples.018e6112.js} +1 -1
- package/dist/assets/{octave.2541b86b.js → octave.372364c9.js} +1 -1
- package/dist/assets/{operations.3a53915d.js → operations.296e9710.js} +11 -11
- package/dist/assets/operations.30fc2625.js +1 -0
- package/dist/assets/{operations.687b2da1.js → operations.c5ee7367.js} +3 -3
- package/dist/assets/{overlay.834b2264.js → overlay.0d815e1c.js} +1 -1
- package/dist/assets/{overview.2aef2737.js → overview.211898b7.js} +1 -1
- package/dist/assets/{overview.77c84906.js → overview.91ec2552.js} +1 -1
- package/dist/assets/{overview.42c9bc71.js → overview.eb55d14f.js} +1 -1
- package/dist/assets/{oz.dfebfbd1.js → oz.7497f31b.js} +1 -1
- package/dist/assets/{panels.1c9e59a5.js → panels.9b48e2ab.js} +3 -3
- package/dist/assets/{pascal.fcb326dc.js → pascal.42e2a8e0.js} +1 -1
- package/dist/assets/{pegjs.68efc658.js → pegjs.7318728b.js} +1 -1
- package/dist/assets/{perl.950af130.js → perl.cb43c987.js} +1 -1
- package/dist/assets/{permissions.7c6e7d90.js → permissions.66ecdced.js} +7 -7
- package/dist/assets/{php.fef53679.js → php.04bf2132.js} +1 -1
- package/dist/assets/{pig.e61066dd.js → pig.4235f7d9.js} +1 -1
- package/dist/assets/{pinia.b8e2dbe3.entry.js → pinia.ee5b7a45.entry.js} +2 -2
- package/dist/assets/pl-PL.25397b47.js +1 -0
- package/dist/assets/{plesk.09c47961.js → plesk.0a2c4855.js} +5 -5
- package/dist/assets/{powershell.a3647979.js → powershell.f967c618.js} +1 -1
- package/dist/assets/presets-bookmarks.0a83b030.js +1 -0
- package/dist/assets/{presets.a6220515.js → presets.198afe35.js} +6 -6
- package/dist/assets/project-settings.eebfbd8c.js +1 -0
- package/dist/assets/{projects.7b210ac2.js → projects.398642da.js} +1 -1
- package/dist/assets/{properties.1ee62841.js → properties.1a0b81f0.js} +1 -1
- package/dist/assets/{protobuf.7eaf6123.js → protobuf.b8759181.js} +1 -1
- package/dist/assets/pt-BR.664ac34b.js +1 -0
- package/dist/assets/{pug.7a05af3b.js → pug.902e44de.js} +1 -1
- package/dist/assets/{puppet.34c73ce6.js → puppet.52d18e89.js} +1 -1
- package/dist/assets/{python.bc5a01c1.js → python.50eb8730.js} +1 -1
- package/dist/assets/{q.4f51bed7.js → q.9f996c87.js} +1 -1
- package/dist/assets/{query.b72e23c9.js → query.8ccae3a9.js} +1 -1
- package/dist/assets/{quickstart.1d485356.js → quickstart.a567dd49.js} +2 -2
- package/dist/assets/{quickstart.0e152d2a.js → quickstart.de9843d9.js} +1 -1
- package/dist/assets/{r.1d0a2eab.js → r.b44dc9fe.js} +1 -1
- package/dist/assets/{readme.a5652282.js → readme.1996f39f.js} +1 -1
- package/dist/assets/{relations.804b318b.js → relations.ad6c2398.js} +4 -4
- package/dist/assets/{relationship.040a5095.js → relationship.32af0bee.js} +1 -1
- package/dist/assets/{relationships.ff02a9ff.js → relationships.1cd9b5d9.js} +8 -8
- package/dist/assets/{resources.efe9810e.js → resources.f947272a.js} +1 -1
- package/dist/assets/{revisions.121cb7de.js → revisions.c13b66e0.js} +3 -3
- package/dist/assets/{roles.680acff2.js → roles.e767878c.js} +11 -11
- package/dist/assets/{rpm.b6eaecab.js → rpm.5c635cb3.js} +1 -1
- package/dist/assets/{rst.90bc2b24.js → rst.3f01e667.js} +1 -1
- package/dist/assets/ru-RU.71121ae2.js +1 -0
- package/dist/assets/{ruby.0761eec1.js → ruby.77181664.js} +1 -1
- package/dist/assets/{running-locally.4b4aa0d8.js → running-locally.6bdbd71e.js} +4 -4
- package/dist/assets/{runtime-core.esm-bundler.e3d5f5b7.js → runtime-core.esm-bundler.32cac88a.js} +1 -1
- package/dist/assets/{rust.9c0ae2fb.js → rust.611a3c67.js} +1 -1
- package/dist/assets/{sas.863c1ff7.js → sas.3da7c95a.js} +1 -1
- package/dist/assets/{sass.a062b8a1.js → sass.b73c972a.js} +1 -1
- package/dist/assets/{schema.5f5eb18e.js → schema.7eb35ba9.js} +1 -1
- package/dist/assets/{scheme.cbfc233a.js → scheme.b8d740c2.js} +1 -1
- package/dist/assets/{sdk.84d76266.js → sdk.d1cc970a.js} +9 -9
- package/dist/assets/{security.6a8942ba.js → security.0f4880b1.js} +1 -1
- package/dist/assets/{server.b24a421b.js → server.bcf6175e.js} +5 -5
- package/dist/assets/{settings.d91e399d.js → settings.25cab07d.js} +1 -1
- package/dist/assets/{settings.d3a9b46c.js → settings.f21d244b.js} +10 -10
- package/dist/assets/{shares.6bb87993.js → shares.cc7ce751.js} +1 -1
- package/dist/assets/{shell.22e0ee45.js → shell.7de892e9.js} +1 -1
- package/dist/assets/{show-hint.7c35da9b.js → show-hint.7942c136.js} +1 -1
- package/dist/assets/{sieve.459825cf.js → sieve.d0b23d2d.js} +1 -1
- package/dist/assets/{slim.0ba3b5ea.js → slim.06a7eabb.js} +1 -1
- package/dist/assets/{smalltalk.8b748238.js → smalltalk.4a61691e.js} +1 -1
- package/dist/assets/{smarty.6b0aef9c.js → smarty.dd10b12f.js} +1 -1
- package/dist/assets/{solr.a707fb59.js → solr.44aceea2.js} +1 -1
- package/dist/assets/{soy.666256c0.js → soy.556b0f73.js} +1 -1
- package/dist/assets/{sparql.a1d891c8.js → sparql.aa44f70b.js} +1 -1
- package/dist/assets/{spreadsheet.ed5c9b6c.js → spreadsheet.f8b42bd2.js} +1 -1
- package/dist/assets/{sql.b86b7772.js → sql.90fc9d3c.js} +1 -1
- package/dist/assets/{sso-examples.eb8e7423.js → sso-examples.0b7c81f4.js} +3 -3
- package/dist/assets/{sso.c929d07f.js → sso.49e87f3a.js} +2 -2
- package/dist/assets/{stex.2ceacc2d.js → stex.ab2d9a38.js} +1 -1
- package/dist/assets/{stylus.97e043fb.js → stylus.f097fe6e.js} +1 -1
- package/dist/assets/{support.09b549ef.js → support.55199a3e.js} +1 -1
- package/dist/assets/{swift.ed9964e6.js → swift.2c94ae8d.js} +1 -1
- package/dist/assets/{tcl.d774e733.js → tcl.a233f5ee.js} +1 -1
- package/dist/assets/{teams.ab67345b.js → teams.541d1f0c.js} +1 -1
- package/dist/assets/{textile.6a476b5a.js → textile.4e44687a.js} +1 -1
- package/dist/assets/{themes.078e9124.js → themes.47d63f74.js} +2 -2
- package/dist/assets/{tiddlywiki.23adee6a.js → tiddlywiki.81993c15.js} +1 -1
- package/dist/assets/{tiki.6c9bc5e7.js → tiki.5fba512d.js} +1 -1
- package/dist/assets/{toml.0465b4ce.js → toml.0a35f429.js} +1 -1
- package/dist/assets/{tornado.4f8ab710.js → tornado.5d61b40e.js} +1 -1
- package/dist/assets/tr-TR.f894f4bf.js +1 -0
- package/dist/assets/{translation-strings.2e3ee87a.js → translation-strings.6f6737a7.js} +1 -1
- package/dist/assets/{translations.36a34606.js → translations.4a2d59ad.js} +1 -1
- package/dist/assets/{translations.fb062afb.js → translations.7e97efc3.js} +1 -1
- package/dist/assets/triggers.6baf300f.js +1 -0
- package/dist/assets/{troff.bf1b0dc8.js → troff.ff3d44c9.js} +1 -1
- package/dist/assets/{ttcn-cfg.a9d94352.js → ttcn-cfg.46e427d6.js} +1 -1
- package/dist/assets/{ttcn.fc69e878.js → ttcn.f456167c.js} +1 -1
- package/dist/assets/{turtle.a9f8b816.js → turtle.1a23c99d.js} +1 -1
- package/dist/assets/{twig.a7fff583.js → twig.e3c621bb.js} +1 -1
- package/dist/assets/{ubuntu.79ece84b.js → ubuntu.14eb3ea1.js} +2 -2
- package/dist/assets/{upgrades-migrations.ea8bea7b.js → upgrades-migrations.a9a9ca7c.js} +1 -1
- package/dist/assets/{use-sync.1dee2657.js → use-sync.3af8e920.js} +8 -8
- package/dist/assets/{user-directory.bac5f2ee.js → user-directory.59b8470a.js} +1 -1
- package/dist/assets/{users-roles-permissions.e36d0bc8.js → users-roles-permissions.ed9e814c.js} +1 -1
- package/dist/assets/{users.a9ad4dd9.js → users.de050e21.js} +1 -1
- package/dist/assets/{utilities.00432834.js → utilities.99f7a370.js} +1 -1
- package/dist/assets/{validation.2c0c5444.js → validation.10b8a2f3.js} +1 -1
- package/dist/assets/{vb.c822cd8d.js → vb.dcd27019.js} +1 -1
- package/dist/assets/{vbscript.9a894a18.js → vbscript.46374125.js} +1 -1
- package/dist/assets/{velocity.f68873d7.js → velocity.304c4a9a.js} +1 -1
- package/dist/assets/{verilog.3f3cea00.js → verilog.6a207823.js} +1 -1
- package/dist/assets/{vhdl.a06af28e.js → vhdl.1473d302.js} +1 -1
- package/dist/assets/vi-VN.a2a22682.js +1 -0
- package/dist/assets/{vue-i18n.3cc3a25f.entry.js → vue-i18n.ab96dd58.entry.js} +1 -1
- package/dist/assets/{vue-router.1ad5ff1f.entry.js → vue-router.4ad81e1d.entry.js} +2 -2
- package/dist/assets/{vue.bd77f77c.js → vue.1240f8e1.js} +1 -1
- package/dist/assets/vue.1c9ff390.entry.js +1 -0
- package/dist/assets/{vue.runtime.esm-bundler.ee2a778f.js → vue.runtime.esm-bundler.61bedc6f.js} +1 -1
- package/dist/assets/{wast.905c63d5.js → wast.070e9cb4.js} +1 -1
- package/dist/assets/{webhooks.e7e122b7.js → webhooks.53b2215e.js} +1 -1
- package/dist/assets/{webhooks.f0dfc270.js → webhooks.a7e035b7.js} +1 -1
- package/dist/assets/{webidl.b78b974a.js → webidl.81afb130.js} +1 -1
- package/dist/assets/{xquery.394e95a0.js → xquery.58d37345.js} +1 -1
- package/dist/assets/{yacas.8149da65.js → yacas.be272580.js} +1 -1
- package/dist/assets/{yaml-frontmatter.2ae5fca2.js → yaml-frontmatter.4d2a9afa.js} +1 -1
- package/dist/assets/{yaml.d43d21a8.js → yaml.1779a883.js} +1 -1
- package/dist/assets/{z80.f545b7bf.js → z80.f2bb6986.js} +1 -1
- package/dist/assets/zh-CN.96c0a25c.js +1 -0
- package/dist/assets/zh-TW.7333a9ec.js +1 -0
- package/dist/index.html +8 -8
- package/package.json +26 -5
- package/dist/assets/activity-log.86a173c5.js +0 -1
- package/dist/assets/bg-BG.6ccbe392.js +0 -1
- package/dist/assets/cs-CZ.3f25becd.js +0 -1
- package/dist/assets/da-DK.3460bab1.js +0 -1
- package/dist/assets/de-DE.980a9df8.js +0 -1
- package/dist/assets/display.c9e4c238.js +0 -1
- package/dist/assets/es-419.b77b2103.js +0 -1
- package/dist/assets/es-CL.e5af69da.js +0 -1
- package/dist/assets/es-ES.7fd65f45.js +0 -1
- package/dist/assets/es-MX.84fb11f1.js +0 -1
- package/dist/assets/fi-FI.f2ba369a.js +0 -1
- package/dist/assets/flows.c21cd837.js +0 -16
- package/dist/assets/fr-CA.bd73b96f.js +0 -1
- package/dist/assets/fr-FR.f86a9f41.js +0 -1
- package/dist/assets/he-IL.7b11dc5e.js +0 -1
- package/dist/assets/id-ID.46c8c32a.js +0 -1
- package/dist/assets/index.19a1e6a6.css +0 -1
- package/dist/assets/index.cd90c757.js +0 -1
- package/dist/assets/it-IT.922112b6.js +0 -1
- package/dist/assets/no-NO.3bb25fb7.js +0 -1
- package/dist/assets/operations.845da620.js +0 -1
- package/dist/assets/pl-PL.dfc1a032.js +0 -1
- package/dist/assets/presets-bookmarks.3d6f189f.js +0 -1
- package/dist/assets/project-settings.5ba0a483.js +0 -1
- package/dist/assets/pt-BR.a8e95f48.js +0 -1
- package/dist/assets/ru-RU.9f19c25d.js +0 -1
- package/dist/assets/tr-TR.039a12a9.js +0 -1
- package/dist/assets/triggers.44226865.js +0 -1
- package/dist/assets/vi-VN.fff05bda.js +0 -1
- package/dist/assets/vue.f73b7cd5.entry.js +0 -1
- package/dist/assets/zh-CN.e03e0e56.js +0 -1
- package/dist/assets/zh-TW.453f1e60.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as A}from"./index.
|
|
1
|
+
import{y as A}from"./index.2c592891.entry.js";function D(u,x){return x.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(a){if(a!=="default"&&!(a in u)){var l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(u,a,l.get?l:{enumerable:!0,get:function(){return t[a]}})}})}),Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(u,x){(function(t){t(A.exports)})(function(t){t.defineMode("scheme",function(){var a="builtin",l="comment",v="string",f="atom",b="number",y="bracket",N=2;function w(e){for(var i={},n=e.split(" "),c=0;c<n.length;++c)i[n[c]]=!0;return i}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,i,n){this.indent=e,this.type=i,this.prev=n}function s(e,i,n){e.indentStack=new O(i,n,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),I=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),$=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),j=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 R(e){return e.match(_)}function B(e){return e.match(I)}function p(e,i){return i===!0&&e.backUp(1),e.match(j)}function U(e){return e.match($)}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,i){if(i.indentStack==null&&e.sol()&&(i.indentation=e.indentation()),e.eatSpace())return null;var n=null;switch(i.mode){case"string":for(var o,c=!1;(o=e.next())!=null;){if(o=='"'&&!c){i.mode=!1;break}c=!c&&o=="\\"}n=v;break;case"comment":for(var o,E=!1;(o=e.next())!=null;){if(o=="#"&&E){i.mode=!1;break}E=o=="|"}n=l;break;case"s-expr-comment":if(i.mode=!1,e.peek()=="("||e.peek()=="[")i.sExprComment=0;else{e.eatWhile(/[^\s\(\)\[\]]/),n=l;break}default:var r=e.next();if(r=='"')i.mode="string",n=v;else if(r=="'")e.peek()=="("||e.peek()=="["?(typeof i.sExprQuote!="number"&&(i.sExprQuote=0),n=f):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=f);else if(r=="#")if(e.eat("|"))i.mode="comment",n=l;else if(e.eat(/[tf]/i))n=f;else if(e.eat(";"))i.mode="s-expr-comment",n=l;else{var d=null,m=!1,S=!0;e.eat(/[ei]/i)?m=!0:e.backUp(1),e.match(/^#b/i)?d=R:e.match(/^#o/i)?d=B:e.match(/^#x/i)?d=U:e.match(/^#d/i)?d=p:e.match(/^[-+0-9.]/,!1)?(S=!1,d=p):m||e.eat("#"),d!=null&&(S&&!m&&e.match(/^#[ei]/i),d(e)&&(n=b))}else if(/^[-+0-9.]/.test(r)&&p(e,!0))n=b;else if(r==";")e.skipToEnd(),n=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)?s(i,g+N,r):(e.eatSpace(),e.eol()||e.peek()==";"?s(i,g+1,r):s(i,g+e.current().length,r)),e.backUp(e.current().length-1),typeof i.sExprComment=="number"&&i.sExprComment++,typeof i.sExprQuote=="number"&&i.sExprQuote++,n=y}else r==")"||r=="]"?(n=y,i.indentStack!=null&&i.indentStack.type==(r==")"?"(":"[")&&(Q(i),typeof i.sExprComment=="number"&&--i.sExprComment==0&&(n=l,i.sExprComment=!1),typeof i.sExprQuote=="number"&&--i.sExprQuote==0&&(n=f,i.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),k&&k.propertyIsEnumerable(e.current())?n=a:n="variable")}return typeof i.sExprComment=="number"?l:typeof i.sExprQuote=="number"?f:n},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{a as l,o as r,b as h,w as t,
|
|
1
|
+
import{a as l,o as r,b as h,w as t,l as s,e as o,E as a}from"./runtime-core.esm-bundler.32cac88a.js";const p={class:"markdown-body"},d=s("blockquote",null,[s("p",null,[a("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"),a(" for transport and "),s("code",null,"localStorage"),a(" for storing state.")])],-1),u=s("h2",{id:"installation",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#installation"},"#"),a(" Installation")],-1),j=s("pre",null,[s("code",{class:"language-bash"},`npm install @directus/sdk
|
|
2
2
|
`)],-1),_=s("h2",{id:"usage",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#usage"},"#"),a(" Usage")],-1),m=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"import"),a(" { "),s("span",{class:"hljs-title class_"},"Directus"),a(" } "),s("span",{class:"hljs-keyword"},"from"),a(),s("span",{class:"hljs-string"},"'@directus/sdk'"),a(`;
|
|
3
3
|
|
|
4
4
|
`),s("span",{class:"hljs-keyword"},"const"),a(" directus = "),s("span",{class:"hljs-keyword"},"new"),a(),s("span",{class:"hljs-title class_"},"Directus"),a("("),s("span",{class:"hljs-string"},"'http://directus.example.com'"),a(`);
|
|
@@ -126,8 +126,8 @@ me.`),s("span",{class:"hljs-property"},"experience"),a(" = "),s("span",{class:"h
|
|
|
126
126
|
`),s("span",{class:"hljs-keyword"},"const"),a(" directus = "),s("span",{class:"hljs-keyword"},"new"),a(),s("span",{class:"hljs-title class_"},"Directus"),a("("),s("span",{class:"hljs-string"},"'http://directus.example.com'"),a(`, {
|
|
127
127
|
`),s("span",{class:"hljs-attr"},"auth"),a(": "),s("span",{class:"hljs-keyword"},"new"),a(),s("span",{class:"hljs-title class_"},"MyAuth"),a(`(),
|
|
128
128
|
});
|
|
129
|
-
`)])],-1),O=s("h3",{id:"directus-implementation",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#directus-implementation"},"#"),a(" Directus Implementation")],-1),C=s("p",null,[a("By default, Directus creates an instance of "),s("code",null,"Auth"),a(" which handles refresh tokens automatically. Check "),s("a",{href:"#options.auth"},[s("code",null,"options.auth")]),a(" to see the available settings.")],-1),P=s("h3",{id:"get-current-token",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#get-current-token"},"#"),a(" Get current token")],-1),
|
|
130
|
-
`)])],-1),
|
|
129
|
+
`)])],-1),O=s("h3",{id:"directus-implementation",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#directus-implementation"},"#"),a(" Directus Implementation")],-1),C=s("p",null,[a("By default, Directus creates an instance of "),s("code",null,"Auth"),a(" which handles refresh tokens automatically. Check "),s("a",{href:"#options.auth"},[s("code",null,"options.auth")]),a(" to see the available settings.")],-1),P=s("h3",{id:"get-current-token",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#get-current-token"},"#"),a(" Get current token")],-1),E=s("pre",null,[s("code",{class:"language-ts"},[s("span",{class:"hljs-keyword"},"const"),a(" token = "),s("span",{class:"hljs-keyword"},"await"),a(" directus."),s("span",{class:"hljs-property"},"auth"),a("."),s("span",{class:"hljs-property"},"token"),a(`;
|
|
130
|
+
`)])],-1),N=s("div",{class:"warning hint"},[s("div",{class:"hint-title"},"Async"),s("p",null,[a("Reading the token is an asynchronous getter. This makes sure that any currently active "),s("code",null,"refresh"),a(" calls are being awaited before the current token is returned.")])],-1),U=s("h3",{id:"login",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#login"},"#"),a(" Login")],-1),K=s("h4",{id:"with-credentials",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#with-credentials"},"#"),a(" With credentials")],-1),F=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),a(" directus."),s("span",{class:"hljs-property"},"auth"),a("."),s("span",{class:"hljs-title function_"},"login"),a(`({
|
|
131
131
|
`),s("span",{class:"hljs-attr"},"email"),a(": "),s("span",{class:"hljs-string"},"'admin@example.com'"),a(`,
|
|
132
132
|
`),s("span",{class:"hljs-attr"},"password"),a(": "),s("span",{class:"hljs-string"},"'d1r3ctu5'"),a(`,
|
|
133
133
|
});
|
|
@@ -252,13 +252,13 @@ me.`),s("span",{class:"hljs-property"},"experience"),a(" = "),s("span",{class:"h
|
|
|
252
252
|
},
|
|
253
253
|
},
|
|
254
254
|
});
|
|
255
|
-
`)])],-1),
|
|
255
|
+
`)])],-1),Es=s("h3",{id:"read-all",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#read-all"},"#"),a(" Read All")],-1),Ns=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),a(" articles."),s("span",{class:"hljs-title function_"},"readByQuery"),a(`({
|
|
256
256
|
`),s("span",{class:"hljs-comment"},"// By default API limits results to 100."),a(`
|
|
257
257
|
`),s("span",{class:"hljs-comment"},"// With -1, it will return all results, but it may lead to performance degradation"),a(`
|
|
258
258
|
`),s("span",{class:"hljs-comment"},"// for large result sets."),a(`
|
|
259
259
|
`),s("span",{class:"hljs-attr"},"limit"),a(": -"),s("span",{class:"hljs-number"},"1"),a(`,
|
|
260
260
|
});
|
|
261
|
-
`)])],-1),
|
|
261
|
+
`)])],-1),Us=s("h3",{id:"read-single-item",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#read-single-item"},"#"),a(" Read Single Item")],-1),Ks=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),a(" articles."),s("span",{class:"hljs-title function_"},"readOne"),a("("),s("span",{class:"hljs-number"},"15"),a(`);
|
|
262
262
|
`)])],-1),Fs=s("p",null,"Supports optional query:",-1),Ls=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),a(" articles."),s("span",{class:"hljs-title function_"},"readOne"),a("("),s("span",{class:"hljs-number"},"15"),a(`, {
|
|
263
263
|
`),s("span",{class:"hljs-attr"},"fields"),a(": ["),s("span",{class:"hljs-string"},"'title'"),a(`],
|
|
264
264
|
});
|
|
@@ -371,7 +371,7 @@ form.`),s("span",{class:"hljs-title function_"},"append"),a("("),s("span",{class
|
|
|
371
371
|
},
|
|
372
372
|
});
|
|
373
373
|
`)])],-1),Ca=s("h2",{id:"folders",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#folders"},"#"),a(" Folders")],-1),Pa=s("pre",null,[s("code",{class:"language-js"},[a("directus."),s("span",{class:"hljs-property"},"folders"),a(`;
|
|
374
|
-
`)])],-1),
|
|
374
|
+
`)])],-1),Ea=s("p",null,[a("Same methods as "),s("code",null,'directus.items("directus_folders")'),a(".")],-1),Na=s("h2",{id:"permissions",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#permissions"},"#"),a(" Permissions")],-1),Ua=s("pre",null,[s("code",{class:"language-js"},[a("directus."),s("span",{class:"hljs-property"},"permissions"),a(`;
|
|
375
375
|
`)])],-1),Ka=s("p",null,[a("Same methods as "),s("code",null,'directus.items("directus_permissions")'),a(".")],-1),Fa=s("h2",{id:"presets",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#presets"},"#"),a(" Presets")],-1),La=s("pre",null,[s("code",{class:"language-js"},[a("directus."),s("span",{class:"hljs-property"},"presets"),a(`;
|
|
376
376
|
`)])],-1),Ja=s("p",null,[a("Same methods as "),s("code",null,'directus.items("directus_presets")'),a(".")],-1),Wa=s("h2",{id:"relations",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#relations"},"#"),a(" Relations")],-1),Ha=s("pre",null,[s("code",{class:"language-js"},[a("directus."),s("span",{class:"hljs-property"},"relations"),a(`;
|
|
377
377
|
`)])],-1),Va=s("p",null,[a("Same methods as "),s("code",null,'directus.items("directus_relations")'),a(".")],-1),za=s("h2",{id:"revisions",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#revisions"},"#"),a(" Revisions")],-1),Ga=s("pre",null,[s("code",{class:"language-js"},[a("directus."),s("span",{class:"hljs-property"},"revisions"),a(`;
|
|
@@ -394,6 +394,6 @@ form.`),s("span",{class:"hljs-title function_"},"append"),a("("),s("span",{class
|
|
|
394
394
|
`)])],-1),qt=s("p",null,[a("Supports an optional "),s("code",null,"length"),a(" (defaults to 32):")],-1),Bt=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),a(" directus."),s("span",{class:"hljs-property"},"utils"),a("."),s("span",{class:"hljs-property"},"random"),a("."),s("span",{class:"hljs-title function_"},"string"),a("("),s("span",{class:"hljs-number"},"50"),a(`);
|
|
395
395
|
`)])],-1),Mt=s("h3",{id:"generate-a-hash-for-a-given-value",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#generate-a-hash-for-a-given-value"},"#"),a(" Generate a Hash for a Given Value")],-1),Ot=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),a(" directus."),s("span",{class:"hljs-property"},"utils"),a("."),s("span",{class:"hljs-property"},"hash"),a("."),s("span",{class:"hljs-title function_"},"generate"),a("("),s("span",{class:"hljs-string"},"'My String'"),a(`);
|
|
396
396
|
`)])],-1),Ct=s("h3",{id:"verify-if-a-hash-is-valid",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#verify-if-a-hash-is-valid"},"#"),a(" Verify if a Hash is Valid")],-1),Pt=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),a(" directus."),s("span",{class:"hljs-property"},"utils"),a("."),s("span",{class:"hljs-property"},"hash"),a("."),s("span",{class:"hljs-title function_"},"verify"),a("("),s("span",{class:"hljs-string"},"'My String'"),a(", "),s("span",{class:"hljs-string"},"'$argon2i$v=19$m=4096,t=3,p=1$A5uogJh'"),a(`);
|
|
397
|
-
`)])],-1),
|
|
398
|
-
`)])],-1),
|
|
399
|
-
`)])],-1),Lt=s("p",null,"Note: The key passed is the primary key of the revision you\u2019d like to apply.",-1),Jt=s("hr",null,null,-1),Gt="JavaScript SDK",Yt=!1,Qt="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 [Axios](https://npmjs.com/axios) for transport and `localStorage` for storing state.",$t="14 min read",Xt={name:"sdk",setup(Wt,{expose:c}){const e={title:"JavaScript SDK",modularExtension:!1,description:"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 [Axios](https://npmjs.com/axios) for transport and `localStorage` for storing state.",readTime:"14 min read"};return c({frontmatter:e}),(Ht,Vt)=>{const n=l("router-link"),i=l("docs-wrapper");return r(),h(i,{frontmatter:e},{default:t(()=>[s("div",p,[d,u,j,_,m,g,f,y,w,b,k,v,x,S,D,T,I,A,R,q,B,M,O,C,P,N,U,
|
|
397
|
+
`)])],-1),Et=s("h3",{id:"sort-items-in-a-collection",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#sort-items-in-a-collection"},"#"),a(" Sort Items in a Collection")],-1),Nt=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),a(" directus."),s("span",{class:"hljs-property"},"utils"),a("."),s("span",{class:"hljs-title function_"},"sort"),a("("),s("span",{class:"hljs-string"},"'articles'"),a(", "),s("span",{class:"hljs-number"},"15"),a(", "),s("span",{class:"hljs-number"},"42"),a(`);
|
|
398
|
+
`)])],-1),Ut=s("p",null,[a("This will move item "),s("code",null,"15"),a(" to the position of item "),s("code",null,"42"),a(", and move everything in between one \u201Cslot\u201D up.")],-1),Kt=s("h3",{id:"revert-to-a-previous-revision",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#revert-to-a-previous-revision"},"#"),a(" Revert to a Previous Revision")],-1),Ft=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"await"),a(" directus."),s("span",{class:"hljs-property"},"utils"),a("."),s("span",{class:"hljs-title function_"},"revert"),a("("),s("span",{class:"hljs-number"},"451"),a(`);
|
|
399
|
+
`)])],-1),Lt=s("p",null,"Note: The key passed is the primary key of the revision you\u2019d like to apply.",-1),Jt=s("hr",null,null,-1),Gt="JavaScript SDK",Yt=!1,Qt="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 [Axios](https://npmjs.com/axios) for transport and `localStorage` for storing state.",$t="14 min read",Xt={name:"sdk",setup(Wt,{expose:c}){const e={title:"JavaScript SDK",modularExtension:!1,description:"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 [Axios](https://npmjs.com/axios) for transport and `localStorage` for storing state.",readTime:"14 min read"};return c({frontmatter:e}),(Ht,Vt)=>{const n=l("router-link"),i=l("docs-wrapper");return r(),h(i,{frontmatter:e},{default:t(()=>[s("div",p,[d,u,j,_,m,g,f,y,w,b,k,v,x,S,D,T,I,A,R,q,B,M,O,C,P,E,N,U,K,F,L,J,W,H,V,s("div",z,[G,s("p",null,[Y,o(n,{to:"/docs/self-hosted/config-options#security"},{default:t(()=>[Q]),_:1}),$])]),X,Z,ss,as,ts,es,ns,ls,os,cs,is,rs,hs,ps,ds,us,js,_s,ms,gs,fs,ys,ws,bs,ks,vs,xs,Ss,Ds,Ts,Is,As,Rs,qs,Bs,Ms,Os,Cs,Ps,Es,Ns,Us,Ks,Fs,Ls,Js,Ws,Hs,Vs,zs,Gs,Ys,Qs,$s,Xs,Zs,sa,aa,ta,ea,na,la,oa,ca,ia,ra,ha,pa,da,ua,ja,_a,ma,ga,fa,ya,wa,ba,ka,va,xa,Sa,Da,Ta,Ia,s("p",null,[Aa,o(n,{to:"/docs/reference/files#import-a-file"},{default:t(()=>[Ra]),_:1}),qa]),Ba,Ma,Oa,Ca,Pa,Ea,Na,Ua,Ka,Fa,La,Ja,Wa,Ha,Va,za,Ga,Ya,Qa,$a,Xa,Za,st,at,tt,et,nt,lt,ot,ct,it,rt,ht,pt,dt,ut,jt,_t,mt,gt,ft,yt,wt,bt,kt,vt,xt,St,Dt,Tt,It,At,Rt,qt,Bt,Mt,Ot,Ct,Pt,Et,Nt,Ut,Kt,Ft,Lt,Jt])]),_:1})}}};export{Xt as default,Qt as description,Yt as modularExtension,$t as readTime,Gt as title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i,o as n,b as c,w as d,
|
|
1
|
+
import{a as i,o as n,b as c,w as d,l as e,E as a}from"./runtime-core.esm-bundler.32cac88a.js";const o=e("div",{class:"markdown-body"},[e("h2",{id:"https",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#https"},"#"),a(" HTTPS")]),e("h2",{id:"password-salting%2Fhashing%2Falgorithm-%26-password-policy",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#password-salting%2Fhashing%2Falgorithm-%26-password-policy"},"#"),a(" Password Salting/Hashing/Algorithm & Password Policy")]),e("h2",{id:"static-tokens",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#static-tokens"},"#"),a(" Static Tokens")]),e("h2",{id:"encrypted-fields-%26-encrypted-database",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#encrypted-fields-%26-encrypted-database"},"#"),a(" Encrypted Fields & Encrypted Database")]),e("h2",{id:"private-file-links",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#private-file-links"},"#"),a(" Private File Links")]),e("h2",{id:"mfa-(required)-%26-sso",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#mfa-(required)-%26-sso"},"#"),a(" MFA (Required) & SSO")]),e("h2",{id:"granular-access-control-%26-ip-white-listing-%26-app-access",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#granular-access-control-%26-ip-white-listing-%26-app-access"},"#"),a(" Granular Access Control & IP WHite-Listing & App Access")]),e("h2",{id:"rate-limiting",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rate-limiting"},"#"),a(" Rate Limiting")]),e("h2",{id:"encrypted",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#encrypted"},"#"),a(" Encrypted")]),e("h2",{id:"parameterized-database-queries",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#parameterized-database-queries"},"#"),a(" Parameterized Database Queries")])],-1),m="Security",u=!1,b={name:"security",setup(h,{expose:r}){const s={title:"Security",modularExtension:!1};return r({frontmatter:s}),(l,p)=>{const t=i("docs-wrapper");return n(),c(t,{frontmatter:s},{default:d(()=>[o]),_:1})}}};export{b as default,u as modularExtension,m as title};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as l,o as i,b as h,w as e,
|
|
1
|
+
import{a as l,o as i,b as h,w as e,l as s,e as o,E as n}from"./runtime-core.esm-bundler.32cac88a.js";const p={class:"markdown-body"},u=n("Provides detailed information about the project server, its schema, and its health. "),d=n("Learn more about Projects"),_=n("."),j=s("hr",null,null,-1),g=s("h2",{id:"get-openapi-specification",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#get-openapi-specification"},"#"),n(" Get OpenAPI Specification")],-1),m=s("p",null,"Retrieve the OpenAPI spec for the current project.",-1),f=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.")],-1),b=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),n(" Returns")],-1),y=s("p",null,[n("Object conforming to "),s("a",{href:"https://swagger.io/specification",target:"_blank",rel:"noopener noreferrer"},"the OpenAPI Specification")],-1),v=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),n(" REST API")],-1),x=s("pre",null,[s("code",null,`GET /server/specs/oas
|
|
2
2
|
`)],-1),q=s("h3",{id:"graphql",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql"},"#"),n(" GraphQL")],-1),k=s("pre",null,[s("code",null,`POST /graphql/system
|
|
3
3
|
`)],-1),S=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),n(` {
|
|
4
4
|
server_specs_oas:`),s("span",{class:"hljs-type"}," String"),n(`
|
|
@@ -29,8 +29,8 @@ GET /server/specs/graphql/system
|
|
|
29
29
|
`)],-1),H=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),n(` {
|
|
30
30
|
server_specs_graphql(scope: graphql_sdl_scope):`),s("span",{class:"hljs-type"}," String"),n(`
|
|
31
31
|
}
|
|
32
|
-
`)])],-1),
|
|
33
|
-
server_specs_graphql(scope:
|
|
32
|
+
`)])],-1),V=s("h5",{id:"example-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-1"},"#"),n(" Example")],-1),B=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),n(` {
|
|
33
|
+
server_specs_graphql(scope: system)
|
|
34
34
|
}
|
|
35
35
|
`)])],-1),N=s("hr",null,null,-1),U=s("h2",{id:"ping",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#ping"},"#"),n(" Ping")],-1),W=s("p",null,"Ping\u2026 pong! \u{1F3D3}",-1),z=s("h3",{id:"returns-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-2"},"#"),n(" Returns")],-1),F=s("p",null,"Pong.",-1),J=s("h3",{id:"rest-api-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-2"},"#"),n(" REST API")],-1),K=s("pre",null,[s("code",null,`GET /server/ping
|
|
36
36
|
`)],-1),M=s("h3",{id:"graphql-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-2"},"#"),n(" GraphQL")],-1),X=s("pre",null,[s("code",null,`POST /graphql/system
|
|
@@ -103,7 +103,7 @@ GET /server/specs/graphql/system
|
|
|
103
103
|
`),s("span",{class:"hljs-punctuation"},"]"),n(`
|
|
104
104
|
`),s("span",{class:"hljs-punctuation"},"}"),n(`
|
|
105
105
|
`),s("span",{class:"hljs-punctuation"},"}"),n(`
|
|
106
|
-
`)])],-1),Cs=s("h3",{id:"returns-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-4"},"#"),n(" Returns")],-1),Hs=s("p",null,[s("code",null,"status"),n(),s("strong",null,"string"),s("br"),n(" One of "),s("code",null,"ok"),n(", "),s("code",null,"warn"),n(", "),s("code",null,"error"),n(".")],-1),
|
|
106
|
+
`)])],-1),Cs=s("h3",{id:"returns-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-4"},"#"),n(" Returns")],-1),Hs=s("p",null,[s("code",null,"status"),n(),s("strong",null,"string"),s("br"),n(" One of "),s("code",null,"ok"),n(", "),s("code",null,"warn"),n(", "),s("code",null,"error"),n(".")],-1),Vs=s("p",null,"Authenticated admin users also get the following information:",-1),Bs=s("p",null,[s("code",null,"releaseId"),n(),s("strong",null,"string"),s("br"),n(" Directus version in use.")],-1),Ns=s("p",null,[s("code",null,"serviceId"),n(),s("strong",null,"string"),s("br"),n(" UUID of the current Directus instance.")],-1),Us=s("p",null,[s("code",null,"checks"),n(),s("strong",null,"array"),s("br"),n(" Array with the status of all individually connected services.")],-1),Ws=s("h3",{id:"rest-api-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-4"},"#"),n(" REST API")],-1),zs=s("pre",null,[s("code",null,`GET /server/health
|
|
107
107
|
`)],-1),Fs=s("h3",{id:"graphql-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-4"},"#"),n(" GraphQL")],-1),Js=s("pre",null,[s("code",null,`POST /graphql/system
|
|
108
108
|
`)],-1),Ks=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),n(` {
|
|
109
109
|
server_health:`),s("span",{class:"hljs-literal"}," JSON"),n(`
|
|
@@ -111,4 +111,4 @@ GET /server/specs/graphql/system
|
|
|
111
111
|
`)])],-1),Ms=s("h5",{id:"example-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-4"},"#"),n(" Example")],-1),Xs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),n(` {
|
|
112
112
|
server_health
|
|
113
113
|
}
|
|
114
|
-
`)])],-1),Ys=s("hr",null,null,-1),en="Server",tn=!1,an="REST and GraphQL API documentation on the Server collection in Directus.",ln="4 min read",on="page-reference",rn={name:"server",setup(Zs,{expose:r}){const t={title:"Server",modularExtension:!1,description:"REST and GraphQL API documentation on the Server collection in Directus.",readTime:"4 min read",pageClass:"page-reference"};return r({frontmatter:t}),($s,sn)=>{const a=l("router-link"),c=l("docs-wrapper");return i(),h(c,{frontmatter:t},{default:e(()=>[s("div",p,[s("blockquote",null,[s("p",null,[u,o(a,{to:"/docs/getting-started/glossary#projects"},{default:e(()=>[d]),_:1}),_])]),j,g,m,f,b,y,v,x,q,k,S,T,w,P,I,A,E,G,L,R,Q,O,D,C,H,B,
|
|
114
|
+
`)])],-1),Ys=s("hr",null,null,-1),en="Server",tn=!1,an="REST and GraphQL API documentation on the Server collection in Directus.",ln="4 min read",on="page-reference",rn={name:"server",setup(Zs,{expose:r}){const t={title:"Server",modularExtension:!1,description:"REST and GraphQL API documentation on the Server collection in Directus.",readTime:"4 min read",pageClass:"page-reference"};return r({frontmatter:t}),($s,sn)=>{const a=l("router-link"),c=l("docs-wrapper");return i(),h(c,{frontmatter:t},{default:e(()=>[s("div",p,[s("blockquote",null,[s("p",null,[u,o(a,{to:"/docs/getting-started/glossary#projects"},{default:e(()=>[d]),_:1}),_])]),j,g,m,f,b,y,v,x,q,k,S,T,w,P,I,A,E,G,L,R,Q,O,D,C,H,V,B,N,U,W,z,F,J,K,M,X,Y,Z,$,ss,ns,es,ts,as,ls,s("p",null,[os,o(a,{to:"/docs/reference/system/settings#the-settings-object"},{default:e(()=>[rs]),_:1}),cs,is,hs]),ps,us,ds,_s,js,gs,ms,fs,bs,ys,vs,xs,qs,ks,Ss,Ts,ws,Ps,Is,As,Es,Gs,Ls,Rs,Qs,Os,Ds,Cs,Hs,Vs,Bs,Ns,Us,Ws,zs,Fs,Js,Ks,Ms,Xs,Ys])]),_:1})}}};export{rn as default,an as description,tn as modularExtension,on as pageClass,ln as readTime,en as title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,o as d,b as c,w as o,
|
|
1
|
+
import{a as r,o as d,b as c,w as o,l as t,e as n,E as e}from"./runtime-core.esm-bundler.32cac88a.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:"",playsinline:"",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"),S=e(", form layout, and "),x=e("Fields"),A=e("."),P=e("Roles & Permissions"),j=e(" \u2014 Create and manage access via Roles and Permissions."),C=e("Presets & Bookmarks"),T=e(" \u2014 Set default views of data and configure bookmarks."),q=e("Webhooks"),B=e(" \u2014 Use platform events to trigger external services."),M=t("p",null,"Aside from the above pages, there are three shorthand links:",-1),R=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),E=t("br",null,null,-1),F=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),D=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 "),G=e("Contributing > Introduction"),H=e("."),O=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="Settings",J=!1,K="The Settings Module is where your entire Project is configured, making it the first place to go after installation.",Q="2 min read",X={name:"settings",setup(W,{expose:a}){const i={title:"Settings",modularExtension:!1,description:"The Settings Module is where your entire Project is configured, making it the first place to go after installation.",readTime:"2 min read"};return a({frontmatter:i}),(z,I)=>{const s=r("router-link"),l=r("docs-wrapper");return d(),c(l,{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}),S,n(s,{to:"/docs/getting-started/glossary#fields"},{default:o(()=>[x]),_:1}),A]),t("li",null,[n(s,{to:"/docs/configuration/users-roles-permissions"},{default:o(()=>[P]),_:1}),j]),t("li",null,[n(s,{to:"/docs/configuration/presets-bookmarks"},{default:o(()=>[C]),_:1}),T]),t("li",null,[n(s,{to:"/docs/configuration/webhooks"},{default:o(()=>[q]),_:1}),B])]),M,t("ul",null,[R,t("li",null,[t("p",null,[V,E,F,N,D,n(s,{to:"/docs/contributing/introduction#feature-requests"},{default:o(()=>[G]),_:1}),H])]),O])])]),_:1})}}};export{X as default,K as description,J as modularExtension,Q as readTime,U as title};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as o,o as p,b as i,w as n,
|
|
1
|
+
import{a as o,o as p,b as i,w as n,l as s,e,E as t}from"./runtime-core.esm-bundler.32cac88a.js";const h={class:"markdown-body"},u=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.")],-1),d=s("hr",null,null,-1),_=s("h2",{id:"the-settings-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-settings-object"},"#"),t(" The Settings Object")],-1),j=s("p",null,[s("code",null,"id"),t(),s("strong",null,"uuid"),s("br"),t(" Primary key of the setting.")],-1),g=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),m=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),b=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),f=s("p",null,[s("code",null,"project_color"),t(),s("strong",null,"string"),s("br"),t(" Brand color for the current project.")],-1),y=s("code",null,"project_logo",-1),x=t(),w=s("strong",null,"many-to-one",-1),k=s("br",null,null,-1),q=t(" Primary logo for the current project. Many-to-one to "),A=t("files"),S=t("."),T=s("code",null,"public_foreground",-1),E=t(),P=s("strong",null,"many-to-one",-1),v=s("br",null,null,-1),R=t(" Foreground image for the Admin App\u2019s public pages. Many-to-one to "),C=t("files"),M=t("."),Q=s("code",null,"public_background",-1),B=t(),D=s("strong",null,"many-to-one",-1),G=s("br",null,null,-1),I=t(" Background image for the Admin App\u2019s public pages. Many-to-one to "),L=t("files"),N=t("."),O=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),H=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),V=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),W=s("code",null,"storage_asset_transform",-1),F=t(),U=s("strong",null,"string",-1),z=s("br",null,null,-1),J=t(" If the transform endpoints are allowed to be used on "),K=t("the assets endpoint"),X=t(". One of "),Y=s("code",null,"all",-1),Z=t(", "),$=s("code",null,"none",-1),ss=t(" or "),ts=s("code",null,"presets",-1),ns=t("."),as=s("code",null,"storage_asset_presets",-1),es=t(),ls=s("strong",null,"array",-1),os=s("br",null,null,-1),cs=t(" What preset keys exist in "),rs=t("the assets endpoint"),ps=t("."),is=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),hs=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),us=s("p",null,[s("code",null,"basemaps"),t(),s("strong",null,"array"),s("br"),t(" Custom tiles to overriding the Mapbox defaults.")],-1),ds=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),_s=s("p",null,[s("code",null,"module_bar"),t(),s("strong",null,"array"),s("br"),t(" What modules are enabled/added globally.")],-1),js=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),t(`
|
|
2
2
|
`),s("span",{class:"hljs-attr"},'"data"'),s("span",{class:"hljs-punctuation"},":"),t(),s("span",{class:"hljs-punctuation"},"{"),t(`
|
|
3
3
|
`),s("span",{class:"hljs-attr"},'"id"'),s("span",{class:"hljs-punctuation"},":"),t(),s("span",{class:"hljs-number"},"1"),s("span",{class:"hljs-punctuation"},","),t(`
|
|
4
4
|
`),s("span",{class:"hljs-attr"},'"project_name"'),s("span",{class:"hljs-punctuation"},":"),t(),s("span",{class:"hljs-string"},'"Directus"'),s("span",{class:"hljs-punctuation"},","),t(`
|
|
@@ -29,30 +29,30 @@ import{a as o,o as p,b as i,w as n,g as s,e,B as t}from"./runtime-core.esm-bundl
|
|
|
29
29
|
`),s("span",{class:"hljs-attr"},'"module_bar"'),s("span",{class:"hljs-punctuation"},":"),t(),s("span",{class:"hljs-literal"},[s("span",{class:"hljs-keyword"},"null")]),t(`
|
|
30
30
|
`),s("span",{class:"hljs-punctuation"},"}"),t(`
|
|
31
31
|
`),s("span",{class:"hljs-punctuation"},"}"),t(`
|
|
32
|
-
`)])],-1),
|
|
33
|
-
`)],-1),
|
|
32
|
+
`)])],-1),gs=s("hr",null,null,-1),ms=s("h2",{id:"retrieve-settings",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#retrieve-settings"},"#"),t(" Retrieve Settings")],-1),bs=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),t(" Query Parameters")],-1),fs=t("Supports all "),ys=t("global query parameters"),xs=t("."),ws=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),t(" Returns")],-1),ks=s("p",null,[t("Returns the "),s("a",{href:"#the-settings-object"},"settings object"),t(".")],-1),qs=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),t(" REST API")],-1),As=s("pre",null,[s("code",null,`GET /settings
|
|
33
|
+
`)],-1),Ss=s("h3",{id:"graphql",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql"},"#"),t(" GraphQL")],-1),Ts=s("pre",null,[s("code",null,`POST /graphql/system
|
|
34
34
|
`)],-1),Es=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),t(` {
|
|
35
35
|
settings: directus_settings
|
|
36
36
|
}
|
|
37
|
-
`)])],-1),Ps=s("h5",{id:"example",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example"},"#"),t(" Example")],-1),
|
|
37
|
+
`)])],-1),Ps=s("h5",{id:"example",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example"},"#"),t(" Example")],-1),vs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),t(` {
|
|
38
38
|
settings {
|
|
39
39
|
project_name
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
`)])],-1),
|
|
43
|
-
`)],-1),
|
|
42
|
+
`)])],-1),Rs=s("hr",null,null,-1),Cs=s("h2",{id:"update-settings",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-settings"},"#"),t(" Update Settings")],-1),Ms=s("h3",{id:"query-parameters-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-1"},"#"),t(" Query Parameters")],-1),Qs=t("Supports all "),Bs=t("global query parameters"),Ds=t("."),Gs=s("h3",{id:"request-body",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body"},"#"),t(" Request Body")],-1),Is=s("p",null,[t("A partial "),s("a",{href:"#the-settings-object"},"settings object"),t(".")],-1),Ls=s("h3",{id:"returns-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-1"},"#"),t(" Returns")],-1),Ns=s("p",null,[t("Returns the "),s("a",{href:"#the-setting-object"},"settings object"),t(".")],-1),Os=s("h3",{id:"rest-api-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-1"},"#"),t(" REST API")],-1),Hs=s("pre",null,[s("code",null,`PATCH /settings
|
|
43
|
+
`)],-1),Vs=s("h5",{id:"example-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-1"},"#"),t(" Example")],-1),Ws=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /settings"),t(`
|
|
44
44
|
|
|
45
45
|
`),s("span",{class:"hljs-punctuation"},"{"),t(`
|
|
46
46
|
`),s("span",{class:"hljs-attr"},'"project_url"'),s("span",{class:"hljs-punctuation"},":"),t(),s("span",{class:"hljs-string"},'"https://example.com/"'),t(`
|
|
47
47
|
`),s("span",{class:"hljs-punctuation"},"}"),t(`
|
|
48
|
-
`)])],-1),
|
|
49
|
-
`)],-1),
|
|
48
|
+
`)])],-1),Fs=s("h3",{id:"graphql-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-1"},"#"),t(" GraphQL")],-1),Us=s("pre",null,[s("code",null,`POST /graphql/system
|
|
49
|
+
`)],-1),zs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
50
50
|
update_settings(data: update_directus_settings_input!): directus_settings
|
|
51
51
|
}
|
|
52
|
-
`)])],-1),
|
|
52
|
+
`)])],-1),Js=s("h5",{id:"example-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-2"},"#"),t(" Example")],-1),Ks=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
53
53
|
update_settings(data: { project_url: `),s("span",{class:"hljs-string"},'"https://example.com"'),t(` }) {
|
|
54
54
|
project_name
|
|
55
55
|
project_url
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
`)])],-1),
|
|
58
|
+
`)])],-1),st="Settings",tt=!1,nt="REST and GraphQL API documentation on the Settings collection in Directus.",at="3 min read",et="page-reference",lt={name:"settings",setup(Xs,{expose:c}){const l={title:"Settings",modularExtension:!1,description:"REST and GraphQL API documentation on the Settings collection in Directus.",readTime:"3 min read",pageClass:"page-reference"};return c({frontmatter:l}),(Ys,Zs)=>{const a=o("router-link"),r=o("docs-wrapper");return p(),i(r,{frontmatter:l},{default:n(()=>[s("div",h,[u,d,_,j,g,m,b,f,s("p",null,[y,x,w,k,q,e(a,{to:"/docs/reference/files"},{default:n(()=>[A]),_:1}),S]),s("p",null,[T,E,P,v,R,e(a,{to:"/docs/reference/files"},{default:n(()=>[C]),_:1}),M]),s("p",null,[Q,B,D,G,I,e(a,{to:"/docs/reference/files"},{default:n(()=>[L]),_:1}),N]),O,H,V,s("p",null,[W,F,U,z,J,e(a,{to:"/docs/reference/files#requesting-a-thumbnail"},{default:n(()=>[K]),_:1}),X,Y,Z,$,ss,ts,ns]),s("p",null,[as,es,ls,os,cs,e(a,{to:"/docs/reference/files#requesting-a-thumbnail"},{default:n(()=>[rs]),_:1}),ps]),is,hs,us,ds,_s,js,gs,ms,bs,s("p",null,[fs,e(a,{to:"/docs/reference/query"},{default:n(()=>[ys]),_:1}),xs]),ws,ks,qs,As,Ss,Ts,Es,Ps,vs,Rs,Cs,Ms,s("p",null,[Qs,e(a,{to:"/docs/reference/query"},{default:n(()=>[Bs]),_:1}),Ds]),Gs,Is,Ls,Ns,Os,Hs,Vs,Ws,Fs,Us,zs,Js,Ks])]),_:1})}}};export{lt as default,nt as description,tt as modularExtension,et as pageClass,at as readTime,st as title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l,o as h,b as d,w as n,g as e,e as o,B as t}from"./runtime-core.esm-bundler.e3d5f5b7.js";const c={class:"markdown-body"},u=e("blockquote",null,[e("p",null,"The Shares utility enables you to share an Item with anyone, regardless of their permissions, even if they are not users within the project.")],-1),p=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/data-shares-20220217A.mp4",type:"video/mp4"}),e("p",null,[t("Your browser is not displaying the video for some reason. Here's a "),e("a",{href:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/data-shares-20220217A.mp4"},"link to the video"),t(" instead.")])],-1),m=e("h2",{id:"what%E2%80%99s-a-share%3F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#what%E2%80%99s-a-share%3F"},"#"),t(" What\u2019s a Share?")],-1),g=e("p",null,"In any Project, some Collections may be accessible for only certain User roles, or hidden from the public. You may decide to share one of the Items within the collection with an individual or group of individuals who don\u2019t yet have permission. In this case, use Shares. Shares let you give anybody access to an Item. When you create a Share on an Item, a Role for the Share to inherit view permissions is assigned. Then you can share the Item via a hyperlink or email. The link leads to a page containing the read-only content for just that shared Item.",-1),_={class:"tip hint"},w=e("div",{class:"hint-title"},"Read-only",-1),y=t("At this time, Shares are read-only. However, Data Sharing is an extensible feature that could support full CRUD permissions. We welcome any "),f=t("pull-requests"),b=t(" to address this or interest in "),S=t("sponsoring the feature"),v=t("."),k={class:"warning hint"},R=e("div",{class:"hint-title"},"Users, Roles and Permissions!",-1),I=t("You will need to understand how "),C=t("Users, Roles, and Permissions"),x=t(" work in Directus to configure Shares properly."),A=e("h2",{id:"how-it-works",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#how-it-works"},"#"),t(" How It Works")],-1),F=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/how-shares-work-20220217A.mp4",type:"video/mp4"}),e("p",null,[t("If your browser is not displaying the video for some reason, here's a "),e("a",{href:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/how-shares-work-20220217A.mp4"},"link to the video"),t(" instead.")])],-1),N=e("ol",null,[e("li",null,"Navigate to the Content Module."),e("li",null,"Navigate to the Collection of the Item you want to share."),e("li",null,"Click the Item to open its Item Page."),e("li",null,"Click the Shares button in the Sidebar."),e("li",null,"From the dropdown, click \u201CNew Share.\u201D"),e("li",null,[t("Fill in the Share Options. Everything on the "),e("a",{href:"#share-options-menu"},"Share Options Menu"),t(" is optional, but please note: "),e("ul",null,[e("li",null,"Without a name, it will be harder to remember the context/reason for the Share, especially with multiple shares on a single Item."),e("li",null,"If no Role is selected, it defaults to Public permissions, which provide no benefit, as anyone can access Items available to the Public role."),e("li",null,"The other access constraints are totally optional.")])]),e("li",null,[t("Click "),e("span",{mi:"",btn:""},"check"),t(" in the Menu Header once you have set a name, a Role and constraints. You will see your new Share under "),e("strong",null,"Shares"),t(" in the sidebar.")]),e("li",null,[t("Click the "),e("span",{mi:"",icon:""},"more_horiz"),t(" button on the right side of your Share.")])],-1),P=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/copy-send-edit-delete-shares-menu-20220217A.webp",alt:"copy send edit delete shares menu"})],-1),M=e("ol",{start:"9"},[e("li",null,[t("Here you have 4 options: "),e("ul",null,[e("li",null,[e("strong",null,"Copy Link"),t(" \u2013 Creates a hyperlink that you can copy and paste.")]),e("li",null,[e("strong",null,"Send Link"),t(" \u2013 Creates prompt for the User to add email(s) and share the link.")]),e("li",null,[e("strong",null,"Edit"),t(" \u2013 Reopens the Share Options Menu for additional edits.")]),e("li",null,[e("strong",null,"Delete"),t(" \u2013 Permanently deletes the Share.")])])])],-1),O=e("p",null,"Once the link is opened by a user, a custom page displaying the Shared Item will be rendered.",-1),E=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Logout to test links"),e("p",null,"If you open a Share link while logged in to Directus, it will redirect to the Item in the Directus App. When testing a Share, make sure to log out of the app before opening the link, or simply open the link in another browser or incognito tab.")],-1),T=e("h2",{id:"share-options-menu",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#share-options-menu"},"#"),t(" Share Options Menu")],-1),U=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/share-options-menu-20220217A.webp",alt:"Share Options Menu"})],-1),D=e("ul",null,[e("li",null,[e("strong",null,"Name"),t(" \u2013 Adds a name to describe the Share.")]),e("li",null,[e("strong",null,"Role"),t(" \u2013 "),e("a",{href:"#assigning-a-role"},"Assigns a Role"),t(" from which the Share will inherit permissions.")]),e("li",null,[e("strong",null,"Password"),t(" \u2013 Creates a password that must be used to access the shared Item.")]),e("li",null,[e("strong",null,"Start Date"),t(" \u2013 Selects the first date that the Share can be accessed.")]),e("li",null,[e("strong",null,"End Date"),t(" \u2013 Selects the last date that the Share can be accessed.")]),e("li",null,[e("strong",null,"Max Uses"),t(" \u2013 Sets the total number of times the shared Item can be viewed.")]),e("li",null,[e("strong",null,"Times Used"),t(" - Displays the number of times the shared Item was viewed.")])],-1),H=e("h2",{id:"creating-and-viewing-shares",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#creating-and-viewing-shares"},"#"),t(" Creating and Viewing Shares")],-1),B=e("p",null,[t("A User\u2019s ability to create Shares depends on their Role\u2019s permissions. If you are an "),e("code",null,"Administrator"),t(", "),e("em",null,"congratulations!"),t(" You can share any Item you want. However, Users with other Roles will likely have limited Share permissions.")],-1),L=e("p",null,"Any Share will inherit the same read permissions as the Role it was associated with in the Share Options Menu.",-1),W=t("This system allows for absolutely granular configuration options on Shares\u2026 "),Y=t("but it also means you\u2019ll need to understand "),j=t("Users, Roles, and Permissions"),V=t(" thoroughly to use Shares properly"),q=t(". Here are some highlights of what you can do:"),z=e("ul",null,[e("li",null,"Set the Collections a Role can view or share."),e("li",null,"Filter for specific Items a Role can view or share."),e("li",null,"Set specific Fields a Role can view or share."),e("li",null,"Set view permissions of relationally linked Items."),e("li",null,"Restrict Role access to specific IP address(es).")],-1),G=e("h2",{id:"is-data-sharing-safe%3F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#is-data-sharing-safe%3F"},"#"),t(" Is Data Sharing Safe?")],-1),J=e("p",null,[t("Obviously, you don\u2019t want to expose Items unless they are explicitly shared, however some Items may be linked to Items in other Collections. So, in addition to inheriting the Role\u2019s permissions, the API automatically generates and injects a permissions set so that only the shared Item "),e("em",null,"(and the Items relationally linked to that shared Item)"),t(" can be viewed. As noted previously, viewability is dependent on whether the Role associated to the Share has read permissions on those linked Collections.")],-1),K=e("h2",{id:"assigning-a-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#assigning-a-role"},"#"),t(" Assigning a Role")],-1),Q=e("p",null,[t("The Role option in the "),e("a",{href:"#share-options-menu"},"Share Options Menu"),t(" lets you associate a Role to the Share. The Share will then inherit permissions of that Role.")],-1),X=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/select-existing-role-menu-20220217A.webp",alt:"Select Role for Share"})],-1),Z=e("h3",{id:"assign-an-existing-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#assign-an-existing-role"},"#"),t(" Assign an Existing Role")],-1),$=e("ol",null,[e("li",null,[t("Navigate to the "),e("strong",null,"Share Options Menu"),t(".")]),e("li",null,[t("Click the Role Input Box and a new side menu will appear "),e("em",null,"(shown above)"),t(".")]),e("li",null,"Select the Role from which you\u2019d like your Share to inherit permissions."),e("li",null,[t("Click "),e("span",{mi:"",btn:""},"check"),t(" to confirm.")])],-1),ee=e("h3",{id:"creating-%2F-editing-a-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#creating-%2F-editing-a-role"},"#"),t(" Creating / Editing a Role")],-1),te=e("p",null,[e("em",null,"If your Role has the correct permissions configured"),t(", you can create a new Role and assign it to a Share "),e("em",null,"\u201Con the fly\u201D"),t(" in the Share Options Menu. However, you will still need to navigate to "),e("strong",null,"Settings > Roles and Permissions > [Role Name]"),t(" to configure any read permissions.")],-1),ne=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/creating-and-edit-roles-menu-20220217A.webp",alt:"Creating / Editing a Role within Shares"})],-1),se=e("h3",{id:"create-a-new-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-a-new-role"},"#"),t(" Create a New Role")],-1),oe=e("ol",null,[e("li",null,[t("Navigate to the "),e("strong",null,"Share Options Menu"),t(".")]),e("li",null,[t("Click "),e("span",{mi:"",icon:""},"add"),t(" in the Role Input Box and the Role Options Menu will appear.")]),e("li",null,"Fill out the options to create the Role according to your needs."),e("li",null,[t("Click "),e("span",{mi:"",btn:""},"check"),t(" to confirm Role creation.")])],-1),ie=e("h3",{id:"edit-an-assigned-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#edit-an-assigned-role"},"#"),t(" Edit an Assigned Role")],-1),le=e("ol",null,[e("li",null,[t("Navigate to the "),e("strong",null,"Share Options Menu"),t(".")]),e("li",null,[t("Click "),e("span",{mi:"",icon:""},"open_in_new"),t(" in the Role Input Box and the Role Options Menu will appear.")]),e("li",null,"Edit Role options according to your needs."),e("li",null,[t("Click "),e("span",{mi:"",btn:""},"check"),t(" to confirm edits.")])],-1),ae=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"You're creating / editing actual Roles!"),e("p",null,"If you create or edit a Role in this menu, your changes will take effect across the application, not just in the context of the Share.")],-1),re=e("h2",{id:"limit-sharing-by-collection",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#limit-sharing-by-collection"},"#"),t(" Limit Sharing by Collection")],-1),he=e("p",null,"You can limit which Collections a Role is allowed to share:",-1),de=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Roles and Permissions"),t(".")]),e("li",null,[t("Select the "),e("strong",null,"[Role Name]"),t(" that will be responsible for creating the Share.")]),e("li",null,[t("Find the "),e("strong",null,"[Collection]"),t(" you wish to set Filter(s) for, then click the icon in the column under "),e("span",{mi:"",icon:""},"share"),t(" and a small menu will appear.")]),e("li",null,[t("Select "),e("span",{mi:""},"check"),t(" to enable and "),e("span",{mi:""},"block"),t(" to disable Shares on this Collection.")])],-1),ce=e("h2",{id:"limit-sharing-by-item",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#limit-sharing-by-item"},"#"),t(" Limit Sharing by Item")],-1),ue=e("p",null,[t("Sometimes you may want a given Role to be able to share some Items but not others. Filters allow you to control exactly which Items a Role will be able to share, for example, "),e("em",null,"only share reports that are marked as \u2018Done\u2019"),t(". To use Filters:")],-1),pe=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Roles and Permissions"),t(".")]),e("li",null,[t("Select the "),e("strong",null,"[Role Name]"),t(" that will be responsible for creating the Share.")]),e("li",null,[t("Find the "),e("strong",null,"[Collection]"),t(" you wish to set the Filter(s) for, then click the icon in the column under "),e("span",{mi:"",icon:""},"share"),t(" and a small menu will appear.")]),e("li",null,[t("Select "),e("span",{mi:"",icon:""},"rule"),e("strong",null,"Use Custom"),t(" and a side menu will appear.")]),e("li",null,"Create your Filter(s) as needed.")],-1),me=e("h2",{id:"limit-sharing-by-field",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#limit-sharing-by-field"},"#"),t(" Limit Sharing by Field")],-1),ge=e("p",null,[t("When you create a Share on some Item, you associate a Role "),e("em",null,"(and thus the Role\u2019s permissions)"),t(" to the Item. This allows you to set read permissions for the exact fields "),e("em",null,"(including relational fields)"),t(" that get shared. To Limit sharing by Field:")],-1),_e=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Roles and Permissions"),t(".")]),e("li",null,[t("Select the "),e("strong",null,"[Role Name]"),t(" that is assigned to the Share.")]),e("li",null,[t("Find the "),e("strong",null,"[Collection]"),t(" then click the icon in the column under the "),e("span",{mi:"",icon:""},"visibility"),t(" icon and a small menu will appear.")]),e("li",null,[t("Select "),e("span",{mi:"",icon:""},"rule"),e("strong",null,"Use Custom"),t(" and a side menu will appear.")]),e("li",null,[t("Click "),e("strong",null,"Field Permissions"),t(".")]),e("li",null,"Click to check the Collection Fields for which you\u2019d like to allow read permissions."),e("li",null,[t("Select "),e("span",{mi:""},"check"),t(" in the side menu Header to confirm changes.")])],-1),Se="Shares",ve=!1,ke={name:"shares",setup(we,{expose:a}){const i={title:"Shares",modularExtension:!1};return a({frontmatter:i}),(ye,fe)=>{const s=l("router-link"),r=l("docs-wrapper");return h(),d(r,{frontmatter:i},{default:n(()=>[e("div",c,[u,p,m,g,e("div",_,[w,e("p",null,[y,o(s,{to:"/docs/contributing/introduction"},{default:n(()=>[f]),_:1}),b,o(s,{to:"/docs/getting-started/support#sponsored-work"},{default:n(()=>[S]),_:1}),v])]),e("div",k,[R,e("p",null,[I,o(s,{to:"/docs/configuration/users-roles-permissions"},{default:n(()=>[C]),_:1}),x])]),A,F,N,P,M,O,E,T,U,D,H,B,L,e("p",null,[W,e("em",null,[Y,o(s,{to:"/docs/configuration/users-roles-permissions"},{default:n(()=>[j]),_:1}),V]),q]),z,G,J,K,Q,X,Z,$,ee,te,ne,se,oe,ie,le,ae,re,he,de,ce,ue,pe,me,ge,_e])]),_:1})}}};export{ke as default,ve as modularExtension,Se as title};
|
|
1
|
+
import{a as l,o as h,b as d,w as n,l as e,e as o,E as t}from"./runtime-core.esm-bundler.32cac88a.js";const c={class:"markdown-body"},u=e("blockquote",null,[e("p",null,"The Shares utility enables you to share an Item with anyone, regardless of their permissions, even if they are not users within the project.")],-1),p=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/data-shares-20220217A.mp4",type:"video/mp4"}),e("p",null,[t("Your browser is not displaying the video for some reason. Here's a "),e("a",{href:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/data-shares-20220217A.mp4"},"link to the video"),t(" instead.")])],-1),m=e("h2",{id:"what%E2%80%99s-a-share%3F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#what%E2%80%99s-a-share%3F"},"#"),t(" What\u2019s a Share?")],-1),g=e("p",null,"In any Project, some Collections may be accessible for only certain User roles, or hidden from the public. You may decide to share one of the Items within the collection with an individual or group of individuals who don\u2019t yet have permission. In this case, use Shares. Shares let you give anybody access to an Item. When you create a Share on an Item, a Role for the Share to inherit view permissions is assigned. Then you can share the Item via a hyperlink or email. The link leads to a page containing the read-only content for just that shared Item.",-1),_={class:"tip hint"},w=e("div",{class:"hint-title"},"Read-only",-1),y=t("At this time, Shares are read-only. However, Data Sharing is an extensible feature that could support full CRUD permissions. We welcome any "),f=t("pull-requests"),b=t(" to address this or interest in "),S=t("sponsoring the feature"),v=t("."),k={class:"warning hint"},R=e("div",{class:"hint-title"},"Users, Roles and Permissions!",-1),I=t("You will need to understand how "),C=t("Users, Roles, and Permissions"),x=t(" work in Directus to configure Shares properly."),A=e("h2",{id:"how-it-works",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#how-it-works"},"#"),t(" How It Works")],-1),F=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/how-shares-work-20220217A.mp4",type:"video/mp4"}),e("p",null,[t("If your browser is not displaying the video for some reason, here's a "),e("a",{href:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/how-shares-work-20220217A.mp4"},"link to the video"),t(" instead.")])],-1),N=e("ol",null,[e("li",null,"Navigate to the Content Module."),e("li",null,"Navigate to the Collection of the Item you want to share."),e("li",null,"Click the Item to open its Item Page."),e("li",null,"Click the Shares button in the Sidebar."),e("li",null,"From the dropdown, click \u201CNew Share.\u201D"),e("li",null,[t("Fill in the Share Options. Everything on the "),e("a",{href:"#share-options-menu"},"Share Options Menu"),t(" is optional, but please note: "),e("ul",null,[e("li",null,"Without a name, it will be harder to remember the context/reason for the Share, especially with multiple shares on a single Item."),e("li",null,"If no Role is selected, it defaults to Public permissions, which provide no benefit, as anyone can access Items available to the Public role."),e("li",null,"The other access constraints are totally optional.")])]),e("li",null,[t("Click "),e("span",{mi:"",btn:""},"check"),t(" in the Menu Header once you have set a name, a Role and constraints. You will see your new Share under "),e("strong",null,"Shares"),t(" in the sidebar.")]),e("li",null,[t("Click the "),e("span",{mi:"",icon:""},"more_horiz"),t(" button on the right side of your Share.")])],-1),P=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/copy-send-edit-delete-shares-menu-20220217A.webp",alt:"copy send edit delete shares menu"})],-1),M=e("ol",{start:"9"},[e("li",null,[t("Here you have 4 options: "),e("ul",null,[e("li",null,[e("strong",null,"Copy Link"),t(" \u2013 Creates a hyperlink that you can copy and paste.")]),e("li",null,[e("strong",null,"Send Link"),t(" \u2013 Creates prompt for the User to add email(s) and share the link.")]),e("li",null,[e("strong",null,"Edit"),t(" \u2013 Reopens the Share Options Menu for additional edits.")]),e("li",null,[e("strong",null,"Delete"),t(" \u2013 Permanently deletes the Share.")])])])],-1),O=e("p",null,"Once the link is opened by a user, a custom page displaying the Shared Item will be rendered.",-1),E=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Logout to test links"),e("p",null,"If you open a Share link while logged in to Directus, it will redirect to the Item in the Directus App. When testing a Share, make sure to log out of the app before opening the link, or simply open the link in another browser or incognito tab.")],-1),T=e("h2",{id:"share-options-menu",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#share-options-menu"},"#"),t(" Share Options Menu")],-1),U=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/share-options-menu-20220217A.webp",alt:"Share Options Menu"})],-1),D=e("ul",null,[e("li",null,[e("strong",null,"Name"),t(" \u2013 Adds a name to describe the Share.")]),e("li",null,[e("strong",null,"Role"),t(" \u2013 "),e("a",{href:"#assigning-a-role"},"Assigns a Role"),t(" from which the Share will inherit permissions.")]),e("li",null,[e("strong",null,"Password"),t(" \u2013 Creates a password that must be used to access the shared Item.")]),e("li",null,[e("strong",null,"Start Date"),t(" \u2013 Selects the first date that the Share can be accessed.")]),e("li",null,[e("strong",null,"End Date"),t(" \u2013 Selects the last date that the Share can be accessed.")]),e("li",null,[e("strong",null,"Max Uses"),t(" \u2013 Sets the total number of times the shared Item can be viewed.")]),e("li",null,[e("strong",null,"Times Used"),t(" - Displays the number of times the shared Item was viewed.")])],-1),H=e("h2",{id:"creating-and-viewing-shares",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#creating-and-viewing-shares"},"#"),t(" Creating and Viewing Shares")],-1),L=e("p",null,[t("A User\u2019s ability to create Shares depends on their Role\u2019s permissions. If you are an "),e("code",null,"Administrator"),t(", "),e("em",null,"congratulations!"),t(" You can share any Item you want. However, Users with other Roles will likely have limited Share permissions.")],-1),W=e("p",null,"Any Share will inherit the same read permissions as the Role it was associated with in the Share Options Menu.",-1),Y=t("This system allows for absolutely granular configuration options on Shares\u2026 "),B=t("but it also means you\u2019ll need to understand "),j=t("Users, Roles, and Permissions"),V=t(" thoroughly to use Shares properly"),q=t(". Here are some highlights of what you can do:"),z=e("ul",null,[e("li",null,"Set the Collections a Role can view or share."),e("li",null,"Filter for specific Items a Role can view or share."),e("li",null,"Set specific Fields a Role can view or share."),e("li",null,"Set view permissions of relationally linked Items."),e("li",null,"Restrict Role access to specific IP address(es).")],-1),G=e("h2",{id:"is-data-sharing-safe%3F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#is-data-sharing-safe%3F"},"#"),t(" Is Data Sharing Safe?")],-1),J=e("p",null,[t("Obviously, you don\u2019t want to expose Items unless they are explicitly shared, however some Items may be linked to Items in other Collections. So, in addition to inheriting the Role\u2019s permissions, the API automatically generates and injects a permissions set so that only the shared Item "),e("em",null,"(and the Items relationally linked to that shared Item)"),t(" can be viewed. As noted previously, viewability is dependent on whether the Role associated to the Share has read permissions on those linked Collections.")],-1),K=e("h2",{id:"assigning-a-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#assigning-a-role"},"#"),t(" Assigning a Role")],-1),Q=e("p",null,[t("The Role option in the "),e("a",{href:"#share-options-menu"},"Share Options Menu"),t(" lets you associate a Role to the Share. The Share will then inherit permissions of that Role.")],-1),X=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/select-existing-role-menu-20220217A.webp",alt:"Select Role for Share"})],-1),Z=e("h3",{id:"assign-an-existing-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#assign-an-existing-role"},"#"),t(" Assign an Existing Role")],-1),$=e("ol",null,[e("li",null,[t("Navigate to the "),e("strong",null,"Share Options Menu"),t(".")]),e("li",null,[t("Click the Role Input Box and a new side menu will appear "),e("em",null,"(shown above)"),t(".")]),e("li",null,"Select the Role from which you\u2019d like your Share to inherit permissions."),e("li",null,[t("Click "),e("span",{mi:"",btn:""},"check"),t(" to confirm.")])],-1),ee=e("h3",{id:"creating-%2F-editing-a-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#creating-%2F-editing-a-role"},"#"),t(" Creating / Editing a Role")],-1),te=e("p",null,[e("em",null,"If your Role has the correct permissions configured"),t(", you can create a new Role and assign it to a Share "),e("em",null,"\u201Con the fly\u201D"),t(" in the Share Options Menu. However, you will still need to navigate to "),e("strong",null,"Settings > Roles and Permissions > [Role Name]"),t(" to configure any read permissions.")],-1),ne=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/data-sharing/data-sharing-20220217A/creating-and-edit-roles-menu-20220217A.webp",alt:"Creating / Editing a Role within Shares"})],-1),se=e("h3",{id:"create-a-new-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-a-new-role"},"#"),t(" Create a New Role")],-1),oe=e("ol",null,[e("li",null,[t("Navigate to the "),e("strong",null,"Share Options Menu"),t(".")]),e("li",null,[t("Click "),e("span",{mi:"",icon:""},"add"),t(" in the Role Input Box and the Role Options Menu will appear.")]),e("li",null,"Fill out the options to create the Role according to your needs."),e("li",null,[t("Click "),e("span",{mi:"",btn:""},"check"),t(" to confirm Role creation.")])],-1),ie=e("h3",{id:"edit-an-assigned-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#edit-an-assigned-role"},"#"),t(" Edit an Assigned Role")],-1),le=e("ol",null,[e("li",null,[t("Navigate to the "),e("strong",null,"Share Options Menu"),t(".")]),e("li",null,[t("Click "),e("span",{mi:"",icon:""},"open_in_new"),t(" in the Role Input Box and the Role Options Menu will appear.")]),e("li",null,"Edit Role options according to your needs."),e("li",null,[t("Click "),e("span",{mi:"",btn:""},"check"),t(" to confirm edits.")])],-1),ae=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"You're creating / editing actual Roles!"),e("p",null,"If you create or edit a Role in this menu, your changes will take effect across the application, not just in the context of the Share.")],-1),re=e("h2",{id:"limit-sharing-by-collection",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#limit-sharing-by-collection"},"#"),t(" Limit Sharing by Collection")],-1),he=e("p",null,"You can limit which Collections a Role is allowed to share:",-1),de=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Roles and Permissions"),t(".")]),e("li",null,[t("Select the "),e("strong",null,"[Role Name]"),t(" that will be responsible for creating the Share.")]),e("li",null,[t("Find the "),e("strong",null,"[Collection]"),t(" you wish to set Filter(s) for, then click the icon in the column under "),e("span",{mi:"",icon:""},"share"),t(" and a small menu will appear.")]),e("li",null,[t("Select "),e("span",{mi:""},"check"),t(" to enable and "),e("span",{mi:""},"block"),t(" to disable Shares on this Collection.")])],-1),ce=e("h2",{id:"limit-sharing-by-item",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#limit-sharing-by-item"},"#"),t(" Limit Sharing by Item")],-1),ue=e("p",null,[t("Sometimes you may want a given Role to be able to share some Items but not others. Filters allow you to control exactly which Items a Role will be able to share, for example, "),e("em",null,"only share reports that are marked as \u2018Done\u2019"),t(". To use Filters:")],-1),pe=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Roles and Permissions"),t(".")]),e("li",null,[t("Select the "),e("strong",null,"[Role Name]"),t(" that will be responsible for creating the Share.")]),e("li",null,[t("Find the "),e("strong",null,"[Collection]"),t(" you wish to set the Filter(s) for, then click the icon in the column under "),e("span",{mi:"",icon:""},"share"),t(" and a small menu will appear.")]),e("li",null,[t("Select "),e("span",{mi:"",icon:""},"rule"),e("strong",null,"Use Custom"),t(" and a side menu will appear.")]),e("li",null,"Create your Filter(s) as needed.")],-1),me=e("h2",{id:"limit-sharing-by-field",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#limit-sharing-by-field"},"#"),t(" Limit Sharing by Field")],-1),ge=e("p",null,[t("When you create a Share on some Item, you associate a Role "),e("em",null,"(and thus the Role\u2019s permissions)"),t(" to the Item. This allows you to set read permissions for the exact fields "),e("em",null,"(including relational fields)"),t(" that get shared. To Limit sharing by Field:")],-1),_e=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Roles and Permissions"),t(".")]),e("li",null,[t("Select the "),e("strong",null,"[Role Name]"),t(" that is assigned to the Share.")]),e("li",null,[t("Find the "),e("strong",null,"[Collection]"),t(" then click the icon in the column under the "),e("span",{mi:"",icon:""},"visibility"),t(" icon and a small menu will appear.")]),e("li",null,[t("Select "),e("span",{mi:"",icon:""},"rule"),e("strong",null,"Use Custom"),t(" and a side menu will appear.")]),e("li",null,[t("Click "),e("strong",null,"Field Permissions"),t(".")]),e("li",null,"Click to check the Collection Fields for which you\u2019d like to allow read permissions."),e("li",null,[t("Select "),e("span",{mi:""},"check"),t(" in the side menu Header to confirm changes.")])],-1),Se="Shares",ve=!1,ke={name:"shares",setup(we,{expose:a}){const i={title:"Shares",modularExtension:!1};return a({frontmatter:i}),(ye,fe)=>{const s=l("router-link"),r=l("docs-wrapper");return h(),d(r,{frontmatter:i},{default:n(()=>[e("div",c,[u,p,m,g,e("div",_,[w,e("p",null,[y,o(s,{to:"/docs/contributing/introduction"},{default:n(()=>[f]),_:1}),b,o(s,{to:"/docs/getting-started/support#sponsored-work"},{default:n(()=>[S]),_:1}),v])]),e("div",k,[R,e("p",null,[I,o(s,{to:"/docs/configuration/users-roles-permissions"},{default:n(()=>[C]),_:1}),x])]),A,F,N,P,M,O,E,T,U,D,H,L,W,e("p",null,[Y,e("em",null,[B,o(s,{to:"/docs/configuration/users-roles-permissions"},{default:n(()=>[j]),_:1}),V]),q]),z,G,J,K,Q,X,Z,$,ee,te,ne,se,oe,ie,le,ae,re,he,de,ce,ue,pe,me,ge,_e])]),_:1})}}};export{ke as default,ve as modularExtension,Se as title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as E}from"./index.
|
|
1
|
+
import{y as E}from"./index.2c592891.entry.js";function O(h,a){return a.forEach(function(o){o&&typeof o!="string"&&!Array.isArray(o)&&Object.keys(o).forEach(function(f){if(f!=="default"&&!(f in h)){var c=Object.getOwnPropertyDescriptor(o,f);Object.defineProperty(h,f,c.get?c:{enumerable:!0,get:function(){return o[f]}})}})}),Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(h,a){(function(o){o(E.exports)})(function(o){o.defineMode("shell",function(){var f={};function c(e,n){for(var r=0;r<n.length;r++)f[n[r]]=e}var k=["true","false"],d=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],g=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];o.registerHelper("hintWords","shell",k.concat(d,g)),c("atom",k),c("keyword",d),c("builtin",g);function b(e,n){if(e.eatSpace())return null;var r=e.sol(),t=e.next();if(t==="\\")return e.next(),null;if(t==="'"||t==='"'||t==="`")return n.tokens.unshift(p(t,t==="`"?"quote":"string")),s(e,n);if(t==="#")return r&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if(t==="$")return n.tokens.unshift(v),s(e,n);if(t==="+"||t==="=")return"operator";if(t==="-")return e.eat("-"),e.eatWhile(/\w/),"attribute";if(t=="<"){if(e.match("<<"))return"operator";var u=e.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(u)return n.tokens.unshift(y(u[1])),"string-2"}if(/\d/.test(t)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var i=e.current();return e.peek()==="="&&/\w+/.test(i)?"def":f.hasOwnProperty(i)?f[i]:null}function p(e,n){var r=e=="("?")":e=="{"?"}":e;return function(t,u){for(var i,l=!1;(i=t.next())!=null;){if(i===r&&!l){u.tokens.shift();break}else if(i==="$"&&!l&&e!=="'"&&t.peek()!=r){l=!0,t.backUp(1),u.tokens.unshift(v);break}else{if(!l&&e!==r&&i===e)return u.tokens.unshift(p(e,n)),s(t,u);if(!l&&/['"]/.test(i)&&!/['"]/.test(e)){u.tokens.unshift(x(i,"string")),t.backUp(1);break}}l=!l&&i==="\\"}return n}}function x(e,n){return function(r,t){return t.tokens[0]=p(e,n),r.next(),s(r,t)}}var v=function(e,n){n.tokens.length>1&&e.eat("$");var r=e.next();return/['"({]/.test(r)?(n.tokens[0]=p(r,r=="("?"quote":r=="{"?"def":"string"),s(e,n)):(/\d/.test(r)||e.eatWhile(/\w/),n.tokens.shift(),"def")};function y(e){return function(n,r){return n.sol()&&n.string==e&&r.tokens.shift(),n.skipToEnd(),"string-2"}}function s(e,n){return(n.tokens[0]||b)(e,n)}return{startState:function(){return{tokens:[]}},token:function(e,n){return s(e,n)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),o.defineMIME("text/x-sh","shell"),o.defineMIME("application/x-sh","shell")})})();var S=w.exports,j=O({__proto__:null,default:S},[w.exports]);export{j as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as ot}from"./index.69857a47.entry.js";function rt(A,L){return L.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(v){if(v!=="default"&&!(v in A)){var y=Object.getOwnPropertyDescriptor(r,v);Object.defineProperty(A,v,y.get?y:{enumerable:!0,get:function(){return r[v]}})}})}),Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var X={exports:{}};(function(A,L){(function(r){r(ot.exports)})(function(r){var v="CodeMirror-hint",y="CodeMirror-hint-active";r.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var s in i)n[s]=i[s];return t.showHint(n)},r.defineExtension("showHint",function(t){t=Q(this,this.getCursor("start"),t);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<e.length;i++)if(e[i].head.line!=e[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var n=this.state.completionActive=new P(this,t);!n.options.hint||(r.signal(this,"startCompletion",this),n.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function P(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}var G=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},J=window.cancelAnimationFrame||clearTimeout;P.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,e){var i=t.list[e],n=this;this.cm.operation(function(){i.hint?i.hint(n.cm,t,i):n.cm.replaceRange(R(i),i.from||t.from,i.to||t.to,"complete"),r.signal(t,"pick",i),n.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(J(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=G(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(this.tick!=null){var e=this,i=++this.tick;K(this.options.hint,this.cm,this.options,function(n){e.tick==i&&e.finishUpdate(n,t)})}},finishUpdate:function(t,e){this.data&&r.signal(this.data,"update");var i=this.widget&&this.widget.picked||e&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&t.list.length==1?this.pick(t,0):(this.widget=new B(this,t),r.signal(t,"shown")))}};function Q(t,e,i){var n=t.options.hintOptions,s={};for(var c in U)s[c]=U[c];if(n)for(var c in n)n[c]!==void 0&&(s[c]=n[c]);if(i)for(var c in i)i[c]!==void 0&&(s[c]=i[c]);return s.hint.resolve&&(s.hint=s.hint.resolve(t,e)),s}function R(t){return typeof t=="string"?t:t.text}function Z(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(-e.menuSize()+1,!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},n=/Mac/.test(navigator.platform);n&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var s=t.options.customKeys,c=s?{}:i;function o(u,l){var h;typeof l!="string"?h=function(w){return l(w,e)}:i.hasOwnProperty(l)?h=i[l]:h=l,c[u]=h}if(s)for(var f in s)s.hasOwnProperty(f)&&o(f,s[f]);var a=t.options.extraKeys;if(a)for(var f in a)a.hasOwnProperty(f)&&o(f,a[f]);return c}function _(t,e){for(;e&&e!=t;){if(e.nodeName.toUpperCase()==="LI"&&e.parentNode==t)return e;e=e.parentNode}}function B(t,e){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=e,this.picked=!1;var i=this,n=t.cm,s=n.getInputField().ownerDocument,c=s.defaultView||s.parentWindow,o=this.hints=s.createElement("ul");o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.id=this.id;var f=t.cm.options.theme;o.className="CodeMirror-hints "+f,this.selectedHint=e.selectedHint||0;for(var a=e.list,u=0;u<a.length;++u){var l=o.appendChild(s.createElement("li")),h=a[u],w=v+(u!=this.selectedHint?"":" "+y);h.className!=null&&(w=h.className+" "+w),l.className=w,u==this.selectedHint&&l.setAttribute("aria-selected","true"),l.id=this.id+"-"+u,l.setAttribute("role","option"),h.render?h.render(l,e,h):l.appendChild(s.createTextNode(h.displayText||R(h))),l.hintId=u}var H=t.options.container||s.body,m=n.cursorCoords(t.options.alignWithWord?e.from:null),S=m.left,x=m.bottom,D=!0,T=0,O=0;if(H!==s.body){var it=["absolute","relative","fixed"].indexOf(c.getComputedStyle(H).position)!==-1,N=it?H:H.offsetParent,j=N.getBoundingClientRect(),M=s.body.getBoundingClientRect();T=j.left-M.left-N.scrollLeft,O=j.top-M.top-N.scrollTop}o.style.left=S-T+"px",o.style.top=x-O+"px";var k=c.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),I=c.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);H.appendChild(o),n.getInputField().setAttribute("aria-autocomplete","list"),n.getInputField().setAttribute("aria-owns",this.id),n.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var g=t.options.moveOnOverlap?o.getBoundingClientRect():new DOMRect,z=t.options.paddingForScrollbar?o.scrollHeight>o.clientHeight+1:!1,b;setTimeout(function(){b=n.getScrollInfo()});var nt=g.bottom-I;if(nt>0){var C=g.bottom-g.top,st=m.top-(m.bottom-g.top);if(st-C>0)o.style.top=(x=m.top-C-O)+"px",D=!1;else if(C>I){o.style.height=I-5+"px",o.style.top=(x=m.bottom-g.top-O)+"px";var V=n.getCursor();e.from.ch!=V.ch&&(m=n.cursorCoords(V),o.style.left=(S=m.left-T)+"px",g=o.getBoundingClientRect())}}var F=g.right-k;if(z&&(F+=n.display.nativeBarWidth),F>0&&(g.right-g.left>k&&(o.style.width=k-5+"px",F-=g.right-g.left-k),o.style.left=(S=m.left-F-T)+"px"),z)for(var E=o.firstChild;E;E=E.nextSibling)E.style.paddingRight=n.display.nativeBarWidth+"px";if(n.addKeyMap(this.keyMap=Z(t,{moveFocus:function(p,d){i.changeActive(i.selectedHint+p,d)},setFocus:function(p){i.changeActive(p)},menuSize:function(){return i.screenAmount()},length:a.length,close:function(){t.close()},pick:function(){i.pick()},data:e})),t.options.closeOnUnfocus){var q;n.on("blur",this.onBlur=function(){q=setTimeout(function(){t.close()},100)}),n.on("focus",this.onFocus=function(){clearTimeout(q)})}n.on("scroll",this.onScroll=function(){var p=n.getScrollInfo(),d=n.getWrapperElement().getBoundingClientRect();b||(b=n.getScrollInfo());var $=x+b.top-p.top,W=$-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(D||(W+=o.offsetHeight),W<=d.top||W>=d.bottom)return t.close();o.style.top=$+"px",o.style.left=S+b.left-p.left+"px"}),r.on(o,"dblclick",function(p){var d=_(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),i.pick())}),r.on(o,"click",function(p){var d=_(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),t.options.completeOnSingleClick&&i.pick())}),r.on(o,"mousedown",function(){setTimeout(function(){n.focus()},20)});var Y=this.getSelectedHintRange();return(Y.from!==0||Y.to!==0)&&this.scrollToActive(),r.signal(e,"select",a[this.selectedHint],o.childNodes[this.selectedHint]),!0}B.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,e){if(t>=this.data.list.length?t=e?this.data.list.length-1:0:t<0&&(t=e?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+y,""),i.removeAttribute("aria-selected")),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+y,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}};function tt(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}function K(t,e,i,n){if(t.async)t(e,n,i);else{var s=t(e,i);s&&s.then?s.then(n):n(s)}}function et(t,e){var i=t.getHelpers(e,"hint"),n;if(i.length){var s=function(c,o,f){var a=tt(c,i);function u(l){if(l==a.length)return o(null);K(a[l],c,f,function(h){h&&h.list.length>0?o(h):u(l+1)})}u(0)};return s.async=!0,s.supportsSelection=!0,s}else return(n=t.getHelper(t.getCursor(),"hintWords"))?function(c){return r.hint.fromList(c,{words:n})}:r.hint.anyword?function(c,o){return r.hint.anyword(c,o)}:function(){}}r.registerHelper("hint","auto",{resolve:et}),r.registerHelper("hint","fromList",function(t,e){var i=t.getCursor(),n=t.getTokenAt(i),s,c=r.Pos(i.line,n.start),o=i;n.start<i.ch&&/\w/.test(n.string.charAt(i.ch-n.start-1))?s=n.string.substr(0,i.ch-n.start):(s="",c=i);for(var f=[],a=0;a<e.words.length;a++){var u=e.words[a];u.slice(0,s.length)==s&&f.push(u)}if(f.length)return{list:f,from:c,to:o}}),r.commands.autocomplete=r.showHint;var U={hint:r.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})})();var ct=X.exports,at=rt({__proto__:null,default:ct},[X.exports]);export{at as s};
|
|
1
|
+
import{y as ot}from"./index.2c592891.entry.js";function rt(A,L){return L.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(v){if(v!=="default"&&!(v in A)){var y=Object.getOwnPropertyDescriptor(r,v);Object.defineProperty(A,v,y.get?y:{enumerable:!0,get:function(){return r[v]}})}})}),Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var X={exports:{}};(function(A,L){(function(r){r(ot.exports)})(function(r){var v="CodeMirror-hint",y="CodeMirror-hint-active";r.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var s in i)n[s]=i[s];return t.showHint(n)},r.defineExtension("showHint",function(t){t=Q(this,this.getCursor("start"),t);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<e.length;i++)if(e[i].head.line!=e[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var n=this.state.completionActive=new P(this,t);!n.options.hint||(r.signal(this,"startCompletion",this),n.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function P(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}var G=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},J=window.cancelAnimationFrame||clearTimeout;P.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,e){var i=t.list[e],n=this;this.cm.operation(function(){i.hint?i.hint(n.cm,t,i):n.cm.replaceRange(R(i),i.from||t.from,i.to||t.to,"complete"),r.signal(t,"pick",i),n.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(J(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=G(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(this.tick!=null){var e=this,i=++this.tick;K(this.options.hint,this.cm,this.options,function(n){e.tick==i&&e.finishUpdate(n,t)})}},finishUpdate:function(t,e){this.data&&r.signal(this.data,"update");var i=this.widget&&this.widget.picked||e&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&t.list.length==1?this.pick(t,0):(this.widget=new B(this,t),r.signal(t,"shown")))}};function Q(t,e,i){var n=t.options.hintOptions,s={};for(var c in U)s[c]=U[c];if(n)for(var c in n)n[c]!==void 0&&(s[c]=n[c]);if(i)for(var c in i)i[c]!==void 0&&(s[c]=i[c]);return s.hint.resolve&&(s.hint=s.hint.resolve(t,e)),s}function R(t){return typeof t=="string"?t:t.text}function Z(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(-e.menuSize()+1,!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},n=/Mac/.test(navigator.platform);n&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var s=t.options.customKeys,c=s?{}:i;function o(u,l){var h;typeof l!="string"?h=function(w){return l(w,e)}:i.hasOwnProperty(l)?h=i[l]:h=l,c[u]=h}if(s)for(var f in s)s.hasOwnProperty(f)&&o(f,s[f]);var a=t.options.extraKeys;if(a)for(var f in a)a.hasOwnProperty(f)&&o(f,a[f]);return c}function _(t,e){for(;e&&e!=t;){if(e.nodeName.toUpperCase()==="LI"&&e.parentNode==t)return e;e=e.parentNode}}function B(t,e){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=e,this.picked=!1;var i=this,n=t.cm,s=n.getInputField().ownerDocument,c=s.defaultView||s.parentWindow,o=this.hints=s.createElement("ul");o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.id=this.id;var f=t.cm.options.theme;o.className="CodeMirror-hints "+f,this.selectedHint=e.selectedHint||0;for(var a=e.list,u=0;u<a.length;++u){var l=o.appendChild(s.createElement("li")),h=a[u],w=v+(u!=this.selectedHint?"":" "+y);h.className!=null&&(w=h.className+" "+w),l.className=w,u==this.selectedHint&&l.setAttribute("aria-selected","true"),l.id=this.id+"-"+u,l.setAttribute("role","option"),h.render?h.render(l,e,h):l.appendChild(s.createTextNode(h.displayText||R(h))),l.hintId=u}var H=t.options.container||s.body,m=n.cursorCoords(t.options.alignWithWord?e.from:null),S=m.left,x=m.bottom,D=!0,T=0,O=0;if(H!==s.body){var it=["absolute","relative","fixed"].indexOf(c.getComputedStyle(H).position)!==-1,N=it?H:H.offsetParent,j=N.getBoundingClientRect(),M=s.body.getBoundingClientRect();T=j.left-M.left-N.scrollLeft,O=j.top-M.top-N.scrollTop}o.style.left=S-T+"px",o.style.top=x-O+"px";var k=c.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),I=c.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);H.appendChild(o),n.getInputField().setAttribute("aria-autocomplete","list"),n.getInputField().setAttribute("aria-owns",this.id),n.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var g=t.options.moveOnOverlap?o.getBoundingClientRect():new DOMRect,z=t.options.paddingForScrollbar?o.scrollHeight>o.clientHeight+1:!1,b;setTimeout(function(){b=n.getScrollInfo()});var nt=g.bottom-I;if(nt>0){var C=g.bottom-g.top,st=m.top-(m.bottom-g.top);if(st-C>0)o.style.top=(x=m.top-C-O)+"px",D=!1;else if(C>I){o.style.height=I-5+"px",o.style.top=(x=m.bottom-g.top-O)+"px";var V=n.getCursor();e.from.ch!=V.ch&&(m=n.cursorCoords(V),o.style.left=(S=m.left-T)+"px",g=o.getBoundingClientRect())}}var F=g.right-k;if(z&&(F+=n.display.nativeBarWidth),F>0&&(g.right-g.left>k&&(o.style.width=k-5+"px",F-=g.right-g.left-k),o.style.left=(S=m.left-F-T)+"px"),z)for(var E=o.firstChild;E;E=E.nextSibling)E.style.paddingRight=n.display.nativeBarWidth+"px";if(n.addKeyMap(this.keyMap=Z(t,{moveFocus:function(p,d){i.changeActive(i.selectedHint+p,d)},setFocus:function(p){i.changeActive(p)},menuSize:function(){return i.screenAmount()},length:a.length,close:function(){t.close()},pick:function(){i.pick()},data:e})),t.options.closeOnUnfocus){var q;n.on("blur",this.onBlur=function(){q=setTimeout(function(){t.close()},100)}),n.on("focus",this.onFocus=function(){clearTimeout(q)})}n.on("scroll",this.onScroll=function(){var p=n.getScrollInfo(),d=n.getWrapperElement().getBoundingClientRect();b||(b=n.getScrollInfo());var $=x+b.top-p.top,W=$-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(D||(W+=o.offsetHeight),W<=d.top||W>=d.bottom)return t.close();o.style.top=$+"px",o.style.left=S+b.left-p.left+"px"}),r.on(o,"dblclick",function(p){var d=_(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),i.pick())}),r.on(o,"click",function(p){var d=_(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),t.options.completeOnSingleClick&&i.pick())}),r.on(o,"mousedown",function(){setTimeout(function(){n.focus()},20)});var Y=this.getSelectedHintRange();return(Y.from!==0||Y.to!==0)&&this.scrollToActive(),r.signal(e,"select",a[this.selectedHint],o.childNodes[this.selectedHint]),!0}B.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,e){if(t>=this.data.list.length?t=e?this.data.list.length-1:0:t<0&&(t=e?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+y,""),i.removeAttribute("aria-selected")),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+y,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}};function tt(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}function K(t,e,i,n){if(t.async)t(e,n,i);else{var s=t(e,i);s&&s.then?s.then(n):n(s)}}function et(t,e){var i=t.getHelpers(e,"hint"),n;if(i.length){var s=function(c,o,f){var a=tt(c,i);function u(l){if(l==a.length)return o(null);K(a[l],c,f,function(h){h&&h.list.length>0?o(h):u(l+1)})}u(0)};return s.async=!0,s.supportsSelection=!0,s}else return(n=t.getHelper(t.getCursor(),"hintWords"))?function(c){return r.hint.fromList(c,{words:n})}:r.hint.anyword?function(c,o){return r.hint.anyword(c,o)}:function(){}}r.registerHelper("hint","auto",{resolve:et}),r.registerHelper("hint","fromList",function(t,e){var i=t.getCursor(),n=t.getTokenAt(i),s,c=r.Pos(i.line,n.start),o=i;n.start<i.ch&&/\w/.test(n.string.charAt(i.ch-n.start-1))?s=n.string.substr(0,i.ch-n.start):(s="",c=i);for(var f=[],a=0;a<e.words.length;a++){var u=e.words[a];u.slice(0,s.length)==s&&f.push(u)}if(f.length)return{list:f,from:c,to:o}}),r.commands.autocomplete=r.showHint;var U={hint:r.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})})();var ct=X.exports,at=rt({__proto__:null,default:ct},[X.exports]);export{at as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as _}from"./index.
|
|
1
|
+
import{y as _}from"./index.2c592891.entry.js";function b(l,p){return p.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(o){if(o!=="default"&&!(o in l)){var u=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(l,o,u.get?u:{enumerable:!0,get:function(){return t[o]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var a={exports:{}};(function(l,p){(function(t){t(_.exports)})(function(t){t.defineMode("sieve",function(o){function u(n){for(var e={},r=n.split(" "),i=0;i<r.length;++i)e[r[i]]=!0;return e}var v=u("if elsif else stop require"),k=u("true false not"),s=o.indentUnit;function f(n,e){var r=n.next();if(r=="/"&&n.eat("*"))return e.tokenize=d,d(n,e);if(r==="#")return n.skipToEnd(),"comment";if(r=='"')return e.tokenize=h(r),e.tokenize(n,e);if(r=="(")return e._indent.push("("),e._indent.push("{"),null;if(r==="{")return e._indent.push("{"),null;if(r==")"&&(e._indent.pop(),e._indent.pop()),r==="}")return e._indent.pop(),null;if(r==","||r==";"||/[{}\(\),;]/.test(r))return null;if(/\d/.test(r))return n.eatWhile(/[\d]/),n.eat(/[KkMmGg]/),"number";if(r==":")return n.eatWhile(/[a-zA-Z_]/),n.eatWhile(/[a-zA-Z0-9_]/),"operator";n.eatWhile(/\w/);var i=n.current();return i=="text"&&n.eat(":")?(e.tokenize=g,"string"):v.propertyIsEnumerable(i)?"keyword":k.propertyIsEnumerable(i)?"atom":null}function g(n,e){return e._multiLineString=!0,n.sol()?(n.next()=="."&&n.eol()&&(e._multiLineString=!1,e.tokenize=f),"string"):(n.eatSpace(),n.peek()=="#"?(n.skipToEnd(),"comment"):(n.skipToEnd(),"string"))}function d(n,e){for(var r=!1,i;(i=n.next())!=null;){if(r&&i=="/"){e.tokenize=f;break}r=i=="*"}return"comment"}function h(n){return function(e,r){for(var i=!1,c;(c=e.next())!=null&&!(c==n&&!i);)i=!i&&c=="\\";return i||(r.tokenize=f),"string"}}return{startState:function(n){return{tokenize:f,baseIndent:n||0,_indent:[]}},token:function(n,e){return n.eatSpace()?null:(e.tokenize||f)(n,e)},indent:function(n,e){var r=n._indent.length;return e&&e[0]=="}"&&r--,r<0&&(r=0),r*s},electricChars:"}"}}),t.defineMIME("application/sieve","sieve")})})();var y=a.exports,x=b({__proto__:null,default:y},[a.exports]);export{x as s};
|