inital commit

This commit is contained in:
2026-01-01 15:25:19 +05:30
commit f0ae49465a
36361 changed files with 4894111 additions and 0 deletions

35
node_modules/jodit/esm/plugins/video/config.d.ts generated vendored Normal file
View File

@@ -0,0 +1,35 @@
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
declare module 'jodit/config' {
interface Config {
video: {
/**
* Custom function for parsing video URL to embed code
* ```javascript
* Jodit.make('#editor', {
* video: {
* // Defaul behavior
* parseUrlToVideoEmbed: (url, size) => Jodit.modules.Helpers.convertMediaUrlToVideoEmbed(url, size)
* }
* });
* ```
*/
parseUrlToVideoEmbed?: (url: string, { width, height }?: {
width?: number;
height?: number;
}) => string;
/**
* Default width for video iframe. Default: 400
*/
defaultWidth?: number;
/**
* Default height for video iframe. Default: 345
*/
defaultHeight?: number;
};
}
}
export {};

74
node_modules/jodit/esm/plugins/video/config.js generated vendored Normal file
View File

@@ -0,0 +1,74 @@
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import { call, convertMediaUrlToVideoEmbed } from "../../core/helpers/index.js";
import { Button } from "../../core/ui/button/index.js";
import { UIBlock, UIForm, UIInput, UITextArea } from "../../core/ui/form/index.js";
import { Icon } from "../../core/ui/icon.js";
import { Config } from "../../config.js";
import { TabsWidget } from "../../modules/widget/index.js";
import videoIcon from "./video.svg.js";
Config.prototype.video = {
parseUrlToVideoEmbed: convertMediaUrlToVideoEmbed,
defaultWidth: 400,
defaultHeight: 345
};
Icon.set('video', videoIcon);
Config.prototype.controls.video = {
popup: (jodit, current, close) => {
const formLink = new UIForm(jodit, [
new UIBlock(jodit, [
new UIInput(jodit, {
name: 'url',
required: true,
label: 'URL',
placeholder: 'https://',
validators: ['url']
})
]),
new UIBlock(jodit, [
Button(jodit, '', 'Insert', 'primary').onAction(() => formLink.submit())
])
]), formCode = new UIForm(jodit, [
new UIBlock(jodit, [
new UITextArea(jodit, {
name: 'code',
required: true,
label: 'Embed code'
})
]),
new UIBlock(jodit, [
Button(jodit, '', 'Insert', 'primary').onAction(() => formCode.submit())
])
]), tabs = [], insertCode = (code) => {
jodit.s.restore();
jodit.s.insertHTML(code);
close();
};
jodit.s.save();
tabs.push({
icon: 'link',
name: 'Link',
content: formLink.container
}, {
icon: 'source',
name: 'Code',
content: formCode.container
});
formLink.onSubmit(data => {
var _a, _b, _c, _d;
insertCode(call((_b = (_a = jodit.o.video) === null || _a === void 0 ? void 0 : _a.parseUrlToVideoEmbed) !== null && _b !== void 0 ? _b : convertMediaUrlToVideoEmbed, data.url, {
width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
}));
});
formCode.onSubmit(data => {
insertCode(data.code);
});
return TabsWidget(jodit, tabs);
},
tags: ['iframe'],
tooltip: 'Insert youtube/vimeo video'
};

6
node_modules/jodit/esm/plugins/video/video.d.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import "./config";

14
node_modules/jodit/esm/plugins/video/video.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import { pluginSystem } from "../../core/global.js";
import "./config.js";
function video(editor) {
editor.registerButton({
name: 'video',
group: 'media'
});
}
pluginSystem.add('video', video);

1
node_modules/jodit/esm/plugins/video/video.svg.js generated vendored Normal file
View File

@@ -0,0 +1 @@
export default "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 1792\"> <path d=\"M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z\"/> </svg> ";