intlayer-editor 6.1.6 → 7.0.0-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/intlayer-editor.mjs +6 -5
- package/client/dist/assets/CodeBlockShiki-Da9FdWZC.js +2 -0
- package/client/dist/assets/angular-html-BhtAKmdv.js +1 -0
- package/client/dist/assets/{angular-ts-C26w9mnW.js → angular-ts-BeFqxUEK.js} +1 -1
- package/client/dist/assets/astro-fnUV64w6.js +1 -0
- package/client/dist/assets/{shellscript-Yzrsuije.js → bash-SHvotRv0.js} +1 -1
- package/client/dist/assets/blade-BXHw_pqF.js +1 -0
- package/client/dist/assets/bundle-web-mXNhGq2u.js +13 -0
- package/client/dist/assets/coffee-Bn-gRTwi.js +1 -0
- package/client/dist/assets/{github-dark-DHJKELXO.js → github-dark-nz1Ug7wa.js} +1 -1
- package/client/dist/assets/{github-light-DAi9KRSo.js → github-light-hIqfNsk6.js} +1 -1
- package/client/dist/assets/graphql-DsDBh1Xd.js +1 -0
- package/client/dist/assets/haml-DXac2MKr.js +1 -0
- package/client/dist/assets/handlebars-DGp8LPLW.js +1 -0
- package/client/dist/assets/html-C3HxQsge.js +1 -0
- package/client/dist/assets/html-derivative-BSjB4sSK.js +1 -0
- package/client/dist/assets/http-DCi7G6X5.js +1 -0
- package/client/dist/assets/index-CUWL1CMm.js +329 -0
- package/client/dist/assets/index-DhJQvNNZ.css +1 -0
- package/client/dist/assets/{javascript-BMMyXqK5.js → javascript-Bu8dFlWd.js} +1 -1
- package/client/dist/assets/jinja-DRFn41Dg.js +1 -0
- package/client/dist/assets/jison-D2rCaaX8.js +1 -0
- package/client/dist/assets/{json-Cp-IABpG.js → json-BHNwtY8x.js} +1 -1
- package/client/dist/assets/julia-CKK9Si6J.js +1 -0
- package/client/dist/assets/marko-oTM4hF24.js +1 -0
- package/client/dist/assets/{mdc-DvHMhoCT.js → mdc-CnEUHEQ0.js} +1 -1
- package/client/dist/assets/php-BVkpE1Rs.js +1 -0
- package/client/dist/assets/pug-Cxa3IGBH.js +1 -0
- package/client/dist/assets/svelte-Dn5bEqJ2.js +1 -0
- package/client/dist/assets/ts-tags-o7tE_SiD.js +1 -0
- package/client/dist/assets/{tsx-COt5Ahok.js → tsx-D7BNtDUy.js} +1 -1
- package/client/dist/assets/{typescript-DlfHMoPT.js → typescript-DtkYWpva.js} +1 -1
- package/client/dist/assets/vue-CGSbC7ds.js +1 -0
- package/client/dist/assets/vue-html-2e51hq9W.js +1 -0
- package/client/dist/assets/vue-vine-BIRRuYKM.js +1 -0
- package/client/dist/index.html +2 -2
- package/package.json +80 -84
- package/server/dist/_virtual/rolldown_runtime.cjs +25 -0
- package/server/dist/controllers/configuration.controller.cjs +32 -52
- package/server/dist/controllers/configuration.controller.cjs.map +1 -1
- package/server/dist/controllers/configuration.controller.d.ts +9 -5
- package/server/dist/controllers/configuration.controller.d.ts.map +1 -1
- package/server/dist/controllers/configuration.controller.mjs +30 -30
- package/server/dist/controllers/configuration.controller.mjs.map +1 -1
- package/server/dist/controllers/dictionary.controller.cjs +111 -139
- package/server/dist/controllers/dictionary.controller.cjs.map +1 -1
- package/server/dist/controllers/dictionary.controller.d.ts +17 -14
- package/server/dist/controllers/dictionary.controller.d.ts.map +1 -1
- package/server/dist/controllers/dictionary.controller.mjs +103 -104
- package/server/dist/controllers/dictionary.controller.mjs.map +1 -1
- package/server/dist/export.cjs +6 -25
- package/server/dist/export.d.ts +3 -3
- package/server/dist/export.mjs +4 -3
- package/server/dist/index.cjs +70 -90
- package/server/dist/index.cjs.map +1 -1
- package/server/dist/index.d.ts +1 -2
- package/server/dist/index.mjs +45 -53
- package/server/dist/index.mjs.map +1 -1
- package/server/dist/routes/config.routes.cjs +20 -55
- package/server/dist/routes/config.routes.cjs.map +1 -1
- package/server/dist/routes/config.routes.d.ts +12 -8
- package/server/dist/routes/config.routes.d.ts.map +1 -1
- package/server/dist/routes/config.routes.mjs +12 -16
- package/server/dist/routes/config.routes.mjs.map +1 -1
- package/server/dist/routes/dictionary.routes.cjs +26 -52
- package/server/dist/routes/dictionary.routes.cjs.map +1 -1
- package/server/dist/routes/dictionary.routes.d.ts +17 -13
- package/server/dist/routes/dictionary.routes.d.ts.map +1 -1
- package/server/dist/routes/dictionary.routes.mjs +18 -26
- package/server/dist/routes/dictionary.routes.mjs.map +1 -1
- package/server/dist/types/Routes.cjs +0 -17
- package/server/dist/types/Routes.d.ts +8 -5
- package/server/dist/types/Routes.d.ts.map +1 -1
- package/server/dist/types/Routes.mjs +0 -1
- package/server/dist/utils/checkPortAvailability.cjs +20 -53
- package/server/dist/utils/checkPortAvailability.cjs.map +1 -1
- package/server/dist/utils/checkPortAvailability.d.ts +4 -1
- package/server/dist/utils/checkPortAvailability.d.ts.map +1 -1
- package/server/dist/utils/checkPortAvailability.mjs +17 -18
- package/server/dist/utils/checkPortAvailability.mjs.map +1 -1
- package/server/dist/utils/httpStatusCodes.cjs +400 -92
- package/server/dist/utils/httpStatusCodes.cjs.map +1 -1
- package/server/dist/utils/httpStatusCodes.d.ts +261 -249
- package/server/dist/utils/httpStatusCodes.d.ts.map +1 -1
- package/server/dist/utils/httpStatusCodes.mjs +399 -68
- package/server/dist/utils/httpStatusCodes.mjs.map +1 -1
- package/server/dist/utils/responseData.cjs +30 -71
- package/server/dist/utils/responseData.cjs.map +1 -1
- package/server/dist/utils/responseData.d.ts +73 -50
- package/server/dist/utils/responseData.d.ts.map +1 -1
- package/server/dist/utils/responseData.mjs +27 -44
- package/server/dist/utils/responseData.mjs.map +1 -1
- package/LICENSE +0 -202
- package/client/dist/assets/abap-BdImnpbu.js +0 -1
- package/client/dist/assets/actionscript-3-CfeIJUat.js +0 -1
- package/client/dist/assets/ada-bCR0ucgS.js +0 -1
- package/client/dist/assets/angular-html-Bbf3ZyxA.js +0 -1
- package/client/dist/assets/apache-Pmp26Uib.js +0 -1
- package/client/dist/assets/apex-C7Pw0Ztw.js +0 -1
- package/client/dist/assets/apl-e980N3t4.js +0 -1
- package/client/dist/assets/applescript-Co6uUVPk.js +0 -1
- package/client/dist/assets/ara-BRHolxvo.js +0 -1
- package/client/dist/assets/asciidoc-Dv7Oe6Be.js +0 -1
- package/client/dist/assets/asm-D_Q5rh1f.js +0 -1
- package/client/dist/assets/astro-CjFzhNUq.js +0 -1
- package/client/dist/assets/awk-DMzUqQB5.js +0 -1
- package/client/dist/assets/ballerina-BFfxhgS-.js +0 -1
- package/client/dist/assets/bat-BkioyH1T.js +0 -1
- package/client/dist/assets/beancount-BoKiGodi.js +0 -1
- package/client/dist/assets/berry-D08WgyRC.js +0 -1
- package/client/dist/assets/bibtex-CHM0blh-.js +0 -1
- package/client/dist/assets/bicep-6nHXG8SA.js +0 -1
- package/client/dist/assets/blade-B2ZbN0F_.js +0 -1
- package/client/dist/assets/bsl-BO_Y6i37.js +0 -1
- package/client/dist/assets/cadence-D2CYqzqI.js +0 -1
- package/client/dist/assets/cairo-KRGpt6FW.js +0 -1
- package/client/dist/assets/clarity-CHh-QcGE.js +0 -1
- package/client/dist/assets/clojure-P80f7IUj.js +0 -1
- package/client/dist/assets/cmake-D1j8_8rp.js +0 -1
- package/client/dist/assets/cobol-DwXMNnPA.js +0 -1
- package/client/dist/assets/codeowners-Bp6g37R7.js +0 -1
- package/client/dist/assets/codeql-DsOJ9woJ.js +0 -1
- package/client/dist/assets/coffee-JUOWOZUj.js +0 -1
- package/client/dist/assets/common-lisp-Cg-RD9OK.js +0 -1
- package/client/dist/assets/coq-DkFqJrB1.js +0 -1
- package/client/dist/assets/crystal-DVs0tusA.js +0 -1
- package/client/dist/assets/csharp-CHadp7IV.js +0 -1
- package/client/dist/assets/csv-fuZLfV_i.js +0 -1
- package/client/dist/assets/cue-D82EKSYY.js +0 -1
- package/client/dist/assets/cypher-COkxafJQ.js +0 -1
- package/client/dist/assets/d-85-TOEBH.js +0 -1
- package/client/dist/assets/dart-CF10PKvl.js +0 -1
- package/client/dist/assets/dax-CEL-wOlO.js +0 -1
- package/client/dist/assets/desktop-BmXAJ9_W.js +0 -1
- package/client/dist/assets/diff-D97Zzqfu.js +0 -1
- package/client/dist/assets/docker-BcOcwvcX.js +0 -1
- package/client/dist/assets/dotenv-Da5cRb03.js +0 -1
- package/client/dist/assets/dream-maker-BtqSS_iP.js +0 -1
- package/client/dist/assets/edge-CKszZCnI.js +0 -1
- package/client/dist/assets/elixir-Cc7HHYVZ.js +0 -1
- package/client/dist/assets/elm-DbKCFpqz.js +0 -1
- package/client/dist/assets/emacs-lisp-C9XAeP06.js +0 -1
- package/client/dist/assets/erb-C7QrGF_t.js +0 -1
- package/client/dist/assets/erlang-DsQrWhSR.js +0 -1
- package/client/dist/assets/fennel-BYunw83y.js +0 -1
- package/client/dist/assets/fish-Bl2oy6fF.js +0 -1
- package/client/dist/assets/fluent-C4IJs8-o.js +0 -1
- package/client/dist/assets/fortran-fixed-form-BZjJHVRy.js +0 -1
- package/client/dist/assets/fortran-free-form-D22FLkUw.js +0 -1
- package/client/dist/assets/fsharp-CufqaIoK.js +0 -1
- package/client/dist/assets/gdresource-B7Tvp0Sc.js +0 -1
- package/client/dist/assets/gdscript-DTMYz4Jt.js +0 -1
- package/client/dist/assets/gdshader-DkwncUOv.js +0 -1
- package/client/dist/assets/genie-D0YGMca9.js +0 -1
- package/client/dist/assets/gherkin-DyxjwDmM.js +0 -1
- package/client/dist/assets/git-commit-F4YmCXRG.js +0 -1
- package/client/dist/assets/git-rebase-r7XF79zn.js +0 -1
- package/client/dist/assets/gleam-BspZqrRM.js +0 -1
- package/client/dist/assets/glimmer-js-Dz9X99Cm.js +0 -1
- package/client/dist/assets/glimmer-ts-aQ3p29eY.js +0 -1
- package/client/dist/assets/gnuplot-DdkO51Og.js +0 -1
- package/client/dist/assets/go-Dn2_MT6a.js +0 -1
- package/client/dist/assets/graphql-Caa12_AY.js +0 -1
- package/client/dist/assets/groovy-gcz8RCvz.js +0 -1
- package/client/dist/assets/hack-D_o3P2UH.js +0 -1
- package/client/dist/assets/haml-AZXGPtNI.js +0 -1
- package/client/dist/assets/handlebars-YebKLiTq.js +0 -1
- package/client/dist/assets/haskell-Df6bDoY_.js +0 -1
- package/client/dist/assets/haxe-CzTSHFRz.js +0 -1
- package/client/dist/assets/hcl-BWvSN4gD.js +0 -1
- package/client/dist/assets/hjson-D5-asLiD.js +0 -1
- package/client/dist/assets/hlsl-D3lLCCz7.js +0 -1
- package/client/dist/assets/html-B8pBdPMQ.js +0 -1
- package/client/dist/assets/html-derivative-ZQ8onl8Z.js +0 -1
- package/client/dist/assets/http-C38VWM-o.js +0 -1
- package/client/dist/assets/hxml-Bvhsp5Yf.js +0 -1
- package/client/dist/assets/hy-DFXneXwc.js +0 -1
- package/client/dist/assets/index-BZsb0J9r.css +0 -1
- package/client/dist/assets/index-Dqu0HW5s.js +0 -348
- package/client/dist/assets/ini-BEwlwnbL.js +0 -1
- package/client/dist/assets/jinja-BJmZiE_F.js +0 -1
- package/client/dist/assets/jison-BCRtk9Os.js +0 -1
- package/client/dist/assets/jsonnet-DFQXde-d.js +0 -1
- package/client/dist/assets/jssm-C2t-YnRu.js +0 -1
- package/client/dist/assets/julia-353pQ8cl.js +0 -1
- package/client/dist/assets/kotlin-BdnUsdx6.js +0 -1
- package/client/dist/assets/kusto-BvAqAH-y.js +0 -1
- package/client/dist/assets/latex-CPEt12BK.js +0 -1
- package/client/dist/assets/lean-qliWkHmV.js +0 -1
- package/client/dist/assets/liquid-DFk8BABL.js +0 -1
- package/client/dist/assets/llvm-D32k8WzR.js +0 -1
- package/client/dist/assets/log-2UxHyX5q.js +0 -1
- package/client/dist/assets/logo-BtOb2qkB.js +0 -1
- package/client/dist/assets/lua-BbnMAYS6.js +0 -1
- package/client/dist/assets/luau-CXu1NL6O.js +0 -1
- package/client/dist/assets/make-CHLpvVh8.js +0 -1
- package/client/dist/assets/marko-BM38lbjI.js +0 -1
- package/client/dist/assets/matlab-D7o27uSR.js +0 -1
- package/client/dist/assets/mermaid-DKYwYmdq.js +0 -1
- package/client/dist/assets/mipsasm-CKIfxQSi.js +0 -1
- package/client/dist/assets/mojo-1DNp92w6.js +0 -1
- package/client/dist/assets/move-DNEoBllO.js +0 -1
- package/client/dist/assets/narrat-DRg8JJMk.js +0 -1
- package/client/dist/assets/nextflow-CUEJCptM.js +0 -1
- package/client/dist/assets/nginx-DknmC5AR.js +0 -1
- package/client/dist/assets/nim-BZI_8mFl.js +0 -1
- package/client/dist/assets/nix-BepWV7mh.js +0 -1
- package/client/dist/assets/nushell-ChH_ziBE.js +0 -1
- package/client/dist/assets/objective-c-DXmwc3jG.js +0 -1
- package/client/dist/assets/objective-cpp-CLxacb5B.js +0 -1
- package/client/dist/assets/ocaml-C0hk2d4L.js +0 -1
- package/client/dist/assets/pascal-D93ZcfNL.js +0 -1
- package/client/dist/assets/perl-g0D2lH3a.js +0 -1
- package/client/dist/assets/php-Gk5eUrPQ.js +0 -1
- package/client/dist/assets/plsql-ChMvpjG-.js +0 -1
- package/client/dist/assets/po-BTJTHyun.js +0 -1
- package/client/dist/assets/polar-C0HS_06l.js +0 -1
- package/client/dist/assets/powerquery-CEu0bR-o.js +0 -1
- package/client/dist/assets/powershell-Dpen1YoG.js +0 -1
- package/client/dist/assets/prisma-Dd19v3D-.js +0 -1
- package/client/dist/assets/prolog-CbFg5uaA.js +0 -1
- package/client/dist/assets/proto-DyJlTyXw.js +0 -1
- package/client/dist/assets/pug-Ch9lOoSd.js +0 -1
- package/client/dist/assets/puppet-BMWR74SV.js +0 -1
- package/client/dist/assets/purescript-CklMAg4u.js +0 -1
- package/client/dist/assets/qml-CHzV51_b.js +0 -1
- package/client/dist/assets/qmldir-C8lEn-DE.js +0 -1
- package/client/dist/assets/qss-IeuSbFQv.js +0 -1
- package/client/dist/assets/racket-BqYA7rlc.js +0 -1
- package/client/dist/assets/raku-DXvB9xmW.js +0 -1
- package/client/dist/assets/razor-CNXmhs1n.js +0 -1
- package/client/dist/assets/reg-C-SQnVFl.js +0 -1
- package/client/dist/assets/rel-C3B-1QV4.js +0 -1
- package/client/dist/assets/riscv-BM1_JUlF.js +0 -1
- package/client/dist/assets/rst-DKdxLoXm.js +0 -1
- package/client/dist/assets/ruby-W1VRIm2Q.js +0 -1
- package/client/dist/assets/rust-B1yitclQ.js +0 -1
- package/client/dist/assets/sas-cz2c8ADy.js +0 -1
- package/client/dist/assets/scala-C151Ov-r.js +0 -1
- package/client/dist/assets/scheme-C98Dy4si.js +0 -1
- package/client/dist/assets/sdbl-DVxCFoDh.js +0 -1
- package/client/dist/assets/shaderlab-Dg9Lc6iA.js +0 -1
- package/client/dist/assets/shellsession-BADoaaVG.js +0 -1
- package/client/dist/assets/smalltalk-BERRCDM3.js +0 -1
- package/client/dist/assets/solidity-BbcW6ACK.js +0 -1
- package/client/dist/assets/soy-B_7ge1HE.js +0 -1
- package/client/dist/assets/sparql-rVzFXLq3.js +0 -1
- package/client/dist/assets/splunk-BtCnVYZw.js +0 -1
- package/client/dist/assets/ssh-config-_ykCGR6B.js +0 -1
- package/client/dist/assets/stata-BH5u7GGu.js +0 -1
- package/client/dist/assets/svelte-Dt5jNKfG.js +0 -1
- package/client/dist/assets/swift-Dg5xB15N.js +0 -1
- package/client/dist/assets/system-verilog-CnnmHF94.js +0 -1
- package/client/dist/assets/systemd-4A_iFExJ.js +0 -1
- package/client/dist/assets/talonscript-CkByrt1z.js +0 -1
- package/client/dist/assets/tasl-QIJgUcNo.js +0 -1
- package/client/dist/assets/tcl-dwOrl1Do.js +0 -1
- package/client/dist/assets/templ-0CNLO7il.js +0 -1
- package/client/dist/assets/terraform-BETggiCN.js +0 -1
- package/client/dist/assets/tex-B5i3u9ba.js +0 -1
- package/client/dist/assets/toml-vGWfd6FD.js +0 -1
- package/client/dist/assets/ts-tags-B9XN6NYQ.js +0 -1
- package/client/dist/assets/tsv-B_m7g4N7.js +0 -1
- package/client/dist/assets/turtle-BsS91CYL.js +0 -1
- package/client/dist/assets/twig-B_ULif71.js +0 -1
- package/client/dist/assets/typespec-Df68jz8_.js +0 -1
- package/client/dist/assets/typst-DHCkPAjA.js +0 -1
- package/client/dist/assets/v-DljmTZ5-.js +0 -1
- package/client/dist/assets/vala-CsfeWuGM.js +0 -1
- package/client/dist/assets/vb-D17OF-Vu.js +0 -1
- package/client/dist/assets/verilog-BQ8w6xss.js +0 -1
- package/client/dist/assets/vhdl-CeAyd5Ju.js +0 -1
- package/client/dist/assets/viml-CJc9bBzg.js +0 -1
- package/client/dist/assets/vue-BEetzCYT.js +0 -1
- package/client/dist/assets/vue-html-BsD9fJC1.js +0 -1
- package/client/dist/assets/vue-vine-CCdTUzyM.js +0 -1
- package/client/dist/assets/vyper-CDx5xZoG.js +0 -1
- package/client/dist/assets/wenyan-BV7otONQ.js +0 -1
- package/client/dist/assets/wikitext-BhOHFoWU.js +0 -1
- package/client/dist/assets/wolfram-lXgVvXCa.js +0 -1
- package/client/dist/assets/xsl-CtQFsRM5.js +0 -1
- package/client/dist/assets/zenscript-DVFEvuxE.js +0 -1
- package/client/dist/assets/zig-VOosw3JB.js +0 -1
- package/server/dist/export.cjs.map +0 -1
- package/server/dist/export.d.ts.map +0 -1
- package/server/dist/export.mjs.map +0 -1
- package/server/dist/index.d.ts.map +0 -1
- package/server/dist/types/Routes.cjs.map +0 -1
- package/server/dist/types/Routes.mjs.map +0 -1
|
@@ -1,56 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var dictionary_routes_exports = {};
|
|
20
|
-
__export(dictionary_routes_exports, {
|
|
21
|
-
dictionaryRouter: () => dictionaryRouter,
|
|
22
|
-
getDictionaryRoutes: () => getDictionaryRoutes
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(dictionary_routes_exports);
|
|
25
|
-
var import_dictionary = require('./../controllers/dictionary.controller.cjs');
|
|
26
|
-
var import_config = require("@intlayer/config");
|
|
27
|
-
var import_express = require("express");
|
|
28
|
-
const dictionaryRouter = (0, import_express.Router)();
|
|
29
|
-
const { editor } = (0, import_config.getConfiguration)();
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_controllers_dictionary_controller = require('../controllers/dictionary.controller.cjs');
|
|
3
|
+
let __intlayer_config = require("@intlayer/config");
|
|
4
|
+
__intlayer_config = require_rolldown_runtime.__toESM(__intlayer_config);
|
|
5
|
+
let express = require("express");
|
|
6
|
+
express = require_rolldown_runtime.__toESM(express);
|
|
7
|
+
|
|
8
|
+
//#region server/src/routes/dictionary.routes.ts
|
|
9
|
+
const dictionaryRouter = (0, express.Router)();
|
|
10
|
+
const { editor } = (0, __intlayer_config.getConfiguration)();
|
|
30
11
|
const getBaseURL = () => `${editor.editorURL}/api/dictionary`;
|
|
31
12
|
const getDictionaryRoutes = () => ({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
43
|
-
dictionaryRouter.get(
|
|
44
|
-
getDictionaryRoutes().getDictionaries.urlModel,
|
|
45
|
-
import_dictionary.getDictionaries
|
|
46
|
-
);
|
|
47
|
-
dictionaryRouter.post(
|
|
48
|
-
getDictionaryRoutes().writeContentDeclaration.urlModel,
|
|
49
|
-
import_dictionary.writeContentDeclaration
|
|
50
|
-
);
|
|
51
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
-
0 && (module.exports = {
|
|
53
|
-
dictionaryRouter,
|
|
54
|
-
getDictionaryRoutes
|
|
13
|
+
getDictionaries: {
|
|
14
|
+
urlModel: "/",
|
|
15
|
+
url: getBaseURL(),
|
|
16
|
+
method: "GET"
|
|
17
|
+
},
|
|
18
|
+
writeContentDeclaration: {
|
|
19
|
+
urlModel: "/",
|
|
20
|
+
url: getBaseURL(),
|
|
21
|
+
method: "POST"
|
|
22
|
+
}
|
|
55
23
|
});
|
|
24
|
+
dictionaryRouter.get(getDictionaryRoutes().getDictionaries.urlModel, require_controllers_dictionary_controller.getDictionaries);
|
|
25
|
+
dictionaryRouter.post(getDictionaryRoutes().writeContentDeclaration.urlModel, require_controllers_dictionary_controller.writeContentDeclaration);
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.dictionaryRouter = dictionaryRouter;
|
|
29
|
+
exports.getDictionaryRoutes = getDictionaryRoutes;
|
|
56
30
|
//# sourceMappingURL=dictionary.routes.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"dictionary.routes.cjs","names":["dictionaryRouter: Router","getDictionaries","writeContentDeclaration"],"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":["import {\n getDictionaries,\n writeContentDeclaration,\n} from '@controllers/dictionary.controller';\nimport { getConfiguration } from '@intlayer/config';\nimport { Router } from 'express';\nimport type { Routes } from '@/types/Routes';\n\nexport const dictionaryRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst getBaseURL = () => `${editor.editorURL}/api/dictionary`;\n\nexport const getDictionaryRoutes = () =>\n ({\n getDictionaries: {\n urlModel: '/',\n url: getBaseURL(),\n method: 'GET',\n },\n writeContentDeclaration: {\n urlModel: '/',\n url: getBaseURL(),\n method: 'POST',\n },\n }) satisfies Routes;\n\ndictionaryRouter.get(\n getDictionaryRoutes().getDictionaries.urlModel,\n getDictionaries\n);\ndictionaryRouter.post(\n getDictionaryRoutes().writeContentDeclaration.urlModel,\n writeContentDeclaration\n);\n"],"mappings":";;;;;;;;AAQA,MAAaA,wCAAmC;AAEhD,MAAM,EAAE,oDAA6B;AAErC,MAAM,mBAAmB,GAAG,OAAO,UAAU;AAE7C,MAAa,6BACV;CACC,iBAAiB;EACf,UAAU;EACV,KAAK,YAAY;EACjB,QAAQ;EACT;CACD,yBAAyB;EACvB,UAAU;EACV,KAAK,YAAY;EACjB,QAAQ;EACT;CACF;AAEH,iBAAiB,IACf,qBAAqB,CAAC,gBAAgB,UACtCC,0DACD;AACD,iBAAiB,KACf,qBAAqB,CAAC,wBAAwB,UAC9CC,kEACD"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { Router } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { Router } from "express";
|
|
2
|
+
|
|
3
|
+
//#region server/src/routes/dictionary.routes.d.ts
|
|
4
|
+
declare const dictionaryRouter: Router;
|
|
5
|
+
declare const getDictionaryRoutes: () => {
|
|
6
|
+
getDictionaries: {
|
|
7
|
+
urlModel: string;
|
|
8
|
+
url: string;
|
|
9
|
+
method: "GET";
|
|
10
|
+
};
|
|
11
|
+
writeContentDeclaration: {
|
|
12
|
+
urlModel: string;
|
|
13
|
+
url: string;
|
|
14
|
+
method: "POST";
|
|
15
|
+
};
|
|
14
16
|
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { dictionaryRouter, getDictionaryRoutes };
|
|
15
19
|
//# sourceMappingURL=dictionary.routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.routes.d.ts","
|
|
1
|
+
{"version":3,"file":"dictionary.routes.d.ts","names":[],"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":[],"mappings":";;;cAQa,kBAAkB;cAMlB;EANA,eAAA,EAAA;IAMA,QAAA,EAAA,MAAA"}
|
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getDictionaries,
|
|
3
|
-
writeContentDeclaration
|
|
4
|
-
} from "./../controllers/dictionary.controller.mjs";
|
|
1
|
+
import { getDictionaries, writeContentDeclaration } from "../controllers/dictionary.controller.mjs";
|
|
5
2
|
import { getConfiguration } from "@intlayer/config";
|
|
6
3
|
import { Router } from "express";
|
|
4
|
+
|
|
5
|
+
//#region server/src/routes/dictionary.routes.ts
|
|
7
6
|
const dictionaryRouter = Router();
|
|
8
7
|
const { editor } = getConfiguration();
|
|
9
8
|
const getBaseURL = () => `${editor.editorURL}/api/dictionary`;
|
|
10
9
|
const getDictionaryRoutes = () => ({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
getDictionaries: {
|
|
11
|
+
urlModel: "/",
|
|
12
|
+
url: getBaseURL(),
|
|
13
|
+
method: "GET"
|
|
14
|
+
},
|
|
15
|
+
writeContentDeclaration: {
|
|
16
|
+
urlModel: "/",
|
|
17
|
+
url: getBaseURL(),
|
|
18
|
+
method: "POST"
|
|
19
|
+
}
|
|
21
20
|
});
|
|
22
|
-
dictionaryRouter.get(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
dictionaryRouter
|
|
27
|
-
getDictionaryRoutes().writeContentDeclaration.urlModel,
|
|
28
|
-
writeContentDeclaration
|
|
29
|
-
);
|
|
30
|
-
export {
|
|
31
|
-
dictionaryRouter,
|
|
32
|
-
getDictionaryRoutes
|
|
33
|
-
};
|
|
21
|
+
dictionaryRouter.get(getDictionaryRoutes().getDictionaries.urlModel, getDictionaries);
|
|
22
|
+
dictionaryRouter.post(getDictionaryRoutes().writeContentDeclaration.urlModel, writeContentDeclaration);
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { dictionaryRouter, getDictionaryRoutes };
|
|
34
26
|
//# sourceMappingURL=dictionary.routes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"dictionary.routes.mjs","names":["dictionaryRouter: Router"],"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":["import {\n getDictionaries,\n writeContentDeclaration,\n} from '@controllers/dictionary.controller';\nimport { getConfiguration } from '@intlayer/config';\nimport { Router } from 'express';\nimport type { Routes } from '@/types/Routes';\n\nexport const dictionaryRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst getBaseURL = () => `${editor.editorURL}/api/dictionary`;\n\nexport const getDictionaryRoutes = () =>\n ({\n getDictionaries: {\n urlModel: '/',\n url: getBaseURL(),\n method: 'GET',\n },\n writeContentDeclaration: {\n urlModel: '/',\n url: getBaseURL(),\n method: 'POST',\n },\n }) satisfies Routes;\n\ndictionaryRouter.get(\n getDictionaryRoutes().getDictionaries.urlModel,\n getDictionaries\n);\ndictionaryRouter.post(\n getDictionaryRoutes().writeContentDeclaration.urlModel,\n writeContentDeclaration\n);\n"],"mappings":";;;;;AAQA,MAAaA,mBAA2B,QAAQ;AAEhD,MAAM,EAAE,WAAW,kBAAkB;AAErC,MAAM,mBAAmB,GAAG,OAAO,UAAU;AAE7C,MAAa,6BACV;CACC,iBAAiB;EACf,UAAU;EACV,KAAK,YAAY;EACjB,QAAQ;EACT;CACD,yBAAyB;EACvB,UAAU;EACV,KAAK,YAAY;EACjB,QAAQ;EACT;CACF;AAEH,iBAAiB,IACf,qBAAqB,CAAC,gBAAgB,UACtC,gBACD;AACD,iBAAiB,KACf,qBAAqB,CAAC,wBAAwB,UAC9C,wBACD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var Routes_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(Routes_exports);
|
|
17
|
-
//# sourceMappingURL=Routes.cjs.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region server/src/types/Routes.d.ts
|
|
2
|
+
type Route = {
|
|
3
|
+
urlModel: string;
|
|
4
|
+
url: string | ((args: any) => string);
|
|
5
|
+
method: 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
type Routes = Record<string, Route>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Route, Routes };
|
|
7
10
|
//# sourceMappingURL=Routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Routes.d.ts","
|
|
1
|
+
{"version":3,"file":"Routes.d.ts","names":[],"sources":["../../src/types/Routes.ts"],"sourcesContent":[],"mappings":";KAAY,KAAA;EAAA,QAAK,EAAA,MAAA;EAOL,GAAA,EAAA,MAAM,GAAA,CAAA,CAAA,IAAA,EAAkB,GAAA,EAAA,GAAf,MAAM,CAAA;;;KAAf,MAAA,GAAS,eAAe"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=Routes.mjs.map
|
|
@@ -1,56 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var checkPortAvailability_exports = {};
|
|
30
|
-
__export(checkPortAvailability_exports, {
|
|
31
|
-
checkPortAvailability: () => checkPortAvailability
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(checkPortAvailability_exports);
|
|
34
|
-
var import_node_net = __toESM(require("node:net"), 1);
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let node_net = require("node:net");
|
|
3
|
+
node_net = require_rolldown_runtime.__toESM(node_net);
|
|
4
|
+
|
|
5
|
+
//#region server/src/utils/checkPortAvailability.ts
|
|
35
6
|
const checkPortAvailability = (port) => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
});
|
|
49
|
-
server.listen(port);
|
|
50
|
-
});
|
|
7
|
+
return new Promise((resolve) => {
|
|
8
|
+
const server = node_net.default.createServer();
|
|
9
|
+
server.once("error", (err) => {
|
|
10
|
+
if (err.code === "EADDRINUSE") resolve(false);
|
|
11
|
+
else resolve(true);
|
|
12
|
+
});
|
|
13
|
+
server.once("listening", () => {
|
|
14
|
+
server.close();
|
|
15
|
+
resolve(true);
|
|
16
|
+
});
|
|
17
|
+
server.listen(port);
|
|
18
|
+
});
|
|
51
19
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.checkPortAvailability = checkPortAvailability;
|
|
56
23
|
//# sourceMappingURL=checkPortAvailability.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/checkPortAvailability.ts"],"sourcesContent":["import net from 'node:net';\n\nexport const checkPortAvailability = (port: number): Promise<boolean> => {\n return new Promise((resolve) => {\n const server = net.createServer();\n\n server.once('error', (err: any) => {\n if (err.code === 'EADDRINUSE') {\n resolve(false); // Port is in use\n } else {\n resolve(true);\n }\n });\n\n server.once('listening', () => {\n server.close();\n resolve(true); // Port is available\n });\n\n server.listen(port);\n });\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkPortAvailability.cjs","names":["net"],"sources":["../../src/utils/checkPortAvailability.ts"],"sourcesContent":["import net from 'node:net';\n\nexport const checkPortAvailability = (port: number): Promise<boolean> => {\n return new Promise((resolve) => {\n const server = net.createServer();\n\n server.once('error', (err: any) => {\n if (err.code === 'EADDRINUSE') {\n resolve(false); // Port is in use\n } else {\n resolve(true);\n }\n });\n\n server.once('listening', () => {\n server.close();\n resolve(true); // Port is available\n });\n\n server.listen(port);\n });\n};\n"],"mappings":";;;;;AAEA,MAAa,yBAAyB,SAAmC;AACvE,QAAO,IAAI,SAAS,YAAY;EAC9B,MAAM,SAASA,iBAAI,cAAc;AAEjC,SAAO,KAAK,UAAU,QAAa;AACjC,OAAI,IAAI,SAAS,aACf,SAAQ,MAAM;OAEd,SAAQ,KAAK;IAEf;AAEF,SAAO,KAAK,mBAAmB;AAC7B,UAAO,OAAO;AACd,WAAQ,KAAK;IACb;AAEF,SAAO,OAAO,KAAK;GACnB"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region server/src/utils/checkPortAvailability.d.ts
|
|
2
|
+
declare const checkPortAvailability: (port: number) => Promise<boolean>;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { checkPortAvailability };
|
|
2
5
|
//# sourceMappingURL=checkPortAvailability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkPortAvailability.d.ts","
|
|
1
|
+
{"version":3,"file":"checkPortAvailability.d.ts","names":[],"sources":["../../src/utils/checkPortAvailability.ts"],"sourcesContent":[],"mappings":";cAEa,yCAAwC"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import net from "node:net";
|
|
2
|
+
|
|
3
|
+
//#region server/src/utils/checkPortAvailability.ts
|
|
2
4
|
const checkPortAvailability = (port) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
16
|
-
server.listen(port);
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
checkPortAvailability
|
|
5
|
+
return new Promise((resolve) => {
|
|
6
|
+
const server = net.createServer();
|
|
7
|
+
server.once("error", (err) => {
|
|
8
|
+
if (err.code === "EADDRINUSE") resolve(false);
|
|
9
|
+
else resolve(true);
|
|
10
|
+
});
|
|
11
|
+
server.once("listening", () => {
|
|
12
|
+
server.close();
|
|
13
|
+
resolve(true);
|
|
14
|
+
});
|
|
15
|
+
server.listen(port);
|
|
16
|
+
});
|
|
21
17
|
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { checkPortAvailability };
|
|
22
21
|
//# sourceMappingURL=checkPortAvailability.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/checkPortAvailability.ts"],"sourcesContent":["import net from 'node:net';\n\nexport const checkPortAvailability = (port: number): Promise<boolean> => {\n return new Promise((resolve) => {\n const server = net.createServer();\n\n server.once('error', (err: any) => {\n if (err.code === 'EADDRINUSE') {\n resolve(false); // Port is in use\n } else {\n resolve(true);\n }\n });\n\n server.once('listening', () => {\n server.close();\n resolve(true); // Port is available\n });\n\n server.listen(port);\n });\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkPortAvailability.mjs","names":[],"sources":["../../src/utils/checkPortAvailability.ts"],"sourcesContent":["import net from 'node:net';\n\nexport const checkPortAvailability = (port: number): Promise<boolean> => {\n return new Promise((resolve) => {\n const server = net.createServer();\n\n server.once('error', (err: any) => {\n if (err.code === 'EADDRINUSE') {\n resolve(false); // Port is in use\n } else {\n resolve(true);\n }\n });\n\n server.once('listening', () => {\n server.close();\n resolve(true); // Port is available\n });\n\n server.listen(port);\n });\n};\n"],"mappings":";;;AAEA,MAAa,yBAAyB,SAAmC;AACvE,QAAO,IAAI,SAAS,YAAY;EAC9B,MAAM,SAAS,IAAI,cAAc;AAEjC,SAAO,KAAK,UAAU,QAAa;AACjC,OAAI,IAAI,SAAS,aACf,SAAQ,MAAM;OAEd,SAAQ,KAAK;IAEf;AAEF,SAAO,KAAK,mBAAmB;AAC7B,UAAO,OAAO;AACd,WAAQ,KAAK;IACb;AAEF,SAAO,OAAO,KAAK;GACnB"}
|