@directus/app 9.12.0 → 9.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/@directus_extensions-sdk.9a1812c6.entry.js +1 -0
- package/dist/assets/accounts.08433099.js +1 -0
- package/dist/assets/active-line.b42e95d2.js +1 -0
- package/dist/assets/activity-log.fd558c9b.js +1 -0
- package/dist/assets/activity.0def80ca.js +80 -0
- package/dist/assets/apl.a10fee96.js +1 -0
- package/dist/assets/asciiarmor.3440160d.js +1 -0
- package/dist/assets/asn.1.bdf78f70.js +1 -0
- package/dist/assets/asterisk.88ae33f0.js +1 -0
- package/dist/assets/authentication.a6f04750.js +73 -0
- package/dist/assets/autorefresh.fa8b7b34.js +1 -0
- package/dist/assets/aws.3b1c64af.js +1 -0
- package/dist/assets/backing-directus.1ed89e33.js +1 -0
- package/dist/assets/brainfuck.af40cbfc.js +1 -0
- package/dist/assets/cli.5153aa86.js +4 -0
- package/dist/assets/cli.e8e2526b.js +19 -0
- package/dist/assets/clike.75f55953.js +1 -0
- package/dist/assets/clojure.f44f8182.js +1 -0
- package/dist/assets/cloudron.53c430b8.js +1 -0
- package/dist/assets/cmake.dc51a5f4.js +1 -0
- package/dist/assets/cobol.bd572fbc.js +1 -0
- package/dist/assets/codebase-overview.e9df94fc.js +1 -0
- package/dist/assets/coffeescript.903da3d2.js +1 -0
- package/dist/assets/collections.1c745e99.css +1 -0
- package/dist/assets/collections.2453db3a.js +106 -0
- package/dist/assets/collections.aa896b3f.js +2 -0
- package/dist/assets/commonlisp.0c024da5.js +1 -0
- package/dist/assets/config-options.b1233b4b.js +138 -0
- package/dist/assets/content.1b1e95cf.js +1 -0
- package/dist/assets/creating-extensions.bfd7c57c.js +11 -0
- package/dist/assets/crystal.80f7e1ba.js +1 -0
- package/dist/assets/css.eb89b9da.js +1 -0
- package/dist/assets/cypher.f649c40f.js +4 -0
- package/dist/assets/d.3e286089.js +1 -0
- package/dist/assets/dart.5b9bb9bb.js +1 -0
- package/dist/assets/data-model.0e360572.js +1 -0
- package/dist/assets/data-sharing.da96e52e.js +1 -0
- package/dist/assets/de-at.a1f7dd1d.js +1 -1
- package/dist/assets/de.a8c4aad1.js +1 -1
- package/dist/assets/diff.c63eafa7.js +1 -0
- package/dist/assets/digitalocean-app-platform.3412cb40.js +3 -0
- package/dist/assets/display-templates.915c0c5b.js +1 -0
- package/dist/assets/displays.99989c6d.js +49 -0
- package/dist/assets/django.3a6905fc.js +1 -0
- package/dist/assets/{docker.e74fbe37.js → docker.e1bb4205.js} +5 -5
- package/dist/assets/dockerfile.a9f614c8.js +1 -0
- package/dist/assets/documentation.788d4998.js +1 -0
- package/dist/assets/dtd.5b2d40ab.js +1 -0
- package/dist/assets/dylan.744cd79f.js +1 -0
- package/dist/assets/ebnf.6637a8f6.js +1 -0
- package/dist/assets/ecl.cdabfae6.js +1 -0
- package/dist/assets/eiffel.60b61e7f.js +1 -0
- package/dist/assets/elm.74b68fc8.js +1 -0
- package/dist/assets/email-templates.1f5ac335.js +2 -0
- package/dist/assets/endpoints.aaac7c81.js +27 -0
- package/dist/assets/erlang.d6cd5265.js +1 -0
- package/dist/assets/es-MX.956444f4.js +1 -0
- package/dist/assets/extensions.34c12005.js +12 -0
- package/dist/assets/factor.965cfdad.js +1 -0
- package/dist/assets/faq.89e68608.js +2 -0
- package/dist/assets/fcl.e515f605.js +1 -0
- package/dist/assets/fields.54985585.js +135 -0
- package/dist/assets/file-library.3e651030.js +1 -0
- package/dist/assets/files.064d5a35.js +187 -0
- package/dist/assets/filter-rules.e442e006.js +76 -0
- package/dist/assets/filters.3db1b044.js +1 -0
- package/dist/assets/{folders.5102c9ea.js → folders.0024d3d3.js} +20 -20
- package/dist/assets/forth.c62ab807.js +1 -0
- package/dist/assets/fortran.c0e428c5.js +1 -0
- package/dist/assets/gas.fd59e425.js +1 -0
- package/dist/assets/gcp.627205b5.js +60 -0
- package/dist/assets/gfm.8125a8e6.js +1 -0
- package/dist/assets/gherkin.c9a9f9d2.js +1 -0
- package/dist/assets/github-ci.abd39dcc.js +2 -0
- package/dist/assets/glossary.75ca2027.js +1 -0
- package/dist/assets/glossary.bf083fb1.js +1 -0
- package/dist/assets/go.31390264.js +1 -0
- package/dist/assets/groovy.c940d48b.js +1 -0
- package/dist/assets/haml.1a456af6.js +1 -0
- package/dist/assets/handlebars.d3c0e9e6.js +1 -0
- package/dist/assets/haskell-literate.06d0d330.js +1 -0
- package/dist/assets/haskell.f83a5b48.js +1 -0
- package/dist/assets/haxe.cf38bc86.js +1 -0
- package/dist/assets/hooks.eda18b02.js +60 -0
- package/dist/assets/htmlembedded.4765ab1f.js +1 -0
- package/dist/assets/htmlmixed.a4506ee0.js +1 -0
- package/dist/assets/http.cf2042b8.js +1 -0
- package/dist/assets/idl.2b562d7a.js +1 -0
- package/dist/assets/{iis.fc6aa5dd.js → iis.109e5a8a.js} +2 -2
- package/dist/assets/import-export.3da878a4.js +2 -0
- package/dist/assets/index.009353d9.js +1 -0
- package/dist/assets/index.05e20b6f.js +1 -0
- package/dist/assets/index.064c96df.js +1 -0
- package/dist/assets/index.08e6475d.js +1 -0
- package/dist/assets/index.0a4e8fad.js +1 -0
- package/dist/assets/index.131b4ee8.js +1 -0
- package/dist/assets/index.17ad666d.js +1 -0
- package/dist/assets/index.1a186179.js +1 -0
- package/dist/assets/index.1b3cf886.js +1 -1
- package/dist/assets/index.1d927fd3.js +1 -0
- package/dist/assets/index.1e0212f9.js +1 -0
- package/dist/assets/index.27da0362.js +1 -0
- package/dist/assets/index.2ff40292.js +1 -0
- package/dist/assets/index.35fb04b2.js +1 -0
- package/dist/assets/index.3acd783e.js +1 -0
- package/dist/assets/index.3c7e729b.js +1 -0
- package/dist/assets/index.40c42250.css +1 -0
- package/dist/assets/index.44b36a96.js +1 -0
- package/dist/assets/index.44c7ed90.js +1 -0
- package/dist/assets/index.4533ce42.js +1 -0
- package/dist/assets/index.48fd0edb.js +1 -0
- package/dist/assets/index.491a4003.js +1 -0
- package/dist/assets/index.4de2df6a.js +1 -0
- package/dist/assets/index.4ff10039.js +1 -0
- package/dist/assets/index.515f0cb5.js +1 -0
- package/dist/assets/index.5312378b.js +1 -0
- package/dist/assets/index.540a1c0d.js +1 -0
- package/dist/assets/index.5490bf54.js +1 -0
- package/dist/assets/index.54a49224.js +1 -0
- package/dist/assets/index.55f6227c.js +1 -0
- package/dist/assets/index.5d10078c.js +1 -0
- package/dist/assets/index.5e2cb31c.js +1 -0
- package/dist/assets/index.629b6c38.js +1 -0
- package/dist/assets/index.6687eb7d.js +1 -0
- package/dist/assets/index.6752521e.js +1 -0
- package/dist/assets/index.691d9c7a.js +1 -0
- package/dist/assets/index.70f6f88a.entry.js +3406 -0
- package/dist/assets/index.71e28483.js +1 -0
- package/dist/assets/index.734cf408.js +1 -0
- package/dist/assets/index.76212e14.js +1 -0
- package/dist/assets/index.788544c8.js +1 -0
- package/dist/assets/index.859a78cb.js +1 -0
- package/dist/assets/index.8c9bb9d2.js +1 -0
- package/dist/assets/index.8f901e72.js +1 -0
- package/dist/assets/index.90aad19e.js +1 -0
- package/dist/assets/index.921bf39b.js +1 -0
- package/dist/assets/index.9b23cd7f.js +1 -0
- package/dist/assets/index.9b42e31d.js +26 -0
- package/dist/assets/index.9fbcba2f.js +1 -0
- package/dist/assets/index.a0bc3d71.js +1 -0
- package/dist/assets/index.a40a776b.js +1 -0
- package/dist/assets/index.a9473e05.js +1 -0
- package/dist/assets/index.ae9b035a.js +1 -0
- package/dist/assets/index.b09321f5.js +1 -0
- package/dist/assets/index.b635a926.js +1 -0
- package/dist/assets/index.b871b7a5.js +1 -0
- package/dist/assets/index.b8baec6c.js +1 -0
- package/dist/assets/index.b955a1be.js +1 -0
- package/dist/assets/index.bb82940a.js +1 -0
- package/dist/assets/index.bbf0131f.js +1 -0
- package/dist/assets/index.bc32829f.js +1 -0
- package/dist/assets/index.bc3296ff.js +1 -0
- package/dist/assets/index.c219c9fd.js +1 -0
- package/dist/assets/index.c54243ff.js +1 -0
- package/dist/assets/index.c6ea1824.js +1 -0
- package/dist/assets/index.c91867d3.js +1 -0
- package/dist/assets/index.d911a640.js +1 -0
- package/dist/assets/index.db01bb54.js +1 -0
- package/dist/assets/index.ddbad0a0.js +1 -0
- package/dist/assets/index.e39c7e76.js +1 -0
- package/dist/assets/index.e7e17448.js +1 -0
- package/dist/assets/index.e9099679.js +1 -0
- package/dist/assets/index.e9faa1b7.js +1 -0
- package/dist/assets/index.ea326829.js +1 -0
- package/dist/assets/index.f334ad18.js +1 -0
- package/dist/assets/index.f5a62bca.js +1 -0
- package/dist/assets/index.f6a5906f.js +1 -0
- package/dist/assets/index.f6d90b7c.js +1 -0
- package/dist/assets/index.f715fb2c.js +1 -0
- package/dist/assets/index.f80921e7.js +1 -0
- package/dist/assets/index.fc7b1181.js +1 -0
- package/dist/assets/index.fd2a5a74.js +1 -0
- package/dist/assets/index.ff5502c6.js +1 -0
- package/dist/assets/index.ff5a189a.js +1 -0
- package/dist/assets/{input-rich-text-html.4dd91dd7.js → input-rich-text-html.1550fe06.js} +32 -32
- package/dist/assets/{input-rich-text-html.ef9358cf.css → input-rich-text-html.2d85a8a3.css} +1 -1
- package/dist/assets/insights.c8ed7c1c.js +1 -0
- package/dist/assets/installation.78c6d9f6.js +1 -0
- package/dist/assets/interfaces.9e145c45.js +46 -0
- package/dist/assets/introduction.2e6f5c1d.js +90 -0
- package/dist/assets/introduction.78a2a844.js +4 -0
- package/dist/assets/introduction.7c5efc8a.js +1 -0
- package/dist/assets/introduction.d5621d79.js +1 -0
- package/dist/assets/{items.4e295453.js → items.4205dfa0.js} +27 -27
- package/dist/assets/items.64ed9295.js +1 -0
- package/dist/assets/javascript-hint.29e9b67f.js +1 -0
- package/dist/assets/javascript.d2db845f.js +1 -0
- package/dist/assets/jinja2.f97723a0.js +1 -0
- package/dist/assets/jsx.3f2b01c1.js +1 -0
- package/dist/assets/julia.fa920089.js +1 -0
- package/dist/assets/layouts.3c14b583.js +54 -0
- package/dist/assets/layouts.ca8afd39.js +1 -0
- package/dist/assets/livescript.2ec2e5ab.js +1 -0
- package/dist/assets/localization.374b7427.js +1 -0
- package/dist/assets/lua.5e0c8497.js +1 -0
- package/dist/assets/manual.ab601c95.js +10 -0
- package/dist/assets/mark-selection.54726b3f.js +1 -0
- package/dist/assets/match-highlighter.218123e7.js +1 -0
- package/dist/assets/mathematica.df44764c.js +1 -0
- package/dist/assets/mbox.491dfb6c.js +1 -0
- package/dist/assets/migrations.8989fedc.js +19 -0
- package/dist/assets/mirc.a9dca563.js +1 -0
- package/dist/assets/mllike.0a469a43.js +1 -0
- package/dist/assets/modelica.306697a8.js +1 -0
- package/dist/assets/modules.17c944d1.js +69 -0
- package/dist/assets/mscgen.a45d586b.js +1 -0
- package/dist/assets/multiplex.26e09ed5.js +3 -0
- package/dist/assets/mumps.ae29c70e.js +1 -0
- package/dist/assets/nginx.52e6bfcd.js +1 -0
- package/dist/assets/notifications.33c688c9.js +153 -0
- package/dist/assets/nsis.5869c4bd.js +1 -0
- package/dist/assets/ntriples.c7dd54df.js +1 -0
- package/dist/assets/octave.ef49cef7.js +1 -0
- package/dist/assets/overlay.9a3d0cba.js +1 -0
- package/dist/assets/overview.3436365c.js +1 -0
- package/dist/assets/overview.623fafba.js +1 -0
- package/dist/assets/overview.dbebe94a.js +1 -0
- package/dist/assets/oz.6a13c27c.js +1 -0
- package/dist/assets/panels.385b173a.js +65 -0
- package/dist/assets/pascal.77947c82.js +1 -0
- package/dist/assets/pegjs.fb3674fc.js +1 -0
- package/dist/assets/perl.bd20c5e2.js +1 -0
- package/dist/assets/{permissions.c754088f.js → permissions.f84f8d42.js} +19 -19
- package/dist/assets/php.f7000a8d.js +1 -0
- package/dist/assets/pig.7044156f.js +1 -0
- package/dist/assets/pinia.256cc3da.entry.js +5 -0
- package/dist/assets/pl-PL.22d5965f.js +1 -0
- package/dist/assets/plesk.f7e3d5ef.js +27 -0
- package/dist/assets/powershell.d6251d29.js +1 -0
- package/dist/assets/presets-bookmarks.1b8ec70c.js +1 -0
- package/dist/assets/{presets.21984d83.js → presets.b1e8b6c1.js} +20 -20
- package/dist/assets/project-settings.d32669a9.js +1 -0
- package/dist/assets/projects.b0451bed.js +1 -0
- package/dist/assets/properties.21d46a91.js +1 -0
- package/dist/assets/protobuf.0595884b.js +1 -0
- package/dist/assets/pug.02047604.js +1 -0
- package/dist/assets/puppet.7c07ba75.js +1 -0
- package/dist/assets/python.fe6c7a24.js +1 -0
- package/dist/assets/q.bfdf1988.js +1 -0
- package/dist/assets/query.dbe0b56d.js +152 -0
- package/dist/assets/quickstart.01824cc9.js +9 -0
- package/dist/assets/quickstart.4d7c7736.js +20 -0
- package/dist/assets/r.d6b5ac21.js +1 -0
- package/dist/assets/relations.d29aa86d.js +115 -0
- package/dist/assets/relationships.c9c5db8a.js +55 -0
- package/dist/assets/revisions.2898106e.js +40 -0
- package/dist/assets/{roles.aa9ecdfc.js → roles.9fec37da.js} +21 -21
- package/dist/assets/rpm.92483469.js +1 -0
- package/dist/assets/rst.b2603799.js +1 -0
- package/dist/assets/ruby.0246dbd5.js +1 -0
- package/dist/assets/running-locally.811d0dcc.js +26 -0
- package/dist/assets/runtime-core.esm-bundler.b1f35d24.js +4 -0
- package/dist/assets/rust.dd8abd8d.js +1 -0
- package/dist/assets/sas.d26b2302.js +1 -0
- package/dist/assets/sass.a791aa27.js +1 -0
- package/dist/assets/scheme.ef2b1440.js +1 -0
- package/dist/assets/{sdk.c37a5fba.js → sdk.12cd7974.js} +48 -48
- package/dist/assets/security.8e2a8a41.js +1 -0
- package/dist/assets/{server.a0eeaade.js → server.9f12ae3e.js} +12 -12
- package/dist/assets/settings.149d1dff.js +1 -0
- package/dist/assets/settings.28abc1f0.js +51 -0
- package/dist/assets/shell.2f3bc735.js +1 -0
- package/dist/assets/show-hint.6fa4d537.js +1 -0
- package/dist/assets/sieve.99fca314.js +1 -0
- package/dist/assets/simple.0e90a38e.js +1 -0
- package/dist/assets/slim.92d997b6.js +1 -0
- package/dist/assets/smalltalk.a9b3ffec.js +1 -0
- package/dist/assets/smarty.c54a652c.js +1 -0
- package/dist/assets/solr.1356a877.js +1 -0
- package/dist/assets/soy.e1b19eef.js +1 -0
- package/dist/assets/sparql.1335f7a5.js +1 -0
- package/dist/assets/spreadsheet.e9096343.js +1 -0
- package/dist/assets/sql.ac45a460.js +1 -0
- package/dist/assets/{sso-examples.6c849325.js → sso-examples.b52061be.js} +12 -12
- package/dist/assets/sso.64b2717b.js +22 -0
- package/dist/assets/stex.fb7fd990.js +1 -0
- package/dist/assets/stylus.d0281b2a.js +1 -0
- package/dist/assets/support.94e3734b.js +1 -0
- package/dist/assets/swift.a9fd2d64.js +1 -0
- package/dist/assets/tcl.8f7bdfb5.js +1 -0
- package/dist/assets/teams.9ff14f8f.js +1 -0
- package/dist/assets/textile.ae199003.js +1 -0
- package/dist/assets/themes.df7ec485.js +5 -0
- package/dist/assets/tiddlywiki.52caa0ed.js +1 -0
- package/dist/assets/tiki.831b9315.js +1 -0
- package/dist/assets/toml.6f660b6b.js +1 -0
- package/dist/assets/tornado.01563722.js +1 -0
- package/dist/assets/translations.5191ab7c.js +1 -0
- package/dist/assets/troff.f5f797f2.js +1 -0
- package/dist/assets/ttcn-cfg.a6927435.js +1 -0
- package/dist/assets/ttcn.24c6b925.js +1 -0
- package/dist/assets/turtle.d0e831a8.js +1 -0
- package/dist/assets/twig.d5e90842.js +1 -0
- package/dist/assets/ubuntu.f4c21886.js +11 -0
- package/dist/assets/upgrades-migrations.15498a47.js +1 -0
- package/dist/assets/use-sync.ded22f96.js +28 -0
- package/dist/assets/user-directory.47c8beb2.js +1 -0
- package/dist/assets/users-roles-permissions.005388fa.js +1 -0
- package/dist/assets/users.84251ab9.js +252 -0
- package/dist/assets/{utilities.b9c2a9d8.js → utilities.26e6a9e8.js} +12 -12
- package/dist/assets/vb.bb33c7a5.js +1 -0
- package/dist/assets/vbscript.d8f8d95e.js +1 -0
- package/dist/assets/velocity.26721ec5.js +1 -0
- package/dist/assets/verilog.24512a86.js +1 -0
- package/dist/assets/vhdl.6e64552d.js +1 -0
- package/dist/assets/vue-i18n.ecb0af35.entry.js +31 -0
- package/dist/assets/vue-router.8987d576.entry.js +5 -0
- package/dist/assets/vue.1f4d921a.entry.js +1 -0
- package/dist/assets/vue.4450af40.js +1 -0
- package/dist/assets/vue.runtime.esm-bundler.ac4ff7af.js +1 -0
- package/dist/assets/wast.79f64b4c.js +1 -0
- package/dist/assets/{webhooks.1a2e06f9.js → webhooks.4eeecb7d.js} +20 -20
- package/dist/assets/webhooks.61b11e7d.js +1 -0
- package/dist/assets/webidl.860cea4e.js +1 -0
- package/dist/assets/xquery.23f4fa34.js +1 -0
- package/dist/assets/yacas.0d60e6b0.js +1 -0
- package/dist/assets/yaml-frontmatter.70ea956b.js +1 -0
- package/dist/assets/yaml.9d5c3ac9.js +1 -0
- package/dist/assets/z80.527b7cb8.js +1 -0
- package/dist/index.html +8 -5
- package/package.json +20 -20
- package/dist/assets/@directus_extensions-sdk.1c0f07ca.entry.js +0 -1
- package/dist/assets/accounts.edeb6689.js +0 -1
- package/dist/assets/active-line.0636efc2.js +0 -1
- package/dist/assets/activity-log.ccf294c8.js +0 -1
- package/dist/assets/activity.499754f1.js +0 -80
- package/dist/assets/apl.7a44de96.js +0 -1
- package/dist/assets/asciiarmor.5c853147.js +0 -1
- package/dist/assets/asn.1.6b4c88d3.js +0 -1
- package/dist/assets/asterisk.8e49b2d4.js +0 -1
- package/dist/assets/authentication.b275d277.js +0 -73
- package/dist/assets/autorefresh.a124d3d5.js +0 -1
- package/dist/assets/aws.58f13022.js +0 -1
- package/dist/assets/backing-directus.b130191d.js +0 -1
- package/dist/assets/brainfuck.40978cfa.js +0 -1
- package/dist/assets/cli.0b1af962.js +0 -4
- package/dist/assets/cli.7f7160a6.js +0 -19
- package/dist/assets/clike.00b06ab7.js +0 -1
- package/dist/assets/clojure.10c02a8f.js +0 -1
- package/dist/assets/cloudron.48238a4e.js +0 -1
- package/dist/assets/cmake.d18a828d.js +0 -1
- package/dist/assets/cobol.4a07e81a.js +0 -1
- package/dist/assets/codebase-overview.c751de28.js +0 -1
- package/dist/assets/coffeescript.299e7b17.js +0 -1
- package/dist/assets/collections.8d532d78.js +0 -106
- package/dist/assets/collections.fe434f3d.js +0 -2
- package/dist/assets/commonlisp.5d3e08ca.js +0 -1
- package/dist/assets/config-options.0cd2f84e.js +0 -138
- package/dist/assets/content.07663d5f.js +0 -1
- package/dist/assets/creating-extensions.a48d5b6f.js +0 -11
- package/dist/assets/crystal.e8ccc500.js +0 -1
- package/dist/assets/css.e214430c.js +0 -1
- package/dist/assets/cypher.93c35226.js +0 -4
- package/dist/assets/d.45452c03.js +0 -1
- package/dist/assets/dart.6fca9dfe.js +0 -1
- package/dist/assets/data-model.5b650232.js +0 -1
- package/dist/assets/data-sharing.4ba1e153.js +0 -1
- package/dist/assets/diff.7a671810.js +0 -1
- package/dist/assets/digitalocean-app-platform.a3805812.js +0 -3
- package/dist/assets/display-templates.ef1705ab.js +0 -1
- package/dist/assets/displays.29c9a9ab.js +0 -49
- package/dist/assets/django.70792d4e.js +0 -1
- package/dist/assets/dockerfile.4d9813c1.js +0 -1
- package/dist/assets/documentation.74a793e9.js +0 -1
- package/dist/assets/dtd.2b6ca795.js +0 -1
- package/dist/assets/dylan.bf03afb2.js +0 -1
- package/dist/assets/ebnf.f0b8dcf5.js +0 -1
- package/dist/assets/ecl.fb54f12a.js +0 -1
- package/dist/assets/eiffel.aa01c1cf.js +0 -1
- package/dist/assets/elm.7007e9b9.js +0 -1
- package/dist/assets/email-templates.ef4839b6.js +0 -2
- package/dist/assets/endpoints.84b6faf9.js +0 -27
- package/dist/assets/erlang.801fa573.js +0 -1
- package/dist/assets/es-MX.6a8efcab.js +0 -1
- package/dist/assets/extensions.f89cb4f9.js +0 -12
- package/dist/assets/factor.f3fd82cf.js +0 -1
- package/dist/assets/faq.5f488978.js +0 -2
- package/dist/assets/fcl.ccf78194.js +0 -1
- package/dist/assets/fields.f711b1ce.js +0 -135
- package/dist/assets/file-library.30569134.js +0 -1
- package/dist/assets/files.8a404c59.js +0 -187
- package/dist/assets/filter-rules.79bac758.js +0 -76
- package/dist/assets/filters.efeb8b64.js +0 -1
- package/dist/assets/forth.3c037035.js +0 -1
- package/dist/assets/fortran.b05b78ad.js +0 -1
- package/dist/assets/gas.c36c196e.js +0 -1
- package/dist/assets/gcp.b10d08b2.js +0 -60
- package/dist/assets/gfm.4af9c8c0.js +0 -1
- package/dist/assets/gherkin.102ec9b3.js +0 -1
- package/dist/assets/github-ci.b23bdb51.js +0 -2
- package/dist/assets/glossary.08aaa09a.js +0 -1
- package/dist/assets/glossary.2618dbcd.js +0 -1
- package/dist/assets/go.319184dc.js +0 -1
- package/dist/assets/groovy.219a3f40.js +0 -1
- package/dist/assets/haml.c2cec3e9.js +0 -1
- package/dist/assets/handlebars.c1ae3040.js +0 -1
- package/dist/assets/haskell-literate.34e39e13.js +0 -1
- package/dist/assets/haskell.cb6719a1.js +0 -1
- package/dist/assets/haxe.d5e820fa.js +0 -1
- package/dist/assets/hooks.d0a9236e.js +0 -60
- package/dist/assets/htmlembedded.b86f1a8b.js +0 -1
- package/dist/assets/htmlmixed.9027b596.js +0 -1
- package/dist/assets/http.dddc47fa.js +0 -1
- package/dist/assets/idl.c0519b30.js +0 -1
- package/dist/assets/import-export.3bcbaa5a.js +0 -2
- package/dist/assets/index.008f8280.js +0 -1
- package/dist/assets/index.02e0a0ac.js +0 -1
- package/dist/assets/index.08c47c7e.js +0 -1
- package/dist/assets/index.09f9fbcc.js +0 -1
- package/dist/assets/index.0aa19433.js +0 -1
- package/dist/assets/index.113f40e2.js +0 -1
- package/dist/assets/index.121f2a8c.js +0 -1
- package/dist/assets/index.15d64410.js +0 -1
- package/dist/assets/index.1913d925.js +0 -1
- package/dist/assets/index.1cdf4945.js +0 -1
- package/dist/assets/index.1ee7fd69.js +0 -1
- package/dist/assets/index.25ba1dd6.js +0 -1
- package/dist/assets/index.25c51012.js +0 -1
- package/dist/assets/index.27dda6e3.js +0 -26
- package/dist/assets/index.2a4455f2.js +0 -1
- package/dist/assets/index.2bc6ec6e.js +0 -1
- package/dist/assets/index.2d56f924.js +0 -1
- package/dist/assets/index.35fd1f62.js +0 -1
- package/dist/assets/index.36b203bd.js +0 -1
- package/dist/assets/index.39c20f1a.js +0 -1
- package/dist/assets/index.3f0e45c1.js +0 -1
- package/dist/assets/index.3fa2dd41.js +0 -1
- package/dist/assets/index.48964803.js +0 -1
- package/dist/assets/index.4ad01be0.js +0 -1
- package/dist/assets/index.511997cb.js +0 -1
- package/dist/assets/index.53f3d9fa.js +0 -1
- package/dist/assets/index.5679f5a7.js +0 -1
- package/dist/assets/index.57fe3e27.js +0 -1
- package/dist/assets/index.591b77a6.js +0 -1
- package/dist/assets/index.5add30a0.js +0 -1
- package/dist/assets/index.5e03ed98.js +0 -1
- package/dist/assets/index.685be3df.js +0 -1
- package/dist/assets/index.6868b6d6.js +0 -1
- package/dist/assets/index.6ad356db.js +0 -1
- package/dist/assets/index.6c408ae4.entry.js +0 -547
- package/dist/assets/index.6ddc4fdc.js +0 -1
- package/dist/assets/index.6fe5d0b3.js +0 -1
- package/dist/assets/index.713eb83a.js +0 -1
- package/dist/assets/index.75c64623.js +0 -1
- package/dist/assets/index.7aed9a74.js +0 -1
- package/dist/assets/index.7c788990.js +0 -1
- package/dist/assets/index.8287e0f2.js +0 -1
- package/dist/assets/index.86d0c122.js +0 -1
- package/dist/assets/index.8701e013.js +0 -1
- package/dist/assets/index.876e2150.js +0 -1
- package/dist/assets/index.87f07d63.js +0 -1
- package/dist/assets/index.8a9126c0.js +0 -1
- package/dist/assets/index.9020f7f8.js +0 -1
- package/dist/assets/index.95a38652.js +0 -1
- package/dist/assets/index.967c699a.js +0 -1
- package/dist/assets/index.9c19b896.js +0 -1
- package/dist/assets/index.9d085155.js +0 -1
- package/dist/assets/index.9d19e89b.css +0 -1
- package/dist/assets/index.a2dcf3d3.js +0 -1
- package/dist/assets/index.a33e3a0f.js +0 -1
- package/dist/assets/index.a3994e3e.js +0 -1
- package/dist/assets/index.a4a0cf79.js +0 -1
- package/dist/assets/index.a9130ef3.js +0 -1
- package/dist/assets/index.a92db738.js +0 -1
- package/dist/assets/index.a939892c.js +0 -1
- package/dist/assets/index.aaef5d37.js +0 -1
- package/dist/assets/index.b94caa53.js +0 -1
- package/dist/assets/index.be817c86.js +0 -1
- package/dist/assets/index.bea565ce.js +0 -1
- package/dist/assets/index.beaf92cf.js +0 -1
- package/dist/assets/index.c1202cf2.js +0 -1
- package/dist/assets/index.c3b8bf08.js +0 -1
- package/dist/assets/index.c64d544a.js +0 -1
- package/dist/assets/index.caf0f908.js +0 -1
- package/dist/assets/index.cbab03d1.js +0 -1
- package/dist/assets/index.cc9ba44d.js +0 -1
- package/dist/assets/index.ce185aa0.js +0 -1
- package/dist/assets/index.d1676f89.js +0 -1
- package/dist/assets/index.da1ac686.js +0 -1
- package/dist/assets/index.df9b999e.js +0 -1
- package/dist/assets/index.e4754ab9.js +0 -1
- package/dist/assets/index.e629cf0e.js +0 -1
- package/dist/assets/index.e6be0eb0.js +0 -1
- package/dist/assets/index.ec867eba.js +0 -1
- package/dist/assets/index.f0af50e7.js +0 -1
- package/dist/assets/index.f54461df.js +0 -1
- package/dist/assets/index.f7d9fffc.js +0 -1
- package/dist/assets/index.fad2fd5d.js +0 -1
- package/dist/assets/insights.36c270c0.js +0 -1
- package/dist/assets/installation.16ae0771.js +0 -1
- package/dist/assets/interfaces.b5cebf09.js +0 -46
- package/dist/assets/introduction.04bbf522.js +0 -90
- package/dist/assets/introduction.1cc62f08.js +0 -1
- package/dist/assets/introduction.33560106.js +0 -4
- package/dist/assets/introduction.70bf2d81.js +0 -1
- package/dist/assets/items.83b34697.js +0 -1
- package/dist/assets/javascript-hint.620ad47b.js +0 -1
- package/dist/assets/javascript.22a42c19.js +0 -1
- package/dist/assets/jinja2.0b1cb0bb.js +0 -1
- package/dist/assets/jsx.248607cc.js +0 -1
- package/dist/assets/julia.2162bdbd.js +0 -1
- package/dist/assets/layouts.4f3cc3e7.js +0 -54
- package/dist/assets/layouts.7ced46fd.js +0 -1
- package/dist/assets/livescript.3ddfeda6.js +0 -1
- package/dist/assets/localization.e9668093.js +0 -1
- package/dist/assets/lua.a305cd56.js +0 -1
- package/dist/assets/manual.0e28cbc4.js +0 -10
- package/dist/assets/mark-selection.7b5a6fc9.js +0 -1
- package/dist/assets/match-highlighter.873d12a5.js +0 -1
- package/dist/assets/mathematica.01c3553a.js +0 -1
- package/dist/assets/mbox.22a8b245.js +0 -1
- package/dist/assets/migrations.7147c537.js +0 -19
- package/dist/assets/mirc.fa73561d.js +0 -1
- package/dist/assets/mllike.4c54ebfa.js +0 -1
- package/dist/assets/modelica.07339979.js +0 -1
- package/dist/assets/modules.bfb7199d.js +0 -69
- package/dist/assets/mscgen.686cc266.js +0 -1
- package/dist/assets/multiplex.a88458b2.js +0 -3
- package/dist/assets/mumps.003d0d45.js +0 -1
- package/dist/assets/nginx.dcba875a.js +0 -1
- package/dist/assets/notifications.78fe69c9.js +0 -153
- package/dist/assets/nsis.a2c211d0.js +0 -1
- package/dist/assets/ntriples.4e06baf8.js +0 -1
- package/dist/assets/octave.c6583f11.js +0 -1
- package/dist/assets/overlay.742dc1cd.js +0 -1
- package/dist/assets/overview.28df1146.js +0 -1
- package/dist/assets/overview.508f215d.js +0 -1
- package/dist/assets/overview.97626817.js +0 -1
- package/dist/assets/oz.afa3546c.js +0 -1
- package/dist/assets/panels.89c0ed45.js +0 -65
- package/dist/assets/pascal.8941c2f2.js +0 -1
- package/dist/assets/pegjs.3aee5930.js +0 -1
- package/dist/assets/perl.3625c222.js +0 -1
- package/dist/assets/php.4cdaa752.js +0 -1
- package/dist/assets/pig.21fe63de.js +0 -1
- package/dist/assets/pinia.70349f0e.entry.js +0 -1
- package/dist/assets/pl-PL.5a1f6a70.js +0 -1
- package/dist/assets/plesk.af9c7c77.js +0 -27
- package/dist/assets/powershell.cfe96af1.js +0 -1
- package/dist/assets/presets-bookmarks.e7d33809.js +0 -1
- package/dist/assets/project-settings.d98ebcb5.js +0 -1
- package/dist/assets/projects.06f11c9e.js +0 -1
- package/dist/assets/properties.90e293bc.js +0 -1
- package/dist/assets/protobuf.19a9e9b8.js +0 -1
- package/dist/assets/pug.8fdd6886.js +0 -1
- package/dist/assets/puppet.6dfeb6da.js +0 -1
- package/dist/assets/python.e0245f5c.js +0 -1
- package/dist/assets/q.d3d8a6a4.js +0 -1
- package/dist/assets/query.8828d31d.js +0 -152
- package/dist/assets/quickstart.26991a56.js +0 -9
- package/dist/assets/quickstart.60decafe.js +0 -20
- package/dist/assets/r.09038281.js +0 -1
- package/dist/assets/relations.29fed98c.js +0 -115
- package/dist/assets/relationships.9b51c50f.js +0 -55
- package/dist/assets/revisions.0f19e955.js +0 -40
- package/dist/assets/rpm.881b5f64.js +0 -1
- package/dist/assets/rst.b571a0d9.js +0 -1
- package/dist/assets/ruby.83d0f6e3.js +0 -1
- package/dist/assets/running-locally.261a8137.js +0 -26
- package/dist/assets/rust.8eb02a00.js +0 -1
- package/dist/assets/sas.1c3e0687.js +0 -1
- package/dist/assets/sass.76cf8437.js +0 -1
- package/dist/assets/scheme.4fa8c610.js +0 -1
- package/dist/assets/security.ed33172c.js +0 -1
- package/dist/assets/settings.d5f90d4f.js +0 -51
- package/dist/assets/settings.fd4e15aa.js +0 -1
- package/dist/assets/shell.c82f9c19.js +0 -1
- package/dist/assets/show-hint.40044b34.js +0 -1
- package/dist/assets/sieve.55ac0753.js +0 -1
- package/dist/assets/simple.96f65f94.js +0 -1
- package/dist/assets/slim.e70a287c.js +0 -1
- package/dist/assets/smalltalk.d09dc24d.js +0 -1
- package/dist/assets/smarty.8ea9900c.js +0 -1
- package/dist/assets/solr.a026a0e6.js +0 -1
- package/dist/assets/soy.5034b90a.js +0 -1
- package/dist/assets/sparql.756dd255.js +0 -1
- package/dist/assets/spreadsheet.ec5c0c2e.js +0 -1
- package/dist/assets/sql.ec917110.js +0 -1
- package/dist/assets/sso.9920cf75.js +0 -22
- package/dist/assets/stex.d0b9833b.js +0 -1
- package/dist/assets/stylus.8b561261.js +0 -1
- package/dist/assets/support.b7301715.js +0 -1
- package/dist/assets/swift.1654ac84.js +0 -1
- package/dist/assets/tcl.b39e3c47.js +0 -1
- package/dist/assets/teams.7d07ab3c.js +0 -1
- package/dist/assets/textile.f922c3fe.js +0 -1
- package/dist/assets/themes.a5e50284.js +0 -5
- package/dist/assets/tiddlywiki.cb8704a6.js +0 -1
- package/dist/assets/tiki.088d0dec.js +0 -1
- package/dist/assets/toml.4bc9ea0d.js +0 -1
- package/dist/assets/tornado.b19655d1.js +0 -1
- package/dist/assets/translations.cd3858e6.js +0 -1
- package/dist/assets/troff.3a27423f.js +0 -1
- package/dist/assets/ttcn-cfg.66931016.js +0 -1
- package/dist/assets/ttcn.4b670503.js +0 -1
- package/dist/assets/turtle.8a998017.js +0 -1
- package/dist/assets/twig.2e58d76f.js +0 -1
- package/dist/assets/ubuntu.b8abc8f2.js +0 -11
- package/dist/assets/upgrades-migrations.5d6e809a.js +0 -1
- package/dist/assets/use-sync.18016d01.js +0 -1
- package/dist/assets/user-directory.370a7f49.js +0 -1
- package/dist/assets/users-roles-permissions.7f9a42f3.js +0 -1
- package/dist/assets/users.b4781411.js +0 -252
- package/dist/assets/vb.f5e6afca.js +0 -1
- package/dist/assets/vbscript.c44059f4.js +0 -1
- package/dist/assets/velocity.99ae445e.js +0 -1
- package/dist/assets/vendor.9387af12.css +0 -1
- package/dist/assets/vendor.f6090249.js +0 -2939
- package/dist/assets/verilog.75ff9f03.js +0 -1
- package/dist/assets/vhdl.e0f4e9d6.js +0 -1
- package/dist/assets/vue-i18n.4c1cb94b.entry.js +0 -1
- package/dist/assets/vue-router.d21957c3.entry.js +0 -1
- package/dist/assets/vue.a6974133.js +0 -1
- package/dist/assets/vue.deaebe46.entry.js +0 -1
- package/dist/assets/wast.9a32ecc0.js +0 -1
- package/dist/assets/webhooks.8a69b405.js +0 -1
- package/dist/assets/webidl.c677ed4a.js +0 -1
- package/dist/assets/xquery.766f7ffc.js +0 -1
- package/dist/assets/yacas.4cab11b4.js +0 -1
- package/dist/assets/yaml-frontmatter.3fc182ba.js +0 -1
- package/dist/assets/yaml.14967251.js +0 -1
- package/dist/assets/z80.ea9cb3dc.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as g}from"./vendor.f6090249.js";function k(o,l){return l.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(i){if(i!=="default"&&!(i in o)){var u=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(o,i,u.get?u:{enumerable:!0,get:function(){return t[i]}})}})}),Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var A={exports:{}};(function(o,l){(function(t){t(g.exports)})(function(t){t.defineMode("mathematica",function(i,u){var m="[a-zA-Z\\$][a-zA-Z0-9\\$]*",$="(?:\\d+)",z="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",p="(?:\\.\\w+|\\w+\\.\\w*|\\w+)",v="(?:`(?:`?"+z+")?)",Z=new RegExp("(?:"+$+"(?:\\^\\^"+p+v+"?(?:\\*\\^[+-]?\\d+)?))"),h=new RegExp("(?:"+z+v+"?(?:\\*\\^[+-]?\\d+)?)"),d=new RegExp("(?:`?)(?:"+m+")(?:`(?:"+m+"))*(?:`?)");function c(e,r){var n;return n=e.next(),n==='"'?(r.tokenize=b,r.tokenize(e,r)):n==="("&&e.eat("*")?(r.commentLevel++,r.tokenize=x,r.tokenize(e,r)):(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,r){for(var n,a=!1,f=!1;(n=e.next())!=null;){if(n==='"'&&!f){a=!0;break}f=!f&&n==="\\"}return a&&!f&&(r.tokenize=c),"string"}function x(e,r){for(var n,a;r.commentLevel>0&&(a=e.next())!=null;)n==="("&&a==="*"&&r.commentLevel++,n==="*"&&a===")"&&r.commentLevel--,n=a;return r.commentLevel<=0&&(r.tokenize=c),"comment"}return{startState:function(){return{tokenize:c,commentLevel:0}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},blockCommentStart:"(*",blockCommentEnd:"*)"}}),t.defineMIME("text/x-mathematica",{name:"mathematica"})})})();var s=A.exports,_=k({__proto__:null,default:s},[A.exports]);export{_ as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as g}from"./vendor.f6090249.js";function S(t,f){return f.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(i){if(i!=="default"&&!(i in t)){var a=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:function(){return n[i]}})}})}),Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(t,f){(function(n){n(g.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"],a=["Date","Subject","Comments","Keywords","Resent-Date"];n.registerHelper("hintWords","mbox",i.concat(a));var d=/^[ \t]/,p=/^From /,m=new RegExp("^("+i.join("|")+"): "),s=new RegExp("^("+a.join("|")+"): "),v=/^[^:]+:/,b=/^[^ ]+@[^ ]+/,h=/^.*?(?=[^ ]+?@[^ ]+)/,H=/^<.*?>/,x=/^.*?(?=<.*>)/;function E(e){return e==="Subject"?"header":"string"}function R(e,r){if(e.sol()){if(r.inSeparator=!1,r.inHeader&&e.match(d))return null;if(r.inHeader=!1,r.header=null,e.match(p))return r.inHeaders=!0,r.inSeparator=!0,"atom";var o,c=!1;return(o=e.match(s))||(c=!0)&&(o=e.match(m))?(r.inHeaders=!0,r.inHeader=!0,r.emailPermitted=c,r.header=o[1],"atom"):r.inHeaders&&(o=e.match(v))?(r.inHeader=!0,r.emailPermitted=!0,r.header=o[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 u=E(r.header);if(r.emailPermitted){if(e.match(H))return u+" link";if(e.match(x))return u}return e.skipToEnd(),u}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")})})();var j=l.exports,T=S({__proto__:null,default:j},[l.exports]);export{T as m};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{w as l,y as o,z as r,A as i,E as e,W as a}from"./vendor.f6090249.js";const c=e("div",{class:"markdown-body"},[e("blockquote",null,[e("p",null,[a("Directus allows adding custom migration files that run whenever the "),e("code",null,"directus database migrate:*"),a(" commands are executed. All migrations must reside in the "),e("code",null,"extensions/migrations"),a(" folder.")])]),e("h2",{id:"file-name"},[a("File Name "),e("a",{class:"header-anchor",href:"#file-name"},"#")]),e("p",null,"The file name follows the following structure:"),e("pre",null,[e("code",null,`[identifier]-[name].js
|
|
2
|
-
`)]),e("p",null,"for example:"),e("pre",null,[e("code",null,`20201202A-my-custom-migration.js
|
|
3
|
-
`)]),e("h2",{id:"structure"},[a("Structure "),e("a",{class:"header-anchor",href:"#structure"},"#")]),e("p",null,[a("Migrations have to export an "),e("code",null,"up"),a(" and a "),e("code",null,"down"),a(" function. These functions get a "),e("a",{href:"http://knexjs.org",target:"_blank",rel:"noopener noreferrer"},"Knex"),a(" instance that can be used to do virtually whatever.")]),e("pre",null,[e("code",{class:"language-js"},[e("span",{class:"hljs-built_in"},"module"),a(`.exports = {
|
|
4
|
-
`),e("span",{class:"hljs-keyword"},"async"),a(),e("span",{class:"hljs-function"},[e("span",{class:"hljs-title"},"up"),a("("),e("span",{class:"hljs-params"},"knex"),a(")")]),a(` {
|
|
5
|
-
`),e("span",{class:"hljs-keyword"},"await"),a(" knex.schema.createTable("),e("span",{class:"hljs-string"},"'test'"),a(", "),e("span",{class:"hljs-function"},[a("("),e("span",{class:"hljs-params"},"table"),a(") =>")]),a(` {
|
|
6
|
-
table.increments();
|
|
7
|
-
table.string(`),e("span",{class:"hljs-string"},"'rijk'"),a(`);
|
|
8
|
-
});
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
`),e("span",{class:"hljs-keyword"},"async"),a(),e("span",{class:"hljs-function"},[e("span",{class:"hljs-title"},"down"),a("("),e("span",{class:"hljs-params"},"knex"),a(")")]),a(` {
|
|
12
|
-
`),e("span",{class:"hljs-keyword"},"await"),a(" knex.schema.dropTable("),e("span",{class:"hljs-string"},"'test'"),a(`);
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
`)])]),e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Danger"),e("p",null,"Seeing that these migrations are a bit of a free-for-all, you can really harm your database. Please make sure you know what you\u2019re doing and backup your database before adding these migrations.")]),e("h2",{id:"migrations-and-directus-schema"},[a("Migrations and Directus schema "),e("a",{class:"header-anchor",href:"#migrations-and-directus-schema"},"#")]),e("p",null,[a("Migrations can be used for managing contents of Directus collections (e.g. initial hydration). In order to do it, you must ensure that schema is up to date before running migrations. One way of achieving it is opting out of default "),e("code",null,"directus bootstrap"),a(" process and running:")]),e("pre",null,[e("code",{class:"language-bash"},[a(`npx directus database install
|
|
16
|
-
`),e("span",{class:"hljs-comment"},"# notice that schema is applied before running migrations"),a(`
|
|
17
|
-
npx directus schema apply ./path/to/snapshot.yaml
|
|
18
|
-
npx directus database migrate:latest
|
|
19
|
-
`)])]),e("p",null,[a("You may want to add additional steps to reflect other responsibilities of "),e("code",null,"directus bootstrap"),a(".")])],-1),m={setup(u,{expose:n}){const s={title:"Custom Migrations",modularExtension:!1};return n({frontmatter:s}),(d,p)=>{const t=l("DocsWrapper");return o(),r(t,{frontmatter:s},{default:i(()=>[c]),_:1})}}};export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as h}from"./vendor.f6090249.js";function g(a,l){return l.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!=="default"&&!(n in a)){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(a,l){(function(t){t(h.exports)})(function(t){t.defineMIME("text/mirc","mirc"),t.defineMode("mirc",function(){function n(e){for(var r={},$=e.split(" "),i=0;i<$.length;++i)r[$[i]]=!0;return r}var o=n("$! $$ $& $? $+ $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"),c=n("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=n("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 s(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 c&&c.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=s;break}$=i=="*"}return"comment"}function b(e,r){for(var $=0,i;i=e.next();){if(i==";"&&$==2){r.tokenize=s;break}i==")"?$++:i!=" "&&($=0)}return"meta"}return{startState:function(){return{tokenize:s,beforeParams:!1,inParams:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)}}})})})();var v=u.exports,y=g({__proto__:null,default:v},[u.exports]);export{y as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as x}from"./vendor.f6090249.js";function v(l,a){return a.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(d){if(d!=="default"&&!(d in l)){var i=Object.getOwnPropertyDescriptor(n,d);Object.defineProperty(l,d,i.get?i:{enumerable:!0,get:function(){return n[d]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}};(function(l,a){(function(n){n(x.exports)})(function(n){n.defineMode("mllike",function(d,i){var y={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 u in f)f.hasOwnProperty(u)&&(y[u]=i.extraWords[u]);var c=[];for(var s in y)c.push(s);n.registerHelper("hintWords","mllike",c);function k(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 t=e.current();return y.hasOwnProperty(t)?y[t]:"variable"}return null}function m(e,r){for(var o,t=!1,w=!1;(o=e.next())!=null;){if(o==='"'&&!w){t=!0;break}w=!w&&o==="\\"}return t&&!w&&(r.tokenize=k),"string"}function p(e,r){for(var o,t;r.commentLevel>0&&(t=e.next())!=null;)o==="("&&t==="*"&&r.commentLevel++,o==="*"&&t===")"&&r.commentLevel--,o=t;return r.commentLevel<=0&&(r.tokenize=k),"comment"}function h(e,r){for(var o,t;r.longString&&(t=e.next())!=null;)o==="|"&&t==="}"&&(r.longString=!1),o=t;return r.longString||(r.tokenize=k),"string"}return{startState:function(){return{tokenize:k,commentLevel:0,longString:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:i.slashComments?"//":null}}),n.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"}}),n.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}),n.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})})})();var g=b.exports,z=v({__proto__:null,default:g},[b.exports]);export{z as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as _}from"./vendor.f6090249.js";function j(p,v){return v.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(l){if(l!=="default"&&!(l in p)){var k=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(p,l,k.get?k:{enumerable:!0,get:function(){return r[l]}})}})}),Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(p,v){(function(r){r(_.exports)})(function(r){r.defineMode("modelica",function(o,t){var u=o.indentUnit,a=t.keywords||{},s=t.builtin||{},d=t.atoms||{},h=/[;=\(:\),{}.*<>+\-\/^\[\]]/,w=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,f=/[0-9]/,b=/[_a-zA-Z]/;function x(n,e){return n.skipToEnd(),e.tokenize=null,"comment"}function E(n,e){for(var i=!1,c;c=n.next();){if(i&&c=="/"){e.tokenize=null;break}i=c=="*"}return"comment"}function S(n,e){for(var i=!1,c;(c=n.next())!=null;){if(c=='"'&&!i){e.tokenize=null,e.sol=!1;break}i=!i&&c=="\\"}return"string"}function O(n,e){for(n.eatWhile(f);n.eat(f)||n.eat(b););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":s.propertyIsEnumerable(i)?"builtin":d.propertyIsEnumerable(i)?"atom":"variable"}function I(n,e){for(;n.eat(/[^']/););return e.tokenize=null,e.sol=!1,n.eat("'")?"variable":"error"}function W(n,e){return n.eatWhile(f),n.eat(".")&&n.eatWhile(f),(n.eat("e")||n.eat("E"))&&(n.eat("-")||n.eat("+"),n.eatWhile(f)),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=E;else{if(w.test(i+n.peek()))return n.next(),e.tokenize=null,"operator";if(h.test(i))return e.tokenize=null,"operator";if(b.test(i))e.tokenize=O;else if(i=="'"&&n.peek()&&n.peek()!="'")e.tokenize=I;else if(i=='"')e.tokenize=S;else if(f.test(i))e.tokenize=W;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 k="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",y="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(d){if(d)for(var h in d)d.hasOwnProperty(h)&&u.push(h)}a(t.keywords),a(t.builtin),a(t.atoms),u.length&&(t.helperType=o[0],r.registerHelper("hintWords",o[0],u));for(var s=0;s<o.length;++s)r.defineMIME(o[s],t)}z(["text/x-modelica"],{name:"modelica",keywords:l(k),builtin:l(y),atoms:l(m)})})})();var D=g.exports,q=j({__proto__:null,default:D},[g.exports]);export{q as m};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import{w as l,y as c,z as u,A as o,E as e,C as a,W as t}from"./vendor.f6090249.js";const h={class:"markdown-body"},d=t("Custom Modules are completely open-ended components that allow you to create new experiences within the Directus platform. "),p=t("Learn more about Modules"),m=t("."),_=e("h2",{id:"extension-entrypoint"},[t("Extension Entrypoint "),e("a",{class:"header-anchor",href:"#extension-entrypoint"},"#")],-1),f=e("p",null,[t("The entrypoint of your module 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 module. When loading your module, this object is imported by the Directus host.")],-1),g=e("p",null,"Example of an entrypoint:",-1),y=e("pre",null,[e("code",{class:"language-js"},[e("span",{class:"hljs-keyword"},"import"),t(" ModuleComponent "),e("span",{class:"hljs-keyword"},"from"),t(),e("span",{class:"hljs-string"},"'./module.vue'"),t(`;
|
|
2
|
-
|
|
3
|
-
`),e("span",{class:"hljs-keyword"},"export"),t(),e("span",{class:"hljs-keyword"},"default"),t(` {
|
|
4
|
-
`),e("span",{class:"hljs-attr"},"id"),t(": "),e("span",{class:"hljs-string"},"'custom'"),t(`,
|
|
5
|
-
`),e("span",{class:"hljs-attr"},"name"),t(": "),e("span",{class:"hljs-string"},"'Custom'"),t(`,
|
|
6
|
-
`),e("span",{class:"hljs-attr"},"icon"),t(": "),e("span",{class:"hljs-string"},"'box'"),t(`,
|
|
7
|
-
`),e("span",{class:"hljs-attr"},"routes"),t(`: [
|
|
8
|
-
{
|
|
9
|
-
`),e("span",{class:"hljs-attr"},"path"),t(": "),e("span",{class:"hljs-string"},"''"),t(`,
|
|
10
|
-
`),e("span",{class:"hljs-attr"},"component"),t(`: ModuleComponent,
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
};
|
|
14
|
-
`)])],-1),b=e("h4",{id:"available-options"},[t("Available Options "),e("a",{class:"header-anchor",href:"#available-options"},"#")],-1),v=e("li",null,[e("code",null,"id"),t(" \u2014 The unique key for this module. It is good practice to scope proprietary modules with an author prefix.")],-1),w=e("li",null,[e("code",null,"name"),t(" \u2014 The human-readable name for this module.")],-1),j=e("code",null,"icon",-1),x=t(" \u2014 An icon name from the "),k=t("material icon set"),A=t(", or the extended list of Directus custom icons."),T=e("li",null,[e("code",null,"color"),t(" \u2014 A color associated with the module.")],-1),C=e("li",null,[e("code",null,"routes"),t(" \u2014 Details the routes in your module. The routes are registered as nested routes with the module\u2019s "),e("code",null,"id"),t(" serving as the base path.")],-1),V=e("li",null,[e("code",null,"hidden"),t(" \u2014 A boolean that indicates if the module should be hidden from the module bar.")],-1),I=e("li",null,[e("code",null,"preRegisterCheck"),t(" \u2014 A function that receives the current user as the first parameter and the permissions of this user as the second parameter. It should return a boolean that indicates if the check succeeded.")],-1),S=e("h2",{id:"routes-array"},[t("Routes Array "),e("a",{class:"header-anchor",href:"#routes-array"},"#")],-1),D=e("p",null,[t("The "),e("code",null,"routes"),t(" array of a module works very similar to Vue Router\u2019s "),e("code",null,"routes"),t(" array. The only difference is that the module\u2019s routes are registered as child routes of the "),e("code",null,"/<module-id>"),t(" route.")],-1),E=e("p",null,[t("The "),e("code",null,"routes"),t(" array should contain one or more route objects with a "),e("code",null,"path"),t(" property. Because the routes are registered as child routes, the "),e("code",null,"path"),t(" property should be a relative path without a leading slash. As the button in the module bar corresponding to your module links to the "),e("code",null,"/<module-id>"),t(" route, the "),e("code",null,"routes"),t(" array should contain a "),e("em",null,"root"),t(" route with an empty path.")],-1),M=e("p",null,[t("If a route should render something, the route object should have a "),e("code",null,"component"),t(" property with a reference to a route component.")],-1),W=e("p",null,[t("To learn more about the properties of route objects, you can refer to the "),e("a",{href:"https://next.router.vuejs.org/guide/",target:"_blank",rel:"noopener noreferrer"},"Vue Router Docs"),t(".")],-1),B=e("h2",{id:"route-component"},[t("Route Component "),e("a",{class:"header-anchor",href:"#route-component"},"#")],-1),R=e("p",null,"A single module can have multiple route components registered under different routes. Whenever a certain route is visited, the corresponding route component is rendered, occupying the whole browser window. The route component has to be Vue component. The most straightforward way to write a Vue component is to use the Vue Single File Component syntax.",-1),P=e("p",null,"Example of a route component using the Vue SFC syntax:",-1),q=e("pre",null,[e("code",{class:"language-vue"},`<template>
|
|
15
|
-
<private-view title="My Custom Module">Content goes here...</private-view>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
export default {};
|
|
20
|
-
<\/script>
|
|
21
|
-
`)],-1),L=e("p",null,[t("A route component provides an blank canvas for creating anything you need. You can use the globally registered "),e("code",null,"private-view"),t(" component to get access to Directus\u2019 page structure consisting of the module bar, the navigation, the sidebar, the header and the main content area.")],-1),N=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Enable the Module"),e("p",null,"Before a module appears in the module bar, it has to be enabled inside the project settings.")],-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),F=e("h2",{id:"accessing-internal-systems"},[t("Accessing Internal Systems "),e("a",{class:"header-anchor",href:"#accessing-internal-systems"},"#")],-1),z=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),G=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(`;
|
|
22
|
-
|
|
23
|
-
`),e("span",{class:"hljs-keyword"},"export"),t(),e("span",{class:"hljs-keyword"},"default"),t(` {
|
|
24
|
-
`),e("span",{class:"hljs-function"},[e("span",{class:"hljs-title"},"setup"),t("("),e("span",{class:"hljs-params"}),t(")")]),t(` {
|
|
25
|
-
`),e("span",{class:"hljs-keyword"},"const"),t(` api = useApi();
|
|
26
|
-
|
|
27
|
-
`),e("span",{class:"hljs-keyword"},"const"),t(` { useCollectionsStore } = useStores();
|
|
28
|
-
`),e("span",{class:"hljs-keyword"},"const"),t(` collectionsStore = useCollectionsStore();
|
|
29
|
-
|
|
30
|
-
`),e("span",{class:"hljs-comment"},"// ..."),t(`
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
`)])],-1),H=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),Y=e("h2",{id:"example%3A-accessing-the-api-from-within-your-extension"},[t("Example: Accessing the API from within your extension "),e("a",{class:"header-anchor",href:"#example%3A-accessing-the-api-from-within-your-extension"},"#")],-1),J=e("p",null,[t("The Directus App\u2019s Vue app instance provides a field called "),e("code",null,"api"),t(", which can be injected into Vue components using "),e("a",{href:"https://v3.vuejs.org/guide/component-provide-inject.html",target:"_blank",rel:"noopener noreferrer"},"Vue\u2019s inject framework"),t(". This "),e("code",null,"api"),t(" field contains a property called "),e("code",null,"api"),t(", which is an authenticated Axios instance. Here\u2019s an example of how to use it:")],-1),K=e("pre",null,[e("code",{class:"language-vue"},`<template>
|
|
34
|
-
<private-view title="Example Collection List">
|
|
35
|
-
<v-list>
|
|
36
|
-
<v-list-item v-for="col in collections" v-bind:key="col.collection">
|
|
37
|
-
{{ col.collection }}
|
|
38
|
-
</v-list-item>
|
|
39
|
-
</v-list>
|
|
40
|
-
<v-button v-on:click="logToConsole">Log collections to console</v-button>
|
|
41
|
-
</private-view>
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<script>
|
|
45
|
-
export default {
|
|
46
|
-
data() {
|
|
47
|
-
return {
|
|
48
|
-
collections: null,
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
methods: {
|
|
52
|
-
logToConsole: function () {
|
|
53
|
-
console.log(this.collections);
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
inject: ['api'],
|
|
57
|
-
mounted() {
|
|
58
|
-
// log the system field so you can see what attributes are available under it
|
|
59
|
-
// remove this line when you're done.
|
|
60
|
-
console.log(this.api);
|
|
61
|
-
|
|
62
|
-
// Get a list of all available collections to use with this module
|
|
63
|
-
this.api.get('/collections?limit=-1').then((res) => {
|
|
64
|
-
this.collections = res.data.data;
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
<\/script>
|
|
69
|
-
`)],-1),Q=e("p",null,"In the above example, you can see that:",-1),U=e("ul",null,[e("li",null,[t("The "),e("code",null,"api"),t(" field gets injected into the component and becomes available as an attribute of the component (ie "),e("code",null,"this.api"),t(")")]),e("li",null,[t("When the component is mounted, it uses "),e("code",null,"this.api.get"),t(" to request a list of all available collections")]),e("li",null,"The names of the collections are rendered into a list in the component\u2019s template"),e("li",null,"a button is added with a method that logs all the data for the collections to the console")],-1),X=e("p",null,[t("This is just a basic example. A more efficient way to access and work with the list of collections would be to get an instance of the "),e("code",null,"collectionsStore"),t(" using the provided "),e("code",null,"stores"),t(" and accessing "),e("code",null,"stores.useCollectionsStore()"),t(", but that\u2019s beyond the scope of this guide.")],-1),oe={setup(Z,{expose:i}){const s={title:"Custom Modules",modularExtension:!0};return i({frontmatter:s}),($,ee)=>{const n=l("router-link"),r=l("DocsWrapper");return c(),u(r,{frontmatter:s},{default:o(()=>[e("div",h,[e("blockquote",null,[e("p",null,[d,a(n,{to:"/docs/getting-started/glossary/#modules"},{default:o(()=>[p]),_:1}),m])]),_,f,g,y,b,e("ul",null,[v,w,e("li",null,[j,x,a(n,{to:"/docs/getting-started/glossary/#material-icons"},{default:o(()=>[k]),_:1}),A]),T,C,V,I]),S,D,E,M,W,B,R,P,q,L,N,O,F,z,G,H,Y,J,K,Q,U,X])]),_:1})}}};export{oe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as x}from"./vendor.f6090249.js";function f(s,a){return a.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(o){if(o!=="default"&&!(o in s)){var c=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,c.get?c:{enumerable:!0,get:function(){return e[o]}})}})}),Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(s,a){(function(e){e(x.exports)})(function(e){var o={mscgen:{keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},xu:{keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},msgenny:{keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}};e.defineMode("mscgen",function(t,r){var n=o[r&&r.language||"mscgen"];return{startState:l,copyState:m,token:b(n),lineComment:"#",blockCommentStart:"/*",blockCommentEnd:"*/"}}),e.defineMIME("text/x-mscgen","mscgen"),e.defineMIME("text/x-xu",{name:"mscgen",language:"xu"}),e.defineMIME("text/x-msgenny",{name:"mscgen",language:"msgenny"});function c(t){return new RegExp("^\\b(?:"+t.join("|")+")\\b","i")}function i(t){return new RegExp("^(?:"+t.join("|")+")","i")}function l(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function m(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}function b(t){return function(r,n){if(r.match(i(t.brackets),!0,!0))return"bracket";if(!n.inComment){if(r.match(/\/\*[^\*\/]*/,!0,!0))return n.inComment=!0,"comment";if(r.match(i(t.singlecomment),!0,!0))return r.skipToEnd(),"comment"}if(n.inComment)return r.match(/[^\*\/]*\*\//,!0,!0)?n.inComment=!1:r.skipToEnd(),"comment";if(!n.inString&&r.match(/\"(\\\"|[^\"])*/,!0,!0))return n.inString=!0,"string";if(n.inString)return r.match(/[^\"]*\"/,!0,!0)?n.inString=!1:r.skipToEnd(),"string";if(!!t.keywords&&r.match(c(t.keywords),!0,!0)||r.match(c(t.options),!0,!0)||r.match(c(t.arcsWords),!0,!0)||r.match(i(t.arcsOthers),!0,!0))return"keyword";if(!!t.operators&&r.match(i(t.operators),!0,!0))return"operator";if(!!t.constants&&r.match(i(t.constants),!0,!0))return"variable";if(!t.inAttributeList&&!!t.attributes&&r.match("[",!0,!0))return t.inAttributeList=!0,"bracket";if(t.inAttributeList){if(t.attributes!==null&&r.match(c(t.attributes),!0,!0))return"attribute";if(r.match("]",!0,!0))return t.inAttributeList=!1,"bracket"}return r.next(),"base"}}})})();var d=u.exports,w=f({__proto__:null,default:d},[u.exports]);export{w as m};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{bW as m}from"./vendor.f6090249.js";var D={exports:{}};(function(u,x){(function(c){c(m.exports)})(function(c){c.multiplexingMode=function(o){var t=Array.prototype.slice.call(arguments,1);function y(i,n,l,e){if(typeof n=="string"){var p=i.indexOf(n,l);return e&&p>-1?p+n.length:p}var v=n.exec(l?i.slice(l):i);return v?v.index+l+(e?v[0].length:0):-1}return{startState:function(){return{outer:c.startState(o),innerActive:null,inner:null,startingInner:!1}},copyState:function(i){return{outer:c.copyState(o,i.outer),innerActive:i.innerActive,inner:i.innerActive&&c.copyState(i.innerActive.mode,i.inner),startingInner:i.startingInner}},token:function(i,n){if(n.innerActive){var r=n.innerActive,e=i.string;if(!r.close&&i.sol())return n.innerActive=n.inner=null,this.token(i,n);var f=r.close&&!n.startingInner?y(e,r.close,i.pos,r.parseDelimiters):-1;if(f==i.pos&&!r.parseDelimiters)return i.match(r.close),n.innerActive=n.inner=null,r.delimStyle&&r.delimStyle+" "+r.delimStyle+"-close";f>-1&&(i.string=e.slice(0,f));var A=r.mode.token(i,n.inner);return f>-1?i.string=e:i.pos>i.start&&(n.startingInner=!1),f==i.pos&&r.parseDelimiters&&(n.innerActive=n.inner=null),r.innerStyle&&(A?A=A+" "+r.innerStyle:A=r.innerStyle),A}else{for(var l=1/0,e=i.string,p=0;p<t.length;++p){var v=t[p],f=y(e,v.open,i.pos);if(f==i.pos){v.parseDelimiters||i.match(v.open),n.startingInner=!!v.parseDelimiters,n.innerActive=v;var d=0;if(o.indent){var g=o.indent(n.outer,"","");g!==c.Pass&&(d=g)}return n.inner=c.startState(v.mode,d),v.delimStyle&&v.delimStyle+" "+v.delimStyle+"-open"}else f!=-1&&f<l&&(l=f)}l!=1/0&&(i.string=e.slice(0,l));var S=o.token(i,n.outer);return l!=1/0&&(i.string=e),S}},indent:function(i,n,l){var e=i.innerActive?i.innerActive.mode:o;return e.indent?e.indent(i.innerActive?i.inner:i.outer,n,l):c.Pass},blankLine:function(i){var n=i.innerActive?i.innerActive.mode:o;if(n.blankLine&&n.blankLine(i.innerActive?i.inner:i.outer),i.innerActive)i.innerActive.close===`
|
|
2
|
-
`&&(i.innerActive=i.inner=null);else for(var l=0;l<t.length;++l){var e=t[l];e.open===`
|
|
3
|
-
`&&(i.innerActive=e,i.inner=c.startState(e.mode,n.indent?n.indent(i.outer,"",""):0))}},electricChars:o.electricChars,innerMode:function(i){return i.inner?{state:i.inner,mode:i.innerActive.mode}:{state:i.outer,mode:o}}}}})})();export{D as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as x}from"./vendor.f6090249.js";function v(i,$){return $.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(o){if(o!=="default"&&!(o in i)){var c=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(i,o,c.get?c:{enumerable:!0,get:function(){return t[o]}})}})}),Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(i,$){(function(t){t(x.exports)})(function(t){t.defineMode("mumps",function(){function o(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var c=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),a=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),f=new RegExp("^[\\.,:]"),l=new RegExp("[()]"),d=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),m=["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"],s=["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"],p=o(s),b=o(m);function g(e,r){e.sol()&&(r.label=!0,r.commandMode=0);var n=e.peek();return n==" "||n==" "?(r.label=!1,r.commandMode==0?r.commandMode=1:(r.commandMode<0||r.commandMode==2)&&(r.commandMode=0)):n!="."&&r.commandMode>0&&(n==":"?r.commandMode=-1:r.commandMode=2),(n==="("||n===" ")&&(r.label=!1),n===";"?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":n=='"'?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(a)||e.match(c)?"operator":e.match(f)?null:l.test(n)?(e.next(),"bracket"):r.commandMode>0&&e.match(b)?"variable-2":e.match(p)?"builtin":e.match(d)?"variable":n==="$"||n==="^"?(e.next(),"builtin"):n==="@"?(e.next(),"string-2"):/[\w%]/.test(n)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}return{startState:function(){return{label:!1,commandMode:0}},token:function(e,r){var n=g(e,r);return r.label?"tag":n}}}),t.defineMIME("text/x-mumps","mumps")})})();var h=u.exports,M=v({__proto__:null,default:h},[u.exports]);export{M as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as v}from"./vendor.f6090249.js";function k(c,u){return u.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(n){if(n!=="default"&&!(n in c)){var o=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(c,n,o.get?o:{enumerable:!0,get:function(){return s[n]}})}})}),Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(c,u){(function(s){s(v.exports)})(function(s){s.defineMode("nginx",function(n){function o(_){for(var t={},r=_.split(" "),e=0;e<r.length;++e)t[r[e]]=!0;return t}var h=o("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),g=o("http mail events server types location upstream charset_map limit_except if geo map"),y=o("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),x=n.indentUnit,a;function i(_,t){return a=t,_}function l(_,t){_.eatWhile(/[\w\$_]/);var r=_.current();if(h.propertyIsEnumerable(r))return"keyword";if(g.propertyIsEnumerable(r))return"variable-2";if(y.propertyIsEnumerable(r))return"string-2";var e=_.next();if(e=="@")return _.eatWhile(/[\w\\\-]/),i("meta",_.current());if(e=="/"&&_.eat("*"))return t.tokenize=f,f(_,t);if(e=="<"&&_.eat("!"))return t.tokenize=d,d(_,t);if(e=="=")i(null,"compare");else return(e=="~"||e=="|")&&_.eat("=")?i(null,"compare"):e=='"'||e=="'"?(t.tokenize=b(e),t.tokenize(_,t)):e=="#"?(_.skipToEnd(),i("comment","comment")):e=="!"?(_.match(/^\s*\w*/),i("keyword","important")):/\d/.test(e)?(_.eatWhile(/[\w.%]/),i("number","unit")):/[,.+>*\/]/.test(e)?i(null,"select-op"):/[;{}:\[\]]/.test(e)?i(null,e):(_.eatWhile(/[\w\\\-]/),i("variable","variable"))}function f(_,t){for(var r=!1,e;(e=_.next())!=null;){if(r&&e=="/"){t.tokenize=l;break}r=e=="*"}return i("comment","comment")}function d(_,t){for(var r=0,e;(e=_.next())!=null;){if(r>=2&&e==">"){t.tokenize=l;break}r=e=="-"?r+1:0}return i("comment","comment")}function b(_){return function(t,r){for(var e=!1,p;(p=t.next())!=null&&!(p==_&&!e);)e=!e&&p=="\\";return e||(r.tokenize=l),i("string","string")}}return{startState:function(_){return{tokenize:l,baseIndent:_||0,stack:[]}},token:function(_,t){if(_.eatSpace())return null;a=null;var r=t.tokenize(_,t),e=t.stack[t.stack.length-1];return a=="hash"&&e=="rule"?r="atom":r=="variable"&&(e=="rule"?r="number":(!e||e=="@media{")&&(r="tag")),e=="rule"&&/^[\{\};]$/.test(a)&&t.stack.pop(),a=="{"?e=="@media"?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):a=="}"?t.stack.pop():a=="@media"?t.stack.push("@media"):e=="{"&&a!="comment"&&t.stack.push("rule"),r},indent:function(_,t){var r=_.stack.length;return/^\}/.test(t)&&(r-=_.stack[_.stack.length-1]=="rule"?2:1),_.baseIndent+r*x},electricChars:"}"}}),s.defineMIME("text/x-nginx-conf","nginx")})})();var z=m.exports,q=k({__proto__:null,default:z},[m.exports]);export{q as n};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import{w as l,y as c,z as h,A as s,E as e,C as n,W as t}from"./vendor.f6090249.js";const d={class:"markdown-body"},p=e("div",{class:"two-up"},[e("div",{class:"left"},[e("blockquote",null,[e("p",null,"Notifications allow you to send/receive messages to/from other users of the platform.")])]),e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-notification-object"},"The Notification Object")]),e("li",null,[e("a",{href:"#list-notifications"},"List Notifications")]),e("li",null,[e("a",{href:"#retrieve-a-notification"},"Retrieve a notification")]),e("li",null,[e("a",{href:"#create-a-notification"},"Create a Notification")]),e("li",null,[e("a",{href:"#create-multiple-notifications"},"Create Multiple Notifications")]),e("li",null,[e("a",{href:"#update-a-notification"},"Update a Notification")]),e("li",null,[e("a",{href:"#update-multiple-notifications"},"Update Multiple Notifications")]),e("li",null,[e("a",{href:"#delete-a-notification"},"Delete a Notification")]),e("li",null,[e("a",{href:"#delete-multiple-notifications"},"Delete Multiple Notifications")])])])])])],-1),u=e("hr",null,null,-1),f=e("h2",{id:"the-notification-object"},[t("The Notification Object "),e("a",{class:"header-anchor",href:"#the-notification-object"},"#")],-1),_=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"definitions"},[e("p",null,[e("code",null,"id"),t(),e("strong",null,"integer"),e("br"),t(" Primary key of the revision.")]),e("p",null,[e("code",null,"timestamp"),t(),e("strong",null,"string"),e("br"),t(" Timestamp in ISO8601 when the notification was created.")]),e("p",null,[e("code",null,"status"),t(),e("strong",null,"string"),e("br"),t(" Current status of the notification. One of \u201Cinbox\u201D, \u201Carchived\u201D.")]),e("p",null,[e("code",null,"recipient"),t(),e("strong",null,"many-to-one"),e("br"),t(" User that received the notification.")]),e("p",null,[e("code",null,"sender"),t(),e("strong",null,"many-to-one"),e("br"),t(" User that sent the notification, if any.")]),e("p",null,[e("code",null,"subject"),t(),e("strong",null,"string"),e("br"),t(" Subject line of the message.")]),e("p",null,[e("code",null,"message"),t(),e("strong",null,"string"),e("br"),t(" Notification\u2019s message content. Will be sent in the email.")]),e("p",null,[e("code",null,"collection"),t(),e("strong",null,"string"),e("br"),t(" Collection this notification references.")]),e("p",null,[e("code",null,"item"),t(),e("strong",null,"string"),e("br"),t(" Primary key of the item this notification references.")])])]),e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[t(`{
|
|
2
|
-
`),e("span",{class:"hljs-attr"},'"id"'),t(": "),e("span",{class:"hljs-number"},"2"),t(`,
|
|
3
|
-
`),e("span",{class:"hljs-attr"},'"timestamp"'),t(": "),e("span",{class:"hljs-string"},'"2021-11-24T13:57:35Z"'),t(`,
|
|
4
|
-
`),e("span",{class:"hljs-attr"},'"status"'),t(": "),e("span",{class:"hljs-string"},'"inbox"'),t(`,
|
|
5
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),t(": "),e("span",{class:"hljs-string"},'"3EE34828-B43C-4FB2-A721-5151579B08EA"'),t(`,
|
|
6
|
-
`),e("span",{class:"hljs-attr"},'"sender"'),t(": "),e("span",{class:"hljs-string"},'"497a495e-5529-4e46-8feb-2f35e9b85601"'),t(`,
|
|
7
|
-
`),e("span",{class:"hljs-attr"},'"subject"'),t(": "),e("span",{class:"hljs-string"},'"You were mentioned in articles"'),t(`,
|
|
8
|
-
`),e("span",{class:"hljs-attr"},'"message"'),t(": "),e("span",{class:"hljs-string"},'"\\nHello admin@example.com,\\n\\rijk@directus.io has mentioned you in a comment:\\n\\n> Hello <em>admin@example.com</em>!\\n\\n<a href=\\"http://localhost:8080/admin/content/articles/1\\">Click here to view.</a>\\n"'),t(`,
|
|
9
|
-
`),e("span",{class:"hljs-attr"},'"collection"'),t(": "),e("span",{class:"hljs-string"},'"articles"'),t(`,
|
|
10
|
-
`),e("span",{class:"hljs-attr"},'"item"'),t(": "),e("span",{class:"hljs-string"},'"1"'),t(`
|
|
11
|
-
}
|
|
12
|
-
`)])])])],-1),m=e("hr",null,null,-1),g=e("h2",{id:"list-notifications"},[t("List Notifications "),e("a",{class:"header-anchor",href:"#list-notifications"},"#")],-1),j=e("p",null,"List all notifications that exist in Directus.",-1),y={class:"two-up"},b={class:"left"},q=e("h3",{id:"query-parameters"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),x=t("Supports all "),v=t("global query parameters"),E=t("."),w=e("h3",{id:"returns"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns"},"#")],-1),T=t("An array of up to "),k=t("limit"),P=t(),R=e("a",{href:"#the-notification-object"},"notification objects",-1),S=t(". If no items are available, data will be an empty array."),A={class:"right"},N=e("h3",{id:"rest-api"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),C=e("pre",null,[e("code",null,`GET /notifications
|
|
13
|
-
SEARCH /notifications
|
|
14
|
-
`)],-1),D=t("Learn more about SEARCH ->"),L=e("h3",{id:"graphql"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")],-1),O=e("pre",null,[e("code",null,`POST /graphql/system
|
|
15
|
-
`)],-1),Q=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),t(` {
|
|
16
|
-
notifications: [directus_notifications]
|
|
17
|
-
}
|
|
18
|
-
`)])],-1),I=e("h5",{id:"example"},[t("Example "),e("a",{class:"header-anchor",href:"#example"},"#")],-1),H=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),t(` {
|
|
19
|
-
notifications {
|
|
20
|
-
id
|
|
21
|
-
recipient
|
|
22
|
-
subject
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`)])],-1),M=e("hr",null,null,-1),B=e("h2",{id:"retrieve-a-notification"},[t("Retrieve a notification "),e("a",{class:"header-anchor",href:"#retrieve-a-notification"},"#")],-1),G=e("p",null,"List an existing notification by primary key.",-1),U={class:"two-up"},Y={class:"left"},W=e("h3",{id:"query-parameters-2"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),V=t("Supports all "),z=t("global query parameters"),F=t("."),Z=e("h3",{id:"returns-2"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),J=e("p",null,[t("Returns the requested "),e("a",{href:"#the-notification-object"},"notification object"),t(".")],-1),K=e("div",{class:"right"},[e("h3",{id:"rest-api-2"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),e("pre",null,[e("code",null,`GET /notifications/:id
|
|
26
|
-
`)]),e("h5",{id:"example-2"},[t("Example "),e("a",{class:"header-anchor",href:"#example-2"},"#")]),e("pre",null,[e("code",null,`GET /notifications/42
|
|
27
|
-
`)]),e("h3",{id:"graphql-2"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-2"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
28
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),t(` {
|
|
29
|
-
notifications_by_id(id:`),e("span",{class:"hljs-literal"}," ID"),t(`!): directus_notifications
|
|
30
|
-
}
|
|
31
|
-
`)])]),e("h5",{id:"example-3"},[t("Example "),e("a",{class:"header-anchor",href:"#example-3"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),t(` {
|
|
32
|
-
notifications_by_id(id: `),e("span",{class:"hljs-number"},"42"),t(`) {
|
|
33
|
-
id
|
|
34
|
-
sender
|
|
35
|
-
recipient
|
|
36
|
-
message
|
|
37
|
-
subject
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
`)])])],-1),X=e("hr",null,null,-1),$=e("h2",{id:"create-a-notification"},[t("Create a Notification "),e("a",{class:"header-anchor",href:"#create-a-notification"},"#")],-1),ee=e("p",null,"Create a new notification.",-1),te={class:"two-up"},se={class:"left"},ae=e("h3",{id:"query-parameters-3"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),ne=t("Supports all "),ie=t("global query parameters"),le=t("."),oe=e("h3",{id:"request-body"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body"},"#")],-1),re=e("p",null,[t("A partial "),e("a",{href:"#the-notification-object"},"notification object"),t(".")],-1),ce=e("h3",{id:"returns-3"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),he=e("p",null,[t("Returns the "),e("a",{href:"#the-notification-object"},"notification object"),t(" for the created notification.")],-1),de=e("div",{class:"right"},[e("h3",{id:"rest-api-3"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),e("pre",null,[e("code",null,`POST /notifications
|
|
41
|
-
`)]),e("h5",{id:"example-4"},[t("Example "),e("a",{class:"header-anchor",href:"#example-4"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /notifications"),t(`
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),t(": "),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(`,
|
|
45
|
-
`),e("span",{class:"hljs-attr"},'"subject"'),t(": "),e("span",{class:"hljs-string"},'"Hi there!"'),t(`
|
|
46
|
-
}
|
|
47
|
-
`)])]),e("h3",{id:"graphql-3"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-3"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
48
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
49
|
-
create_notifications_item(data: create_directus_notifications_input!): directus_notifications
|
|
50
|
-
}
|
|
51
|
-
`)])]),e("h5",{id:"example-5"},[t("Example "),e("a",{class:"header-anchor",href:"#example-5"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
52
|
-
create_notifications_item(data: { recipient: `),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(", subject: "),e("span",{class:"hljs-string"},'"Hi there!"'),t(` }) {
|
|
53
|
-
id
|
|
54
|
-
recipient
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`)])])],-1),pe=e("hr",null,null,-1),ue=e("h2",{id:"create-multiple-notifications"},[t("Create Multiple Notifications "),e("a",{class:"header-anchor",href:"#create-multiple-notifications"},"#")],-1),fe=e("p",null,"Create multiple new notifications.",-1),_e={class:"two-up"},me={class:"left"},ge=e("h3",{id:"query-parameters-4"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),je=t("Supports all "),ye=t("global query parameters"),be=t("."),qe=e("h3",{id:"request-body-2"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),xe=e("p",null,[t("An array of partial "),e("a",{href:"#the-notification-object"},"notification objects"),t(".")],-1),ve=e("h3",{id:"returns-4"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),Ee=e("p",null,[t("Returns the "),e("a",{href:"#the-notification-object"},"notification object"),t(" for the created notification.")],-1),we=e("div",{class:"right"},[e("h3",{id:"rest-api-4"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),e("pre",null,[e("code",null,`POST /notifications
|
|
58
|
-
`)]),e("h5",{id:"example-6"},[t("Example "),e("a",{class:"header-anchor",href:"#example-6"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /notifications"),t(`
|
|
59
|
-
|
|
60
|
-
[
|
|
61
|
-
{
|
|
62
|
-
`),e("span",{class:"hljs-attr"},'"collection"'),t(": "),e("span",{class:"hljs-string"},'"directus_files"'),t(`,
|
|
63
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),t(": "),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(`,
|
|
64
|
-
`),e("span",{class:"hljs-attr"},'"message"'),t(": "),e("span",{class:"hljs-string"},'"Hi there! You should check out these files"'),t(`
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
`),e("span",{class:"hljs-attr"},'"collection"'),t(": "),e("span",{class:"hljs-string"},'"articles"'),t(`,
|
|
68
|
-
`),e("span",{class:"hljs-attr"},'"recipient"'),t(": "),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(`,
|
|
69
|
-
`),e("span",{class:"hljs-attr"},'"message"'),t(": "),e("span",{class:"hljs-string"},'"Hi there! You should check out these articles"'),t(`
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
`)])]),e("h3",{id:"graphql-4"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-4"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
73
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
74
|
-
create_notifications_items(data: [create_directus_notifications_input!]!): [directus_notifications]
|
|
75
|
-
}
|
|
76
|
-
`)])]),e("h5",{id:"example-7"},[t("Example "),e("a",{class:"header-anchor",href:"#example-7"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
77
|
-
create_notifications_items(
|
|
78
|
-
data: [
|
|
79
|
-
{
|
|
80
|
-
collection: `),e("span",{class:"hljs-string"},'"directus_files"'),t(`
|
|
81
|
-
recipient: `),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(`
|
|
82
|
-
message: `),e("span",{class:"hljs-string"},'"Hi there! You should check out these files"'),t(`
|
|
83
|
-
}
|
|
84
|
-
{
|
|
85
|
-
collection: `),e("span",{class:"hljs-string"},'"articles"'),t(`
|
|
86
|
-
recipient: `),e("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),t(`
|
|
87
|
-
message: `),e("span",{class:"hljs-string"},'"Hi there! You should check out these articles"'),t(`
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
) {
|
|
91
|
-
id
|
|
92
|
-
recipient
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
`)])])],-1),Te=e("hr",null,null,-1),ke=e("h2",{id:"update-a-notification"},[t("Update a Notification "),e("a",{class:"header-anchor",href:"#update-a-notification"},"#")],-1),Pe=e("p",null,"Update an existing notification.",-1),Re=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Email Notifications"),e("p",null,"Emails are only sent when the notification is created. Updated to an existing notification won\u2019t trigger a new notification email to be sent.")],-1),Se={class:"two-up"},Ae={class:"left"},Ne=e("h3",{id:"query-parameters-5"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),Ce=t("Supports all "),De=t("global query parameters"),Le=t("."),Oe=e("h3",{id:"request-body-3"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-3"},"#")],-1),Qe=e("p",null,[t("A partial "),e("a",{href:"#the-notification-object"},"notification object"),t(".")],-1),Ie=e("h3",{id:"returns-5"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),He=e("p",null,[t("Returns the "),e("a",{href:"#the-notification-object"},"notification object"),t(" for the updated notification.")],-1),Me=e("div",{class:"right"},[e("h3",{id:"rest-api-5"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",null,`PATCH /notifications/:id
|
|
96
|
-
`)]),e("h5",{id:"example-8"},[t("Example "),e("a",{class:"header-anchor",href:"#example-8"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /notifications/34"),t(`
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
`),e("span",{class:"hljs-attr"},'"message"'),t(": "),e("span",{class:"hljs-string"},'"This is my updated notification"'),t(`
|
|
100
|
-
}
|
|
101
|
-
`)])]),e("h3",{id:"graphql-5"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-5"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
102
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
103
|
-
update_notifications_item(id:`),e("span",{class:"hljs-literal"}," ID"),t(`!, data: update_directus_notifications_input): directus_notifications
|
|
104
|
-
}
|
|
105
|
-
`)])]),e("h5",{id:"example-9"},[t("Example "),e("a",{class:"header-anchor",href:"#example-9"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
106
|
-
update_notifications_item(id: `),e("span",{class:"hljs-number"},"32"),t(", data: { message: "),e("span",{class:"hljs-string"},'"This is my updated notification"'),t(` }) {
|
|
107
|
-
id
|
|
108
|
-
message
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
`)])])],-1),Be=e("hr",null,null,-1),Ge=e("h2",{id:"update-multiple-notifications"},[t("Update Multiple Notifications "),e("a",{class:"header-anchor",href:"#update-multiple-notifications"},"#")],-1),Ue=e("p",null,"Update multiple existing notifications.",-1),Ye={class:"two-up"},We={class:"left"},Ve=e("h3",{id:"query-parameters-6"},[t("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-6"},"#")],-1),ze=t("Supports all "),Fe=t("global query parameters"),Ze=t("."),Je=e("h3",{id:"request-body-4"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-4"},"#")],-1),Ke=e("div",{class:"definitions"},[e("p",null,[e("code",null,"keys"),t(),e("strong",null,"Required"),e("br"),t(" Array of primary keys of the notifications you\u2019d like to update.")]),e("p",null,[e("code",null,"data"),t(),e("strong",null,"Required"),e("br"),t(" Any of "),e("a",{href:"#the-notification-object"},"the notification object"),t("\u2019s properties.")])],-1),Xe=e("h3",{id:"returns-6"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-6"},"#")],-1),$e=e("p",null,[t("Returns the "),e("a",{href:"#the-notification-object"},"notification objects"),t(" for the updated notifications.")],-1),et=e("div",{class:"right"},[e("h3",{id:"rest-api-6"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),e("pre",null,[e("code",null,`PATCH /notifications
|
|
112
|
-
`)]),e("h5",{id:"example-10"},[t("Example "),e("a",{class:"header-anchor",href:"#example-10"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /notifications"),t(`
|
|
113
|
-
|
|
114
|
-
{
|
|
115
|
-
`),e("span",{class:"hljs-attr"},'"keys"'),t(": ["),e("span",{class:"hljs-number"},"15"),t(", "),e("span",{class:"hljs-number"},"64"),t(`],
|
|
116
|
-
`),e("span",{class:"hljs-attr"},'"data"'),t(`: {
|
|
117
|
-
`),e("span",{class:"hljs-attr"},'"message"'),t(": "),e("span",{class:"hljs-string"},'"Updated message!"'),t(`
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
`)])]),e("h3",{id:"graphql-6"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-6"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
121
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
122
|
-
update_notifications_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),t(`!]!, data: update_directus_notifications_input): [directus_notifications]
|
|
123
|
-
}
|
|
124
|
-
`)])]),e("h5",{id:"example-11"},[t("Example "),e("a",{class:"header-anchor",href:"#example-11"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
125
|
-
update_notifications_items(ids: [`),e("span",{class:"hljs-number"},"15"),t(", "),e("span",{class:"hljs-number"},"64"),t("], data: { message: "),e("span",{class:"hljs-string"},'"Updated message!"'),t(` }) {
|
|
126
|
-
id
|
|
127
|
-
recipient
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
`)])])],-1),tt=e("hr",null,null,-1),st=e("h2",{id:"delete-a-notification"},[t("Delete a Notification "),e("a",{class:"header-anchor",href:"#delete-a-notification"},"#")],-1),at=e("p",null,"Delete an existing notification.",-1),nt=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"returns-7"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-7"},"#")]),e("p",null,"Empty body.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-7"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-7"},"#")]),e("pre",null,[e("code",null,`DELETE /notifications/:id
|
|
131
|
-
`)]),e("h5",{id:"example-12"},[t("Example "),e("a",{class:"header-anchor",href:"#example-12"},"#")]),e("pre",null,[e("code",null,`DELETE /notifications/34
|
|
132
|
-
`)]),e("h3",{id:"graphql-7"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-7"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
133
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
134
|
-
delete_notifications_item(id:`),e("span",{class:"hljs-literal"}," ID"),t(`!): delete_one
|
|
135
|
-
}
|
|
136
|
-
`)])]),e("h5",{id:"example-13"},[t("Example "),e("a",{class:"header-anchor",href:"#example-13"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
137
|
-
delete_notifications_item(id: `),e("span",{class:"hljs-number"},"32"),t(`) {
|
|
138
|
-
id
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
`)])])])],-1),it=e("hr",null,null,-1),lt=e("h2",{id:"delete-multiple-notifications"},[t("Delete Multiple Notifications "),e("a",{class:"header-anchor",href:"#delete-multiple-notifications"},"#")],-1),ot=e("p",null,"Delete multiple existing notifications.",-1),rt=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"request-body-5"},[t("Request Body "),e("a",{class:"header-anchor",href:"#request-body-5"},"#")]),e("p",null,"An array of notification primary keys"),e("h3",{id:"returns-8"},[t("Returns "),e("a",{class:"header-anchor",href:"#returns-8"},"#")]),e("p",null,"Empty body.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-8"},[t("REST API "),e("a",{class:"header-anchor",href:"#rest-api-8"},"#")]),e("pre",null,[e("code",null,`DELETE /notifications
|
|
142
|
-
`)]),e("h5",{id:"example-14"},[t("Example "),e("a",{class:"header-anchor",href:"#example-14"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// DELETE /notifications"),t(`
|
|
143
|
-
[`),e("span",{class:"hljs-number"},"15"),t(", "),e("span",{class:"hljs-number"},"251"),t(", "),e("span",{class:"hljs-number"},"810"),t(`]
|
|
144
|
-
`)])]),e("h3",{id:"graphql-8"},[t("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-8"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
|
|
145
|
-
`)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),t(` {
|
|
146
|
-
delete_notifications_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),t(`!]!): delete_many
|
|
147
|
-
}
|
|
148
|
-
`)])]),e("h5",{id:"example-15"},[t("Example "),e("a",{class:"header-anchor",href:"#example-15"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),t(` {
|
|
149
|
-
delete_notifications_items(ids: [`),e("span",{class:"hljs-number"},"15"),t(", "),e("span",{class:"hljs-number"},"251"),t(", "),e("span",{class:"hljs-number"},"810"),t(`]) {
|
|
150
|
-
ids
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
`)])])])],-1),ut={setup(ct,{expose:o}){const i={title:"Notifications",modularExtension:!1,pageClass:"page-reference"};return o({frontmatter:i}),(ht,dt)=>{const a=l("router-link"),r=l("DocsWrapper");return c(),h(r,{frontmatter:i},{default:s(()=>[e("div",d,[p,u,f,_,m,g,j,e("div",y,[e("div",b,[q,e("p",null,[x,n(a,{to:"/docs/reference/query"},{default:s(()=>[v]),_:1}),E]),w,e("p",null,[T,n(a,{to:"/docs/reference/query/#limit"},{default:s(()=>[k]),_:1}),P,R,S])]),e("div",A,[N,C,e("p",null,[n(a,{to:"/docs/reference/introduction/#search-http-method"},{default:s(()=>[D]),_:1})]),L,O,Q,I,H])]),M,B,G,e("div",U,[e("div",Y,[W,e("p",null,[V,n(a,{to:"/docs/reference/query"},{default:s(()=>[z]),_:1}),F]),Z,J]),K]),X,$,ee,e("div",te,[e("div",se,[ae,e("p",null,[ne,n(a,{to:"/docs/reference/query"},{default:s(()=>[ie]),_:1}),le]),oe,re,ce,he]),de]),pe,ue,fe,e("div",_e,[e("div",me,[ge,e("p",null,[je,n(a,{to:"/docs/reference/query"},{default:s(()=>[ye]),_:1}),be]),qe,xe,ve,Ee]),we]),Te,ke,Pe,Re,e("div",Se,[e("div",Ae,[Ne,e("p",null,[Ce,n(a,{to:"/docs/reference/query"},{default:s(()=>[De]),_:1}),Le]),Oe,Qe,Ie,He]),Me]),Be,Ge,Ue,e("div",Ye,[e("div",We,[Ve,e("p",null,[ze,n(a,{to:"/docs/reference/query"},{default:s(()=>[Fe]),_:1}),Ze]),Je,Ke,Xe,$e]),et]),tt,st,at,nt,it,lt,ot,rt])]),_:1})}}};export{ut as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as a}from"./vendor.f6090249.js";import{s as l}from"./simple.96f65f94.js";function s(n,r){return r.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(t){if(t!=="default"&&!(t in n)){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}})}),Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var o={exports:{}};(function(n,r){(function(e){e(a.exports,l.exports)})(function(e){e.defineSimpleMode("nsis",{start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/,token:"atom"},{regex:/\b(?:admin|all|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|zlib)\b/,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:RunningX64)\}/,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/,token:"variable-2",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w+/,token:"variable"},{regex:/\${[\w\.:-]+}/,token:"variable-2"},{regex:/\$\([\w\.:-]+\)/,token:"variable-3"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{electricInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:["#",";"]}}),e.defineMIME("text/x-nsis","nsis")})})();var S=o.exports,E=s({__proto__:null,default:S},[o.exports]);export{E as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as B}from"./vendor.f6090249.js";function P(t,u){return u.forEach(function(f){f&&typeof f!="string"&&!Array.isArray(f)&&Object.keys(f).forEach(function(e){if(e!=="default"&&!(e in t)){var R=Object.getOwnPropertyDescriptor(f,e);Object.defineProperty(t,e,R.get?R:{enumerable:!0,get:function(){return f[e]}})}})}),Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(t,u){(function(f){f(B.exports)})(function(f){f.defineMode("ntriples",function(){var e={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function R(_,n){var i=_.location,r;i==e.PRE_SUBJECT&&n=="<"?r=e.WRITING_SUB_URI:i==e.PRE_SUBJECT&&n=="_"?r=e.WRITING_BNODE_URI:i==e.PRE_PRED&&n=="<"?r=e.WRITING_PRED_URI:i==e.PRE_OBJ&&n=="<"?r=e.WRITING_OBJ_URI:i==e.PRE_OBJ&&n=="_"?r=e.WRITING_OBJ_BNODE:i==e.PRE_OBJ&&n=='"'?r=e.WRITING_OBJ_LITERAL:i==e.WRITING_SUB_URI&&n==">"||i==e.WRITING_BNODE_URI&&n==" "?r=e.PRE_PRED:i==e.WRITING_PRED_URI&&n==">"?r=e.PRE_OBJ:i==e.WRITING_OBJ_URI&&n==">"||i==e.WRITING_OBJ_BNODE&&n==" "||i==e.WRITING_OBJ_LITERAL&&n=='"'||i==e.WRITING_LIT_LANG&&n==" "||i==e.WRITING_LIT_TYPE&&n==">"?r=e.POST_OBJ:i==e.WRITING_OBJ_LITERAL&&n=="@"?r=e.WRITING_LIT_LANG:i==e.WRITING_OBJ_LITERAL&&n=="^"?r=e.WRITING_LIT_TYPE:n==" "&&(i==e.PRE_SUBJECT||i==e.PRE_PRED||i==e.PRE_OBJ||i==e.POST_OBJ)?r=i:i==e.POST_OBJ&&n=="."?r=e.PRE_SUBJECT:r=e.ERROR,_.location=r}return{startState:function(){return{location:e.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(_,n){var i=_.next();if(i=="<"){R(n,i);var r="";return _.eatWhile(function(I){return I!="#"&&I!=">"?(r+=I,!0):!1}),n.uris.push(r),_.match("#",!1)||(_.next(),R(n,">")),"variable"}if(i=="#"){var l="";return _.eatWhile(function(I){return I!=">"&&I!=" "?(l+=I,!0):!1}),n.anchors.push(l),"variable-2"}if(i==">")return R(n,">"),"variable";if(i=="_"){R(n,i);var T="";return _.eatWhile(function(I){return I!=" "?(T+=I,!0):!1}),n.bnodes.push(T),_.next(),R(n," "),"builtin"}if(i=='"')return R(n,i),_.eatWhile(function(I){return I!='"'}),_.next(),_.peek()!="@"&&_.peek()!="^"&&R(n,'"'),"string";if(i=="@"){R(n,"@");var E="";return _.eatWhile(function(I){return I!=" "?(E+=I,!0):!1}),n.langs.push(E),_.next(),R(n," "),"string-2"}if(i=="^"){_.next(),R(n,"^");var o="";return _.eatWhile(function(I){return I!=">"?(o+=I,!0):!1}),n.types.push(o),_.next(),R(n,">"),"variable"}i==" "&&R(n,i),i=="."&&R(n,i)}}}),f.defineMIME("application/n-triples","ntriples"),f.defineMIME("application/n-quads","ntriples"),f.defineMIME("text/n-triples","ntriples")})})();var N=O.exports,J=P({__proto__:null,default:N},[O.exports]);export{J as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as k}from"./vendor.f6090249.js";function E(f,c){return c.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(t){if(t!=="default"&&!(t in f)){var u=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(f,t,u.get?u:{enumerable:!0,get:function(){return r[t]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(f,c){(function(r){r(k.exports)})(function(r){r.defineMode("octave",function(){function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var u=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),p=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),d=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),s=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),m=new RegExp("^((>>=)|(<<=))"),h=new RegExp("^[\\]\\)]"),g=new RegExp("^[_A-Za-z\xA1-\uFFFF][_A-Za-z0-9\xA1-\uFFFF]*"),v=t(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),x=t(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function a(e,n){return!e.sol()&&e.peek()==="'"?(e.next(),n.tokenize=i,"operator"):(n.tokenize=i,i(e,n))}function b(e,n){return e.match(/^.*%}/)?(n.tokenize=i,"comment"):(e.skipToEnd(),"comment")}function i(e,n){if(e.eatSpace())return null;if(e.match("%{"))return n.tokenize=b,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=i,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(t(["nan","NaN","inf","Inf"])))return"number";var o=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return o?o[1]?"string":"string error":e.match(x)?"keyword":e.match(v)?"builtin":e.match(g)?"variable":e.match(u)||e.match(d)?"operator":e.match(p)||e.match(s)||e.match(m)?null:e.match(h)?(n.tokenize=a,null):(e.next(),"error")}return{startState:function(){return{tokenize:i}},token:function(e,n){var o=n.tokenize(e,n);return(o==="number"||o==="variable")&&(n.tokenize=a),o},lineComment:"%",fold:"indent"}}),r.defineMIME("text/x-octave","octave")})})();var w=l.exports,z=E({__proto__:null,default:w},[l.exports]);export{z as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as a}from"./vendor.f6090249.js";var c={exports:{}};(function(v,y){(function(e){e(a.exports)})(function(e){e.overlayMode=function(r,u,i){return{startState:function(){return{base:e.startState(r),overlay:e.startState(u),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(o){return{base:e.copyState(r,o.base),overlay:e.copyState(u,o.overlay),basePos:o.basePos,baseCur:null,overlayPos:o.overlayPos,overlayCur:null}},token:function(o,n){return(o!=n.streamSeen||Math.min(n.basePos,n.overlayPos)<o.start)&&(n.streamSeen=o,n.basePos=n.overlayPos=o.start),o.start==n.basePos&&(n.baseCur=r.token(o,n.base),n.basePos=o.pos),o.start==n.overlayPos&&(o.pos=o.start,n.overlayCur=u.token(o,n.overlay),n.overlayPos=o.pos),o.pos=Math.min(n.basePos,n.overlayPos),n.overlayCur==null?n.baseCur:n.baseCur!=null&&n.overlay.combineTokens||i&&n.overlay.combineTokens==null?n.baseCur+" "+n.overlayCur:n.overlayCur},indent:r.indent&&function(o,n,l){return r.indent(o.base,n,l)},electricChars:r.electricChars,innerMode:function(o){return{state:o.base,mode:r}},blankLine:function(o){var n,l;return r.blankLine&&(n=r.blankLine(o.base)),u.blankLine&&(l=u.blankLine(o.overlay)),l==null?n:i&&n!=null?n+" "+l:l}}}})})();export{c as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as n,y as r,z as a,A as i,E as o,W as c}from"./vendor.f6090249.js";const l=o("div",{class:"markdown-body"},[o("blockquote",null,[o("p",null,"The vast flexibility of Directus is due to its thoughtful configuration options. This section guides administrators through the process of tailoring a newly installed project to your exact needs.")]),o("h2",{id:"config-options"},[c("Config Options "),o("a",{class:"header-anchor",href:"#config-options"},"#")])],-1),h={setup(f,{expose:e}){const t={title:"Configuring the Platform",modularExtension:!1};return e({frontmatter:t}),(p,u)=>{const s=n("DocsWrapper");return r(),a(s,{frontmatter:t},{default:i(()=>[l]),_:1})}}};export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as n,y as l,z as r,A as o,E as t,C as a,W as e}from"./vendor.f6090249.js";const u={class:"markdown-body"},_=t("blockquote",null,[t("p",null,"Whether you\u2019re a hobbyist, startup or Fortune 500 enterprise, our flexible Cloud service lets you get up and running with Directus quickly. We do all the heavy lifting of managing your infrastructure and software updates - and you also benefit from fair and predictable usage-based pricing.")],-1),h=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/cloud/overview/overview-20220322A/hero-image-20220402A.webp",alt:"Hero Image"})],-1),m=t("p",null,[t("div",{class:"table-of-contents"},[t("ul",null,[t("li",null,[t("a",{href:"#getting-started"},"Getting Started")]),t("li",null,[t("a",{href:"#accounts"},"Accounts")]),t("li",null,[t("a",{href:"#teams"},"Teams")]),t("li",null,[t("a",{href:"#projects"},"Projects")])])])],-1),p=t("a",{href:"https://directus.cloud/",target:"_blank",rel:"noopener noreferrer"},"Directus Cloud",-1),g=e(" is a hosting platform for "),f=e("Directus Projects"),y=e(" which handles data storage, hosting, updates and scalability so you can focus on building your digital apps and experiences. There are three "),b=e("tiers of Cloud Projects"),v=e(": Community, Standard and Enterprise. All three tiers come with all the great features of Directus Core, as well as all "),T=e("Cloud Exclusive"),w=e(" extensions."),j=e("The Cloud Dashboard is constructed to manage three key components: "),A=e("Accounts"),P=e(", "),C=e("Teams"),D=e(" and "),k=e("Projects"),x=e(". First, create an Account. Once logged in, create or join a Team, and your Account will become a Member of that Team. Once that\u2019s complete, you can create Projects within a Team."),M=e("Accounts can be Members on multiple Teams. All Team Members have SuperAdmin privileges to manage the Team\u2019s Projects, Project "),S=e("billing"),V=e(", other Team Members and the Team itself. Teams can have multiple Team Members and multiple Projects. Projects can only be managed by one Team and cannot be transferred to new Teams."),E=t("h2",{id:"getting-started"},[e("Getting Started "),t("a",{class:"header-anchor",href:"#getting-started"},"#")],-1),H=e("To make life easy, you have the option to "),N=e("create and login to your free Cloud Account"),O=e(" automatically with GitHub. If you don\u2019t have a GitHub account or prefer not to use this login method, email-and-password login is available, as well. Once logged in, create a new Team or select an existing Team. Then you can access and manage the Team\u2019s associated Projects, billing details, Team Members, Activity and Settings."),W=t("video",{alt:"Cloud Dashboard Overview",loop:"",muted:"",controls:"",autoplay:""},[t("source",{src:"https://cdn.directus.io/docs/v9/cloud/overview/overview-20220322A/cloud-dashboard-overview-20220329A.mp4",type:"video/mp4"})],-1),B=e("Remember: The Dashboard layout itself is designed to manage "),G=e("Accounts"),q=e(", "),F=e("Teams"),I=e(" and "),R=e("Projects"),z=e(". Here\u2019s how the Dashboard layout relates to each of these components:"),J=t("h2",{id:"accounts"},[e("Accounts "),t("a",{class:"header-anchor",href:"#accounts"},"#")],-1),K=t("h3",{id:"cloud-dashboard-header"},[e("Cloud Dashboard Header "),t("a",{class:"header-anchor",href:"#cloud-dashboard-header"},"#")],-1),L=t("span",{mi:"",icon:""},"check",-1),Q=e(" \u2014 View Directus Cloud "),U=e("system status"),X=e("."),Y=t("li",null,[t("span",{mi:"",icon:""},"notifications"),e(" \u2014 Notifications such as version upgrades, platform upgrades, etc.")],-1),Z=t("li",null,[t("span",{mi:"",icon:""},"help_outline"),e(" \u2014 Documentation, Community Support and Request for Premium Support.")],-1),$=t("span",{mi:"",icon:""},"expand_more",-1),ee=e(" \u2014 "),te=e("Create new Teams"),oe=e(" and navigate between Teams you are on."),se=t("span",{mi:"",icon:""},"account_circle",-1),ae=e(" \u2014 "),ce=e("Access, edit or destroy Account"),ne=e("."),ie=t("h2",{id:"teams"},[e("Teams "),t("a",{class:"header-anchor",href:"#teams"},"#")],-1),de=e("Team Members"),le=e(" \u2014 View, invite and remove other Team Members or leave a Team."),re=e("Team Activity"),ue=e(" \u2014 View Team activity such as Project creation and deletion, billing information changes, Member invitations and removals, etc."),_e=e("Team Settings"),he=e(" \u2014 Edit the Team Name and Team Slug, as well as "),me=e("destroy a Team"),pe=e("."),ge=t("h2",{id:"projects"},[e("Projects "),t("a",{class:"header-anchor",href:"#projects"},"#")],-1),fe=e("Team Projects"),ye=e(" \u2014 View and access all Projects managed within a Team. Click a Project to enter the Product Details Page and access, monitor, edit or delete a Project."),be=e("Team Billing"),ve=e(" \u2014 View and manage billing details such as credit card information, usage, subscriptions and receipts."),Pe={setup(Te,{expose:i}){const c={title:"Overview",modularExtension:!1};return i({frontmatter:c}),(we,je)=>{const s=n("router-link"),d=n("DocsWrapper");return l(),r(d,{frontmatter:c},{default:o(()=>[t("div",u,[_,h,m,t("p",null,[p,g,a(s,{to:"/docs/cloud/glossary/#projects"},{default:o(()=>[f]),_:1}),y,a(s,{to:"/docs/cloud/glossary/#projects"},{default:o(()=>[b]),_:1}),v,a(s,{to:"/docs/cloud/glossary/#cloud-exclusives"},{default:o(()=>[T]),_:1}),w]),t("p",null,[j,a(s,{to:"/docs/cloud/glossary/#accounts"},{default:o(()=>[A]),_:1}),P,a(s,{to:"/docs/cloud/glossary/#teams"},{default:o(()=>[C]),_:1}),D,a(s,{to:"/docs/cloud/glossary/#projects"},{default:o(()=>[k]),_:1}),x]),t("p",null,[M,a(s,{to:"/docs/cloud/teams/#manage-billing"},{default:o(()=>[S]),_:1}),V]),E,t("p",null,[H,a(s,{to:"/docs/cloud/accounts/#create-account-and-login"},{default:o(()=>[N]),_:1}),O]),W,t("p",null,[B,a(s,{to:"/docs/cloud/glossary/#accounts"},{default:o(()=>[G]),_:1}),q,a(s,{to:"/docs/cloud/glossary/#teams"},{default:o(()=>[F]),_:1}),I,a(s,{to:"/docs/cloud/glossary/#projects"},{default:o(()=>[R]),_:1}),z]),J,K,t("ul",null,[t("li",null,[L,Q,a(s,{to:"/docs/cloud/glossary/#system-status"},{default:o(()=>[U]),_:1}),X]),Y,Z,t("li",null,[$,ee,a(s,{to:"/docs/cloud/teams/#create-a-team"},{default:o(()=>[te]),_:1}),oe]),t("li",null,[se,ae,a(s,{to:"/docs/cloud/accounts"},{default:o(()=>[ce]),_:1}),ne])]),ie,t("ul",null,[t("li",null,[a(s,{to:"/docs/cloud/teams"},{default:o(()=>[de]),_:1}),le]),t("li",null,[a(s,{to:"/docs/cloud/teams/#view-team-activity"},{default:o(()=>[re]),_:1}),ue]),t("li",null,[a(s,{to:"/docs/cloud/teams/#update-team-settings"},{default:o(()=>[_e]),_:1}),he,a(s,{to:"/docs/cloud/teams/#destroy-a-team"},{default:o(()=>[me]),_:1}),pe])]),ge,t("ul",null,[t("li",null,[a(s,{to:"/docs/cloud/projects"},{default:o(()=>[fe]),_:1}),ye]),t("li",null,[a(s,{to:"/docs/cloud/teams/#manage-billing"},{default:o(()=>[be]),_:1}),ve])])])]),_:1})}}};export{Pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as a,y as r,z as d,A as o,E as t,C as s,W as e}from"./vendor.f6090249.js";var u="assets/app-overview.6445a201.svg";const h={class:"markdown-body"},p=t("blockquote",null,[t("p",null,"The App is a no-code presentation layer for your data, content, and assets. It uses an intuitive left-to-right visual hierarchy for general organization and navigation.")],-1),_=t("img",{src:u,alt:"Directus Application Overview",class:"no-shadow"},null,-1),g=t("h2",{id:"1.-module-bar"},[e("1. Module Bar "),t("a",{class:"header-anchor",href:"#1.-module-bar"},"#")],-1),f=t("p",null,"The leftmost section of the App is the module bar, which includes the:",-1),m=t("li",null,[t("strong",null,"Project Logo"),e(" \u2014 Displays your configured project logo and project color (defaults to the Directus logo and color). If configured, clicking this component will navigate to the Project URL. During platform activity, an indeterminate progress indicator will also be shown here.")],-1),v=t("strong",null,"Module Navigation",-1),y=e(" \u2014 Allows navigating between the different modules your user has access to. Customizing the Module Navigation is done within the "),b=e("Project Settings"),w=e(", but the default module list includes: "),A=e("Content"),k=e(" \u2014 The primary way to view and interact with database content"),T=e("User Directory"),x=e(" \u2014 A dedicated section for the platform\u2019s system Users"),P=e("File Library"),C=e(" \u2014 An aggregate of all files uploaded and managed within the platform"),N=e("Insights"),j=e(" \u2014 Access to infinitely customizable data dashboards"),D=e("App Guide"),B=e(" \u2014 A tailored, in-app portal for the platform\u2019s concepts, guides, and reference"),I=e("Settings"),S=e(" \u2014 An admin-only section for configuring the project and system settings"),M=t("strong",null,"Notifications",-1),z=e(" - Opens a drawer of notifications, such as from "),L=e("mentions"),U=e("."),O=t("li",null,[t("strong",null,"Current User Menu"),e(" \u2014 This component displays the authenticated user\u2019s name and avatar. "),t("ul",null,[t("li",null,"Sign Out \u2014 Hovering over the User Menu exposes the button to log out of the platform.")])],-1),V=t("h2",{id:"2.-navigation-bar"},[e("2. Navigation Bar "),t("a",{class:"header-anchor",href:"#2.-navigation-bar"},"#")],-1),W=t("p",null,"The navigation bar is based on the current module, and includes:",-1),E=t("strong",null,"Project Name",-1),F=e(" \u2014 Shows an icon and tooltip indicating the API\u2019s connection strength, and the name of your current project, which can be configured under "),H=e("Project Settings"),R=e("."),q=t("strong",null,"Navigation",-1),G=e(" \u2014 This is a dynamic navigation based on your current module. Some modules also support "),X=e("Bookmark Presets"),J=e(", which are a customizable links to specific data-sets."),K=t("h2",{id:"3.-page"},[e("3. Page "),t("a",{class:"header-anchor",href:"#3.-page"},"#")],-1),Q=t("p",null,"This is where the current page\u2019s content is shown, including:",-1),Y=t("ul",null,[t("li",null,[t("strong",null,"Header"),e(" \u2014 A fixed section at the top of each page, the header includes: "),t("ul",null,[t("li",null,"Page Icon \u2014 Clicking this navigates back to the previous page."),t("li",null,"Module Name \u2014 Clicking this navigates to the parent module/section."),t("li",null,"Page Title \u2014 Displays dynamic title of the current page."),t("li",null,"Action Buttons \u2014 Right-aligned contextual buttons for specific page actions.")])]),t("li",null,[t("strong",null,"Page Content"),e(" \u2014 This displays the content of the page you navigated to.")])],-1),Z=t("h2",{id:"4.-sidebar"},[e("4. Sidebar "),t("a",{class:"header-anchor",href:"#4.-sidebar"},"#")],-1),$=t("p",null,"The sidebar provides additional context and options for the current page, including:",-1),tt=t("ul",null,[t("li",null,[t("strong",null,"Page Components"),e(" \u2014 Lists any contextual page components available. The \u201CInfo\u201D component is available on every page, explaining the page\u2019s general purpose and relevant details. Clicking any sidebar component will accordion it open. If the App window is large enough, the sidebar will automatically open, and can be closed by clicking the \u201CX\u201D in the top-right.")]),t("li",null,[t("strong",null,"Notifications Tray"),e(" \u2014 Fixed to the bottom of the page sidebar, this button opens a tray of recent user notifications, and provides a link to your Activity Log page.")])],-1),it={setup(et,{expose:l}){const i={title:"The Application",modularExtension:!1};return l({frontmatter:i}),(ot,nt)=>{const n=a("router-link"),c=a("DocsWrapper");return r(),d(c,{frontmatter:i},{default:o(()=>[t("div",h,[p,_,g,f,t("ul",null,[m,t("li",null,[v,y,s(n,{to:"/docs/app/settings"},{default:o(()=>[b]),_:1}),w,t("ul",null,[t("li",null,[s(n,{to:"/docs/app/content-collections/"},{default:o(()=>[A]),_:1}),k]),t("li",null,[s(n,{to:"/docs/app/user-directory"},{default:o(()=>[T]),_:1}),x]),t("li",null,[s(n,{to:"/docs/app/file-library"},{default:o(()=>[P]),_:1}),C]),t("li",null,[s(n,{to:"/docs/app/insights"},{default:o(()=>[N]),_:1}),j]),t("li",null,[s(n,{to:"/docs/app/overview/"},{default:o(()=>[D]),_:1}),B]),t("li",null,[s(n,{to:"/docs/app/settings"},{default:o(()=>[I]),_:1}),S])])]),t("li",null,[M,z,s(n,{to:"/docs/app/content-items/#mentions"},{default:o(()=>[L]),_:1}),U]),O]),V,W,t("ul",null,[t("li",null,[E,F,s(n,{to:"/docs/app/settings"},{default:o(()=>[H]),_:1}),R]),t("li",null,[q,G,s(n,{to:"/docs/getting-started/glossary/#presets"},{default:o(()=>[X]),_:1}),J])]),K,Q,Y,Z,$,tt])]),_:1})}}};export{it as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bW as O}from"./vendor.f6090249.js";function P(f,l){return l.forEach(function(o){o&&typeof o!="string"&&!Array.isArray(o)&&Object.keys(o).forEach(function(i){if(i!=="default"&&!(i in f)){var u=Object.getOwnPropertyDescriptor(o,i);Object.defineProperty(f,i,u.get?u:{enumerable:!0,get:function(){return o[i]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(f,l){(function(o){o(O.exports)})(function(o){o.defineMode("oz",function(i){function u(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var z=/[\^@!\|<>#~\.\*\-\+\\/,=]/,b=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,g=/(:::)|(\.\.\.)|(=<:)|(>=:)/,d=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],s=["end"],x=u(["true","false","nil","unit"]),y=u(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),w=u(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),p=u(d),h=u(s);function c(e,n){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(g)||e.match(b))return"operator";if(e.match(x))return"atom";var t=e.match(w);if(t)return n.doInCurrentLine?n.doInCurrentLine=!1:n.currentIndent++,t[0]=="proc"||t[0]=="fun"?n.tokenize=E:t[0]=="class"?n.tokenize=S:t[0]=="meth"&&(n.tokenize=I),"keyword";if(e.match(p)||e.match(y))return"keyword";if(e.match(h))return n.currentIndent--,"keyword";var r=e.next();if(r=='"'||r=="'")return n.tokenize=A(r),n.tokenize(e,n);if(/[~\d]/.test(r)){if(r=="~")if(/^[0-9]/.test(e.peek())){if(e.next()=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}else return null;return r=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return r=="%"?(e.skipToEnd(),"comment"):r=="/"&&e.eat("*")?(n.tokenize=k,k(e,n)):z.test(r)?"operator":(e.eatWhile(/\w/),"variable")}function S(e,n){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),n.tokenize=c,"variable-3")}function I(e,n){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),n.tokenize=c,"def")}function E(e,n){return e.eatSpace()?null:!n.hasPassedFirstStage&&e.eat("{")?(n.hasPassedFirstStage=!0,"bracket"):n.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),n.hasPassedFirstStage=!1,n.tokenize=c,"def"):(n.tokenize=c,null)}function k(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=c;break}t=r=="*"}return"comment"}function A(e){return function(n,t){for(var r=!1,a,m=!1;(a=n.next())!=null;){if(a==e&&!r){m=!0;break}r=!r&&a=="\\"}return(m||!r)&&(t.tokenize=c),"string"}}function C(){var e=d.concat(s);return new RegExp("[\\[\\]]|("+e.join("|")+")$")}return{startState:function(){return{tokenize:c,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,n){return e.sol()&&(n.doInCurrentLine=0),n.tokenize(e,n)},indent:function(e,n){var t=n.replace(/^\s+|\s+$/g,"");return t.match(h)||t.match(p)||t.match(/(\[])/)?i.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*i.indentUnit},fold:"indent",electricInput:C(),lineComment:"%",blockCommentStart:"/*",blockCommentEnd:"*/"}}),o.defineMIME("text/x-oz","oz")})})();var j=v.exports,_=P({__proto__:null,default:j},[v.exports]);export{_ as o};
|