@directus/app 9.0.1 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@directus_extensions-sdk.ec871470.js +1 -0
- package/dist/assets/{active-line.1e85080e.js → active-line.1fb45430.js} +1 -1
- package/dist/assets/{activity-log.f0b81785.js → activity-log.149b4235.js} +1 -1
- package/dist/assets/{activity.848efa17.js → activity.2e626708.js} +5 -5
- package/dist/assets/{api-endpoints.6b2f9a0a.js → api-endpoints.edac31b3.js} +2 -2
- package/dist/assets/{apl.81a36d94.js → apl.a63313b0.js} +1 -1
- package/dist/assets/{asciiarmor.41807b38.js → asciiarmor.3b1d0f31.js} +1 -1
- package/dist/assets/{asn.1.2fb547c7.js → asn.1.87a170ea.js} +1 -1
- package/dist/assets/{asterisk.f25d8cae.js → asterisk.2a94cb4c.js} +1 -1
- package/dist/assets/{authentication.595f862f.js → authentication.979423af.js} +5 -5
- package/dist/assets/{autorefresh.47068160.js → autorefresh.6db972ff.js} +1 -1
- package/dist/assets/{aws.684d8f17.js → aws.f5840be0.js} +1 -1
- package/dist/assets/{backing-directus.75b705d8.js → backing-directus.6c539fa4.js} +1 -1
- package/dist/assets/bg-BG.15567df7.js +2 -0
- package/dist/assets/{brainfuck.0eb32d6a.js → brainfuck.26d25aaf.js} +1 -1
- package/dist/assets/{cli.9c35ba03.js → cli.1923b2eb.js} +3 -3
- package/dist/assets/{cli.6bc58792.js → cli.709f9e2a.js} +2 -2
- package/dist/assets/{clike.8a91e766.js → clike.edc5829c.js} +1 -1
- package/dist/assets/{clojure.680b2086.js → clojure.7a100302.js} +1 -1
- package/dist/assets/{cmake.59d9f97d.js → cmake.380cdff4.js} +1 -1
- package/dist/assets/{cobol.11746877.js → cobol.f6d0d732.js} +1 -1
- package/dist/assets/{codebase-overview.bec34b38.js → codebase-overview.4ba1c217.js} +1 -1
- package/dist/assets/{coffeescript.cc7b12bb.js → coffeescript.fa9a0562.js} +1 -1
- package/dist/assets/{collections.fb0eff5f.js → collections.8d4ed63f.js} +4 -4
- package/dist/assets/{commonlisp.81cf66cf.js → commonlisp.02385e3e.js} +1 -1
- package/dist/assets/{config-options.5ba591a6.js → config-options.0020f748.js} +12 -12
- package/dist/assets/{content-collections.b24311e4.js → content-collections.359b5daf.js} +1 -1
- package/dist/assets/{content-items.16fafd36.js → content-items.f10c4240.js} +1 -1
- package/dist/assets/{content.31f08958.js → content.6c00b4f7.js} +1 -1
- package/dist/assets/{crystal.88773be1.js → crystal.b76a4aec.js} +1 -1
- package/dist/assets/css.c89f439b.js +1 -0
- package/dist/assets/{cypher.62d62091.js → cypher.56b17de3.js} +1 -1
- package/dist/assets/{d.235b72e5.js → d.6d07e4dd.js} +1 -1
- package/dist/assets/{dart.d5e0dc33.js → dart.c54df9d4.js} +1 -1
- package/dist/assets/{data-model.66f7e0e4.js → data-model.709f41ad.js} +1 -1
- package/dist/assets/{diff.236ec957.js → diff.e663c7d4.js} +1 -1
- package/dist/assets/digitalocean-app-platform.fd58d363.js +3 -0
- package/dist/assets/{displays.c55af3d6.js → displays.d13ea013.js} +5 -5
- package/dist/assets/{django.b7dc3aae.js → django.ad94c4f3.js} +1 -1
- package/dist/assets/{docker.d76fac42.js → docker.d440849a.js} +1 -1
- package/dist/assets/{dockerfile.1019efd6.js → dockerfile.d3c851d0.js} +1 -1
- package/dist/assets/{documentation.1092ea83.js → documentation.cda0921f.js} +1 -1
- package/dist/assets/{dtd.2a851c5f.js → dtd.a923df19.js} +1 -1
- package/dist/assets/{dylan.9bb2cd36.js → dylan.9d61b0d3.js} +1 -1
- package/dist/assets/{ebnf.276406d3.js → ebnf.6bf95ce3.js} +1 -1
- package/dist/assets/{ecl.11564c5b.js → ecl.02b879c9.js} +1 -1
- package/dist/assets/{eiffel.be49a681.js → eiffel.b441e9e0.js} +1 -1
- package/dist/assets/{elm.5c8852f7.js → elm.b21b96c7.js} +1 -1
- package/dist/assets/{email-templates.3c6a781e.js → email-templates.153388ae.js} +2 -2
- package/dist/assets/en-GB.1b37c659.js +1 -0
- package/dist/assets/{erlang.ead9639d.js → erlang.b3352f46.js} +1 -1
- package/dist/assets/es-419.4da87d2f.js +1 -0
- package/dist/assets/es-CL.b5d67084.js +1 -0
- package/dist/assets/es-ES.aeba85de.js +1 -0
- package/dist/assets/{extensions.b76bdde3.js → extensions.eb270497.js} +2 -2
- package/dist/assets/{factor.eed233f0.js → factor.6dde298e.js} +1 -1
- package/dist/assets/faq.c6cbe773.js +1 -0
- package/dist/assets/{fcl.271814f0.js → fcl.3b6a0156.js} +1 -1
- package/dist/assets/{fields.238d924d.js → fields.66b4a80a.js} +3 -3
- package/dist/assets/{file-library.d7ca55fc.js → file-library.25e1c929.js} +1 -1
- package/dist/assets/{files.92988e46.js → files.2b5db709.js} +1 -1
- package/dist/assets/{filter-rules.339629f8.js → filter-rules.23b50c24.js} +1 -1
- package/dist/assets/{folders.54e223af.js → folders.cf080e7c.js} +4 -4
- package/dist/assets/{forth.5c226e69.js → forth.568b9e62.js} +1 -1
- package/dist/assets/{fortran.a1e621fd.js → fortran.55e0d59b.js} +1 -1
- package/dist/assets/fr-FR.8a6c9f09.js +1 -0
- package/dist/assets/{gas.249ccc95.js → gas.4db1f658.js} +1 -1
- package/dist/assets/{gfm.392719b7.js → gfm.030ad601.js} +1 -1
- package/dist/assets/{gherkin.f1c57004.js → gherkin.ad583410.js} +1 -1
- package/dist/assets/{github-ci.0ba5d515.js → github-ci.9c11a482.js} +2 -2
- package/dist/assets/{glossary.4258b82f.js → glossary.eb10f432.js} +1 -1
- package/dist/assets/{go.55fe2209.js → go.93e3a800.js} +1 -1
- package/dist/assets/{groovy.49803548.js → groovy.de590f33.js} +1 -1
- package/dist/assets/{haml.00447402.js → haml.5acd6ee4.js} +1 -1
- package/dist/assets/{handlebars.2c2675b3.js → handlebars.5cf29f35.js} +1 -1
- package/dist/assets/{haskell-literate.f95e4126.js → haskell-literate.15d2f533.js} +1 -1
- package/dist/assets/{haskell.613e1328.js → haskell.0c3a5d85.js} +1 -1
- package/dist/assets/{haxe.e363e2e2.js → haxe.7d71b799.js} +1 -1
- package/dist/assets/hi-IN.f686e98f.js +1 -0
- package/dist/assets/hooks.bff79daf.js +94 -0
- package/dist/assets/{htmlembedded.5a5f0ffe.js → htmlembedded.24ede8c5.js} +1 -1
- package/dist/assets/{htmlmixed.05e7a4e9.js → htmlmixed.0714fe9c.js} +1 -1
- package/dist/assets/{http.36bf71f5.js → http.d94924e1.js} +1 -1
- package/dist/assets/{idl.369d3687.js → idl.6d5cfb21.js} +1 -1
- package/dist/assets/{iis.61b90801.js → iis.8f48b46a.js} +3 -2
- package/dist/assets/{index.2ffae100.js → index.01b31560.js} +1 -1
- package/dist/assets/{index.5ef6863e.js → index.032be8b7.js} +1 -1
- package/dist/assets/{index.bd506b24.js → index.071b0921.js} +1 -1
- package/dist/assets/index.077bdc14.css +1 -0
- package/dist/assets/index.0a964dae.css +1 -0
- package/dist/assets/{index.64b8816b.js → index.0f58cc2f.js} +1 -1
- package/dist/assets/{index.266ef2c9.js → index.0f959880.js} +1 -1
- package/dist/assets/{index.7a811ff8.js → index.106dfb9d.js} +1 -1
- package/dist/assets/{index.550c7d98.js → index.1802aa67.js} +1 -1
- package/dist/assets/{index.b73273e0.js → index.1f969a94.js} +1 -1
- package/dist/assets/{index.d03ceb16.js → index.20ac57d1.js} +1 -1
- package/dist/assets/{index.53d7b4b1.js → index.21616bb4.js} +1 -1
- package/dist/assets/{index.bd34bd8b.js → index.25aff973.js} +1 -1
- package/dist/assets/{index.544fc3f4.js → index.2699c99b.js} +1 -1
- package/dist/assets/{index.9c37c372.js → index.2aad0cee.js} +1 -1
- package/dist/assets/{index.dc1688d8.js → index.319b4222.js} +1 -1
- package/dist/assets/{index.6da8ed8b.js → index.35a34e2b.js} +1 -1
- package/dist/assets/{index.0caa5421.js → index.36c4f284.js} +1 -1
- package/dist/assets/{index.15d4ddd7.js → index.37e8e5c7.js} +1 -1
- package/dist/assets/{index.9597bb18.js → index.380a8d1f.js} +1 -1
- package/dist/assets/{index.e68f5a19.js → index.386e7bb1.js} +1 -1
- package/dist/assets/{index.aa7706f9.js → index.3aa19795.js} +1 -1
- package/dist/assets/{index.750b633c.js → index.3adc3d2e.js} +1 -1
- package/dist/assets/{index.19ae9f48.js → index.41e7cd63.js} +1 -1
- package/dist/assets/{index.e65c230c.js → index.4de13843.js} +1 -1
- package/dist/assets/{index.59451527.js → index.52f56cb8.js} +1 -1
- package/dist/assets/{index.7e86f332.js → index.52fb1436.js} +1 -1
- package/dist/assets/{index.77f16025.js → index.53c97358.js} +1 -1
- package/dist/assets/{index.6690c511.js → index.5665651d.js} +1 -1
- package/dist/assets/{index.f8360683.js → index.57ce03df.js} +1 -1
- package/dist/assets/{index.5c71b9bf.js → index.5cee2017.js} +1 -1
- package/dist/assets/{index.83459924.js → index.5dd89f5a.js} +1 -1
- package/dist/assets/{index.54a202be.js → index.632aa7a5.js} +1 -1
- package/dist/assets/{index.0b9941e1.js → index.65d30ed8.js} +1 -1
- package/dist/assets/{index.c36b50cf.js → index.65fe108b.js} +1 -1
- package/dist/assets/{index.1fb6fed8.js → index.6934844d.js} +1 -1
- package/dist/assets/{index.29fa87ff.js → index.6bc4b03b.js} +1 -1
- package/dist/assets/{index.b7e06d7c.js → index.6c6cfd02.js} +1 -1
- package/dist/assets/{index.15f9b058.js → index.6edc7f7f.js} +1 -1
- package/dist/assets/{index.31d1f296.js → index.6f0fc344.js} +1 -1
- package/dist/assets/{index.900f92f9.js → index.711a5d70.js} +1 -1
- package/dist/assets/{index.5a304363.js → index.74ffa87a.js} +1 -1
- package/dist/assets/{index.5286e9da.js → index.774b2ee3.js} +1 -1
- package/dist/assets/{index.5e175966.js → index.777adea0.js} +1 -1
- package/dist/assets/{index.216b6328.js → index.8053cc44.js} +1 -1
- package/dist/assets/{index.b2adcd91.js → index.8081cdc6.js} +1 -1
- package/dist/assets/{index.8e104536.js → index.8a6e3d50.js} +1 -1
- package/dist/assets/{index.1d2a8b64.js → index.90726b0d.js} +1 -1
- package/dist/assets/{index.65c5205d.js → index.930b04bd.js} +1 -1
- package/dist/assets/{index.376099f6.js → index.93ea422c.js} +1 -1
- package/dist/assets/{index.11bd8819.js → index.9443e0cb.js} +1 -1
- package/dist/assets/{index.0ed888d7.js → index.97d0cfe9.js} +1 -1
- package/dist/assets/{index.3c3c9275.js → index.98a5f70b.js} +1 -1
- package/dist/assets/{index.b75dc5c2.js → index.9a540e55.js} +1 -1
- package/dist/assets/{index.f07bb8da.js → index.a2312cea.js} +1 -1
- package/dist/assets/{index.7cb6c8da.js → index.a295ccab.js} +1 -1
- package/dist/assets/{index.bba3d752.js → index.a4ab27a2.js} +1 -1
- package/dist/assets/{index.19d9989e.js → index.a8fcc603.js} +1 -1
- package/dist/assets/{index.1d3c8b76.js → index.aef19a6c.js} +1 -1
- package/dist/assets/{index.fefbb129.js → index.b0ac188d.js} +1 -1
- package/dist/assets/{index.255ac1ac.js → index.b2f66056.js} +1 -1
- package/dist/assets/{index.87946fe5.js → index.b30355b8.js} +1 -1
- package/dist/assets/index.b7c458dd.js +26 -0
- package/dist/assets/{index.bee706b8.js → index.b80f08e2.js} +1 -1
- package/dist/assets/{index.c2ece3ef.js → index.ba16542c.js} +1 -1
- package/dist/assets/{index.d6eb48fd.js → index.ba4fccfa.js} +1 -1
- package/dist/assets/{index.14bae658.js → index.bd0b9050.js} +1 -1
- package/dist/assets/{index.1a242848.js → index.be355994.js} +1 -1
- package/dist/assets/{index.8c729bf2.js → index.c1abc495.js} +1 -1
- package/dist/assets/{index.40abc1ae.js → index.c4217a03.js} +1 -1
- package/dist/assets/{index.aa99cd2b.js → index.c52d890d.js} +1 -1
- package/dist/assets/{index.5d4c645c.js → index.c8d8cea3.js} +1 -1
- package/dist/assets/{index.0ba5b42a.js → index.ceccd7b0.js} +1 -1
- package/dist/assets/{index.0bd18bfd.js → index.d7c52831.js} +1 -1
- package/dist/assets/{index.8fbbb686.js → index.d900df0d.js} +1 -1
- package/dist/assets/{index.61b86afb.js → index.e2516fcf.js} +1 -1
- package/dist/assets/{index.f526c37a.js → index.eceb7719.js} +1 -1
- package/dist/assets/{index.49fe7bbe.js → index.f55469a4.js} +1 -1
- package/dist/assets/{index.5caafb3d.js → index.f6bdd3dc.js} +1 -1
- package/dist/assets/{index.0fb52a97.js → index.f82f535b.js} +1 -1
- package/dist/assets/{index.e713a183.js → index.f94e9d3c.js} +1 -1
- package/dist/assets/{index.1fd33265.js → index.f98c4963.js} +1 -1
- package/dist/assets/{index.94db319d.js → index.f9e49c6f.js} +1 -1
- package/dist/assets/{input-rich-text-html.8fe88ffb.js → input-rich-text-html.dfe08a32.js} +2 -2
- package/dist/assets/{insights.fe74fe29.js → insights.bdfe4fdb.js} +1 -1
- package/dist/assets/{installation.24a44faf.js → installation.3a531e4d.js} +1 -1
- package/dist/assets/{interfaces.23229e78.js → interfaces.e6c8f277.js} +7 -7
- package/dist/assets/introduction.1fa26f9f.js +1 -0
- package/dist/assets/{introduction.02e3c2a7.js → introduction.295c3b30.js} +2 -2
- package/dist/assets/{introduction.16f8f0b0.js → introduction.3da87e38.js} +1 -1
- package/dist/assets/{introduction.e29b10c2.js → introduction.85ed1394.js} +7 -7
- package/dist/assets/{it-IT.3c8c35dd.js → it-IT.5ee88a08.js} +1 -1
- package/dist/assets/{items.4227ac2d.js → items.4a58552c.js} +6 -6
- package/dist/assets/{javascript-hint.747ac6fc.js → javascript-hint.d4ef8031.js} +1 -1
- package/dist/assets/{javascript.84e4549d.js → javascript.e1b08a7c.js} +1 -1
- package/dist/assets/{jinja2.a9a0ddb1.js → jinja2.f8f38ccd.js} +1 -1
- package/dist/assets/{jsx.5d18b001.js → jsx.8aee4b64.js} +1 -1
- package/dist/assets/{julia.12cc2a8c.js → julia.4ab46b62.js} +1 -1
- package/dist/assets/ku-TR.3322375c.js +1 -0
- package/dist/assets/{layouts.1bd78154.js → layouts.54bf3f4f.js} +5 -5
- package/dist/assets/{livescript.f585b533.js → livescript.eb145824.js} +1 -1
- package/dist/assets/{localization.a73190dd.js → localization.b87f6d61.js} +1 -1
- package/dist/assets/logo-light.7a327cdd.svg +3 -0
- package/dist/assets/{lua.a656cb84.js → lua.492ef6f8.js} +1 -1
- package/dist/assets/{manual.794bb884.js → manual.ca166066.js} +4 -4
- package/dist/assets/{mark-selection.98a1b6fc.js → mark-selection.2a69ad50.js} +1 -1
- package/dist/assets/{match-highlighter.e1444e0b.js → match-highlighter.748e90d7.js} +1 -1
- package/dist/assets/{mathematica.448ae8b5.js → mathematica.85e0e720.js} +1 -1
- package/dist/assets/{mbox.977764b6.js → mbox.bd76d0e3.js} +1 -1
- package/dist/assets/{migrations.992a23b0.js → migrations.d7d0c3b8.js} +1 -1
- package/dist/assets/{mirc.ac98dd7b.js → mirc.ef885f9d.js} +1 -1
- package/dist/assets/{mllike.ee7c202f.js → mllike.09bad057.js} +1 -1
- package/dist/assets/{modelica.0e691287.js → modelica.705292e7.js} +1 -1
- package/dist/assets/{modules.116e46b4.js → modules.51a52010.js} +6 -6
- package/dist/assets/{mscgen.4c9c356e.js → mscgen.c905f040.js} +1 -1
- package/dist/assets/{multiplex.91d67c6e.js → multiplex.bc708602.js} +2 -2
- package/dist/assets/{mumps.c8a6b66b.js → mumps.232bd3cf.js} +1 -1
- package/dist/assets/{nginx.048f88c1.js → nginx.53b1a1cc.js} +1 -1
- package/dist/assets/notifications.95ecd845.js +153 -0
- package/dist/assets/{nsis.1830f129.js → nsis.2e11a243.js} +1 -1
- package/dist/assets/{ntriples.dff164ff.js → ntriples.28c82a78.js} +1 -1
- package/dist/assets/{octave.27aaa450.js → octave.12f6af40.js} +1 -1
- package/dist/assets/{overlay.ff3e2ac4.js → overlay.17bcab08.js} +1 -1
- package/dist/assets/{overview.c3721f80.js → overview.3735ce4e.js} +1 -1
- package/dist/assets/{overview.b56593b7.js → overview.a7294570.js} +1 -1
- package/dist/assets/{oz.c625131c.js → oz.d739be50.js} +1 -1
- package/dist/assets/{panels.c9913c4b.js → panels.2dc33a61.js} +1 -1
- package/dist/assets/{pascal.2c02faa8.js → pascal.5b65f314.js} +1 -1
- package/dist/assets/{pegjs.0854aa70.js → pegjs.0e1cb55b.js} +1 -1
- package/dist/assets/{perl.6bf3c050.js → perl.f5ebe96e.js} +1 -1
- package/dist/assets/{permissions.83661a53.js → permissions.35d2c816.js} +4 -4
- package/dist/assets/php.1a84936c.js +1 -0
- package/dist/assets/{pig.f6acccd0.js → pig.fe68742a.js} +1 -1
- package/dist/assets/{plesk.20b032fb.js → plesk.7e5e9105.js} +6 -6
- package/dist/assets/{powershell.3fe72e38.js → powershell.914a1e33.js} +1 -1
- package/dist/assets/{presets-bookmarks.dfa9b52f.js → presets-bookmarks.7ca67e49.js} +1 -1
- package/dist/assets/{presets.7e0c88ae.js → presets.ff69bed6.js} +1 -1
- package/dist/assets/project-settings.af73527a.js +1 -0
- package/dist/assets/{properties.8c3f631c.js → properties.30175490.js} +1 -1
- package/dist/assets/{protobuf.ff5609be.js → protobuf.3cc05f5b.js} +1 -1
- package/dist/assets/pt-BR.26238be4.js +1 -0
- package/dist/assets/{pug.e66669ae.js → pug.cc504c53.js} +1 -1
- package/dist/assets/{puppet.8585cc4d.js → puppet.1c9976ea.js} +1 -1
- package/dist/assets/{python.ce0163fc.js → python.cd7c7d5e.js} +1 -1
- package/dist/assets/{q.4a99aff9.js → q.ca9aad64.js} +1 -1
- package/dist/assets/{query.998e770c.js → query.3662a09a.js} +3 -3
- package/dist/assets/{quickstart.1aa6ffca.js → quickstart.03ac6f6c.js} +3 -3
- package/dist/assets/{r.d0ae744a.js → r.4cd7d336.js} +1 -1
- package/dist/assets/{relations.7edadd3b.js → relations.46c5aaca.js} +4 -4
- package/dist/assets/{relationships.b6ef88eb.js → relationships.417dbb85.js} +3 -3
- package/dist/assets/{revisions.9a70b1ec.js → revisions.2fc449af.js} +3 -3
- package/dist/assets/{roles.f017240c.js → roles.46105c9e.js} +4 -4
- package/dist/assets/{rpm.f0a7ad70.js → rpm.ba5fad62.js} +1 -1
- package/dist/assets/{rst.f0464fbc.js → rst.6c6d4c2c.js} +1 -1
- package/dist/assets/ru-RU.33141bc5.js +1 -0
- package/dist/assets/{ruby.4d15c7d1.js → ruby.2944282c.js} +1 -1
- package/dist/assets/{running-locally.bd69d8dc.js → running-locally.b9c6ac7c.js} +5 -5
- package/dist/assets/{rust.e4dfe0d4.js → rust.2c5788fa.js} +1 -1
- package/dist/assets/{sas.709abdd1.js → sas.a3f5d313.js} +1 -1
- package/dist/assets/{sass.2505dd07.js → sass.986c56a5.js} +1 -1
- package/dist/assets/{scheme.897fc126.js → scheme.54733295.js} +1 -1
- package/dist/assets/{sdk.b41be838.js → sdk.f79ec05d.js} +43 -25
- package/dist/assets/{security.548b2b76.js → security.ed62274d.js} +1 -1
- package/dist/assets/{server.d6f5abdc.js → server.9bf46def.js} +4 -4
- package/dist/assets/{settings.4b550f79.js → settings.bf65ae28.js} +1 -1
- package/dist/assets/{settings.5c0f889e.js → settings.cde8ffd7.js} +9 -5
- package/dist/assets/{shell.19de1cf8.js → shell.043f3329.js} +1 -1
- package/dist/assets/{show-hint.0412391d.js → show-hint.4d9b5efb.js} +1 -1
- package/dist/assets/sieve.24282682.js +1 -0
- package/dist/assets/{simple.ab4d8d4b.js → simple.a61e3410.js} +1 -1
- package/dist/assets/{slim.2805b872.js → slim.f414fbd8.js} +1 -1
- package/dist/assets/{smalltalk.ee9f0dd3.js → smalltalk.12047a6d.js} +1 -1
- package/dist/assets/{smarty.08c649b4.js → smarty.e04e1453.js} +1 -1
- package/dist/assets/{solr.36ddf5d2.js → solr.d6415c8b.js} +1 -1
- package/dist/assets/soy.66293c54.js +1 -0
- package/dist/assets/{sparql.e90ce227.js → sparql.9a0f5fb0.js} +1 -1
- package/dist/assets/{spreadsheet.812bc4c1.js → spreadsheet.a9745ff6.js} +1 -1
- package/dist/assets/sql.aed3072b.js +1 -0
- package/dist/assets/{stex.8fe110b6.js → stex.e1a54633.js} +1 -1
- package/dist/assets/stylus.71e0fdc6.js +1 -0
- package/dist/assets/{support.618bb824.js → support.d818a3ba.js} +1 -1
- package/dist/assets/sv-SE.060d5c25.js +1 -0
- package/dist/assets/{swift.a963a96b.js → swift.e957a034.js} +1 -1
- package/dist/assets/{tcl.c00f0ec5.js → tcl.aee8d35f.js} +1 -1
- package/dist/assets/{textile.431d240b.js → textile.ae334d71.js} +1 -1
- package/dist/assets/{themes.ec95c8cb.js → themes.cd13042d.js} +2 -2
- package/dist/assets/{tiddlywiki.1b4d0a22.js → tiddlywiki.0922294b.js} +1 -1
- package/dist/assets/{tiki.d37bbabb.js → tiki.b9504243.js} +1 -1
- package/dist/assets/{toml.1475fc5c.js → toml.d89c1075.js} +1 -1
- package/dist/assets/{tornado.e812c41b.js → tornado.9070fbf9.js} +1 -1
- package/dist/assets/{translations.8406cfe3.js → translations.02aa44ee.js} +1 -1
- package/dist/assets/{troff.52251200.js → troff.e70475ee.js} +1 -1
- package/dist/assets/{ttcn-cfg.4e31c9ce.js → ttcn-cfg.98c35417.js} +1 -1
- package/dist/assets/{ttcn.3ea9f7e4.js → ttcn.73d14f89.js} +1 -1
- package/dist/assets/{turtle.7f166fc9.js → turtle.6725c84b.js} +1 -1
- package/dist/assets/{twig.7c77b8f7.js → twig.eeb6221b.js} +1 -1
- package/dist/assets/ubuntu.adc7719b.js +11 -0
- package/dist/assets/{upgrades-migrations.df5c4042.js → upgrades-migrations.6b876472.js} +1 -1
- package/dist/assets/use-sync.864aa3cf.js +1 -0
- package/dist/assets/{user-directory.63d4d638.js → user-directory.5e0f8a9e.js} +1 -1
- package/dist/assets/{users-roles-permissions.68584449.js → users-roles-permissions.aa6e645d.js} +1 -1
- package/dist/assets/{users.c3c87007.js → users.c126e79c.js} +1 -1
- package/dist/assets/{utilities.e7ef40fc.js → utilities.0bddc943.js} +3 -3
- package/dist/assets/{vb.1551d2a2.js → vb.0680c963.js} +1 -1
- package/dist/assets/{vbscript.0c1ac8ad.js → vbscript.0bd9509a.js} +1 -1
- package/dist/assets/{velocity.63a0cbb3.js → velocity.0c534db9.js} +1 -1
- package/dist/assets/vendor.c46e17d6.js +2039 -0
- package/dist/assets/{verilog.37081dae.js → verilog.2cdac09c.js} +1 -1
- package/dist/assets/{vhdl.8c76cefa.js → vhdl.94c45860.js} +1 -1
- package/dist/assets/{vue.2098315b.js → vue.594a0de9.js} +1 -1
- package/dist/assets/{wast.b90e42f3.js → wast.0781628c.js} +1 -1
- package/dist/assets/{webhooks.59b09c0d.js → webhooks.5bdc49f0.js} +1 -1
- package/dist/assets/{webhooks.2dd2256f.js → webhooks.db4c9b9c.js} +5 -5
- package/dist/assets/{webidl.76dda28b.js → webidl.cc5ea6f7.js} +1 -1
- package/dist/assets/{xquery.5d4fe342.js → xquery.98800824.js} +1 -1
- package/dist/assets/{yacas.b1b2324d.js → yacas.c9a224a6.js} +1 -1
- package/dist/assets/{yaml-frontmatter.6a71ce09.js → yaml-frontmatter.4f8a599e.js} +1 -1
- package/dist/assets/{yaml.ca3ba26d.js → yaml.9997c2ba.js} +1 -1
- package/dist/assets/{z80.a23bb6d3.js → z80.7caf642c.js} +1 -1
- package/dist/index.194f59e3.js +340 -0
- package/dist/index.html +4 -4
- package/dist/vue-i18n.8f9bc4a1.js +1 -0
- package/dist/vue-router.f378de8a.js +1 -0
- package/dist/vue.eb2253b3.js +1 -0
- package/package.json +18 -17
- package/dist/@directus_extensions-sdk.8dd2238a.js +0 -1
- package/dist/assets/bg-BG.9212fbf7.js +0 -2
- package/dist/assets/css.f0a27894.js +0 -1
- package/dist/assets/digitalocean-app-platform.d8054fb4.js +0 -3
- package/dist/assets/es-419.f8a62d18.js +0 -1
- package/dist/assets/es-CL.76c7e2d1.js +0 -1
- package/dist/assets/es-ES.f23f1053.js +0 -1
- package/dist/assets/faq.e629faf1.js +0 -1
- package/dist/assets/fr-FR.e2625f19.js +0 -1
- package/dist/assets/hi-IN.d224762a.js +0 -1
- package/dist/assets/hooks.9441eb32.js +0 -75
- package/dist/assets/index.570f6759.js +0 -26
- package/dist/assets/index.9fb5b610.css +0 -1
- package/dist/assets/index.a49dcfb2.css +0 -1
- package/dist/assets/introduction.25a5119e.js +0 -1
- package/dist/assets/ku-TR.62749d99.js +0 -1
- package/dist/assets/logo-light.1a93a59d.svg +0 -3
- package/dist/assets/php.7f583bfa.js +0 -1
- package/dist/assets/project-settings.31256b54.js +0 -1
- package/dist/assets/pt-BR.e623fc8a.js +0 -1
- package/dist/assets/ru-RU.fec4e20e.js +0 -1
- package/dist/assets/sieve.da5795e7.js +0 -1
- package/dist/assets/soy.2c180864.js +0 -1
- package/dist/assets/sql.f222e1b8.js +0 -1
- package/dist/assets/stylus.02531228.js +0 -1
- package/dist/assets/sv-SE.1739ab58.js +0 -1
- package/dist/assets/ubuntu.67ddbadb.js +0 -11
- package/dist/assets/use-sync.da76e524.js +0 -1
- package/dist/assets/vendor.299bc11c.js +0 -2039
- package/dist/index.0f7650cb.js +0 -340
- package/dist/vue-i18n.b2a4a29c.js +0 -1
- package/dist/vue-router.cd2fde56.js +0 -1
- package/dist/vue.642980f3.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bG as L}from"./vendor.c46e17d6.js";function q(v,g){return g.forEach(function(o){o&&typeof o!="string"&&!Array.isArray(o)&&Object.keys(o).forEach(function(f){if(f!=="default"&&!(f in v)){var c=Object.getOwnPropertyDescriptor(o,f);Object.defineProperty(v,f,c.get?c:{enumerable:!0,get:function(){return o[f]}})}})}),Object.freeze(v)}var O={exports:{}};(function(v,g){(function(o){o(L.exports)})(function(o){o.defineMode("crystal",function(f){function c(n,e){return new RegExp((e?"":"^")+"(?:"+n.join("|")+")"+(e?"$":"\\b"))}function l(n,e,r){return r.tokenize.push(n),n(e,r)}var y=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,_=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,b=/^(?:\[\][?=]?)/,A=/^(?:\.(?:\.{2})?|->|[?:])/,h=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,F=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,T=c(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),j=c(["true","false","nil","self"]),K=["def","fun","macro","class","module","struct","lib","enum","union","do","for"],P=c(K),D=["if","unless","case","while","until","begin","then"],M=c(D),s=["end","else","elsif","rescue","ensure"],N=c(s),I=["\\)","\\}","\\]"],Z=new RegExp("^(?:"+I.join("|")+")$"),E={def:S,fun:S,macro:$,class:p,module:p,struct:p,lib:p,enum:p,union:p},z={"[":"]","{":"}","(":")","<":">"};function w(n,e){if(n.eatSpace())return null;if(e.lastToken!="\\"&&n.match("{%",!1))return l(a("%","%"),n,e);if(e.lastToken!="\\"&&n.match("{{",!1))return l(a("{","}"),n,e);if(n.peek()=="#")return n.skipToEnd(),"comment";var r;if(n.match(h))return n.eat(/[?!]/),r=n.current(),n.eat(":")?"atom":e.lastToken=="."?"property":T.test(r)?(P.test(r)?!(r=="fun"&&e.blocks.indexOf("lib")>=0)&&!(r=="def"&&e.lastToken=="abstract")&&(e.blocks.push(r),e.currentIndent+=1):(e.lastStyle=="operator"||!e.lastStyle)&&M.test(r)?(e.blocks.push(r),e.currentIndent+=1):r=="end"&&(e.blocks.pop(),e.currentIndent-=1),E.hasOwnProperty(r)&&e.tokenize.push(E[r]),"keyword"):j.test(r)?"atom":"variable";if(n.eat("@"))return n.peek()=="["?l(d("[","]","meta"),n,e):(n.eat("@"),n.match(h)||n.match(F),"variable-2");if(n.match(F))return"tag";if(n.eat(":"))return n.eat('"')?l(x('"',"atom",!1),n,e):n.match(h)||n.match(F)||n.match(y)||n.match(_)||n.match(b)?"atom":(n.eat(":"),"operator");if(n.eat('"'))return l(x('"',"string",!0),n,e);if(n.peek()=="%"){var u="string",t=!0,i;if(n.match("%r"))u="string-2",i=n.next();else if(n.match("%w"))t=!1,i=n.next();else if(n.match("%q"))t=!1,i=n.next();else if(i=n.match(/^%([^\w\s=])/))i=i[1];else{if(n.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(n.eat("%"))return"operator"}return z.hasOwnProperty(i)&&(i=z[i]),l(x(i,u,t),n,e)}return(r=n.match(/^<<-('?)([A-Z]\w*)\1/))?l(R(r[2],!r[1]),n,e):n.eat("'")?(n.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),n.eat("'"),"atom"):n.eat("0")?(n.eat("x")?n.match(/^[0-9a-fA-F_]+/):n.eat("o")?n.match(/^[0-7_]+/):n.eat("b")&&n.match(/^[01_]+/),"number"):n.eat(/^\d/)?(n.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):n.match(y)?(n.eat("="),"operator"):n.match(_)||n.match(A)?"operator":(r=n.match(/[({[]/,!1))?(r=r[0],l(d(r,z[r],null),n,e)):n.eat("\\")?(n.next(),"meta"):(n.next(),null)}function d(n,e,r,u){return function(t,i){if(!u&&t.match(n))return i.tokenize[i.tokenize.length-1]=d(n,e,r,!0),i.currentIndent+=1,r;var k=w(t,i);return t.current()===e&&(i.tokenize.pop(),i.currentIndent-=1,k=r),k}}function a(n,e,r){return function(u,t){return!r&&u.match("{"+n)?(t.currentIndent+=1,t.tokenize[t.tokenize.length-1]=a(n,e,!0),"meta"):u.match(e+"}")?(t.currentIndent-=1,t.tokenize.pop(),"meta"):w(u,t)}}function $(n,e){if(n.eatSpace())return null;var r;if(r=n.match(h)){if(r=="def")return"keyword";n.eat(/[?!]/)}return e.tokenize.pop(),"def"}function S(n,e){return n.eatSpace()?null:(n.match(h)?n.eat(/[!?]/):n.match(y)||n.match(_)||n.match(b),e.tokenize.pop(),"def")}function p(n,e){return n.eatSpace()?null:(n.match(F),e.tokenize.pop(),"def")}function x(n,e,r){return function(u,t){for(var i=!1;u.peek();)if(i)u.next(),i=!1;else{if(u.match("{%",!1))return t.tokenize.push(a("%","%")),e;if(u.match("{{",!1))return t.tokenize.push(a("{","}")),e;if(r&&u.match("#{",!1))return t.tokenize.push(d("#{","}","meta")),e;var k=u.next();if(k==n)return t.tokenize.pop(),e;i=r&&k=="\\"}return e}}function R(n,e){return function(r,u){if(r.sol()&&(r.eatSpace(),r.match(n)))return u.tokenize.pop(),"string";for(var t=!1;r.peek();)if(t)r.next(),t=!1;else{if(r.match("{%",!1))return u.tokenize.push(a("%","%")),"string";if(r.match("{{",!1))return u.tokenize.push(a("{","}")),"string";if(e&&r.match("#{",!1))return u.tokenize.push(d("#{","}","meta")),"string";t=e&&r.next()=="\\"}return"string"}}return{startState:function(){return{tokenize:[w],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(n,e){var r=e.tokenize[e.tokenize.length-1](n,e),u=n.current();return r&&r!="comment"&&(e.lastToken=u,e.lastStyle=r),r},indent:function(n,e){return e=e.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),N.test(e)||Z.test(e)?f.indentUnit*(n.currentIndent-1):f.indentUnit*n.currentIndent},fold:"indent",electricInput:c(I.concat(s),!0),lineComment:"#"}}),o.defineMIME("text/x-crystal","crystal")})})();var U=O.exports,G=Object.freeze(q({__proto__:null,[Symbol.toStringTag]:"Module",default:U},[O.exports]));export{G as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bG as de}from"./vendor.c46e17d6.js";function ue(v,O){return O.forEach(function(d){d&&typeof d!="string"&&!Array.isArray(d)&&Object.keys(d).forEach(function(u){if(u!=="default"&&!(u in v)){var w=Object.getOwnPropertyDescriptor(d,u);Object.defineProperty(v,u,w.get?w:{enumerable:!0,get:function(){return d[u]}})}})}),Object.freeze(v)}var G={exports:{}};(function(v,O){(function(d){d(de.exports)})(function(d){d.defineMode("css",function(o,i){var f=i.inline;i.propertyKeywords||(i=d.resolveMode("text/css"));var g=o.indentUnit,L=i.tokenHooks,ee=i.documentTypes||{},re=i.mediaTypes||{},te=i.mediaFeatures||{},oe=i.mediaValueKeywords||{},N=i.propertyKeywords||{},M=i.nonStandardPropertyKeywords||{},ie=i.fontProperties||{},ne=i.counterDescriptors||{},C=i.colorKeywords||{},I=i.valueKeywords||{},k=i.allowNested,ae=i.lineComment,le=i.supportsAtComponent===!0,X=o.highlightNonStandardPropertyKeywords!==!1,T,n;function c(e,t){return T=t,e}function se(e,t){var r=e.next();if(L[r]){var a=L[r](e,t);if(a!==!1)return a}if(r=="@")return e.eatWhile(/[\w\\\-]/),c("def",e.current());if(r=="="||(r=="~"||r=="|")&&e.eat("="))return c(null,"compare");if(r=='"'||r=="'")return t.tokenize=Y(r),t.tokenize(e,t);if(r=="#")return e.eatWhile(/[\w\\\-]/),c("atom","hash");if(r=="!")return e.match(/^\s*\w*/),c("keyword","important");if(/\d/.test(r)||r=="."&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),c("number","unit");if(r==="-"){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),c("number","unit");if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?c("variable-2","variable-definition"):c("variable-2","variable");if(e.match(/^\w+-/))return c("meta","meta")}else return/[,+>*\/]/.test(r)?c(null,"select-op"):r=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?c("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?c(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=ce),c("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),c("property","word")):c(null,null)}function Y(e){return function(t,r){for(var a=!1,p;(p=t.next())!=null;){if(p==e&&!a){e==")"&&t.backUp(1);break}a=!a&&p=="\\"}return(p==e||!a&&e!=")")&&(r.tokenize=null),c("string","string")}}function ce(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=Y(")"),c(null,"(")}function U(e,t,r){this.type=e,this.indent=t,this.prev=r}function s(e,t,r,a){return e.context=new U(r,t.indentation()+(a===!1?0:g),e.context),r}function m(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function y(e,t,r){return l[r.context.type](e,t,r)}function h(e,t,r,a){for(var p=a||1;p>0;p--)r.context=r.context.prev;return y(e,t,r)}function Z(e){var t=e.current().toLowerCase();I.hasOwnProperty(t)?n="atom":C.hasOwnProperty(t)?n="keyword":n="variable"}var l={};return l.top=function(e,t,r){if(e=="{")return s(r,t,"block");if(e=="}"&&r.context.prev)return m(r);if(le&&/@component/i.test(e))return s(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&e.charAt(0)=="@")return s(r,t,"at");if(e=="hash")n="builtin";else if(e=="word")n="tag";else{if(e=="variable-definition")return"maybeprop";if(e=="interpolation")return s(r,t,"interpolation");if(e==":")return"pseudo";if(k&&e=="(")return s(r,t,"parens")}return r.context.type},l.block=function(e,t,r){if(e=="word"){var a=t.current().toLowerCase();return N.hasOwnProperty(a)?(n="property","maybeprop"):M.hasOwnProperty(a)?(n=X?"string-2":"property","maybeprop"):k?(n=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(n+=" error","maybeprop")}else return e=="meta"?"block":!k&&(e=="hash"||e=="qualifier")?(n="error","block"):l.top(e,t,r)},l.maybeprop=function(e,t,r){return e==":"?s(r,t,"prop"):y(e,t,r)},l.prop=function(e,t,r){if(e==";")return m(r);if(e=="{"&&k)return s(r,t,"propBlock");if(e=="}"||e=="{")return h(e,t,r);if(e=="(")return s(r,t,"parens");if(e=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current()))n+=" error";else if(e=="word")Z(t);else if(e=="interpolation")return s(r,t,"interpolation");return"prop"},l.propBlock=function(e,t,r){return e=="}"?m(r):e=="word"?(n="property","maybeprop"):r.context.type},l.parens=function(e,t,r){return e=="{"||e=="}"?h(e,t,r):e==")"?m(r):e=="("?s(r,t,"parens"):e=="interpolation"?s(r,t,"interpolation"):(e=="word"&&Z(t),"parens")},l.pseudo=function(e,t,r){return e=="meta"?"pseudo":e=="word"?(n="variable-3",r.context.type):y(e,t,r)},l.documentTypes=function(e,t,r){return e=="word"&&ee.hasOwnProperty(t.current())?(n="tag",r.context.type):l.atBlock(e,t,r)},l.atBlock=function(e,t,r){if(e=="(")return s(r,t,"atBlock_parens");if(e=="}"||e==";")return h(e,t,r);if(e=="{")return m(r)&&s(r,t,k?"block":"top");if(e=="interpolation")return s(r,t,"interpolation");if(e=="word"){var a=t.current().toLowerCase();a=="only"||a=="not"||a=="and"||a=="or"?n="keyword":re.hasOwnProperty(a)?n="attribute":te.hasOwnProperty(a)?n="property":oe.hasOwnProperty(a)?n="keyword":N.hasOwnProperty(a)?n="property":M.hasOwnProperty(a)?n=X?"string-2":"property":I.hasOwnProperty(a)?n="atom":C.hasOwnProperty(a)?n="keyword":n="error"}return r.context.type},l.atComponentBlock=function(e,t,r){return e=="}"?h(e,t,r):e=="{"?m(r)&&s(r,t,k?"block":"top",!1):(e=="word"&&(n="error"),r.context.type)},l.atBlock_parens=function(e,t,r){return e==")"?m(r):e=="{"||e=="}"?h(e,t,r,2):l.atBlock(e,t,r)},l.restricted_atBlock_before=function(e,t,r){return e=="{"?s(r,t,"restricted_atBlock"):e=="word"&&r.stateArg=="@counter-style"?(n="variable","restricted_atBlock_before"):y(e,t,r)},l.restricted_atBlock=function(e,t,r){return e=="}"?(r.stateArg=null,m(r)):e=="word"?(r.stateArg=="@font-face"&&!ie.hasOwnProperty(t.current().toLowerCase())||r.stateArg=="@counter-style"&&!ne.hasOwnProperty(t.current().toLowerCase())?n="error":n="property","maybeprop"):"restricted_atBlock"},l.keyframes=function(e,t,r){return e=="word"?(n="variable","keyframes"):e=="{"?s(r,t,"top"):y(e,t,r)},l.at=function(e,t,r){return e==";"?m(r):e=="{"||e=="}"?h(e,t,r):(e=="word"?n="tag":e=="hash"&&(n="builtin"),"at")},l.interpolation=function(e,t,r){return e=="}"?m(r):e=="{"||e==";"?h(e,t,r):(e=="word"?n="variable":e!="variable"&&e!="("&&e!=")"&&(n="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:f?"block":"top",stateArg:null,context:new U(f?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||se)(e,t);return r&&typeof r=="object"&&(T=r[1],r=r[0]),n=r,T!="comment"&&(t.state=l[t.state](T,e,t)),n},indent:function(e,t){var r=e.context,a=t&&t.charAt(0),p=r.indent;return r.type=="prop"&&(a=="}"||a==")")&&(r=r.prev),r.prev&&(a=="}"&&(r.type=="block"||r.type=="top"||r.type=="interpolation"||r.type=="restricted_atBlock")?(r=r.prev,p=r.indent):(a==")"&&(r.type=="parens"||r.type=="atBlock_parens")||a=="{"&&(r.type=="at"||r.type=="atBlock"))&&(p=Math.max(0,r.indent-g))),p},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ae,fold:"brace"}});function u(o){for(var i={},f=0;f<o.length;++f)i[o[f].toLowerCase()]=!0;return i}var w=["domain","regexp","url","url-prefix"],S=u(w),A=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],x=u(A),E=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],z=u(E),F=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],B=u(F),W=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],K=u(W),$=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],P=u($),J=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=u(J),Q=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],V=u(Q),D=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],j=u(D),H=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],q=u(H),R=w.concat(A).concat(E).concat(F).concat(W).concat($).concat(D).concat(H);d.registerHelper("hintWords","css",R);function b(o,i){for(var f=!1,g;(g=o.next())!=null;){if(f&&g=="/"){i.tokenize=null;break}f=g=="*"}return["comment","comment"]}d.defineMIME("text/css",{documentTypes:S,mediaTypes:x,mediaFeatures:z,mediaValueKeywords:B,propertyKeywords:K,nonStandardPropertyKeywords:P,fontProperties:_,counterDescriptors:V,colorKeywords:j,valueKeywords:q,tokenHooks:{"/":function(o,i){return o.eat("*")?(i.tokenize=b,b(o,i)):!1}},name:"css"}),d.defineMIME("text/x-scss",{mediaTypes:x,mediaFeatures:z,mediaValueKeywords:B,propertyKeywords:K,nonStandardPropertyKeywords:P,colorKeywords:j,valueKeywords:q,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(o,i){return o.eat("/")?(o.skipToEnd(),["comment","comment"]):o.eat("*")?(i.tokenize=b,b(o,i)):["operator","operator"]},":":function(o){return o.match(/^\s*\{/,!1)?[null,null]:!1},$:function(o){return o.match(/^[\w-]+/),o.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(o){return o.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),d.defineMIME("text/x-less",{mediaTypes:x,mediaFeatures:z,mediaValueKeywords:B,propertyKeywords:K,nonStandardPropertyKeywords:P,colorKeywords:j,valueKeywords:q,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(o,i){return o.eat("/")?(o.skipToEnd(),["comment","comment"]):o.eat("*")?(i.tokenize=b,b(o,i)):["operator","operator"]},"@":function(o){return o.eat("{")?[null,"interpolation"]:o.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(o.eatWhile(/[\w\\\-]/),o.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),d.defineMIME("text/x-gss",{documentTypes:S,mediaTypes:x,mediaFeatures:z,propertyKeywords:K,nonStandardPropertyKeywords:P,fontProperties:_,counterDescriptors:V,colorKeywords:j,valueKeywords:q,supportsAtComponent:!0,tokenHooks:{"/":function(o,i){return o.eat("*")?(i.tokenize=b,b(o,i)):!1}},name:"css",helperType:"gss"})})})();var pe=G.exports,fe=Object.freeze(ue({__proto__:null,[Symbol.toStringTag]:"Module",default:pe},[G.exports]));export{G as a,fe as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bG as w}from"./vendor.c46e17d6.js";function k(u,d){return d.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(o){if(o!=="default"&&!(o in u)){var a=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(u,o,a.get?a:{enumerable:!0,get:function(){return t[o]}})}})}),Object.freeze(u)}var x={exports:{}};(function(u,d){(function(t){t(w.exports)})(function(t){var o=function(a){return new RegExp("^(?:"+a.join("|")+")$","i")};t.defineMode("cypher",function(a){var l=function(n){var e=n.next();if(e==='"')return n.match(/^[^"]*"/),"string";if(e==="'")return n.match(/^[^']*'/),"string";if(/[{}\(\),\.;\[\]]/.test(e))return s=e,"node";if(e==="/"&&n.eat("/"))return n.skipToEnd(),"comment";if(f.test(e))return n.eatWhile(f),null;if(n.eatWhile(/[_\w\d]/),n.eat(":"))return n.eatWhile(/[\w\d_\-]/),"atom";var r=n.current();return v.test(r)?"builtin":y.test(r)?"def":m.test(r)||b.test(r)?"keyword":"variable"},c=function(n,e,r){return n.context={prev:n.context,indent:n.indent,col:r,type:e}},p=function(n){return n.indent=n.context.indent,n.context=n.context.prev},g=a.indentUnit,s,v=o(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),y=o(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),m=o(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),b=o(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),f=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:l,context:null,indent:0,col:0}},token:function(n,e){if(n.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=n.indentation()),n.eatSpace())return null;var r=e.tokenize(n,e);if(r!=="comment"&&e.context&&e.context.align==null&&e.context.type!=="pattern"&&(e.context.align=!0),s==="(")c(e,")",n.column());else if(s==="[")c(e,"]",n.column());else if(s==="{")c(e,"}",n.column());else if(/[\]\}\)]/.test(s)){for(;e.context&&e.context.type==="pattern";)p(e);e.context&&s===e.context.type&&p(e)}else s==="."&&e.context&&e.context.type==="pattern"?p(e):/atom|string|variable/.test(r)&&e.context&&(/[\}\]]/.test(e.context.type)?c(e,"pattern",n.column()):e.context.type==="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=n.column()));return r},indent:function(n,e){var r=e&&e.charAt(0),i=n.context;if(/[\]\}]/.test(r))for(;i&&i.type==="pattern";)i=i.prev;var h=i&&r===i.type;return i?i.type==="keywords"?t.commands.newlineAndIndent:i.align?i.col+(h?0:1):i.indent+(h?0:g):0}}}),t.modeExtensions.cypher={autoFormatLineBreaks:function(a){for(var l,c,p,c=a.split(`
|
|
2
2
|
`),p=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g,l=0;l<c.length;l++)c[l]=c[l].replace(p,`
|
|
3
3
|
$1 `).trim();return c.join(`
|
|
4
4
|
`)}},t.defineMIME("application/x-cypher-query","cypher")})})();var j=x.exports,_=Object.freeze(k({__proto__:null,[Symbol.toStringTag]:"Module",default:j},[x.exports]));export{_ as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bG as C}from"./vendor.c46e17d6.js";function K(m,h){return h.forEach(function(l){l&&typeof l!="string"&&!Array.isArray(l)&&Object.keys(l).forEach(function(c){if(c!=="default"&&!(c in m)){var f=Object.getOwnPropertyDescriptor(l,c);Object.defineProperty(m,c,f.get?f:{enumerable:!0,get:function(){return l[c]}})}})}),Object.freeze(m)}var E={exports:{}};(function(m,h){(function(l){l(C.exports)})(function(l){l.defineMode("d",function(d,u){var a=d.indentUnit,s=u.statementIndentUnit||a,I=u.keywords||{},O=u.builtin||{},b=u.blockKeywords||{},S=u.atoms||{},v=u.hooks||{},j=u.multiLineStrings,x=/[+\-*&%=<>!?|\/]/,i;function k(e,n){var t=e.next();if(v[t]){var r=v[t](e,n);if(r!==!1)return r}if(t=='"'||t=="'"||t=="`")return n.tokenize=L(t),n.tokenize(e,n);if(/[\[\]{}\(\),;\:\.]/.test(t))return i=t,null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(t=="/"){if(e.eat("+"))return n.tokenize=_,_(e,n);if(e.eat("*"))return n.tokenize=w,w(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(x.test(t))return e.eatWhile(x),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return I.propertyIsEnumerable(o)?(b.propertyIsEnumerable(o)&&(i="newstatement"),"keyword"):O.propertyIsEnumerable(o)?(b.propertyIsEnumerable(o)&&(i="newstatement"),"builtin"):S.propertyIsEnumerable(o)?"atom":"variable"}function L(e){return function(n,t){for(var r=!1,o,z=!1;(o=n.next())!=null;){if(o==e&&!r){z=!0;break}r=!r&&o=="\\"}return(z||!(r||j))&&(t.tokenize=null),"string"}}function w(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=null;break}t=r=="*"}return"comment"}function _(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=null;break}t=r=="+"}return"comment"}function g(e,n,t,r,o){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=o}function y(e,n,t){var r=e.indented;return e.context&&e.context.type=="statement"&&(r=e.context.indented),e.context=new g(r,n,t,null,e.context)}function p(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new g((e||0)-a,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;i=null;var r=(n.tokenize||k)(e,n);if(r=="comment"||r=="meta")return r;if(t.align==null&&(t.align=!0),(i==";"||i==":"||i==",")&&t.type=="statement")p(n);else if(i=="{")y(n,e.column(),"}");else if(i=="[")y(n,e.column(),"]");else if(i=="(")y(n,e.column(),")");else if(i=="}"){for(;t.type=="statement";)t=p(n);for(t.type=="}"&&(t=p(n));t.type=="statement";)t=p(n)}else i==t.type?p(n):((t.type=="}"||t.type=="top")&&i!=";"||t.type=="statement"&&i=="newstatement")&&y(n,e.column(),"statement");return n.startOfLine=!1,r},indent:function(e,n){if(e.tokenize!=k&&e.tokenize!=null)return l.Pass;var t=e.context,r=n&&n.charAt(0);t.type=="statement"&&r=="}"&&(t=t.prev);var o=r==t.type;return t.type=="statement"?t.indented+(r=="{"?0:s):t.align?t.column+(o?0:1):t.indented+(o?0:a)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function c(d){for(var u={},a=d.split(" "),s=0;s<a.length;++s)u[a[s]]=!0;return u}var f="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";l.defineMIME("text/x-d",{name:"d",keywords:c("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+f),blockKeywords:c(f),builtin:c("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:c("exit failure success true false null"),hooks:{"@":function(d,u){return d.eatWhile(/[\w\$_]/),"meta"}}})})})();var P=E.exports,W=Object.freeze(K({__proto__:null,[Symbol.toStringTag]:"Module",default:P},[E.exports]));export{W as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bG as j}from"./vendor.c46e17d6.js";import{a as $}from"./clike.edc5829c.js";function I(a,d){return d.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(i){if(i!=="default"&&!(i in a)){var l=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(a,i,l.get?l:{enumerable:!0,get:function(){return r[i]}})}})}),Object.freeze(a)}var w={exports:{}};(function(a,d){(function(r){r(j.exports,$.exports)})(function(r){var i="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required".split(" "),l="try catch finally do else for if switch while".split(" "),v="true false null".split(" "),h="void bool num int double dynamic var String Null Never".split(" ");function c(e){for(var n={},t=0;t<e.length;++t)n[e[t]]=!0;return n}function x(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function b(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function m(e){return e.interpolationStack?e.interpolationStack.length:0}r.defineMIME("application/dart",{name:"clike",keywords:c(i),blockKeywords:c(l),builtin:c(h),atoms:c(v),hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,n){return p("'",e,n,!1)},'"':function(e,n){return p('"',e,n,!1)},r:function(e,n){var t=e.peek();return t=="'"||t=='"'?p(e.next(),e,n,!0):!1},"}":function(e,n){return m(n)>0?(n.tokenize=b(n),null):!1},"/":function(e,n){return e.eat("*")?(n.tokenize=s(1),n.tokenize(e,n)):!1},token:function(e,n,t){if(t=="variable"){var o=RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g");if(o.test(e.current()))return"variable-2"}}}});function p(e,n,t,o){var y=!1;if(n.eat(e))if(n.eat(e))y=!0;else return"string";function g(u,k){for(var f=!1;!u.eol();){if(!o&&!f&&u.peek()=="$")return x(k),k.tokenize=S,"string";var z=u.next();if(z==e&&!f&&(!y||u.match(e+e))){k.tokenize=null;break}f=!o&&!f&&z=="\\"}return"string"}return t.tokenize=g,g(n,t)}function S(e,n){return e.eat("$"),e.eat("{")?n.tokenize=null:n.tokenize=_,null}function _(e,n){return e.eatWhile(/[\w_]/),n.tokenize=b(n),"variable"}function s(e){return function(n,t){for(var o;o=n.next();)if(o=="*"&&n.eat("/"))if(e==1){t.tokenize=null;break}else return t.tokenize=s(e-1),t.tokenize(n,t);else if(o=="/"&&n.eat("*"))return t.tokenize=s(e+1),t.tokenize(n,t);return"comment"}}r.registerHelper("hintWords","application/dart",i.concat(v).concat(h)),r.defineMode("dart",function(e){return r.getMode(e,"application/dart")},"clike")})})();var O=w.exports,N=Object.freeze(I({__proto__:null,[Symbol.toStringTag]:"Module",default:O},[w.exports]));export{N as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,q as c,C as r,v as l,M as e,u as i,D as t}from"./vendor.299bc11c.js";const h={class:"markdown-body"},u=t("The data model describes the structure of your database\u2019s schema using "),f=t("Collections"),g=t(" (database tables) and "),_=t("Fields"),p=t(" (database columns)."),m=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#creating-a-collection"},"Creating a Collection")]),e("li",null,[e("a",{href:"#configuring-a-collection"},"Configuring a Collection")]),e("li",null,[e("a",{href:"#deleting-a-collection"},"Deleting a Collection")]),e("li",null,[e("a",{href:"#adjusting-the-collection-hierarchy"},"Adjusting the Collection Hierarchy")]),e("li",null,[e("a",{href:"#adjusting-the-collection-form"},"Adjusting the Collection Form")]),e("li",null,[e("a",{href:"#creating-a-field-(standard)"},"Creating a Field (Standard)")]),e("li",null,[e("a",{href:"#creating-a-field-(advanced)"},"Creating a Field (Advanced)")]),e("li",null,[e("a",{href:"#creating-translated-multilingual-fields"},"Creating Translated Multilingual Fields")]),e("li",null,[e("a",{href:"#configuring-a-field"},"Configuring a Field")]),e("li",null,[e("a",{href:"#duplicating-a-field"},"Duplicating a Field")]),e("li",null,[e("a",{href:"#deleting-a-field"},"Deleting a Field")])])])],-1),y=e("h2",{id:"creating-a-collection"},[t("Creating a Collection "),e("a",{class:"header-anchor",href:"#creating-a-collection"},"#")],-1),v=e("ol",null,[e("li",null,[t("Click the "),e("strong",null,"Create Collection"),t(" action button in the Data Model header")]),e("li",null,[t("Enter a unique "),e("strong",null,"Collection Name"),t(" to be used as the database table name, API collection key, and App collection name default.")]),e("li",null,[t("Configure the name and type of the "),e("strong",null,"Primary Key"),t(". "),e("ul",null,[e("li",null,"Auto-Incremented Integer"),e("li",null,"Generated UUID"),e("li",null,"Manually Entered String")])]),e("li",null,[t("Optional: Enable and rename any desired "),e("strong",null,"System Fields"),t(". "),e("ul",null,[e("li",null,"Status"),e("li",null,"Sort"),e("li",null,"Created On"),e("li",null,"Created By"),e("li",null,"Updated On"),e("li",null,"Updated By")])]),e("li",null,[t("Click the "),e("strong",null,"Finish Setup"),t(" button")])],-1),b=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Immutable Keys"),e("p",null,"As of now, the key can not be modified after the collections has been created.")],-1),w=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Database Tables"),e("p",null,[t("Keep in mind that a Directus Collection is just a database table. Therefore you can import or create a table directly in the database, and it will automatically appear within Directus. The first time you manage that table, a "),e("code",null,"directus_collections"),t(" record will be created with default values.")])],-1),T=e("h2",{id:"configuring-a-collection"},[t("Configuring a Collection "),e("a",{class:"header-anchor",href:"#configuring-a-collection"},"#")],-1),C=e("p",null,[t("You can configure a collection by clicking on it within "),e("strong",null,"Settings > Data Model"),t(". On this page the following options are available:")],-1),F=e("li",null,[e("strong",null,"Fields & Layout"),t(" \u2014 This manages the fields of this collection, and their form layout. For more information on this configuration, refer to the sections below on Field Management. "),e("ul",null,[e("li",null,[e("a",{href:"#creating-a-field"},"Creating a Field")]),e("li",null,[e("a",{href:"#updating-a-field"},"Updating a Field")]),e("li",null,[e("a",{href:"#deleting-a-field"},"Deleting a Field")]),e("li",null,[e("a",{href:"#duplicating-a-field"},"Duplicating a Field")]),e("li",null,[e("a",{href:"#adjusting-the-collection-form"},"Changing Field Order & Layout")])])],-1),A=e("li",null,[e("strong",null,"Collection Name"),t(" \u2014 This is the key for the collection. It can not be modified, but you can override it with Translations (see field below).")],-1),D=e("li",null,[e("strong",null,"Note"),t(" \u2014 A helpful note that explains the collection\u2019s purpose")],-1),k=e("li",null,[e("strong",null,"Icon"),t(" \u2014 The icon used throughout the App when referencing this collection")],-1),S=e("li",null,[e("strong",null,"Color"),t(" \u2014 A color for the icon, shown in the navigation and its header")],-1),I=e("li",null,[e("strong",null,"Display Template"),t(" \u2014 A Field Template that creates dynamic titles for the collection\u2019s items")],-1),M=e("li",null,[e("strong",null,"Hidden"),t(" \u2014 Toggles if the collection should be globally hidden. Keep in mind that Admin roles can always see all collections.")],-1),N=e("strong",null,"Singleton",-1),x=t(" \u2014 For collections that will only contain a single item (eg: an \u201CAbout Us\u201D form), the "),O=t("Collection Page"),P=t(" will be bypassed, taking users directly to the "),U=t("Item Page"),j=t("."),R=e("strong",null,"Collection Naming Translations",-1),K=t(" \u2014 While the collection key can not be changed (as of now), this option allows translating the collection name into different languages. By default, the platform uses the "),L=t("Title Formatter"),q=t(" to display collection keys as human readable names, but you can also use translations to explicitly rename more technical table keys."),W=e("h3",{id:"archive"},[t("Archive "),e("a",{class:"header-anchor",href:"#archive"},"#")],-1),H=e("p",null,"The archive feature allows you to enable \u201Csoft-delete\u201D within the collection. Archived items are hidden in the App by default, but are still returned normally via the API unless they are filtered out.",-1),B=e("ul",null,[e("li",null,[e("strong",null,"Archive Field"),t(" \u2014 The field that holds the archive value")]),e("li",null,[e("strong",null,"Archive App Filter"),t(" \u2014 Allows users to view archived items")]),e("li",null,[e("strong",null,"Archive Value"),t(" \u2014 The value saved in the Archive Field when archived")]),e("li",null,[e("strong",null,"Unarchive Value"),t(" \u2014 The value saved in the Archive Field when unarchived")])],-1),E=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Automatic Setup"),e("p",null,"When creating a new Collection, you have the option of creating an optional \u201CStatus\u201D field. If you choose to include this field, the collection\u2019s archive settings will automatically be configured for you.")],-1),V=e("h3",{id:"sort"},[t("Sort "),e("a",{class:"header-anchor",href:"#sort"},"#")],-1),z=t("The sort feature enables manual drag-and-drop item reordering within the Directus App. This is typically shown on the "),Y=t("Collection Page"),G=t(", but can also be used for sorting items within "),J=t("Junction Tables"),Q=t(". Configuration is as easy as selecting the appropriate sort field:"),X=e("ul",null,[e("li",null,[e("strong",null,"Sort Field"),t(" \u2014 Choose a field with the "),e("code",null,"integer"),t(" type. You may want to set this field to be \u201Chidden\u201D so it doesn\u2019t show up within the Item Page form.")])],-1),Z=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Automatic Setup"),e("p",null,"When creating a new Collection, you have the option of creating an optional \u201CSort\u201D field. If you choose to include this field, the collection\u2019s sort settings will automatically be configured for you.")],-1),$=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Interface Sorting"),e("p",null,[t("To configure manual sorting within an Interface (eg: M2M, O2M, or M2A), configure as above, but also set the "),e("strong",null,"Sort Field"),t(" on the field\u2019s Relationship pane.")])],-1),ee=e("h3",{id:"accountability"},[t("Accountability "),e("a",{class:"header-anchor",href:"#accountability"},"#")],-1),te=t("By default, the platform tracks all "),le=t("activity"),ne=t(" and "),ie=t("revisions"),oe=t(" for collections. This option allows you to override this, choosing what data is tracked."),ae=e("ul",null,[e("li",null,[e("strong",null,"Activity & Revision Tracking"),t(" \u2014 supports the follow options: "),e("ul",null,[e("li",null,"Track Activity & Revisions"),e("li",null,"Only Track Activity"),e("li",null,"Do Not Track Anything")])])],-1),se=e("h3",{id:"duplication"},[t("Duplication "),e("a",{class:"header-anchor",href:"#duplication"},"#")],-1),de=e("p",null,"The \u201CSave as Copy\u201D option on the Item Page offers a way to effectively duplicate the current item. However, since there may be unique or relational data within this form, it\u2019s important to control exactly what will be copied. This option allows for configuring which parent/relational field values will be copied.",-1),ce=e("h2",{id:"deleting-a-collection"},[t("Deleting a Collection "),e("a",{class:"header-anchor",href:"#deleting-a-collection"},"#")],-1),re=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")]),e("li",null,[t("Click the red "),e("strong",null,"Delete Collection"),t(" action button in the header")]),e("li",null,[t("Confirm this decision by clicking "),e("strong",null,"Delete"),t(" in the dialog")])],-1),he=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,"This action is permanent and can not be undone. Please proceed with caution.")],-1),ue=e("h2",{id:"adjusting-the-collection-hierarchy"},[t("Adjusting the Collection Hierarchy "),e("a",{class:"header-anchor",href:"#adjusting-the-collection-hierarchy"},"#")],-1),fe=e("p",null,"Collections can be organized in several ways.",-1),ge=e("h2",{id:"adjusting-the-collection-form"},[t("Adjusting the Collection Form "),e("a",{class:"header-anchor",href:"#adjusting-the-collection-form"},"#")],-1),_e=t("The "),pe=t("Item Page"),me=t(" displays a custom form for viewing and editing each collection\u2019s fields. This form is highly configurable, with the following field options:"),ye=e("ul",null,[e("li",null,[e("strong",null,"Visibility"),t(" \u2014 Fields can be set to \u201Cvisible\u201D or \u201Chidden\u201D on the form. This is adjusted via the field\u2019s context menu or edit drawer.")]),e("li",null,[e("strong",null,"Width"),t(" \u2014 Fields have three different width options relative to the form/page. This is adjusted via the field\u2019s context menu or edit drawer. "),e("ul",null,[e("li",null,"Half \u2014 The field is shown at half the form width"),e("li",null,"Full \u2014 (Default) The field is shown at the full form width"),e("li",null,"Fill \u2014 The field is shown filling the page width")])]),e("li",null,[e("strong",null,"Sort"),t(" \u2014 Fields can be rearranged via their drag-and-drop handles.")]),e("li",null,[e("strong",null,"Grouping"),t(" \u2014 Fields can be organized within different nested groups that are created using the normal Creating a Field flow. Different style groupings are available for different use-cases.")])],-1),ve=e("h2",{id:"creating-a-field-(standard)"},[t("Creating a Field (Standard) "),e("a",{class:"header-anchor",href:"#creating-a-field-(standard)"},"#")],-1),be=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")]),e("li",null,[t("Under Fields & Layout, click the "),e("strong",null,"Create Field"),t(" button")]),e("li",null,[e("strong",null,"Choose the desired interface"),t(" by clicking on the illustration")]),e("li",null,[t("Add a "),e("strong",null,"Field Key"),t(", which is also used as the default field name")]),e("li",null,[e("strong",null,"Configure the field options"),t(", including the default value, required flag, and interface options")])],-1),we=e("h2",{id:"creating-a-field-(advanced)"},[t("Creating a Field (Advanced) "),e("a",{class:"header-anchor",href:"#creating-a-field-(advanced)"},"#")],-1),Te=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")]),e("li",null,[t("Under Fields & Layout, click the "),e("strong",null,"Create Field in Advanced Mode"),t(" button")]),e("li",null,[e("strong",null,"Choose the field type"),t(", and follow its setup steps below.")])],-1),Ce=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Database Columns"),e("p",null,"Keep in mind that a Directus Field is just a database columns. Therefore you can create a columns directly in the database, and it will automatically appear within Directus using intelligent defaults. You can then enhance the experience further using the following steps.")],-1),Fe=e("h3",{id:"schema"},[t("Schema "),e("a",{class:"header-anchor",href:"#schema"},"#")],-1),Ae=e("p",null,"This pane controls the technical details of the field\u2019s database column.",-1),De=e("strong",null,"Key",-1),ke=t(" \u2014 (Required) The database column name and field\u2019s API key. The key must be unique within its parent Collection. As of now, all keys are sanitized: lowercased, alphanumeric, and with spaces removed. Keys can not be changed once created, however you can use "),Se=t("Field Name Translations"),Ie=t(" to override how it\u2019s displayed in the App."),Me=e("strong",null,"Type",-1),Ne=t(" \u2014 (Required) How the data is saved to the database; See "),xe=t("Directus Data Type Superset"),Oe=t(". This dropdown maybe be limited or even disabled based on your chosen Field category."),Pe=e("li",null,[e("strong",null,"Length"),t(" \u2014 (Only for certain types) For String types this determines the number of characters that can be stored in the database. For Float and Decimal types, this control becomes "),e("strong",null,"Precision & Scale"),t(".")],-1),Ue=e("li",null,[e("strong",null,"On Create"),t(" \u2014 (Only for certain types) For some data types, this option allows you to control what value is saved when an item is created. These values are fallbacks and can be overridden by the App/API. For example, the Timestamp type allows you to \u201CSave Current Date/Time\u201D.")],-1),je=e("li",null,[e("strong",null,"On Update"),t(" \u2014 (Only for certain types) For some data types, this option allows you to control what value is saved when an item is updated. These values are fallbacks and can be overridden by the App/API. For example, the UUID type allows you to \u201CSave Current User ID\u201D.")],-1),Re=e("li",null,[e("strong",null,"Default Value"),t(" \u2014 This is the initial value shown for a field when creating an item in the App. If creating an item via the API, this is the fallback value saved to the database if a field value is not submitted.")],-1),Ke=e("li",null,[e("strong",null,"Allow NULL"),t(" \u2014 Toggles if the database column is nullable. When disabled, a "),e("code",null,"NULL"),t(" value can not be saved to the field\u2019s column.")],-1),Le=e("li",null,[e("strong",null,"Unique"),t(" \u2014 Toggles if the database column\u2019s values must all be unique.")],-1),qe=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Immutable Keys"),e("p",null,"As of now, the key can not be modified after the field has been created.")],-1),We=e("h3",{id:"relationship"},[t("Relationship "),e("a",{class:"header-anchor",href:"#relationship"},"#")],-1),He=e("p",null,"This pane is only shown when configuring relational fields (including images and translations). Depending on the type of relationship, you\u2019ll be presented with one of the following set of options:",-1),Be=t("Many-to-One"),Ee=t("One-to-Many"),Ve=t("Many-to-Many"),ze=t("Many-to-Any"),Ye=t("Translations"),Ge={class:"tip hint"},Je=e("div",{class:"hint-title"},"Corresponding Field",-1),Qe=t("Relationships go both ways"),Xe=t(", so when creating a new relation Field, Directus offers to automatically create the corresponding Field on the related Collection."),Ze=e("h3",{id:"field"},[t("Field "),e("a",{class:"header-anchor",href:"#field"},"#")],-1),$e=e("li",null,[e("strong",null,"Required"),t(" \u2014 Toggles if a value for the Field is required. "),e("ul",null,[e("li",null,[t("Empty strings ("),e("code",null,"''"),t(") and "),e("code",null,"NULL"),t(" are "),e("strong",null,"not"),t(" accepted as a valid value")]),e("li",null,[e("code",null,"0"),t(" and "),e("code",null,"false"),t(" are accepted as a valid value")]),e("li",null,"Default values are accepted as a valid value"),e("li",null,"Permission Presets are accepted as a valid value")])],-1),et=e("li",null,[e("strong",null,"Readonly"),t(" \u2014 (App Only) Sets the field to be disabled.")],-1),tt=e("li",null,[e("strong",null,"Hidden"),t(" \u2014 (App Only) Hides the field in the App form. "),e("ul",null,[e("li",null,"The field is still available in filters and Layout options.")])],-1),lt=e("li",null,[e("strong",null,"Note"),t(" \u2014 (App Only) Displayed below the field in the App form, providing a helpful comment for App users. This note supports markdown.")],-1),nt=e("strong",null,"Field Name Translations",-1),it=t(" \u2014 (App Only) While the field key can not be changed (as of now), this option allows translating the field name into different languages. By default, the platform uses the "),ot=t("Title Formatter"),at=t(" to display field keys as human readable names, but you can also use translations to explicitly rename more technical column keys."),st=e("h3",{id:"interface"},[t("Interface "),e("a",{class:"header-anchor",href:"#interface"},"#")],-1),dt=e("p",null,"This pane includes any customization options that may be defined by the Interface.",-1),ct=e("h3",{id:"display"},[t("Display "),e("a",{class:"header-anchor",href:"#display"},"#")],-1),rt=e("p",null,"This pane includes any customization options that may be defined by the Display.",-1),ht=e("h3",{id:"conditions"},[t("Conditions "),e("a",{class:"header-anchor",href:"#conditions"},"#")],-1),ut=e("p",null,"Conditions allow you to alter the current field\u2019s setup based on the values of other fields in the form. This allows you to show/hide the field, make it readonly, or change the interface options.",-1),ft=e("p",null,[t("Each field can have one or more "),e("em",null,"rules"),t(". Each rule has the following configuration options:")],-1),gt=e("li",null,[e("strong",null,"Name"),t(": The name of the rule. This is only used internally for convenience purposes")],-1),_t=e("strong",null,"Rule",-1),pt=t(": The rule that controls whether or not these conditions are applied. Rule follows the "),mt=t("Filter Rules"),yt=t(" spec"),vt=e("li",null,[e("strong",null,"Readonly"),t(": Whether or not the field is readonly when the condition is matched")],-1),bt=e("li",null,[e("strong",null,"Hidden"),t(": Whether or not the field is hidden when the condition is matched")],-1),wt=e("li",null,[e("strong",null,"Interface Options"),t(": Any additional configuration for the selected interface")],-1),Tt=e("p",null,"These changes to the field are merged onto the base configuration of the field. This means you can have the field hidden by default, and then only toggle the hidden state of the field in the condition.",-1),Ct=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Order Matters"),e("p",null,[t("The conditions are matched in order. The "),e("strong",null,"last"),t(" condition that matches is the one that\u2019s used to apply the changes.")])],-1),Ft=e("h2",{id:"creating-translated-multilingual-fields"},[t("Creating Translated Multilingual Fields "),e("a",{class:"header-anchor",href:"#creating-translated-multilingual-fields"},"#")],-1),At=t("While you could create individual fields for each translation, such as "),Dt=e("code",null,"title_english",-1),kt=t(", "),St=e("code",null,"title_german",-1),It=t(", "),Mt=e("code",null,"title_french",-1),Nt=t(", and so on, this is not easily extensible, and creates a less than ideal form layout. Instead, you can use the Directus "),xt=e("em",null,"relational",-1),Ot=t(),Pt=t("Translations O2M"),Ut=t(" interface. This uses a separate collection to store an endless number of translations, and a separate collection of languages that can easily be added to without having to change the schema."),jt=e("p",null,"Let\u2019s take a look at a basic example for \u201CArticles\u201D:",-1),Rt=e("ul",null,[e("li",null,[e("strong",null,[e("code",null,"articles"),t(" Collection")]),e("ul",null,[e("li",null,[e("code",null,"id"),t(" \u2014 (Primary Key)")]),e("li",null,[e("code",null,"author"),t(" \u2014 Field that is not translated")]),e("li",null,[e("code",null,"date_published"),t(" \u2014 Field that is not translated")]),e("li",null,[e("code",null,"translations"),t(" \u2014 A O2M relational field to "),e("code",null,"article_translations")])])]),e("li",null,[e("strong",null,[e("code",null,"article_translations"),t(" Collection")]),e("ul",null,[e("li",null,[e("code",null,"id"),t(" \u2014 (Primary Key)")]),e("li",null,[e("code",null,"article"),t(" \u2014 The key of the article this belongs to")]),e("li",null,[e("code",null,"language"),t(" \u2014 The language key of this translation")]),e("li",null,[e("code",null,"title"),t(" \u2014 The translated Article Title")]),e("li",null,[e("code",null,"text"),t(" \u2014 The translated Article Text")])])]),e("li",null,[e("strong",null,[e("code",null,"languages"),t(" Collection")]),e("ul",null,[e("li",null,[e("code",null,"language_code"),t(" \u2014 (Primary Key) eg: \u201Cen-US\u201D")]),e("li",null,[e("code",null,"name"),t(" \u2014 The language name, eg: \u201CEnglish\u201D")])])])],-1),Kt=e("p",null,[t("As you can see above, you add "),e("strong",null,"non-translated"),t(" fields, such as the "),e("code",null,"author"),t(" and "),e("code",null,"publish_date"),t(", to the parent collection. Any "),e("strong",null,"multilingual"),t(" fields, such as Title or Text, should be added directly to the Translation Collection. You can not simply drag or shift fields from the parent to translations, they must be "),e("em",null,"created"),t(" in the correct collection.")],-1),Lt=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Translating Parent Fields"),e("p",null,[t("To make an existing parent field translatable, you can choose \u201CDuplicate Field\u201D from its context menu, move it to the translation collection, and then delete the parent field. However, be aware that this does "),e("strong",null,"not"),t(" maintain any existing field values in the process.")])],-1),qt=e("h2",{id:"configuring-a-field"},[t("Configuring a Field "),e("a",{class:"header-anchor",href:"#configuring-a-field"},"#")],-1),Wt=e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")],-1),Ht=e("li",null,"Click the field you want to update",-1),Bt=t("Make any desired updates referencing the "),Et=t("Creating a Field"),Vt=t(" docs above"),zt=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"System Fields"),e("p",null,[t("While all out-of-the-box system fields are locked from editing or deleting, you are able to create new fields within the system collections. To get started, expand System Collections from the bottom of "),e("strong",null,"Settings > Data Model"),t(".")])],-1),Yt=e("h2",{id:"duplicating-a-field"},[t("Duplicating a Field "),e("a",{class:"header-anchor",href:"#duplicating-a-field"},"#")],-1),Gt=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")]),e("li",null,[t("Click the "),e("strong",null,"More Options"),t(" icon for the field you want to duplicate")]),e("li",null,[t("Click the "),e("strong",null,"Duplicate Field"),t(" option")])],-1),Jt=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Relational and Primary Key Fields"),e("p",null,"It is not currently possible to duplicate relational fields or a collection\u2019s primary key.")],-1),Qt=e("h2",{id:"deleting-a-field"},[t("Deleting a Field "),e("a",{class:"header-anchor",href:"#deleting-a-field"},"#")],-1),Xt=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")]),e("li",null,[t("Click the "),e("strong",null,"More Options"),t(" icon for the field you want to delete")]),e("li",null,[t("Click the "),e("strong",null,"Delete Field"),t(" option")]),e("li",null,[t("Confirm this decision by clicking "),e("strong",null,"Delete"),t(" in the dialog")])],-1),Zt=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,"This action is permanent and can not be undone. Please proceed with caution.")],-1),nl={setup($t,{expose:s}){const o={title:"Data Model",modularExtension:!1};return s({frontmatter:o}),(el,tl)=>{const n=a("router-link"),d=a("DocsWrapper");return c(),r(d,{frontmatter:o},{default:l(()=>[e("div",h,[e("blockquote",null,[e("p",null,[u,i(n,{to:"/docs/app/content-collections/"},{default:l(()=>[f]),_:1}),g,i(n,{to:"/docs/reference/system/fields/"},{default:l(()=>[_]),_:1}),p])]),m,y,v,b,w,T,C,e("ul",null,[F,A,D,k,S,I,M,e("li",null,[N,x,i(n,{to:"/docs/app/content-collections/"},{default:l(()=>[O]),_:1}),P,i(n,{to:"/docs/app/content-items/"},{default:l(()=>[U]),_:1}),j]),e("li",null,[R,K,i(n,{to:"/docs/getting-started/glossary/#title-formatter"},{default:l(()=>[L]),_:1}),q])]),W,H,B,E,V,e("p",null,[z,i(n,{to:"/docs/app/content-collections/"},{default:l(()=>[Y]),_:1}),G,i(n,{to:"/docs/getting-started/glossary/#junction-collections"},{default:l(()=>[J]),_:1}),Q]),X,Z,$,ee,e("p",null,[te,i(n,{to:"/docs/reference/system/activity"},{default:l(()=>[le]),_:1}),ne,i(n,{to:"/docs/reference/system/revisions/"},{default:l(()=>[ie]),_:1}),oe]),ae,se,de,ce,re,he,ue,fe,ge,e("p",null,[_e,i(n,{to:"/docs/app/content-items/"},{default:l(()=>[pe]),_:1}),me]),ye,ve,be,we,Te,Ce,Fe,Ae,e("ul",null,[e("li",null,[De,ke,i(n,{to:"/docs/configuration/data-model/#field"},{default:l(()=>[Se]),_:1}),Ie]),e("li",null,[Me,Ne,i(n,{to:"/docs/getting-started/glossary/#data-type-superset"},{default:l(()=>[xe]),_:1}),Oe]),Pe,Ue,je,Re,Ke,Le]),qe,We,He,e("ul",null,[e("li",null,[i(n,{to:"/docs/configuration/relationships/#many-to-one-m2o"},{default:l(()=>[Be]),_:1})]),e("li",null,[i(n,{to:"/docs/configuration/relationships/#one-to-many-o2m"},{default:l(()=>[Ee]),_:1})]),e("li",null,[i(n,{to:"/docs/configuration/relationships/#many-to-many-m2m"},{default:l(()=>[Ve]),_:1})]),e("li",null,[i(n,{to:"/docs/configuration/relationships/#many-to-many-m2m"},{default:l(()=>[ze]),_:1})]),e("li",null,[i(n,{to:"/docs/configuration/relationships/#translations-o2m"},{default:l(()=>[Ye]),_:1})])]),e("div",Ge,[Je,e("p",null,[i(n,{to:"/docs/configuration/relationships/#perspective-matters"},{default:l(()=>[Qe]),_:1}),Xe])]),Ze,e("ul",null,[$e,et,tt,lt,e("li",null,[nt,it,i(n,{to:"/docs/getting-started/glossary/#title-formatter"},{default:l(()=>[ot]),_:1}),at])]),st,dt,ct,rt,ht,ut,ft,e("ul",null,[gt,e("li",null,[_t,pt,i(n,{to:"/docs/configuration/filter-rules"},{default:l(()=>[mt]),_:1}),yt]),vt,bt,wt]),Tt,Ct,Ft,e("p",null,[At,Dt,kt,St,It,Mt,Nt,xt,Ot,i(n,{to:"/docs/configuration/relationships/#translations-o2m"},{default:l(()=>[Pt]),_:1}),Ut]),jt,Rt,Kt,Lt,qt,e("ol",null,[Wt,Ht,e("li",null,[Bt,i(n,{to:"/docs/configuration/data-model/#creating-a-field"},{default:l(()=>[Et]),_:1}),Vt])]),zt,Yt,Gt,Jt,Qt,Xt,Zt])]),_:1})}}};export{nl as default};
|
|
1
|
+
import{r as a,p as c,q as r,w as l,B as e,t as i,P as t}from"./vendor.c46e17d6.js";const h={class:"markdown-body"},u=t("The data model describes the structure of your database\u2019s schema using "),f=t("Collections"),g=t(" (database tables) and "),_=t("Fields"),p=t(" (database columns)."),m=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#creating-a-collection"},"Creating a Collection")]),e("li",null,[e("a",{href:"#configuring-a-collection"},"Configuring a Collection")]),e("li",null,[e("a",{href:"#deleting-a-collection"},"Deleting a Collection")]),e("li",null,[e("a",{href:"#adjusting-the-collection-hierarchy"},"Adjusting the Collection Hierarchy")]),e("li",null,[e("a",{href:"#adjusting-the-collection-form"},"Adjusting the Collection Form")]),e("li",null,[e("a",{href:"#creating-a-field-(standard)"},"Creating a Field (Standard)")]),e("li",null,[e("a",{href:"#creating-a-field-(advanced)"},"Creating a Field (Advanced)")]),e("li",null,[e("a",{href:"#creating-translated-multilingual-fields"},"Creating Translated Multilingual Fields")]),e("li",null,[e("a",{href:"#configuring-a-field"},"Configuring a Field")]),e("li",null,[e("a",{href:"#duplicating-a-field"},"Duplicating a Field")]),e("li",null,[e("a",{href:"#deleting-a-field"},"Deleting a Field")])])])],-1),y=e("h2",{id:"creating-a-collection"},[t("Creating a Collection "),e("a",{class:"header-anchor",href:"#creating-a-collection"},"#")],-1),v=e("ol",null,[e("li",null,[t("Click the "),e("strong",null,"Create Collection"),t(" action button in the Data Model header")]),e("li",null,[t("Enter a unique "),e("strong",null,"Collection Name"),t(" to be used as the database table name, API collection key, and App collection name default.")]),e("li",null,[t("Configure the name and type of the "),e("strong",null,"Primary Key"),t(". "),e("ul",null,[e("li",null,"Auto-Incremented Integer"),e("li",null,"Generated UUID"),e("li",null,"Manually Entered String")])]),e("li",null,[t("Optional: Enable and rename any desired "),e("strong",null,"System Fields"),t(". "),e("ul",null,[e("li",null,"Status"),e("li",null,"Sort"),e("li",null,"Created On"),e("li",null,"Created By"),e("li",null,"Updated On"),e("li",null,"Updated By")])]),e("li",null,[t("Click the "),e("strong",null,"Finish Setup"),t(" button")])],-1),b=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Immutable Keys"),e("p",null,"As of now, the key can not be modified after the collections has been created.")],-1),w=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Database Tables"),e("p",null,[t("Keep in mind that a Directus Collection is just a database table. Therefore you can import or create a table directly in the database, and it will automatically appear within Directus. The first time you manage that table, a "),e("code",null,"directus_collections"),t(" record will be created with default values.")])],-1),T=e("h2",{id:"configuring-a-collection"},[t("Configuring a Collection "),e("a",{class:"header-anchor",href:"#configuring-a-collection"},"#")],-1),C=e("p",null,[t("You can configure a collection by clicking on it within "),e("strong",null,"Settings > Data Model"),t(". On this page the following options are available:")],-1),F=e("li",null,[e("strong",null,"Fields & Layout"),t(" \u2014 This manages the fields of this collection, and their form layout. For more information on this configuration, refer to the sections below on Field Management. "),e("ul",null,[e("li",null,[e("a",{href:"#creating-a-field"},"Creating a Field")]),e("li",null,[e("a",{href:"#updating-a-field"},"Updating a Field")]),e("li",null,[e("a",{href:"#deleting-a-field"},"Deleting a Field")]),e("li",null,[e("a",{href:"#duplicating-a-field"},"Duplicating a Field")]),e("li",null,[e("a",{href:"#adjusting-the-collection-form"},"Changing Field Order & Layout")])])],-1),A=e("li",null,[e("strong",null,"Collection Name"),t(" \u2014 This is the key for the collection. It can not be modified, but you can override it with Translations (see field below).")],-1),k=e("li",null,[e("strong",null,"Note"),t(" \u2014 A helpful note that explains the collection\u2019s purpose")],-1),D=e("li",null,[e("strong",null,"Icon"),t(" \u2014 The icon used throughout the App when referencing this collection")],-1),S=e("li",null,[e("strong",null,"Color"),t(" \u2014 A color for the icon, shown in the navigation and its header")],-1),I=e("li",null,[e("strong",null,"Display Template"),t(" \u2014 A Field Template that creates dynamic titles for the collection\u2019s items")],-1),M=e("li",null,[e("strong",null,"Hidden"),t(" \u2014 Toggles if the collection should be globally hidden. Keep in mind that Admin roles can always see all collections.")],-1),N=e("strong",null,"Singleton",-1),x=t(" \u2014 For collections that will only contain a single item (eg: an \u201CAbout Us\u201D form), the "),O=t("Collection Page"),P=t(" will be bypassed, taking users directly to the "),U=t("Item Page"),j=t("."),R=e("strong",null,"Collection Naming Translations",-1),K=t(" \u2014 While the collection key can not be changed (as of now), this option allows translating the collection name into different languages. By default, the platform uses the "),L=t("Title Formatter"),q=t(" to display collection keys as human readable names, but you can also use translations to explicitly rename more technical table keys."),W=e("h3",{id:"archive"},[t("Archive "),e("a",{class:"header-anchor",href:"#archive"},"#")],-1),H=e("p",null,"The archive feature allows you to enable \u201Csoft-delete\u201D within the collection. Archived items are hidden in the App by default, but are still returned normally via the API unless they are filtered out.",-1),B=e("ul",null,[e("li",null,[e("strong",null,"Archive Field"),t(" \u2014 The field that holds the archive value")]),e("li",null,[e("strong",null,"Archive App Filter"),t(" \u2014 Allows users to view archived items")]),e("li",null,[e("strong",null,"Archive Value"),t(" \u2014 The value saved in the Archive Field when archived")]),e("li",null,[e("strong",null,"Unarchive Value"),t(" \u2014 The value saved in the Archive Field when unarchived")])],-1),E=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Automatic Setup"),e("p",null,"When creating a new Collection, you have the option of creating an optional \u201CStatus\u201D field. If you choose to include this field, the collection\u2019s archive settings will automatically be configured for you.")],-1),V=e("h3",{id:"sort"},[t("Sort "),e("a",{class:"header-anchor",href:"#sort"},"#")],-1),z=t("The sort feature enables manual drag-and-drop item reordering within the Directus App. This is typically shown on the "),Y=t("Collection Page"),G=t(", but can also be used for sorting items within "),J=t("Junction Tables"),Q=t(". Configuration is as easy as selecting the appropriate sort field:"),X=e("ul",null,[e("li",null,[e("strong",null,"Sort Field"),t(" \u2014 Choose a field with the "),e("code",null,"integer"),t(" type. You may want to set this field to be \u201Chidden\u201D so it doesn\u2019t show up within the Item Page form.")])],-1),Z=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Automatic Setup"),e("p",null,"When creating a new Collection, you have the option of creating an optional \u201CSort\u201D field. If you choose to include this field, the collection\u2019s sort settings will automatically be configured for you.")],-1),$=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Interface Sorting"),e("p",null,[t("To configure manual sorting within an Interface (eg: M2M, O2M, or M2A), configure as above, but also set the "),e("strong",null,"Sort Field"),t(" on the field\u2019s Relationship pane.")])],-1),ee=e("h3",{id:"accountability"},[t("Accountability "),e("a",{class:"header-anchor",href:"#accountability"},"#")],-1),te=t("By default, the platform tracks all "),le=t("activity"),ne=t(" and "),ie=t("revisions"),oe=t(" for collections. This option allows you to override this, choosing what data is tracked."),ae=e("ul",null,[e("li",null,[e("strong",null,"Activity & Revision Tracking"),t(" \u2014 supports the follow options: "),e("ul",null,[e("li",null,"Track Activity & Revisions"),e("li",null,"Only Track Activity"),e("li",null,"Do Not Track Anything")])])],-1),se=e("h3",{id:"duplication"},[t("Duplication "),e("a",{class:"header-anchor",href:"#duplication"},"#")],-1),de=e("p",null,"The \u201CSave as Copy\u201D option on the Item Page offers a way to effectively duplicate the current item. However, since there may be unique or relational data within this form, it\u2019s important to control exactly what will be copied. This option allows for configuring which parent/relational field values will be copied.",-1),ce=e("h2",{id:"deleting-a-collection"},[t("Deleting a Collection "),e("a",{class:"header-anchor",href:"#deleting-a-collection"},"#")],-1),re=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")]),e("li",null,[t("Click the red "),e("strong",null,"Delete Collection"),t(" action button in the header")]),e("li",null,[t("Confirm this decision by clicking "),e("strong",null,"Delete"),t(" in the dialog")])],-1),he=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,"This action is permanent and can not be undone. Please proceed with caution.")],-1),ue=e("h2",{id:"adjusting-the-collection-hierarchy"},[t("Adjusting the Collection Hierarchy "),e("a",{class:"header-anchor",href:"#adjusting-the-collection-hierarchy"},"#")],-1),fe=e("p",null,"Collections can be organized in several ways.",-1),ge=e("h2",{id:"adjusting-the-collection-form"},[t("Adjusting the Collection Form "),e("a",{class:"header-anchor",href:"#adjusting-the-collection-form"},"#")],-1),_e=t("The "),pe=t("Item Page"),me=t(" displays a custom form for viewing and editing each collection\u2019s fields. This form is highly configurable, with the following field options:"),ye=e("ul",null,[e("li",null,[e("strong",null,"Visibility"),t(" \u2014 Fields can be set to \u201Cvisible\u201D or \u201Chidden\u201D on the form. This is adjusted via the field\u2019s context menu or edit drawer.")]),e("li",null,[e("strong",null,"Width"),t(" \u2014 Fields have three different width options relative to the form/page. This is adjusted via the field\u2019s context menu or edit drawer. "),e("ul",null,[e("li",null,"Half \u2014 The field is shown at half the form width"),e("li",null,"Full \u2014 (Default) The field is shown at the full form width"),e("li",null,"Fill \u2014 The field is shown filling the page width")])]),e("li",null,[e("strong",null,"Sort"),t(" \u2014 Fields can be rearranged via their drag-and-drop handles.")]),e("li",null,[e("strong",null,"Grouping"),t(" \u2014 Fields can be organized within different nested groups that are created using the normal Creating a Field flow. Different style groupings are available for different use-cases.")])],-1),ve=e("h2",{id:"creating-a-field-(standard)"},[t("Creating a Field (Standard) "),e("a",{class:"header-anchor",href:"#creating-a-field-(standard)"},"#")],-1),be=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")]),e("li",null,[t("Under Fields & Layout, click the "),e("strong",null,"Create Field"),t(" button")]),e("li",null,[e("strong",null,"Choose the desired interface"),t(" by clicking on the illustration")]),e("li",null,[t("Add a "),e("strong",null,"Field Key"),t(", which is also used as the default field name")]),e("li",null,[e("strong",null,"Configure the field options"),t(", including the default value, required flag, and interface options")])],-1),we=e("h2",{id:"creating-a-field-(advanced)"},[t("Creating a Field (Advanced) "),e("a",{class:"header-anchor",href:"#creating-a-field-(advanced)"},"#")],-1),Te=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")]),e("li",null,[t("Under Fields & Layout, click the "),e("strong",null,"Create Field in Advanced Mode"),t(" button")]),e("li",null,[e("strong",null,"Choose the field type"),t(", and follow its setup steps below.")])],-1),Ce=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Database Columns"),e("p",null,"Keep in mind that a Directus Field is just a database columns. Therefore you can create a columns directly in the database, and it will automatically appear within Directus using intelligent defaults. You can then enhance the experience further using the following steps.")],-1),Fe=e("h3",{id:"schema"},[t("Schema "),e("a",{class:"header-anchor",href:"#schema"},"#")],-1),Ae=e("p",null,"This pane controls the technical details of the field\u2019s database column.",-1),ke=e("strong",null,"Key",-1),De=t(" \u2014 (Required) The database column name and field\u2019s API key. The key must be unique within its parent Collection. As of now, all keys are sanitized: lowercased, alphanumeric, and with spaces removed. Keys can not be changed once created, however you can use "),Se=t("Field Name Translations"),Ie=t(" to override how it\u2019s displayed in the App."),Me=e("strong",null,"Type",-1),Ne=t(" \u2014 (Required) How the data is saved to the database; See "),xe=t("Directus Data Type Superset"),Oe=t(". This dropdown maybe be limited or even disabled based on your chosen Field category."),Pe=e("li",null,[e("strong",null,"Length"),t(" \u2014 (Only for certain types) For String types this determines the number of characters that can be stored in the database. For Float and Decimal types, this control becomes "),e("strong",null,"Precision & Scale"),t(".")],-1),Ue=e("li",null,[e("strong",null,"On Create"),t(" \u2014 (Only for certain types) For some data types, this option allows you to control what value is saved when an item is created. These values are fallbacks and can be overridden by the App/API. For example, the Timestamp type allows you to \u201CSave Current Date/Time\u201D.")],-1),je=e("li",null,[e("strong",null,"On Update"),t(" \u2014 (Only for certain types) For some data types, this option allows you to control what value is saved when an item is updated. These values are fallbacks and can be overridden by the App/API. For example, the UUID type allows you to \u201CSave Current User ID\u201D.")],-1),Re=e("li",null,[e("strong",null,"Default Value"),t(" \u2014 This is the initial value shown for a field when creating an item in the App. If creating an item via the API, this is the fallback value saved to the database if a field value is not submitted.")],-1),Ke=e("li",null,[e("strong",null,"Allow NULL"),t(" \u2014 Toggles if the database column is nullable. When disabled, a "),e("code",null,"NULL"),t(" value can not be saved to the field\u2019s column.")],-1),Le=e("li",null,[e("strong",null,"Unique"),t(" \u2014 Toggles if the database column\u2019s values must all be unique.")],-1),qe=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Immutable Keys"),e("p",null,"As of now, the key can not be modified after the field has been created.")],-1),We=e("h3",{id:"relationship"},[t("Relationship "),e("a",{class:"header-anchor",href:"#relationship"},"#")],-1),He=e("p",null,"This pane is only shown when configuring relational fields (including images and translations). Depending on the type of relationship, you\u2019ll be presented with one of the following set of options:",-1),Be=t("Many-to-One"),Ee=t("One-to-Many"),Ve=t("Many-to-Many"),ze=t("Many-to-Any"),Ye=t("Translations"),Ge={class:"tip hint"},Je=e("div",{class:"hint-title"},"Corresponding Field",-1),Qe=t("Relationships go both ways"),Xe=t(", so when creating a new relation Field, Directus offers to automatically create the corresponding Field on the related Collection."),Ze=e("h3",{id:"field"},[t("Field "),e("a",{class:"header-anchor",href:"#field"},"#")],-1),$e=e("li",null,[e("strong",null,"Required"),t(" \u2014 Toggles if a value for the Field is required. "),e("ul",null,[e("li",null,[t("Empty strings ("),e("code",null,"''"),t(") and "),e("code",null,"NULL"),t(" are "),e("strong",null,"not"),t(" accepted as a valid value")]),e("li",null,[e("code",null,"0"),t(" and "),e("code",null,"false"),t(" are accepted as a valid value")]),e("li",null,"Default values are accepted as a valid value"),e("li",null,"Permission Presets are accepted as a valid value")])],-1),et=e("li",null,[e("strong",null,"Readonly"),t(" \u2014 (App Only) Sets the field to be disabled.")],-1),tt=e("li",null,[e("strong",null,"Hidden"),t(" \u2014 (App Only) Hides the field in the App form. "),e("ul",null,[e("li",null,"The field is still available in filters and Layout options.")])],-1),lt=e("li",null,[e("strong",null,"Note"),t(" \u2014 (App Only) Displayed below the field in the App form, providing a helpful comment for App users. This note supports markdown.")],-1),nt=e("strong",null,"Field Name Translations",-1),it=t(" \u2014 (App Only) While the field key can not be changed (as of now), this option allows translating the field name into different languages. By default, the platform uses the "),ot=t("Title Formatter"),at=t(" to display field keys as human readable names, but you can also use translations to explicitly rename more technical column keys."),st=e("h3",{id:"interface"},[t("Interface "),e("a",{class:"header-anchor",href:"#interface"},"#")],-1),dt=e("p",null,"This pane includes any customization options that may be defined by the Interface.",-1),ct=e("h3",{id:"display"},[t("Display "),e("a",{class:"header-anchor",href:"#display"},"#")],-1),rt=e("p",null,"This pane includes any customization options that may be defined by the Display.",-1),ht=e("h3",{id:"conditions"},[t("Conditions "),e("a",{class:"header-anchor",href:"#conditions"},"#")],-1),ut=e("p",null,"Conditions allow you to alter the current field\u2019s setup based on the values of other fields in the form. This allows you to show/hide the field, make it readonly, or change the interface options.",-1),ft=e("p",null,[t("Each field can have one or more "),e("em",null,"rules"),t(". Each rule has the following configuration options:")],-1),gt=e("li",null,[e("strong",null,"Name"),t(": The name of the rule. This is only used internally for convenience purposes")],-1),_t=e("strong",null,"Rule",-1),pt=t(": The rule that controls whether or not these conditions are applied. Rule follows the "),mt=t("Filter Rules"),yt=t(" spec"),vt=e("li",null,[e("strong",null,"Readonly"),t(": Whether or not the field is readonly when the condition is matched")],-1),bt=e("li",null,[e("strong",null,"Hidden"),t(": Whether or not the field is hidden when the condition is matched")],-1),wt=e("li",null,[e("strong",null,"Interface Options"),t(": Any additional configuration for the selected interface")],-1),Tt=e("p",null,"These changes to the field are merged onto the base configuration of the field. This means you can have the field hidden by default, and then only toggle the hidden state of the field in the condition.",-1),Ct=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Order Matters"),e("p",null,[t("The conditions are matched in order. The "),e("strong",null,"last"),t(" condition that matches is the one that\u2019s used to apply the changes.")])],-1),Ft=e("h2",{id:"creating-translated-multilingual-fields"},[t("Creating Translated Multilingual Fields "),e("a",{class:"header-anchor",href:"#creating-translated-multilingual-fields"},"#")],-1),At=t("While you could create individual fields for each translation, such as "),kt=e("code",null,"title_english",-1),Dt=t(", "),St=e("code",null,"title_german",-1),It=t(", "),Mt=e("code",null,"title_french",-1),Nt=t(", and so on, this is not easily extensible, and creates a less than ideal form layout. Instead, you can use the Directus "),xt=e("em",null,"relational",-1),Ot=t(),Pt=t("Translations O2M"),Ut=t(" interface. This uses a separate collection to store an endless number of translations, and a separate collection of languages that can easily be added to without having to change the schema."),jt=e("p",null,"Let\u2019s take a look at a basic example for \u201CArticles\u201D:",-1),Rt=e("ul",null,[e("li",null,[e("strong",null,[e("code",null,"articles"),t(" Collection")]),e("ul",null,[e("li",null,[e("code",null,"id"),t(" \u2014 (Primary Key)")]),e("li",null,[e("code",null,"author"),t(" \u2014 Field that is not translated")]),e("li",null,[e("code",null,"date_published"),t(" \u2014 Field that is not translated")]),e("li",null,[e("code",null,"translations"),t(" \u2014 A O2M relational field to "),e("code",null,"article_translations")])])]),e("li",null,[e("strong",null,[e("code",null,"article_translations"),t(" Collection")]),e("ul",null,[e("li",null,[e("code",null,"id"),t(" \u2014 (Primary Key)")]),e("li",null,[e("code",null,"article"),t(" \u2014 The key of the article this belongs to")]),e("li",null,[e("code",null,"language"),t(" \u2014 The language key of this translation")]),e("li",null,[e("code",null,"title"),t(" \u2014 The translated Article Title")]),e("li",null,[e("code",null,"text"),t(" \u2014 The translated Article Text")])])]),e("li",null,[e("strong",null,[e("code",null,"languages"),t(" Collection")]),e("ul",null,[e("li",null,[e("code",null,"language_code"),t(" \u2014 (Primary Key) eg: \u201Cen-US\u201D")]),e("li",null,[e("code",null,"name"),t(" \u2014 The language name, eg: \u201CEnglish\u201D")])])])],-1),Kt=e("p",null,[t("As you can see above, you add "),e("strong",null,"non-translated"),t(" fields, such as the "),e("code",null,"author"),t(" and "),e("code",null,"publish_date"),t(", to the parent collection. Any "),e("strong",null,"multilingual"),t(" fields, such as Title or Text, should be added directly to the Translation Collection. You can not simply drag or shift fields from the parent to translations, they must be "),e("em",null,"created"),t(" in the correct collection.")],-1),Lt=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Translating Parent Fields"),e("p",null,[t("To make an existing parent field translatable, you can choose \u201CDuplicate Field\u201D from its context menu, move it to the translation collection, and then delete the parent field. However, be aware that this does "),e("strong",null,"not"),t(" maintain any existing field values in the process.")])],-1),qt=e("h2",{id:"configuring-a-field"},[t("Configuring a Field "),e("a",{class:"header-anchor",href:"#configuring-a-field"},"#")],-1),Wt=e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")],-1),Ht=e("li",null,"Click the field you want to update",-1),Bt=t("Make any desired updates referencing the "),Et=t("Creating a Field"),Vt=t(" docs above"),zt=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"System Fields"),e("p",null,[t("While all out-of-the-box system fields are locked from editing or deleting, you are able to create new fields within the system collections. To get started, expand System Collections from the bottom of "),e("strong",null,"Settings > Data Model"),t(".")])],-1),Yt=e("h2",{id:"duplicating-a-field"},[t("Duplicating a Field "),e("a",{class:"header-anchor",href:"#duplicating-a-field"},"#")],-1),Gt=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")]),e("li",null,[t("Click the "),e("strong",null,"More Options"),t(" icon for the field you want to duplicate")]),e("li",null,[t("Click the "),e("strong",null,"Duplicate Field"),t(" option")])],-1),Jt=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Relational and Primary Key Fields"),e("p",null,"It is not currently possible to duplicate relational fields or a collection\u2019s primary key.")],-1),Qt=e("h2",{id:"deleting-a-field"},[t("Deleting a Field "),e("a",{class:"header-anchor",href:"#deleting-a-field"},"#")],-1),Xt=e("ol",null,[e("li",null,[t("Navigate to "),e("strong",null,"Settings > Data Model > [Collection Name]")]),e("li",null,[t("Click the "),e("strong",null,"More Options"),t(" icon for the field you want to delete")]),e("li",null,[t("Click the "),e("strong",null,"Delete Field"),t(" option")]),e("li",null,[t("Confirm this decision by clicking "),e("strong",null,"Delete"),t(" in the dialog")])],-1),Zt=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,"This action is permanent and can not be undone. Please proceed with caution.")],-1),nl={setup($t,{expose:s}){const o={title:"Data Model",modularExtension:!1};return s({frontmatter:o}),(el,tl)=>{const n=a("router-link"),d=a("DocsWrapper");return c(),r(d,{frontmatter:o},{default:l(()=>[e("div",h,[e("blockquote",null,[e("p",null,[u,i(n,{to:"/docs/app/content-collections/"},{default:l(()=>[f]),_:1}),g,i(n,{to:"/docs/reference/system/fields/"},{default:l(()=>[_]),_:1}),p])]),m,y,v,b,w,T,C,e("ul",null,[F,A,k,D,S,I,M,e("li",null,[N,x,i(n,{to:"/docs/app/content-collections/"},{default:l(()=>[O]),_:1}),P,i(n,{to:"/docs/app/content-items/"},{default:l(()=>[U]),_:1}),j]),e("li",null,[R,K,i(n,{to:"/docs/getting-started/glossary/#title-formatter"},{default:l(()=>[L]),_:1}),q])]),W,H,B,E,V,e("p",null,[z,i(n,{to:"/docs/app/content-collections/"},{default:l(()=>[Y]),_:1}),G,i(n,{to:"/docs/getting-started/glossary/#junction-collections"},{default:l(()=>[J]),_:1}),Q]),X,Z,$,ee,e("p",null,[te,i(n,{to:"/docs/reference/system/activity"},{default:l(()=>[le]),_:1}),ne,i(n,{to:"/docs/reference/system/revisions/"},{default:l(()=>[ie]),_:1}),oe]),ae,se,de,ce,re,he,ue,fe,ge,e("p",null,[_e,i(n,{to:"/docs/app/content-items/"},{default:l(()=>[pe]),_:1}),me]),ye,ve,be,we,Te,Ce,Fe,Ae,e("ul",null,[e("li",null,[ke,De,i(n,{to:"/docs/configuration/data-model/#field"},{default:l(()=>[Se]),_:1}),Ie]),e("li",null,[Me,Ne,i(n,{to:"/docs/getting-started/glossary/#data-type-superset"},{default:l(()=>[xe]),_:1}),Oe]),Pe,Ue,je,Re,Ke,Le]),qe,We,He,e("ul",null,[e("li",null,[i(n,{to:"/docs/configuration/relationships/#many-to-one-m2o"},{default:l(()=>[Be]),_:1})]),e("li",null,[i(n,{to:"/docs/configuration/relationships/#one-to-many-o2m"},{default:l(()=>[Ee]),_:1})]),e("li",null,[i(n,{to:"/docs/configuration/relationships/#many-to-many-m2m"},{default:l(()=>[Ve]),_:1})]),e("li",null,[i(n,{to:"/docs/configuration/relationships/#many-to-many-m2m"},{default:l(()=>[ze]),_:1})]),e("li",null,[i(n,{to:"/docs/configuration/relationships/#translations-o2m"},{default:l(()=>[Ye]),_:1})])]),e("div",Ge,[Je,e("p",null,[i(n,{to:"/docs/configuration/relationships/#perspective-matters"},{default:l(()=>[Qe]),_:1}),Xe])]),Ze,e("ul",null,[$e,et,tt,lt,e("li",null,[nt,it,i(n,{to:"/docs/getting-started/glossary/#title-formatter"},{default:l(()=>[ot]),_:1}),at])]),st,dt,ct,rt,ht,ut,ft,e("ul",null,[gt,e("li",null,[_t,pt,i(n,{to:"/docs/configuration/filter-rules"},{default:l(()=>[mt]),_:1}),yt]),vt,bt,wt]),Tt,Ct,Ft,e("p",null,[At,kt,Dt,St,It,Mt,Nt,xt,Ot,i(n,{to:"/docs/configuration/relationships/#translations-o2m"},{default:l(()=>[Pt]),_:1}),Ut]),jt,Rt,Kt,Lt,qt,e("ol",null,[Wt,Ht,e("li",null,[Bt,i(n,{to:"/docs/configuration/data-model/#creating-a-field"},{default:l(()=>[Et]),_:1}),Vt])]),zt,Yt,Gt,Jt,Qt,Xt,Zt])]),_:1})}}};export{nl as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bG as p}from"./vendor.c46e17d6.js";function u(o,f){return f.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(t){if(t!=="default"&&!(t in o)){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})}),Object.freeze(o)}var i={exports:{}};(function(o,f){(function(e){e(p.exports)})(function(e){e.defineMode("diff",function(){var t={"+":"positive","-":"negative","@":"meta"};return{token:function(r){var n=r.string.search(/[\t ]+?$/);if(!r.sol()||n===0)return r.skipToEnd(),("error "+(t[r.string.charAt(0)]||"")).replace(/ $/,"");var c=t[r.peek()]||r.skipToEnd();return n===-1?r.skipToEnd():r.pos=n,c}}}),e.defineMIME("text/x-diff","diff")})})();var d=i.exports,s=Object.freeze(u({__proto__:null,[Symbol.toStringTag]:"Module",default:d},[i.exports]));export{s as d};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{r,p as d,q as l,w as a,B as e,t as n,P as t}from"./vendor.c46e17d6.js";const u={class:"markdown-body"},h=e("h2",{id:"1.-setup-a-repo-on-github"},[t("1. Setup a repo on GitHub "),e("a",{class:"header-anchor",href:"#1.-setup-a-repo-on-github"},"#")],-1),p=t("See the doc on "),_=t("installing Directus manually"),f=t(" to learn how to configure this repo."),m=e("h2",{id:"2.-sign-up-for-a-digitalocean-account"},[t("2. Sign up for a DigitalOcean account "),e("a",{class:"header-anchor",href:"#2.-sign-up-for-a-digitalocean-account"},"#")],-1),g=e("p",null,[t("Create your DigitalOcean account \u2014 "),e("a",{href:"https://m.do.co/c/4c0b6062c16e",target:"_blank",rel:"noopener noreferrer"},"get $100 of free credit"),t(" by using our referral link.")],-1),b=e("h2",{id:"3.-create-a-managed-database-instance"},[t("3. Create a Managed Database instance "),e("a",{class:"header-anchor",href:"#3.-create-a-managed-database-instance"},"#")],-1),v=e("p",null,"We recommend using Postgres 12. The exact size and need for a replica depends on your usage and project requirements.",-1),y=e("h2",{id:"4.-create-a-new-app-using-your-previously-created-repo"},[t("4. Create a new App using your previously created repo "),e("a",{class:"header-anchor",href:"#4.-create-a-new-app-using-your-previously-created-repo"},"#")],-1),w=e("p",null,"Make sure to select the database you created in step 2 during the configuration wizard.",-1),D=e("h2",{id:"5.-setup-the-build-step"},[t("5. Setup the build-step "),e("a",{class:"header-anchor",href:"#5.-setup-the-build-step"},"#")],-1),S=t("While Directus itself doesn\u2019t have to be built from source in order to use it on App Platform, we do recommend adding "),C=e("code",null,"npx directus bootstrap",-1),k=t(" as the \u201Cbuild\u201D step for DigitalOcean. This will automatically provision the database if it\u2019s empty, and migrate it to the latest version in case of upgrades. See "),x=t("Command Line Interface"),O=t(" for more information."),T=e("h2",{id:"6.-configure-the-environment-variables"},[t("6. Configure the environment variables "),e("a",{class:"header-anchor",href:"#6.-configure-the-environment-variables"},"#")],-1),A=t("See "),B=t("Environment Variables"),E=t(" for all available environment variables."),L=e("p",null,"DigitalOcean requires you to use SSL connections to managed databases. DigitalOcean provides a bunch of aliases to often used database properties that can be injected when the database is a component of your app. To enable SSL connections, set the following environment variables:",-1),N=e("pre",null,[e("code",null,`DB_SSL__REJECT_UNAUTHORIZED=true
|
|
2
|
+
DB_SSL__CA=\${my-database-component-name.CA_CERT}
|
|
3
|
+
`)],-1),P=e("div",{class:"warning hint"},[e("p",null,[t("Make sure to replace "),e("code",null,"my-database-component-name"),t(" with your actual database component name in the above env vars")])],-1),M={setup(V,{expose:i}){const s={title:"DigitalOcean App Platform",modularExtension:!1};return i({frontmatter:s}),(W,j)=>{const o=r("router-link"),c=r("DocsWrapper");return d(),l(c,{frontmatter:s},{default:a(()=>[e("div",u,[h,e("p",null,[p,n(o,{to:"/docs/getting-started/installation/manual/"},{default:a(()=>[_]),_:1}),f]),m,g,b,v,y,w,D,e("p",null,[S,C,k,n(o,{to:"/docs/getting-started/installation/cli/"},{default:a(()=>[x]),_:1}),O]),T,e("p",null,[A,n(o,{to:"/docs/configuration/config-options/#general"},{default:a(()=>[B]),_:1}),E]),L,N,P])]),_:1})}}};export{M as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as a,p as d,q as r,w as t,B as s,t as o,P as e}from"./vendor.c46e17d6.js";const p={class:"markdown-body"},u=e("Displays are small inline components that allow you to create new ways of viewing field values throughout the App. "),h=e("Learn more about Displays"),_=e("."),y=s("h2",{id:"1.-setup-the-boilerplate"},[e("1. Setup the Boilerplate "),s("a",{class:"header-anchor",href:"#1.-setup-the-boilerplate"},"#")],-1),f=s("p",null,"Every display is a standalone \u201Cpackage\u201D that contains at least a metadata file and a Vue component. We recommend using the following file structure:",-1),m=s("pre",null,[s("code",null,`src/
|
|
2
2
|
index.js
|
|
3
3
|
display.vue
|
|
4
4
|
`)],-1),g=s("h3",{id:"src%2Findex.js"},[e("src/index.js "),s("a",{class:"header-anchor",href:"#src%2Findex.js"},"#")],-1),j=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"import"),e(" DisplayComponent "),s("span",{class:"hljs-keyword"},"from"),e(),s("span",{class:"hljs-string"},"'./display.vue'"),e(`;
|
|
@@ -11,7 +11,7 @@ import{p as a,q as d,C as r,v as t,M as s,u as o,D as e}from"./vendor.299bc11c.j
|
|
|
11
11
|
`),s("span",{class:"hljs-attr"},"component"),e(`: DisplayComponent,
|
|
12
12
|
`),s("span",{class:"hljs-attr"},"types"),e(": ["),s("span",{class:"hljs-string"},"'string'"),e(`],
|
|
13
13
|
};
|
|
14
|
-
`)])],-1),b=s("li",null,[s("code",null,"id"),e(" \u2014 The unique key for this display. It is good practice to scope proprietary displays with an author prefix.")],-1),x=s("li",null,[s("code",null,"name"),e(" \u2014 The human-readable name for this display.")],-1),v=s("li",null,[s("code",null,"description"),e(" \u2014 A short description (<80 characters) of this display shown in the App.")],-1),k=s("code",null,"icon",-1),w=e(" \u2014 An icon name from the "),T=e("material icon set"),D=e(", or the extended list of Directus custom icons."),C=s("li",null,[s("code",null,"component"),e(" \u2014 A reference to your Vue component.")],-1),V=s("code",null,"types",-1),A=e(" \u2014 A CSV of supported "),S=e("types"),F=e("."),L=s("div",{class:"tip hint"},[s("p",null,[s("a",{href:"https://github.com/directus/directus/blob/20355fee5eba514dd75565f60269311187010c66/app/src/displays/types.ts#L24-L34",target:"_blank",rel:"noopener noreferrer"},"See the TypeScript definition"),e(" for more info on what can go into this object.")])],-1),
|
|
14
|
+
`)])],-1),b=s("li",null,[s("code",null,"id"),e(" \u2014 The unique key for this display. It is good practice to scope proprietary displays with an author prefix.")],-1),x=s("li",null,[s("code",null,"name"),e(" \u2014 The human-readable name for this display.")],-1),v=s("li",null,[s("code",null,"description"),e(" \u2014 A short description (<80 characters) of this display shown in the App.")],-1),k=s("code",null,"icon",-1),w=e(" \u2014 An icon name from the "),T=e("material icon set"),D=e(", or the extended list of Directus custom icons."),C=s("li",null,[s("code",null,"component"),e(" \u2014 A reference to your Vue component.")],-1),V=s("code",null,"types",-1),A=e(" \u2014 A CSV of supported "),S=e("types"),F=e("."),L=s("div",{class:"tip hint"},[s("p",null,[s("a",{href:"https://github.com/directus/directus/blob/20355fee5eba514dd75565f60269311187010c66/app/src/displays/types.ts#L24-L34",target:"_blank",rel:"noopener noreferrer"},"See the TypeScript definition"),e(" for more info on what can go into this object.")])],-1),B=s("h3",{id:"src%2Fdisplay.vue"},[e("src/display.vue "),s("a",{class:"header-anchor",href:"#src%2Fdisplay.vue"},"#")],-1),I=s("pre",null,[s("code",{class:"language-vue"},`<template>
|
|
15
15
|
<div>Value: {{ value }}</div>
|
|
16
16
|
</template>
|
|
17
17
|
|
|
@@ -32,7 +32,7 @@ export default {
|
|
|
32
32
|
},
|
|
33
33
|
`),s("span",{class:"hljs-attr"},"types"),e(": ["),s("span",{class:"hljs-string"},"'string'"),e(`],
|
|
34
34
|
};
|
|
35
|
-
`)])],-1),z=s("h2",{id:"2.-install-dependencies"},[e("2. Install Dependencies "),s("a",{class:"header-anchor",href:"#2.-install-dependencies"},"#")],-1),
|
|
35
|
+
`)])],-1),z=s("h2",{id:"2.-install-dependencies"},[e("2. Install Dependencies "),s("a",{class:"header-anchor",href:"#2.-install-dependencies"},"#")],-1),P=s("p",null,"Set up a package.json file by running:",-1),R=s("pre",null,[s("code",{class:"language-bash"},`npm init -y
|
|
36
36
|
`)],-1),Y=s("p",null,[e("To be read by the Admin App, your custom display\u2019s Vue component must first be bundled into a single "),s("code",null,"index.js"),e(" file. We recommend bundling your code using the directus-extension CLI from our "),s("code",null,"@directus/extensions-sdk"),e(" package. The CLI internally uses a Rollup configuration tailored specifically to bundling Directus extensions. To install the Extension SDK, run this command:")],-1),G=s("pre",null,[s("code",{class:"language-bash"},`npm i -D @directus/extensions-sdk
|
|
37
37
|
`)],-1),H=s("p",null,[e("For the directus-extension CLI to recognize the extension type, the input path and the output path, add this field to the root of the "),s("code",null,"package.json"),e(" file:")],-1),J=s("pre",null,[s("code",{class:"language-json"},`"directus:extension": {
|
|
38
38
|
"type": "display",
|
|
@@ -41,5 +41,5 @@ export default {
|
|
|
41
41
|
"host": "^9.0.0-rc.87",
|
|
42
42
|
"hidden": false
|
|
43
43
|
}
|
|
44
|
-
`)],-1),
|
|
45
|
-
`)],-1),Z=s("p",null,[e("Finally, move the output from your display\u2019s "),s("code",null,"dist"),e(" folder into your project\u2019s "),s("code",null,"/extensions/displays/my-custom-display"),e(" folder. Keep in mind that the extensions directory is configurable within your env file, and may be located elsewhere.")],-1),ns={setup($,{expose:i}){const l={title:"Custom Displays",modularExtension:!0};return i({frontmatter:l}),(ss,es)=>{const n=a("router-link"),c=a("DocsWrapper");return d(),r(c,{frontmatter:l},{default:t(()=>[s("div",p,[s("blockquote",null,[s("p",null,[u,o(n,{to:"/docs/getting-started/glossary/#displays"},{default:t(()=>[h]),_:1}),_])]),y,f,m,g,j,s("ul",null,[b,x,v,s("li",null,[k,w,o(n,{to:"/docs/getting-started/glossary/#material-icons"},{default:t(()=>[T]),_:1}),D]),C,s("li",null,[V,A,o(n,{to:"/docs/getting-started/glossary/#types"},{default:t(()=>[S]),_:1}),F])]),L,I,
|
|
44
|
+
`)],-1),M=s("h2",{id:"3.-develop-your-custom-display"},[e("3. Develop Your Custom Display "),s("a",{class:"header-anchor",href:"#3.-develop-your-custom-display"},"#")],-1),O=s("p",null,"The display itself is simply a function or a Vue component, providing a blank canvas for creating anything you need.",-1),Q=s("h2",{id:"4.-build-and-deploy"},[e("4. Build and Deploy "),s("a",{class:"header-anchor",href:"#4.-build-and-deploy"},"#")],-1),U=s("p",null,"To build the display for use within Directus, run:",-1),X=s("pre",null,[s("code",{class:"language-bash"},`npx directus-extension build
|
|
45
|
+
`)],-1),Z=s("p",null,[e("Finally, move the output from your display\u2019s "),s("code",null,"dist"),e(" folder into your project\u2019s "),s("code",null,"/extensions/displays/my-custom-display"),e(" folder. Keep in mind that the extensions directory is configurable within your env file, and may be located elsewhere.")],-1),ns={setup($,{expose:i}){const l={title:"Custom Displays",modularExtension:!0};return i({frontmatter:l}),(ss,es)=>{const n=a("router-link"),c=a("DocsWrapper");return d(),r(c,{frontmatter:l},{default:t(()=>[s("div",p,[s("blockquote",null,[s("p",null,[u,o(n,{to:"/docs/getting-started/glossary/#displays"},{default:t(()=>[h]),_:1}),_])]),y,f,m,g,j,s("ul",null,[b,x,v,s("li",null,[k,w,o(n,{to:"/docs/getting-started/glossary/#material-icons"},{default:t(()=>[T]),_:1}),D]),C,s("li",null,[V,A,o(n,{to:"/docs/getting-started/glossary/#types"},{default:t(()=>[S]),_:1}),F])]),L,B,I,W,q,E,N,K,z,P,R,Y,G,H,J,M,O,Q,U,X,Z])]),_:1})}}};export{ns as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bG as y}from"./vendor.c46e17d6.js";import{a as s}from"./htmlmixed.0714fe9c.js";import{o as x}from"./overlay.17bcab08.js";function j(f,d){return d.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in f)){var t=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(f,i,t.get?t:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(f)}var m={exports:{}};(function(f,d){(function(n){n(y.exports,s.exports,x.exports)})(function(n){n.defineMode("django:inner",function(){var i=["block","endblock","for","endfor","true","false","filter","endfilter","loop","none","self","super","if","elif","endif","as","else","import","with","endwith","without","context","ifequal","endifequal","ifnotequal","endifnotequal","extends","include","load","comment","endcomment","empty","url","static","trans","blocktrans","endblocktrans","now","regroup","lorem","ifchanged","endifchanged","firstof","debug","cycle","csrf_token","autoescape","endautoescape","spaceless","endspaceless","ssi","templatetag","verbatim","endverbatim","widthratio"],t=["add","addslashes","capfirst","center","cut","date","default","default_if_none","dictsort","dictsortreversed","divisibleby","escape","escapejs","filesizeformat","first","floatformat","force_escape","get_digit","iriencode","join","last","length","length_is","linebreaks","linebreaksbr","linenumbers","ljust","lower","make_list","phone2numeric","pluralize","pprint","random","removetags","rjust","safe","safeseq","slice","slugify","stringformat","striptags","time","timesince","timeuntil","title","truncatechars","truncatechars_html","truncatewords","truncatewords_html","unordered_list","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap","yesno"],o=["==","!=","<",">","<=",">="],p=["in","not","or","and"];i=new RegExp("^\\b("+i.join("|")+")\\b"),t=new RegExp("^\\b("+t.join("|")+")\\b"),o=new RegExp("^\\b("+o.join("|")+")\\b"),p=new RegExp("^\\b("+p.join("|")+")\\b");function a(r,e){if(r.match("{{"))return e.tokenize=h,"tag";if(r.match("{%"))return e.tokenize=w,"tag";if(r.match("{#"))return e.tokenize=b,"comment";for(;r.next()!=null&&!r.match(/\{[{%#]/,!1););return null}function c(r,e){return function(l,u){if(!u.escapeNext&&l.eat(r))u.tokenize=e;else{u.escapeNext&&(u.escapeNext=!1);var k=l.next();k=="\\"&&(u.escapeNext=!0)}return"string"}}function h(r,e){if(e.waitDot){if(e.waitDot=!1,r.peek()!=".")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("."))return e.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(e.waitPipe){if(e.waitPipe=!1,r.peek()!="|")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("|"))return e.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}return e.waitProperty&&(e.waitProperty=!1,r.match(/\b(\w+)\b/))?(e.waitDot=!0,e.waitPipe=!0,"property"):e.waitFilter&&(e.waitFilter=!1,r.match(t))?"variable-2":r.eatSpace()?(e.waitProperty=!1,"null"):r.match(/\b\d+(\.\d+)?\b/)?"number":r.match("'")?(e.tokenize=c("'",e.tokenize),"string"):r.match('"')?(e.tokenize=c('"',e.tokenize),"string"):r.match(/\b(\w+)\b/)&&!e.foundVariable?(e.waitDot=!0,e.waitPipe=!0,"variable"):r.match("}}")?(e.waitProperty=null,e.waitFilter=null,e.waitDot=null,e.waitPipe=null,e.tokenize=a,"tag"):(r.next(),"null")}function w(r,e){if(e.waitDot){if(e.waitDot=!1,r.peek()!=".")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("."))return e.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(e.waitPipe){if(e.waitPipe=!1,r.peek()!="|")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("|"))return e.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}if(e.waitProperty&&(e.waitProperty=!1,r.match(/\b(\w+)\b/)))return e.waitDot=!0,e.waitPipe=!0,"property";if(e.waitFilter&&(e.waitFilter=!1,r.match(t)))return"variable-2";if(r.eatSpace())return e.waitProperty=!1,"null";if(r.match(/\b\d+(\.\d+)?\b/))return"number";if(r.match("'"))return e.tokenize=c("'",e.tokenize),"string";if(r.match('"'))return e.tokenize=c('"',e.tokenize),"string";if(r.match(o))return"operator";if(r.match(p))return"keyword";var l=r.match(i);return l?(l[0]=="comment"&&(e.blockCommentTag=!0),"keyword"):r.match(/\b(\w+)\b/)?(e.waitDot=!0,e.waitPipe=!0,"variable"):r.match("%}")?(e.waitProperty=null,e.waitFilter=null,e.waitDot=null,e.waitPipe=null,e.blockCommentTag?(e.blockCommentTag=!1,e.tokenize=g):e.tokenize=a,"tag"):(r.next(),"null")}function b(r,e){return r.match(/^.*?#\}/)?e.tokenize=a:r.skipToEnd(),"comment"}function g(r,e){return r.match(/\{%\s*endcomment\s*%\}/,!1)?(e.tokenize=w,r.match("{%"),"tag"):(r.next(),"comment")}return{startState:function(){return{tokenize:a}},token:function(r,e){return e.tokenize(r,e)},blockCommentStart:"{% comment %}",blockCommentEnd:"{% endcomment %}"}}),n.defineMode("django",function(i){var t=n.getMode(i,"text/html"),o=n.getMode(i,"django:inner");return n.overlayMode(t,o)}),n.defineMIME("text/x-django","django")})})();var z=m.exports,E=Object.freeze(j({__proto__:null,[Symbol.toStringTag]:"Module",default:z},[m.exports]));export{E as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as t,p as r,q as c,w as o,B as s,P as e}from"./vendor.c46e17d6.js";const i=s("div",{class:"markdown-body"},[s("p",null,[e("Directus is published to both "),s("a",{href:"https://hub.docker.com/r/directus/directus",target:"_blank",rel:"noopener noreferrer"},"Docker Hub"),e(" and "),s("a",{href:"https://github.com/directus/directus/pkgs/container/directus",target:"_blank",rel:"noopener noreferrer"},"GitHub Packages"),e(" under "),s("code",null,"directus/directus"),e(". To use the latest Directus image from Docker Hub, run:")]),s("pre",null,[s("code",{class:"language-bash"},[s("span",{class:"hljs-comment"},"# Make sure to change sensitive values (KEY, SECRET, ...) in production"),e(`
|
|
2
2
|
docker run \\
|
|
3
3
|
-p 8055:8055 \\
|
|
4
4
|
-e KEY=255d861b-5ea1-5996-9aa3-922530ec40b1 \\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bG as m}from"./vendor.c46e17d6.js";import{s as d}from"./simple.a61e3410.js";function f(t,o){return o.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(r){if(r!=="default"&&!(r in t)){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})}),Object.freeze(t)}var u={exports:{}};(function(t,o){(function(e){e(m.exports,d.exports)})(function(e){var r="from",n=new RegExp("^(\\s*)\\b("+r+")\\b","i"),s=["run","cmd","entrypoint","shell"],i=new RegExp("^(\\s*)("+s.join("|")+")(\\s+\\[)","i"),l="expose",g=new RegExp("^(\\s*)("+l+")(\\s+)","i"),a=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],k=[r,l].concat(s).concat(a),x="("+k.join("|")+")",c=new RegExp("^(\\s*)"+x+"(\\s*)(#.*)?$","i"),p=new RegExp("^(\\s*)"+x+"(\\s+)","i");e.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:n,token:[null,"keyword"],sol:!0,next:"from"},{regex:c,token:[null,"keyword",null,"error"],sol:!0},{regex:i,token:[null,"keyword",null],sol:!0,next:"array"},{regex:g,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:p,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),e.defineMIME("text/x-dockerfile","dockerfile")})})();var y=u.exports,h=Object.freeze(f({__proto__:null,[Symbol.toStringTag]:"Module",default:y},[u.exports]));export{h as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as i,p as s,q as r,w as a,B as e,P as t}from"./vendor.c46e17d6.js";const c=e("div",{class:"markdown-body"},[e("blockquote",null,[e("p",null,"An internal set of guides and docs for the installed version of the platform, including an API Reference that is dynamically tailored to your custom schema.")]),e("p",null,[t("Docs for the latest version of the platform are available via "),e("a",{href:"https://docs.directus.io",target:"_blank",rel:"noopener noreferrer"},"https://docs.directus.io"),t(", and "),e("em",null,"version-specific"),t(" docs are included within the App itself as a core module. Both sets come from the same source of markdown files on "),e("a",{href:"https://github.com/directus/directus",target:"_blank",rel:"noopener noreferrer"},"GitHub"),t(", making them easy for anyone to work with.")]),e("p",null,[t("While the public documentation is organized in six main sections, the in-app docs are limited to the following specific pages within "),e("strong",null,"Getting Started"),t(" and the "),e("strong",null,"App Guide"),t(".")]),e("ul",null,[e("li",null,[e("strong",null,"App Overview"),t(" \u2014 A high-level overview of the main app components")]),e("li",null,[e("strong",null,"Content Collections"),t(" \u2014 Covers the functionality of the Content Module\u2019s Collection Page")]),e("li",null,[e("strong",null,"Content Items"),t(" \u2014 Covers the functionality of the Content Module\u2019s Item Page")]),e("li",null,[e("strong",null,"Users Directory"),t(" \u2014 Covers the functionality of the User Directory Module")]),e("li",null,[e("strong",null,"File Library"),t(" \u2014 Covers the functionality of the File Library Module")]),e("li",null,[e("strong",null,"Insights"),t(" \u2014 Covers the functionality of the Insights Module")]),e("li",null,[e("strong",null,"Documentation"),t(" \u2014 This is what you\u2019re reading right now!")]),e("li",null,[e("strong",null,"Settings"),t(" \u2014 An overview of what Administrators have access to within the Settings Module")]),e("li",null,[e("strong",null,"Backing Directus"),t(" \u2014 Details on helping support the free and open-source Directus ecosystem")]),e("li",null,[e("strong",null,"Glossary"),t(" \u2014 A helpful dictionary of terms specific to this platform")])]),e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"In-App Exclusions"),e("p",null,"Docs included within the app intentionally exclude certain pages, such as \u201CInstallation\u201D, as these sections are not relevant to running instances of the platform. Additionally, some sections may be hidden based on your role as a user versus a more technical administrator.")])],-1),f={setup(u,{expose:o}){const n={title:"Documentation",modularExtension:!1};return o({frontmatter:n}),(h,d)=>{const l=i("DocsWrapper");return s(),r(l,{frontmatter:n},{default:a(()=>[c]),_:1})}}};export{f as default};
|