intlayer-editor 7.4.0 → 7.5.0-canary.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/client/dist/assets/{CodeBlockShiki-DfLGl0YI.js → CodeBlockShiki-BZrNB-hp.js} +4 -3
- package/client/dist/assets/{bundle-web-BMQ8vt1M.js → bundle-web-XVNhfIcT.js} +1 -1
- package/client/dist/assets/{index-DhX2a-YJ.js → index-BCw8xSvk.js} +937 -695
- package/client/dist/assets/{index-B6iFg1jy.css → index-C9tdC4Xg.css} +276 -39
- package/client/dist/index.html +2 -2
- package/package.json +23 -23
- package/server/dist/controllers/configuration.controller.cjs +1 -1
- package/server/dist/controllers/configuration.controller.d.ts +1 -1
- package/server/dist/controllers/configuration.controller.mjs +1 -1
- package/server/dist/controllers/dictionary.controller.cjs +1 -1
- package/server/dist/controllers/dictionary.controller.d.ts +1 -1
- package/server/dist/controllers/dictionary.controller.mjs +1 -1
- package/server/dist/index.cjs +1 -1
- package/server/dist/index.mjs +1 -1
- package/server/dist/routes/config.routes.cjs +1 -1
- package/server/dist/routes/config.routes.d.ts +1 -1
- package/server/dist/routes/config.routes.mjs +1 -1
- package/server/dist/routes/dictionary.routes.cjs +1 -1
- package/server/dist/routes/dictionary.routes.d.ts +1 -1
- package/server/dist/routes/dictionary.routes.mjs +1 -1
- package/server/dist/types/Routes.d.ts +1 -1
- package/server/dist/utils/checkPortAvailability.cjs +1 -1
- package/server/dist/utils/checkPortAvailability.d.ts +1 -1
- package/server/dist/utils/checkPortAvailability.mjs +1 -1
- package/server/dist/utils/httpStatusCodes.cjs +1 -1
- package/server/dist/utils/httpStatusCodes.d.ts +1 -1
- package/server/dist/utils/httpStatusCodes.mjs +1 -1
- package/server/dist/utils/responseData.cjs +1 -1
- package/server/dist/utils/responseData.d.ts +1 -1
- package/server/dist/utils/responseData.mjs +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { formatResponse } from "../utils/responseData.mjs";
|
|
2
2
|
import { getConfiguration as getConfiguration$1 } from "@intlayer/config";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region src/controllers/configuration.controller.ts
|
|
5
5
|
/**
|
|
6
6
|
* Get the Intlayer configuration
|
|
7
7
|
*/
|
|
@@ -5,7 +5,7 @@ let __intlayer_chokidar = require("@intlayer/chokidar");
|
|
|
5
5
|
let __intlayer_unmerged_dictionaries_entry = require("@intlayer/unmerged-dictionaries-entry");
|
|
6
6
|
let express_intlayer = require("express-intlayer");
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region src/controllers/dictionary.controller.ts
|
|
9
9
|
/**
|
|
10
10
|
* Get the Intlayer configuration
|
|
11
11
|
*/
|
|
@@ -4,7 +4,7 @@ import { NextFunction, Request, Response } from "express";
|
|
|
4
4
|
import { DictionaryStatus } from "@intlayer/chokidar";
|
|
5
5
|
import { UnmergedDictionaries } from "@intlayer/unmerged-dictionaries-entry";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region src/controllers/dictionary.controller.d.ts
|
|
8
8
|
type GetDictionariesResult = ResponseData<UnmergedDictionaries>;
|
|
9
9
|
/**
|
|
10
10
|
* Get the Intlayer configuration
|
|
@@ -4,7 +4,7 @@ import { writeContentDeclaration as writeContentDeclaration$1 } from "@intlayer/
|
|
|
4
4
|
import { getUnmergedDictionaries } from "@intlayer/unmerged-dictionaries-entry";
|
|
5
5
|
import { t } from "express-intlayer";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region src/controllers/dictionary.controller.ts
|
|
8
8
|
/**
|
|
9
9
|
* Get the Intlayer configuration
|
|
10
10
|
*/
|
package/server/dist/index.cjs
CHANGED
|
@@ -20,7 +20,7 @@ helmet = require_rolldown_runtime.__toESM(helmet);
|
|
|
20
20
|
let mime = require("mime");
|
|
21
21
|
mime = require_rolldown_runtime.__toESM(mime);
|
|
22
22
|
|
|
23
|
-
//#region
|
|
23
|
+
//#region src/index.ts
|
|
24
24
|
const __dirname$1 = (0, node_path.dirname)((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href));
|
|
25
25
|
const envFileOptions = {
|
|
26
26
|
env: process.env.NODE_ENV,
|
package/server/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ const require_controllers_configuration_controller = require('../controllers/con
|
|
|
3
3
|
let __intlayer_config = require("@intlayer/config");
|
|
4
4
|
let express = require("express");
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region src/routes/config.routes.ts
|
|
7
7
|
const configurationRouter = (0, express.Router)();
|
|
8
8
|
const { editor } = (0, __intlayer_config.getConfiguration)();
|
|
9
9
|
const getBaseURL = () => `${editor.editorURL}/api/dictionary`;
|
|
@@ -2,7 +2,7 @@ import { getConfiguration as getConfiguration$1 } from "../controllers/configura
|
|
|
2
2
|
import { getConfiguration } from "@intlayer/config";
|
|
3
3
|
import { Router } from "express";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region src/routes/config.routes.ts
|
|
6
6
|
const configurationRouter = Router();
|
|
7
7
|
const { editor } = getConfiguration();
|
|
8
8
|
const getBaseURL = () => `${editor.editorURL}/api/dictionary`;
|
|
@@ -3,7 +3,7 @@ const require_controllers_dictionary_controller = require('../controllers/dictio
|
|
|
3
3
|
let __intlayer_config = require("@intlayer/config");
|
|
4
4
|
let express = require("express");
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region src/routes/dictionary.routes.ts
|
|
7
7
|
const dictionaryRouter = (0, express.Router)();
|
|
8
8
|
const { editor } = (0, __intlayer_config.getConfiguration)();
|
|
9
9
|
const getBaseURL = () => `${editor.editorURL}/api/dictionary`;
|
|
@@ -2,7 +2,7 @@ import { getDictionaries, writeContentDeclaration } from "../controllers/diction
|
|
|
2
2
|
import { getConfiguration } from "@intlayer/config";
|
|
3
3
|
import { Router } from "express";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region src/routes/dictionary.routes.ts
|
|
6
6
|
const dictionaryRouter = Router();
|
|
7
7
|
const { editor } = getConfiguration();
|
|
8
8
|
const getBaseURL = () => `${editor.editorURL}/api/dictionary`;
|
|
@@ -2,7 +2,7 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
let node_net = require("node:net");
|
|
3
3
|
node_net = require_rolldown_runtime.__toESM(node_net);
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region src/utils/checkPortAvailability.ts
|
|
6
6
|
const checkPortAvailability = (port) => {
|
|
7
7
|
return new Promise((resolve) => {
|
|
8
8
|
const server = node_net.default.createServer();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_utils_httpStatusCodes = require('./httpStatusCodes.cjs');
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region src/utils/responseData.ts
|
|
4
4
|
const isSuccessStatus = (status) => status === require_utils_httpStatusCodes.HttpStatusCodes.OK_200 || status === require_utils_httpStatusCodes.HttpStatusCodes.CREATED_201 || status === require_utils_httpStatusCodes.HttpStatusCodes.ACCEPTED_202 || status === require_utils_httpStatusCodes.HttpStatusCodes.NON_AUTHORITATIVE_INFORMATION_203 || status === require_utils_httpStatusCodes.HttpStatusCodes.NO_CONTENT_204 || status === require_utils_httpStatusCodes.HttpStatusCodes.RESET_CONTENT_205 || status === require_utils_httpStatusCodes.HttpStatusCodes.PARTIAL_CONTENT_206 || status === require_utils_httpStatusCodes.HttpStatusCodes.MULTI_STATUS_207 || status === require_utils_httpStatusCodes.HttpStatusCodes.ALREADY_REPORTED_208 || status === require_utils_httpStatusCodes.HttpStatusCodes.IM_USED_226;
|
|
5
5
|
function formatResponse({ message, description, data, error, status = require_utils_httpStatusCodes.HttpStatusCodes.OK_200 }) {
|
|
6
6
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatusCodes } from "./httpStatusCodes.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region src/utils/responseData.ts
|
|
4
4
|
const isSuccessStatus = (status) => status === HttpStatusCodes.OK_200 || status === HttpStatusCodes.CREATED_201 || status === HttpStatusCodes.ACCEPTED_202 || status === HttpStatusCodes.NON_AUTHORITATIVE_INFORMATION_203 || status === HttpStatusCodes.NO_CONTENT_204 || status === HttpStatusCodes.RESET_CONTENT_205 || status === HttpStatusCodes.PARTIAL_CONTENT_206 || status === HttpStatusCodes.MULTI_STATUS_207 || status === HttpStatusCodes.ALREADY_REPORTED_208 || status === HttpStatusCodes.IM_USED_226;
|
|
5
5
|
function formatResponse({ message, description, data, error, status = HttpStatusCodes.OK_200 }) {
|
|
6
6
|
return {
|