This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-12-12 17:55:16 -05:00
parent d393e401dd
commit 54c2f15194
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
6 changed files with 993 additions and 4403 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,27 +1,37 @@
import axios from "axios";
import {writeFileSync, mkdirSync, existsSync} from "fs";
import {resolve, dirname} from "path";
import { writeFileSync, mkdirSync, existsSync } from "fs";
import { resolve, dirname } from "path";
const freeKey = "qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc";
const skins = ["dark", "default", "document", "tinymce-5", "tinymce-5-dark", "writer"];
const skins = [
"dark",
"default",
"document",
"tinymce-5",
"tinymce-5-dark",
"writer",
];
const uis = ["oxide", "oxide-dark", "tinymce-5", "tinymce-5-dark"];
const pluginList = "a11ychecker advcode advtable advtemplate typography ai casechange checklist tinycomments editimage mediaembed export footnotes formatpainter inlinecss linkchecker mentions mergetags moxiemanager pageembed permanentpen powerpaste rtc tinymcespellchecker autocorrect tableofcontents tinydrive accordion advlist anchor autolink autoresize autosave charmap code codesample directionality emoticons fullscreen help image importcss insertdatetime link lists media nonbreaking pagebreak preview quickbars save searchreplace table template visualblocks visualchars wordcount";
const base = `https://cdn.tiny.cloud/1/${freeKey}/tinymce/7`
const pluginList =
"a11ychecker advcode advtable advtemplate typography ai casechange checklist tinycomments editimage mediaembed export footnotes formatpainter inlinecss linkchecker mentions mergetags moxiemanager pageembed permanentpen powerpaste rtc tinymcespellchecker autocorrect tableofcontents tinydrive accordion advlist anchor autolink autoresize autosave charmap code codesample directionality emoticons fullscreen help image importcss insertdatetime link lists media nonbreaking pagebreak preview quickbars save searchreplace table template visualblocks visualchars wordcount";
const base = `https://cdn.tiny.cloud/1/${freeKey}/tinymce/8`;
let headers = {
Referer: "http://tiny.cloud"
}
Referer: "http://tiny.cloud",
};
async function fetchAux(path) {
const wpath = resolve(`..${path}`)
if(!existsSync(wpath)) mkdirSync(dirname(wpath), {recursive: true})
let {data: d} = await axios.get(`${base}${path}`, {headers});
const wpath = resolve(`..${path}`);
if (!existsSync(wpath)) mkdirSync(dirname(wpath), { recursive: true });
let { data: d } = await axios.get(`${base}${path}`, { headers });
writeFileSync(wpath, d);
}
async function main() {
try {
let {data: mainScript} = await axios.get(`${base}/tinymce.min.js`, {headers})
let { data: mainScript } = await axios.get(`${base}/tinymce.min.js`, {
headers,
});
// writeFileSync(resolve("../models/dom/model.min.js"), (await axios.get(`${base}/models/dom/model.min.js`, {headers})).data)
writeFileSync(resolve("../tinymce.min.js"), mainScript);
await fetchAux("/tinymce.d.ts");
@ -33,26 +43,29 @@ async function main() {
await fetchAux("/plugins/mediaembed/content.min.css");
await fetchAux("/plugins/tinycomments/css/tinycomments.css");
await fetchAux("/plugins/tinycomments/js/tinycomments-sidebar.min.js");
for(let t of skins) {
await fetchAux(`/skins/content/${t}/content.min.css`)
for (let t of skins) {
await fetchAux(`/skins/content/${t}/content.min.css`);
}
for(let u of uis) {
for(let c of [
for (let u of uis) {
for (let c of [
"content.inline.min.css",
"content.min.css",
"skin.min.css",
"skin.shadowdom.min.css"
"skin.shadowdom.min.css",
]) {
await fetchAux(`/skins/ui/${u}/${c}`)
await fetchAux(`/skins/ui/${u}/${c}`);
}
}
for(let p of pluginList.split(" ")) {
let {data} = await axios.get(`${base}/plugins/${p}/plugin.min.js`, {headers});
if(!existsSync(resolve(`../plugins/${p}`))) mkdirSync(resolve(`../plugins/${p}`), {recursive: true})
writeFileSync(resolve(`../plugins/${p}/plugin.min.js`), data)
for (let p of pluginList.split(" ")) {
let { data } = await axios.get(`${base}/plugins/${p}/plugin.min.js`, {
headers,
});
if (!existsSync(resolve(`../plugins/${p}`)))
mkdirSync(resolve(`../plugins/${p}`), { recursive: true });
writeFileSync(resolve(`../plugins/${p}/plugin.min.js`), data);
}
} finally {
process.exit()
process.exit();
}
}
main()
main();

1277
tinymce.d.ts vendored

File diff suppressed because it is too large Load Diff

47
tinymce.min.js vendored

File diff suppressed because one or more lines are too long