@directus/app 9.20.4 → 9.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/@directus_extensions-sdk.7480601b.entry.js +1 -0
- package/dist/assets/{accounts.8d02a534.js → accounts.00ff05b9.js} +1 -1
- package/dist/assets/active-line.cc9189df.js +1 -0
- package/dist/assets/{activity-log.957853bb.js → activity-log.c1a2e5a3.js} +1 -1
- package/dist/assets/{activity.58bbe1c2.js → activity.7112cbee.js} +1 -1
- package/dist/assets/add-a-recipe.51bd348b.js +1 -0
- package/dist/assets/apl.1621a749.js +1 -0
- package/dist/assets/ar-SA.9ddb3ade.js +2 -0
- package/dist/assets/{architecture.0ded5b28.js → architecture.b7c26a3b.js} +1 -1
- package/dist/assets/asciiarmor.e1fbcb0f.js +1 -0
- package/dist/assets/asn.1.2c8391be.js +1 -0
- package/dist/assets/asterisk.96d854f7.js +1 -0
- package/dist/assets/{authentication.5b7d5fa7.js → authentication.27557f4f.js} +5 -5
- package/dist/assets/autorefresh.1aa0c08c.js +1 -0
- package/dist/assets/{aws.890dfda5.js → aws.ea312e0b.js} +1 -1
- package/dist/assets/{backing-directus.7f54a4af.js → backing-directus.890b9c33.js} +1 -1
- package/dist/assets/basic-workflows.8f3fd328.js +1 -0
- package/dist/assets/{bn-IN.7fa1e9d9.js → bn-IN.598e11ba.js} +1 -1
- package/dist/assets/brainfuck.952f0867.js +1 -0
- package/dist/assets/build-a-content-hierarchy.41daeccc.js +97 -0
- package/dist/assets/{cli.bf0b2442.js → cli.45e9e9c9.js} +2 -2
- package/dist/assets/{cli.4e995657.js → cli.5531b0c6.js} +4 -4
- package/dist/assets/clike.f871e0ce.js +1 -0
- package/dist/assets/clojure.dfb2a0aa.js +1 -0
- package/dist/assets/{cloudron.0a16f34b.js → cloudron.258380cb.js} +1 -1
- package/dist/assets/cmake.594f5b32.js +1 -0
- package/dist/assets/cobol.d45d2d27.js +1 -0
- package/dist/assets/{codebase-overview.2ba91a80.js → codebase-overview.91c7de8c.js} +1 -1
- package/dist/assets/coffeescript.4eedbbb9.js +1 -0
- package/dist/assets/{collections.ea858bf6.js → collections.61f6b248.js} +3 -3
- package/dist/assets/{collections.2a61805a.js → collections.7a3b1972.js} +2 -2
- package/dist/assets/{collections.7fa07fe7.js → collections.b4a89731.js} +2 -2
- package/dist/assets/commonlisp.69abac6b.js +1 -0
- package/dist/assets/{conditions.32339903.js → conditions.ef847cae.js} +1 -1
- package/dist/assets/{config-options.53449c2c.js → config-options.86135d5b.js} +12 -12
- package/dist/assets/configure-user-registration.43d439a1.js +1 -0
- package/dist/assets/{content.18716bf7.js → content.62c8fe47.js} +1 -1
- package/dist/assets/{creating-extensions.0a6d6d3b.js → creating-extensions.65b17dfe.js} +3 -3
- package/dist/assets/crystal.bfce7e90.js +1 -0
- package/dist/assets/css.2ea5f0dd.js +1 -0
- package/dist/assets/cypher.a8be90c4.js +4 -0
- package/dist/assets/d.970bc6c0.js +1 -0
- package/dist/assets/dart.c20a75fc.js +1 -0
- package/dist/assets/{data-model.b5eb7565.js → data-model.86dfb86e.js} +3 -3
- package/dist/assets/de-DE.590d3c70.js +1 -0
- package/dist/assets/diff.83efcafe.js +1 -0
- package/dist/assets/{digitalocean-app-platform.4063d6cc.js → digitalocean-app-platform.cbd270c2.js} +2 -2
- package/dist/assets/{display-templates.65a9b519.js → display-templates.3da93597.js} +1 -1
- package/dist/assets/display.7dbfefd3.js +1 -0
- package/dist/assets/{displays.b72d546c.js → displays.7de6431d.js} +5 -5
- package/dist/assets/django.16d84d07.js +1 -0
- package/dist/assets/{docker.ae6227ab.js → docker.415a4af1.js} +1 -1
- package/dist/assets/dockerfile.50ad5737.js +1 -0
- package/dist/assets/{documentation.6628aaac.js → documentation.42b788f9.js} +1 -1
- package/dist/assets/dtd.b44f327f.js +1 -0
- package/dist/assets/dylan.e71cf0e1.js +1 -0
- package/dist/assets/ebnf.b67ca2a8.js +1 -0
- package/dist/assets/ecl.a694637b.js +1 -0
- package/dist/assets/eiffel.8a8cdbc6.js +1 -0
- package/dist/assets/el-GR.c0a3a0bf.js +1 -0
- package/dist/assets/elm.e174f3d7.js +1 -0
- package/dist/assets/{email-templates.5e1b5472.js → email-templates.dc238bec.js} +1 -1
- package/dist/assets/{endpoints.44874916.js → endpoints.c3e9ad6d.js} +1 -1
- package/dist/assets/erlang.9b90684f.js +1 -0
- package/dist/assets/es-MX.30ad99ae.js +1 -0
- package/dist/assets/{extensions.9790f6ff.js → extensions.a5e33cc9.js} +1 -1
- package/dist/assets/factor.fc03459f.js +1 -0
- package/dist/assets/{faq.0fd5ca6e.js → faq.5be12255.js} +2 -2
- package/dist/assets/fcl.5f56a413.js +1 -0
- package/dist/assets/{field-types.e5bd5900.js → field-types.acf0e140.js} +1 -1
- package/dist/assets/{field.b9b55fc2.js → field.b9a392a5.js} +1 -1
- package/dist/assets/{fields.fc8af154.js → fields.49dc9c06.js} +1 -1
- package/dist/assets/{fields.7df6f624.js → fields.ec401376.js} +1 -1
- package/dist/assets/{file-library.7a11d866.js → file-library.099ad14e.js} +1 -1
- package/dist/assets/{files.84b41f2f.js → files.53806aa8.js} +2 -2
- package/dist/assets/{filter-rules.099e9689.js → filter-rules.6293da5a.js} +4 -4
- package/dist/assets/{filters.98d31bd5.js → filters.52d6e673.js} +1 -1
- package/dist/assets/flows-for-loop.c0d96bfd.js +1 -0
- package/dist/assets/{flows.b6ebb4b6.js → flows.4a144234.js} +6 -6
- package/dist/assets/{flows.2646c3ae.js → flows.bd12c724.js} +2 -2
- package/dist/assets/{folders.35cfde90.js → folders.eca400c9.js} +5 -5
- package/dist/assets/forth.15fd7f42.js +1 -0
- package/dist/assets/fortran.1ff32443.js +1 -0
- package/dist/assets/fr-FR.d8dbf5de.js +1 -0
- package/dist/assets/gas.58e29d15.js +1 -0
- package/dist/assets/{gcp.ce76381f.js → gcp.7798a1d4.js} +5 -5
- package/dist/assets/generate-work-reports.682b3aa0.js +1 -0
- package/dist/assets/gfm.bac67f82.js +1 -0
- package/dist/assets/gherkin.55ae80a8.js +1 -0
- package/dist/assets/{github-ci.b4dde47f.js → github-ci.c2c0213a.js} +2 -2
- package/dist/assets/{glossary.930fe38e.js → glossary.5818cbf2.js} +1 -1
- package/dist/assets/{glossary.3b14c64d.js → glossary.86dfcaa5.js} +1 -1
- package/dist/assets/go.0ba144bf.js +1 -0
- package/dist/assets/groovy.d6e7c99f.js +1 -0
- package/dist/assets/haml.1235f7df.js +1 -0
- package/dist/assets/handlebars.ff4e52b8.js +1 -0
- package/dist/assets/haskell-literate.31bd2912.js +1 -0
- package/dist/assets/haskell.7e315eae.js +1 -0
- package/dist/assets/haxe.89c17af0.js +1 -0
- package/dist/assets/{hooks.b9909639.js → hooks.121520b6.js} +1 -1
- package/dist/assets/htmlembedded.133b6fc4.js +1 -0
- package/dist/assets/{htmlmixed.a7900839.js → htmlmixed.5302f41a.js} +1 -1
- package/dist/assets/htmlmixed.655b4687.js +1 -0
- package/dist/assets/http.3e53c321.js +1 -0
- package/dist/assets/hu-HU.9b5d2817.js +1 -0
- package/dist/assets/id-ID.626b885e.js +1 -0
- package/dist/assets/idl.e221918d.js +1 -0
- package/dist/assets/{iis.63d75601.js → iis.c623e90b.js} +1 -1
- package/dist/assets/{import-export.fe680598.js → import-export.ed35bdb2.js} +2 -2
- package/dist/assets/{index.ffcfdc79.js → index.04b73e2f.js} +1 -1
- package/dist/assets/{index.3ccb1a62.js → index.09845961.js} +1 -1
- package/dist/assets/{index.671547c3.js → index.130287f6.js} +1 -1
- package/dist/assets/{index.20179e31.js → index.1ba23fe5.js} +1 -1
- package/dist/assets/{index.f19e5b18.js → index.1f330fc3.js} +1 -1
- package/dist/assets/{index.7f210d25.js → index.24999c03.js} +1 -1
- package/dist/assets/{index.7c5199ad.js → index.330c3aee.js} +1 -1
- package/dist/assets/{index.549a82a6.js → index.3470f134.js} +1 -1
- package/dist/assets/{index.a6c65314.js → index.4044e5c7.js} +1 -1
- package/dist/assets/{index.764b9d6e.js → index.4706b3f5.js} +1 -1
- package/dist/assets/{index.875a771b.js → index.4b24f075.js} +1 -1
- package/dist/assets/{index.6949d989.js → index.4c6e76b7.js} +1 -1
- package/dist/assets/{index.0d7f4d79.js → index.522f44b0.js} +1 -1
- package/dist/assets/{index.1c9cfeb8.js → index.525d8fd8.js} +1 -1
- package/dist/assets/{index.d8e4727e.js → index.528e4b54.js} +1 -1
- package/dist/assets/{index.d9e48160.js → index.52a4297c.js} +1 -1
- package/dist/assets/{index.34c47fcf.js → index.530fd584.js} +1 -1
- package/dist/assets/{index.91e98759.js → index.546018df.js} +1 -1
- package/dist/assets/{index.d557b36c.js → index.57542755.js} +1 -1
- package/dist/assets/{index.aa66a39f.js → index.579d3ebd.js} +1 -1
- package/dist/assets/{index.425c965c.js → index.5a8952da.js} +1 -1
- package/dist/assets/{index.9b6db0de.js → index.5cf97c2b.js} +1 -1
- package/dist/assets/{index.08c5d5a2.js → index.6b77e807.js} +1 -1
- package/dist/assets/{index.393b7fd6.js → index.6bf3a163.js} +1 -1
- package/dist/assets/{index.fe4bc374.js → index.6c07a132.js} +1 -1
- package/dist/assets/{index.1f99dc82.js → index.6c4fabf1.js} +1 -1
- package/dist/assets/{index.7468a23c.js → index.6fa71870.js} +1 -1
- package/dist/assets/{index.8fb3c07f.js → index.7045dfad.js} +1 -1
- package/dist/assets/{index.c3959367.js → index.77b8f02e.js} +1 -1
- package/dist/assets/{index.62e48e8e.js → index.7943fd38.js} +1 -1
- package/dist/assets/{index.ac96f5b3.js → index.7c5b74dc.js} +1 -1
- package/dist/assets/{index.f32d0fbe.js → index.7de5db57.js} +1 -1
- package/dist/assets/{index.8aa50b59.js → index.7e90d361.js} +1 -1
- package/dist/assets/{index.2399ffb8.js → index.7edb8b15.js} +1 -1
- package/dist/assets/{index.d370fafd.js → index.7fcf2b86.js} +1 -1
- package/dist/assets/{index.5c5acddc.js → index.80106d2d.js} +1 -1
- package/dist/assets/{index.8b8e6073.js → index.804b3c9b.js} +1 -1
- package/dist/assets/{index.5264aa26.js → index.8063dc25.js} +1 -1
- package/dist/assets/{index.eb772cab.js → index.81a02f8c.js} +1 -1
- package/dist/assets/{index.38e5dfc6.js → index.81d5b763.js} +1 -1
- package/dist/assets/{index.7269b9b7.js → index.8200528c.js} +1 -1
- package/dist/assets/{index.00acb7aa.js → index.82939b3a.js} +1 -1
- package/dist/assets/{index.d024a491.js → index.8446e18c.js} +1 -1
- package/dist/assets/index.87afb869.js +1 -0
- package/dist/assets/index.8d15d209.css +1 -0
- package/dist/assets/{index.7e37814b.js → index.92f59a75.js} +1 -1
- package/dist/assets/{index.3abfd687.js → index.98cb4ee1.js} +1 -1
- package/dist/assets/{index.3d4f0091.css → index.9bdfd349.css} +1 -1
- package/dist/assets/{index.486669b9.js → index.9d2fbf00.js} +1 -1
- package/dist/assets/{index.ec87e7f6.js → index.9dfe292c.js} +1 -1
- package/dist/assets/{index.4ce96101.js → index.a1b7be9b.js} +1 -1
- package/dist/assets/{index.1b594a21.js → index.a5356d91.js} +1 -1
- package/dist/assets/{index.b67fb5fc.js → index.ab4e5ca3.js} +1 -1
- package/dist/assets/{index.f511aff3.js → index.ab7b6cba.js} +1 -1
- package/dist/assets/{index.578c30ec.js → index.ac6c3fe9.js} +1 -1
- package/dist/assets/{index.5062f951.js → index.adc560cb.js} +1 -1
- package/dist/assets/index.ae2066f9.js +26 -0
- package/dist/assets/{index.045e97f0.js → index.ae4bf6ea.js} +1 -1
- package/dist/assets/{index.9f69b190.js → index.aeaa0aa9.js} +1 -1
- package/dist/assets/{index.8b9e43f4.js → index.afc6b30e.js} +1 -1
- package/dist/assets/{index.23def130.js → index.b02dbd39.js} +1 -1
- package/dist/assets/{index.3cb24d7f.js → index.b391672d.js} +1 -1
- package/dist/assets/{index.19a506a0.js → index.b503f187.js} +1 -1
- package/dist/assets/{index.a88d2d0b.js → index.b7113e87.js} +1 -1
- package/dist/assets/{index.7bb84aa5.js → index.c156c46e.js} +1 -1
- package/dist/assets/{index.68337c85.js → index.c5e16ef6.js} +1 -1
- package/dist/assets/{index.45686201.js → index.c85c3f77.js} +1 -1
- package/dist/assets/{index.03886e4a.js → index.cb7799d1.js} +1 -1
- package/dist/assets/{index.eb4d5cbc.js → index.cb93c1e8.js} +1 -1
- package/dist/assets/index.cd3542f6.js +1 -0
- package/dist/assets/{index.dc4d9b6a.js → index.d0d998a0.js} +1 -1
- package/dist/assets/{index.c2858d95.js → index.d790d684.js} +1 -1
- package/dist/assets/{index.a264494d.js → index.dc9006a1.js} +1 -1
- package/dist/assets/{index.8130aabc.js → index.e3619b04.js} +1 -1
- package/dist/assets/{index.ab5ebdc3.js → index.e4224764.js} +1 -1
- package/dist/assets/{index.426d219b.js → index.e5079c3a.js} +1 -1
- package/dist/assets/{index.90ecf353.js → index.e6971ab1.js} +1 -1
- package/dist/assets/{index.b2e447e3.js → index.e85bc569.js} +1 -1
- package/dist/assets/{index.42614221.js → index.e95b7e4b.js} +1 -1
- package/dist/assets/{index.0608a502.js → index.ec8cfaac.js} +1 -1
- package/dist/assets/{index.b0e3c55c.js → index.f2e26d1f.js} +1 -1
- package/dist/assets/{index.eecb0d4b.js → index.f60d22d0.js} +1 -1
- package/dist/assets/{index.a8b94b31.js → index.f828781f.js} +1 -1
- package/dist/assets/{index.f047ba76.entry.js → index.f8fd6ee3.entry.js} +2691 -2690
- package/dist/assets/{index.2b61f9fb.js → index.fb6b1657.js} +1 -1
- package/dist/assets/{index.9c4a7f65.js → index.fb8023b0.js} +1 -1
- package/dist/assets/{index.79264a03.js → index.fe536421.js} +1 -1
- package/dist/assets/{input-rich-text-html.7e721a60.js → input-rich-text-html.1b13024b.js} +30 -30
- package/dist/assets/{insights.bb6e6dd9.js → insights.6190eebc.js} +2 -2
- package/dist/assets/{installation.a80b7bdd.js → installation.6e591be8.js} +1 -1
- package/dist/assets/{interface.6b3d318d.js → interface.5ec8ca7e.js} +1 -1
- package/dist/assets/{interfaces.9c9cb203.js → interfaces.81902e8c.js} +4 -4
- package/dist/assets/{introduction.23bcca02.js → introduction.15496522.js} +1 -1
- package/dist/assets/{introduction.17ce0958.js → introduction.2f7199ad.js} +4 -4
- package/dist/assets/{introduction.74d5f276.js → introduction.c61e67d2.js} +1 -1
- package/dist/assets/{introduction.2b473cdb.js → introduction.efd590eb.js} +1 -1
- package/dist/assets/{items.d9558b12.js → items.6012bbd1.js} +1 -1
- package/dist/assets/{items.a200a734.js → items.904356b8.js} +5 -5
- package/dist/assets/javascript-hint.199abe65.js +1 -0
- package/dist/assets/javascript.705102e7.js +1 -0
- package/dist/assets/jinja2.876b8944.js +1 -0
- package/dist/assets/jsx.b818cda0.js +1 -0
- package/dist/assets/julia.cfb3ddf7.js +1 -0
- package/dist/assets/{layouts.67e010c3.js → layouts.50df5631.js} +1 -1
- package/dist/assets/{layouts.71139077.js → layouts.befbdcf8.js} +3 -3
- package/dist/assets/livescript.c806b66f.js +1 -0
- package/dist/assets/lua.bc0ae13c.js +1 -0
- package/dist/assets/{manual.be26c257.js → manual.26a85d2d.js} +4 -4
- package/dist/assets/mark-selection.bae469e3.js +1 -0
- package/dist/assets/match-highlighter.91a1ef15.js +1 -0
- package/dist/assets/{matchbrackets.e0f8c83a.js → matchbrackets.7a78411c.js} +1 -1
- package/dist/assets/mathematica.d2affb5f.js +1 -0
- package/dist/assets/mbox.c5ac45db.js +1 -0
- package/dist/assets/{migrations.58c8fd96.js → migrations.ea7075a2.js} +1 -1
- package/dist/assets/mirc.56d52081.js +1 -0
- package/dist/assets/mllike.20808ac2.js +1 -0
- package/dist/assets/modelica.5b43a6c9.js +1 -0
- package/dist/assets/{modules.0cfbe882.js → modules.7d28228b.js} +3 -3
- package/dist/assets/mscgen.5e9e2653.js +1 -0
- package/dist/assets/multi-sig-data-access.ddc3e687.js +1 -0
- package/dist/assets/multiplex.db4b19a1.js +3 -0
- package/dist/assets/mumps.35d30d83.js +1 -0
- package/dist/assets/nginx.503d686c.js +1 -0
- package/dist/assets/nl-NL.586911c8.js +1 -0
- package/dist/assets/{notifications.7b442623.js → notifications.26a8e535.js} +11 -11
- package/dist/assets/nsis.94e55abf.js +1 -0
- package/dist/assets/ntriples.ed05a2ae.js +1 -0
- package/dist/assets/octave.2e3cb27d.js +1 -0
- package/dist/assets/{operations.bd173669.js → operations.470e68ea.js} +11 -11
- package/dist/assets/{operations.30bbad94.js → operations.bdd544da.js} +2 -2
- package/dist/assets/{operations.6fcceb98.js → operations.cdb45c4e.js} +3 -3
- package/dist/assets/overlay.3f3f0599.js +1 -0
- package/dist/assets/{overview.23ad824a.js → overview.2fc175dd.js} +1 -1
- package/dist/assets/{overview.4c1683c3.js → overview.8e4d2c9b.js} +1 -1
- package/dist/assets/{overview.cb1196c4.js → overview.eb4b9326.js} +1 -1
- package/dist/assets/oz.97cc1ac9.js +1 -0
- package/dist/assets/{panels.187b8f0d.js → panels.ca5d230c.js} +2 -2
- package/dist/assets/pascal.f8c86cda.js +1 -0
- package/dist/assets/pegjs.97bb1322.js +1 -0
- package/dist/assets/perl.d9a95eca.js +1 -0
- package/dist/assets/permissions.081923f1.js +1 -0
- package/dist/assets/{permissions.2ad2e118.js → permissions.a09bb478.js} +4 -4
- package/dist/assets/personal-portfolio-using-m2a.5e30e6cc.js +11 -0
- package/dist/assets/php.89c2f9f7.js +1 -0
- package/dist/assets/pig.46306f9f.js +1 -0
- package/dist/assets/{pinia.24c7b35a.entry.js → pinia.0d44ec62.entry.js} +2 -2
- package/dist/assets/{pl-PL.2863a1a1.js → pl-PL.01cf6aca.js} +1 -1
- package/dist/assets/{plesk.279941fc.js → plesk.297b28ec.js} +5 -5
- package/dist/assets/powershell.7f59ea0d.js +1 -0
- package/dist/assets/{presets-bookmarks.62ac9314.js → presets-bookmarks.d7ef4b82.js} +1 -1
- package/dist/assets/{presets.0390ff92.js → presets.4ea72a6c.js} +8 -8
- package/dist/assets/{project-settings.8b91aa04.js → project-settings.073c480f.js} +1 -1
- package/dist/assets/{projects.97bc15fa.js → projects.667d06ab.js} +1 -1
- package/dist/assets/properties.b2e9e7dd.js +1 -0
- package/dist/assets/protobuf.a57768d6.js +1 -0
- package/dist/assets/pt-BR.2c2e8c4f.js +1 -0
- package/dist/assets/pug.11a0bdc8.js +1 -0
- package/dist/assets/puppet.768fa863.js +1 -0
- package/dist/assets/python.8b6df896.js +1 -0
- package/dist/assets/q.f71e2fb3.js +1 -0
- package/dist/assets/{query.19ee7756.js → query.91f32b7a.js} +1 -1
- package/dist/assets/{quickstart.96d7fa17.js → quickstart.54f032fc.js} +3 -3
- package/dist/assets/{quickstart.7f55e26e.js → quickstart.6a82ef4b.js} +2 -2
- package/dist/assets/r.a9a4ca12.js +1 -0
- package/dist/assets/{readme.abb2691e.js → readme.84bd1090.js} +1 -1
- package/dist/assets/{relations.1409faa0.js → relations.c63ae4da.js} +6 -6
- package/dist/assets/{relationship.8e3bc45d.js → relationship.01468083.js} +1 -1
- package/dist/assets/{relationships.2449eed5.js → relationships.d7b51fda.js} +7 -7
- package/dist/assets/{resources.f9b64d6f.js → resources.f9cebdba.js} +1 -1
- package/dist/assets/{revisions.7ffa76fe.js → revisions.f2bf9393.js} +4 -4
- package/dist/assets/ro-RO.4c33f715.js +1 -0
- package/dist/assets/{roles.ce6518a4.js → roles.554cdf0e.js} +7 -7
- package/dist/assets/roles.b34bd4b0.js +1 -0
- package/dist/assets/rpm.e5811a72.js +1 -0
- package/dist/assets/rst.4b01b126.js +1 -0
- package/dist/assets/ruby.2ba33d98.js +1 -0
- package/dist/assets/{ruby.57265cfb.js → ruby.e8984a81.js} +1 -1
- package/dist/assets/{running-locally.8b135453.js → running-locally.d2e38f5e.js} +6 -6
- package/dist/assets/runtime-core.esm-bundler.22ec0346.js +1 -0
- package/dist/assets/rust.531e50f1.js +1 -0
- package/dist/assets/sas.48362a0b.js +1 -0
- package/dist/assets/sass.bf4a8b44.js +1 -0
- package/dist/assets/{schema.6649576e.js → schema.fefe36d2.js} +1 -1
- package/dist/assets/scheme.09b14856.js +1 -0
- package/dist/assets/{sdk.33dcc072.js → sdk.1c1b1a8b.js} +17 -17
- package/dist/assets/{security.acb2be94.js → security.59975f74.js} +1 -1
- package/dist/assets/{server.60bfa539.js → server.ef4017d1.js} +2 -2
- package/dist/assets/{settings.a00aa4fa.js → settings.1aa8422b.js} +1 -1
- package/dist/assets/{settings.6ac3895b.js → settings.574bbb58.js} +1 -1
- package/dist/assets/{shares.9a7ea736.js → shares.7727bd4c.js} +1 -1
- package/dist/assets/shell.d1dbda55.js +1 -0
- package/dist/assets/show-hint.57ea873d.js +1 -0
- package/dist/assets/sieve.1a25767a.js +1 -0
- package/dist/assets/slim.e018ac1a.js +1 -0
- package/dist/assets/slugify-text-with-run-script.7c3cc2c4.js +15 -0
- package/dist/assets/smalltalk.0ccfbb10.js +1 -0
- package/dist/assets/smarty.b91d67c6.js +1 -0
- package/dist/assets/solr.dd29f408.js +1 -0
- package/dist/assets/soy.4e5bb4c1.js +1 -0
- package/dist/assets/sparql.cc878993.js +1 -0
- package/dist/assets/spreadsheet.4aefd96f.js +1 -0
- package/dist/assets/sql.64eab1fa.js +1 -0
- package/dist/assets/{sso-examples.eb3ba478.js → sso-examples.873240f6.js} +2 -2
- package/dist/assets/{sso.29d67116.js → sso.1a6b3ff0.js} +4 -4
- package/dist/assets/stex.2fdfddd4.js +1 -0
- package/dist/assets/{stex.a70dfdc0.js → stex.d01c95b1.js} +1 -1
- package/dist/assets/stylus.6d056ddf.js +1 -0
- package/dist/assets/{support.e9e535b3.js → support.87c6b5f6.js} +1 -1
- package/dist/assets/swift.76d77aff.js +1 -0
- package/dist/assets/tcl.3d53e7a7.js +1 -0
- package/dist/assets/{teams.347f0563.js → teams.d555eea3.js} +1 -1
- package/dist/assets/template_shell.96150c63.js +1 -0
- package/dist/assets/textile.4fa0ef27.js +1 -0
- package/dist/assets/{themes.32a50b86.js → themes.3a8f5b79.js} +2 -2
- package/dist/assets/tiddlywiki.7c0678e2.js +1 -0
- package/dist/assets/tiki.63b47d4f.js +1 -0
- package/dist/assets/toml.687ac678.js +1 -0
- package/dist/assets/tornado.9caaed61.js +1 -0
- package/dist/assets/{translation-strings.285d6bb2.js → translation-strings.c2e90e96.js} +1 -1
- package/dist/assets/translations.c1633bc8.js +1 -0
- package/dist/assets/{translations.f87a601e.js → translations.d4671c3a.js} +1 -1
- package/dist/assets/{triggers.325e50d8.js → triggers.c58cde75.js} +1 -1
- package/dist/assets/troff.65641cfa.js +1 -0
- package/dist/assets/ttcn-cfg.66abf94b.js +1 -0
- package/dist/assets/ttcn.cdbdbc10.js +1 -0
- package/dist/assets/turtle.30f5acd6.js +1 -0
- package/dist/assets/twig.76882629.js +1 -0
- package/dist/assets/{ubuntu.3ba252fe.js → ubuntu.74c798e5.js} +2 -2
- package/dist/assets/uk-UA.fe247137.js +1 -0
- package/dist/assets/{upgrades-migrations.a091b8af.js → upgrades-migrations.73d4da9b.js} +1 -1
- package/dist/assets/{use-sync.d9160f34.js → use-sync.e83d9ab3.js} +3 -3
- package/dist/assets/{user-directory.9ca05985.js → user-directory.2ceb13ba.js} +1 -1
- package/dist/assets/{users-roles-permissions.bb71f6c9.js → users-roles-permissions.a3e2d048.js} +1 -1
- package/dist/assets/{users.a44125e3.js → users.5e316cce.js} +1 -1
- package/dist/assets/users.6e0f9ff9.js +1 -0
- package/dist/assets/{utilities.0380c496.js → utilities.3e4e57c9.js} +7 -7
- package/dist/assets/validation.5eb143cd.js +1 -0
- package/dist/assets/vb.6ca2d658.js +1 -0
- package/dist/assets/vbscript.c9f7cdd8.js +1 -0
- package/dist/assets/velocity.f8f37fc1.js +1 -0
- package/dist/assets/verilog.5cadf8f9.js +1 -0
- package/dist/assets/vhdl.46742c88.js +1 -0
- package/dist/assets/vi-VN.7f9cab4b.js +1 -0
- package/dist/assets/{vue-i18n.df8d89e7.entry.js → vue-i18n.fbc77449.entry.js} +1 -1
- package/dist/assets/vue-router.3a828e63.entry.js +5 -0
- package/dist/assets/vue.425bdf79.js +1 -0
- package/dist/assets/vue.486f3e62.entry.js +1 -0
- package/dist/assets/vue.runtime.esm-bundler.f6138180.js +1 -0
- package/dist/assets/wast.7b52bae5.js +1 -0
- package/dist/assets/{webhooks.40d9a7a3.js → webhooks.121861b0.js} +4 -4
- package/dist/assets/{webhooks.2d23be4c.js → webhooks.af8dfb63.js} +1 -1
- package/dist/assets/webidl.0a6cdd93.js +1 -0
- package/dist/assets/{xml.ea66d5f3.js → xml.8dec85cf.js} +1 -1
- package/dist/assets/xquery.c295ca3d.js +1 -0
- package/dist/assets/yacas.dca8e311.js +1 -0
- package/dist/assets/yaml-frontmatter.ccdcb23a.js +1 -0
- package/dist/assets/yaml.f22fdd75.js +1 -0
- package/dist/assets/z80.da8cf83c.js +1 -0
- package/dist/assets/zh-CN.6fd4ae3a.js +1 -0
- package/dist/index.html +8 -8
- package/package.json +58 -71
- package/dist/assets/@directus_extensions-sdk.fd0e4213.entry.js +0 -1
- package/dist/assets/active-line.9ef493aa.js +0 -1
- package/dist/assets/apl.80228b26.js +0 -1
- package/dist/assets/ar-SA.c5ee16de.js +0 -2
- package/dist/assets/asciiarmor.6c86ea34.js +0 -1
- package/dist/assets/asn.1.c414ac8d.js +0 -1
- package/dist/assets/asterisk.b919c017.js +0 -1
- package/dist/assets/autorefresh.4d24f530.js +0 -1
- package/dist/assets/brainfuck.31207812.js +0 -1
- package/dist/assets/clike.4381bb65.js +0 -1
- package/dist/assets/clike.70f54732.js +0 -1
- package/dist/assets/clojure.5e71b148.js +0 -1
- package/dist/assets/cmake.4292630d.js +0 -1
- package/dist/assets/cobol.0f026188.js +0 -1
- package/dist/assets/coffeescript.c9867ce1.js +0 -1
- package/dist/assets/commonlisp.575f73fb.js +0 -1
- package/dist/assets/crystal.c6b2e074.js +0 -1
- package/dist/assets/css.68e5f1b4.js +0 -1
- package/dist/assets/cypher.b9a2a2ff.js +0 -4
- package/dist/assets/d.29704d27.js +0 -1
- package/dist/assets/dart.3bc9103c.js +0 -1
- package/dist/assets/de-DE.1232afb9.js +0 -1
- package/dist/assets/diff.ed5ea48e.js +0 -1
- package/dist/assets/display.4a967445.js +0 -1
- package/dist/assets/django.a4f2e396.js +0 -1
- package/dist/assets/dockerfile.63d471ed.js +0 -1
- package/dist/assets/dtd.a3075452.js +0 -1
- package/dist/assets/dylan.f084efb3.js +0 -1
- package/dist/assets/ebnf.04f6993f.js +0 -1
- package/dist/assets/ecl.716928e4.js +0 -1
- package/dist/assets/eiffel.adac2439.js +0 -1
- package/dist/assets/el-GR.99b9567f.js +0 -1
- package/dist/assets/elm.79decf86.js +0 -1
- package/dist/assets/erlang.3a8664fd.js +0 -1
- package/dist/assets/es-MX.1c06907f.js +0 -1
- package/dist/assets/factor.5720b335.js +0 -1
- package/dist/assets/fcl.23169462.js +0 -1
- package/dist/assets/forth.0aa4b2af.js +0 -1
- package/dist/assets/fortran.2a5ba2e9.js +0 -1
- package/dist/assets/fr-FR.fa3f9dfa.js +0 -1
- package/dist/assets/gas.bb020a68.js +0 -1
- package/dist/assets/gfm.ab87931a.js +0 -1
- package/dist/assets/gherkin.14ad5708.js +0 -1
- package/dist/assets/go.db54967b.js +0 -1
- package/dist/assets/groovy.70142c17.js +0 -1
- package/dist/assets/haml.48d17fa5.js +0 -1
- package/dist/assets/handlebars.99f3b281.js +0 -1
- package/dist/assets/haskell-literate.dd8055d7.js +0 -1
- package/dist/assets/haskell.5163bc39.js +0 -1
- package/dist/assets/haxe.c37e45b0.js +0 -1
- package/dist/assets/htmlembedded.259e134c.js +0 -1
- package/dist/assets/htmlmixed.d4ccede2.js +0 -1
- package/dist/assets/http.c2a41932.js +0 -1
- package/dist/assets/hu-HU.b086156a.js +0 -1
- package/dist/assets/id-ID.30858185.js +0 -1
- package/dist/assets/idl.756f9381.js +0 -1
- package/dist/assets/index.4ce1e26c.js +0 -1
- package/dist/assets/index.90515a60.css +0 -1
- package/dist/assets/index.a36c94c4.js +0 -1
- package/dist/assets/index.c781a7ba.js +0 -26
- package/dist/assets/javascript-hint.edf0fbfe.js +0 -1
- package/dist/assets/javascript.3f76a939.js +0 -1
- package/dist/assets/jinja2.5ece3da1.js +0 -1
- package/dist/assets/jsx.bf843278.js +0 -1
- package/dist/assets/julia.3deacccb.js +0 -1
- package/dist/assets/livescript.0f4ee94d.js +0 -1
- package/dist/assets/lua.55a0ef58.js +0 -1
- package/dist/assets/mark-selection.c61be770.js +0 -1
- package/dist/assets/match-highlighter.653539e4.js +0 -1
- package/dist/assets/mathematica.581f102c.js +0 -1
- package/dist/assets/mbox.b8d42368.js +0 -1
- package/dist/assets/mirc.54d6f3dc.js +0 -1
- package/dist/assets/mllike.3fea0214.js +0 -1
- package/dist/assets/modelica.e91f192a.js +0 -1
- package/dist/assets/mscgen.26838643.js +0 -1
- package/dist/assets/multiplex.93cf07bd.js +0 -3
- package/dist/assets/mumps.47e48202.js +0 -1
- package/dist/assets/nginx.87019c99.js +0 -1
- package/dist/assets/nl-NL.277f5ed5.js +0 -1
- package/dist/assets/nsis.fafee21f.js +0 -1
- package/dist/assets/ntriples.a43258b6.js +0 -1
- package/dist/assets/octave.1f682cef.js +0 -1
- package/dist/assets/overlay.a2442f5e.js +0 -1
- package/dist/assets/oz.62b729b0.js +0 -1
- package/dist/assets/pascal.0fa9599a.js +0 -1
- package/dist/assets/pegjs.32083f8f.js +0 -1
- package/dist/assets/perl.5a777d8c.js +0 -1
- package/dist/assets/php.c6ab96f7.js +0 -1
- package/dist/assets/pig.2c7c4277.js +0 -1
- package/dist/assets/powershell.e6b0a933.js +0 -1
- package/dist/assets/properties.35c2d705.js +0 -1
- package/dist/assets/protobuf.625d3a47.js +0 -1
- package/dist/assets/pt-BR.c51763f3.js +0 -1
- package/dist/assets/pug.da3530b5.js +0 -1
- package/dist/assets/puppet.655afe2c.js +0 -1
- package/dist/assets/python.a67d678a.js +0 -1
- package/dist/assets/q.cc56fcdd.js +0 -1
- package/dist/assets/r.c1bddb02.js +0 -1
- package/dist/assets/ro-RO.52802a17.js +0 -1
- package/dist/assets/rpm.e046de56.js +0 -1
- package/dist/assets/rst.424d4d80.js +0 -1
- package/dist/assets/ruby.c0348dbc.js +0 -1
- package/dist/assets/runtime-core.esm-bundler.fe249c5c.js +0 -4
- package/dist/assets/rust.b8eab4c6.js +0 -1
- package/dist/assets/sas.171b5cec.js +0 -1
- package/dist/assets/sass.ef1df49e.js +0 -1
- package/dist/assets/scheme.96f6ce73.js +0 -1
- package/dist/assets/shell.4c172f18.js +0 -1
- package/dist/assets/show-hint.e95ab391.js +0 -1
- package/dist/assets/sieve.bdcdd5e1.js +0 -1
- package/dist/assets/slim.bab26569.js +0 -1
- package/dist/assets/smalltalk.0234383f.js +0 -1
- package/dist/assets/smarty.d8aca261.js +0 -1
- package/dist/assets/solr.d8e27de0.js +0 -1
- package/dist/assets/soy.06b4848e.js +0 -1
- package/dist/assets/sparql.ef7b1e37.js +0 -1
- package/dist/assets/spreadsheet.0d9dfaef.js +0 -1
- package/dist/assets/sql.85f5cd30.js +0 -1
- package/dist/assets/stex.38cc6e30.js +0 -1
- package/dist/assets/stylus.4d43a0f9.js +0 -1
- package/dist/assets/swift.e665f92b.js +0 -1
- package/dist/assets/tcl.4f846188.js +0 -1
- package/dist/assets/textile.eef6bf65.js +0 -1
- package/dist/assets/tiddlywiki.29dce321.js +0 -1
- package/dist/assets/tiki.a2f71a50.js +0 -1
- package/dist/assets/toml.64d737ee.js +0 -1
- package/dist/assets/tornado.5ebb7f6b.js +0 -1
- package/dist/assets/translations.074feb87.js +0 -1
- package/dist/assets/troff.e64b5292.js +0 -1
- package/dist/assets/ttcn-cfg.1b57714e.js +0 -1
- package/dist/assets/ttcn.3ddce744.js +0 -1
- package/dist/assets/turtle.0839041f.js +0 -1
- package/dist/assets/twig.99a62381.js +0 -1
- package/dist/assets/uk-UA.99a7a7a6.js +0 -1
- package/dist/assets/validation.cb080608.js +0 -1
- package/dist/assets/vb.9a802cc7.js +0 -1
- package/dist/assets/vbscript.c3cbffdb.js +0 -1
- package/dist/assets/velocity.a1b7e170.js +0 -1
- package/dist/assets/verilog.d98a6823.js +0 -1
- package/dist/assets/vhdl.6a93f1eb.js +0 -1
- package/dist/assets/vi-VN.b85c8a24.js +0 -1
- package/dist/assets/vue-router.805cb517.entry.js +0 -5
- package/dist/assets/vue.c7dd8317.entry.js +0 -1
- package/dist/assets/vue.f82ff76a.js +0 -1
- package/dist/assets/vue.runtime.esm-bundler.eb605ed6.js +0 -1
- package/dist/assets/wast.2c3ec473.js +0 -1
- package/dist/assets/webidl.49c5abd3.js +0 -1
- package/dist/assets/xquery.a0c67ec5.js +0 -1
- package/dist/assets/yacas.d6cc38c0.js +0 -1
- package/dist/assets/yaml-frontmatter.f078c218.js +0 -1
- package/dist/assets/yaml.2ae1a5ef.js +0 -1
- package/dist/assets/z80.fc28354f.js +0 -1
- package/dist/assets/zh-CN.a9e8d795.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as o,o as r,
|
|
1
|
+
import{a as o,o as r,e as h,y as t,u as e,q as s,z as n}from"./runtime-core.esm-bundler.22ec0346.js";const d={class:"markdown-body"},p=e("hr",null,null,-1),u=e("h2",{id:"the-item-object",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#the-item-object"},"#"),s(" The Item Object")],-1),_=e("p",null,[s("Items don\u2019t have a predefined schema. The format depends completely on how you configured your collections and fields in Directus. For the sake of documentation, we\u2019ll use a fictional articles collection with the following fields: "),e("code",null,"id"),s(", "),e("code",null,"status"),s(", "),e("code",null,"title"),s(", "),e("code",null,"body"),s(", "),e("code",null,"featured_image"),s(", and "),e("code",null,"author"),s(".")],-1),m={class:"tip hint"},j=e("div",{class:"hint-title"},"Relational Data",-1),b=e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"{"),s(`
|
|
2
2
|
`),e("span",{class:"hljs-attr"},'"id"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-number"},"1"),e("span",{class:"hljs-punctuation"},","),s(`
|
|
3
3
|
`),e("span",{class:"hljs-attr"},'"status"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"published"'),e("span",{class:"hljs-punctuation"},","),s(`
|
|
4
4
|
`),e("span",{class:"hljs-attr"},'"title"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"Hello, world!"'),e("span",{class:"hljs-punctuation"},","),s(`
|
|
@@ -6,7 +6,7 @@ import{a as o,o as r,b as h,w as t,l as e,E as s,e as n}from"./runtime-core.esm-
|
|
|
6
6
|
`),e("span",{class:"hljs-attr"},'"featured_image"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"768eabec-3c54-4110-a6bb-64b548116661"'),e("span",{class:"hljs-punctuation"},","),s(`
|
|
7
7
|
`),e("span",{class:"hljs-attr"},'"author"'),e("span",{class:"hljs-punctuation"},":"),s(),e("span",{class:"hljs-string"},'"0bc7b36a-9ba9-4ce0-83f0-0a526f354e07"'),s(`
|
|
8
8
|
`),e("span",{class:"hljs-punctuation"},"}"),s(`
|
|
9
|
-
`)])],-1),f=e("hr",null,null,-1),g=e("h2",{id:"get-items",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#get-items"},"#"),s(" Get Items")],-1),y=e("p",null,"List all items that exist in Directus.",-1),x=e("h3",{id:"query-parameters",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters"},"#"),s(" Query Parameters")],-1),q={class:"tip hint"},
|
|
9
|
+
`)])],-1),f=e("hr",null,null,-1),g=e("h2",{id:"get-items",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#get-items"},"#"),s(" Get Items")],-1),y=e("p",null,"List all items that exist in Directus.",-1),x=e("h3",{id:"query-parameters",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters"},"#"),s(" Query Parameters")],-1),q={class:"tip hint"},T=e("div",{class:"hint-title"},"Relational Data",-1),E=e("h3",{id:"returns",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns"},"#"),s(" Returns")],-1),w=e("a",{href:"#the-item-object"},"item objects",-1),I=e("h4",{id:"singleton",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#singleton"},"#"),s(" Singleton")],-1),P=e("p",null,"If your collection is a singleton, this endpoint will return the item. If the item doesn\u2019t exist in the database, the default values will be returned.",-1),R=e("h3",{id:"rest-api",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api"},"#"),s(" REST API")],-1),S=e("pre",null,[e("code",null,`GET /items/:collection
|
|
10
10
|
SEARCH /items/:collection
|
|
11
11
|
`)],-1),k=e("h5",{id:"example",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example"},"#"),s(" Example")],-1),A=e("pre",null,[e("code",null,`GET /items/articles
|
|
12
12
|
`)],-1),D=e("h3",{id:"graphql",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql"},"#"),s(" GraphQL")],-1),Q=e("pre",null,[e("code",null,`POST /graphql
|
|
@@ -50,7 +50,7 @@ SEARCH /items/:collection
|
|
|
50
50
|
title
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
`)])],-1),fe=e("hr",null,null,-1),ge=e("h2",{id:"create-multiple-items",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-multiple-items"},"#"),s(" Create Multiple Items")],-1),ye=e("p",null,"Create new items in the given collection.",-1),xe=e("h3",{id:"query-parameters-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),s(" Query Parameters")],-1),qe=e("h3",{id:"request-body-1",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#request-body-1"},"#"),s(" Request Body")],-1),
|
|
53
|
+
`)])],-1),fe=e("hr",null,null,-1),ge=e("h2",{id:"create-multiple-items",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-multiple-items"},"#"),s(" Create Multiple Items")],-1),ye=e("p",null,"Create new items in the given collection.",-1),xe=e("h3",{id:"query-parameters-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),s(" Query Parameters")],-1),qe=e("h3",{id:"request-body-1",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#request-body-1"},"#"),s(" Request Body")],-1),Te=e("p",null,[s("An array of partial "),e("a",{href:"#the-item-object"},"item objects"),s(".")],-1),Ee=e("h3",{id:"returns-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns-3"},"#"),s(" Returns")],-1),we=e("p",null,[s("Returns the "),e("a",{href:"#the-item-object"},"item objects"),s(" of the item that were created.")],-1),Ie=e("h3",{id:"rest-api-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api-3"},"#"),s(" REST API")],-1),Pe=e("pre",null,[e("code",null,`POST /items/:collection
|
|
54
54
|
`)],-1),Re=e("h5",{id:"example-6",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-6"},"#"),s(" Example")],-1),Se=e("pre",null,[e("code",null,`POST /items/articles
|
|
55
55
|
`)],-1),ke=e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-punctuation"},"["),s(`
|
|
56
56
|
`),e("span",{class:"hljs-punctuation"},"{"),s(`
|
|
@@ -110,7 +110,7 @@ SEARCH /items/:collection
|
|
|
110
110
|
status
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
`)])],-1),ys=e("hr",null,null,-1),xs=e("h2",{id:"delete-an-item",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-an-item"},"#"),s(" Delete an Item")],-1),qs=e("p",null,"Delete an existing item.",-1),
|
|
113
|
+
`)])],-1),ys=e("hr",null,null,-1),xs=e("h2",{id:"delete-an-item",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-an-item"},"#"),s(" Delete an Item")],-1),qs=e("p",null,"Delete an existing item.",-1),Ts=e("h3",{id:"returns-6",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#returns-6"},"#"),s(" Returns")],-1),Es=e("p",null,"Empty body.",-1),ws=e("h3",{id:"rest-api-6",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#rest-api-6"},"#"),s(" REST API")],-1),Is=e("pre",null,[e("code",null,`DELETE /items/:collection/:id
|
|
114
114
|
`)],-1),Ps=e("h5",{id:"example-12",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#example-12"},"#"),s(" Example")],-1),Rs=e("pre",null,[e("code",null,`DELETE /items/articles/15
|
|
115
115
|
`)],-1),Ss=e("h3",{id:"graphql-6",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#graphql-6"},"#"),s(" GraphQL")],-1),ks=e("pre",null,[e("code",null,`POST /graphql
|
|
116
116
|
`)],-1),As=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
@@ -133,4 +133,4 @@ SEARCH /items/:collection
|
|
|
133
133
|
ids
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
`)])],-1),st="Accessing Items",tt=!1,at="REST and GraphQL API documentation to access and manage Items in Directus.",nt="5 min read",lt="page-reference",ot={__name:"items",setup(Ys,{expose:c}){const l={title:"Accessing Items",modularExtension:!1,description:"REST and GraphQL API documentation to access and manage Items in Directus.",readTime:"5 min read",pageClass:"page-reference"};return c({frontmatter:l}),(Zs,$s)=>{const a=o("router-link"),i=o("docs-wrapper");return r(),h(i,{frontmatter:l},{default:t(()=>[e("div",d,[e("blockquote",null,[e("p",null,[s("Items are individual pieces of data in your database. They can be anything, from articles, to IoT status checks. "),n(a,{to:"/docs/getting-started/glossary#items"},{default:t(()=>[s("Learn more about Items")]),_:1}),s(".")])]),p,u,_,e("div",m,[j,e("p",null,[s("Please see "),n(a,{to:"/docs/reference/introduction#relational-data"},{default:t(()=>[s("Relational Data")]),_:1}),s(" and "),n(a,{to:"/docs/reference/query#fields"},{default:t(()=>[s("Field Parameters")]),_:1}),s(" to learn more.")])]),b,f,g,y,x,e("p",null,[s("Supports all "),n(a,{to:"/docs/reference/query"},{default:t(()=>[s("global query parameters")]),_:1}),s(".")]),e("div",q,[
|
|
136
|
+
`)])],-1),st="Accessing Items",tt=!1,at="REST and GraphQL API documentation to access and manage Items in Directus.",nt="5 min read",lt="page-reference",ot={__name:"items",setup(Ys,{expose:c}){const l={title:"Accessing Items",modularExtension:!1,description:"REST and GraphQL API documentation to access and manage Items in Directus.",readTime:"5 min read",pageClass:"page-reference"};return c({frontmatter:l}),(Zs,$s)=>{const a=o("router-link"),i=o("docs-wrapper");return r(),h(i,{frontmatter:l},{default:t(()=>[e("div",d,[e("blockquote",null,[e("p",null,[s("Items are individual pieces of data in your database. They can be anything, from articles, to IoT status checks. "),n(a,{to:"/docs/getting-started/glossary#items"},{default:t(()=>[s("Learn more about Items")]),_:1}),s(".")])]),p,u,_,e("div",m,[j,e("p",null,[s("Please see "),n(a,{to:"/docs/reference/introduction#relational-data"},{default:t(()=>[s("Relational Data")]),_:1}),s(" and "),n(a,{to:"/docs/reference/query#fields"},{default:t(()=>[s("Field Parameters")]),_:1}),s(" to learn more.")])]),b,f,g,y,x,e("p",null,[s("Supports all "),n(a,{to:"/docs/reference/query"},{default:t(()=>[s("global query parameters")]),_:1}),s(".")]),e("div",q,[T,e("p",null,[s("The "),n(a,{to:"/docs/reference/query#fields"},{default:t(()=>[s("Field Parameter")]),_:1}),s(" is required to return nested relational data.")])]),E,e("p",null,[s("An array of up to "),n(a,{to:"/docs/reference/query#limit"},{default:t(()=>[s("limit")]),_:1}),s(),w,s(". If no items are available, data will be an empty array.")]),I,P,R,S,e("p",null,[n(a,{to:"/docs/reference/introduction#search-http-method"},{default:t(()=>[s("Learn more about SEARCH ->")]),_:1})]),k,A,D,Q,v,G,L,C,O,H,M,e("p",null,[s("Supports all "),n(a,{to:"/docs/reference/query"},{default:t(()=>[s("global query parameters")]),_:1}),s(".")]),B,U,F,N,V,z,J,K,W,X,Y,Z,$,ee,se,e("p",null,[s("Supports all "),n(a,{to:"/docs/reference/query"},{default:t(()=>[s("global query parameters")]),_:1}),s(".")]),te,ae,e("div",ne,[le,e("p",null,[s("Relational data needs to be correctly nested to add new items successfully. Check out the "),n(a,{to:"/docs/reference/introduction#relational-data"},{default:t(()=>[s("relational data section")]),_:1}),s(" for more information.")])]),oe,ce,ie,re,he,de,pe,ue,_e,me,je,be,fe,ge,ye,xe,e("p",null,[s("Supports all "),n(a,{to:"/docs/reference/query"},{default:t(()=>[s("global query parameters")]),_:1}),s(".")]),qe,Te,Ee,we,Ie,Pe,Re,Se,ke,Ae,De,Qe,ve,Ge,Le,Ce,Oe,He,e("p",null,[s("Supports all "),n(a,{to:"/docs/reference/query"},{default:t(()=>[s("global query parameters")]),_:1}),s(".")]),Me,Be,Ue,Fe,Ne,Ve,ze,Je,Ke,We,Xe,Ye,Ze,$e,es,ss,ts,as,e("p",null,[s("Supports all "),n(a,{to:"/docs/reference/query"},{default:t(()=>[s("global query parameters")]),_:1}),s(".")]),ns,ls,os,cs,is,rs,hs,ds,ps,us,_s,ms,js,bs,fs,gs,ys,xs,qs,Ts,Es,ws,Is,Ps,Rs,Ss,ks,As,Ds,Qs,vs,Gs,Ls,Cs,Os,Hs,Ms,Bs,Us,Fs,Ns,Vs,zs,Js,Ks,Ws,Xs])]),_:1})}}};export{ot as default,at as description,tt as modularExtension,lt as pageClass,nt as readTime,st as title};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as N}from"./index.f8fd6ee3.entry.js";function T(v,w){for(var c=0;c<w.length;c++){const p=w[c];if(typeof p!="string"&&!Array.isArray(p)){for(const u in p)if(u!=="default"&&!(u in v)){const h=Object.getOwnPropertyDescriptor(p,u);h&&Object.defineProperty(v,u,h.get?h:{enumerable:!0,get:()=>p[u]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(v,w){(function(c){c(N.exports)})(function(c){var p=c.Pos;function u(e,n){for(var t=0,r=e.length;t<r;++t)n(e[t])}function h(e,n){if(!Array.prototype.indexOf){for(var t=e.length;t--;)if(e[t]===n)return!0;return!1}return e.indexOf(n)!=-1}function O(e,n,t,r){var a=e.getCursor(),i=t(e,a);if(!/\b(?:string|comment)\b/.test(i.type)){var o=c.innerMode(e.getMode(),i.state);if(o.mode.helperType!=="json"){i.state=o.state,/^[\w$_]*$/.test(i.string)?i.end>a.ch&&(i.end=a.ch,i.string=i.string.slice(0,a.ch-i.start)):i={start:a.ch,end:a.ch,string:"",state:i.state,type:i.string=="."?"property":null};for(var s=i;s.type=="property";){if(s=t(e,p(a.line,s.start)),s.string!=".")return;if(s=t(e,p(a.line,s.start)),!d)var d=[];d.push(s)}return{list:E(i,d,n,r),from:p(a.line,i.start),to:p(a.line,i.end)}}}}function P(e,n){return O(e,$,function(t,r){return t.getTokenAt(r)},n)}c.registerHelper("hint","javascript",P);function A(e,n){var t=e.getTokenAt(n);return n.ch==t.start+1&&t.string.charAt(0)=="."?(t.end=t.start,t.string=".",t.type="property"):/^\.[\w$_]*$/.test(t.string)&&(t.type="property",t.start++,t.string=t.string.replace(/\./,"")),t}function _(e,n){return O(e,S,A,n)}c.registerHelper("hint","coffeescript",_);var C="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),j="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),H="prototype apply call bind".split(" "),$="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),S="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function Q(e,n){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var t in e)n(t);else for(var r=e;r;r=Object.getPrototypeOf(r))Object.getOwnPropertyNames(r).forEach(n)}function E(e,n,t,r){var a=[],i=e.string,o=r&&r.globalScope||window;function s(y){y.lastIndexOf(i,0)==0&&!h(a,y)&&a.push(y)}function d(y){typeof y=="string"?u(C,s):y instanceof Array?u(j,s):y instanceof Function&&u(H,s),Q(y,s)}if(n&&n.length){var g=n.pop(),l;for(g.type&&g.type.indexOf("variable")===0?(r&&r.additionalContext&&(l=r.additionalContext[g.string]),(!r||r.useGlobalScope!==!1)&&(l=l||o[g.string])):g.type=="string"?l="":g.type=="atom"?l=1:g.type=="function"&&(o.jQuery!=null&&(g.string=="$"||g.string=="jQuery")&&typeof o.jQuery=="function"?l=o.jQuery():o._!=null&&g.string=="_"&&typeof o._=="function"&&(l=o._()));l!=null&&n.length;)l=l[n.pop().string];l!=null&&d(l)}else{for(var f=e.state.localVars;f;f=f.next)s(f.name);for(var m=e.state.context;m;m=m.prev)for(var f=m.vars;f;f=f.next)s(f.name);for(var f=e.state.globalVars;f;f=f.next)s(f.name);if(r&&r.additionalContext!=null)for(var I in r.additionalContext)s(I);(!r||r.useGlobalScope!==!1)&&d(o),u(t,s)}return a}})})();const k=x.exports,G=T({__proto__:null,default:k},[x.exports]);export{G as j};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as he}from"./index.f8fd6ee3.entry.js";function xe(Y,sr){for(var b=0;b<sr.length;b++){const z=sr[b];if(typeof z!="string"&&!Array.isArray(z)){for(const h in z)if(h!=="default"&&!(h in Y)){const T=Object.getOwnPropertyDescriptor(z,h);T&&Object.defineProperty(Y,h,T.get?T:{enumerable:!0,get:()=>z[h]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}var Fr={exports:{}};(function(Y,sr){(function(b){b(he.exports)})(function(b){b.defineMode("javascript",function(z,h){var T=z.indentUnit,xr=h.statementIndent,Z=h.jsonld,M=h.json||Z,vr=h.trackScope!==!1,p=h.typescript,C=h.wordCharacters||/[\w$\xa1-\uffff]/,gr=function(){function r(g){return{type:g,style:"keyword"}}var e=r("keyword a"),t=r("keyword b"),f=r("keyword c"),u=r("keyword d"),l=r("operator"),m={type:"atom",style:"atom"};return{if:r("if"),while:e,with:e,else:t,do:t,try:t,finally:t,return:u,break:u,continue:u,new:r("new"),delete:f,void:f,throw:f,debugger:r("debugger"),var:r("var"),const:r("var"),let:r("var"),function:r("function"),catch:r("catch"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:l,typeof:l,instanceof:l,true:m,false:m,null:m,undefined:m,NaN:m,Infinity:m,this:r("this"),class:r("class"),super:r("atom"),yield:f,export:r("export"),import:r("import"),extends:f,await:f}}(),yr=/[+\-*&%=<>!?|~^@]/,Dr=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Jr(r){for(var e=!1,t,f=!1;(t=r.next())!=null;){if(!e){if(t=="/"&&!f)return;t=="["?f=!0:f&&t=="]"&&(f=!1)}e=!e&&t=="\\"}}var R,rr;function w(r,e,t){return R=r,rr=t,e}function O(r,e){var t=r.next();if(t=='"'||t=="'")return e.tokenize=Lr(t),e.tokenize(r,e);if(t=="."&&r.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return w("number","number");if(t=="."&&r.match(".."))return w("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(t))return w(t);if(t=="="&&r.eat(">"))return w("=>","operator");if(t=="0"&&r.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return w("number","number");if(/\d/.test(t))return r.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),w("number","number");if(t=="/")return r.eat("*")?(e.tokenize=er,er(r,e)):r.eat("/")?(r.skipToEnd(),w("comment","comment")):Pr(r,e,1)?(Jr(r),r.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),w("regexp","string-2")):(r.eat("="),w("operator","operator",r.current()));if(t=="`")return e.tokenize=U,U(r,e);if(t=="#"&&r.peek()=="!")return r.skipToEnd(),w("meta","meta");if(t=="#"&&r.eatWhile(C))return w("variable","property");if(t=="<"&&r.match("!--")||t=="-"&&r.match("->")&&!/\S/.test(r.string.slice(0,r.start)))return r.skipToEnd(),w("comment","comment");if(yr.test(t))return(t!=">"||!e.lexical||e.lexical.type!=">")&&(r.eat("=")?(t=="!"||t=="=")&&r.eat("="):/[<>*+\-|&?]/.test(t)&&(r.eat(t),t==">"&&r.eat(t))),t=="?"&&r.eat(".")?w("."):w("operator","operator",r.current());if(C.test(t)){r.eatWhile(C);var f=r.current();if(e.lastType!="."){if(gr.propertyIsEnumerable(f)){var u=gr[f];return w(u.type,u.style,f)}if(f=="async"&&r.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return w("async","keyword",f)}return w("variable","variable",f)}}function Lr(r){return function(e,t){var f=!1,u;if(Z&&e.peek()=="@"&&e.match(Dr))return t.tokenize=O,w("jsonld-keyword","meta");for(;(u=e.next())!=null&&!(u==r&&!f);)f=!f&&u=="\\";return f||(t.tokenize=O),w("string","string")}}function er(r,e){for(var t=!1,f;f=r.next();){if(f=="/"&&t){e.tokenize=O;break}t=f=="*"}return w("comment","comment")}function U(r,e){for(var t=!1,f;(f=r.next())!=null;){if(!t&&(f=="`"||f=="$"&&r.eat("{"))){e.tokenize=O;break}t=!t&&f=="\\"}return w("quasi","string-2",r.current())}var Qr="([{}])";function cr(r,e){e.fatArrowAt&&(e.fatArrowAt=null);var t=r.string.indexOf("=>",r.start);if(!(t<0)){if(p){var f=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(r.string.slice(r.start,t));f&&(t=f.index)}for(var u=0,l=!1,m=t-1;m>=0;--m){var g=r.string.charAt(m),A=Qr.indexOf(g);if(A>=0&&A<3){if(!u){++m;break}if(--u==0){g=="("&&(l=!0);break}}else if(A>=3&&A<6)++u;else if(C.test(g))l=!0;else if(/["'\/`]/.test(g))for(;;--m){if(m==0)return;var we=r.string.charAt(m-1);if(we==g&&r.string.charAt(m-2)!="\\"){m--;break}}else if(l&&!u){++m;break}}l&&!u&&(e.fatArrowAt=m)}}var Rr={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function jr(r,e,t,f,u,l){this.indented=r,this.column=e,this.type=t,this.prev=u,this.info=l,f!=null&&(this.align=f)}function Ur(r,e){if(!vr)return!1;for(var t=r.localVars;t;t=t.next)if(t.name==e)return!0;for(var f=r.context;f;f=f.prev)for(var t=f.vars;t;t=t.next)if(t.name==e)return!0}function Er(r,e,t,f,u){var l=r.cc;for(i.state=r,i.stream=u,i.marked=null,i.cc=l,i.style=e,r.lexical.hasOwnProperty("align")||(r.lexical.align=!0);;){var m=l.length?l.pop():M?k:x;if(m(t,f)){for(;l.length&&l[l.length-1].lex;)l.pop()();return i.marked?i.marked:t=="variable"&&Ur(r,f)?"variable-2":e}}}var i={state:null,column:null,marked:null,cc:null};function o(){for(var r=arguments.length-1;r>=0;r--)i.cc.push(arguments[r])}function n(){return o.apply(null,arguments),!0}function lr(r,e){for(var t=e;t;t=t.next)if(t.name==r)return!0;return!1}function B(r){var e=i.state;if(i.marked="def",!!vr){if(e.context){if(e.lexical.info=="var"&&e.context&&e.context.block){var t=Tr(r,e.context);if(t!=null){e.context=t;return}}else if(!lr(r,e.localVars)){e.localVars=new K(r,e.localVars);return}}h.globalVars&&!lr(r,e.globalVars)&&(e.globalVars=new K(r,e.globalVars))}}function Tr(r,e){if(e)if(e.block){var t=Tr(r,e.prev);return t?t==e.prev?e:new W(t,e.vars,!0):null}else return lr(r,e.vars)?e:new W(e.prev,new K(r,e.vars),!1);else return null}function nr(r){return r=="public"||r=="private"||r=="protected"||r=="abstract"||r=="readonly"}function W(r,e,t){this.prev=r,this.vars=e,this.block=t}function K(r,e){this.name=r,this.next=e}var Wr=new K("this",new K("arguments",null));function P(){i.state.context=new W(i.state.context,i.state.localVars,!1),i.state.localVars=Wr}function dr(){i.state.context=new W(i.state.context,i.state.localVars,!0),i.state.localVars=null}function j(){i.state.localVars=i.state.context.vars,i.state.context=i.state.context.prev}j.lex=!0;function s(r,e){var t=function(){var f=i.state,u=f.indented;if(f.lexical.type=="stat")u=f.lexical.indented;else for(var l=f.lexical;l&&l.type==")"&&l.align;l=l.prev)u=l.indented;f.lexical=new jr(u,i.stream.column(),r,null,f.lexical,e)};return t.lex=!0,t}function a(){var r=i.state;r.lexical.prev&&(r.lexical.type==")"&&(r.indented=r.lexical.indented),r.lexical=r.lexical.prev)}a.lex=!0;function c(r){function e(t){return t==r?n():r==";"||t=="}"||t==")"||t=="]"?o():n(e)}return e}function x(r,e){return r=="var"?n(s("vardef",e),wr,c(";"),a):r=="keyword a"?n(s("form"),mr,x,a):r=="keyword b"?n(s("form"),x,a):r=="keyword d"?i.stream.match(/^\s*$/,!1)?n():n(s("stat"),F,c(";"),a):r=="debugger"?n(c(";")):r=="{"?n(s("}"),dr,fr,a,j):r==";"?n():r=="if"?(i.state.lexical.info=="else"&&i.state.cc[i.state.cc.length-1]==a&&i.state.cc.pop()(),n(s("form"),mr,x,a,zr)):r=="function"?n(_):r=="for"?n(s("form"),dr,Mr,x,j,a):r=="class"||p&&e=="interface"?(i.marked="keyword",n(s("form",r=="class"?r:e),$r,a)):r=="variable"?p&&e=="declare"?(i.marked="keyword",n(x)):p&&(e=="module"||e=="enum"||e=="type")&&i.stream.match(/^\s*\w/,!1)?(i.marked="keyword",e=="enum"?n(Br):e=="type"?n(Or,c("operator"),d,c(";")):n(s("form"),E,c("{"),s("}"),fr,a,a)):p&&e=="namespace"?(i.marked="keyword",n(s("form"),k,x,a)):p&&e=="abstract"?(i.marked="keyword",n(x)):n(s("stat"),Zr):r=="switch"?n(s("form"),mr,c("{"),s("}","switch"),dr,fr,a,a,j):r=="case"?n(k,c(":")):r=="default"?n(c(":")):r=="catch"?n(s("form"),P,Kr,x,a,j):r=="export"?n(s("stat"),le,a):r=="import"?n(s("stat"),de,a):r=="async"?n(x):e=="@"?n(k,x):o(s("stat"),k,c(";"),a)}function Kr(r){if(r=="(")return n(N,c(")"))}function k(r,e){return Ar(r,e,!1)}function y(r,e){return Ar(r,e,!0)}function mr(r){return r!="("?o():n(s(")"),F,c(")"),a)}function Ar(r,e,t){if(i.state.fatArrowAt==i.stream.start){var f=t?Ir:Vr;if(r=="(")return n(P,s(")"),v(N,")"),a,c("=>"),f,j);if(r=="variable")return o(P,E,c("=>"),f,j)}var u=t?D:$;return Rr.hasOwnProperty(r)?n(u):r=="function"?n(_,u):r=="class"||p&&e=="interface"?(i.marked="keyword",n(s("form"),ce,a)):r=="keyword c"||r=="async"?n(t?y:k):r=="("?n(s(")"),F,c(")"),a,u):r=="operator"||r=="spread"?n(t?y:k):r=="["?n(s("]"),pe,a,u):r=="{"?H(ir,"}",null,u):r=="quasi"?o(tr,u):r=="new"?n(Gr(t)):n()}function F(r){return r.match(/[;\}\)\],]/)?o():o(k)}function $(r,e){return r==","?n(F):D(r,e,!1)}function D(r,e,t){var f=t==!1?$:D,u=t==!1?k:y;if(r=="=>")return n(P,t?Ir:Vr,j);if(r=="operator")return/\+\+|--/.test(e)||p&&e=="!"?n(f):p&&e=="<"&&i.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?n(s(">"),v(d,">"),a,f):e=="?"?n(k,c(":"),u):n(u);if(r=="quasi")return o(tr,f);if(r!=";"){if(r=="(")return H(y,")","call",f);if(r==".")return n(Cr,f);if(r=="[")return n(s("]"),F,c("]"),a,f);if(p&&e=="as")return i.marked="keyword",n(d,f);if(r=="regexp")return i.state.lastType=i.marked="operator",i.stream.backUp(i.stream.pos-i.stream.start-1),n(u)}}function tr(r,e){return r!="quasi"?o():e.slice(e.length-2)!="${"?n(tr):n(F,Hr)}function Hr(r){if(r=="}")return i.marked="string-2",i.state.tokenize=U,n(tr)}function Vr(r){return cr(i.stream,i.state),o(r=="{"?x:k)}function Ir(r){return cr(i.stream,i.state),o(r=="{"?x:y)}function Gr(r){return function(e){return e=="."?n(r?Yr:Xr):e=="variable"&&p?n(fe,r?D:$):o(r?y:k)}}function Xr(r,e){if(e=="target")return i.marked="keyword",n($)}function Yr(r,e){if(e=="target")return i.marked="keyword",n(D)}function Zr(r){return r==":"?n(a,x):o($,c(";"),a)}function Cr(r){if(r=="variable")return i.marked="property",n()}function ir(r,e){if(r=="async")return i.marked="property",n(ir);if(r=="variable"||i.style=="keyword"){if(i.marked="property",e=="get"||e=="set")return n(re);var t;return p&&i.state.fatArrowAt==i.stream.start&&(t=i.stream.match(/^\s*:\s*/,!1))&&(i.state.fatArrowAt=i.stream.pos+t[0].length),n(q)}else{if(r=="number"||r=="string")return i.marked=Z?"property":i.style+" property",n(q);if(r=="jsonld-keyword")return n(q);if(p&&nr(e))return i.marked="keyword",n(ir);if(r=="[")return n(k,J,c("]"),q);if(r=="spread")return n(y,q);if(e=="*")return i.marked="keyword",n(ir);if(r==":")return o(q)}}function re(r){return r!="variable"?o(q):(i.marked="property",n(_))}function q(r){if(r==":")return n(y);if(r=="(")return o(_)}function v(r,e,t){function f(u,l){if(t?t.indexOf(u)>-1:u==","){var m=i.state.lexical;return m.info=="call"&&(m.pos=(m.pos||0)+1),n(function(g,A){return g==e||A==e?o():o(r)},f)}return u==e||l==e?n():t&&t.indexOf(";")>-1?o(r):n(c(e))}return function(u,l){return u==e||l==e?n():o(r,f)}}function H(r,e,t){for(var f=3;f<arguments.length;f++)i.cc.push(arguments[f]);return n(s(e,t),v(r,e),a)}function fr(r){return r=="}"?n():o(x,fr)}function J(r,e){if(p){if(r==":")return n(d);if(e=="?")return n(J)}}function ee(r,e){if(p&&(r==":"||e=="in"))return n(d)}function Sr(r){if(p&&r==":")return i.stream.match(/^\s*\w+\s+is\b/,!1)?n(k,ne,d):n(d)}function ne(r,e){if(e=="is")return i.marked="keyword",n()}function d(r,e){if(e=="keyof"||e=="typeof"||e=="infer"||e=="readonly")return i.marked="keyword",n(e=="typeof"?y:d);if(r=="variable"||e=="void")return i.marked="type",n(V);if(e=="|"||e=="&")return n(d);if(r=="string"||r=="number"||r=="atom")return n(V);if(r=="[")return n(s("]"),v(d,"]",","),a,V);if(r=="{")return n(s("}"),pr,a,V);if(r=="(")return n(v(br,")"),te,V);if(r=="<")return n(v(d,">"),d);if(r=="quasi")return o(kr,V)}function te(r){if(r=="=>")return n(d)}function pr(r){return r.match(/[\}\)\]]/)?n():r==","||r==";"?n(pr):o(G,pr)}function G(r,e){if(r=="variable"||i.style=="keyword")return i.marked="property",n(G);if(e=="?"||r=="number"||r=="string")return n(G);if(r==":")return n(d);if(r=="[")return n(c("variable"),ee,c("]"),G);if(r=="(")return o(Q,G);if(!r.match(/[;\}\)\],]/))return n()}function kr(r,e){return r!="quasi"?o():e.slice(e.length-2)!="${"?n(kr):n(d,ie)}function ie(r){if(r=="}")return i.marked="string-2",i.state.tokenize=U,n(kr)}function br(r,e){return r=="variable"&&i.stream.match(/^\s*[?:]/,!1)||e=="?"?n(br):r==":"?n(d):r=="spread"?n(br):o(d)}function V(r,e){if(e=="<")return n(s(">"),v(d,">"),a,V);if(e=="|"||r=="."||e=="&")return n(d);if(r=="[")return n(d,c("]"),V);if(e=="extends"||e=="implements")return i.marked="keyword",n(d);if(e=="?")return n(d,c(":"),d)}function fe(r,e){if(e=="<")return n(s(">"),v(d,">"),a,V)}function ar(){return o(d,ae)}function ae(r,e){if(e=="=")return n(d)}function wr(r,e){return e=="enum"?(i.marked="keyword",n(Br)):o(E,J,S,oe)}function E(r,e){if(p&&nr(e))return i.marked="keyword",n(E);if(r=="variable")return B(e),n();if(r=="spread")return n(E);if(r=="[")return H(ue,"]");if(r=="{")return H(_r,"}")}function _r(r,e){return r=="variable"&&!i.stream.match(/^\s*:/,!1)?(B(e),n(S)):(r=="variable"&&(i.marked="property"),r=="spread"?n(E):r=="}"?o():r=="["?n(k,c("]"),c(":"),_r):n(c(":"),E,S))}function ue(){return o(E,S)}function S(r,e){if(e=="=")return n(y)}function oe(r){if(r==",")return n(wr)}function zr(r,e){if(r=="keyword b"&&e=="else")return n(s("form","else"),x,a)}function Mr(r,e){if(e=="await")return n(Mr);if(r=="(")return n(s(")"),se,a)}function se(r){return r=="var"?n(wr,L):r=="variable"?n(L):o(L)}function L(r,e){return r==")"?n():r==";"?n(L):e=="in"||e=="of"?(i.marked="keyword",n(k,L)):o(k,L)}function _(r,e){if(e=="*")return i.marked="keyword",n(_);if(r=="variable")return B(e),n(_);if(r=="(")return n(P,s(")"),v(N,")"),a,Sr,x,j);if(p&&e=="<")return n(s(">"),v(ar,">"),a,_)}function Q(r,e){if(e=="*")return i.marked="keyword",n(Q);if(r=="variable")return B(e),n(Q);if(r=="(")return n(P,s(")"),v(N,")"),a,Sr,j);if(p&&e=="<")return n(s(">"),v(ar,">"),a,Q)}function Or(r,e){if(r=="keyword"||r=="variable")return i.marked="type",n(Or);if(e=="<")return n(s(">"),v(ar,">"),a)}function N(r,e){return e=="@"&&n(k,N),r=="spread"?n(N):p&&nr(e)?(i.marked="keyword",n(N)):p&&r=="this"?n(J,S):o(E,J,S)}function ce(r,e){return r=="variable"?$r(r,e):ur(r,e)}function $r(r,e){if(r=="variable")return B(e),n(ur)}function ur(r,e){if(e=="<")return n(s(">"),v(ar,">"),a,ur);if(e=="extends"||e=="implements"||p&&r==",")return e=="implements"&&(i.marked="keyword"),n(p?d:k,ur);if(r=="{")return n(s("}"),I,a)}function I(r,e){if(r=="async"||r=="variable"&&(e=="static"||e=="get"||e=="set"||p&&nr(e))&&i.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return i.marked="keyword",n(I);if(r=="variable"||i.style=="keyword")return i.marked="property",n(X,I);if(r=="number"||r=="string")return n(X,I);if(r=="[")return n(k,J,c("]"),X,I);if(e=="*")return i.marked="keyword",n(I);if(p&&r=="(")return o(Q,I);if(r==";"||r==",")return n(I);if(r=="}")return n();if(e=="@")return n(k,I)}function X(r,e){if(e=="!"||e=="?")return n(X);if(r==":")return n(d,S);if(e=="=")return n(y);var t=i.state.lexical.prev,f=t&&t.info=="interface";return o(f?Q:_)}function le(r,e){return e=="*"?(i.marked="keyword",n(hr,c(";"))):e=="default"?(i.marked="keyword",n(k,c(";"))):r=="{"?n(v(qr,"}"),hr,c(";")):o(x)}function qr(r,e){if(e=="as")return i.marked="keyword",n(c("variable"));if(r=="variable")return o(y,qr)}function de(r){return r=="string"?n():r=="("?o(k):r=="."?o($):o(or,Nr,hr)}function or(r,e){return r=="{"?H(or,"}"):(r=="variable"&&B(e),e=="*"&&(i.marked="keyword"),n(me))}function Nr(r){if(r==",")return n(or,Nr)}function me(r,e){if(e=="as")return i.marked="keyword",n(or)}function hr(r,e){if(e=="from")return i.marked="keyword",n(k)}function pe(r){return r=="]"?n():o(v(y,"]"))}function Br(){return o(s("form"),E,c("{"),s("}"),v(ke,"}"),a,a)}function ke(){return o(E,S)}function be(r,e){return r.lastType=="operator"||r.lastType==","||yr.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}function Pr(r,e,t){return e.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||e.lastType=="quasi"&&/\{\s*$/.test(r.string.slice(0,r.pos-(t||0)))}return{startState:function(r){var e={tokenize:O,lastType:"sof",cc:[],lexical:new jr((r||0)-T,0,"block",!1),localVars:h.localVars,context:h.localVars&&new W(null,null,!1),indented:r||0};return h.globalVars&&typeof h.globalVars=="object"&&(e.globalVars=h.globalVars),e},token:function(r,e){if(r.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=r.indentation(),cr(r,e)),e.tokenize!=er&&r.eatSpace())return null;var t=e.tokenize(r,e);return R=="comment"?t:(e.lastType=R=="operator"&&(rr=="++"||rr=="--")?"incdec":R,Er(e,t,R,rr,r))},indent:function(r,e){if(r.tokenize==er||r.tokenize==U)return b.Pass;if(r.tokenize!=O)return 0;var t=e&&e.charAt(0),f=r.lexical,u;if(!/^\s*else\b/.test(e))for(var l=r.cc.length-1;l>=0;--l){var m=r.cc[l];if(m==a)f=f.prev;else if(m!=zr&&m!=j)break}for(;(f.type=="stat"||f.type=="form")&&(t=="}"||(u=r.cc[r.cc.length-1])&&(u==$||u==D)&&!/^[,\.=+\-*:?[\(]/.test(e));)f=f.prev;xr&&f.type==")"&&f.prev.type=="stat"&&(f=f.prev);var g=f.type,A=t==g;return g=="vardef"?f.indented+(r.lastType=="operator"||r.lastType==","?f.info.length+1:0):g=="form"&&t=="{"?f.indented:g=="form"?f.indented+T:g=="stat"?f.indented+(be(r,e)?xr||T:0):f.info=="switch"&&!A&&h.doubleIndentSwitch!=!1?f.indented+(/^(?:case|default)\b/.test(e)?T:2*T):f.align?f.column+(A?0:1):f.indented+(A?0:T)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:M?null:"/*",blockCommentEnd:M?null:"*/",blockCommentContinue:M?null:" * ",lineComment:M?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:M?"json":"javascript",jsonldMode:Z,jsonMode:M,expressionAllowed:Pr,skipExpression:function(r){Er(r,"atom","atom","true",new b.StringStream("",2,null))}}}),b.registerHelper("wordChars","javascript",/[\w$]/),b.defineMIME("text/javascript","javascript"),b.defineMIME("text/ecmascript","javascript"),b.defineMIME("application/javascript","javascript"),b.defineMIME("application/x-javascript","javascript"),b.defineMIME("application/ecmascript","javascript"),b.defineMIME("application/json",{name:"javascript",json:!0}),b.defineMIME("application/x-json",{name:"javascript",json:!0}),b.defineMIME("application/manifest+json",{name:"javascript",json:!0}),b.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),b.defineMIME("text/typescript",{name:"javascript",typescript:!0}),b.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();const ve=Fr.exports,ye=xe({__proto__:null,default:ve},[Fr.exports]);export{Fr as a,ye as j};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as p}from"./index.f8fd6ee3.entry.js";function b(c,u){for(var o=0;o<u.length;o++){const i=u[o];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in c)){const f=Object.getOwnPropertyDescriptor(i,r);f&&Object.defineProperty(c,r,f.get?f:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(c,u){(function(o){o(p.exports)})(function(o){o.defineMode("jinja2",function(){var i=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],r=/^[+\-*&%=<>!?|~^]/,f=/^[:\[\(\{]/,l=["true","false"],a=/^(\d[+\-\*\/])?\d+(\.\d+)?/;i=new RegExp("(("+i.join(")|(")+"))\\b"),l=new RegExp("(("+l.join(")|(")+"))\\b");function d(e,n){var t=e.peek();if(n.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(n.intag){if(n.operator){if(n.operator=!1,e.match(l))return"atom";if(e.match(a))return"number"}if(n.sign){if(n.sign=!1,e.match(l))return"atom";if(e.match(a))return"number"}if(n.instring)return t==n.instring&&(n.instring=!1),e.next(),"string";if(t=="'"||t=='"')return n.instring=t,e.next(),"string";if(e.match(n.intag+"}")||e.eat("-")&&e.match(n.intag+"}"))return n.intag=!1,"tag";if(e.match(r))return n.operator=!0,"operator";if(e.match(f))n.sign=!0;else if(e.eat(" ")||e.sol()){if(e.match(i))return"keyword";if(e.match(l))return"atom";if(e.match(a))return"number";e.sol()&&e.next()}else e.next();return"variable"}else if(e.eat("{")){if(e.eat("#"))return n.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(t=e.eat(/\{|%/))return n.intag=t,t=="{"&&(n.intag="}"),e.eat("-"),"tag"}e.next()}return{startState:function(){return{tokenize:d}},token:function(e,n){return n.tokenize(e,n)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),o.defineMIME("text/jinja2","jinja2")})})();const s=g.exports,k=b({__proto__:null,default:s},[g.exports]);export{k as j};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as x,B as w}from"./index.f8fd6ee3.entry.js";import{a as S}from"./javascript.705102e7.js";function O(l,v){for(var r=0;r<v.length;r++){const s=v[r];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in l)){const i=Object.getOwnPropertyDescriptor(s,u);i&&Object.defineProperty(l,u,i.get?i:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(l,v){(function(r){r(x.exports,w(),S.exports)})(function(r){function s(i,c,o,a){this.state=i,this.mode=c,this.depth=o,this.prev=a}function u(i){return new s(r.copyState(i.mode,i.state),i.mode,i.depth,i.prev&&u(i.prev))}r.defineMode("jsx",function(i,c){var o=r.getMode(i,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=r.getMode(i,c&&c.base||"javascript");function j(e){var n=e.tagName;e.tagName=null;var t=o.indent(e,"","");return e.tagName=n,t}function g(e,n){return n.context.mode==o?y(e,n,n.context):b(e,n,n.context)}function y(e,n,t){if(t.depth==2)return e.match(/^.*?\*\//)?t.depth=1:e.skipToEnd(),"comment";if(e.peek()=="{"){o.skipAttribute(t.state);var f=j(t.state),p=t.state.context;if(p&&e.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?f-=i.indentUnit:t.prev.state.lexical&&(f=t.prev.state.lexical.indented)}else t.depth==1&&(f+=i.indentUnit);return n.context=new s(r.startState(a,f),a,0,n.context),null}if(t.depth==1){if(e.peek()=="<")return o.skipAttribute(t.state),n.context=new s(r.startState(o,j(t.state)),o,0,n.context),null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.depth=2,g(e,n)}var h=o.token(e,t.state),d=e.current(),k;return/\btag\b/.test(h)?/>$/.test(d)?t.state.context?t.depth=0:n.context=n.context.prev:/^</.test(d)&&(t.depth=1):!h&&(k=d.indexOf("{"))>-1&&e.backUp(d.length-k),h}function b(e,n,t){if(e.peek()=="<"&&a.expressionAllowed(e,t.state))return n.context=new s(r.startState(o,a.indent(t.state,"","")),o,0,n.context),a.skipExpression(t.state),null;var f=a.token(e,t.state);if(!f&&t.depth!=null){var p=e.current();p=="{"?t.depth++:p=="}"&&--t.depth==0&&(n.context=n.context.prev)}return f}return{startState:function(){return{context:new s(r.startState(a),a)}},copyState:function(e){return{context:u(e.context)}},token:g,indent:function(e,n,t){return e.context.mode.indent(e.context.state,n,t)},innerMode:function(e){return e.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();const T=m.exports,E=O({__proto__:null,default:T},[m.exports]);export{E as j};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as H}from"./index.f8fd6ee3.entry.js";function J(p,s){for(var u=0;u<s.length;u++){const f=s[u];if(typeof f!="string"&&!Array.isArray(f)){for(const t in f)if(t!=="default"&&!(t in p)){const o=Object.getOwnPropertyDescriptor(f,t);o&&Object.defineProperty(p,t,o.get?o:{enumerable:!0,get:()=>f[t]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(p,s){(function(u){u(H.exports)})(function(u){u.defineMode("julia",function(f,t){function o(n,e,i){return typeof i>"u"&&(i=""),typeof e>"u"&&(e="\\b"),new RegExp("^"+i+"(("+n.join(")|(")+"))"+e)}var b="\\\\[0-7]{1,3}",m="\\\\x[A-Fa-f0-9]{1,2}",y=`\\\\[abefnrtv0%?'"\\\\]`,x="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",h=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],z=t.operators||o(["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),_=t.delimiters||/^[;,()[\]{}]/,A=t.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,E=o([b,m,y,x],"'"),w=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],C=["end","else","elseif","catch","finally"],d=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],v=["true","false","nothing","NaN","Inf"];u.registerHelper("hintWords","julia",d.concat(v));var j=o(w),D=o(C),P=o(d),T=o(v),O=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,S=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,B=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,$=o(h,"","@"),G=o(h,"",":");function k(n){return n.nestedArrays>0}function I(n){return n.nestedGenerators>0}function F(n,e){return typeof e>"u"&&(e=0),n.scopes.length<=e?null:n.scopes[n.scopes.length-(e+1)]}function a(n,e){if(n.match("#=",!1))return e.tokenize=N,e.tokenize(n,e);var i=e.leavingExpr;if(n.sol()&&(i=!1),e.leavingExpr=!1,i&&n.match(/^'+/))return"operator";if(n.match(/\.{4,}/))return"error";if(n.match(/\.{1,3}/))return"operator";if(n.eatSpace())return null;var r=n.peek();if(r==="#")return n.skipToEnd(),"comment";if(r==="["&&(e.scopes.push("["),e.nestedArrays++),r==="("&&(e.scopes.push("("),e.nestedGenerators++),k(e)&&r==="]"){for(;e.scopes.length&&F(e)!=="[";)e.scopes.pop();e.scopes.pop(),e.nestedArrays--,e.leavingExpr=!0}if(I(e)&&r===")"){for(;e.scopes.length&&F(e)!=="(";)e.scopes.pop();e.scopes.pop(),e.nestedGenerators--,e.leavingExpr=!0}if(k(e)){if(e.lastToken=="end"&&n.match(":"))return"operator";if(n.match("end"))return"number"}var c;if((c=n.match(j,!1))&&e.scopes.push(c[0]),n.match(D,!1)&&e.scopes.pop(),n.match(/^::(?![:\$])/))return e.tokenize=Z,e.tokenize(n,e);if(!i&&(n.match(S)||n.match(G)))return"builtin";if(n.match(z))return"operator";if(n.match(/^\.?\d/,!1)){var U=RegExp(/^im\b/),l=!1;if(n.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(l=!0),n.match(/^0x[0-9a-f_]+/i)&&(l=!0),n.match(/^0b[01_]+/i)&&(l=!0),n.match(/^0o[0-7_]+/i)&&(l=!0),n.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(l=!0),n.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(l=!0),l)return n.match(U),e.leavingExpr=!0,"number"}if(n.match("'"))return e.tokenize=R,e.tokenize(n,e);if(n.match(B))return e.tokenize=q(n.current()),e.tokenize(n,e);if(n.match(O)||n.match($))return"meta";if(n.match(_))return null;if(n.match(P))return"keyword";if(n.match(T))return"builtin";var W=e.isDefinition||e.lastToken=="function"||e.lastToken=="macro"||e.lastToken=="type"||e.lastToken=="struct"||e.lastToken=="immutable";return n.match(A)?W?n.peek()==="."?(e.isDefinition=!0,"variable"):(e.isDefinition=!1,"def"):(e.leavingExpr=!0,"variable"):(n.next(),"error")}function Z(n,e){return n.match(/.*?(?=[,;{}()=\s]|$)/),n.match("{")?e.nestedParameters++:n.match("}")&&e.nestedParameters>0&&e.nestedParameters--,e.nestedParameters>0?n.match(/.*?(?={|})/)||n.next():e.nestedParameters==0&&(e.tokenize=a),"builtin"}function N(n,e){return n.match("#=")&&e.nestedComments++,n.match(/.*?(?=(#=|=#))/)||n.skipToEnd(),n.match("=#")&&(e.nestedComments--,e.nestedComments==0&&(e.tokenize=a)),"comment"}function R(n,e){var i=!1,r;if(n.match(E))i=!0;else if(r=n.match(/\\u([a-f0-9]{1,4})(?=')/i)){var c=parseInt(r[1],16);(c<=55295||c>=57344)&&(i=!0,n.next())}else if(r=n.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var c=parseInt(r[1],16);c<=1114111&&(i=!0,n.next())}return i?(e.leavingExpr=!0,e.tokenize=a,"string"):(n.match(/^[^']+(?=')/)||n.skipToEnd(),n.match("'")&&(e.tokenize=a),"error")}function q(n){n.substr(-3)==='"""'?n='"""':n.substr(-1)==='"'&&(n='"');function e(i,r){if(i.eat("\\"))i.next();else{if(i.match(n))return r.tokenize=a,r.leavingExpr=!0,"string";i.eat(/[`"]/)}return i.eatWhile(/[^\\`"]/),"string"}return e}var M={startState:function(){return{tokenize:a,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(n,e){var i=e.tokenize(n,e),r=n.current();return r&&i&&(e.lastToken=r),i},indent:function(n,e){var i=0;return(e==="]"||e===")"||/^end\b/.test(e)||/^else/.test(e)||/^catch\b/.test(e)||/^elseif\b/.test(e)||/^finally/.test(e))&&(i=-1),(n.scopes.length+i)*f.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return M}),u.defineMIME("text/x-julia","julia")})})();const K=g.exports,V=J({__proto__:null,default:K},[g.exports]);export{V as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,o as u,b as d,w as l,l as e,E as t,e as n}from"./runtime-core.esm-bundler.fe249c5c.js";const c={class:"markdown-body"},h=e("blockquote",null,[e("p",null,"Layouts are customized displays for viewing and interacting with the Items in a Collection. This makes working with some general category of data model, such as map locations or calendar events, a more human-friendly experience.")],-1),p=e("h2",{id:"what%E2%80%99s-a-layout%3F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#what%E2%80%99s-a-layout%3F"},"#"),t(" What\u2019s a Layout?")],-1),g=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Layouts Montage"},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/layouts-montage-20220419A.mp4",type:"video/mp4"})],-1),m=e("p",null,[t("Data models vary drastically in shape and purpose, from eCommerce platforms to IoT fleets and everything in between. While your Directus Project data may be stored in Collections "),e("em",null,"(i.e. SQL data tables)"),t(", this table representation is not always the most human-friendly way to interact with information. Layouts provide more human-friendly, intuitive displays to view and interact with Items in a Collection.")],-1),y=e("a",{href:"https://discord.com/invite/directus",target:"_blank",rel:"noopener noreferrer"},"Discord",-1),_=e("a",{href:"https://github.com/directus/directus/discussions",target:"_blank",rel:"noopener noreferrer"},"GitHub",-1),f=e("h2",{id:"how-it-works",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#how-it-works"},"#"),t(" How it Works")],-1),b=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Adjust Item Layouts"},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/adjust-page-layout-20220415A.mp4",type:"video/mp4"})],-1),C=e("p",null,"To adjust an Item\u2019s Layout, follow the steps below.",-1),w=e("ol",null,[e("li",null,"Navigate to the Content Module and select the desired Collection."),e("li",null,[t("In the page Sidebar, click "),e("strong",null,"\u201CLayout Options\u201D"),t(".")]),e("li",null,"Choose the desired Layout you want to use."),e("li",null,"Customize the Layout as desired.")],-1),L=e("h3",{id:"customization-controls",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#customization-controls"},"#"),t(" Customization Controls")],-1),v=e("p",null,"Customization controls can be found in the following three locations.",-1),I=e("ul",null,[e("li",null,[e("strong",null,"Layout Options"),t(" \u2014 Located in the Sidebar.")]),e("li",null,[e("strong",null,"Subheader"),t(" \u2014 Located just below the Page Header and above the Page Area.")]),e("li",null,[e("strong",null,"Page Area"),t(" \u2014 The center of the webpage, which displays all Items.")])],-1),k=e("p",null,"These controls typically fall into three general categories.",-1),S=e("ul",null,[e("li",null,[e("p",null,[e("strong",null,"Styling and Formatting"),e("br"),t(" These are additional customizations to the way a Layout displays such as the size of each Item, how images are cropped, etc.")])]),e("li",null,[e("p",null,[e("strong",null,"Field Values Displayed"),e("br"),t(" Most Layouts allow you to choose which Field Value(s) are used to represent each Item on the Collection Page. For example, with blog posts, it may be ideal to have the hero image, blog title, date, author, etc.")])]),e("li",null,[e("p",null,[e("strong",null,"Manual and Automatic Sorting"),e("br"),t(" Certain Layouts may allow sorting Items by value in ascending and descending order, drag-and-drop repositioning of Items, etc.")])])],-1),T=e("h3",{id:"key-takeaways",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#key-takeaways"},"#"),t(" Key Takeaways")],-1),F=e("p",null,"As you go through Layouts, it may be helpful to keep the following points in mind.",-1),A=e("ul",null,[e("li",null,[e("p",null,[e("strong",null,"Layouts will not be universally usable for all Collections."),e("br"),t(" Layouts are tailored to work with specific data-models. For example, in order to work properly, the Map Layout requires the Collection have a Map Field configured and the Calendar Layout requires the Collection have a datetime Field configured.")])]),e("li",null,[e("p",null,[e("strong",null,"Controls are different for each Layout."),e("br"),t(" Each Layout presents data differently, so certain customizations may not be functional with certain Layouts. For example, the Map Layout displays each Item as a pin on a map, so this Layout has no controls for sorting.")])]),e("li",null,[e("p",null,[e("strong",null,"Controls for a Layout may be in different locations."),e("br"),t(" Depending on the Layout, the same control may be under Layout Options in the sidebar, the subheader, or on the Page Area "),e("em",null,"(and Items themselves)"),t(". For example, the Table Layout lets you set the Field Values displayed in the subheader while the Card Layout lets you set Field Values displayed in the Layout Options menu.")])])],-1),x=e("h2",{id:"table-layout",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#table-layout"},"#"),t(" Table Layout")],-1),D=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/table-layout.webp",alt:"Table Layout"})],-1),P=e("p",null,"This Layout supports all forms of data, as it directly reflects how data is stored in a Collection. This is the default Layout used in the Content Module. It includes the following controls.",-1),z=e("p",null,[e("strong",null,"Layout Options")],-1),M=e("ul",null,[e("li",null,[e("strong",null,"Spacing"),t(" \u2014 Adjust the vertical space a row takes up.")])],-1),j=e("p",null,[e("strong",null,"Subheader")],-1),O=e("ul",null,[e("li",null,[e("strong",null,"Adjust Column Width"),t(" \u2014 Click and drag the column divider to resize as desired.")]),e("li",null,[e("strong",null,"Add Field"),t(" \u2014 Select "),e("span",{mi:"",icon:""},"add"),t(" in the page subheader and select the desired Field(s).")]),e("li",null,[e("strong",null,"Remove Field"),t(" \u2014 Select "),e("span",{mi:"",icon:""},"arrow_drop_down"),t(" in the column title and click "),e("strong",null,"\u201CHide Field\u201D"),t(".")]),e("li",null,[e("strong",null,"Sort Items by Column"),t(" \u2014 Select "),e("span",{mi:"",icon:""},"arrow_drop_down"),t(" in the column title and sort ascending or descending.")]),e("li",null,[e("strong",null,"Set Text Alignment"),t(" \u2014 Select "),e("span",{mi:"",icon:""},"arrow_drop_down"),t(" in the column title and set left, right, or center.")]),e("li",null,[e("strong",null,"Toggle & Reorder Columns"),t(" \u2014 Click the column header, then drag-and-drop as desired.")]),e("li",null,[e("strong",null,"Select All"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"check_box_outline_blank"),t(" in the selection column header.")])],-1),E=e("p",null,[e("strong",null,"Page Area")],-1),q=e("ul",null,[e("li",null,[e("strong",null,"Select Item(s)"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"check_box_outline_blank"),t(" in the selection column for the desired Item(s).")]),e("li",null,[e("strong",null,"Manually Sort Items"),t(" \u2014 Toggle "),e("span",{mi:"",icon:""},"sort"),t(" in the configured Sort column to drag and drop "),e("span",{mi:"",icon:""},"drag_handle"),t(" Items.")])],-1),B={class:"warning hint"},R=e("div",{class:"hint-title"},"Manual Sorting Requires Configuration",-1),N=e("h2",{id:"card-layout",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#card-layout"},"#"),t(" Card Layout")],-1),V=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/card-layout-20220416A.webp",alt:"Card Layout"})],-1),G=e("em",null,"(e.g. a user or blog post)",-1),K=e("p",null,[e("strong",null,"Layout Options")],-1),U=e("ul",null,[e("li",null,[e("strong",null,"Image Source"),t(" \u2014 Set the Field used as the display image.")]),e("li",null,[e("strong",null,"Title"),t(" \u2014 Set a mix of Field values and text to use as a title.")]),e("li",null,[e("strong",null,"Subtitle"),t(" \u2014 Set a mix of Field values and text to use as a subtitle.")]),e("li",null,[e("strong",null,"Image Fit"),t(" \u2014 Set how an image fits inside the Card.")]),e("li",null,[e("strong",null,"Fallback Icon"),t(" \u2014 Set a default icon to display when an Item has no image.")])],-1),W=e("p",null,[e("strong",null,"Subheader")],-1),H=e("ul",null,[e("li",null,[e("strong",null,"Card Size"),t(" \u2014 Toggle the Card size as it appears in the Page Area.")]),e("li",null,[e("strong",null,"Sort Field"),t(" \u2014 Click to select the Field you wish to sort by from the dropdown menu.")]),e("li",null,[e("strong",null,"Sort Direction"),t(" \u2014 Toggle ascending and descending sort directions.")]),e("li",null,[e("strong",null,"Select All"),t(" \u2014 Click "),e("strong",null,[t("\u201C"),e("span",{mi:"",icon:""},"check_circle"),t(" Select All\u201D")]),t(" in the selection column header.")])],-1),Y=e("p",null,[e("strong",null,"Page Area")],-1),Z=e("ul",null,[e("li",null,[e("strong",null,"Select Item(s)"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"radio_button_unchecked"),t(" in the selection column for the desired Item(s).")]),e("li",null,[e("strong",null,"Adjust Time"),t(" \u2014 Click and drag an Item to change its time.")])],-1),J=e("h2",{id:"calendar-layout",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#calendar-layout"},"#"),t(" Calendar Layout")],-1),Q=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/calendar-layout-20220416A.webp",alt:"Calendar Layout"})],-1),X=e("p",null,[t("This Layout is ideal for Collections with time-oriented data "),e("em",null,"(e.g. events and appointments)"),t(". It includes the following controls.")],-1),$=e("p",null,[e("strong",null,"Layout Options")],-1),ee=e("ul",null,[e("li",null,[e("strong",null,"Display Template"),t(" \u2014 Set a mix of Field values and text to represent Items on the calendar.")]),e("li",null,[e("strong",null,"Start Date Field"),t(" \u2014 Choose Field to determine each Item\u2019s beginning time on the calendar.")]),e("li",null,[e("strong",null,"End Date Field"),t(" \u2014 Choose Field to determine each Item\u2019s ending time on the calendar.")])],-1),te=e("p",null,[e("strong",null,"Subheader")],-1),le=e("ul",null,[e("li",null,[e("strong",null,"Toggle Month and Year"),t(" \u2014 Move across time using the chevrons in the subheader.")]),e("li",null,[e("strong",null,"Today"),t(" \u2014 Click to jump to the current date on the calendar.")]),e("li",null,[e("strong",null,"Month Week Day List"),t(" \u2014 Adjust the time interval used to display Items in the Page Area.")])],-1),oe=e("p",null,[e("strong",null,"Page Area")],-1),ne=e("ul",null,[e("li",null,[e("strong",null,"Select Item"),t(" \u2014 Click an Item on the calendar to open its Item Page.")])],-1),ae=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Configuration Requirements"),e("p",null,[t("To use this Layout, the Collection will need at least one datetime Field to set a start time, but ideally two "),e("em",null,"(to set a start and end time)"),t(".")])],-1),se=e("h2",{id:"map-layout",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#map-layout"},"#"),t(" Map Layout")],-1),ie=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/map-layout-20220416A.webp",alt:"Map Layout"})],-1),re=e("p",null,"This Layout is ideal for Collections that emphasize geospatial data. It provides a world map, with Items displayed as points, lines, and other geometry. The following options are available:",-1),ue=e("p",null,[e("strong",null,"Layout Options")],-1),de=e("ul",null,[e("li",null,[e("strong",null,"Basemap"),t(" \u2014 Choose the map provider used for the Collection.")]),e("li",null,[e("strong",null,"Geospatial Field"),t(" \u2014 Select the geospatial field type to display on screen: "),e("ul",null,[e("li",null,[e("strong",null,"Map JSON Point"),t(" \u2014 Supports latitude-longitude based, single-point locations.")]),e("li",null,[e("strong",null,"Map Geometry"),t(" \u2014 Supports geometric areas such as lines and polygons.")])])]),e("li",null,[e("strong",null,"Display Template"),t(" \u2014 Choose the Fields displayed when hovering over an Item on the map.")]),e("li",null,[e("strong",null,"Cluster Nearby Data"),t(" \u2014 Toggle whether or not nearby Items get clustered into a single pin.")])],-1),ce=e("p",null,[e("strong",null,"Subheader"),e("br"),e("em",null,"There is no Subheader on the Map Layout.")],-1),he=e("p",null,[e("strong",null,"Page Area")],-1),pe=e("ul",null,[e("li",null,[e("strong",null,"Zoom"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"add"),t(" and "),e("span",{mi:"",icon:""},"remove"),t(" in the upper left hand corner of the Page Area to zoom in and out.")]),e("li",null,[e("strong",null,"Zoom to my Location"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"my_location"),t(" to zoom into your current location on the map.")]),e("li",null,[e("strong",null,"Reframe"),t(" \u2014 Click the square in the upper left-hand corner to resize and reframe the map area.")]),e("li",null,[e("strong",null,"Select Item"),t(" \u2014 Click a single Item to enter its Item Page.")]),e("li",null,[e("strong",null,"Select Items"),t(" \u2014 Click and drag to select multiple Items at once, opening the Item Page.")])],-1),ge=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Configuration Requirements"),e("p",null,"To use this Layout, the Collection must have a Map Field configured.")],-1),me=e("h2",{id:"kanban-layout-%5Bcloud-exclusive%5D",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#kanban-layout-%5Bcloud-exclusive%5D"},"#"),t(" Kanban Layout [Cloud Exclusive]")],-1),ye=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/kanban-layout-20220416A.webp",alt:"Kanban Layout"})],-1),_e=e("p",null,[t("This Layout is ideal for Collections that serve as project management tools or to-do lists, where each Item represents a task, because it groups Items onto columns according to their status "),e("em",null,"(e.g. \u201CNot Started\u201D, \u201CIn Progress\u201D, \u201CUnder Review\u201D, \u201CComplete\u201D, or any other status defined)"),t(". The following controls are available.")],-1),fe=e("p",null,[e("strong",null,"Layout Options")],-1),be=e("ul",null,[e("li",null,[e("strong",null,"Group By"),t(" \u2014 Select the Field used to define Item status. See below for details.")]),e("li",null,[e("strong",null,"Card Title"),t(" \u2014 Choose a Field to serve as a title on each Item.")]),e("li",null,[e("strong",null,"Card Text"),t(" \u2014 Choose a Field to display additional text on each Item.")])],-1),Ce=e("p",null,[e("strong",null,"Layout Options > Advanced")],-1),we=e("ul",null,[e("li",null,[e("strong",null,"Card Tags"),t(" \u2014 Choose a Tag Field to be displayed on the Item.")]),e("li",null,[e("strong",null,"Card Date"),t(" \u2014 Choose a Datetime Field to be displayed on each Item.")]),e("li",null,[e("strong",null,"Card Image"),t(" \u2014 Choose an Image Field to be displayed on each Item.")]),e("li",null,[e("strong",null,"Card Image Fit"),t(" \u2014 Toggle whether the image fit is cropped.")]),e("li",null,[e("strong",null,"Card User"),t(" \u2014 Choose the User Created Field to display their avatar in the bottom right corner.")]),e("li",null,[e("strong",null,"Show Ungrouped"),t(" \u2014 Toggle display of a column containing Items with no assigned status.")])],-1),Le=e("p",null,[e("strong",null,"Subheader"),e("br"),e("em",null,"There is no Subheader for the Kanban Layout.")],-1),ve=e("p",null,[e("strong",null,"Page Area")],-1),Ie=e("ul",null,[e("li",null,[e("strong",null,"Create Task and Assign Status"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"add"),t(" in a status column and the Item Page will open.")]),e("li",null,[e("strong",null,"Sort Panels"),t(" \u2014 Drag and drop Items to reposition or change task status.")]),e("li",null,[e("strong",null,"Add Status Panel"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"add_box"),t(" and add a group name (i.e. new status column).")]),e("li",null,[e("strong",null,"Edit or Delete Status Column"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"more_horiz"),t(" and then click "),e("span",{mi:"",icon:""},"edit"),t(" to edit or "),e("span",{mi:"",icon:""},"delete"),t(" to delete.")])],-1),ke=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Configuration Requirements"),e("p",null,[t("To make this Layout work, you will need to configure an appropriate status Field on the Collection, then identify this Field under "),e("strong",null,"\u201CGroup By\u201D"),t(" in the Layout Options menu.")])],-1),xe="Layouts",De=!1,Pe="Layouts are customized displays for viewing and interacting with the Items in a Collection.",ze="9 min read",Me={__name:"layouts",setup(Se,{expose:i}){const a={title:"Layouts",modularExtension:!1,description:"Layouts are customized displays for viewing and interacting with the Items in a Collection.",readTime:"9 min read"};return i({frontmatter:a}),(Te,Fe)=>{const o=s("router-link"),r=s("docs-wrapper");return u(),d(r,{frontmatter:a},{default:l(()=>[e("div",c,[h,p,g,m,e("p",null,[t("The following sections detail the Layouts managed and supported by the Directus Team. Keep in mind that Directus is open-source, modular and extensible. You are free to create any Layout you need on self-hosted and Enterprise Cloud Projects. Additionally, Directus Cloud is always adding more Layouts to its "),n(o,{to:"/docs/cloud/glossary#extensions"},{default:l(()=>[t("Cloud Exclusive Extensions")]),_:1}),t(", so check back often to stay up-to-date with the latest and greatest. Additionally, you can join the community on "),y,t(" and "),_,t(" to find thousands of engineers guiding development of the Directus platform.")]),f,b,C,w,L,v,I,k,S,T,F,A,x,D,P,z,M,j,O,E,q,e("div",B,[R,e("p",null,[t("Only available if you "),n(o,{to:"/docs/configuration/data-model/collections#sort-field"},{default:l(()=>[t("configure a sort field")]),_:1}),t(" in the Collection\u2019s Data Model Settings.")])]),N,V,e("p",null,[t("This tiled Layout is ideal for Collections that prioritize an image "),G,t(". This is the default for both the "),n(o,{to:"/docs/app/user-directory"},{default:l(()=>[t("User Directory")]),_:1}),t(" and "),n(o,{to:"/docs/app/file-library"},{default:l(()=>[t("File Library")]),_:1}),t(". It includes the following controls.")]),K,U,W,H,Y,Z,J,Q,X,$,ee,te,le,oe,ne,ae,se,ie,re,ue,de,ce,he,pe,ge,me,ye,_e,fe,be,Ce,we,Le,ve,Ie,ke])]),_:1})}}};export{Me as default,Pe as description,De as modularExtension,ze as readTime,xe as title};
|
|
1
|
+
import{a as s,o as r,e as d,y as l,u as e,q as t,z as n}from"./runtime-core.esm-bundler.22ec0346.js";const c={class:"markdown-body"},h=e("blockquote",null,[e("p",null,"Layouts are customized displays for viewing and interacting with the Items in a Collection. This makes working with some general category of data model, such as map locations or calendar events, a more human-friendly experience.")],-1),p=e("h2",{id:"what%E2%80%99s-a-layout%3F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#what%E2%80%99s-a-layout%3F"},"#"),t(" What\u2019s a Layout?")],-1),g=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Layouts Montage"},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/layouts-montage-20220419A.mp4",type:"video/mp4"})],-1),m=e("p",null,[t("Data models vary drastically in shape and purpose, from eCommerce platforms to IoT fleets and everything in between. While your Directus Project data may be stored in Collections "),e("em",null,"(i.e. SQL data tables)"),t(", this table representation is not always the most human-friendly way to interact with information. Layouts provide more human-friendly, intuitive displays to view and interact with Items in a Collection.")],-1),y=e("a",{href:"https://discord.com/invite/directus",target:"_blank",rel:"noopener noreferrer"},"Discord",-1),_=e("a",{href:"https://github.com/directus/directus/discussions",target:"_blank",rel:"noopener noreferrer"},"GitHub",-1),f=e("h2",{id:"how-it-works",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#how-it-works"},"#"),t(" How it Works")],-1),b=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Adjust Item Layouts"},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/adjust-page-layout-20220415A.mp4",type:"video/mp4"})],-1),C=e("p",null,"To adjust an Item\u2019s Layout, follow the steps below.",-1),w=e("ol",null,[e("li",null,"Navigate to the Content Module and select the desired Collection."),e("li",null,[t("In the page Sidebar, click "),e("strong",null,"\u201CLayout Options\u201D"),t(".")]),e("li",null,"Choose the desired Layout you want to use."),e("li",null,"Customize the Layout as desired.")],-1),L=e("h3",{id:"customization-controls",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#customization-controls"},"#"),t(" Customization Controls")],-1),v=e("p",null,"Customization controls can be found in the following three locations.",-1),I=e("ul",null,[e("li",null,[e("strong",null,"Layout Options"),t(" \u2014 Located in the Sidebar.")]),e("li",null,[e("strong",null,"Subheader"),t(" \u2014 Located just below the Page Header and above the Page Area.")]),e("li",null,[e("strong",null,"Page Area"),t(" \u2014 The center of the webpage, which displays all Items.")])],-1),k=e("p",null,"These controls typically fall into three general categories.",-1),S=e("ul",null,[e("li",null,[e("p",null,[e("strong",null,"Styling and Formatting"),e("br"),t(" These are additional customizations to the way a Layout displays such as the size of each Item, how images are cropped, etc.")])]),e("li",null,[e("p",null,[e("strong",null,"Field Values Displayed"),e("br"),t(" Most Layouts allow you to choose which Field Value(s) are used to represent each Item on the Collection Page. For example, with blog posts, it may be ideal to have the hero image, blog title, date, author, etc.")])]),e("li",null,[e("p",null,[e("strong",null,"Manual and Automatic Sorting"),e("br"),t(" Certain Layouts may allow sorting Items by value in ascending and descending order, drag-and-drop repositioning of Items, etc.")])])],-1),T=e("h3",{id:"key-takeaways",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#key-takeaways"},"#"),t(" Key Takeaways")],-1),F=e("p",null,"As you go through Layouts, it may be helpful to keep the following points in mind.",-1),A=e("ul",null,[e("li",null,[e("p",null,[e("strong",null,"Layouts will not be universally usable for all Collections."),e("br"),t(" Layouts are tailored to work with specific data-models. For example, in order to work properly, the Map Layout requires the Collection have a Map Field configured and the Calendar Layout requires the Collection have a datetime Field configured.")])]),e("li",null,[e("p",null,[e("strong",null,"Controls are different for each Layout."),e("br"),t(" Each Layout presents data differently, so certain customizations may not be functional with certain Layouts. For example, the Map Layout displays each Item as a pin on a map, so this Layout has no controls for sorting.")])]),e("li",null,[e("p",null,[e("strong",null,"Controls for a Layout may be in different locations."),e("br"),t(" Depending on the Layout, the same control may be under Layout Options in the sidebar, the subheader, or on the Page Area "),e("em",null,"(and Items themselves)"),t(". For example, the Table Layout lets you set the Field Values displayed in the subheader while the Card Layout lets you set Field Values displayed in the Layout Options menu.")])])],-1),x=e("h2",{id:"table-layout",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#table-layout"},"#"),t(" Table Layout")],-1),D=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/table-layout.webp",alt:"Table Layout"})],-1),P=e("p",null,"This Layout supports all forms of data, as it directly reflects how data is stored in a Collection. This is the default Layout used in the Content Module. It includes the following controls.",-1),z=e("p",null,[e("strong",null,"Layout Options")],-1),M=e("ul",null,[e("li",null,[e("strong",null,"Spacing"),t(" \u2014 Adjust the vertical space a row takes up.")])],-1),j=e("p",null,[e("strong",null,"Subheader")],-1),O=e("ul",null,[e("li",null,[e("strong",null,"Adjust Column Width"),t(" \u2014 Click and drag the column divider to resize as desired.")]),e("li",null,[e("strong",null,"Add Field"),t(" \u2014 Select "),e("span",{mi:"",icon:""},"add"),t(" in the page subheader and select the desired Field(s).")]),e("li",null,[e("strong",null,"Remove Field"),t(" \u2014 Select "),e("span",{mi:"",icon:""},"arrow_drop_down"),t(" in the column title and click "),e("strong",null,"\u201CHide Field\u201D"),t(".")]),e("li",null,[e("strong",null,"Sort Items by Column"),t(" \u2014 Select "),e("span",{mi:"",icon:""},"arrow_drop_down"),t(" in the column title and sort ascending or descending.")]),e("li",null,[e("strong",null,"Set Text Alignment"),t(" \u2014 Select "),e("span",{mi:"",icon:""},"arrow_drop_down"),t(" in the column title and set left, right, or center.")]),e("li",null,[e("strong",null,"Toggle & Reorder Columns"),t(" \u2014 Click the column header, then drag-and-drop as desired.")]),e("li",null,[e("strong",null,"Select All"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"check_box_outline_blank"),t(" in the selection column header.")])],-1),E=e("p",null,[e("strong",null,"Page Area")],-1),q=e("ul",null,[e("li",null,[e("strong",null,"Select Item(s)"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"check_box_outline_blank"),t(" in the selection column for the desired Item(s).")]),e("li",null,[e("strong",null,"Manually Sort Items"),t(" \u2014 Toggle "),e("span",{mi:"",icon:""},"sort"),t(" in the configured Sort column to drag and drop "),e("span",{mi:"",icon:""},"drag_handle"),t(" Items.")])],-1),B={class:"warning hint"},R=e("div",{class:"hint-title"},"Manual Sorting Requires Configuration",-1),N=e("h2",{id:"card-layout",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#card-layout"},"#"),t(" Card Layout")],-1),V=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/card-layout-20220416A.webp",alt:"Card Layout"})],-1),G=e("em",null,"(e.g. a user or blog post)",-1),K=e("p",null,[e("strong",null,"Layout Options")],-1),U=e("ul",null,[e("li",null,[e("strong",null,"Image Source"),t(" \u2014 Set the Field used as the display image.")]),e("li",null,[e("strong",null,"Title"),t(" \u2014 Set a mix of Field values and text to use as a title.")]),e("li",null,[e("strong",null,"Subtitle"),t(" \u2014 Set a mix of Field values and text to use as a subtitle.")]),e("li",null,[e("strong",null,"Image Fit"),t(" \u2014 Set how an image fits inside the Card.")]),e("li",null,[e("strong",null,"Fallback Icon"),t(" \u2014 Set a default icon to display when an Item has no image.")])],-1),W=e("p",null,[e("strong",null,"Subheader")],-1),H=e("ul",null,[e("li",null,[e("strong",null,"Card Size"),t(" \u2014 Toggle the Card size as it appears in the Page Area.")]),e("li",null,[e("strong",null,"Sort Field"),t(" \u2014 Click to select the Field you wish to sort by from the dropdown menu.")]),e("li",null,[e("strong",null,"Sort Direction"),t(" \u2014 Toggle ascending and descending sort directions.")]),e("li",null,[e("strong",null,"Select All"),t(" \u2014 Click "),e("strong",null,[t("\u201C"),e("span",{mi:"",icon:""},"check_circle"),t(" Select All\u201D")]),t(" in the selection column header.")])],-1),Y=e("p",null,[e("strong",null,"Page Area")],-1),Z=e("ul",null,[e("li",null,[e("strong",null,"Select Item(s)"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"radio_button_unchecked"),t(" in the selection column for the desired Item(s).")]),e("li",null,[e("strong",null,"Adjust Time"),t(" \u2014 Click and drag an Item to change its time.")])],-1),J=e("h2",{id:"calendar-layout",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#calendar-layout"},"#"),t(" Calendar Layout")],-1),Q=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/calendar-layout-20220416A.webp",alt:"Calendar Layout"})],-1),X=e("p",null,[t("This Layout is ideal for Collections with time-oriented data "),e("em",null,"(e.g. events and appointments)"),t(". It includes the following controls.")],-1),$=e("p",null,[e("strong",null,"Layout Options")],-1),ee=e("ul",null,[e("li",null,[e("strong",null,"Display Template"),t(" \u2014 Set a mix of Field values and text to represent Items on the calendar.")]),e("li",null,[e("strong",null,"Start Date Field"),t(" \u2014 Choose Field to determine each Item\u2019s beginning time on the calendar.")]),e("li",null,[e("strong",null,"End Date Field"),t(" \u2014 Choose Field to determine each Item\u2019s ending time on the calendar.")])],-1),te=e("p",null,[e("strong",null,"Subheader")],-1),le=e("ul",null,[e("li",null,[e("strong",null,"Toggle Month and Year"),t(" \u2014 Move across time using the chevrons in the subheader.")]),e("li",null,[e("strong",null,"Today"),t(" \u2014 Click to jump to the current date on the calendar.")]),e("li",null,[e("strong",null,"Month Week Day List"),t(" \u2014 Adjust the time interval used to display Items in the Page Area.")])],-1),oe=e("p",null,[e("strong",null,"Page Area")],-1),ne=e("ul",null,[e("li",null,[e("strong",null,"Select Item"),t(" \u2014 Click an Item on the calendar to open its Item Page.")])],-1),ae=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Configuration Requirements"),e("p",null,[t("To use this Layout, the Collection will need at least one datetime Field to set a start time, but ideally two "),e("em",null,"(to set a start and end time)"),t(".")])],-1),se=e("h2",{id:"map-layout",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#map-layout"},"#"),t(" Map Layout")],-1),ie=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/map-layout-20220416A.webp",alt:"Map Layout"})],-1),ue=e("p",null,"This Layout is ideal for Collections that emphasize geospatial data. It provides a world map, with Items displayed as points, lines, and other geometry. The following options are available:",-1),re=e("p",null,[e("strong",null,"Layout Options")],-1),de=e("ul",null,[e("li",null,[e("strong",null,"Basemap"),t(" \u2014 Choose the map provider used for the Collection.")]),e("li",null,[e("strong",null,"Geospatial Field"),t(" \u2014 Select the geospatial field type to display on screen: "),e("ul",null,[e("li",null,[e("strong",null,"Map JSON Point"),t(" \u2014 Supports latitude-longitude based, single-point locations.")]),e("li",null,[e("strong",null,"Map Geometry"),t(" \u2014 Supports geometric areas such as lines and polygons.")])])]),e("li",null,[e("strong",null,"Display Template"),t(" \u2014 Choose the Fields displayed when hovering over an Item on the map.")]),e("li",null,[e("strong",null,"Cluster Nearby Data"),t(" \u2014 Toggle whether or not nearby Items get clustered into a single pin.")])],-1),ce=e("p",null,[e("strong",null,"Subheader"),e("br"),e("em",null,"There is no Subheader on the Map Layout.")],-1),he=e("p",null,[e("strong",null,"Page Area")],-1),pe=e("ul",null,[e("li",null,[e("strong",null,"Zoom"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"add"),t(" and "),e("span",{mi:"",icon:""},"remove"),t(" in the upper left hand corner of the Page Area to zoom in and out.")]),e("li",null,[e("strong",null,"Zoom to my Location"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"my_location"),t(" to zoom into your current location on the map.")]),e("li",null,[e("strong",null,"Reframe"),t(" \u2014 Click the square in the upper left-hand corner to resize and reframe the map area.")]),e("li",null,[e("strong",null,"Select Item"),t(" \u2014 Click a single Item to enter its Item Page.")]),e("li",null,[e("strong",null,"Select Items"),t(" \u2014 Click and drag to select multiple Items at once, opening the Item Page.")])],-1),ge=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Configuration Requirements"),e("p",null,"To use this Layout, the Collection must have a Map Field configured.")],-1),me=e("h2",{id:"kanban-layout-%5Bcloud-exclusive%5D",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#kanban-layout-%5Bcloud-exclusive%5D"},"#"),t(" Kanban Layout [Cloud Exclusive]")],-1),ye=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/layouts/layouts-20220415A/kanban-layout-20220416A.webp",alt:"Kanban Layout"})],-1),_e=e("p",null,[t("This Layout is ideal for Collections that serve as project management tools or to-do lists, where each Item represents a task, because it groups Items onto columns according to their status "),e("em",null,"(e.g. \u201CNot Started\u201D, \u201CIn Progress\u201D, \u201CUnder Review\u201D, \u201CComplete\u201D, or any other status defined)"),t(". The following controls are available.")],-1),fe=e("p",null,[e("strong",null,"Layout Options")],-1),be=e("ul",null,[e("li",null,[e("strong",null,"Group By"),t(" \u2014 Select the Field used to define Item status. See below for details.")]),e("li",null,[e("strong",null,"Card Title"),t(" \u2014 Choose a Field to serve as a title on each Item.")]),e("li",null,[e("strong",null,"Card Text"),t(" \u2014 Choose a Field to display additional text on each Item.")])],-1),Ce=e("p",null,[e("strong",null,"Layout Options > Advanced")],-1),we=e("ul",null,[e("li",null,[e("strong",null,"Card Tags"),t(" \u2014 Choose a Tag Field to be displayed on the Item.")]),e("li",null,[e("strong",null,"Card Date"),t(" \u2014 Choose a Datetime Field to be displayed on each Item.")]),e("li",null,[e("strong",null,"Card Image"),t(" \u2014 Choose an Image Field to be displayed on each Item.")]),e("li",null,[e("strong",null,"Card Image Fit"),t(" \u2014 Toggle whether the image fit is cropped.")]),e("li",null,[e("strong",null,"Card User"),t(" \u2014 Choose the User Created Field to display their avatar in the bottom right corner.")]),e("li",null,[e("strong",null,"Show Ungrouped"),t(" \u2014 Toggle display of a column containing Items with no assigned status.")])],-1),Le=e("p",null,[e("strong",null,"Subheader"),e("br"),e("em",null,"There is no Subheader for the Kanban Layout.")],-1),ve=e("p",null,[e("strong",null,"Page Area")],-1),Ie=e("ul",null,[e("li",null,[e("strong",null,"Create Task and Assign Status"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"add"),t(" in a status column and the Item Page will open.")]),e("li",null,[e("strong",null,"Sort Panels"),t(" \u2014 Drag and drop Items to reposition or change task status.")]),e("li",null,[e("strong",null,"Add Status Panel"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"add_box"),t(" and add a group name (i.e. new status column).")]),e("li",null,[e("strong",null,"Edit or Delete Status Column"),t(" \u2014 Click "),e("span",{mi:"",icon:""},"more_horiz"),t(" and then click "),e("span",{mi:"",icon:""},"edit"),t(" to edit or "),e("span",{mi:"",icon:""},"delete"),t(" to delete.")])],-1),ke=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Configuration Requirements"),e("p",null,[t("To make this Layout work, you will need to configure an appropriate status Field on the Collection, then identify this Field under "),e("strong",null,"\u201CGroup By\u201D"),t(" in the Layout Options menu.")])],-1),xe="Layouts",De=!1,Pe="Layouts are customized displays for viewing and interacting with the Items in a Collection.",ze="9 min read",Me={__name:"layouts",setup(Se,{expose:i}){const a={title:"Layouts",modularExtension:!1,description:"Layouts are customized displays for viewing and interacting with the Items in a Collection.",readTime:"9 min read"};return i({frontmatter:a}),(Te,Fe)=>{const o=s("router-link"),u=s("docs-wrapper");return r(),d(u,{frontmatter:a},{default:l(()=>[e("div",c,[h,p,g,m,e("p",null,[t("The following sections detail the Layouts managed and supported by the Directus Team. Keep in mind that Directus is open-source, modular and extensible. You are free to create any Layout you need on self-hosted and Enterprise Cloud Projects. Additionally, Directus Cloud is always adding more Layouts to its "),n(o,{to:"/docs/cloud/glossary#extensions"},{default:l(()=>[t("Cloud Exclusive Extensions")]),_:1}),t(", so check back often to stay up-to-date with the latest and greatest. Additionally, you can join the community on "),y,t(" and "),_,t(" to find thousands of engineers guiding development of the Directus platform.")]),f,b,C,w,L,v,I,k,S,T,F,A,x,D,P,z,M,j,O,E,q,e("div",B,[R,e("p",null,[t("Only available if you "),n(o,{to:"/docs/configuration/data-model/collections#sort-field"},{default:l(()=>[t("configure a sort field")]),_:1}),t(" in the Collection\u2019s Data Model Settings.")])]),N,V,e("p",null,[t("This tiled Layout is ideal for Collections that prioritize an image "),G,t(". This is the default for both the "),n(o,{to:"/docs/app/user-directory"},{default:l(()=>[t("User Directory")]),_:1}),t(" and "),n(o,{to:"/docs/app/file-library"},{default:l(()=>[t("File Library")]),_:1}),t(". It includes the following controls.")]),K,U,W,H,Y,Z,J,Q,X,$,ee,te,le,oe,ne,ae,se,ie,ue,re,de,ce,he,pe,ge,me,ye,_e,fe,be,Ce,we,Le,ve,Ie,ke])]),_:1})}}};export{Me as default,Pe as description,De as modularExtension,ze as readTime,xe as title};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as l,o as r,
|
|
1
|
+
import{a as l,o as r,e as u,y as s,u as e,q as t,z as a}from"./runtime-core.esm-bundler.22ec0346.js";const d={class:"markdown-body"},p=e("h2",{id:"extension-entrypoint",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#extension-entrypoint"},"#"),t(" Extension Entrypoint")],-1),h=e("p",null,[t("The entrypoint of your layout is the "),e("code",null,"index"),t(" file inside the "),e("code",null,"src/"),t(" folder of your extension package. It exports a configuration object with options to configure the behavior of your layout. When loading your layout, this object is imported by the Directus host.")],-1),y=e("p",null,"Example of an entrypoint:",-1),m=e("pre",null,[e("code",{class:"language-js"},[e("span",{class:"hljs-keyword"},"import"),t(" { ref } "),e("span",{class:"hljs-keyword"},"from"),t(),e("span",{class:"hljs-string"},"'vue'"),t(`;
|
|
2
2
|
`),e("span",{class:"hljs-keyword"},"import"),t(),e("span",{class:"hljs-title class_"},"LayoutComponent"),t(),e("span",{class:"hljs-keyword"},"from"),t(),e("span",{class:"hljs-string"},"'./layout.vue'"),t(`;
|
|
3
3
|
|
|
4
4
|
`),e("span",{class:"hljs-keyword"},"export"),t(),e("span",{class:"hljs-keyword"},"default"),t(` {
|
|
@@ -39,7 +39,7 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
<\/script>
|
|
42
|
-
`)],-1),C=e("p",null,[t("In addition to some predefined props, the component receives the state defined inside the "),e("code",null,"setup()"),t(" function as individual props. Besides some predefined emits, the component also provides emits for every property returned by the "),e("code",null,"setup()"),t(" function. Those emits are prefixed by "),e("code",null,"update:"),t(".")],-1),I=e("p",null,"These props and emits are available in all components associated with your layout.",-1),S=e("h4",{id:"available-props",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#available-props"},"#"),t(" Available Props")],-1),V=e("ul",null,[e("li",null,[e("code",null,"collection"),t(" \u2014 The current collection\u2019s name.")]),e("li",null,[e("code",null,"selection"),t(" \u2014 Any currently selected items.")]),e("li",null,[e("code",null,"layoutOptions"),t(" \u2014 The user\u2019s currently saved layout options.")]),e("li",null,[e("code",null,"layoutQuery"),t(" \u2014 The user\u2019s layout query parameters. (e.g., sort, limit, etc)")]),e("li",null,[e("code",null,"filter"),t(" \u2014 The combined active filter.")]),e("li",null,[e("code",null,"filterUser"),t(" \u2014 The user\u2019s currently active filter.")]),e("li",null,[e("code",null,"filterSystem"),t(" \u2014 The system\u2019s currently active filter.")]),e("li",null,[e("code",null,"search"),t(" \u2014 The user\u2019s current search query.")]),e("li",null,[e("code",null,"selectMode"),t(" \u2014 A boolean that indicates if the layout should be in select mode.")]),e("li",null,[e("code",null,"readonly"),t(" \u2014 A boolean that indicates if the layout should be in readonly mode.")]),e("li",null,[e("code",null,"resetPreset"),t(" \u2014 A function to reset the preset.")])],-1),L=e("h4",{id:"available-emits",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#available-emits"},"#"),t(" Available Emits")],-1),
|
|
42
|
+
`)],-1),C=e("p",null,[t("In addition to some predefined props, the component receives the state defined inside the "),e("code",null,"setup()"),t(" function as individual props. Besides some predefined emits, the component also provides emits for every property returned by the "),e("code",null,"setup()"),t(" function. Those emits are prefixed by "),e("code",null,"update:"),t(".")],-1),I=e("p",null,"These props and emits are available in all components associated with your layout.",-1),S=e("h4",{id:"available-props",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#available-props"},"#"),t(" Available Props")],-1),V=e("ul",null,[e("li",null,[e("code",null,"collection"),t(" \u2014 The current collection\u2019s name.")]),e("li",null,[e("code",null,"selection"),t(" \u2014 Any currently selected items.")]),e("li",null,[e("code",null,"layoutOptions"),t(" \u2014 The user\u2019s currently saved layout options.")]),e("li",null,[e("code",null,"layoutQuery"),t(" \u2014 The user\u2019s layout query parameters. (e.g., sort, limit, etc)")]),e("li",null,[e("code",null,"filter"),t(" \u2014 The combined active filter.")]),e("li",null,[e("code",null,"filterUser"),t(" \u2014 The user\u2019s currently active filter.")]),e("li",null,[e("code",null,"filterSystem"),t(" \u2014 The system\u2019s currently active filter.")]),e("li",null,[e("code",null,"search"),t(" \u2014 The user\u2019s current search query.")]),e("li",null,[e("code",null,"selectMode"),t(" \u2014 A boolean that indicates if the layout should be in select mode.")]),e("li",null,[e("code",null,"readonly"),t(" \u2014 A boolean that indicates if the layout should be in readonly mode.")]),e("li",null,[e("code",null,"resetPreset"),t(" \u2014 A function to reset the preset.")])],-1),L=e("h4",{id:"available-emits",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#available-emits"},"#"),t(" Available Emits")],-1),q=e("ul",null,[e("li",null,[e("code",null,"update:selection"),t(" \u2014 Update the currently selected items.")]),e("li",null,[e("code",null,"update:layoutOptions"),t(" \u2014 Update the user\u2019s currently saved layout options.")]),e("li",null,[e("code",null,"update:layoutQuery"),t(" \u2014 Update the user\u2019s layout query parameters.")])],-1),D=e("p",null,"Other than this simple API to communicate with the Directus App and the system to share state between components, the layout component is a blank canvas, allowing you to create anything you need.",-1),E=e("p",null,[t("The "),e("code",null,"@directus/extensions-sdk"),t(" package provides some useful composables to help with creating layouts:")],-1),P=e("ul",null,[e("li",null,[e("code",null,"useSync()"),t(" \u2014 This function can be used to synchronize a writable ref with a prop and a corresponding emit.")]),e("li",null,[e("code",null,"useCollection()"),t(" \u2014 This function can be used to receive information about a collection.")]),e("li",null,[e("code",null,"useItems()"),t(" \u2014 This function can be used to fetch items from the API.")])],-1),O=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Vue Version"),e("p",null,"The Directus App uses Vue 3. There might be 3rd party libraries that aren\u2019t yet compatible with Vue 3.")],-1),B=e("h2",{id:"accessing-internal-systems",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#accessing-internal-systems"},"#"),t(" Accessing Internal Systems")],-1),N=e("p",null,[t("To access internal systems like the API or the stores, you can use the "),e("code",null,"useApi()"),t(" and "),e("code",null,"useStores()"),t(" composables exported by the "),e("code",null,"@directus/extensions-sdk"),t(" package. They can be used inside a "),e("code",null,"setup()"),t(" function like this:")],-1),U=e("pre",null,[e("code",{class:"language-js"},[e("span",{class:"hljs-keyword"},"import"),t(" { useApi, useStores } "),e("span",{class:"hljs-keyword"},"from"),t(),e("span",{class:"hljs-string"},"'@directus/extensions-sdk'"),t(`;
|
|
43
43
|
|
|
44
44
|
`),e("span",{class:"hljs-keyword"},"export"),t(),e("span",{class:"hljs-keyword"},"default"),t(` {
|
|
45
45
|
`),e("span",{class:"hljs-title function_"},"setup"),t("("),e("span",{class:"hljs-params"}),t(`) {
|
|
@@ -51,4 +51,4 @@ export default {
|
|
|
51
51
|
`),e("span",{class:"hljs-comment"},"// ..."),t(`
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
|
-
`)])],-1),
|
|
54
|
+
`)])],-1),z=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Vue Options API"),e("p",null,[t("If you prefer to use the Vue Options API, you can inject the "),e("code",null,"api"),t(" and "),e("code",null,"stores"),t(" properties directly.")])],-1),G="Custom Layouts",H=!0,J="A guide on how to build custom Layouts in Directus.",K="4 min read",R={__name:"layouts",setup(F,{expose:i}){const n={title:"Custom Layouts",modularExtension:!0,description:"A guide on how to build custom Layouts in Directus.",readTime:"4 min read"};return i({frontmatter:n}),(Q,M)=>{const o=l("router-link"),c=l("docs-wrapper");return r(),u(c,{frontmatter:n},{default:s(()=>[e("div",d,[e("blockquote",null,[e("p",null,[t("Custom Layouts allow for building new ways to view or interact with Items via the Collection Detail pages. "),a(o,{to:"/docs/getting-started/glossary#layouts"},{default:s(()=>[t("Learn more about Layouts")]),_:1}),t(".")])]),p,h,y,m,_,e("ul",null,[f,b,e("li",null,[j,t(" \u2014 An icon name from the "),a(o,{to:"/docs/getting-started/glossary#material-icons"},{default:s(()=>[t("material icon set")]),_:1}),t(", or the extended list of Directus custom icons.")]),g,w,v]),x,k,A,T,C,I,S,V,L,q,D,E,P,O,B,N,U,z])]),_:1})}}};export{R as default,J as description,H as modularExtension,K as readTime,G as title};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as b}from"./index.f8fd6ee3.entry.js";function A(l,d){for(var g=0;g<d.length;g++){const n=d[g];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in l)){const r=Object.getOwnPropertyDescriptor(n,i);r&&Object.defineProperty(l,i,r.get?r:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(l,d){(function(g){g(b.exports)})(function(g){g.defineMode("livescript",function(){var w=function(e,t){var a=t.next||"start";if(a){t.next=t.next;var p=s[a];if(p.splice){for(var y=0;y<p.length;++y){var o=p[y];if(o.regex&&e.match(o.regex))return t.next=o.next||t.next,o.token}return e.next(),"error"}if(e.match(o=s[a]))return o.regex&&e.match(o.regex)?(t.next=o.next,o.token):(e.next(),"error")}return e.next(),"error"},h={startState:function(){return{next:"start",lastToken:{style:null,indent:0,content:""}}},token:function(e,t){for(;e.pos==e.start;)var a=w(e,t);return t.lastToken={style:a,indent:e.indentation(),content:e.current()},a.replace(/\./g," ")},indent:function(e){var t=e.lastToken.indent;return e.lastToken.content.match(i)&&(t+=2),t}};return h});var n="(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",i=RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+n+")?))\\s*$"),r="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",x={token:"string",regex:".+"},s={start:[{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+r},{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+r},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+r},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+r},{token:"language.support.function",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+r},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+r},{token:"identifier",regex:n+"\\s*:(?![:=])"},{token:"variable",regex:n},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"\\S+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},{token:"string.regex",regex:"\\S+"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:n,next:"start"},{token:"text",regex:"",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{token:"comment.doc",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},x],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},x],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},x],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},x],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},x],words:[{token:"string",regex:".*?\\]>",next:"key"},x]};for(var f in s){var c=s[f];if(c.splice)for(var k=0,m=c.length;k<m;++k){var u=c[k];typeof u.regex=="string"&&(s[f][k].regex=new RegExp("^"+u.regex))}else typeof u.regex=="string"&&(s[f].regex=new RegExp("^"+c.regex))}g.defineMIME("text/x-livescript","livescript")})})();const q=v.exports,_=A({__proto__:null,default:q},[v.exports]);export{_ as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as j}from"./index.f8fd6ee3.entry.js";function O(c,f){for(var a=0;a<f.length;a++){const o=f[a];if(typeof o!="string"&&!Array.isArray(o)){for(const l in o)if(l!=="default"&&!(l in c)){const u=Object.getOwnPropertyDescriptor(o,l);u&&Object.defineProperty(c,l,u.get?u:{enumerable:!0,get:()=>o[l]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}};(function(c,f){(function(a){a(j.exports)})(function(a){a.defineMode("lua",function(o,l){var u=o.indentUnit;function b(e){return new RegExp("^(?:"+e.join("|")+")","i")}function s(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var v=s(l.specials||[]),k=s(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),x=s(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),w=s(["function","if","repeat","do","\\(","{"]),y=s(["end","until","\\)","}"]),_=b(["end","until","\\)","}","else","elseif"]);function p(e){for(var n=0;e.eat("=");)++n;return e.eat("["),n}function g(e,n){var t=e.next();return t=="-"&&e.eat("-")?e.eat("[")&&e.eat("[")?(n.cur=m(p(e),"comment"))(e,n):(e.skipToEnd(),"comment"):t=='"'||t=="'"?(n.cur=E(t))(e,n):t=="["&&/[\[=]/.test(e.peek())?(n.cur=m(p(e),"string"))(e,n):/\d/.test(t)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(t)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function m(e,n){return function(t,r){for(var i=null,d;(d=t.next())!=null;)if(i==null)d=="]"&&(i=0);else if(d=="=")++i;else if(d=="]"&&i==e){r.cur=g;break}else i=null;return n}}function E(e){return function(n,t){for(var r=!1,i;(i=n.next())!=null&&!(i==e&&!r);)r=!r&&i=="\\";return r||(t.cur=g),"string"}}return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:g}},token:function(e,n){if(e.eatSpace())return null;var t=n.cur(e,n),r=e.current();return t=="variable"&&(x.test(r)?t="keyword":k.test(r)?t="builtin":v.test(r)&&(t="variable-2")),t!="comment"&&t!="string"&&(w.test(r)?++n.indentDepth:y.test(r)&&--n.indentDepth),t},indent:function(e,n){var t=_.test(n);return e.basecol+u*(e.indentDepth-(t?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),a.defineMIME("text/x-lua","lua")})})();const S=h.exports,R=O({__proto__:null,default:S},[h.exports]);export{R as l};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as l,o as c,
|
|
1
|
+
import{a as l,o as c,e as d,y as e,u as t,q as s,z as o}from"./runtime-core.esm-bundler.22ec0346.js";const u={class:"markdown-body"},h={class:"tip hint"},p=t("div",{class:"hint-title"},"Automation",-1),_=t("h2",{id:"1.-setup-a-project-folder",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#1.-setup-a-project-folder"},"#"),s(" 1. Setup a Project Folder")],-1),f=t("p",null,[s("Create a new directory, and add a "),t("code",null,"package.json"),s(" by running the following command.")],-1),m=t("pre",null,[t("code",{class:"language-bash"},`npm init -y
|
|
2
2
|
`)],-1),g=t("code",null,"start",-1),b=t("pre",null,[t("code",{class:"language-json"},[t("span",{class:"hljs-punctuation"},"{"),s(`
|
|
3
3
|
...
|
|
4
4
|
`),t("span",{class:"hljs-attr"},'"scripts"'),t("span",{class:"hljs-punctuation"},":"),s(),t("span",{class:"hljs-punctuation"},"{"),s(`
|
|
@@ -6,7 +6,7 @@ import{a as l,o as c,b as d,w as e,l as t,E as s,e as o}from"./runtime-core.esm-
|
|
|
6
6
|
`),t("span",{class:"hljs-punctuation"},"}"),s(`
|
|
7
7
|
...
|
|
8
8
|
`),t("span",{class:"hljs-punctuation"},"}"),s(`
|
|
9
|
-
`)])],-1),
|
|
10
|
-
`)],-1),j=t("h2",{id:"3.-setup-a-configuration-file",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#3.-setup-a-configuration-file"},"#"),s(" 3. Setup a Configuration File")],-1),x=t("p",null,[s("Finally, you\u2019ll need to setup your "),t("code",null,".env"),s(" file, or configure the environment variables through other means, such as Docker, etc.")],-1),
|
|
9
|
+
`)])],-1),y=t("h2",{id:"2.-install-directus",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#2.-install-directus"},"#"),s(" 2. Install Directus")],-1),v=t("pre",null,[t("code",{class:"language-bash"},`npm install directus
|
|
10
|
+
`)],-1),j=t("h2",{id:"3.-setup-a-configuration-file",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#3.-setup-a-configuration-file"},"#"),s(" 3. Setup a Configuration File")],-1),x=t("p",null,[s("Finally, you\u2019ll need to setup your "),t("code",null,".env"),s(" file, or configure the environment variables through other means, such as Docker, etc.")],-1),k=t("p",null,[t("strong",null,"Don\u2019t forget to fill your database information before continuing to next step")],-1),w=t("h2",{id:"4.-bootstrap-it",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#4.-bootstrap-it"},"#"),s(" 4. Bootstrap It")],-1),C=t("pre",null,[t("code",{class:"language-bash"},`npx directus bootstrap
|
|
11
11
|
`)],-1),D=t("h2",{id:"5.-start-server",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#5.-start-server"},"#"),s(" 5. Start Server")],-1),I=t("pre",null,[t("code",{class:"language-bash"},`npm run start
|
|
12
|
-
`)],-1),
|
|
12
|
+
`)],-1),A="Installing Manually",E=!1,N="How to manually install Directus.",P="1 min read",T={__name:"manual",setup(S,{expose:i}){const n={title:"Installing Manually",modularExtension:!1,description:"How to manually install Directus.",readTime:"1 min read"};return i({frontmatter:n}),(B,F)=>{const a=l("router-link"),r=l("docs-wrapper");return c(),d(r,{frontmatter:n},{default:e(()=>[t("div",u,[t("div",h,[p,t("p",null,[s("We\u2019ve created a little CLI tool you can run that does this process automatically. For more info, check the doc on "),o(a,{to:"/docs/self-hosted/installation/cli"},{default:e(()=>[s("installing through the CLI")]),_:1}),s(".")])]),_,f,m,t("p",null,[s("We recommend aliasing the "),g,s(" script to Directus\u2019 start for easier deployments to services like "),o(a,{to:"/docs/self-hosted/installation/aws"},{default:e(()=>[s("AWS")]),_:1}),s(", "),o(a,{to:"/docs/self-hosted/installation/gcp"},{default:e(()=>[s("Google Cloud Platform")]),_:1}),s(" or "),o(a,{to:"/docs/self-hosted/installation/digitalocean-app-platform"},{default:e(()=>[s("DigitalOcean App Platform")]),_:1}),s(".")]),b,y,v,j,x,k,t("p",null,[s("See "),o(a,{to:"/docs/self-hosted/config-options#general"},{default:e(()=>[s("Environment Variables")]),_:1}),s(" for all available variables.")]),w,C,D,I])]),_:1})}}};export{T as default,N as description,E as modularExtension,P as readTime,A as title};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as j}from"./index.f8fd6ee3.entry.js";function A(p,S){for(var a=0;a<S.length;a++){const l=S[a];if(typeof l!="string"&&!Array.isArray(l)){for(const f in l)if(f!=="default"&&!(f in p)){const s=Object.getOwnPropertyDescriptor(l,f);s&&Object.defineProperty(p,f,s.get?s:{enumerable:!0,get:()=>l[f]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}};(function(p,S){(function(a){a(j.exports)})(function(a){a.defineOption("styleSelectedText",!1,function(e,t,r){var n=r&&r!=a.Init;t&&!n?(e.state.markedSelection=[],e.state.markedSelectionStyle=typeof t=="string"?t:"CodeMirror-selectedtext",d(e),e.on("cursorActivity",l),e.on("change",f)):!t&&n&&(e.off("cursorActivity",l),e.off("change",f),g(e),e.state.markedSelection=e.state.markedSelectionStyle=null)});function l(e){e.state.markedSelection&&e.operation(function(){O(e)})}function f(e){e.state.markedSelection&&e.state.markedSelection.length&&e.operation(function(){g(e)})}var s=8,y=a.Pos,u=a.cmpPos;function c(e,t,r,n){if(u(t,r)!=0)for(var o=e.state.markedSelection,i=e.state.markedSelectionStyle,v=t.line;;){var P=v==t.line?t:y(v,0),h=v+s,k=h>=r.line,_=k?r:y(h,0),x=e.markText(P,_,{className:i});if(n==null?o.push(x):o.splice(n++,0,x),k)break;v=h}}function g(e){for(var t=e.state.markedSelection,r=0;r<t.length;++r)t[r].clear();t.length=0}function d(e){g(e);for(var t=e.listSelections(),r=0;r<t.length;r++)c(e,t[r].from(),t[r].to())}function O(e){if(!e.somethingSelected())return g(e);if(e.listSelections().length>1)return d(e);var t=e.getCursor("start"),r=e.getCursor("end"),n=e.state.markedSelection;if(!n.length)return c(e,t,r);var o=n[0].find(),i=n[n.length-1].find();if(!o||!i||r.line-t.line<=s||u(t,i.to)>=0||u(r,o.from)<=0)return d(e);for(;u(t,o.from)>0;)n.shift().clear(),o=n[0].find();for(u(t,o.from)<0&&(o.to.line-t.line<s?(n.shift().clear(),c(e,t,o.to,0)):c(e,t,o.from,0));u(r,i.to)<0;)n.pop().clear(),i=n[n.length-1].find();u(r,i.to)>0&&(r.line-i.from.line<s?(n.pop().clear(),c(e,i.from,r)):c(e,i.to,r))}})})();const w=b.exports,N=A({__proto__:null,default:w},[b.exports]);export{N as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as k}from"./index.f8fd6ee3.entry.js";function S(f,u){for(var a=0;a<u.length;a++){const l=u[a];if(typeof l!="string"&&!Array.isArray(l)){for(const s in l)if(s!=="default"&&!(s in f)){const h=Object.getOwnPropertyDescriptor(l,s);h&&Object.defineProperty(f,s,h.get?h:{enumerable:!0,get:()=>l[s]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var $={exports:{}},A={exports:{}};(function(f,u){(function(a){a(k.exports,$.exports)})(function(a){var l={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function s(t){this.options={};for(var e in l)this.options[e]=(t&&t.hasOwnProperty(e)?t:l)[e];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}a.defineOption("highlightSelectionMatches",!1,function(t,e,i){if(i&&i!=a.Init&&(O(t),clearTimeout(t.state.matchHighlighter.timeout),t.state.matchHighlighter=null,t.off("cursorActivity",h),t.off("focus",y)),e){var o=t.state.matchHighlighter=new s(e);t.hasFocus()?(o.active=!0,b(t)):t.on("focus",y),t.on("cursorActivity",h)}});function h(t){var e=t.state.matchHighlighter;(e.active||t.hasFocus())&&w(t,e)}function y(t){var e=t.state.matchHighlighter;e.active||(e.active=!0,w(t,e))}function w(t,e){clearTimeout(e.timeout),e.timeout=setTimeout(function(){b(t)},e.options.delay)}function d(t,e,i,o){var r=t.state.matchHighlighter;if(t.addOverlay(r.overlay=T(e,i,o)),r.options.annotateScrollbar&&t.showMatchesOnScrollbar){var n=i?new RegExp((/\w/.test(e.charAt(0))?"\\b":"")+e.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(e.charAt(e.length-1))?"\\b":"")):e;r.matchesonscroll=t.showMatchesOnScrollbar(n,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function O(t){var e=t.state.matchHighlighter;e.overlay&&(t.removeOverlay(e.overlay),e.overlay=null,e.matchesonscroll&&(e.matchesonscroll.clear(),e.matchesonscroll=null))}function b(t){t.operation(function(){var e=t.state.matchHighlighter;if(O(t),!t.somethingSelected()&&e.options.showToken){for(var i=e.options.showToken===!0?/[\w$]/:e.options.showToken,o=t.getCursor(),r=t.getLine(o.line),n=o.ch,c=n;n&&i.test(r.charAt(n-1));)--n;for(;c<r.length&&i.test(r.charAt(c));)++c;n<c&&d(t,r.slice(n,c),i,e.options.style);return}var v=t.getCursor("from"),p=t.getCursor("to");if(v.line==p.line&&!(e.options.wordsOnly&&!H(t,v,p))){var g=t.getRange(v,p);e.options.trim&&(g=g.replace(/^\s+|\s+$/g,"")),g.length>=e.options.minChars&&d(t,g,!1,e.options.style)}})}function H(t,e,i){var o=t.getRange(e,i);if(o.match(/^\w+$/)!==null){if(e.ch>0){var r={line:e.line,ch:e.ch-1},n=t.getRange(r,e);if(n.match(/\W/)===null)return!1}if(i.ch<t.getLine(e.line).length){var r={line:i.line,ch:i.ch+1},n=t.getRange(i,r);if(n.match(/\W/)===null)return!1}return!0}else return!1}function x(t,e){return(!t.start||!e.test(t.string.charAt(t.start-1)))&&(t.pos==t.string.length||!e.test(t.string.charAt(t.pos)))}function T(t,e,i){return{token:function(o){if(o.match(t)&&(!e||x(o,e)))return i;o.next(),o.skipTo(t.charAt(0))||o.skipToEnd()}}}})})();const C=A.exports,R=S({__proto__:null,default:C},[A.exports]);export{R as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{A as s}from"./index.f8fd6ee3.entry.js";function f(r,c){for(var o=0;o<c.length;o++){const e=c[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const a=Object.getOwnPropertyDescriptor(e,t);a&&Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n=s();const p=f({__proto__:null,default:n},[n]);export{p as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as x}from"./index.f8fd6ee3.entry.js";function g(u,l){for(var n=0;n<l.length;n++){const i=l[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in u)){const f=Object.getOwnPropertyDescriptor(i,o);f&&Object.defineProperty(u,o,f.get?f:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var $={exports:{}};(function(u,l){(function(n){n(x.exports)})(function(n){n.defineMode("mathematica",function(i,o){var f="[a-zA-Z\\$][a-zA-Z0-9\\$]*",p="(?:\\d+)",z="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",v="(?:\\.\\w+|\\w+\\.\\w*|\\w+)",A="(?:`(?:`?"+z+")?)",Z=new RegExp("(?:"+p+"(?:\\^\\^"+v+A+"?(?:\\*\\^[+-]?\\d+)?))"),h=new RegExp("(?:"+z+A+"?(?:\\*\\^[+-]?\\d+)?)"),d=new RegExp("(?:`?)(?:"+f+")(?:`(?:"+f+"))*(?:`?)");function m(e,t){var r;return r=e.next(),r==='"'?(t.tokenize=b,t.tokenize(e,t)):r==="("&&e.eat("*")?(t.commentLevel++,t.tokenize=k,t.tokenize(e,t)):(e.backUp(1),e.match(Z,!0,!1)||e.match(h,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string-2":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variable-2":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variable-2":e.match(d,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function b(e,t){for(var r,a=!1,c=!1;(r=e.next())!=null;){if(r==='"'&&!c){a=!0;break}c=!c&&r==="\\"}return a&&!c&&(t.tokenize=m),"string"}function k(e,t){for(var r,a;t.commentLevel>0&&(a=e.next())!=null;)r==="("&&a==="*"&&t.commentLevel++,r==="*"&&a===")"&&t.commentLevel--,r=a;return t.commentLevel<=0&&(t.tokenize=m),"comment"}return{startState:function(){return{tokenize:m,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)"}}),n.defineMIME("text/x-mathematica",{name:"mathematica"})})})();const s=$.exports,_=g({__proto__:null,default:s},[$.exports]);export{_ as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as k}from"./index.f8fd6ee3.entry.js";function E(u,f){for(var n=0;n<f.length;n++){const i=f[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in u)){const a=Object.getOwnPropertyDescriptor(i,o);a&&Object.defineProperty(u,o,a.get?a:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var c={exports:{}};(function(u,f){(function(n){n(k.exports)})(function(n){var i=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],o=["Date","Subject","Comments","Keywords","Resent-Date"];n.registerHelper("hintWords","mbox",i.concat(o));var a=/^[ \t]/,p=/^From /,m=new RegExp("^("+i.join("|")+"): "),s=new RegExp("^("+o.join("|")+"): "),v=/^[^:]+:/,b=/^[^ ]+@[^ ]+/,H=/^.*?(?=[^ ]+?@[^ ]+)/,h=/^<.*?>/,x=/^.*?(?=<.*>)/;function g(e){return e==="Subject"?"header":"string"}function R(e,r){if(e.sol()){if(r.inSeparator=!1,r.inHeader&&e.match(a))return null;if(r.inHeader=!1,r.header=null,e.match(p))return r.inHeaders=!0,r.inSeparator=!0,"atom";var t,d=!1;return(t=e.match(s))||(d=!0)&&(t=e.match(m))?(r.inHeaders=!0,r.inHeader=!0,r.emailPermitted=d,r.header=t[1],"atom"):r.inHeaders&&(t=e.match(v))?(r.inHeader=!0,r.emailPermitted=!0,r.header=t[1],"atom"):(r.inHeaders=!1,e.skipToEnd(),null)}if(r.inSeparator)return e.match(b)?"link":(e.match(H)||e.skipToEnd(),"atom");if(r.inHeader){var l=g(r.header);if(r.emailPermitted){if(e.match(h))return l+" link";if(e.match(x))return l}return e.skipToEnd(),l}return e.skipToEnd(),null}n.defineMode("mbox",function(){return{startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:R,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1}}}),n.defineMIME("application/mbox","mbox")})})();const S=c.exports,y=E({__proto__:null,default:S},[c.exports]);export{y as m};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as o,o as l,
|
|
1
|
+
import{a as o,o as l,e as r,y as i,u as s,q as e}from"./runtime-core.esm-bundler.22ec0346.js";const c=s("div",{class:"markdown-body"},[s("blockquote",null,[s("p",null,[e("Directus allows adding custom migration files that run whenever the "),s("code",null,"directus database migrate:*"),e(" commands are executed. All migrations must reside in the "),s("code",null,"extensions/migrations"),e(" folder.")])]),s("h2",{id:"file-name",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#file-name"},"#"),e(" File Name")]),s("p",null,"The file name follows the following structure:"),s("pre",null,[s("code",null,`[identifier]-[name].js
|
|
2
2
|
`)]),s("p",null,"for example:"),s("pre",null,[s("code",null,`20201202A-my-custom-migration.js
|
|
3
3
|
`)]),s("h2",{id:"structure",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#structure"},"#"),e(" Structure")]),s("p",null,[e("Migrations have to export an "),s("code",null,"up"),e(" and a "),s("code",null,"down"),e(" function. These functions get a "),s("a",{href:"http://knexjs.org",target:"_blank",rel:"noopener noreferrer"},"Knex"),e(" instance that can be used to do virtually whatever.")]),s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-variable language_"},"module"),e("."),s("span",{class:"hljs-property"},"exports"),e(` = {
|
|
4
4
|
`),s("span",{class:"hljs-keyword"},"async"),e(),s("span",{class:"hljs-title function_"},"up"),e("("),s("span",{class:"hljs-params"},"knex"),e(`) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as h}from"./index.f8fd6ee3.entry.js";function g(s,l){for(var n=0;n<l.length;n++){const t=l[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in s)){const a=Object.getOwnPropertyDescriptor(t,o);a&&Object.defineProperty(s,o,a.get?a:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(s,l){(function(n){n(h.exports)})(function(n){n.defineMIME("text/mirc","mirc"),n.defineMode("mirc",function(){function t(e){for(var r={},$=e.split(" "),i=0;i<$.length;++i)r[$[i]]=!0;return r}var o=t("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),a=t("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),d=t("if elseif else and not or eq ne in ni for foreach while switch"),m=/[+\-*&%=<>!?^\/\|]/;function p(e,r,$){return r.tokenize=$,$(e,r)}function c(e,r){var $=r.beforeParams;r.beforeParams=!1;var i=e.next();if(/[\[\]{}\(\),\.]/.test(i))return i=="("&&$?r.inParams=!0:i==")"&&(r.inParams=!1),null;if(/\d/.test(i))return e.eatWhile(/[\w\.]/),"number";if(i=="\\")return e.eat("\\"),e.eat(/./),"number";if(i=="/"&&e.eat("*"))return p(e,r,k);if(i==";"&&e.match(/ *\( *\(/))return p(e,r,b);if(i==";"&&!r.inParams)return e.skipToEnd(),"comment";if(i=='"')return e.eat(/"/),"keyword";if(i=="$")return e.eatWhile(/[$_a-z0-9A-Z\.:]/),o&&o.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(r.beforeParams=!0,"builtin");if(i=="%")return e.eatWhile(/[^,\s()]/),r.beforeParams=!0,"string";if(m.test(i))return e.eatWhile(m),"operator";e.eatWhile(/[\w\$_{}]/);var f=e.current().toLowerCase();return a&&a.propertyIsEnumerable(f)?"keyword":d&&d.propertyIsEnumerable(f)?(r.beforeParams=!0,"keyword"):null}function k(e,r){for(var $=!1,i;i=e.next();){if(i=="/"&&$){r.tokenize=c;break}$=i=="*"}return"comment"}function b(e,r){for(var $=0,i;i=e.next();){if(i==";"&&$==2){r.tokenize=c;break}i==")"?$++:i!=" "&&($=0)}return"meta"}return{startState:function(){return{tokenize:c,beforeParams:!1,inParams:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)}}})})})();const v=u.exports,y=g({__proto__:null,default:v},[u.exports]);export{y as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as x}from"./index.f8fd6ee3.entry.js";function g(k,u){for(var t=0;t<u.length;t++){const l=u[t];if(typeof l!="string"&&!Array.isArray(l)){for(const i in l)if(i!=="default"&&!(i in k)){const d=Object.getOwnPropertyDescriptor(l,i);d&&Object.defineProperty(k,i,d.get?d:{enumerable:!0,get:()=>l[i]})}}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}var s={exports:{}};(function(k,u){(function(t){t(x.exports)})(function(t){t.defineMode("mllike",function(l,i){var d={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},f=i.extraWords||{};for(var a in f)f.hasOwnProperty(a)&&(d[a]=i.extraWords[a]);var c=[];for(var b in d)c.push(b);t.registerHelper("hintWords","mllike",c);function y(e,r){var o=e.next();if(o==='"')return r.tokenize=m,r.tokenize(e,r);if(o==="{"&&e.eat("|"))return r.longString=!0,r.tokenize=h,r.tokenize(e,r);if(o==="("&&e.eat("*"))return r.commentLevel++,r.tokenize=p,r.tokenize(e,r);if(o==="~"||o==="?")return e.eatWhile(/\w/),"variable-2";if(o==="`")return e.eatWhile(/\w/),"quote";if(o==="/"&&i.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(o))return o==="0"&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),o==="0"&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),o==="0"&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(o))return"operator";if(/[\w\xa1-\uffff]/.test(o)){e.eatWhile(/[\w\xa1-\uffff]/);var n=e.current();return d.hasOwnProperty(n)?d[n]:"variable"}return null}function m(e,r){for(var o,n=!1,w=!1;(o=e.next())!=null;){if(o==='"'&&!w){n=!0;break}w=!w&&o==="\\"}return n&&!w&&(r.tokenize=y),"string"}function p(e,r){for(var o,n;r.commentLevel>0&&(n=e.next())!=null;)o==="("&&n==="*"&&r.commentLevel++,o==="*"&&n===")"&&r.commentLevel--,o=n;return r.commentLevel<=0&&(r.tokenize=y),"comment"}function h(e,r){for(var o,n;r.longString&&(n=e.next())!=null;)o==="|"&&n==="}"&&(r.longString=!1),o=n;return r.longString||(r.tokenize=y),"string"}return{startState:function(){return{tokenize:y,commentLevel:0,longString:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:i.slashComments?"//":null}}),t.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),t.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),t.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})})();const v=s.exports,z=g({__proto__:null,default:v},[s.exports]);export{z as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as D}from"./index.f8fd6ee3.entry.js";function P(h,b){for(var r=0;r<b.length;r++){const l=b[r];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in h)){const d=Object.getOwnPropertyDescriptor(l,c);d&&Object.defineProperty(h,c,d.get?d:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(h,b){(function(r){r(D.exports)})(function(r){r.defineMode("modelica",function(o,t){var u=o.indentUnit,a=t.keywords||{},p=t.builtin||{},k=t.atoms||{},v=/[;=\(:\),{}.*<>+\-\/^\[\]]/,w=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,s=/[0-9]/,g=/[_a-zA-Z]/;function x(n,e){return n.skipToEnd(),e.tokenize=null,"comment"}function S(n,e){for(var i=!1,f;f=n.next();){if(i&&f=="/"){e.tokenize=null;break}i=f=="*"}return"comment"}function E(n,e){for(var i=!1,f;(f=n.next())!=null;){if(f=='"'&&!i){e.tokenize=null,e.sol=!1;break}i=!i&&f=="\\"}return"string"}function I(n,e){for(n.eatWhile(s);n.eat(s)||n.eat(g););var i=n.current();return e.sol&&(i=="package"||i=="model"||i=="when"||i=="connector")?e.level++:e.sol&&i=="end"&&e.level>0&&e.level--,e.tokenize=null,e.sol=!1,a.propertyIsEnumerable(i)?"keyword":p.propertyIsEnumerable(i)?"builtin":k.propertyIsEnumerable(i)?"atom":"variable"}function O(n,e){for(;n.eat(/[^']/););return e.tokenize=null,e.sol=!1,n.eat("'")?"variable":"error"}function _(n,e){return n.eatWhile(s),n.eat(".")&&n.eatWhile(s),(n.eat("e")||n.eat("E"))&&(n.eat("-")||n.eat("+"),n.eatWhile(s)),e.tokenize=null,e.sol=!1,"number"}return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(n,e){if(e.tokenize!=null)return e.tokenize(n,e);if(n.sol()&&(e.sol=!0),n.eatSpace())return e.tokenize=null,null;var i=n.next();if(i=="/"&&n.eat("/"))e.tokenize=x;else if(i=="/"&&n.eat("*"))e.tokenize=S;else{if(w.test(i+n.peek()))return n.next(),e.tokenize=null,"operator";if(v.test(i))return e.tokenize=null,"operator";if(g.test(i))e.tokenize=I;else if(i=="'"&&n.peek()&&n.peek()!="'")e.tokenize=O;else if(i=='"')e.tokenize=E;else if(s.test(i))e.tokenize=_;else return e.tokenize=null,"error"}return e.tokenize(n,e)},indent:function(n,e){if(n.tokenize!=null)return r.Pass;var i=n.level;return/(algorithm)/.test(e)&&i--,/(equation)/.test(e)&&i--,/(initial algorithm)/.test(e)&&i--,/(initial equation)/.test(e)&&i--,/(end)/.test(e)&&i--,i>0?u*i:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});function l(o){for(var t={},u=o.split(" "),a=0;a<u.length;++a)t[u[a]]=!0;return t}var c="algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within",d="abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh",m="Real Boolean Integer String";function z(o,t){typeof o=="string"&&(o=[o]);var u=[];function a(k){if(k)for(var v in k)k.hasOwnProperty(v)&&u.push(v)}a(t.keywords),a(t.builtin),a(t.atoms),u.length&&(t.helperType=o[0],r.registerHelper("hintWords",o[0],u));for(var p=0;p<o.length;++p)r.defineMIME(o[p],t)}z(["text/x-modelica"],{name:"modelica",keywords:l(c),builtin:l(d),atoms:l(m)})})})();const W=y.exports,N=P({__proto__:null,default:W},[y.exports]);export{N as m};
|