提交 f09fade7 authored 作者: 王鹏飞's avatar 王鹏飞

feat: 主分支支持学校本地化部署

上级 3dc107c7
# ============================================================
# 学校本地部署配置
# IP 地址会自动从浏览器地址栏检测,无需手动修改。
# 只需修改 VITE_SYSTEM 指定产品系统。
# ============================================================
# 产品系统(必填):ai | dml | default | x | game | swsjfxs | amo | nac
VITE_SYSTEM=ai
# --- 以下为固定域名,无需修改 ---
VITE_X_LEARNING_URL=https://x-learning.zijing.chat
VITE_EXAM_SHOW_URL=https://exam-show.zijing.chat
VITE_SYS_FLAG=chat
VITE_STATIC_URL=https://saas-lab-api
# --- 以下为 fallback 值(IP 访问时由 src/utils/env.ts 自动检测覆盖)---
# 端口映射: 1001=登录 1004=答疑 1006=数字营销 1007=营销专业版
# 1009=理论学习 1012=Lab 1014=BI看板 1015=直播 1016=AI
# 如需覆盖自动检测,取消注释并修改对应行:
# VITE_LOGIN_URL=http://10.2.110.245:1001/auth/login/index
# VITE_LAB_URL=http://10.2.110.245:1012/bi/viewer?proc=0&action=index
# VITE_DML_URL=http://10.2.110.245:1006
# VITE_DML_PRO_URL=http://10.2.110.245:1007
# VITE_SAAS_LEARN_URL=http://10.2.110.245:1009
# VITE_QA_CENTER_URL=http://10.2.110.245:1004
# VITE_SWSJFXS_LOGIN_URL=http://10.2.110.245:1001/swsjfxs/login/index
# VITE_SAAS_BI_URL=http://10.2.110.245:1014/data/dashboard
# VITE_SAAS_DML_LIVE_URL=http://10.2.110.245:1015/live/test
# VITE_SAAS_AI_URL=http://10.2.110.245:1016
VITE_LOGIN_URL=https://login.ezijing.com/auth/login/index
VITE_LAB_URL=https://bi.ezijing.com/bi/viewer?proc=0&action=index
VITE_DML_URL=https://saas-dml.ezijing.com
VITE_DML_PRO_URL=https://saas-dml-pro.ezijing.com
\ No newline at end of file
<!DOCTYPE html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<!-- <link rel="icon" href="https://webapp-pub.ezijing.com/website/base/favicon.ico" /> --> <!-- <link rel="icon" href="https://webapp-pub.ezijing.com/website/base/favicon.ico" /> -->
<meta <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title></title> <title></title>
<script src="https://webapp-pub.ezijing.com/plugins/tinymce@6/tinymce.min.js"></script> <script src="/lib/tinymce@6/tinymce.min.js"></script>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
<script src="https://webapp-pub.ezijing.com/plugins/sky-agents/sky-agent.umd.cjs?v=2"></script> <!-- <script src="https://webapp-pub.ezijing.com/plugins/sky-agents/sky-agent.umd.cjs?v=2"></script> -->
</body> </body>
</html> </html>
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
"scripts": { "scripts": {
"dev": "vite --mode dev", "dev": "vite --mode dev",
"build": "vue-tsc --noEmit && vite build --mode prod && npm run deploy", "build": "vue-tsc --noEmit && vite build --mode prod && npm run deploy",
"build:test": "vue-tsc --noEmit && vite build --mode test", "build:prod": "vue-tsc --noEmit && vite build --mode prod",
"build:pre": "vue-tsc --noEmit && vite build --mode pre", "build:school": "vue-tsc --noEmit && vite build --mode school",
"preview": "vite preview --port 4173", "preview": "vite preview --port 4173",
"typecheck": "vue-tsc --noEmit", "typecheck": "vue-tsc --noEmit",
"lint": "eslint . --fix", "lint": "eslint . --fix",
......
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-circle" viewBox="0 0 16 16">
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
<path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
</svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 704.02 175.41"><defs><style>.cls-1{fill:#ba003f;}.cls-2{fill:#231815;}</style></defs><g id="图层_2" data-name="图层 2"><g id="图层_1-2" data-name="图层 1"><polygon class="cls-1" points="155.9 48.56 77.95 85.79 34.19 64.88 95.2 35.67 80.81 28.77 22.22 56.81 22.22 72.95 77.95 99.58 155.9 62.35 155.9 48.56"/><polygon class="cls-1" points="155.9 73.9 77.95 111.15 22.22 84.53 22.22 98.31 77.95 124.94 155.9 87.69 155.9 73.9"/><polygon class="cls-1" points="155.9 99.25 77.95 136.5 22.22 109.87 22.22 123.66 77.95 150.28 155.9 113.03 155.9 99.25"/><path class="cls-1" d="M155.9,124.59l-77.4,37a1.23,1.23,0,0,1-1.09,0L13.16,130.89a1.26,1.26,0,0,1-.72-1.14V45.82a1.26,1.26,0,0,1,.72-1.13L77.41,13.84a1.3,1.3,0,0,1,1.09,0L126.62,37a.28.28,0,0,1,0,.5L66.12,66.34l14.43,6.9,75.34-36a0,0,0,0,0,0,0L78.83.2a2,2,0,0,0-1.75,0L1.14,36.65A2,2,0,0,0,0,38.47v98.65a2,2,0,0,0,1.15,1.82l75.94,36.27a2,2,0,0,0,1.73,0l75.94-36.28a2,2,0,0,0,1.14-1.82Z"/><path d="M369.54,97v6.54c19.74-3.59,23-20.34,23-20.34H382S379.81,91.88,369.54,97Z"/><path d="M427.15,83.16H416.63s4.62,17.35,24.93,20.34V97A27.27,27.27,0,0,1,427.15,83.16Z"/><path d="M441.63,40V34.21H419.17V28.59h-8.84V50.18a3,3,0,0,0,3,3h28.27V47.39H419.17V40Z"/><path d="M372.57,53.21H405V47.39H392.57V40H405V34.21H392.57V28.59h-8.83v18.8h-5.36V34.19h-8.84v16A3,3,0,0,0,372.57,53.21Z"/><path d="M438.45,67h-9.53L431,73H410.38l17.3-17H413.44L409,60.89H390.83l3.69-4.81H380.29l-7.2,8.69a1.17,1.17,0,0,0,.86,2h28.89L396.15,73H369.54v5.82h29.9V97.75h-6v5.74H406.9a3,3,0,0,0,3-3V78.86H439a2.39,2.39,0,0,0,2.43-3.38Z"/><path d="M457.19,57.78h8.52V72.64h-8.52v5.82h8.51c0,5.62-1.08,13.25-8.35,18.58v6.46s17.1-4.45,17.2-25h10.31v25h8.84v-25h8.52V72.64H493.7V57.78h8.52V52h-45Zm17.36,0h10.31V72.64H474.55Z"/><rect x="506.48" y="33.18" width="8.84" height="57.5"/><path d="M519.6,28.59V97.75h-9.69v5.74h16.44a3,3,0,0,0,3-3V28.59Z"/><polygon points="493.7 28.59 484.86 28.59 484.86 35.53 474.55 35.53 474.55 28.59 465.71 28.59 465.71 35.53 457.19 35.53 457.19 41.36 465.71 41.36 465.71 48.39 474.55 48.39 474.55 41.36 484.86 41.36 484.86 48.39 493.7 48.39 493.7 41.36 502.22 41.36 502.22 35.53 493.7 35.53 493.7 28.59"/><path d="M695.62,61H641.38a3,3,0,0,0-3,3V103.5h9.79V90.69h40.73v7.07h-8.55v5.74h15.3a3,3,0,0,0,3-3V64.05A3,3,0,0,0,695.62,61Zm-6.75,23.85H648.14V78.68h40.73Zm0-12H648.14V66.93h40.73Z"/><path d="M704,40.19V34.37h-31.4V28.63h-8.84v5.74H632.3v5.82h10.59l-4.31,12.18a3,3,0,0,0,2.8,4.18h54.51a2.55,2.55,0,0,0,2.67-3.15l-3.55-10h-9.56l2.6,7.35h-37.9l3.63-10.54Z"/><path d="M617.77,37.66H594.12V28.59h-8.83V40.45a3,3,0,0,0,3,3H606c0,12.75-2.58,22.77-6.12,30.52a58.14,58.14,0,0,1-5.71-25h-8.83a63.91,63.91,0,0,0,9.6,33.75c-7.15,10.38-15.14,14.34-15.14,14.34v6.46A53.79,53.79,0,0,0,599.46,89a59.25,59.25,0,0,0,18.31,14.55V97.08a65.65,65.65,0,0,1-13.33-14.91C615.56,64.26,614.81,44,614.78,43.48h3Z"/><path d="M582.4,79.63H570.91c2.79-2.48,7.08-7.85,8.76-13h0V60.78h-15a23.34,23.34,0,0,0,3-7.46H582.4V47.5H568.18V41H581V35.2H568.18V28.59h-8.84V35.2H546.47V41h12.87V47.5H545.13v5.82h13.58A24.54,24.54,0,0,1,545.13,69.6v5.7a42.46,42.46,0,0,0,14.75-8.69h9.54a27.32,27.32,0,0,1-8.61,13H545.13v5.82H560.8V97.79h-8.47v5.75h14.28a3,3,0,0,0,3-3.05v-15H582.4Z"/><path d="M306.07,58.49v5.64a27.4,27.4,0,0,0,21.38-17.55h-9.07A27.8,27.8,0,0,1,306.07,58.49Z"/><path d="M332.08,46.58s2.57,14.55,21.8,17.55V58.61c-8.77-3.38-12.73-12-12.73-12Z"/><path d="M298.08,46.64h5.46V40.82h-5.46V28.59h-9.79V40.82h-7.12v5.82h7.12V65.5c-4.43.79-7.83,1.32-7.83,1.32V75.2c2.48-.38,5.18-1,7.83-1.64V97.74h-7.83v5.75h14.59a3,3,0,0,0,3-3V70.69c3.81-1.24,6.44-2.23,6.44-2.23V62c-1.79.54-4,1.09-6.44,1.61Z"/><polygon points="335.25 97.66 335.25 73.24 351.94 73.24 351.94 67.42 308.05 67.42 308.05 73.24 324.74 73.24 324.74 97.66 304.6 97.66 304.6 103.49 355.39 103.49 355.39 97.66 335.25 97.66"/><path d="M314.59,40.27H345v8.1h9v-11a3,3,0,0,0-3-3H334.4V28.59h-8.84v5.78H309a3,3,0,0,0-3,3v11h8.67Z"/><polygon points="243.94 54.29 243.94 49.16 265.13 49.16 265.13 43.33 243.94 43.33 243.94 38.9 265.13 38.9 265.13 33.07 243.94 33.07 243.94 28.59 234.16 28.59 234.16 33.07 212.98 33.07 212.98 38.9 234.16 38.9 234.16 43.33 212.98 43.33 212.98 49.16 234.16 49.16 234.16 54.29 211.71 54.29 211.71 60.11 266.39 60.11 266.39 54.29 243.94 54.29"/><path d="M209.19,46.65a79.56,79.56,0,0,0-6.86-16.31h-8.65a96.12,96.12,0,0,1,5.69,16.31Z"/><path d="M194.83,50.22a96.38,96.38,0,0,1,5.31,16.31H210a94.42,94.42,0,0,0-6.49-16.31Z"/><path d="M192.51,103.49H203c5.36-15.13,6.55-33.34,6.55-33.34h-8.36C199.53,84.73,192.51,103.49,192.51,103.49Z"/><path d="M259.81,64.36H217.19a3,3,0,0,0-3,3v36.1H224V92.29h29.1v5.46h-8.54v5.74h15.3a3,3,0,0,0,3-3V67.39A3,3,0,0,0,259.81,64.36Zm-6.76,22.48H224V81.28h29.1Zm0-11H224V70.27h29.1Z"/><path class="cls-2" d="M475.37,118.74v5.08H461.59v5.88h12.64v4.7H461.59v6.73h14.07v5.08H455.85V118.74Z"/><path class="cls-2" d="M495.29,118.74a13,13,0,0,1,4.7.84,10.31,10.31,0,0,1,3.76,2.54,11.87,11.87,0,0,1,2.49,4.24,18.11,18.11,0,0,1,.89,6,19.85,19.85,0,0,1-.73,5.54,12.52,12.52,0,0,1-2.21,4.39,10.43,10.43,0,0,1-3.69,2.9,11.91,11.91,0,0,1-5.21,1.06H484V118.74Zm-.4,22.39a7.07,7.07,0,0,0,2.41-.42,5.21,5.21,0,0,0,2.08-1.41,7.1,7.1,0,0,0,1.47-2.56,11.93,11.93,0,0,0,.54-3.84,16.67,16.67,0,0,0-.38-3.76,7.79,7.79,0,0,0-1.26-2.86,5.62,5.62,0,0,0-2.32-1.83,9,9,0,0,0-3.57-.63h-4.09v17.31Z"/><path class="cls-2" d="M534.8,144.11q-3,2.71-8.19,2.71c-3.53,0-6.26-.89-8.2-2.69s-2.91-4.56-2.91-8.31V118.74h5.74v17.08a13.21,13.21,0,0,0,.18,2.19,4.69,4.69,0,0,0,.77,1.91,4.19,4.19,0,0,0,1.63,1.34,6.23,6.23,0,0,0,2.79.52c2,0,3.46-.48,4.24-1.44a7.13,7.13,0,0,0,1.17-4.52V118.74h5.74v17.08C537.76,139.54,536.78,142.3,534.8,144.11Z"/><path class="cls-2" d="M563.93,126.07a5.83,5.83,0,0,0-3-2.54,5.58,5.58,0,0,0-2-.37,6.49,6.49,0,0,0-3.29.79,6.35,6.35,0,0,0-2.19,2.12,9.59,9.59,0,0,0-1.23,3,16.11,16.11,0,0,0-.38,3.5,15.07,15.07,0,0,0,.38,3.37,9.42,9.42,0,0,0,1.23,2.94,6.11,6.11,0,0,0,5.48,2.88,5.15,5.15,0,0,0,4.11-1.69,8,8,0,0,0,1.81-4.46h5.56a14.83,14.83,0,0,1-1.13,4.65,11.06,11.06,0,0,1-2.42,3.54,10.23,10.23,0,0,1-3.51,2.24,12.32,12.32,0,0,1-4.42.76,12.82,12.82,0,0,1-5.39-1.09,11.6,11.6,0,0,1-4-3,13.38,13.38,0,0,1-2.52-4.52,17.25,17.25,0,0,1-.88-5.6,17.8,17.8,0,0,1,.88-5.71,13.76,13.76,0,0,1,2.52-4.6,11.51,11.51,0,0,1,4-3.08,12.67,12.67,0,0,1,5.39-1.12,12.46,12.46,0,0,1,4.08.66,10.75,10.75,0,0,1,3.43,1.9,10.34,10.34,0,0,1,2.51,3.1,11.43,11.43,0,0,1,1.24,4.23h-5.56A4.78,4.78,0,0,0,563.93,126.07Z"/><path class="cls-2" d="M591.79,118.74l9.76,27.47h-6l-2-6.12h-9.76l-2.05,6.12H576l9.87-27.47Zm.33,16.85-3.29-10.08h-.08l-3.39,10.08Z"/><path class="cls-2" d="M602.9,123.82v-5.08h21.38v5.08h-7.82v22.39h-5.74V123.82Z"/><path class="cls-2" d="M637.52,118.74v27.47h-5.74V118.74Z"/><path class="cls-2" d="M685,118.74l10.89,18.43H696V118.74h5.38v27.47H695.6l-10.86-18.39h-.07v18.39h-5.38V118.74Z"/><path class="cls-1" d="M306.13,123.82h-12.9v-5.08h20.54v4.77l-14,17.62h14.36v5.08h-22v-4.77Z"/><path class="cls-1" d="M327.73,118.74v27.47H322V118.74Z"/><path class="cls-1" d="M352.3,140.51a7.89,7.89,0,0,1-1.18,3,7.1,7.1,0,0,1-2.63,2.34,9.64,9.64,0,0,1-4.64.94,10.61,10.61,0,0,1-3.18-.48,7.8,7.8,0,0,1-2.74-1.5,7.5,7.5,0,0,1-1.94-2.61,9.25,9.25,0,0,1-.73-3.87V136h5.19v1.24a10.54,10.54,0,0,0,.15,1.84,4.2,4.2,0,0,0,.51,1.45,2.62,2.62,0,0,0,1,.94,3.47,3.47,0,0,0,1.66.34,3.1,3.1,0,0,0,1.75-.42,2.35,2.35,0,0,0,.9-1.1,4.8,4.8,0,0,0,.33-1.46c0-.52.05-1,.05-1.52V118.74h5.74v18.81A19,19,0,0,1,352.3,140.51Z"/><path class="cls-1" d="M367.83,118.74v27.47h-5.74V118.74Z"/><path class="cls-1" d="M383.07,118.74,394,137.17H394V118.74h5.37v27.47h-5.74l-10.85-18.39h-.08v18.39h-5.37V118.74Z"/><path class="cls-1" d="M424.41,146a9.18,9.18,0,0,1-3.76.82,12.79,12.79,0,0,1-5.39-1.09,11.6,11.6,0,0,1-4-3,13.38,13.38,0,0,1-2.52-4.52,17.25,17.25,0,0,1-.88-5.6,17.8,17.8,0,0,1,.88-5.71,13.76,13.76,0,0,1,2.52-4.6,11.51,11.51,0,0,1,4-3.08,12.64,12.64,0,0,1,5.39-1.12,11.89,11.89,0,0,1,3.89.64,10.72,10.72,0,0,1,3.4,1.86,10.16,10.16,0,0,1,2.5,3,10.58,10.58,0,0,1,1.21,4.16h-5.48a5.8,5.8,0,0,0-2-3.46,5.52,5.52,0,0,0-3.54-1.16,6.49,6.49,0,0,0-3.29.79,6.35,6.35,0,0,0-2.19,2.12,9.59,9.59,0,0,0-1.23,3,16.11,16.11,0,0,0-.38,3.5,15.07,15.07,0,0,0,.38,3.37,9.42,9.42,0,0,0,1.23,2.94,6.11,6.11,0,0,0,5.48,2.88,6,6,0,0,0,4.4-1.52,6.73,6.73,0,0,0,1.81-4.4h-5.77v-4.5h11v14.85H428.4l-.59-3.12A8.59,8.59,0,0,1,424.41,146Z"/><path class="cls-1" d="M658.65,146.79a14.13,14.13,0,1,1,14.12-14.13A14.15,14.15,0,0,1,658.65,146.79Zm0-23.43a9.3,9.3,0,1,0,9.29,9.3A9.31,9.31,0,0,0,658.65,123.36Z"/><polygon class="cls-1" points="654.96 126.53 665.48 132.57 654.98 138.65 654.96 126.53"/><path class="cls-1" d="M202.91,123.3h-7.72v-4.56h21v4.56h-7.79v22.91h-5.5Z"/><path class="cls-1" d="M220.66,118.74h5.49v10.8h10.4v-10.8H242v27.47h-5.46V134.33h-10.4v11.88h-5.49Z"/><path class="cls-1" d="M248.76,118.74h5.5v10.8h10.39v-10.8h5.46v27.47h-5.46V134.33H254.26v11.88h-5.5Z"/></g></g></svg>
\ No newline at end of file
This is where language files should be placed.
Please DO NOT translate these directly use this service: https://www.transifex.com/projects/p/tinymce/
差异被折叠。
MIT License
Copyright (c) 2022 Ephox Corporation DBA Tiny Technologies, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
差异被折叠。
/**
* TinyMCE version 6.0.1 (2022-03-23)
*/
!function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(t,e,r)=>{const s="UL"===e?"InsertUnorderedList":"InsertOrderedList";t.execCommand(s,!1,!1===r?null:{"list-style-type":r})},r=t=>e=>e.options.get(t),s=r("advlist_number_styles"),n=r("advlist_bullet_styles");var i=tinymce.util.Tools.resolve("tinymce.util.Tools");class l{constructor(t,e){this.tag=t,this.value=e}static some(t){return new l(!0,t)}static none(){return l.singletonNone}fold(t,e){return this.tag?e(this.value):t()}isSome(){return this.tag}isNone(){return!this.tag}map(t){return this.tag?l.some(t(this.value)):l.none()}bind(t){return this.tag?t(this.value):l.none()}exists(t){return this.tag&&t(this.value)}forall(t){return!this.tag||t(this.value)}filter(t){return!this.tag||t(this.value)?this:l.none()}getOr(t){return this.tag?this.value:t}or(t){return this.tag?this:t}getOrThunk(t){return this.tag?this.value:t()}orThunk(t){return this.tag?this:t()}getOrDie(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")}static from(t){return null==t?l.none():l.some(t)}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(t){this.tag&&t(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}l.singletonNone=new l(!1);const o=t=>t&&/^(TH|TD)$/.test(t.nodeName),a=(t,e)=>r=>{const s=s=>{r.setActive(((t,e,r)=>{const s=((t,e)=>{for(let r=0;r<t.length;r++)if(e(t[r]))return r;return-1})(e.parents,o),n=-1!==s?e.parents.slice(0,s):e.parents,l=i.grep(n,(t=>e=>e&&/^(OL|UL|DL)$/.test(e.nodeName)&&((t,e)=>t.dom.isChildOf(e,t.getBody()))(t,e))(t));return l.length>0&&l[0].nodeName===r})(t,s,e))};return t.on("NodeChange",s),()=>t.off("NodeChange",s)},u=(t,r,s,n,o,u)=>{u.length>1?((t,r,s,n,o,u)=>{t.ui.registry.addSplitButton(r,{tooltip:s,icon:"OL"===o?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:t=>{t(i.map(u,(t=>{const e="OL"===o?"num":"bull",r="disc"===t||"decimal"===t?"default":t,s="default"===t?"":t,n=(t=>t.replace(/\-/g," ").replace(/\b\w/g,(t=>t.toUpperCase())))(t);return{type:"choiceitem",value:s,icon:"list-"+e+"-"+r,text:n}})))},onAction:()=>t.execCommand(n),onItemAction:(r,s)=>{e(t,o,s)},select:e=>{const r=(t=>{const e=t.dom.getParent(t.selection.getNode(),"ol,ul"),r=t.dom.getStyle(e,"listStyleType");return l.from(r)})(t);return r.map((t=>e===t)).getOr(!1)},onSetup:a(t,o)})})(t,r,s,n,o,u):((t,e,r,s,n,i)=>{t.ui.registry.addToggleButton(e,{active:!1,tooltip:r,icon:"OL"===n?"ordered-list":"unordered-list",onSetup:a(t,n),onAction:()=>t.execCommand(s)})})(t,r,s,n,o)};t.add("advlist",(t=>{t.hasPlugin("lists")?((t=>{const e=t.options.register;e("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),e("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})})(t),(t=>{u(t,"numlist","Numbered list","InsertOrderedList","OL",s(t)),u(t,"bullist","Bullet list","InsertUnorderedList","UL",n(t))})(t),(t=>{t.addCommand("ApplyUnorderedListStyle",((r,s)=>{e(t,"UL",s["list-style-type"])})),t.addCommand("ApplyOrderedListStyle",((r,s)=>{e(t,"OL",s["list-style-type"])}))})(t)):console.error("Please use the Lists plugin together with the Advanced List plugin.")}))}();
\ No newline at end of file
/**
* TinyMCE version 6.0.1 (2022-03-23)
*/
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),n=tinymce.util.Tools.resolve("tinymce.util.Tools");const o=("allow_html_in_named_anchor",e=>e.options.get("allow_html_in_named_anchor"));const a="a:not([href])",r=e=>!e,i=e=>e.getAttribute("id")||e.getAttribute("name")||"",l=e=>(e=>e&&"a"===e.nodeName.toLowerCase())(e)&&!e.getAttribute("href")&&""!==i(e),s=e=>e.dom.getParent(e.selection.getStart(),a),c=(e,a)=>{const r=s(e);r?((e,t,n)=>{n.removeAttribute("name"),n.id=t,e.addVisual(),e.undoManager.add()})(e,a,r):((e,a)=>{e.undoManager.transact((()=>{o(e)||e.selection.collapse(!0),e.selection.isCollapsed()?e.insertContent(e.dom.createHTML("a",{id:a})):((e=>{const o=e.dom;t(o).walk(e.selection.getRng(),(e=>{n.each(e,(e=>{var t;l(t=e)&&!t.firstChild&&o.remove(e,!1)}))}))})(e),e.formatter.remove("namedAnchor",null,null,!0),e.formatter.apply("namedAnchor",{value:a}),e.addVisual())}))})(e,a),e.focus()},d=e=>(e=>e&&r(e.attr("href"))&&!r(e.attr("id")||e.attr("name")))(e)&&!e.firstChild,m=e=>t=>{for(let n=0;n<t.length;n++){const o=t[n];d(o)&&o.attr("contenteditable",e)}};e.add("anchor",(e=>{(e=>{(0,e.options.register)("allow_html_in_named_anchor",{processor:"boolean",default:!1})})(e),(e=>{e.on("PreInit",(()=>{e.parser.addNodeFilter("a",m("false")),e.serializer.addNodeFilter("a",m(null))}))})(e),(e=>{e.addCommand("mceAnchor",(()=>{(e=>{const t=(e=>{const t=s(e);return t?i(t):""})(e);e.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:t},onSubmit:t=>{((e,t)=>/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(t)?(c(e,t),!0):(e.windowManager.alert("ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1))(e,t.getData().id)&&t.close()}})})(e)}))})(e),(e=>{e.ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:()=>e.execCommand("mceAnchor"),onSetup:t=>e.selection.selectorChangedWithUnbind("a:not([href])",t.setActive).unbind}),e.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:()=>e.execCommand("mceAnchor")})})(e),e.on("PreInit",(()=>{(e=>{e.formatter.register("namedAnchor",{inline:"a",selector:a,remove:"all",split:!0,deep:!0,attributes:{id:"%value"},onmatch:(e,t,n)=>l(e)})})(e)}))}))}();
\ No newline at end of file
/**
* TinyMCE version 6.0.1 (2022-03-23)
*/
!function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=t=>e=>e.options.get(t),n=e("autolink_pattern"),o=e("link_default_target"),r=e("link_default_protocol"),i=("string",t=>"string"===(t=>{const e=typeof t;return null===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(n=o=t,(r=String).prototype.isPrototypeOf(n)||(null===(i=o.constructor)||void 0===i?void 0:i.name)===r.name)?"string":e;var n,o,r,i})(t));const s=t=>/^[(\[{ \u00a0]$/.test(t),a=t=>3===t.nodeType,l=t=>1===t.nodeType,d=(t,e)=>{if(e<0&&(e=0),a(t)){const n=t.data.length;e>n&&(e=n)}return e},f=(t,e,n)=>{!l(e)||e.hasChildNodes()?t.setStart(e,d(e,n)):t.setStartBefore(e)},g=(t,e,n)=>{!l(e)||e.hasChildNodes()?t.setEnd(e,d(e,n)):t.setEndAfter(e)},c=(t,e)=>{let l,d,c,u,h,p,k;const C=n(t),y=o(t);if(null!==t.dom.getParent(t.selection.getNode(),"a[href]"))return;const m=t.selection.getRng().cloneRange();if(m.startOffset<5){if(h=m.endContainer.previousSibling,!h){if(!m.endContainer.firstChild||!m.endContainer.firstChild.nextSibling)return;h=m.endContainer.firstChild.nextSibling}if(p=h.length,f(m,h,p),g(m,h,p),m.endOffset<5)return;l=m.endOffset,d=h}else{if(d=m.endContainer,!a(d)&&d.firstChild){for(;!a(d)&&d.firstChild;)d=d.firstChild;a(d)&&(f(m,d,0),g(m,d,d.nodeValue.length))}l=1===m.endOffset?2:m.endOffset-1-e}const w=l;do{f(m,d,l>=2?l-2:0),g(m,d,l>=1?l-1:0),l-=1,k=m.toString()}while(!s(k)&&l-2>=0);var A;s(m.toString())?(f(m,d,l),g(m,d,w),l+=1):0===m.startOffset?(f(m,d,0),g(m,d,w)):(f(m,d,l),g(m,d,w)),u=m.toString(),A=u.charAt(u.length-1),/[?!,.;:]/.test(A)&&g(m,d,w-1),u=m.toString().trim();const S=u.match(C),_=r(t);if(S){let e=S[0];O="www.",(v=e).length>=O.length&&v.substr(0,0+O.length)===O?e=_+"://"+e:((t,e)=>-1!==t.indexOf("@"))(e)&&!(t=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(t))(e)&&(e="mailto:"+e),c=t.selection.getBookmark(),t.selection.setRng(m),t.getDoc().execCommand("createlink",!1,e),i(y)&&t.dom.setAttrib(t.selection.getNode(),"target",y),t.selection.moveToBookmark(c),t.nodeChanged()}var v,O};t.add("autolink",(t=>{(t=>{const e=t.options.register;e("autolink_pattern",{processor:"regexp",default:new RegExp("^"+/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-+~=.,%()\/\w]*[-+~=%()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g.source+"$","i")}),e("link_default_target",{processor:"string"}),e("link_default_protocol",{processor:"string",default:"https"})})(t),(t=>{t.on("keydown",(e=>{if(13===e.keyCode)return(t=>c(t,-1))(t)})),t.on("keypress",(e=>{if(41===e.keyCode||93===e.keyCode||125===e.keyCode)return(t=>c(t,-1))(t)})),t.on("keyup",(e=>{if(32===e.keyCode)return(t=>c(t,0))(t)}))})(t)}))}();
\ No newline at end of file
/**
* TinyMCE version 6.0.1 (2022-03-23)
*/
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env");const o=e=>t=>t.options.get(e),n=o("min_height"),s=o("max_height"),i=o("autoresize_overflow_padding"),r=o("autoresize_bottom_margin"),l=(e,t)=>{const o=e.getBody();o&&(o.style.overflowY=t?"":"hidden",t||(o.scrollTop=0))},a=(e,t,o,n)=>{const s=parseInt(e.getStyle(t,o,n),10);return isNaN(s)?0:s},g=(e,o,i)=>{var c;const u=e.dom,d=e.getDoc();if(!d)return;if((e=>e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen())(e))return void l(e,!0);const f=d.documentElement,m=r(e),p=null!==(c=n(e))&&void 0!==c?c:e.getElement().offsetHeight;let h=p;const y=a(u,f,"margin-top",!0),v=a(u,f,"margin-bottom",!0);let C=f.offsetHeight+y+v+m;C<0&&(C=0);const S=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight;C+S>p&&(h=C+S);const z=s(e);if(z&&h>z?(h=z,l(e,!0)):l(e,!1),h!==o.get()){const n=h-o.get();if(u.setStyle(e.getContainer(),"height",h+"px"),o.set(h),(e=>{e.dispatch("ResizeEditor")})(e),t.browser.isSafari()&&(t.os.isMacOS()||t.os.isiOS())){const t=e.getWin();t.scrollTo(t.pageXOffset,t.pageYOffset)}e.hasFocus()&&(e=>{if("setcontent"===(null==e?void 0:e.type.toLowerCase())){const t=e;return!0===t.selection||!0===t.paste}return!1})(i)&&e.selection.scrollIntoView(),(t.browser.isSafari()||t.browser.isChromium())&&n<0&&g(e,o,i)}};e.add("autoresize",(e=>{if((e=>{const t=e.options.register;t("autoresize_overflow_padding",{processor:"number",default:1}),t("autoresize_bottom_margin",{processor:"number",default:50})})(e),e.options.isSet("resize")||e.options.set("resize",!1),!e.inline){const t=(e=>{let t=0;return{get:()=>t,set:e=>{t=e}}})();((e,t)=>{e.addCommand("mceAutoResize",(()=>{g(e,t)}))})(e,t),((e,t)=>{e.on("init",(()=>{const t=i(e),o=e.dom;o.setStyles(e.getDoc().documentElement,{height:"auto"}),o.setStyles(e.getBody(),{paddingLeft:t,paddingRight:t,"min-height":0})})),e.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",(o=>{g(e,t,o)}))})(e,t)}}))}();
\ No newline at end of file
/**
* TinyMCE version 6.0.1 (2022-03-23)
*/
!function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=("string",t=>"string"===(t=>{const e=typeof t;return null===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(r=o=t,(a=String).prototype.isPrototypeOf(r)||(null===(s=o.constructor)||void 0===s?void 0:s.name)===a.name)?"string":e;var r,o,a,s})(t));const r=(void 0,t=>undefined===t);var o=tinymce.util.Tools.resolve("tinymce.util.Delay"),a=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),s=tinymce.util.Tools.resolve("tinymce.util.Tools");const n=t=>{const e=/^(\d+)([ms]?)$/.exec(t);return(e[2]?{s:1e3,m:6e4}[e[2]]:1)*parseInt(t,10)},i=t=>e=>e.options.get(t),u=i("autosave_ask_before_unload"),l=i("autosave_restore_when_empty"),c=i("autosave_interval"),m=i("autosave_retention"),d=t=>{const e=document.location;return t.options.get("autosave_prefix").replace(/{path}/g,e.pathname).replace(/{query}/g,e.search).replace(/{hash}/g,e.hash).replace(/{id}/g,t.id)},f=(t,e)=>{if(r(e))return t.dom.isEmpty(t.getBody());{const r=s.trim(e);if(""===r)return!0;{const e=(new DOMParser).parseFromString(r,"text/html");return t.dom.isEmpty(e)}}},v=t=>{const e=parseInt(a.getItem(d(t)+"time"),10)||0;return!((new Date).getTime()-e>m(t)&&(p(t,!1),1))},p=(t,e)=>{const r=d(t);a.removeItem(r+"draft"),a.removeItem(r+"time"),!1!==e&&(t=>{t.dispatch("RemoveDraft")})(t)},g=t=>{const e=d(t);!f(t)&&t.isDirty()&&(a.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),a.setItem(e+"time",(new Date).getTime().toString()),(t=>{t.dispatch("StoreDraft")})(t))},y=t=>{const e=d(t);v(t)&&(t.setContent(a.getItem(e+"draft"),{format:"raw"}),(t=>{t.dispatch("RestoreDraft")})(t))},D=t=>{t.undoManager.transact((()=>{y(t),p(t)})),t.focus()};var h=tinymce.util.Tools.resolve("tinymce.EditorManager");const _=t=>e=>{e.setEnabled(v(t));const r=()=>e.setEnabled(v(t));return t.on("StoreDraft RestoreDraft RemoveDraft",r),()=>t.off("StoreDraft RestoreDraft RemoveDraft",r)};t.add("autosave",(t=>((t=>{const r=t.options.register,o=t=>{const r=e(t);return r?{value:n(t),valid:r}:{valid:!1,message:"Must be a string."}};r("autosave_ask_before_unload",{processor:"boolean",default:!0}),r("autosave_prefix",{processor:"string",default:"tinymce-autosave-{path}{query}{hash}-{id}-"}),r("autosave_restore_when_empty",{processor:"boolean",default:!1}),r("autosave_interval",{processor:o,default:"30s"}),r("autosave_retention",{processor:o,default:"20m"})})(t),(t=>{t.editorManager.on("BeforeUnload",(t=>{let e;s.each(h.get(),(t=>{t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&u(t)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))})),e&&(t.preventDefault(),t.returnValue=e)}))})(t),(t=>{(t=>{const e=c(t);o.setEditorInterval(t,(()=>{g(t)}),e)})(t),t.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:()=>{D(t)},onSetup:_(t)}),t.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:()=>{D(t)},onSetup:_(t)})})(t),t.on("init",(()=>{l(t)&&t.dom.isEmpty(t.getBody())&&y(t)})),(t=>({hasDraft:()=>v(t),storeDraft:()=>g(t),restoreDraft:()=>y(t),removeDraft:e=>p(t,e),isEmpty:e=>f(t,e)}))(t))))}();
\ No newline at end of file
/**
* TinyMCE version 6.0.1 (2022-03-23)
*/
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("code",(e=>((e=>{e.addCommand("mceCodeEditor",(()=>{(e=>{const o=(e=>e.getContent({source_view:!0}))(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:o},onSubmit:o=>{((e,o)=>{e.focus(),e.undoManager.transact((()=>{e.setContent(o)})),e.selection.setCursorLocation(),e.nodeChanged()})(e,o.getData().code),o.close()}})})(e)}))})(e),(e=>{const o=()=>e.execCommand("mceCodeEditor");e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:o}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:o})})(e),{})))}();
\ No newline at end of file
/**
* TinyMCE version 6.0.1 (2022-03-23)
*/
!function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=t=>e=>typeof e===t,o=t=>"string"===(t=>{const e=typeof t;return null===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(o=r=t,(n=String).prototype.isPrototypeOf(o)||(null===(i=r.constructor)||void 0===i?void 0:i.name)===n.name)?"string":e;var o,r,n,i})(t),r=e("boolean"),n=t=>!(t=>null==t)(t),i=e("function"),s=e("number"),l=(!1,()=>false);class a{constructor(t,e){this.tag=t,this.value=e}static some(t){return new a(!0,t)}static none(){return a.singletonNone}fold(t,e){return this.tag?e(this.value):t()}isSome(){return this.tag}isNone(){return!this.tag}map(t){return this.tag?a.some(t(this.value)):a.none()}bind(t){return this.tag?t(this.value):a.none()}exists(t){return this.tag&&t(this.value)}forall(t){return!this.tag||t(this.value)}filter(t){return!this.tag||t(this.value)?this:a.none()}getOr(t){return this.tag?this.value:t}or(t){return this.tag?this:t}getOrThunk(t){return this.tag?this.value:t()}orThunk(t){return this.tag?this:t()}getOrDie(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")}static from(t){return n(t)?a.some(t):a.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(t){this.tag&&t(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}a.singletonNone=new a(!1);const u=(t,e)=>{for(let o=0,r=t.length;o<r;o++)e(t[o],o)},c=t=>{if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},d=c,h=(t,e)=>{const o=t.dom;if(1!==o.nodeType)return!1;{const t=o;if(void 0!==t.matches)return t.matches(e);if(void 0!==t.msMatchesSelector)return t.msMatchesSelector(e);if(void 0!==t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(void 0!==t.mozMatchesSelector)return t.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")}};"undefined"!=typeof window?window:Function("return this;")();const m=t=>e=>(t=>t.dom.nodeType)(e)===t,g=m(1),f=m(3),v=m(9),p=m(11),y=(t,e)=>{t.dom.removeAttribute(e)},w=i(Element.prototype.attachShadow)&&i(Node.prototype.getRootNode)?t=>d(t.dom.getRootNode()):t=>v(t)?t:d(t.dom.ownerDocument),N=t=>d(t.dom.host),b=t=>{const e=f(t)?t.dom.parentNode:t.dom;if(null==e||null===e.ownerDocument)return!1;const o=e.ownerDocument;return(t=>{const e=w(t);return p(o=e)&&n(o.dom.host)?a.some(e):a.none();var o})(d(e)).fold((()=>o.body.contains(e)),(r=b,i=N,t=>r(i(t))));var r,i},S=t=>"rtl"===((t,e)=>{const o=t.dom,r=window.getComputedStyle(o).getPropertyValue(e);return""!==r||b(t)?r:((t,e)=>(t=>void 0!==t.style&&i(t.style.getPropertyValue))(t)?t.style.getPropertyValue(e):"")(o,e)})(t,"direction")?"rtl":"ltr",A=(t,e)=>((t,o)=>((t,e)=>{const o=[];for(let r=0,n=t.length;r<n;r++){const n=t[r];e(n,r)&&o.push(n)}return o})(((t,e)=>{const o=t.length,r=new Array(o);for(let n=0;n<o;n++){const o=t[n];r[n]=e(o,n)}return r})(t.dom.childNodes,d),(t=>h(t,e))))(t),T=("li",t=>g(t)&&"li"===t.dom.nodeName.toLowerCase());const C=(t,e)=>{const n=t.selection.getSelectedBlocks();n.length>0&&(u(n,(t=>{const n=d(t),c=T(n),m=((t,e)=>{return(e?(o=t,r="ol,ul",((t,e,o)=>{let n=t.dom;const s=i(o)?o:l;for(;n.parentNode;){n=n.parentNode;const t=d(n);if(h(t,r))return a.some(t);if(s(t))break}return a.none()})(o,0,n)):a.some(t)).getOr(t);var o,r,n})(n,c);var f;(f=m,(t=>a.from(t.dom.parentNode).map(d))(f).filter(g)).each((t=>{if(S(t)!==e?((t,e,n)=>{((t,e,n)=>{if(!(o(n)||r(n)||s(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")})(t.dom,e,n)})(m,"dir",e):S(m)!==e&&y(m,"dir"),c){const t=A(m,"li[dir]");u(t,(t=>y(t,"dir")))}}))})),t.nodeChanged())},D=(t,e)=>o=>{const r=t=>{const r=d(t.element);o.setActive(S(r)===e)};return t.on("NodeChange",r),()=>t.off("NodeChange",r)};t.add("directionality",(t=>{(t=>{t.addCommand("mceDirectionLTR",(()=>{C(t,"ltr")})),t.addCommand("mceDirectionRTL",(()=>{C(t,"rtl")}))})(t),(t=>{t.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:()=>t.execCommand("mceDirectionLTR"),onSetup:D(t,"ltr")}),t.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:()=>t.execCommand("mceDirectionRTL"),onSetup:D(t,"rtl")})})(t)}))}();
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论