@ -1,17 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="CompilerConfiguration">
|
|
||||||
<annotationProcessing>
|
|
||||||
<profile name="Maven default annotation processors profile" enabled="true">
|
|
||||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
|
||||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
|
||||||
<outputRelativeToContentRoot value="true" />
|
|
||||||
</profile>
|
|
||||||
</annotationProcessing>
|
|
||||||
</component>
|
|
||||||
<component name="JavacSettings">
|
|
||||||
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
|
|
||||||
<module name="jianshenfanggl" options="-parameters" />
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/jianshenfanggl.iml" filepath="$PROJECT_DIR$/jianshenfanggl.iml" />
|
|
||||||
=======
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/jianshenfanggl.iml" filepath="$PROJECT_DIR$/.idea/jianshenfanggl.iml" />
|
|
||||||
>>>>>>> develop
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,20 +0,0 @@
|
|||||||
|
|
||||||
// 定义该文件所在的包路径
|
|
||||||
package com.annotation;
|
|
||||||
|
|
||||||
// 导入注解相关的包
|
|
||||||
import java.lang.annotation.*;
|
|
||||||
|
|
||||||
// 忽略Token验证的注解
|
|
||||||
// 被此注解标记的方法将跳过Token验证检查
|
|
||||||
@Target(ElementType.METHOD)
|
|
||||||
// 指定该注解只能用于方法上
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
// 指定该注解在运行时保留,可以通过反射读取
|
|
||||||
@Documented
|
|
||||||
// 表示该注解应该被包含在JavaDoc中
|
|
||||||
public @interface IgnoreAuth {
|
|
||||||
// 这是一个标记注解,不包含任何属性
|
|
||||||
// 仅用于标识需要跳过Token验证的方法
|
|
||||||
}
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
|||||||
package com.dao;
|
|
||||||
|
|
||||||
import com.entity.JianshenkechengCollectionEntity;
|
|
||||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
|
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import com.entity.view.JianshenkechengCollectionView;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 课程收藏 Dao 接口
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
*/
|
|
||||||
public interface JianshenkechengCollectionDao extends BaseMapper<JianshenkechengCollectionEntity> {
|
|
||||||
|
|
||||||
List<JianshenkechengCollectionView> selectListView(Pagination page,@Param("params")Map<String,Object> params);
|
|
||||||
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
package com.dao;
|
|
||||||
|
|
||||||
import com.entity.JianshenkechengLiuyanEntity;
|
|
||||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
|
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import com.entity.view.JianshenkechengLiuyanView;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 课程留言 Dao 接口
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
*/
|
|
||||||
public interface JianshenkechengLiuyanDao extends BaseMapper<JianshenkechengLiuyanEntity> {
|
|
||||||
|
|
||||||
List<JianshenkechengLiuyanView> selectListView(Pagination page,@Param("params")Map<String,Object> params);
|
|
||||||
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
package com.dao;
|
|
||||||
|
|
||||||
import com.entity.NewsEntity;
|
|
||||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
|
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import com.entity.view.NewsView;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 健身资讯 Dao 接口
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
*/
|
|
||||||
public interface NewsDao extends BaseMapper<NewsEntity> {
|
|
||||||
|
|
||||||
List<NewsView> selectListView(Pagination page,@Param("params")Map<String,Object> params);
|
|
||||||
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
package com.service;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.service.IService;
|
|
||||||
import com.utils.PageUtils;
|
|
||||||
import com.entity.ForumEntity;
|
|
||||||
import java.util.Map;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import org.springframework.lang.Nullable;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 健身论坛 服务类
|
|
||||||
*/
|
|
||||||
public interface ForumService extends IService<ForumEntity> {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param params 查询参数
|
|
||||||
* @return 带分页的查询出来的数据
|
|
||||||
*/
|
|
||||||
PageUtils queryPage(Map<String, Object> params);
|
|
||||||
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
package com.service;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.service.IService;
|
|
||||||
import com.utils.PageUtils;
|
|
||||||
import com.entity.JiaolianYuyueEntity;
|
|
||||||
import java.util.Map;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import org.springframework.lang.Nullable;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 教练预约申请 服务类
|
|
||||||
*/
|
|
||||||
public interface JiaolianYuyueService extends IService<JiaolianYuyueEntity> {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param params 查询参数
|
|
||||||
* @return 带分页的查询出来的数据
|
|
||||||
*/
|
|
||||||
PageUtils queryPage(Map<String, Object> params);
|
|
||||||
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
package com.service;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.service.IService;
|
|
||||||
import com.utils.PageUtils;
|
|
||||||
import com.entity.SingleSeachEntity;
|
|
||||||
import java.util.Map;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import org.springframework.lang.Nullable;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 单页数据 服务类
|
|
||||||
*/
|
|
||||||
public interface SingleSeachService extends IService<SingleSeachEntity> {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param params 查询参数
|
|
||||||
* @return 带分页的查询出来的数据
|
|
||||||
*/
|
|
||||||
PageUtils queryPage(Map<String, Object> params);
|
|
||||||
|
|
||||||
}
|
|
@ -1,109 +0,0 @@
|
|||||||
package com.utils;
|
|
||||||
|
|
||||||
import org.apache.commons.io.FileUtils;
|
|
||||||
import org.apache.poi.hssf.usermodel.HSSFCell;
|
|
||||||
import org.apache.poi.hssf.usermodel.HSSFRow;
|
|
||||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
||||||
import org.apache.poi.ss.usermodel.Cell;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileOutputStream;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 文件导入到处
|
|
||||||
*/
|
|
||||||
public class PoiUtil {
|
|
||||||
/**
|
|
||||||
* 导入
|
|
||||||
*
|
|
||||||
* @param url
|
|
||||||
* @return
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public static List<List<String>> poiImport(String url) throws Exception {
|
|
||||||
List<List<String>> list = new ArrayList<>();
|
|
||||||
// 创建Excel 读取文件内容
|
|
||||||
HSSFWorkbook workbook = new HSSFWorkbook(FileUtils.openInputStream(new File(url)));
|
|
||||||
/**
|
|
||||||
* 第一种方式读取Sheet页
|
|
||||||
*/
|
|
||||||
// HSSFSheet sheet = workbook.getSheet("Sheet0");
|
|
||||||
/**
|
|
||||||
* 第二种方式读取Sheet页
|
|
||||||
*/
|
|
||||||
HSSFSheet sheet = workbook.getSheetAt(0);//获取工作表
|
|
||||||
for (int i = 0; i < sheet.getLastRowNum()+1; i++) {
|
|
||||||
HSSFRow row = sheet.getRow(i);//获取行
|
|
||||||
List<String> rowlist = new ArrayList<>();//行数据
|
|
||||||
for (int j = 0; j < row.getLastCellNum(); j++) {
|
|
||||||
HSSFCell cell = row.getCell(j);
|
|
||||||
cell.setCellType(Cell.CELL_TYPE_STRING);
|
|
||||||
String value = cell.getStringCellValue();
|
|
||||||
rowlist.add(value);//行中数据添加到行中
|
|
||||||
}
|
|
||||||
list.add(rowlist);//将行数据添加到list中
|
|
||||||
}
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 导出
|
|
||||||
public static void poiExport(List<List<String>> list, String url) throws Exception {
|
|
||||||
//创建Excel工作薄
|
|
||||||
HSSFWorkbook workbook = new HSSFWorkbook();
|
|
||||||
//创建一个工作表shheet
|
|
||||||
HSSFSheet sheet = workbook.createSheet();
|
|
||||||
for (int i = 0; i < list.size(); i++) {
|
|
||||||
HSSFRow row = sheet.createRow(i);
|
|
||||||
List<String> dataList = list.get(i);
|
|
||||||
for (int j = 0; j < dataList.size(); j++) {
|
|
||||||
HSSFCell cell = row.createCell(j);
|
|
||||||
cell.setCellValue(dataList.get(j));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
FileOutputStream stream = FileUtils.openOutputStream(new File(url));
|
|
||||||
workbook.write(stream);
|
|
||||||
stream.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
try {
|
|
||||||
//导入
|
|
||||||
List<List<String>> lists = PoiUtil.poiImport("C:/Users/Administrator/Desktop/工作1.xls");
|
|
||||||
System.out.println();
|
|
||||||
|
|
||||||
|
|
||||||
//导出
|
|
||||||
|
|
||||||
PoiUtil.poiExport(lists, "C:/Users/Administrator/Desktop/工作1.xls");
|
|
||||||
|
|
||||||
//
|
|
||||||
// List<List<String>> list = new ArrayList<>();
|
|
||||||
// ArrayList<String> dataList = new ArrayList<>();
|
|
||||||
// dataList.add("标题1");
|
|
||||||
// dataList.add("标题2");
|
|
||||||
// dataList.add("标题3");
|
|
||||||
// list.add(dataList);
|
|
||||||
// // 追加数据
|
|
||||||
// for (int i = 1; i < 10; i++) {// 这里的int 起始是1 也就是第二行开始
|
|
||||||
// ArrayList<String> dataList111 = new ArrayList<>();
|
|
||||||
// dataList111.add("内容" + i);
|
|
||||||
// dataList111.add("内容1111111121222222222333333333377777777411111111477777777" + i);
|
|
||||||
// dataList111.add("内容" + i);
|
|
||||||
// list.add(dataList111);
|
|
||||||
// }
|
|
||||||
// PoiUtil.poiExport(list, "C:/Users/Administrator/Desktop/工作1.xls");
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
cnpm run build
|
|
@ -1,43 +0,0 @@
|
|||||||
<template>
|
|
||||||
<svg :class="svgClass" aria-hidden="true" v-on="$listeners">
|
|
||||||
<use :xlink:href="iconName" />
|
|
||||||
</svg>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'SvgIcon',
|
|
||||||
props: {
|
|
||||||
iconClass: {
|
|
||||||
type: String,
|
|
||||||
required: true
|
|
||||||
},
|
|
||||||
className: {
|
|
||||||
type: String,
|
|
||||||
default: ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
iconName() {
|
|
||||||
return `#icon-${this.iconClass}`
|
|
||||||
},
|
|
||||||
svgClass() {
|
|
||||||
if (this.className) {
|
|
||||||
return 'svg-icon ' + this.className
|
|
||||||
} else {
|
|
||||||
return 'svg-icon'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.svg-icon {
|
|
||||||
width: 1em;
|
|
||||||
height: 1em;
|
|
||||||
vertical-align: -0.15em;
|
|
||||||
fill: currentColor;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,109 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-breadcrumb class="app-breadcrumb" separator="|" style="height:50px;backgroundColor:var(--publicMainColor);borderRadius:0px;padding:0px 20px 0px 20px;boxShadow:0px 0px 0px #f903d4;borderWidth:3px;borderStyle:dashed ;borderColor:rgba(255, 255, 255, 1);">
|
|
||||||
<transition-group name="breadcrumb" class="box" :style="1==1?'justifyContent:flex-start;':1==2?'justifyContent:center;':'justifyContent:flex-end;'">
|
|
||||||
<el-breadcrumb-item v-for="(item,index) in levelList" :key="item.path">
|
|
||||||
<span v-if="item.redirect==='noRedirect'||index==levelList.length-1" class="no-redirect" style="color:rgba(41, 41, 41, 1)">{{ item.name }}</span>
|
|
||||||
<a v-else @click.prevent="handleLink(item)">{{ item.name }}</a>
|
|
||||||
</el-breadcrumb-item>
|
|
||||||
</transition-group>
|
|
||||||
</el-breadcrumb>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import pathToRegexp from 'path-to-regexp'
|
|
||||||
import { generateTitle } from '@/utils/i18n'
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
levelList: null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
$route() {
|
|
||||||
this.getBreadcrumb()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getBreadcrumb()
|
|
||||||
this.breadcrumbStyleChange()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
generateTitle,
|
|
||||||
getBreadcrumb() {
|
|
||||||
// only show routes with meta.title
|
|
||||||
let route = this.$route
|
|
||||||
let matched = route.matched.filter(item => item.meta)
|
|
||||||
const first = matched[0]
|
|
||||||
matched = [{ path: '/index' }].concat(matched)
|
|
||||||
|
|
||||||
this.levelList = matched.filter(item => item.meta)
|
|
||||||
},
|
|
||||||
isDashboard(route) {
|
|
||||||
const name = route && route.name
|
|
||||||
if (!name) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return name.trim().toLocaleLowerCase() === 'Index'.toLocaleLowerCase()
|
|
||||||
},
|
|
||||||
pathCompile(path) {
|
|
||||||
// To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
|
|
||||||
const { params } = this.$route
|
|
||||||
var toPath = pathToRegexp.compile(path)
|
|
||||||
return toPath(params)
|
|
||||||
},
|
|
||||||
handleLink(item) {
|
|
||||||
const { redirect, path } = item
|
|
||||||
if (redirect) {
|
|
||||||
this.$router.push(redirect)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.$router.push(path)
|
|
||||||
},
|
|
||||||
breadcrumbStyleChange(val) {
|
|
||||||
this.$nextTick(()=>{
|
|
||||||
document.querySelectorAll('.app-breadcrumb .el-breadcrumb__separator').forEach(el=>{
|
|
||||||
el.innerText = "|"
|
|
||||||
el.style.color = "rgba(255, 255, 255, 1)"
|
|
||||||
})
|
|
||||||
document.querySelectorAll('.app-breadcrumb .el-breadcrumb__inner a').forEach(el=>{
|
|
||||||
el.style.color = "#303133"
|
|
||||||
})
|
|
||||||
document.querySelectorAll('.app-breadcrumb .el-breadcrumb__inner .no-redirect').forEach(el=>{
|
|
||||||
el.style.color = "rgba(41, 41, 41, 1)"
|
|
||||||
})
|
|
||||||
|
|
||||||
let str = "2"
|
|
||||||
if(2 == str) {
|
|
||||||
let headHeight = "60px"
|
|
||||||
headHeight = parseInt(headHeight) + 10 + 'px'
|
|
||||||
document.querySelectorAll('.app-breadcrumb').forEach(el=>{
|
|
||||||
el.style.marginTop = headHeight
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.app-breadcrumb {
|
|
||||||
display: block;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 50px;
|
|
||||||
|
|
||||||
.box {
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
justify-content: flex-start;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-redirect {
|
|
||||||
color: #97a8be;
|
|
||||||
cursor: text;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,501 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-aside class="index-aside" width="180px">
|
|
||||||
<div class="index-aside-inner menulist">
|
|
||||||
<div v-for="item in menuList" :key="item.roleName" v-if="role==item.roleName" class="menulist-item">
|
|
||||||
<div class="menulistImg" v-if="false && 2 == 2">
|
|
||||||
<el-image :style='{"padding":"0","boxShadow":"0 0 6px rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","borderRadius":"0","borderWidth":"0","width":"100%","borderStyle":"solid","height":"auto"}' v-if="'http://codegen.caihongy.cn/20201021/cc7d45d9c8164b58b18351764eba9be1.jpg'" src="http://codegen.caihongy.cn/20201021/cc7d45d9c8164b58b18351764eba9be1.jpg" fit="cover" />
|
|
||||||
</div>
|
|
||||||
<el-menu :mode="2 == 1? 'horizontal':'vertical'" :unique-opened="true" class="el-menu-demo" default-active="0">
|
|
||||||
<el-menu-item index="0" @click="menuHandler('')"><i v-if="false" class="el-icon-menu el-icon-s-home" />首页</el-menu-item>
|
|
||||||
<el-submenu :index="1+''">
|
|
||||||
<template slot="title">
|
|
||||||
<i v-if="false" class="el-icon-menu el-icon-user-solid" />
|
|
||||||
<span>个人中心</span>
|
|
||||||
</template>
|
|
||||||
<el-menu-item :index="1-1" @click="menuHandler('updatePassword')">修改密码</el-menu-item>
|
|
||||||
<el-menu-item :index="1-2" @click="menuHandler('center')">个人信息</el-menu-item>
|
|
||||||
</el-submenu>
|
|
||||||
<el-submenu v-for=" (menu,index) in item.backMenu" :key="menu.menu" :index="index+2+''">
|
|
||||||
<template slot="title">
|
|
||||||
<i v-if="false" class="el-icon-menu" :class="icons[index]" />
|
|
||||||
<span>{{ menu.menu }}</span>
|
|
||||||
</template>
|
|
||||||
<el-menu-item v-for=" (child,sort) in menu.child" :key="sort" :index="(index+2)+'-'+sort" @click="menuHandler(child.tableName)">{{ child.menu }}</el-menu-item>
|
|
||||||
</el-submenu>
|
|
||||||
</el-menu>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</el-aside>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import menu from '@/utils/menu'
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
menuList: [],
|
|
||||||
dynamicMenuRoutes: [],
|
|
||||||
role: '',
|
|
||||||
icons: [
|
|
||||||
'el-icon-s-cooperation',
|
|
||||||
'el-icon-s-order',
|
|
||||||
'el-icon-s-platform',
|
|
||||||
'el-icon-s-fold',
|
|
||||||
'el-icon-s-unfold',
|
|
||||||
'el-icon-s-operation',
|
|
||||||
'el-icon-s-promotion',
|
|
||||||
'el-icon-s-release',
|
|
||||||
'el-icon-s-ticket',
|
|
||||||
'el-icon-s-management',
|
|
||||||
'el-icon-s-open',
|
|
||||||
'el-icon-s-shop',
|
|
||||||
'el-icon-s-marketing',
|
|
||||||
'el-icon-s-flag',
|
|
||||||
'el-icon-s-comment',
|
|
||||||
'el-icon-s-finance',
|
|
||||||
'el-icon-s-claim',
|
|
||||||
'el-icon-s-custom',
|
|
||||||
'el-icon-s-opportunity',
|
|
||||||
'el-icon-s-data',
|
|
||||||
'el-icon-s-check',
|
|
||||||
'el-icon-s-grid',
|
|
||||||
'el-icon-menu',
|
|
||||||
'el-icon-chat-dot-square',
|
|
||||||
'el-icon-message',
|
|
||||||
'el-icon-postcard',
|
|
||||||
'el-icon-position',
|
|
||||||
'el-icon-microphone',
|
|
||||||
'el-icon-close-notification',
|
|
||||||
'el-icon-bangzhu',
|
|
||||||
'el-icon-time',
|
|
||||||
'el-icon-odometer',
|
|
||||||
'el-icon-crop',
|
|
||||||
'el-icon-aim',
|
|
||||||
'el-icon-switch-button',
|
|
||||||
'el-icon-full-screen',
|
|
||||||
'el-icon-copy-document',
|
|
||||||
'el-icon-mic',
|
|
||||||
'el-icon-stopwatch',
|
|
||||||
],
|
|
||||||
menulistStyle: 'vertical',
|
|
||||||
menulistBorderBottom: {},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
const menus = menu.list()
|
|
||||||
if(menus) {
|
|
||||||
this.menuList = menus
|
|
||||||
} else {
|
|
||||||
let params = {
|
|
||||||
page: 1,
|
|
||||||
limit: 1,
|
|
||||||
sort: 'id',
|
|
||||||
}
|
|
||||||
this.$http({
|
|
||||||
url: "menu/list",
|
|
||||||
method: "get",
|
|
||||||
params: params
|
|
||||||
}).then(({
|
|
||||||
data
|
|
||||||
}) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.menuList = JSON.parse(data.data.list[0].menujson);
|
|
||||||
this.$storage.set("menus", this.menuList);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.role = this.$storage.get('role')
|
|
||||||
},
|
|
||||||
created(){
|
|
||||||
setTimeout(()=>{
|
|
||||||
this.menulistStyleChange()
|
|
||||||
},10)
|
|
||||||
this.icons.sort(()=>{
|
|
||||||
return (0.5-Math.random())
|
|
||||||
})
|
|
||||||
this.lineBorder()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
lineBorder() {
|
|
||||||
let style = 'vertical'
|
|
||||||
let w = '1px'
|
|
||||||
let s = 'solid'
|
|
||||||
let c = '#FFFFFF'
|
|
||||||
if(style == 'vertical') {
|
|
||||||
this.menulistBorderBottom = {
|
|
||||||
borderBottomWidth: w,
|
|
||||||
borderBottomStyle: s,
|
|
||||||
borderBottomColor: c
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.menulistBorderBottom = {
|
|
||||||
borderRightWidth: w,
|
|
||||||
borderRightStyle: s,
|
|
||||||
borderRightColor: c
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
menuHandler(name) {
|
|
||||||
let router = this.$router
|
|
||||||
name = '/'+name
|
|
||||||
router.push(name)
|
|
||||||
},
|
|
||||||
// 菜单
|
|
||||||
setMenulistHoverColor(){
|
|
||||||
let that = this
|
|
||||||
return;
|
|
||||||
this.$nextTick(()=>{
|
|
||||||
document.querySelectorAll('.menulist .el-menu-item').forEach(el=>{
|
|
||||||
el.addEventListener("mouseenter", e => {
|
|
||||||
e.stopPropagation()
|
|
||||||
el.style.backgroundColor = "rgba(46, 118, 149, 1)"
|
|
||||||
})
|
|
||||||
el.addEventListener("mouseleave", e => {
|
|
||||||
e.stopPropagation()
|
|
||||||
// el.style.backgroundColor = "linear-gradient(135deg, var(--publicMainColor) 0%, var(--publicMainColor) 70%, var(--publicSubColor) 70%, var(--publicSubColor) 100%)"
|
|
||||||
el.style.background = "none"
|
|
||||||
})
|
|
||||||
el.addEventListener("focus", e => {
|
|
||||||
e.stopPropagation()
|
|
||||||
el.style.backgroundColor = "rgba(46, 118, 149, 1)"
|
|
||||||
})
|
|
||||||
})
|
|
||||||
document.querySelectorAll('.menulist .el-submenu__title').forEach(el=>{
|
|
||||||
el.addEventListener("mouseenter", e => {
|
|
||||||
e.stopPropagation()
|
|
||||||
el.style.backgroundColor = "rgba(46, 118, 149, 1)"
|
|
||||||
})
|
|
||||||
el.addEventListener("mouseleave", e => {
|
|
||||||
e.stopPropagation()
|
|
||||||
// el.style.backgroundColor = "linear-gradient(135deg, var(--publicMainColor) 0%, var(--publicMainColor) 70%, var(--publicSubColor) 70%, var(--publicSubColor) 100%)"
|
|
||||||
el.style.background = "none"
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
setMenulistIconColor() {
|
|
||||||
this.$nextTick(()=>{
|
|
||||||
document.querySelectorAll('.menulist .el-submenu__title .el-submenu__icon-arrow').forEach(el=>{
|
|
||||||
el.style.color = "rgba(255, 255, 255, 1)"
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
menulistStyleChange() {
|
|
||||||
this.setMenulistIconColor()
|
|
||||||
this.setMenulistHoverColor()
|
|
||||||
this.setMenulistStyleHeightChange()
|
|
||||||
let str = "2"
|
|
||||||
if(1 == str) {
|
|
||||||
this.$nextTick(()=>{
|
|
||||||
document.querySelectorAll('.el-container .el-container').forEach(el=>{
|
|
||||||
el.style.display = "block"
|
|
||||||
el.style.paddingTop = "60px" // header 高度
|
|
||||||
})
|
|
||||||
document.querySelectorAll('.el-aside').forEach(el=>{
|
|
||||||
el.style.width = "100%"
|
|
||||||
el.style.height = "100%"
|
|
||||||
el.style.paddingTop = '0'
|
|
||||||
})
|
|
||||||
document.querySelectorAll('.index-aside .index-aside-inner').forEach(el=>{
|
|
||||||
el.style.paddingTop = '0'
|
|
||||||
el.style.width = "100%"
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if(2 === str) {
|
|
||||||
this.$nextTick(()=>{
|
|
||||||
document.querySelectorAll('.index-aside .index-aside-inner').forEach(el=>{
|
|
||||||
el.style.paddingTop = "60px"
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
setMenulistStyleHeightChange() {
|
|
||||||
return;
|
|
||||||
this.$nextTick(()=>{
|
|
||||||
document.querySelectorAll('.menulist-item>.el-menu--horizontal>.el-menu-item').forEach(el=>{
|
|
||||||
el.style.height = "60px"
|
|
||||||
el.style.lineHeight = "60px"
|
|
||||||
})
|
|
||||||
document.querySelectorAll('.menulist-item>.el-menu--horizontal>.el-submenu>.el-submenu__title').forEach(el=>{
|
|
||||||
el.style.height = "60px"
|
|
||||||
el.style.lineHeight = "60px"
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.el-container {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.index-aside {
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
.menulistImg {
|
|
||||||
font-size: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
.el-image {
|
|
||||||
margin: 0 auto;
|
|
||||||
width: 100px;
|
|
||||||
height: 100px;
|
|
||||||
border-radius: 100%;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.index-aside-inner {
|
|
||||||
height: 100%;
|
|
||||||
margin-right: -17px;
|
|
||||||
margin-bottom: -17px;
|
|
||||||
overflow: scroll;
|
|
||||||
overflow-x: hidden !important;
|
|
||||||
padding-top: 60px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
&:focus {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
& /deep/ .el-menu {
|
|
||||||
border: 0;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.index-aside .index-aside-inner.menulist {
|
|
||||||
height: 100% !important;
|
|
||||||
}
|
|
||||||
.menulist-item {
|
|
||||||
width: 180px;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
border-radius: 0;
|
|
||||||
border-width: 0 !important;
|
|
||||||
border-style: solid !important;
|
|
||||||
border-color: rgba(0,0,0,.3) !important;
|
|
||||||
background: linear-gradient(135deg, var(--publicMainColor) 0%, var(--publicMainColor) 78%, var(--publicSubColor) 78%, var(--publicSubColor) 100%) !important;
|
|
||||||
box-shadow: 0 0 6px rgba(30, 144, 255, .2);
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
.el-menu-demo {
|
|
||||||
box-sizing: border-box;
|
|
||||||
min-height: calc(100vh - 60px);
|
|
||||||
|
|
||||||
&>.el-menu-item {
|
|
||||||
width: 180px;
|
|
||||||
height: auto !important;
|
|
||||||
line-height: 30px !important;
|
|
||||||
padding: 10px 20px;
|
|
||||||
margin: 0;
|
|
||||||
color: rgba(0, 0, 0, 1);
|
|
||||||
font-size: 14px;
|
|
||||||
border-radius: 0;
|
|
||||||
border-width: 1px 0 0 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: #fff !important;
|
|
||||||
background-color: rgba(0, 206, 209, 0) !important;
|
|
||||||
box-shadow: 0 0 6px rgba(255,255,255,0);
|
|
||||||
box-sizing: initial;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: flex-start;
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
.el-icon-menu {
|
|
||||||
margin: 0 5px 0 0;
|
|
||||||
padding: 0;
|
|
||||||
width: 24px;
|
|
||||||
line-height: 24px;
|
|
||||||
color: rgba(199, 21, 133, 1);
|
|
||||||
font-size: 16px;
|
|
||||||
border-radius: 0;
|
|
||||||
border-width: 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: #fff;
|
|
||||||
background-color: rgba(255,255,255,0);
|
|
||||||
box-shadow: 0 0 6px rgba(255,255,255,0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-submenu {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
& /deep/ .el-submenu__title {
|
|
||||||
width: 180px;
|
|
||||||
height: auto !important;
|
|
||||||
line-height: 30px !important;
|
|
||||||
padding: 10px 20px;
|
|
||||||
color: rgba(0, 0, 0, 1);
|
|
||||||
font-size: 14px;
|
|
||||||
border-radius: 0;
|
|
||||||
border-width: 1px 0 0 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: #fff !important;
|
|
||||||
background-color: rgba(0, 206, 209, 0) !important;
|
|
||||||
box-shadow: 0 0 6px rgba(255,255,255,0);
|
|
||||||
box-sizing: initial;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: flex-start;
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
.el-icon-menu {
|
|
||||||
margin: 0 5px 0 0;
|
|
||||||
padding: 0;
|
|
||||||
width: 24px;
|
|
||||||
line-height: 24px;
|
|
||||||
color: rgba(199, 21, 133, 1);
|
|
||||||
font-size: 16px;
|
|
||||||
border-radius: 0;
|
|
||||||
border-width: 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: #fff;
|
|
||||||
background-color: rgba(255,255,255,0);
|
|
||||||
box-shadow: 0 0 6px rgba(255,255,255,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-submenu__icon-arrow {
|
|
||||||
margin: 0 10px 0 0;
|
|
||||||
padding: 0;
|
|
||||||
width: 12px;
|
|
||||||
line-height: 12px;
|
|
||||||
color: rgba(255, 255, 255, 1) !important;
|
|
||||||
font-size: 12px;
|
|
||||||
border-radius: 0;
|
|
||||||
border-width: 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: #fff;
|
|
||||||
background-color: rgba(255,255,255,0);
|
|
||||||
box-shadow: 0 0 6px rgba(255,255,255,0);
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
right: 0;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
text-align: center;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
& /deep/ .el-menu.el-menu--inline {
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
border-radius: 0;
|
|
||||||
border-width: 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: rgba(0,0,0,.3);
|
|
||||||
background-color: rgba(255, 255, 255, 0);
|
|
||||||
box-shadow: 0;
|
|
||||||
|
|
||||||
.el-menu-item {
|
|
||||||
width: 100%;
|
|
||||||
height: 44px;
|
|
||||||
line-height: 44px;
|
|
||||||
padding: 0 !important;
|
|
||||||
margin: 0;
|
|
||||||
color: #333 !important;
|
|
||||||
font-size: 14px;
|
|
||||||
border-radius: 0px;
|
|
||||||
border-width: 0 0 1px 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: rgba(150, 150, 150, 0);
|
|
||||||
background-color: rgba(139, 196, 220, 0) !important;
|
|
||||||
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
||||||
text-align: center;
|
|
||||||
min-width: auto;
|
|
||||||
|
|
||||||
&.is-active {
|
|
||||||
width: 100%;
|
|
||||||
height: 44px;
|
|
||||||
line-height: 44px;
|
|
||||||
padding: 0 !important;
|
|
||||||
margin: 0;
|
|
||||||
color: rgba(0, 0, 0, 1) !important;
|
|
||||||
font-size: 14px;
|
|
||||||
border-radius: 0;
|
|
||||||
border-width: 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: rgba(0, 0, 0, 0);
|
|
||||||
background-color: var(--publicSubColor) !important;
|
|
||||||
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
width: 100%;
|
|
||||||
height: 44px;
|
|
||||||
line-height: 44px;
|
|
||||||
padding: 0 !important;
|
|
||||||
margin: 0;
|
|
||||||
color: #fff !important;
|
|
||||||
font-size: 14px;
|
|
||||||
border-radius: 0px;
|
|
||||||
border-width: 0 0 1px 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: rgba(0, 0, 0, 0);
|
|
||||||
background-color: var(--publicSubColor) !important;
|
|
||||||
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<style>
|
|
||||||
|
|
||||||
.el-menu--horizontal .el-menu--popup {
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
border-radius: 0;
|
|
||||||
border-width: 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: rgba(0,0,0,.3);
|
|
||||||
background-color: rgba(255, 255, 255, 0);
|
|
||||||
box-shadow: 0;
|
|
||||||
min-width: auto;
|
|
||||||
}
|
|
||||||
.el-menu--horizontal .el-menu--popup .el-menu-item {
|
|
||||||
width: 100%;
|
|
||||||
height: 44px;
|
|
||||||
line-height: 44px;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
color: #333 !important;
|
|
||||||
font-size: 14px;
|
|
||||||
border-radius: 0px;
|
|
||||||
border-width: 0 0 1px 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: rgba(150, 150, 150, 0);
|
|
||||||
background-color: rgba(139, 196, 220, 0) !important;
|
|
||||||
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
||||||
text-align: center;
|
|
||||||
min-width: auto;
|
|
||||||
}
|
|
||||||
.el-menu--horizontal .el-menu--popup .el-menu-item:hover {
|
|
||||||
width: 100%;
|
|
||||||
height: 44px;
|
|
||||||
line-height: 44px;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
color: #fff !important;
|
|
||||||
font-size: 14px;
|
|
||||||
border-radius: 0px;
|
|
||||||
border-width: 0 0 1px 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: rgba(0, 0, 0, 0);
|
|
||||||
background-color: var(--publicSubColor) !important;
|
|
||||||
box-shadow: 0 0 6px rgba(30, 144, 255, 0);
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
</style>
|
|
Before Width: | Height: | Size: 629 B |
Before Width: | Height: | Size: 727 B |
Before Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 595 B |
Before Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1013 B |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 743 B |
Before Width: | Height: | Size: 903 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 857 B |
Before Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 936 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 503 B |
@ -1,81 +0,0 @@
|
|||||||
import Vue from 'vue'
|
|
||||||
import App from '@/App.vue'
|
|
||||||
// element ui 完全引入
|
|
||||||
import ElementUI from 'element-ui'
|
|
||||||
import '@/assets/css/element-variables.scss'
|
|
||||||
import '@/assets/css/style.scss'
|
|
||||||
// 加载路由
|
|
||||||
// import router from '@/router/router-static.js';
|
|
||||||
import router from '@/router/router-static.js';
|
|
||||||
// 面包屑导航,注册为全局组件
|
|
||||||
import BreadCrumbs from '@/components/common/BreadCrumbs'
|
|
||||||
// 引入echart
|
|
||||||
import echarts from 'echarts'
|
|
||||||
// 引入echart主题
|
|
||||||
// import '@/assets/js/echarts-theme-macarons.js'
|
|
||||||
import 'echarts/theme/macarons.js'
|
|
||||||
// ajax
|
|
||||||
import http from '@/utils/http.js'
|
|
||||||
// 基础配置
|
|
||||||
import base from '@/utils/base'
|
|
||||||
// 工具类
|
|
||||||
import { isAuth, getCurDate, getCurDateTime } from '@/utils/utils'
|
|
||||||
// storage 封装
|
|
||||||
import storage from "@/utils/storage";
|
|
||||||
// 上传组件
|
|
||||||
import FileUpload from "@/components/common/FileUpload";
|
|
||||||
// 富文本编辑组件
|
|
||||||
import Editor from "@/components/common/Editor";
|
|
||||||
// api 接口
|
|
||||||
import api from '@/utils/api'
|
|
||||||
// 数据校验工具类
|
|
||||||
import * as validate from '@/utils/validate.js'
|
|
||||||
// 后台地图
|
|
||||||
import VueAMap from 'vue-amap'
|
|
||||||
import '@/icons'
|
|
||||||
//excel导出
|
|
||||||
import JsonExcel from 'vue-json-excel'
|
|
||||||
//二维码
|
|
||||||
import VueQr from 'vue-qr'
|
|
||||||
//打印
|
|
||||||
import Print from '@/utils/print'
|
|
||||||
//MD5
|
|
||||||
import md5 from 'js-md5';
|
|
||||||
|
|
||||||
Vue.use(Print)//注册打印
|
|
||||||
// 后台地图
|
|
||||||
Vue.use(VueAMap)
|
|
||||||
VueAMap.initAMapApiLoader({
|
|
||||||
key: 'ca04cee7ac952691aa67a131e6f0cee0',
|
|
||||||
plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor', 'AMap.Geocoder'],
|
|
||||||
// 默认高德 sdk 版本为 1.4.4
|
|
||||||
v: '1.4.4'
|
|
||||||
})
|
|
||||||
Vue.prototype.$validate = validate
|
|
||||||
Vue.prototype.$http = http // ajax请求方法
|
|
||||||
Vue.prototype.$echarts = echarts
|
|
||||||
Vue.prototype.$base = base.get()
|
|
||||||
Vue.prototype.$project = base.getProjectName()
|
|
||||||
Vue.prototype.$storage = storage
|
|
||||||
Vue.prototype.$api = api
|
|
||||||
// 判断权限方法
|
|
||||||
Vue.prototype.isAuth = isAuth
|
|
||||||
Vue.prototype.getCurDateTime = getCurDateTime
|
|
||||||
Vue.prototype.getCurDate = getCurDate
|
|
||||||
// Vue.prototype.$base = base
|
|
||||||
Vue.use(ElementUI, { size: 'medium', zIndex: 3000 });
|
|
||||||
Vue.config.productionTip = false
|
|
||||||
// 组件全局组件
|
|
||||||
Vue.component('bread-crumbs', BreadCrumbs)
|
|
||||||
Vue.component('file-upload', FileUpload)
|
|
||||||
Vue.component('editor', Editor)
|
|
||||||
//二维码
|
|
||||||
Vue.component('VueQr', VueQr)
|
|
||||||
//excel导出
|
|
||||||
Vue.component('downloadExcel', JsonExcel)
|
|
||||||
//MD5
|
|
||||||
Vue.prototype.$md5 = md5;
|
|
||||||
new Vue({
|
|
||||||
render: h => h(App),
|
|
||||||
router
|
|
||||||
}).$mount('#app')
|
|
@ -1,482 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="main-content">
|
|
||||||
<!-- 列表页 -->
|
|
||||||
<div v-if="showFlag">
|
|
||||||
<el-form :inline="true" :model="searchForm" class="form-content">
|
|
||||||
<el-row :gutter="20" class="slt" :style="{justifyContent:contents.searchBoxPosition=='1'?'flex-start':contents.searchBoxPosition=='2'?'center':'flex-end'}">
|
|
||||||
<el-form-item label="收藏表类型">
|
|
||||||
<el-input prefix-icon="el-icon-search" v-model="searchForm.indexNameSearch" placeholder="收藏表类型" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button icon="el-icon-search" type="success" @click="search()">查询</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-row>
|
|
||||||
<el-row class="ad" :style="{justifyContent:contents.btnAdAllBoxPosition=='1'?'flex-start':contents.btnAdAllBoxPosition=='2'?'center':'flex-end'}">
|
|
||||||
<el-form-item>
|
|
||||||
<el-button
|
|
||||||
v-if="isAuth('dictionaryJianshenkechengCollection','新增')"
|
|
||||||
type="success"
|
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="addOrUpdateHandler()"
|
|
||||||
>新增</el-button>
|
|
||||||
<el-button
|
|
||||||
v-if="isAuth('dictionaryJianshenkechengCollection','删除')"
|
|
||||||
:disabled="dataListSelections.length <= 0"
|
|
||||||
type="danger"
|
|
||||||
icon="el-icon-delete"
|
|
||||||
@click="deleteHandler()"
|
|
||||||
>删除</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
|
||||||
<div class="table-content">
|
|
||||||
<el-table class="tables" :size="contents.tableSize" :show-header="contents.tableShowHeader"
|
|
||||||
:header-row-style="headerRowStyle" :header-cell-style="headerCellStyle"
|
|
||||||
:border="contents.tableBorder"
|
|
||||||
:fit="contents.tableFit"
|
|
||||||
:stripe="contents.tableStripe"
|
|
||||||
:row-style="rowStyle"
|
|
||||||
:cell-style="cellStyle"
|
|
||||||
:style="{width: '100%',fontSize:contents.tableContentFontSize,color:contents.tableContentFontColor}"
|
|
||||||
v-if="isAuth('dictionaryJianshenkechengCollection','查看')"
|
|
||||||
:data="dataList"
|
|
||||||
v-loading="dataListLoading"
|
|
||||||
@selection-change="selectionChangeHandler">
|
|
||||||
<el-table-column v-if="contents.tableSelection"
|
|
||||||
type="selection"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
width="50">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="索引" v-if="contents.tableIndex" type="index" width="50" />
|
|
||||||
<el-table-column :sortable="contents.tableSortable" :align="contents.tableAlign"
|
|
||||||
prop="codeIndex"
|
|
||||||
header-align="center"
|
|
||||||
label="收藏表类型编码">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{scope.row.codeIndex}}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column :sortable="contents.tableSortable" :align="contents.tableAlign"
|
|
||||||
prop="indexName"
|
|
||||||
header-align="center"
|
|
||||||
label="收藏表类型名称">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{scope.row.indexName}}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<!--<el-table-column :sortable="contents.tableSortable" :align="contents.tableAlign"
|
|
||||||
prop="beizhu"
|
|
||||||
header-align="center"
|
|
||||||
label="备注">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{scope.row.beizhu}}
|
|
||||||
</template>
|
|
||||||
</el-table-column>-->
|
|
||||||
<el-table-column width="300" :align="contents.tableAlign"
|
|
||||||
header-align="center"
|
|
||||||
label="操作">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-button v-if="isAuth('dictionaryJianshenkechengCollection','查看')" type="success" icon="el-icon-tickets" size="mini" @click="addOrUpdateHandler(scope.row.id,'info')">详情</el-button>
|
|
||||||
<el-button v-if="isAuth('dictionaryJianshenkechengCollection','修改')" type="primary" icon="el-icon-edit" size="mini" @click="addOrUpdateHandler(scope.row.id)">修改</el-button>
|
|
||||||
<el-button v-if="isAuth('dictionaryJianshenkechengCollection','删除')" type="danger" icon="el-icon-delete" size="mini" @click="deleteHandler(scope.row.id)">删除</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<el-pagination
|
|
||||||
clsss="pages"
|
|
||||||
:layout="layouts"
|
|
||||||
@size-change="sizeChangeHandle"
|
|
||||||
@current-change="currentChangeHandle"
|
|
||||||
:current-page="pageIndex"
|
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
|
||||||
:page-size="Number(contents.pageEachNum)"
|
|
||||||
:total="totalPage"
|
|
||||||
:small="contents.pageStyle"
|
|
||||||
class="pagination-content"
|
|
||||||
:background="contents.pageBtnBG"
|
|
||||||
:style="{textAlign:contents.pagePosition==1?'left':contents.pagePosition==2?'center':'right'}"
|
|
||||||
></el-pagination>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- 添加/修改页面 将父组件的search方法传递给子组件-->
|
|
||||||
<add-or-update v-if="addOrUpdateFlag" :parent="this" ref="addOrUpdate"></add-or-update>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
import AddOrUpdate from "./add-or-update";
|
|
||||||
import styleJs from "../../../utils/style.js";
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
searchForm: {
|
|
||||||
key: ""
|
|
||||||
},
|
|
||||||
form:{},
|
|
||||||
dataList: [],
|
|
||||||
pageIndex: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
totalPage: 0,
|
|
||||||
dataListLoading: false,
|
|
||||||
dataListSelections: [],
|
|
||||||
showFlag: true,
|
|
||||||
sfshVisiable: false,
|
|
||||||
shForm: {},
|
|
||||||
chartVisiable: false,
|
|
||||||
addOrUpdateFlag:false,
|
|
||||||
contents:null,
|
|
||||||
layouts: '',
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.contents = styleJs.listStyle();
|
|
||||||
this.init();
|
|
||||||
this.getDataList();
|
|
||||||
this.contentStyleChange()
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
|
|
||||||
},
|
|
||||||
filters: {
|
|
||||||
htmlfilter: function (val) {
|
|
||||||
return val.replace(/<[^>]*>/g).replace(/undefined/g,'');
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
|
||||||
AddOrUpdate,
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
contentStyleChange() {
|
|
||||||
this.contentSearchStyleChange()
|
|
||||||
this.contentBtnAdAllStyleChange()
|
|
||||||
this.contentSearchBtnStyleChange()
|
|
||||||
this.contentTableBtnStyleChange()
|
|
||||||
this.contentPageStyleChange()
|
|
||||||
},
|
|
||||||
contentSearchStyleChange() {
|
|
||||||
this.$nextTick(()=>{
|
|
||||||
document.querySelectorAll('.form-content .slt .el-input__inner').forEach(el=>{
|
|
||||||
let textAlign = 'left'
|
|
||||||
if(this.contents.inputFontPosition == 2) textAlign = 'center'
|
|
||||||
if(this.contents.inputFontPosition == 3) textAlign = 'right'
|
|
||||||
el.style.textAlign = textAlign
|
|
||||||
el.style.height = this.contents.inputHeight
|
|
||||||
el.style.lineHeight = this.contents.inputHeight
|
|
||||||
el.style.color = this.contents.inputFontColor
|
|
||||||
el.style.fontSize = this.contents.inputFontSize
|
|
||||||
el.style.borderWidth = this.contents.inputBorderWidth
|
|
||||||
el.style.borderStyle = this.contents.inputBorderStyle
|
|
||||||
el.style.borderColor = this.contents.inputBorderColor
|
|
||||||
el.style.borderRadius = this.contents.inputBorderRadius
|
|
||||||
el.style.backgroundColor = this.contents.inputBgColor
|
|
||||||
})
|
|
||||||
if(this.contents.inputTitle) {
|
|
||||||
document.querySelectorAll('.form-content .slt .el-form-item__label').forEach(el=>{
|
|
||||||
el.style.color = this.contents.inputTitleColor
|
|
||||||
el.style.fontSize = this.contents.inputTitleSize
|
|
||||||
el.style.lineHeight = this.contents.inputHeight
|
|
||||||
})
|
|
||||||
}
|
|
||||||
setTimeout(()=>{
|
|
||||||
document.querySelectorAll('.form-content .slt .el-input__prefix').forEach(el=>{
|
|
||||||
el.style.color = this.contents.inputIconColor
|
|
||||||
el.style.lineHeight = this.contents.inputHeight
|
|
||||||
})
|
|
||||||
document.querySelectorAll('.form-content .slt .el-input__suffix').forEach(el=>{
|
|
||||||
el.style.color = this.contents.inputIconColor
|
|
||||||
el.style.lineHeight = this.contents.inputHeight
|
|
||||||
})
|
|
||||||
document.querySelectorAll('.form-content .slt .el-input__icon').forEach(el=>{
|
|
||||||
el.style.lineHeight = this.contents.inputHeight
|
|
||||||
})
|
|
||||||
},10)
|
|
||||||
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 搜索按钮
|
|
||||||
contentSearchBtnStyleChange() {
|
|
||||||
this.$nextTick(()=>{
|
|
||||||
document.querySelectorAll('.form-content .slt .el-button--success').forEach(el=>{
|
|
||||||
el.style.height = this.contents.searchBtnHeight
|
|
||||||
el.style.color = this.contents.searchBtnFontColor
|
|
||||||
el.style.fontSize = this.contents.searchBtnFontSize
|
|
||||||
el.style.borderWidth = this.contents.searchBtnBorderWidth
|
|
||||||
el.style.borderStyle = this.contents.searchBtnBorderStyle
|
|
||||||
el.style.borderColor = this.contents.searchBtnBorderColor
|
|
||||||
el.style.borderRadius = this.contents.searchBtnBorderRadius
|
|
||||||
el.style.backgroundColor = this.contents.searchBtnBgColor
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 新增、批量删除
|
|
||||||
contentBtnAdAllStyleChange() {
|
|
||||||
this.$nextTick(()=>{
|
|
||||||
document.querySelectorAll('.form-content .ad .el-button--success').forEach(el=>{
|
|
||||||
el.style.height = this.contents.btnAdAllHeight
|
|
||||||
el.style.color = this.contents.btnAdAllAddFontColor
|
|
||||||
el.style.fontSize = this.contents.btnAdAllFontSize
|
|
||||||
el.style.borderWidth = this.contents.btnAdAllBorderWidth
|
|
||||||
el.style.borderStyle = this.contents.btnAdAllBorderStyle
|
|
||||||
el.style.borderColor = this.contents.btnAdAllBorderColor
|
|
||||||
el.style.borderRadius = this.contents.btnAdAllBorderRadius
|
|
||||||
el.style.backgroundColor = this.contents.btnAdAllAddBgColor
|
|
||||||
})
|
|
||||||
document.querySelectorAll('.form-content .ad .el-button--danger').forEach(el=>{
|
|
||||||
el.style.height = this.contents.btnAdAllHeight
|
|
||||||
el.style.color = this.contents.btnAdAllDelFontColor
|
|
||||||
el.style.fontSize = this.contents.btnAdAllFontSize
|
|
||||||
el.style.borderWidth = this.contents.btnAdAllBorderWidth
|
|
||||||
el.style.borderStyle = this.contents.btnAdAllBorderStyle
|
|
||||||
el.style.borderColor = this.contents.btnAdAllBorderColor
|
|
||||||
el.style.borderRadius = this.contents.btnAdAllBorderRadius
|
|
||||||
el.style.backgroundColor = this.contents.btnAdAllDelBgColor
|
|
||||||
})
|
|
||||||
document.querySelectorAll('.form-content .ad .el-button--warning').forEach(el=>{
|
|
||||||
el.style.height = this.contents.btnAdAllHeight
|
|
||||||
el.style.color = this.contents.btnAdAllWarnFontColor
|
|
||||||
el.style.fontSize = this.contents.btnAdAllFontSize
|
|
||||||
el.style.borderWidth = this.contents.btnAdAllBorderWidth
|
|
||||||
el.style.borderStyle = this.contents.btnAdAllBorderStyle
|
|
||||||
el.style.borderColor = this.contents.btnAdAllBorderColor
|
|
||||||
el.style.borderRadius = this.contents.btnAdAllBorderRadius
|
|
||||||
el.style.backgroundColor = this.contents.btnAdAllWarnBgColor
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 表格
|
|
||||||
rowStyle({ row, rowIndex}) {
|
|
||||||
if (rowIndex % 2 == 1) {
|
|
||||||
if(this.contents.tableStripe) {
|
|
||||||
return {color:this.contents.tableStripeFontColor}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
cellStyle({ row, rowIndex}){
|
|
||||||
if (rowIndex % 2 == 1) {
|
|
||||||
if(this.contents.tableStripe) {
|
|
||||||
return {backgroundColor:this.contents.tableStripeBgColor}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
headerRowStyle({ row, rowIndex}){
|
|
||||||
return {color: this.contents.tableHeaderFontColor}
|
|
||||||
},
|
|
||||||
headerCellStyle({ row, rowIndex}){
|
|
||||||
return {backgroundColor: this.contents.tableHeaderBgColor}
|
|
||||||
},
|
|
||||||
// 表格按钮
|
|
||||||
contentTableBtnStyleChange(){
|
|
||||||
},
|
|
||||||
// 分页
|
|
||||||
contentPageStyleChange(){
|
|
||||||
let arr = []
|
|
||||||
if(this.contents.pageTotal) arr.push('total')
|
|
||||||
if(this.contents.pageSizes) arr.push('sizes')
|
|
||||||
if(this.contents.pagePrevNext){
|
|
||||||
arr.push('prev')
|
|
||||||
if(this.contents.pagePager) arr.push('pager')
|
|
||||||
arr.push('next')
|
|
||||||
}
|
|
||||||
if(this.contents.pageJumper) arr.push('jumper')
|
|
||||||
this.layouts = arr.join()
|
|
||||||
this.contents.pageEachNum = 10
|
|
||||||
},
|
|
||||||
|
|
||||||
init () {
|
|
||||||
},
|
|
||||||
search() {
|
|
||||||
this.pageIndex = 1;
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
// 获取数据列表
|
|
||||||
getDataList() {
|
|
||||||
this.dataListLoading = true;
|
|
||||||
let params = {
|
|
||||||
page: this.pageIndex,
|
|
||||||
limit: this.pageSize,
|
|
||||||
sort: 'id',
|
|
||||||
}
|
|
||||||
if(this.searchForm.indexNameSearch!='' && this.searchForm.indexNameSearch!=undefined){
|
|
||||||
params['indexName'] = this.searchForm.indexNameSearch
|
|
||||||
}
|
|
||||||
//本表的
|
|
||||||
params['dicCode'] = "jianshenkecheng_collection_types"//编码名字
|
|
||||||
params['dicName'] = "收藏表类型",//汉字名字
|
|
||||||
this.$http({
|
|
||||||
url: "dictionary/page",
|
|
||||||
method: "get",
|
|
||||||
params: params
|
|
||||||
}).then(({ data }) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.dataList = data.data.list;
|
|
||||||
this.totalPage = data.data.total;
|
|
||||||
} else {
|
|
||||||
this.dataList = [];
|
|
||||||
this.totalPage = 0;
|
|
||||||
}
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 每页数
|
|
||||||
sizeChangeHandle(val) {
|
|
||||||
this.pageSize = val;
|
|
||||||
this.pageIndex = 1;
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
// 当前页
|
|
||||||
currentChangeHandle(val) {
|
|
||||||
this.pageIndex = val;
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
// 多选
|
|
||||||
selectionChangeHandler(val) {
|
|
||||||
this.dataListSelections = val;
|
|
||||||
},
|
|
||||||
// 添加/修改
|
|
||||||
addOrUpdateHandler(id,type) {
|
|
||||||
this.showFlag = false;
|
|
||||||
this.addOrUpdateFlag = true;
|
|
||||||
this.crossAddOrUpdateFlag = false;
|
|
||||||
if(type!='info'){
|
|
||||||
type = 'else';
|
|
||||||
}
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.addOrUpdate.init(id,type);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 删除
|
|
||||||
deleteHandler(id) {
|
|
||||||
var ids = id
|
|
||||||
? [Number(id)]
|
|
||||||
: this.dataListSelections.map(item => {
|
|
||||||
return Number(item.id);
|
|
||||||
});
|
|
||||||
this.$confirm(`确定进行[${id ? "删除" : "批量删除"}]操作?`, "提示", {
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
cancelButtonText: "取消",
|
|
||||||
type: "warning"
|
|
||||||
}).then(() => {
|
|
||||||
this.$http({
|
|
||||||
url: "dictionary/delete",
|
|
||||||
method: "post",
|
|
||||||
data: ids
|
|
||||||
}).then(({ data }) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: "操作成功",
|
|
||||||
type: "success",
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.search();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.slt {
|
|
||||||
margin: 0 !important;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ad {
|
|
||||||
margin: 0 !important;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pages {
|
|
||||||
& /deep/ el-pagination__sizes{
|
|
||||||
& /deep/ el-input__inner {
|
|
||||||
height: 22px;
|
|
||||||
line-height: 22px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.el-button+.el-button {
|
|
||||||
margin:0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tables {
|
|
||||||
& /deep/ .el-button--success {
|
|
||||||
height: 40px;
|
|
||||||
color: #333;
|
|
||||||
font-size: 14px;
|
|
||||||
border-width: 2px;
|
|
||||||
border-style: dashed ;
|
|
||||||
border-color: rgba(255, 255, 255, 1);
|
|
||||||
border-radius: 20px;
|
|
||||||
background-color: var(--publicSubColor);
|
|
||||||
}
|
|
||||||
|
|
||||||
& /deep/ .el-button--primary {
|
|
||||||
height: 40px;
|
|
||||||
color: #333;
|
|
||||||
font-size: 14px;
|
|
||||||
border-width: 2px;
|
|
||||||
border-style: dashed ;
|
|
||||||
border-color: rgba(255, 255, 255, 1);
|
|
||||||
border-radius: 20px;
|
|
||||||
background-color: var(--publicSubColor);
|
|
||||||
}
|
|
||||||
|
|
||||||
& /deep/ .el-button--danger {
|
|
||||||
height: 40px;
|
|
||||||
color: #333;
|
|
||||||
font-size: 14px;
|
|
||||||
border-width: 2px;
|
|
||||||
border-style: dashed ;
|
|
||||||
border-color: rgba(255, 255, 255, 1);
|
|
||||||
border-radius: 20px;
|
|
||||||
background-color: var(--publicSubColor);
|
|
||||||
}
|
|
||||||
|
|
||||||
& /deep/ .el-button {
|
|
||||||
margin: 4px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.form-content {
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
.table-content {
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tables /deep/ .el-table__body tr {
|
|
||||||
background-color: rgba(255, 255, 255, 1) !important;
|
|
||||||
color: rgba(92, 93, 95, 1) !important;
|
|
||||||
}
|
|
||||||
.tables /deep/ .el-table__body tr.el-table__row--striped td {
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
.tables /deep/ .el-table__body tr.el-table__row--striped {
|
|
||||||
background-color: #F5F7FA !important;
|
|
||||||
color: #606266 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tables /deep/ .el-table__body tr:hover>td {
|
|
||||||
background-color: #f5f5f5 !important;
|
|
||||||
color: #333 !important;
|
|
||||||
}</style>
|
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 647 B |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 701 B |
Before Width: | Height: | Size: 299 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.4 KiB |
@ -1,2 +0,0 @@
|
|||||||
/** layui-v2.5.6 MIT License By https://www.layui.com */
|
|
||||||
;layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='<ul class="layui-rate" '+(i.readonly?"readonly":"")+">",u=1;u<=i.length;u++){var r='<li class="layui-inline"><i class="layui-icon '+(u>Math.floor(i.value)?o:s)+'" '+l+"></i></li>";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'<li><i class="layui-icon layui-icon-rate-half" '+l+"></i></li>":n+=r}n+="</ul>"+(i.text?'<span class="layui-inline">'+i.value+"星":"")+"</span>";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)});
|
|
@ -1,14 +0,0 @@
|
|||||||
window.rootPath = (function (src) {
|
|
||||||
src = document.scripts[document.scripts.length - 1].src;
|
|
||||||
console.log(src.substring(0, src.lastIndexOf("/") + 1))
|
|
||||||
return src.substring(0, src.lastIndexOf("/") + 1);
|
|
||||||
})();
|
|
||||||
|
|
||||||
layui.config({
|
|
||||||
base: rootPath,
|
|
||||||
version: true
|
|
||||||
}).extend({
|
|
||||||
http: 'http/http', // 网络请求接口扩展
|
|
||||||
layarea: 'layarea/layarea' ,// 省市区联动选择器
|
|
||||||
tinymce: 'tinymce/tinymce' // 富文本编辑器
|
|
||||||
});
|
|
@ -1,3 +0,0 @@
|
|||||||
This is where language files should be placed.
|
|
||||||
|
|
||||||
Please DO NOT translate these directly use this service: https://www.transifex.com/projects/p/tinymce/
|
|
@ -1,419 +0,0 @@
|
|||||||
tinymce.addI18n('zh_CN',{
|
|
||||||
"Redo": "\u91cd\u505a",
|
|
||||||
"Undo": "\u64a4\u9500",
|
|
||||||
"Cut": "\u526a\u5207",
|
|
||||||
"Copy": "\u590d\u5236",
|
|
||||||
"Paste": "\u7c98\u8d34",
|
|
||||||
"Select all": "\u5168\u9009",
|
|
||||||
"New document": "\u65b0\u6587\u4ef6",
|
|
||||||
"Ok": "\u786e\u5b9a",
|
|
||||||
"Cancel": "\u53d6\u6d88",
|
|
||||||
"Visual aids": "\u7f51\u683c\u7ebf",
|
|
||||||
"Bold": "\u7c97\u4f53",
|
|
||||||
"Italic": "\u659c\u4f53",
|
|
||||||
"Underline": "\u4e0b\u5212\u7ebf",
|
|
||||||
"Strikethrough": "\u5220\u9664\u7ebf",
|
|
||||||
"Superscript": "\u4e0a\u6807",
|
|
||||||
"Subscript": "\u4e0b\u6807",
|
|
||||||
"Clear formatting": "\u6e05\u9664\u683c\u5f0f",
|
|
||||||
"Align left": "\u5de6\u8fb9\u5bf9\u9f50",
|
|
||||||
"Align center": "\u4e2d\u95f4\u5bf9\u9f50",
|
|
||||||
"Align right": "\u53f3\u8fb9\u5bf9\u9f50",
|
|
||||||
"Justify": "\u4e24\u7aef\u5bf9\u9f50",
|
|
||||||
"Bullet list": "\u9879\u76ee\u7b26\u53f7",
|
|
||||||
"Numbered list": "\u7f16\u53f7\u5217\u8868",
|
|
||||||
"Decrease indent": "\u51cf\u5c11\u7f29\u8fdb",
|
|
||||||
"Increase indent": "\u589e\u52a0\u7f29\u8fdb",
|
|
||||||
"Close": "\u5173\u95ed",
|
|
||||||
"Formats": "\u683c\u5f0f",
|
|
||||||
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u6253\u5f00\u526a\u8d34\u677f\uff0c\u8bf7\u4f7f\u7528Ctrl+X\/C\/V\u7b49\u5feb\u6377\u952e\u3002",
|
|
||||||
"Headers": "\u6807\u9898",
|
|
||||||
"Header 1": "\u6807\u98981",
|
|
||||||
"Header 2": "\u6807\u98982",
|
|
||||||
"Header 3": "\u6807\u98983",
|
|
||||||
"Header 4": "\u6807\u98984",
|
|
||||||
"Header 5": "\u6807\u98985",
|
|
||||||
"Header 6": "\u6807\u98986",
|
|
||||||
"Headings": "\u6807\u9898",
|
|
||||||
"Heading 1": "\u6807\u98981",
|
|
||||||
"Heading 2": "\u6807\u98982",
|
|
||||||
"Heading 3": "\u6807\u98983",
|
|
||||||
"Heading 4": "\u6807\u98984",
|
|
||||||
"Heading 5": "\u6807\u98985",
|
|
||||||
"Heading 6": "\u6807\u98986",
|
|
||||||
"Preformatted": "\u9884\u5148\u683c\u5f0f\u5316\u7684",
|
|
||||||
"Div": "Div",
|
|
||||||
"Pre": "Pre",
|
|
||||||
"Code": "\u4ee3\u7801",
|
|
||||||
"Paragraph": "\u6bb5\u843d",
|
|
||||||
"Blockquote": "\u5f15\u6587\u533a\u5757",
|
|
||||||
"Inline": "\u6587\u672c",
|
|
||||||
"Blocks": "\u57fa\u5757",
|
|
||||||
"Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "\u5f53\u524d\u4e3a\u7eaf\u6587\u672c\u7c98\u8d34\u6a21\u5f0f\uff0c\u518d\u6b21\u70b9\u51fb\u53ef\u4ee5\u56de\u5230\u666e\u901a\u7c98\u8d34\u6a21\u5f0f\u3002",
|
|
||||||
"Fonts": "\u5b57\u4f53",
|
|
||||||
"Font Sizes": "\u5b57\u53f7",
|
|
||||||
"Class": "\u7c7b\u578b",
|
|
||||||
"Browse for an image": "\u6d4f\u89c8\u56fe\u50cf",
|
|
||||||
"OR": "\u6216",
|
|
||||||
"Drop an image here": "\u62d6\u653e\u4e00\u5f20\u56fe\u50cf\u81f3\u6b64",
|
|
||||||
"Upload": "\u4e0a\u4f20",
|
|
||||||
"Block": "\u5757",
|
|
||||||
"Align": "\u5bf9\u9f50",
|
|
||||||
"Default": "\u9ed8\u8ba4",
|
|
||||||
"Circle": "\u7a7a\u5fc3\u5706",
|
|
||||||
"Disc": "\u5b9e\u5fc3\u5706",
|
|
||||||
"Square": "\u65b9\u5757",
|
|
||||||
"Lower Alpha": "\u5c0f\u5199\u82f1\u6587\u5b57\u6bcd",
|
|
||||||
"Lower Greek": "\u5c0f\u5199\u5e0c\u814a\u5b57\u6bcd",
|
|
||||||
"Lower Roman": "\u5c0f\u5199\u7f57\u9a6c\u5b57\u6bcd",
|
|
||||||
"Upper Alpha": "\u5927\u5199\u82f1\u6587\u5b57\u6bcd",
|
|
||||||
"Upper Roman": "\u5927\u5199\u7f57\u9a6c\u5b57\u6bcd",
|
|
||||||
"Anchor...": "\u951a\u70b9...",
|
|
||||||
"Name": "\u540d\u79f0",
|
|
||||||
"Id": "\u6807\u8bc6\u7b26",
|
|
||||||
"Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.": "\u6807\u8bc6\u7b26\u5e94\u8be5\u4ee5\u5b57\u6bcd\u5f00\u5934\uff0c\u540e\u8ddf\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u7834\u6298\u53f7\u3001\u70b9\u3001\u5192\u53f7\u6216\u4e0b\u5212\u7ebf\u3002",
|
|
||||||
"You have unsaved changes are you sure you want to navigate away?": "\u4f60\u8fd8\u6709\u6587\u6863\u5c1a\u672a\u4fdd\u5b58\uff0c\u786e\u5b9a\u8981\u79bb\u5f00\uff1f",
|
|
||||||
"Restore last draft": "\u6062\u590d\u4e0a\u6b21\u7684\u8349\u7a3f",
|
|
||||||
"Special character...": "\u7279\u6b8a\u5b57\u7b26...",
|
|
||||||
"Source code": "\u6e90\u4ee3\u7801",
|
|
||||||
"Insert\/Edit code sample": "\u63d2\u5165\/\u7f16\u8f91\u4ee3\u7801\u793a\u4f8b",
|
|
||||||
"Language": "\u8bed\u8a00",
|
|
||||||
"Code sample...": "\u793a\u4f8b\u4ee3\u7801...",
|
|
||||||
"Color Picker": "\u9009\u8272\u5668",
|
|
||||||
"R": "R",
|
|
||||||
"G": "G",
|
|
||||||
"B": "B",
|
|
||||||
"Left to right": "\u4ece\u5de6\u5230\u53f3",
|
|
||||||
"Right to left": "\u4ece\u53f3\u5230\u5de6",
|
|
||||||
"Emoticons...": "\u8868\u60c5\u7b26\u53f7...",
|
|
||||||
"Metadata and Document Properties": "\u5143\u6570\u636e\u548c\u6587\u6863\u5c5e\u6027",
|
|
||||||
"Title": "\u6807\u9898",
|
|
||||||
"Keywords": "\u5173\u952e\u8bcd",
|
|
||||||
"Description": "\u63cf\u8ff0",
|
|
||||||
"Robots": "\u673a\u5668\u4eba",
|
|
||||||
"Author": "\u4f5c\u8005",
|
|
||||||
"Encoding": "\u7f16\u7801",
|
|
||||||
"Fullscreen": "\u5168\u5c4f",
|
|
||||||
"Action": "\u64cd\u4f5c",
|
|
||||||
"Shortcut": "\u5feb\u6377\u952e",
|
|
||||||
"Help": "\u5e2e\u52a9",
|
|
||||||
"Address": "\u5730\u5740",
|
|
||||||
"Focus to menubar": "\u79fb\u52a8\u7126\u70b9\u5230\u83dc\u5355\u680f",
|
|
||||||
"Focus to toolbar": "\u79fb\u52a8\u7126\u70b9\u5230\u5de5\u5177\u680f",
|
|
||||||
"Focus to element path": "\u79fb\u52a8\u7126\u70b9\u5230\u5143\u7d20\u8def\u5f84",
|
|
||||||
"Focus to contextual toolbar": "\u79fb\u52a8\u7126\u70b9\u5230\u4e0a\u4e0b\u6587\u83dc\u5355",
|
|
||||||
"Insert link (if link plugin activated)": "\u63d2\u5165\u94fe\u63a5 (\u5982\u679c\u94fe\u63a5\u63d2\u4ef6\u5df2\u6fc0\u6d3b)",
|
|
||||||
"Save (if save plugin activated)": "\u4fdd\u5b58(\u5982\u679c\u4fdd\u5b58\u63d2\u4ef6\u5df2\u6fc0\u6d3b)",
|
|
||||||
"Find (if searchreplace plugin activated)": "\u67e5\u627e(\u5982\u679c\u67e5\u627e\u66ff\u6362\u63d2\u4ef6\u5df2\u6fc0\u6d3b)",
|
|
||||||
"Plugins installed ({0}):": "\u5df2\u5b89\u88c5\u63d2\u4ef6 ({0}):",
|
|
||||||
"Premium plugins:": "\u4f18\u79c0\u63d2\u4ef6\uff1a",
|
|
||||||
"Learn more...": "\u4e86\u89e3\u66f4\u591a...",
|
|
||||||
"You are using {0}": "\u4f60\u6b63\u5728\u4f7f\u7528 {0}",
|
|
||||||
"Plugins": "\u63d2\u4ef6",
|
|
||||||
"Handy Shortcuts": "\u5feb\u6377\u952e",
|
|
||||||
"Horizontal line": "\u6c34\u5e73\u5206\u5272\u7ebf",
|
|
||||||
"Insert\/edit image": "\u63d2\u5165\/\u7f16\u8f91\u56fe\u7247",
|
|
||||||
"Image description": "\u56fe\u7247\u63cf\u8ff0",
|
|
||||||
"Source": "\u5730\u5740",
|
|
||||||
"Dimensions": "\u5927\u5c0f",
|
|
||||||
"Constrain proportions": "\u4fdd\u6301\u7eb5\u6a2a\u6bd4",
|
|
||||||
"General": "\u666e\u901a",
|
|
||||||
"Advanced": "\u9ad8\u7ea7",
|
|
||||||
"Style": "\u6837\u5f0f",
|
|
||||||
"Vertical space": "\u5782\u76f4\u8fb9\u8ddd",
|
|
||||||
"Horizontal space": "\u6c34\u5e73\u8fb9\u8ddd",
|
|
||||||
"Border": "\u8fb9\u6846",
|
|
||||||
"Insert image": "\u63d2\u5165\u56fe\u7247",
|
|
||||||
"Image...": "\u56fe\u7247...",
|
|
||||||
"Image list": "\u56fe\u7247\u5217\u8868",
|
|
||||||
"Rotate counterclockwise": "\u9006\u65f6\u9488\u65cb\u8f6c",
|
|
||||||
"Rotate clockwise": "\u987a\u65f6\u9488\u65cb\u8f6c",
|
|
||||||
"Flip vertically": "\u5782\u76f4\u7ffb\u8f6c",
|
|
||||||
"Flip horizontally": "\u6c34\u5e73\u7ffb\u8f6c",
|
|
||||||
"Edit image": "\u7f16\u8f91\u56fe\u7247",
|
|
||||||
"Image options": "\u56fe\u7247\u9009\u9879",
|
|
||||||
"Zoom in": "\u653e\u5927",
|
|
||||||
"Zoom out": "\u7f29\u5c0f",
|
|
||||||
"Crop": "\u88c1\u526a",
|
|
||||||
"Resize": "\u8c03\u6574\u5927\u5c0f",
|
|
||||||
"Orientation": "\u65b9\u5411",
|
|
||||||
"Brightness": "\u4eae\u5ea6",
|
|
||||||
"Sharpen": "\u9510\u5316",
|
|
||||||
"Contrast": "\u5bf9\u6bd4\u5ea6",
|
|
||||||
"Color levels": "\u989c\u8272\u5c42\u6b21",
|
|
||||||
"Gamma": "\u4f3d\u9a6c\u503c",
|
|
||||||
"Invert": "\u53cd\u8f6c",
|
|
||||||
"Apply": "\u5e94\u7528",
|
|
||||||
"Back": "\u540e\u9000",
|
|
||||||
"Insert date\/time": "\u63d2\u5165\u65e5\u671f\/\u65f6\u95f4",
|
|
||||||
"Date\/time": "\u65e5\u671f\/\u65f6\u95f4",
|
|
||||||
"Insert\/Edit Link": "\u63d2\u5165\/\u7f16\u8f91\u94fe\u63a5",
|
|
||||||
"Insert\/edit link": "\u63d2\u5165\/\u7f16\u8f91\u94fe\u63a5",
|
|
||||||
"Text to display": "\u663e\u793a\u6587\u5b57",
|
|
||||||
"Url": "\u5730\u5740",
|
|
||||||
"Open link in...": "\u94fe\u63a5\u6253\u5f00\u4f4d\u7f6e...",
|
|
||||||
"Current window": "\u5f53\u524d\u7a97\u53e3",
|
|
||||||
"None": "\u65e0",
|
|
||||||
"New window": "\u5728\u65b0\u7a97\u53e3\u6253\u5f00",
|
|
||||||
"Remove link": "\u5220\u9664\u94fe\u63a5",
|
|
||||||
"Anchors": "\u951a\u70b9",
|
|
||||||
"Link...": "\u94fe\u63a5...",
|
|
||||||
"Paste or type a link": "\u7c98\u8d34\u6216\u8f93\u5165\u94fe\u63a5",
|
|
||||||
"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "\u4f60\u6240\u586b\u5199\u7684URL\u5730\u5740\u4e3a\u90ae\u4ef6\u5730\u5740\uff0c\u9700\u8981\u52a0\u4e0amailto:\u524d\u7f00\u5417\uff1f",
|
|
||||||
"The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "\u4f60\u6240\u586b\u5199\u7684URL\u5730\u5740\u5c5e\u4e8e\u5916\u90e8\u94fe\u63a5\uff0c\u9700\u8981\u52a0\u4e0ahttp:\/\/:\u524d\u7f00\u5417\uff1f",
|
|
||||||
"Link list": "\u94fe\u63a5\u5217\u8868",
|
|
||||||
"Insert video": "\u63d2\u5165\u89c6\u9891",
|
|
||||||
"Insert\/edit video": "\u63d2\u5165\/\u7f16\u8f91\u89c6\u9891",
|
|
||||||
"Insert\/edit media": "\u63d2\u5165\/\u7f16\u8f91\u5a92\u4f53",
|
|
||||||
"Alternative source": "\u955c\u50cf",
|
|
||||||
"Alternative source URL": "\u66ff\u4ee3\u6765\u6e90\u7f51\u5740",
|
|
||||||
"Media poster (Image URL)": "\u5c01\u9762(\u56fe\u7247\u5730\u5740)",
|
|
||||||
"Paste your embed code below:": "\u5c06\u5185\u5d4c\u4ee3\u7801\u7c98\u8d34\u5728\u4e0b\u9762:",
|
|
||||||
"Embed": "\u5185\u5d4c",
|
|
||||||
"Media...": "\u591a\u5a92\u4f53...",
|
|
||||||
"Nonbreaking space": "\u4e0d\u95f4\u65ad\u7a7a\u683c",
|
|
||||||
"Page break": "\u5206\u9875\u7b26",
|
|
||||||
"Paste as text": "\u7c98\u8d34\u4e3a\u6587\u672c",
|
|
||||||
"Preview": "\u9884\u89c8",
|
|
||||||
"Print...": "\u6253\u5370...",
|
|
||||||
"Save": "\u4fdd\u5b58",
|
|
||||||
"Find": "\u67e5\u627e",
|
|
||||||
"Replace with": "\u66ff\u6362\u4e3a",
|
|
||||||
"Replace": "\u66ff\u6362",
|
|
||||||
"Replace all": "\u5168\u90e8\u66ff\u6362",
|
|
||||||
"Previous": "\u4e0a\u4e00\u4e2a",
|
|
||||||
"Next": "\u4e0b\u4e00\u4e2a",
|
|
||||||
"Find and replace...": "\u67e5\u627e\u5e76\u66ff\u6362...",
|
|
||||||
"Could not find the specified string.": "\u672a\u627e\u5230\u641c\u7d22\u5185\u5bb9.",
|
|
||||||
"Match case": "\u533a\u5206\u5927\u5c0f\u5199",
|
|
||||||
"Find whole words only": "\u5168\u5b57\u5339\u914d",
|
|
||||||
"Spell check": "\u62fc\u5199\u68c0\u67e5",
|
|
||||||
"Ignore": "\u5ffd\u7565",
|
|
||||||
"Ignore all": "\u5168\u90e8\u5ffd\u7565",
|
|
||||||
"Finish": "\u5b8c\u6210",
|
|
||||||
"Add to Dictionary": "\u6dfb\u52a0\u5230\u5b57\u5178",
|
|
||||||
"Insert table": "\u63d2\u5165\u8868\u683c",
|
|
||||||
"Table properties": "\u8868\u683c\u5c5e\u6027",
|
|
||||||
"Delete table": "\u5220\u9664\u8868\u683c",
|
|
||||||
"Cell": "\u5355\u5143\u683c",
|
|
||||||
"Row": "\u884c",
|
|
||||||
"Column": "\u5217",
|
|
||||||
"Cell properties": "\u5355\u5143\u683c\u5c5e\u6027",
|
|
||||||
"Merge cells": "\u5408\u5e76\u5355\u5143\u683c",
|
|
||||||
"Split cell": "\u62c6\u5206\u5355\u5143\u683c",
|
|
||||||
"Insert row before": "\u5728\u4e0a\u65b9\u63d2\u5165",
|
|
||||||
"Insert row after": "\u5728\u4e0b\u65b9\u63d2\u5165",
|
|
||||||
"Delete row": "\u5220\u9664\u884c",
|
|
||||||
"Row properties": "\u884c\u5c5e\u6027",
|
|
||||||
"Cut row": "\u526a\u5207\u884c",
|
|
||||||
"Copy row": "\u590d\u5236\u884c",
|
|
||||||
"Paste row before": "\u7c98\u8d34\u5230\u4e0a\u65b9",
|
|
||||||
"Paste row after": "\u7c98\u8d34\u5230\u4e0b\u65b9",
|
|
||||||
"Insert column before": "\u5728\u5de6\u4fa7\u63d2\u5165",
|
|
||||||
"Insert column after": "\u5728\u53f3\u4fa7\u63d2\u5165",
|
|
||||||
"Delete column": "\u5220\u9664\u5217",
|
|
||||||
"Cols": "\u5217",
|
|
||||||
"Rows": "\u884c",
|
|
||||||
"Width": "\u5bbd",
|
|
||||||
"Height": "\u9ad8",
|
|
||||||
"Cell spacing": "\u5355\u5143\u683c\u5916\u95f4\u8ddd",
|
|
||||||
"Cell padding": "\u5355\u5143\u683c\u5185\u8fb9\u8ddd",
|
|
||||||
"Show caption": "\u663e\u793a\u6807\u9898",
|
|
||||||
"Left": "\u5de6\u5bf9\u9f50",
|
|
||||||
"Center": "\u5c45\u4e2d",
|
|
||||||
"Right": "\u53f3\u5bf9\u9f50",
|
|
||||||
"Cell type": "\u5355\u5143\u683c\u7c7b\u578b",
|
|
||||||
"Scope": "\u8303\u56f4",
|
|
||||||
"Alignment": "\u5bf9\u9f50\u65b9\u5f0f",
|
|
||||||
"H Align": "\u6c34\u5e73\u5bf9\u9f50",
|
|
||||||
"V Align": "\u5782\u76f4\u5bf9\u9f50",
|
|
||||||
"Top": "\u9876\u90e8\u5bf9\u9f50",
|
|
||||||
"Middle": "\u5782\u76f4\u5c45\u4e2d",
|
|
||||||
"Bottom": "\u5e95\u90e8\u5bf9\u9f50",
|
|
||||||
"Header cell": "\u8868\u5934\u5355\u5143\u683c",
|
|
||||||
"Row group": "\u884c\u7ec4",
|
|
||||||
"Column group": "\u5217\u7ec4",
|
|
||||||
"Row type": "\u884c\u7c7b\u578b",
|
|
||||||
"Header": "\u8868\u5934",
|
|
||||||
"Body": "\u8868\u4f53",
|
|
||||||
"Footer": "\u8868\u5c3e",
|
|
||||||
"Border color": "\u8fb9\u6846\u989c\u8272",
|
|
||||||
"Insert template...": "\u63d2\u5165\u6a21\u677f...",
|
|
||||||
"Templates": "\u6a21\u677f",
|
|
||||||
"Template": "\u6a21\u677f",
|
|
||||||
"Text color": "\u6587\u5b57\u989c\u8272",
|
|
||||||
"Background color": "\u80cc\u666f\u8272",
|
|
||||||
"Custom...": "\u81ea\u5b9a\u4e49...",
|
|
||||||
"Custom color": "\u81ea\u5b9a\u4e49\u989c\u8272",
|
|
||||||
"No color": "\u65e0",
|
|
||||||
"Remove color": "\u79fb\u9664\u989c\u8272",
|
|
||||||
"Table of Contents": "\u5185\u5bb9\u5217\u8868",
|
|
||||||
"Show blocks": "\u663e\u793a\u533a\u5757\u8fb9\u6846",
|
|
||||||
"Show invisible characters": "\u663e\u793a\u4e0d\u53ef\u89c1\u5b57\u7b26",
|
|
||||||
"Word count": "\u5b57\u6570",
|
|
||||||
"Count": "\u8ba1\u6570",
|
|
||||||
"Document": "\u6587\u6863",
|
|
||||||
"Selection": "\u9009\u62e9",
|
|
||||||
"Words": "\u5355\u8bcd",
|
|
||||||
"Words: {0}": "\u5b57\u6570\uff1a{0}",
|
|
||||||
"{0} words": "{0} \u5b57",
|
|
||||||
"File": "\u6587\u4ef6",
|
|
||||||
"Edit": "\u7f16\u8f91",
|
|
||||||
"Insert": "\u63d2\u5165",
|
|
||||||
"View": "\u89c6\u56fe",
|
|
||||||
"Format": "\u683c\u5f0f",
|
|
||||||
"Table": "\u8868\u683c",
|
|
||||||
"Tools": "\u5de5\u5177",
|
|
||||||
"Powered by {0}": "\u7531{0}\u9a71\u52a8",
|
|
||||||
"Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "\u5728\u7f16\u8f91\u533a\u6309ALT-F9\u6253\u5f00\u83dc\u5355\uff0c\u6309ALT-F10\u6253\u5f00\u5de5\u5177\u680f\uff0c\u6309ALT-0\u67e5\u770b\u5e2e\u52a9",
|
|
||||||
"Image title": "\u56fe\u7247\u6807\u9898",
|
|
||||||
"Border width": "\u8fb9\u6846\u5bbd\u5ea6",
|
|
||||||
"Border style": "\u8fb9\u6846\u6837\u5f0f",
|
|
||||||
"Error": "\u9519\u8bef",
|
|
||||||
"Warn": "\u8b66\u544a",
|
|
||||||
"Valid": "\u6709\u6548",
|
|
||||||
"To open the popup, press Shift+Enter": "\u6309Shitf+Enter\u952e\u6253\u5f00\u5bf9\u8bdd\u6846",
|
|
||||||
"Rich Text Area. Press ALT-0 for help.": "\u7f16\u8f91\u533a\u3002\u6309Alt+0\u952e\u6253\u5f00\u5e2e\u52a9\u3002",
|
|
||||||
"System Font": "\u7cfb\u7edf\u5b57\u4f53",
|
|
||||||
"Failed to upload image: {0}": "\u56fe\u7247\u4e0a\u4f20\u5931\u8d25: {0}",
|
|
||||||
"Failed to load plugin: {0} from url {1}": "\u63d2\u4ef6\u52a0\u8f7d\u5931\u8d25: {0} \u6765\u81ea\u94fe\u63a5 {1}",
|
|
||||||
"Failed to load plugin url: {0}": "\u63d2\u4ef6\u52a0\u8f7d\u5931\u8d25 \u94fe\u63a5: {0}",
|
|
||||||
"Failed to initialize plugin: {0}": "\u63d2\u4ef6\u521d\u59cb\u5316\u5931\u8d25: {0}",
|
|
||||||
"example": "\u793a\u4f8b",
|
|
||||||
"Search": "\u641c\u7d22",
|
|
||||||
"All": "\u5168\u90e8",
|
|
||||||
"Currency": "\u8d27\u5e01",
|
|
||||||
"Text": "\u6587\u5b57",
|
|
||||||
"Quotations": "\u5f15\u7528",
|
|
||||||
"Mathematical": "\u6570\u5b66",
|
|
||||||
"Extended Latin": "\u62c9\u4e01\u8bed\u6269\u5145",
|
|
||||||
"Symbols": "\u7b26\u53f7",
|
|
||||||
"Arrows": "\u7bad\u5934",
|
|
||||||
"User Defined": "\u81ea\u5b9a\u4e49",
|
|
||||||
"dollar sign": "\u7f8e\u5143\u7b26\u53f7",
|
|
||||||
"currency sign": "\u8d27\u5e01\u7b26\u53f7",
|
|
||||||
"euro-currency sign": "\u6b27\u5143\u7b26\u53f7",
|
|
||||||
"colon sign": "\u5192\u53f7",
|
|
||||||
"cruzeiro sign": "\u514b\u9c81\u8d5b\u7f57\u5e01\u7b26\u53f7",
|
|
||||||
"french franc sign": "\u6cd5\u90ce\u7b26\u53f7",
|
|
||||||
"lira sign": "\u91cc\u62c9\u7b26\u53f7",
|
|
||||||
"mill sign": "\u5bc6\u5c14\u7b26\u53f7",
|
|
||||||
"naira sign": "\u5948\u62c9\u7b26\u53f7",
|
|
||||||
"peseta sign": "\u6bd4\u585e\u5854\u7b26\u53f7",
|
|
||||||
"rupee sign": "\u5362\u6bd4\u7b26\u53f7",
|
|
||||||
"won sign": "\u97e9\u5143\u7b26\u53f7",
|
|
||||||
"new sheqel sign": "\u65b0\u8c22\u514b\u5c14\u7b26\u53f7",
|
|
||||||
"dong sign": "\u8d8a\u5357\u76fe\u7b26\u53f7",
|
|
||||||
"kip sign": "\u8001\u631d\u57fa\u666e\u7b26\u53f7",
|
|
||||||
"tugrik sign": "\u56fe\u683c\u91cc\u514b\u7b26\u53f7",
|
|
||||||
"drachma sign": "\u5fb7\u62c9\u514b\u9a6c\u7b26\u53f7",
|
|
||||||
"german penny symbol": "\u5fb7\u56fd\u4fbf\u58eb\u7b26\u53f7",
|
|
||||||
"peso sign": "\u6bd4\u7d22\u7b26\u53f7",
|
|
||||||
"guarani sign": "\u74dc\u62c9\u5c3c\u7b26\u53f7",
|
|
||||||
"austral sign": "\u6fb3\u5143\u7b26\u53f7",
|
|
||||||
"hryvnia sign": "\u683c\u91cc\u592b\u5c3c\u4e9a\u7b26\u53f7",
|
|
||||||
"cedi sign": "\u585e\u5730\u7b26\u53f7",
|
|
||||||
"livre tournois sign": "\u91cc\u5f17\u5f17\u5c14\u7b26\u53f7",
|
|
||||||
"spesmilo sign": "spesmilo\u7b26\u53f7",
|
|
||||||
"tenge sign": "\u575a\u6208\u7b26\u53f7",
|
|
||||||
"indian rupee sign": "\u5370\u5ea6\u5362\u6bd4",
|
|
||||||
"turkish lira sign": "\u571f\u8033\u5176\u91cc\u62c9",
|
|
||||||
"nordic mark sign": "\u5317\u6b27\u9a6c\u514b",
|
|
||||||
"manat sign": "\u9a6c\u7eb3\u7279\u7b26\u53f7",
|
|
||||||
"ruble sign": "\u5362\u5e03\u7b26\u53f7",
|
|
||||||
"yen character": "\u65e5\u5143\u5b57\u6837",
|
|
||||||
"yuan character": "\u4eba\u6c11\u5e01\u5143\u5b57\u6837",
|
|
||||||
"yuan character, in hong kong and taiwan": "\u5143\u5b57\u6837\uff08\u6e2f\u53f0\u5730\u533a\uff09",
|
|
||||||
"yen\/yuan character variant one": "\u5143\u5b57\u6837\uff08\u5927\u5199\uff09",
|
|
||||||
"Loading emoticons...": "\u52a0\u8f7d\u8868\u60c5\u7b26\u53f7...",
|
|
||||||
"Could not load emoticons": "\u4e0d\u80fd\u52a0\u8f7d\u8868\u60c5\u7b26\u53f7",
|
|
||||||
"People": "\u4eba\u7c7b",
|
|
||||||
"Animals and Nature": "\u52a8\u7269\u548c\u81ea\u7136",
|
|
||||||
"Food and Drink": "\u98df\u7269\u548c\u996e\u54c1",
|
|
||||||
"Activity": "\u6d3b\u52a8",
|
|
||||||
"Travel and Places": "\u65c5\u6e38\u548c\u5730\u70b9",
|
|
||||||
"Objects": "\u7269\u4ef6",
|
|
||||||
"Flags": "\u65d7\u5e1c",
|
|
||||||
"Characters": "\u5b57\u7b26",
|
|
||||||
"Characters (no spaces)": "\u5b57\u7b26(\u65e0\u7a7a\u683c)",
|
|
||||||
"{0} characters": "{0} \u4e2a\u5b57\u7b26",
|
|
||||||
"Error: Form submit field collision.": "\u9519\u8bef: \u8868\u5355\u63d0\u4ea4\u5b57\u6bb5\u51b2\u7a81\u3002",
|
|
||||||
"Error: No form element found.": "\u9519\u8bef: \u6ca1\u6709\u8868\u5355\u63a7\u4ef6\u3002",
|
|
||||||
"Update": "\u66f4\u65b0",
|
|
||||||
"Color swatch": "\u989c\u8272\u6837\u672c",
|
|
||||||
"Turquoise": "\u9752\u7eff\u8272",
|
|
||||||
"Green": "\u7eff\u8272",
|
|
||||||
"Blue": "\u84dd\u8272",
|
|
||||||
"Purple": "\u7d2b\u8272",
|
|
||||||
"Navy Blue": "\u6d77\u519b\u84dd",
|
|
||||||
"Dark Turquoise": "\u6df1\u84dd\u7eff\u8272",
|
|
||||||
"Dark Green": "\u6df1\u7eff\u8272",
|
|
||||||
"Medium Blue": "\u4e2d\u84dd\u8272",
|
|
||||||
"Medium Purple": "\u4e2d\u7d2b\u8272",
|
|
||||||
"Midnight Blue": "\u6df1\u84dd\u8272",
|
|
||||||
"Yellow": "\u9ec4\u8272",
|
|
||||||
"Orange": "\u6a59\u8272",
|
|
||||||
"Red": "\u7ea2\u8272",
|
|
||||||
"Light Gray": "\u6d45\u7070\u8272",
|
|
||||||
"Gray": "\u7070\u8272",
|
|
||||||
"Dark Yellow": "\u6697\u9ec4\u8272",
|
|
||||||
"Dark Orange": "\u6df1\u6a59\u8272",
|
|
||||||
"Dark Red": "\u6df1\u7ea2\u8272",
|
|
||||||
"Medium Gray": "\u4e2d\u7070\u8272",
|
|
||||||
"Dark Gray": "\u6df1\u7070\u8272",
|
|
||||||
"Light Green": "\u6d45\u7eff\u8272",
|
|
||||||
"Light Yellow": "\u6d45\u9ec4\u8272",
|
|
||||||
"Light Red": "\u6d45\u7ea2\u8272",
|
|
||||||
"Light Purple": "\u6d45\u7d2b\u8272",
|
|
||||||
"Light Blue": "\u6d45\u84dd\u8272",
|
|
||||||
"Dark Purple": "\u6df1\u7d2b\u8272",
|
|
||||||
"Dark Blue": "\u6df1\u84dd\u8272",
|
|
||||||
"Black": "\u9ed1\u8272",
|
|
||||||
"White": "\u767d\u8272",
|
|
||||||
"Switch to or from fullscreen mode": "\u5207\u6362\u5168\u5c4f\u6a21\u5f0f",
|
|
||||||
"Open help dialog": "\u6253\u5f00\u5e2e\u52a9\u5bf9\u8bdd\u6846",
|
|
||||||
"history": "\u5386\u53f2",
|
|
||||||
"styles": "\u6837\u5f0f",
|
|
||||||
"formatting": "\u683c\u5f0f\u5316",
|
|
||||||
"alignment": "\u5bf9\u9f50",
|
|
||||||
"indentation": "\u7f29\u8fdb",
|
|
||||||
"permanent pen": "\u8bb0\u53f7\u7b14",
|
|
||||||
"comments": "\u5907\u6ce8",
|
|
||||||
"Format Painter": "\u683c\u5f0f\u5237",
|
|
||||||
"Insert\/edit iframe": "\u63d2\u5165\/\u7f16\u8f91\u6846\u67b6",
|
|
||||||
"Capitalization": "\u5927\u5199",
|
|
||||||
"lowercase": "\u5c0f\u5199",
|
|
||||||
"UPPERCASE": "\u5927\u5199",
|
|
||||||
"Title Case": "\u9996\u5b57\u6bcd\u5927\u5199",
|
|
||||||
"Permanent Pen Properties": "\u6c38\u4e45\u7b14\u5c5e\u6027",
|
|
||||||
"Permanent pen properties...": "\u6c38\u4e45\u7b14\u5c5e\u6027...",
|
|
||||||
"Font": "\u5b57\u4f53",
|
|
||||||
"Size": "\u5b57\u53f7",
|
|
||||||
"More...": "\u66f4\u591a...",
|
|
||||||
"Spellcheck Language": "\u62fc\u5199\u68c0\u67e5\u8bed\u8a00",
|
|
||||||
"Select...": "\u9009\u62e9...",
|
|
||||||
"Preferences": "\u9996\u9009\u9879",
|
|
||||||
"Yes": "\u662f",
|
|
||||||
"No": "\u5426",
|
|
||||||
"Keyboard Navigation": "\u952e\u76d8\u6307\u5f15",
|
|
||||||
"Version": "\u7248\u672c",
|
|
||||||
"Anchor": "\u951a\u70b9",
|
|
||||||
"Special character": "\u7279\u6b8a\u7b26\u53f7",
|
|
||||||
"Code sample": "\u4ee3\u7801\u793a\u4f8b",
|
|
||||||
"Color": "\u989c\u8272",
|
|
||||||
"Emoticons": "\u8868\u60c5",
|
|
||||||
"Document properties": "\u6587\u6863\u5c5e\u6027",
|
|
||||||
"Image": "\u56fe\u7247",
|
|
||||||
"Insert link": "\u63d2\u5165\u94fe\u63a5",
|
|
||||||
"Target": "\u6253\u5f00\u65b9\u5f0f",
|
|
||||||
"Link": "\u94fe\u63a5",
|
|
||||||
"Poster": "\u5c01\u9762",
|
|
||||||
"Media": "\u5a92\u4f53",
|
|
||||||
"Print": "\u6253\u5370",
|
|
||||||
"Prev": "\u4e0a\u4e00\u4e2a",
|
|
||||||
"Find and replace": "\u67e5\u627e\u548c\u66ff\u6362",
|
|
||||||
"Whole words": "\u5168\u5b57\u5339\u914d",
|
|
||||||
"Spellcheck": "\u62fc\u5199\u68c0\u67e5",
|
|
||||||
"Caption": "\u6807\u9898",
|
|
||||||
"Insert template": "\u63d2\u5165\u6a21\u677f"
|
|
||||||
});
|
|
@ -1,145 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
(function () {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
||||||
|
|
||||||
var isValidId = function (id) {
|
|
||||||
return /^[A-Za-z][A-Za-z0-9\-:._]*$/.test(id);
|
|
||||||
};
|
|
||||||
var getId = function (editor) {
|
|
||||||
var selectedNode = editor.selection.getNode();
|
|
||||||
var isAnchor = selectedNode.tagName === 'A' && editor.dom.getAttrib(selectedNode, 'href') === '';
|
|
||||||
return isAnchor ? selectedNode.getAttribute('id') || selectedNode.getAttribute('name') : '';
|
|
||||||
};
|
|
||||||
var insert = function (editor, id) {
|
|
||||||
var selectedNode = editor.selection.getNode();
|
|
||||||
var isAnchor = selectedNode.tagName === 'A' && editor.dom.getAttrib(selectedNode, 'href') === '';
|
|
||||||
if (isAnchor) {
|
|
||||||
selectedNode.removeAttribute('name');
|
|
||||||
selectedNode.id = id;
|
|
||||||
editor.undoManager.add();
|
|
||||||
} else {
|
|
||||||
editor.focus();
|
|
||||||
editor.selection.collapse(true);
|
|
||||||
editor.execCommand('mceInsertContent', false, editor.dom.createHTML('a', { id: id }));
|
|
||||||
}
|
|
||||||
};
|
|
||||||
var Anchor = {
|
|
||||||
isValidId: isValidId,
|
|
||||||
getId: getId,
|
|
||||||
insert: insert
|
|
||||||
};
|
|
||||||
|
|
||||||
var insertAnchor = function (editor, newId) {
|
|
||||||
if (!Anchor.isValidId(newId)) {
|
|
||||||
editor.windowManager.alert('Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.');
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
Anchor.insert(editor, newId);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
var open = function (editor) {
|
|
||||||
var currentId = Anchor.getId(editor);
|
|
||||||
editor.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: true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
initialData: { id: currentId },
|
|
||||||
onSubmit: function (api) {
|
|
||||||
if (!insertAnchor(editor, api.getData().id)) {
|
|
||||||
api.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var Dialog = { open: open };
|
|
||||||
|
|
||||||
var register = function (editor) {
|
|
||||||
editor.addCommand('mceAnchor', function () {
|
|
||||||
Dialog.open(editor);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var Commands = { register: register };
|
|
||||||
|
|
||||||
var isAnchorNode = function (node) {
|
|
||||||
return !node.attr('href') && (node.attr('id') || node.attr('name')) && !node.firstChild;
|
|
||||||
};
|
|
||||||
var setContentEditable = function (state) {
|
|
||||||
return function (nodes) {
|
|
||||||
for (var i = 0; i < nodes.length; i++) {
|
|
||||||
if (isAnchorNode(nodes[i])) {
|
|
||||||
nodes[i].attr('contenteditable', state);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
};
|
|
||||||
var setup = function (editor) {
|
|
||||||
editor.on('PreInit', function () {
|
|
||||||
editor.parser.addNodeFilter('a', setContentEditable('false'));
|
|
||||||
editor.serializer.addNodeFilter('a', setContentEditable(null));
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var FilterContent = { setup: setup };
|
|
||||||
|
|
||||||
var register$1 = function (editor) {
|
|
||||||
editor.ui.registry.addToggleButton('anchor', {
|
|
||||||
icon: 'bookmark',
|
|
||||||
tooltip: 'Anchor',
|
|
||||||
onAction: function () {
|
|
||||||
return editor.execCommand('mceAnchor');
|
|
||||||
},
|
|
||||||
onSetup: function (buttonApi) {
|
|
||||||
return editor.selection.selectorChangedWithUnbind('a:not([href])', buttonApi.setActive).unbind;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
editor.ui.registry.addMenuItem('anchor', {
|
|
||||||
icon: 'bookmark',
|
|
||||||
text: 'Anchor...',
|
|
||||||
onAction: function () {
|
|
||||||
return editor.execCommand('mceAnchor');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var Buttons = { register: register$1 };
|
|
||||||
|
|
||||||
function Plugin () {
|
|
||||||
global.add('anchor', function (editor) {
|
|
||||||
FilterContent.setup(editor);
|
|
||||||
Commands.register(editor);
|
|
||||||
Buttons.register(editor);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
Plugin();
|
|
||||||
|
|
||||||
}());
|
|
@ -1,22 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
(function (domGlobals) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
||||||
|
|
||||||
function Plugin () {
|
|
||||||
global.add('colorpicker', function () {
|
|
||||||
domGlobals.console.warn('Color picker plugin is now built in to the core editor, please remove it from your editor configuration');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
Plugin();
|
|
||||||
|
|
||||||
}(window));
|
|
@ -1,9 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
!function(n){"use strict";var o=tinymce.util.Tools.resolve("tinymce.PluginManager");!function e(){o.add("contextmenu",function(){n.console.warn("Context menu plugin is now built in to the core editor, please remove it from your editor configuration")})}()}(window);
|
|
@ -1,9 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(n){n.addCommand("InsertHorizontalRule",function(){n.execCommand("mceInsertContent",!1,"<hr />")})},t=function(n){n.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}}),n.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}})};!function e(){n.add("hr",function(n){o(n),t(n)})}()}();
|
|
@ -1,407 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
(function () {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
||||||
|
|
||||||
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
|
||||||
|
|
||||||
var global$2 = tinymce.util.Tools.resolve('tinymce.EditorManager');
|
|
||||||
|
|
||||||
var global$3 = tinymce.util.Tools.resolve('tinymce.Env');
|
|
||||||
|
|
||||||
var global$4 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
||||||
|
|
||||||
var shouldMergeClasses = function (editor) {
|
|
||||||
return editor.getParam('importcss_merge_classes');
|
|
||||||
};
|
|
||||||
var shouldImportExclusive = function (editor) {
|
|
||||||
return editor.getParam('importcss_exclusive');
|
|
||||||
};
|
|
||||||
var getSelectorConverter = function (editor) {
|
|
||||||
return editor.getParam('importcss_selector_converter');
|
|
||||||
};
|
|
||||||
var getSelectorFilter = function (editor) {
|
|
||||||
return editor.getParam('importcss_selector_filter');
|
|
||||||
};
|
|
||||||
var getCssGroups = function (editor) {
|
|
||||||
return editor.getParam('importcss_groups');
|
|
||||||
};
|
|
||||||
var shouldAppend = function (editor) {
|
|
||||||
return editor.getParam('importcss_append');
|
|
||||||
};
|
|
||||||
var getFileFilter = function (editor) {
|
|
||||||
return editor.getParam('importcss_file_filter');
|
|
||||||
};
|
|
||||||
var Settings = {
|
|
||||||
shouldMergeClasses: shouldMergeClasses,
|
|
||||||
shouldImportExclusive: shouldImportExclusive,
|
|
||||||
getSelectorConverter: getSelectorConverter,
|
|
||||||
getSelectorFilter: getSelectorFilter,
|
|
||||||
getCssGroups: getCssGroups,
|
|
||||||
shouldAppend: shouldAppend,
|
|
||||||
getFileFilter: getFileFilter
|
|
||||||
};
|
|
||||||
|
|
||||||
var noop = function () {
|
|
||||||
};
|
|
||||||
var constant = function (value) {
|
|
||||||
return function () {
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
var never = constant(false);
|
|
||||||
var always = constant(true);
|
|
||||||
|
|
||||||
var none = function () {
|
|
||||||
return NONE;
|
|
||||||
};
|
|
||||||
var NONE = function () {
|
|
||||||
var eq = function (o) {
|
|
||||||
return o.isNone();
|
|
||||||
};
|
|
||||||
var call = function (thunk) {
|
|
||||||
return thunk();
|
|
||||||
};
|
|
||||||
var id = function (n) {
|
|
||||||
return n;
|
|
||||||
};
|
|
||||||
var me = {
|
|
||||||
fold: function (n, s) {
|
|
||||||
return n();
|
|
||||||
},
|
|
||||||
is: never,
|
|
||||||
isSome: never,
|
|
||||||
isNone: always,
|
|
||||||
getOr: id,
|
|
||||||
getOrThunk: call,
|
|
||||||
getOrDie: function (msg) {
|
|
||||||
throw new Error(msg || 'error: getOrDie called on none.');
|
|
||||||
},
|
|
||||||
getOrNull: constant(null),
|
|
||||||
getOrUndefined: constant(undefined),
|
|
||||||
or: id,
|
|
||||||
orThunk: call,
|
|
||||||
map: none,
|
|
||||||
each: noop,
|
|
||||||
bind: none,
|
|
||||||
exists: never,
|
|
||||||
forall: always,
|
|
||||||
filter: none,
|
|
||||||
equals: eq,
|
|
||||||
equals_: eq,
|
|
||||||
toArray: function () {
|
|
||||||
return [];
|
|
||||||
},
|
|
||||||
toString: constant('none()')
|
|
||||||
};
|
|
||||||
if (Object.freeze) {
|
|
||||||
Object.freeze(me);
|
|
||||||
}
|
|
||||||
return me;
|
|
||||||
}();
|
|
||||||
|
|
||||||
var typeOf = function (x) {
|
|
||||||
if (x === null) {
|
|
||||||
return 'null';
|
|
||||||
}
|
|
||||||
var t = typeof x;
|
|
||||||
if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
|
|
||||||
return 'array';
|
|
||||||
}
|
|
||||||
if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
|
|
||||||
return 'string';
|
|
||||||
}
|
|
||||||
return t;
|
|
||||||
};
|
|
||||||
var isType = function (type) {
|
|
||||||
return function (value) {
|
|
||||||
return typeOf(value) === type;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
var isArray = isType('array');
|
|
||||||
var isFunction = isType('function');
|
|
||||||
|
|
||||||
var nativeSlice = Array.prototype.slice;
|
|
||||||
var nativePush = Array.prototype.push;
|
|
||||||
var map = function (xs, f) {
|
|
||||||
var len = xs.length;
|
|
||||||
var r = new Array(len);
|
|
||||||
for (var i = 0; i < len; i++) {
|
|
||||||
var x = xs[i];
|
|
||||||
r[i] = f(x, i);
|
|
||||||
}
|
|
||||||
return r;
|
|
||||||
};
|
|
||||||
var flatten = function (xs) {
|
|
||||||
var r = [];
|
|
||||||
for (var i = 0, len = xs.length; i < len; ++i) {
|
|
||||||
if (!isArray(xs[i])) {
|
|
||||||
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
|
||||||
}
|
|
||||||
nativePush.apply(r, xs[i]);
|
|
||||||
}
|
|
||||||
return r;
|
|
||||||
};
|
|
||||||
var bind = function (xs, f) {
|
|
||||||
return flatten(map(xs, f));
|
|
||||||
};
|
|
||||||
var from = isFunction(Array.from) ? Array.from : function (x) {
|
|
||||||
return nativeSlice.call(x);
|
|
||||||
};
|
|
||||||
|
|
||||||
var generate = function () {
|
|
||||||
var ungroupedOrder = [];
|
|
||||||
var groupOrder = [];
|
|
||||||
var groups = {};
|
|
||||||
var addItemToGroup = function (groupTitle, itemInfo) {
|
|
||||||
if (groups[groupTitle]) {
|
|
||||||
groups[groupTitle].push(itemInfo);
|
|
||||||
} else {
|
|
||||||
groupOrder.push(groupTitle);
|
|
||||||
groups[groupTitle] = [itemInfo];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
var addItem = function (itemInfo) {
|
|
||||||
ungroupedOrder.push(itemInfo);
|
|
||||||
};
|
|
||||||
var toFormats = function () {
|
|
||||||
var groupItems = bind(groupOrder, function (g) {
|
|
||||||
var items = groups[g];
|
|
||||||
return items.length === 0 ? [] : [{
|
|
||||||
title: g,
|
|
||||||
items: items
|
|
||||||
}];
|
|
||||||
});
|
|
||||||
return groupItems.concat(ungroupedOrder);
|
|
||||||
};
|
|
||||||
return {
|
|
||||||
addItemToGroup: addItemToGroup,
|
|
||||||
addItem: addItem,
|
|
||||||
toFormats: toFormats
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
var removeCacheSuffix = function (url) {
|
|
||||||
var cacheSuffix = global$3.cacheSuffix;
|
|
||||||
if (typeof url === 'string') {
|
|
||||||
url = url.replace('?' + cacheSuffix, '').replace('&' + cacheSuffix, '');
|
|
||||||
}
|
|
||||||
return url;
|
|
||||||
};
|
|
||||||
var isSkinContentCss = function (editor, href) {
|
|
||||||
var settings = editor.settings, skin = settings.skin !== false ? settings.skin || 'oxide' : false;
|
|
||||||
if (skin) {
|
|
||||||
var skinUrl = settings.skin_url ? editor.documentBaseURI.toAbsolute(settings.skin_url) : global$2.baseURL + '/skins/ui/' + skin;
|
|
||||||
var contentSkinUrlPart = global$2.baseURL + '/skins/content/';
|
|
||||||
return href === skinUrl + '/content' + (editor.inline ? '.inline' : '') + '.min.css' || href.indexOf(contentSkinUrlPart) !== -1;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
var compileFilter = function (filter) {
|
|
||||||
if (typeof filter === 'string') {
|
|
||||||
return function (value) {
|
|
||||||
return value.indexOf(filter) !== -1;
|
|
||||||
};
|
|
||||||
} else if (filter instanceof RegExp) {
|
|
||||||
return function (value) {
|
|
||||||
return filter.test(value);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return filter;
|
|
||||||
};
|
|
||||||
var getSelectors = function (editor, doc, fileFilter) {
|
|
||||||
var selectors = [], contentCSSUrls = {};
|
|
||||||
function append(styleSheet, imported) {
|
|
||||||
var href = styleSheet.href, rules;
|
|
||||||
href = removeCacheSuffix(href);
|
|
||||||
if (!href || !fileFilter(href, imported) || isSkinContentCss(editor, href)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
global$4.each(styleSheet.imports, function (styleSheet) {
|
|
||||||
append(styleSheet, true);
|
|
||||||
});
|
|
||||||
try {
|
|
||||||
rules = styleSheet.cssRules || styleSheet.rules;
|
|
||||||
} catch (e) {
|
|
||||||
}
|
|
||||||
global$4.each(rules, function (cssRule) {
|
|
||||||
if (cssRule.styleSheet) {
|
|
||||||
append(cssRule.styleSheet, true);
|
|
||||||
} else if (cssRule.selectorText) {
|
|
||||||
global$4.each(cssRule.selectorText.split(','), function (selector) {
|
|
||||||
selectors.push(global$4.trim(selector));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
global$4.each(editor.contentCSS, function (url) {
|
|
||||||
contentCSSUrls[url] = true;
|
|
||||||
});
|
|
||||||
if (!fileFilter) {
|
|
||||||
fileFilter = function (href, imported) {
|
|
||||||
return imported || contentCSSUrls[href];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
global$4.each(doc.styleSheets, function (styleSheet) {
|
|
||||||
append(styleSheet);
|
|
||||||
});
|
|
||||||
} catch (e) {
|
|
||||||
}
|
|
||||||
return selectors;
|
|
||||||
};
|
|
||||||
var defaultConvertSelectorToFormat = function (editor, selectorText) {
|
|
||||||
var format;
|
|
||||||
var selector = /^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(selectorText);
|
|
||||||
if (!selector) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var elementName = selector[1];
|
|
||||||
var classes = selector[2].substr(1).split('.').join(' ');
|
|
||||||
var inlineSelectorElements = global$4.makeMap('a,img');
|
|
||||||
if (selector[1]) {
|
|
||||||
format = { title: selectorText };
|
|
||||||
if (editor.schema.getTextBlockElements()[elementName]) {
|
|
||||||
format.block = elementName;
|
|
||||||
} else if (editor.schema.getBlockElements()[elementName] || inlineSelectorElements[elementName.toLowerCase()]) {
|
|
||||||
format.selector = elementName;
|
|
||||||
} else {
|
|
||||||
format.inline = elementName;
|
|
||||||
}
|
|
||||||
} else if (selector[2]) {
|
|
||||||
format = {
|
|
||||||
inline: 'span',
|
|
||||||
title: selectorText.substr(1),
|
|
||||||
classes: classes
|
|
||||||
};
|
|
||||||
}
|
|
||||||
if (Settings.shouldMergeClasses(editor) !== false) {
|
|
||||||
format.classes = classes;
|
|
||||||
} else {
|
|
||||||
format.attributes = { class: classes };
|
|
||||||
}
|
|
||||||
return format;
|
|
||||||
};
|
|
||||||
var getGroupsBySelector = function (groups, selector) {
|
|
||||||
return global$4.grep(groups, function (group) {
|
|
||||||
return !group.filter || group.filter(selector);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var compileUserDefinedGroups = function (groups) {
|
|
||||||
return global$4.map(groups, function (group) {
|
|
||||||
return global$4.extend({}, group, {
|
|
||||||
original: group,
|
|
||||||
selectors: {},
|
|
||||||
filter: compileFilter(group.filter),
|
|
||||||
item: {
|
|
||||||
text: group.title,
|
|
||||||
menu: []
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var isExclusiveMode = function (editor, group) {
|
|
||||||
return group === null || Settings.shouldImportExclusive(editor) !== false;
|
|
||||||
};
|
|
||||||
var isUniqueSelector = function (editor, selector, group, globallyUniqueSelectors) {
|
|
||||||
return !(isExclusiveMode(editor, group) ? selector in globallyUniqueSelectors : selector in group.selectors);
|
|
||||||
};
|
|
||||||
var markUniqueSelector = function (editor, selector, group, globallyUniqueSelectors) {
|
|
||||||
if (isExclusiveMode(editor, group)) {
|
|
||||||
globallyUniqueSelectors[selector] = true;
|
|
||||||
} else {
|
|
||||||
group.selectors[selector] = true;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
var convertSelectorToFormat = function (editor, plugin, selector, group) {
|
|
||||||
var selectorConverter;
|
|
||||||
if (group && group.selector_converter) {
|
|
||||||
selectorConverter = group.selector_converter;
|
|
||||||
} else if (Settings.getSelectorConverter(editor)) {
|
|
||||||
selectorConverter = Settings.getSelectorConverter(editor);
|
|
||||||
} else {
|
|
||||||
selectorConverter = function () {
|
|
||||||
return defaultConvertSelectorToFormat(editor, selector);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return selectorConverter.call(plugin, selector, group);
|
|
||||||
};
|
|
||||||
var setup = function (editor) {
|
|
||||||
editor.on('init', function (e) {
|
|
||||||
var model = generate();
|
|
||||||
var globallyUniqueSelectors = {};
|
|
||||||
var selectorFilter = compileFilter(Settings.getSelectorFilter(editor));
|
|
||||||
var groups = compileUserDefinedGroups(Settings.getCssGroups(editor));
|
|
||||||
var processSelector = function (selector, group) {
|
|
||||||
if (isUniqueSelector(editor, selector, group, globallyUniqueSelectors)) {
|
|
||||||
markUniqueSelector(editor, selector, group, globallyUniqueSelectors);
|
|
||||||
var format = convertSelectorToFormat(editor, editor.plugins.importcss, selector, group);
|
|
||||||
if (format) {
|
|
||||||
var formatName = format.name || global$1.DOM.uniqueId();
|
|
||||||
editor.formatter.register(formatName, format);
|
|
||||||
return global$4.extend({}, {
|
|
||||||
title: format.title,
|
|
||||||
format: formatName
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
global$4.each(getSelectors(editor, editor.getDoc(), compileFilter(Settings.getFileFilter(editor))), function (selector) {
|
|
||||||
if (selector.indexOf('.mce-') === -1) {
|
|
||||||
if (!selectorFilter || selectorFilter(selector)) {
|
|
||||||
var selectorGroups = getGroupsBySelector(groups, selector);
|
|
||||||
if (selectorGroups.length > 0) {
|
|
||||||
global$4.each(selectorGroups, function (group) {
|
|
||||||
var menuItem = processSelector(selector, group);
|
|
||||||
if (menuItem) {
|
|
||||||
model.addItemToGroup(group.title, menuItem);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
var menuItem = processSelector(selector, null);
|
|
||||||
if (menuItem) {
|
|
||||||
model.addItem(menuItem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
var items = model.toFormats();
|
|
||||||
editor.fire('addStyleModifications', {
|
|
||||||
items: items,
|
|
||||||
replace: !Settings.shouldAppend(editor)
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var ImportCss = {
|
|
||||||
defaultConvertSelectorToFormat: defaultConvertSelectorToFormat,
|
|
||||||
setup: setup
|
|
||||||
};
|
|
||||||
|
|
||||||
var get = function (editor) {
|
|
||||||
var convertSelectorToFormat = function (selectorText) {
|
|
||||||
return ImportCss.defaultConvertSelectorToFormat(editor, selectorText);
|
|
||||||
};
|
|
||||||
return { convertSelectorToFormat: convertSelectorToFormat };
|
|
||||||
};
|
|
||||||
var Api = { get: get };
|
|
||||||
|
|
||||||
function Plugin () {
|
|
||||||
global.add('importcss', function (editor) {
|
|
||||||
ImportCss.setup(editor);
|
|
||||||
return Api.get(editor);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
Plugin();
|
|
||||||
|
|
||||||
}());
|
|
@ -1,9 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
!function(){"use strict";function t(){}function n(t){return function(){return t}}function e(){return h}var r,o=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),f=tinymce.util.Tools.resolve("tinymce.EditorManager"),l=tinymce.util.Tools.resolve("tinymce.Env"),m=tinymce.util.Tools.resolve("tinymce.util.Tools"),c=function(t){return t.getParam("importcss_merge_classes")},i=function(t){return t.getParam("importcss_exclusive")},p=function(t){return t.getParam("importcss_selector_converter")},g=function(t){return t.getParam("importcss_selector_filter")},y=function(t){return t.getParam("importcss_groups")},v=function(t){return t.getParam("importcss_append")},d=function(t){return t.getParam("importcss_file_filter")},u=n(!1),s=n(!0),h=(r={fold:function(t,n){return t()},is:u,isSome:u,isNone:s,getOr:O,getOrThunk:x,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:n(null),getOrUndefined:n(undefined),or:O,orThunk:x,map:e,each:t,bind:e,exists:u,forall:s,filter:e,equals:_,equals_:_,toArray:function(){return[]},toString:n("none()")},Object.freeze&&Object.freeze(r),r);function _(t){return t.isNone()}function x(t){return t()}function O(t){return t}function T(n){return function(t){return function(t){if(null===t)return"null";var n=typeof t;return"object"==n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n}(t)===n}}function b(t,n){return function(t){for(var n=[],e=0,r=t.length;e<r;++e){if(!w(t[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+t);M.apply(n,t[e])}return n}(function(t,n){for(var e=t.length,r=new Array(e),o=0;o<e;o++){var i=t[o];r[o]=n(i,o)}return r}(t,n))}function k(n){return"string"==typeof n?function(t){return-1!==t.indexOf(n)}:n instanceof RegExp?function(t){return n.test(t)}:n}function S(i,t,u){var c=[],e={};function s(t,n){var e,r=t.href;if((r=function(t){var n=l.cacheSuffix;return"string"==typeof t&&(t=t.replace("?"+n,"").replace("&"+n,"")),t}(r))&&u(r,n)&&!function(t,n){var e=t.settings,r=!1!==e.skin&&(e.skin||"oxide");if(r){var o=e.skin_url?t.documentBaseURI.toAbsolute(e.skin_url):f.baseURL+"/skins/ui/"+r,i=f.baseURL+"/skins/content/";return n===o+"/content"+(t.inline?".inline":"")+".min.css"||-1!==n.indexOf(i)}return!1}(i,r)){m.each(t.imports,function(t){s(t,!0)});try{e=t.cssRules||t.rules}catch(o){}m.each(e,function(t){t.styleSheet?s(t.styleSheet,!0):t.selectorText&&m.each(t.selectorText.split(","),function(t){c.push(m.trim(t))})})}}m.each(i.contentCSS,function(t){e[t]=!0}),u=u||function(t,n){return n||e[t]};try{m.each(t.styleSheets,function(t){s(t)})}catch(n){}return c}function A(t,n){var e,r=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(n);if(r){var o=r[1],i=r[2].substr(1).split(".").join(" "),u=m.makeMap("a,img");return r[1]?(e={title:n},t.schema.getTextBlockElements()[o]?e.block=o:t.schema.getBlockElements()[o]||u[o.toLowerCase()]?e.selector=o:e.inline=o):r[2]&&(e={inline:"span",title:n.substr(1),classes:i}),!1!==c(t)?e.classes=i:e.attributes={"class":i},e}}function P(t,n){return null===n||!1!==i(t)}var w=T("array"),E=T("function"),I=Array.prototype.slice,M=Array.prototype.push,j=(E(Array.from)&&Array.from,A),D=function(s){s.on("init",function(t){function r(t,n){if(function(t,n,e,r){return!(P(t,e)?n in r:n in e.selectors)}(s,t,n,i)){!function(t,n,e,r){P(t,e)?r[n]=!0:e.selectors[n]=!0}(s,t,n,i);var e=function(t,n,e,r){return(r&&r.selector_converter?r.selector_converter:p(t)?p(t):function(){return A(t,e)}).call(n,e,r)}(s,s.plugins.importcss,t,n);if(e){var r=e.name||a.DOM.uniqueId();return s.formatter.register(r,e),m.extend({},{title:e.title,format:r})}}return null}var o=function(){var n=[],e=[],r={};return{addItemToGroup:function(t,n){r[t]?r[t].push(n):(e.push(t),r[t]=[n])},addItem:function(t){n.push(t)},toFormats:function(){return b(e,function(t){var n=r[t];return 0===n.length?[]:[{title:t,items:n}]}).concat(n)}}}(),i={},u=k(g(s)),c=function(t){return m.map(t,function(t){return m.extend({},t,{original:t,selectors:{},filter:k(t.filter),item:{text:t.title,menu:[]}})})}(y(s));m.each(S(s,s.getDoc(),k(d(s))),function(e){if(-1===e.indexOf(".mce-")&&(!u||u(e))){var t=function(t,n){return m.grep(t,function(t){return!t.filter||t.filter(n)})}(c,e);if(0<t.length)m.each(t,function(t){var n=r(e,t);n&&o.addItemToGroup(t.title,n)});else{var n=r(e,null);n&&o.addItem(n)}}});var n=o.toFormats();s.fire("addStyleModifications",{items:n,replace:!v(s)})})},R=function(n){return{convertSelectorToFormat:function(t){return j(n,t)}}};!function U(){o.add("importcss",function(t){return D(t),R(t)})}()}();
|
|
@ -1,198 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
(function () {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
||||||
|
|
||||||
var getDateFormat = function (editor) {
|
|
||||||
return editor.getParam('insertdatetime_dateformat', editor.translate('%Y-%m-%d'));
|
|
||||||
};
|
|
||||||
var getTimeFormat = function (editor) {
|
|
||||||
return editor.getParam('insertdatetime_timeformat', editor.translate('%H:%M:%S'));
|
|
||||||
};
|
|
||||||
var getFormats = function (editor) {
|
|
||||||
return editor.getParam('insertdatetime_formats', [
|
|
||||||
'%H:%M:%S',
|
|
||||||
'%Y-%m-%d',
|
|
||||||
'%I:%M:%S %p',
|
|
||||||
'%D'
|
|
||||||
]);
|
|
||||||
};
|
|
||||||
var getDefaultDateTime = function (editor) {
|
|
||||||
var formats = getFormats(editor);
|
|
||||||
return formats.length > 0 ? formats[0] : getTimeFormat(editor);
|
|
||||||
};
|
|
||||||
var shouldInsertTimeElement = function (editor) {
|
|
||||||
return editor.getParam('insertdatetime_element', false);
|
|
||||||
};
|
|
||||||
var Settings = {
|
|
||||||
getDateFormat: getDateFormat,
|
|
||||||
getTimeFormat: getTimeFormat,
|
|
||||||
getFormats: getFormats,
|
|
||||||
getDefaultDateTime: getDefaultDateTime,
|
|
||||||
shouldInsertTimeElement: shouldInsertTimeElement
|
|
||||||
};
|
|
||||||
|
|
||||||
var daysShort = 'Sun Mon Tue Wed Thu Fri Sat Sun'.split(' ');
|
|
||||||
var daysLong = 'Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday'.split(' ');
|
|
||||||
var monthsShort = 'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'.split(' ');
|
|
||||||
var monthsLong = 'January February March April May June July August September October November December'.split(' ');
|
|
||||||
var addZeros = function (value, len) {
|
|
||||||
value = '' + value;
|
|
||||||
if (value.length < len) {
|
|
||||||
for (var i = 0; i < len - value.length; i++) {
|
|
||||||
value = '0' + value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
var getDateTime = function (editor, fmt, date) {
|
|
||||||
date = date || new Date();
|
|
||||||
fmt = fmt.replace('%D', '%m/%d/%Y');
|
|
||||||
fmt = fmt.replace('%r', '%I:%M:%S %p');
|
|
||||||
fmt = fmt.replace('%Y', '' + date.getFullYear());
|
|
||||||
fmt = fmt.replace('%y', '' + date.getYear());
|
|
||||||
fmt = fmt.replace('%m', addZeros(date.getMonth() + 1, 2));
|
|
||||||
fmt = fmt.replace('%d', addZeros(date.getDate(), 2));
|
|
||||||
fmt = fmt.replace('%H', '' + addZeros(date.getHours(), 2));
|
|
||||||
fmt = fmt.replace('%M', '' + addZeros(date.getMinutes(), 2));
|
|
||||||
fmt = fmt.replace('%S', '' + addZeros(date.getSeconds(), 2));
|
|
||||||
fmt = fmt.replace('%I', '' + ((date.getHours() + 11) % 12 + 1));
|
|
||||||
fmt = fmt.replace('%p', '' + (date.getHours() < 12 ? 'AM' : 'PM'));
|
|
||||||
fmt = fmt.replace('%B', '' + editor.translate(monthsLong[date.getMonth()]));
|
|
||||||
fmt = fmt.replace('%b', '' + editor.translate(monthsShort[date.getMonth()]));
|
|
||||||
fmt = fmt.replace('%A', '' + editor.translate(daysLong[date.getDay()]));
|
|
||||||
fmt = fmt.replace('%a', '' + editor.translate(daysShort[date.getDay()]));
|
|
||||||
fmt = fmt.replace('%%', '%');
|
|
||||||
return fmt;
|
|
||||||
};
|
|
||||||
var updateElement = function (editor, timeElm, computerTime, userTime) {
|
|
||||||
var newTimeElm = editor.dom.create('time', { datetime: computerTime }, userTime);
|
|
||||||
timeElm.parentNode.insertBefore(newTimeElm, timeElm);
|
|
||||||
editor.dom.remove(timeElm);
|
|
||||||
editor.selection.select(newTimeElm, true);
|
|
||||||
editor.selection.collapse(false);
|
|
||||||
};
|
|
||||||
var insertDateTime = function (editor, format) {
|
|
||||||
if (Settings.shouldInsertTimeElement(editor)) {
|
|
||||||
var userTime = getDateTime(editor, format);
|
|
||||||
var computerTime = void 0;
|
|
||||||
if (/%[HMSIp]/.test(format)) {
|
|
||||||
computerTime = getDateTime(editor, '%Y-%m-%dT%H:%M');
|
|
||||||
} else {
|
|
||||||
computerTime = getDateTime(editor, '%Y-%m-%d');
|
|
||||||
}
|
|
||||||
var timeElm = editor.dom.getParent(editor.selection.getStart(), 'time');
|
|
||||||
if (timeElm) {
|
|
||||||
updateElement(editor, timeElm, computerTime, userTime);
|
|
||||||
} else {
|
|
||||||
editor.insertContent('<time datetime="' + computerTime + '">' + userTime + '</time>');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
editor.insertContent(getDateTime(editor, format));
|
|
||||||
}
|
|
||||||
};
|
|
||||||
var Actions = {
|
|
||||||
insertDateTime: insertDateTime,
|
|
||||||
getDateTime: getDateTime
|
|
||||||
};
|
|
||||||
|
|
||||||
var register = function (editor) {
|
|
||||||
editor.addCommand('mceInsertDate', function () {
|
|
||||||
Actions.insertDateTime(editor, Settings.getDateFormat(editor));
|
|
||||||
});
|
|
||||||
editor.addCommand('mceInsertTime', function () {
|
|
||||||
Actions.insertDateTime(editor, Settings.getTimeFormat(editor));
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var Commands = { register: register };
|
|
||||||
|
|
||||||
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
||||||
|
|
||||||
var Cell = function (initial) {
|
|
||||||
var value = initial;
|
|
||||||
var get = function () {
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
var set = function (v) {
|
|
||||||
value = v;
|
|
||||||
};
|
|
||||||
var clone = function () {
|
|
||||||
return Cell(get());
|
|
||||||
};
|
|
||||||
return {
|
|
||||||
get: get,
|
|
||||||
set: set,
|
|
||||||
clone: clone
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
var register$1 = function (editor) {
|
|
||||||
var formats = Settings.getFormats(editor);
|
|
||||||
var defaultFormat = Cell(Settings.getDefaultDateTime(editor));
|
|
||||||
editor.ui.registry.addSplitButton('insertdatetime', {
|
|
||||||
icon: 'insert-time',
|
|
||||||
tooltip: 'Insert date/time',
|
|
||||||
select: function (value) {
|
|
||||||
return value === defaultFormat.get();
|
|
||||||
},
|
|
||||||
fetch: function (done) {
|
|
||||||
done(global$1.map(formats, function (format) {
|
|
||||||
return {
|
|
||||||
type: 'choiceitem',
|
|
||||||
text: Actions.getDateTime(editor, format),
|
|
||||||
value: format
|
|
||||||
};
|
|
||||||
}));
|
|
||||||
},
|
|
||||||
onAction: function () {
|
|
||||||
var args = [];
|
|
||||||
for (var _i = 0; _i < arguments.length; _i++) {
|
|
||||||
args[_i] = arguments[_i];
|
|
||||||
}
|
|
||||||
Actions.insertDateTime(editor, defaultFormat.get());
|
|
||||||
},
|
|
||||||
onItemAction: function (_, value) {
|
|
||||||
defaultFormat.set(value);
|
|
||||||
Actions.insertDateTime(editor, value);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
var makeMenuItemHandler = function (format) {
|
|
||||||
return function () {
|
|
||||||
defaultFormat.set(format);
|
|
||||||
Actions.insertDateTime(editor, format);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
editor.ui.registry.addNestedMenuItem('insertdatetime', {
|
|
||||||
icon: 'insert-time',
|
|
||||||
text: 'Date/time',
|
|
||||||
getSubmenuItems: function () {
|
|
||||||
return global$1.map(formats, function (format) {
|
|
||||||
return {
|
|
||||||
type: 'menuitem',
|
|
||||||
text: Actions.getDateTime(editor, format),
|
|
||||||
onAction: makeMenuItemHandler(format)
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var Buttons = { register: register$1 };
|
|
||||||
|
|
||||||
function Plugin () {
|
|
||||||
global.add('insertdatetime', function (editor) {
|
|
||||||
Commands.register(editor);
|
|
||||||
Buttons.register(editor);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
Plugin();
|
|
||||||
|
|
||||||
}());
|
|
@ -1,9 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
!function(){"use strict";function n(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))}function r(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])}function a(e,t){if((e=""+e).length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e}function i(e,t,n){return n=n||new Date,t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%D","%m/%d/%Y")).replace("%r","%I:%M:%S %p")).replace("%Y",""+n.getFullYear())).replace("%y",""+n.getYear())).replace("%m",a(n.getMonth()+1,2))).replace("%d",a(n.getDate(),2))).replace("%H",""+a(n.getHours(),2))).replace("%M",""+a(n.getMinutes(),2))).replace("%S",""+a(n.getSeconds(),2))).replace("%I",""+((n.getHours()+11)%12+1))).replace("%p",n.getHours()<12?"AM":"PM")).replace("%B",""+e.translate(f[n.getMonth()]))).replace("%b",""+e.translate(d[n.getMonth()]))).replace("%A",""+e.translate(s[n.getDay()]))).replace("%a",""+e.translate(l[n.getDay()]))).replace("%%","%")}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d"))},o=n,u=r,c=function(e){var t=r(e);return 0<t.length?t[0]:n(e)},m=function(e){return e.getParam("insertdatetime_element",!1)},l="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),s="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),d="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),f="January February March April May June July August September October November December".split(" "),p=function(e,t){if(m(e)){var n=i(e,t),r=void 0;r=/%[HMSIp]/.test(t)?i(e,"%Y-%m-%dT%H:%M"):i(e,"%Y-%m-%d");var a=e.dom.getParent(e.selection.getStart(),"time");a?function(e,t,n,r){var a=e.dom.create("time",{datetime:n},r);t.parentNode.insertBefore(a,t),e.dom.remove(t),e.selection.select(a,!0),e.selection.collapse(!1)}(e,a,r,n):e.insertContent('<time datetime="'+r+'">'+n+"</time>")}else e.insertContent(i(e,t))},g=i,y=function(e){e.addCommand("mceInsertDate",function(){p(e,t(e))}),e.addCommand("mceInsertTime",function(){p(e,o(e))})},M=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=function(e){function t(){return n}var n=e;return{get:t,set:function(e){n=e},clone:function(){return S(t())}}},v=function(n){var t=u(n),r=S(c(n));n.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===r.get()},fetch:function(e){e(M.map(t,function(e){return{type:"choiceitem",text:g(n,e),value:e}}))},onAction:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];p(n,r.get())},onItemAction:function(e,t){r.set(t),p(n,t)}});n.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return M.map(t,function(e){return{type:"menuitem",text:g(n,e),onAction:function(e){return function(){r.set(e),p(n,e)}}(e)}})}})};!function h(){e.add("insertdatetime",function(e){y(e),v(e)})}()}();
|
|
@ -1,184 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
(function () {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
||||||
|
|
||||||
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
||||||
|
|
||||||
var getFontSizeFormats = function (editor) {
|
|
||||||
return editor.getParam('fontsize_formats');
|
|
||||||
};
|
|
||||||
var setFontSizeFormats = function (editor, fontsize_formats) {
|
|
||||||
editor.settings.fontsize_formats = fontsize_formats;
|
|
||||||
};
|
|
||||||
var getFontFormats = function (editor) {
|
|
||||||
return editor.getParam('font_formats');
|
|
||||||
};
|
|
||||||
var setFontFormats = function (editor, font_formats) {
|
|
||||||
editor.settings.font_formats = font_formats;
|
|
||||||
};
|
|
||||||
var getFontSizeStyleValues = function (editor) {
|
|
||||||
return editor.getParam('font_size_style_values', 'xx-small,x-small,small,medium,large,x-large,xx-large');
|
|
||||||
};
|
|
||||||
var setInlineStyles = function (editor, inline_styles) {
|
|
||||||
editor.settings.inline_styles = inline_styles;
|
|
||||||
};
|
|
||||||
var Settings = {
|
|
||||||
getFontFormats: getFontFormats,
|
|
||||||
getFontSizeFormats: getFontSizeFormats,
|
|
||||||
setFontSizeFormats: setFontSizeFormats,
|
|
||||||
setFontFormats: setFontFormats,
|
|
||||||
getFontSizeStyleValues: getFontSizeStyleValues,
|
|
||||||
setInlineStyles: setInlineStyles
|
|
||||||
};
|
|
||||||
|
|
||||||
var overrideFormats = function (editor) {
|
|
||||||
var alignElements = 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table', fontSizes = global$1.explode(Settings.getFontSizeStyleValues(editor)), schema = editor.schema;
|
|
||||||
editor.formatter.register({
|
|
||||||
alignleft: {
|
|
||||||
selector: alignElements,
|
|
||||||
attributes: { align: 'left' }
|
|
||||||
},
|
|
||||||
aligncenter: {
|
|
||||||
selector: alignElements,
|
|
||||||
attributes: { align: 'center' }
|
|
||||||
},
|
|
||||||
alignright: {
|
|
||||||
selector: alignElements,
|
|
||||||
attributes: { align: 'right' }
|
|
||||||
},
|
|
||||||
alignjustify: {
|
|
||||||
selector: alignElements,
|
|
||||||
attributes: { align: 'justify' }
|
|
||||||
},
|
|
||||||
bold: [
|
|
||||||
{
|
|
||||||
inline: 'b',
|
|
||||||
remove: 'all'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
inline: 'strong',
|
|
||||||
remove: 'all'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
inline: 'span',
|
|
||||||
styles: { fontWeight: 'bold' }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
italic: [
|
|
||||||
{
|
|
||||||
inline: 'i',
|
|
||||||
remove: 'all'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
inline: 'em',
|
|
||||||
remove: 'all'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
inline: 'span',
|
|
||||||
styles: { fontStyle: 'italic' }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
underline: [
|
|
||||||
{
|
|
||||||
inline: 'u',
|
|
||||||
remove: 'all'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
inline: 'span',
|
|
||||||
styles: { textDecoration: 'underline' },
|
|
||||||
exact: true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
strikethrough: [
|
|
||||||
{
|
|
||||||
inline: 'strike',
|
|
||||||
remove: 'all'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
inline: 'span',
|
|
||||||
styles: { textDecoration: 'line-through' },
|
|
||||||
exact: true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
fontname: {
|
|
||||||
inline: 'font',
|
|
||||||
toggle: false,
|
|
||||||
attributes: { face: '%value' }
|
|
||||||
},
|
|
||||||
fontsize: {
|
|
||||||
inline: 'font',
|
|
||||||
toggle: false,
|
|
||||||
attributes: {
|
|
||||||
size: function (vars) {
|
|
||||||
return String(global$1.inArray(fontSizes, vars.value) + 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
forecolor: {
|
|
||||||
inline: 'font',
|
|
||||||
attributes: { color: '%value' },
|
|
||||||
links: true,
|
|
||||||
remove_similar: true,
|
|
||||||
clear_child_styles: true
|
|
||||||
},
|
|
||||||
hilitecolor: {
|
|
||||||
inline: 'font',
|
|
||||||
styles: { backgroundColor: '%value' },
|
|
||||||
links: true,
|
|
||||||
remove_similar: true,
|
|
||||||
clear_child_styles: true
|
|
||||||
}
|
|
||||||
});
|
|
||||||
global$1.each('b,i,u,strike'.split(','), function (name) {
|
|
||||||
schema.addValidElements(name + '[*]');
|
|
||||||
});
|
|
||||||
if (!schema.getElementRule('font')) {
|
|
||||||
schema.addValidElements('font[face|size|color|style]');
|
|
||||||
}
|
|
||||||
global$1.each(alignElements.split(','), function (name) {
|
|
||||||
var rule = schema.getElementRule(name);
|
|
||||||
if (rule) {
|
|
||||||
if (!rule.attributes.align) {
|
|
||||||
rule.attributes.align = {};
|
|
||||||
rule.attributesOrder.push('align');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var overrideSettings = function (editor) {
|
|
||||||
var defaultFontsizeFormats = '8pt=1 10pt=2 12pt=3 14pt=4 18pt=5 24pt=6 36pt=7';
|
|
||||||
var defaultFontsFormats = 'Andale Mono=andale mono,monospace;' + 'Arial=arial,helvetica,sans-serif;' + 'Arial Black=arial black,sans-serif;' + 'Book Antiqua=book antiqua,palatino,serif;' + 'Comic Sans MS=comic sans ms,sans-serif;' + 'Courier New=courier new,courier,monospace;' + 'Georgia=georgia,palatino,serif;' + 'Helvetica=helvetica,arial,sans-serif;' + 'Impact=impact,sans-serif;' + 'Symbol=symbol;' + 'Tahoma=tahoma,arial,helvetica,sans-serif;' + 'Terminal=terminal,monaco,monospace;' + 'Times New Roman=times new roman,times,serif;' + 'Trebuchet MS=trebuchet ms,geneva,sans-serif;' + 'Verdana=verdana,geneva,sans-serif;' + 'Webdings=webdings;' + 'Wingdings=wingdings,zapf dingbats';
|
|
||||||
Settings.setInlineStyles(editor, false);
|
|
||||||
if (!Settings.getFontSizeFormats(editor)) {
|
|
||||||
Settings.setFontSizeFormats(editor, defaultFontsizeFormats);
|
|
||||||
}
|
|
||||||
if (!Settings.getFontFormats(editor)) {
|
|
||||||
Settings.setFontFormats(editor, defaultFontsFormats);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
var setup = function (editor) {
|
|
||||||
overrideSettings(editor);
|
|
||||||
editor.on('PreInit', function () {
|
|
||||||
return overrideFormats(editor);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var Formats = { setup: setup };
|
|
||||||
|
|
||||||
function Plugin () {
|
|
||||||
global.add('legacyoutput', function (editor) {
|
|
||||||
Formats.setup(editor);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
Plugin();
|
|
||||||
|
|
||||||
}());
|
|
@ -1,9 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=tinymce.util.Tools.resolve("tinymce.util.Tools"),m=function(e){return e.getParam("content_style","")},u=function(e){return e.getParam("content_css_cors",!1,"boolean")},y=tinymce.util.Tools.resolve("tinymce.Env"),n=function(t){var n="",i=t.dom.encode,e=m(t);n+='<base href="'+i(t.documentBaseURI.getURI())+'">',e&&(n+='<style type="text/css">'+e+"</style>");var o=u(t)?' crossorigin="anonymous"':"";l.each(t.contentCSS,function(e){n+='<link type="text/css" rel="stylesheet" href="'+i(t.documentBaseURI.toAbsolute(e))+'"'+o+">"});var r=t.settings.body_id||"tinymce";-1!==r.indexOf("=")&&(r=(r=t.getParam("body_id","","hash"))[t.id]||r);var a=t.settings.body_class||"";-1!==a.indexOf("=")&&(a=(a=t.getParam("body_class","","hash"))[t.id]||"");var c='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+(y.mac?"e.metaKey":"e.ctrlKey && !e.altKey")+")) {e.preventDefault();}}}, false);<\/script> ",s=t.getBody().dir,d=s?' dir="'+i(s)+'"':"";return"<!DOCTYPE html><html><head>"+n+'</head><body id="'+i(r)+'" class="mce-content-body '+i(a)+'"'+d+">"+t.getContent()+c+"</body></html>"},t=function(e){e.addCommand("mcePreview",function(){!function(e){var t=n(e);e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}}).focus("close")}(e)})},i=function(e){e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:function(){return e.execCommand("mcePreview")}}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:function(){return e.execCommand("mcePreview")}})};!function o(){e.add("preview",function(e){t(e),i(e)})}()}();
|
|
@ -1,116 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*
|
|
||||||
* Version: 5.2.0 (2020-02-13)
|
|
||||||
*/
|
|
||||||
(function () {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var Cell = function (initial) {
|
|
||||||
var value = initial;
|
|
||||||
var get = function () {
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
var set = function (v) {
|
|
||||||
value = v;
|
|
||||||
};
|
|
||||||
var clone = function () {
|
|
||||||
return Cell(get());
|
|
||||||
};
|
|
||||||
return {
|
|
||||||
get: get,
|
|
||||||
set: set,
|
|
||||||
clone: clone
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
||||||
|
|
||||||
var fireVisualBlocks = function (editor, state) {
|
|
||||||
editor.fire('VisualBlocks', { state: state });
|
|
||||||
};
|
|
||||||
var Events = { fireVisualBlocks: fireVisualBlocks };
|
|
||||||
|
|
||||||
var toggleVisualBlocks = function (editor, pluginUrl, enabledState) {
|
|
||||||
var dom = editor.dom;
|
|
||||||
dom.toggleClass(editor.getBody(), 'mce-visualblocks');
|
|
||||||
enabledState.set(!enabledState.get());
|
|
||||||
Events.fireVisualBlocks(editor, enabledState.get());
|
|
||||||
};
|
|
||||||
var VisualBlocks = { toggleVisualBlocks: toggleVisualBlocks };
|
|
||||||
|
|
||||||
var register = function (editor, pluginUrl, enabledState) {
|
|
||||||
editor.addCommand('mceVisualBlocks', function () {
|
|
||||||
VisualBlocks.toggleVisualBlocks(editor, pluginUrl, enabledState);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var Commands = { register: register };
|
|
||||||
|
|
||||||
var isEnabledByDefault = function (editor) {
|
|
||||||
return editor.getParam('visualblocks_default_state', false, 'boolean');
|
|
||||||
};
|
|
||||||
var Settings = { isEnabledByDefault: isEnabledByDefault };
|
|
||||||
|
|
||||||
var setup = function (editor, pluginUrl, enabledState) {
|
|
||||||
editor.on('PreviewFormats AfterPreviewFormats', function (e) {
|
|
||||||
if (enabledState.get()) {
|
|
||||||
editor.dom.toggleClass(editor.getBody(), 'mce-visualblocks', e.type === 'afterpreviewformats');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
editor.on('init', function () {
|
|
||||||
if (Settings.isEnabledByDefault(editor)) {
|
|
||||||
VisualBlocks.toggleVisualBlocks(editor, pluginUrl, enabledState);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
editor.on('remove', function () {
|
|
||||||
editor.dom.removeClass(editor.getBody(), 'mce-visualblocks');
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var Bindings = { setup: setup };
|
|
||||||
|
|
||||||
var toggleActiveState = function (editor, enabledState) {
|
|
||||||
return function (api) {
|
|
||||||
api.setActive(enabledState.get());
|
|
||||||
var editorEventCallback = function (e) {
|
|
||||||
return api.setActive(e.state);
|
|
||||||
};
|
|
||||||
editor.on('VisualBlocks', editorEventCallback);
|
|
||||||
return function () {
|
|
||||||
return editor.off('VisualBlocks', editorEventCallback);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
var register$1 = function (editor, enabledState) {
|
|
||||||
editor.ui.registry.addToggleButton('visualblocks', {
|
|
||||||
icon: 'visualblocks',
|
|
||||||
tooltip: 'Show blocks',
|
|
||||||
onAction: function () {
|
|
||||||
return editor.execCommand('mceVisualBlocks');
|
|
||||||
},
|
|
||||||
onSetup: toggleActiveState(editor, enabledState)
|
|
||||||
});
|
|
||||||
editor.ui.registry.addToggleMenuItem('visualblocks', {
|
|
||||||
text: 'Show blocks',
|
|
||||||
onAction: function () {
|
|
||||||
return editor.execCommand('mceVisualBlocks');
|
|
||||||
},
|
|
||||||
onSetup: toggleActiveState(editor, enabledState)
|
|
||||||
});
|
|
||||||
};
|
|
||||||
var Buttons = { register: register$1 };
|
|
||||||
|
|
||||||
function Plugin () {
|
|
||||||
global.add('visualblocks', function (editor, pluginUrl) {
|
|
||||||
var enabledState = Cell(false);
|
|
||||||
Commands.register(editor, pluginUrl, enabledState);
|
|
||||||
Buttons.register(editor, enabledState);
|
|
||||||
Bindings.setup(editor, pluginUrl, enabledState);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
Plugin();
|
|
||||||
|
|
||||||
}());
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"sources":["content/dark/content.css"],"names":[],"mappings":";;;;;;AAMA,KACE,iBAAkB,QAClB,MAAO,QACP,YAAa,aAAa,CAAE,kBAAkB,CAAE,UAAU,CAAE,MAAM,CAAE,MAAM,CAAE,MAAM,CAAE,SAAS,CAAE,WAAW,CAAE,gBAAgB,CAAE,WAC9H,YAAa,IACb,OAAQ,KAEV,EACE,MAAO,QAET,MACE,gBAAiB,SAGnB,SADA,SAEE,OAAQ,IAAI,MAAM,QAClB,QAAS,MAEX,OACE,QAAS,MACT,OAAQ,KAAK,KAEf,kBACE,MAAO,QACP,QAAS,MACT,WAAY,OACZ,WAAY,OAEd,GACE,aAAc,QACd,aAAc,MACd,aAAc,IAAI,EAAE,EAAE,EAExB,KACE,iBAAkB,QAClB,cAAe,IACf,QAAS,MAAO,MAGlB,sBACA,sBACE,MAAO,KAET,4CACE,YAAa,IAAI,MAAM,QACvB,YAAa,OACb,aAAc,KAEhB,sCACE,aAAc,IAAI,MAAM,QACxB,aAAc,OACd,cAAe","file":"content.min.css","sourcesContent":["/**\n * Copyright (c) Tiny Technologies, Inc. All rights reserved.\n * Licensed under the LGPL or a commercial license.\n * For LGPL see License.txt in the project root for license information.\n * For commercial licenses see https://www.tiny.cloud/\n */\nbody {\n background-color: #2f3742;\n color: #dfe0e4;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n line-height: 1.4;\n margin: 1rem;\n}\na {\n color: #4099ff;\n}\ntable {\n border-collapse: collapse;\n}\ntable th,\ntable td {\n border: 1px solid #6d737b;\n padding: 0.4rem;\n}\nfigure {\n display: table;\n margin: 1rem auto;\n}\nfigure figcaption {\n color: #8a8f97;\n display: block;\n margin-top: 0.25rem;\n text-align: center;\n}\nhr {\n border-color: #6d737b;\n border-style: solid;\n border-width: 1px 0 0 0;\n}\ncode {\n background-color: #6d737b;\n border-radius: 3px;\n padding: 0.1rem 0.2rem;\n}\n/* Make text in selected cells in tables dark and readable */\ntd[data-mce-selected],\nth[data-mce-selected] {\n color: #333;\n}\n.mce-content-body:not([dir=rtl]) blockquote {\n border-left: 2px solid #6d737b;\n margin-left: 1.5rem;\n padding-left: 1rem;\n}\n.mce-content-body[dir=rtl] blockquote {\n border-right: 2px solid #6d737b;\n margin-right: 1.5rem;\n padding-right: 1rem;\n}\n"]}
|
|
@ -1,608 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
||||||
* Licensed under the LGPL or a commercial license.
|
|
||||||
* For LGPL see License.txt in the project root for license information.
|
|
||||||
* For commercial licenses see https://www.tiny.cloud/
|
|
||||||
*/
|
|
||||||
.mce-content-body .mce-item-anchor {
|
|
||||||
background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;
|
|
||||||
cursor: default;
|
|
||||||
display: inline-block;
|
|
||||||
height: 12px !important;
|
|
||||||
padding: 0 2px;
|
|
||||||
-webkit-user-modify: read-only;
|
|
||||||
-moz-user-modify: read-only;
|
|
||||||
-webkit-user-select: all;
|
|
||||||
-moz-user-select: all;
|
|
||||||
-ms-user-select: all;
|
|
||||||
user-select: all;
|
|
||||||
width: 8px !important;
|
|
||||||
}
|
|
||||||
.mce-content-body .mce-item-anchor[data-mce-selected] {
|
|
||||||
outline-offset: 1px;
|
|
||||||
}
|
|
||||||
.tox-comments-visible .tox-comment {
|
|
||||||
background-color: #fff0b7;
|
|
||||||
}
|
|
||||||
.tox-comments-visible .tox-comment--active {
|
|
||||||
background-color: #ffe168;
|
|
||||||
}
|
|
||||||
.tox-checklist > li:not(.tox-checklist--hidden) {
|
|
||||||
list-style: none;
|
|
||||||
margin: 0.25em 0;
|
|
||||||
}
|
|
||||||
.tox-checklist > li:not(.tox-checklist--hidden)::before {
|
|
||||||
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");
|
|
||||||
background-size: 100%;
|
|
||||||
content: '';
|
|
||||||
cursor: pointer;
|
|
||||||
height: 1em;
|
|
||||||
margin-left: -1.5em;
|
|
||||||
margin-top: 0.125em;
|
|
||||||
position: absolute;
|
|
||||||
width: 1em;
|
|
||||||
}
|
|
||||||
.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before {
|
|
||||||
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");
|
|
||||||
}
|
|
||||||
[dir=rtl] .tox-checklist > li:not(.tox-checklist--hidden)::before {
|
|
||||||
margin-left: 0;
|
|
||||||
margin-right: -1.5em;
|
|
||||||
}
|
|
||||||
/* stylelint-disable */
|
|
||||||
/* http://prismjs.com/ */
|
|
||||||
/**
|
|
||||||
* prism.js default theme for JavaScript, CSS and HTML
|
|
||||||
* Based on dabblet (http://dabblet.com)
|
|
||||||
* @author Lea Verou
|
|
||||||
*/
|
|
||||||
code[class*="language-"],
|
|
||||||
pre[class*="language-"] {
|
|
||||||
color: black;
|
|
||||||
background: none;
|
|
||||||
text-shadow: 0 1px white;
|
|
||||||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
||||||
font-size: 1em;
|
|
||||||
text-align: left;
|
|
||||||
white-space: pre;
|
|
||||||
word-spacing: normal;
|
|
||||||
word-break: normal;
|
|
||||||
word-wrap: normal;
|
|
||||||
line-height: 1.5;
|
|
||||||
-moz-tab-size: 4;
|
|
||||||
tab-size: 4;
|
|
||||||
-webkit-hyphens: none;
|
|
||||||
-ms-hyphens: none;
|
|
||||||
hyphens: none;
|
|
||||||
}
|
|
||||||
pre[class*="language-"]::-moz-selection,
|
|
||||||
pre[class*="language-"] ::-moz-selection,
|
|
||||||
code[class*="language-"]::-moz-selection,
|
|
||||||
code[class*="language-"] ::-moz-selection {
|
|
||||||
text-shadow: none;
|
|
||||||
background: #b3d4fc;
|
|
||||||
}
|
|
||||||
pre[class*="language-"]::selection,
|
|
||||||
pre[class*="language-"] ::selection,
|
|
||||||
code[class*="language-"]::selection,
|
|
||||||
code[class*="language-"] ::selection {
|
|
||||||
text-shadow: none;
|
|
||||||
background: #b3d4fc;
|
|
||||||
}
|
|
||||||
@media print {
|
|
||||||
code[class*="language-"],
|
|
||||||
pre[class*="language-"] {
|
|
||||||
text-shadow: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* Code blocks */
|
|
||||||
pre[class*="language-"] {
|
|
||||||
padding: 1em;
|
|
||||||
margin: 0.5em 0;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
:not(pre) > code[class*="language-"],
|
|
||||||
pre[class*="language-"] {
|
|
||||||
background: #f5f2f0;
|
|
||||||
}
|
|
||||||
/* Inline code */
|
|
||||||
:not(pre) > code[class*="language-"] {
|
|
||||||
padding: 0.1em;
|
|
||||||
border-radius: 0.3em;
|
|
||||||
white-space: normal;
|
|
||||||
}
|
|
||||||
.token.comment,
|
|
||||||
.token.prolog,
|
|
||||||
.token.doctype,
|
|
||||||
.token.cdata {
|
|
||||||
color: slategray;
|
|
||||||
}
|
|
||||||
.token.punctuation {
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
.namespace {
|
|
||||||
opacity: 0.7;
|
|
||||||
}
|
|
||||||
.token.property,
|
|
||||||
.token.tag,
|
|
||||||
.token.boolean,
|
|
||||||
.token.number,
|
|
||||||
.token.constant,
|
|
||||||
.token.symbol,
|
|
||||||
.token.deleted {
|
|
||||||
color: #905;
|
|
||||||
}
|
|
||||||
.token.selector,
|
|
||||||
.token.attr-name,
|
|
||||||
.token.string,
|
|
||||||
.token.char,
|
|
||||||
.token.builtin,
|
|
||||||
.token.inserted {
|
|
||||||
color: #690;
|
|
||||||
}
|
|
||||||
.token.operator,
|
|
||||||
.token.entity,
|
|
||||||
.token.url,
|
|
||||||
.language-css .token.string,
|
|
||||||
.style .token.string {
|
|
||||||
color: #9a6e3a;
|
|
||||||
background: hsla(0, 0%, 100%, 0.5);
|
|
||||||
}
|
|
||||||
.token.atrule,
|
|
||||||
.token.attr-value,
|
|
||||||
.token.keyword {
|
|
||||||
color: #07a;
|
|
||||||
}
|
|
||||||
.token.function,
|
|
||||||
.token.class-name {
|
|
||||||
color: #DD4A68;
|
|
||||||
}
|
|
||||||
.token.regex,
|
|
||||||
.token.important,
|
|
||||||
.token.variable {
|
|
||||||
color: #e90;
|
|
||||||
}
|
|
||||||
.token.important,
|
|
||||||
.token.bold {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
.token.italic {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
.token.entity {
|
|
||||||
cursor: help;
|
|
||||||
}
|
|
||||||
/* stylelint-enable */
|
|
||||||
.mce-content-body {
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
word-wrap: break-word;
|
|
||||||
}
|
|
||||||
.mce-content-body .mce-visual-caret {
|
|
||||||
background-color: black;
|
|
||||||
background-color: currentcolor;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
.mce-content-body .mce-visual-caret-hidden {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.mce-content-body *[data-mce-caret] {
|
|
||||||
left: -1000px;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
position: absolute;
|
|
||||||
right: auto;
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
.mce-content-body .mce-offscreen-selection {
|
|
||||||
left: -9999999999px;
|
|
||||||
max-width: 1000000px;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
.mce-content-body *[contentEditable=false] {
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
.mce-content-body *[contentEditable=true] {
|
|
||||||
cursor: text;
|
|
||||||
}
|
|
||||||
.tox-cursor-format-painter {
|
|
||||||
cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"), default;
|
|
||||||
}
|
|
||||||
.mce-content-body figure.align-left {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.mce-content-body figure.align-right {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
.mce-content-body figure.image.align-center {
|
|
||||||
display: table;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
.mce-preview-object {
|
|
||||||
border: 1px solid gray;
|
|
||||||
display: inline-block;
|
|
||||||
line-height: 0;
|
|
||||||
margin: 0 2px 0 2px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.mce-preview-object .mce-shim {
|
|
||||||
background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
|
|
||||||
height: 100%;
|
|
||||||
left: 0;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.mce-preview-object[data-mce-selected="2"] .mce-shim {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.mce-object {
|
|
||||||
background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;
|
|
||||||
border: 1px dashed #aaa;
|
|
||||||
}
|
|
||||||
.mce-pagebreak {
|
|
||||||
border: 1px dashed #aaa;
|
|
||||||
cursor: default;
|
|
||||||
display: block;
|
|
||||||
height: 5px;
|
|
||||||
margin-top: 15px;
|
|
||||||
page-break-before: always;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
@media print {
|
|
||||||
.mce-pagebreak {
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.tiny-pageembed .mce-shim {
|
|
||||||
background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
|
|
||||||
height: 100%;
|
|
||||||
left: 0;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.tiny-pageembed[data-mce-selected="2"] .mce-shim {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.tiny-pageembed {
|
|
||||||
display: inline-block;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.tiny-pageembed--21by9,
|
|
||||||
.tiny-pageembed--16by9,
|
|
||||||
.tiny-pageembed--4by3,
|
|
||||||
.tiny-pageembed--1by1 {
|
|
||||||
display: block;
|
|
||||||
overflow: hidden;
|
|
||||||
padding: 0;
|
|
||||||
position: relative;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.tiny-pageembed--21by9 {
|
|
||||||
padding-top: 42.857143%;
|
|
||||||
}
|
|
||||||
.tiny-pageembed--16by9 {
|
|
||||||
padding-top: 56.25%;
|
|
||||||
}
|
|
||||||
.tiny-pageembed--4by3 {
|
|
||||||
padding-top: 75%;
|
|
||||||
}
|
|
||||||
.tiny-pageembed--1by1 {
|
|
||||||
padding-top: 100%;
|
|
||||||
}
|
|
||||||
.tiny-pageembed--21by9 iframe,
|
|
||||||
.tiny-pageembed--16by9 iframe,
|
|
||||||
.tiny-pageembed--4by3 iframe,
|
|
||||||
.tiny-pageembed--1by1 iframe {
|
|
||||||
border: 0;
|
|
||||||
height: 100%;
|
|
||||||
left: 0;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.mce-content-body[data-mce-placeholder] {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before {
|
|
||||||
color: rgba(34, 47, 62, 0.7);
|
|
||||||
content: attr(data-mce-placeholder);
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before {
|
|
||||||
left: 1px;
|
|
||||||
}
|
|
||||||
.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before {
|
|
||||||
right: 1px;
|
|
||||||
}
|
|
||||||
.mce-content-body div.mce-resizehandle {
|
|
||||||
background-color: #4099ff;
|
|
||||||
border-color: #4099ff;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 1px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
height: 10px;
|
|
||||||
position: absolute;
|
|
||||||
width: 10px;
|
|
||||||
z-index: 10000;
|
|
||||||
}
|
|
||||||
.mce-content-body div.mce-resizehandle:hover {
|
|
||||||
background-color: #4099ff;
|
|
||||||
}
|
|
||||||
.mce-content-body div.mce-resizehandle:nth-of-type(1) {
|
|
||||||
cursor: nwse-resize;
|
|
||||||
}
|
|
||||||
.mce-content-body div.mce-resizehandle:nth-of-type(2) {
|
|
||||||
cursor: nesw-resize;
|
|
||||||
}
|
|
||||||
.mce-content-body div.mce-resizehandle:nth-of-type(3) {
|
|
||||||
cursor: nwse-resize;
|
|
||||||
}
|
|
||||||
.mce-content-body div.mce-resizehandle:nth-of-type(4) {
|
|
||||||
cursor: nesw-resize;
|
|
||||||
}
|
|
||||||
.mce-content-body .mce-clonedresizable {
|
|
||||||
opacity: 0.5;
|
|
||||||
outline: 1px dashed black;
|
|
||||||
position: absolute;
|
|
||||||
z-index: 10000;
|
|
||||||
}
|
|
||||||
.mce-content-body .mce-resize-helper {
|
|
||||||
background: #555;
|
|
||||||
background: rgba(0, 0, 0, 0.75);
|
|
||||||
border: 1px;
|
|
||||||
border-radius: 3px;
|
|
||||||
color: white;
|
|
||||||
display: none;
|
|
||||||
font-family: sans-serif;
|
|
||||||
font-size: 12px;
|
|
||||||
line-height: 14px;
|
|
||||||
margin: 5px 10px;
|
|
||||||
padding: 5px;
|
|
||||||
position: absolute;
|
|
||||||
white-space: nowrap;
|
|
||||||
z-index: 10001;
|
|
||||||
}
|
|
||||||
.mce-match-marker {
|
|
||||||
background: #aaa;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
.mce-match-marker-selected {
|
|
||||||
background: #39f;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
.mce-content-body img[data-mce-selected],
|
|
||||||
.mce-content-body table[data-mce-selected] {
|
|
||||||
outline: 3px solid #b4d7ff;
|
|
||||||
}
|
|
||||||
.mce-content-body hr[data-mce-selected] {
|
|
||||||
outline: 3px solid #b4d7ff;
|
|
||||||
outline-offset: 1px;
|
|
||||||
}
|
|
||||||
.mce-content-body *[contentEditable=false] *[contentEditable=true]:focus {
|
|
||||||
outline: 3px solid #b4d7ff;
|
|
||||||
}
|
|
||||||
.mce-content-body *[contentEditable=false] *[contentEditable=true]:hover {
|
|
||||||
outline: 3px solid #b4d7ff;
|
|
||||||
}
|
|
||||||
.mce-content-body *[contentEditable=false][data-mce-selected] {
|
|
||||||
cursor: not-allowed;
|
|
||||||
outline: 3px solid #b4d7ff;
|
|
||||||
}
|
|
||||||
.mce-content-body.mce-content-readonly *[contentEditable=true]:focus,
|
|
||||||
.mce-content-body.mce-content-readonly *[contentEditable=true]:hover {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
.mce-content-body *[data-mce-selected="inline-boundary"] {
|
|
||||||
background-color: #b4d7ff;
|
|
||||||
}
|
|
||||||
.mce-content-body .mce-edit-focus {
|
|
||||||
outline: 3px solid #b4d7ff;
|
|
||||||
}
|
|
||||||
.mce-content-body td[data-mce-selected],
|
|
||||||
.mce-content-body th[data-mce-selected] {
|
|
||||||
background-color: #b4d7ff !important;
|
|
||||||
}
|
|
||||||
.mce-content-body td[data-mce-selected]::-moz-selection,
|
|
||||||
.mce-content-body th[data-mce-selected]::-moz-selection {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
.mce-content-body td[data-mce-selected]::selection,
|
|
||||||
.mce-content-body th[data-mce-selected]::selection {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
.mce-content-body td[data-mce-selected] *,
|
|
||||||
.mce-content-body th[data-mce-selected] * {
|
|
||||||
-webkit-touch-callout: none;
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
-ms-user-select: none;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
.mce-content-body img::-moz-selection {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
.mce-content-body img::selection {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
.ephox-snooker-resizer-bar {
|
|
||||||
background-color: #b4d7ff;
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
.ephox-snooker-resizer-cols {
|
|
||||||
cursor: col-resize;
|
|
||||||
}
|
|
||||||
.ephox-snooker-resizer-rows {
|
|
||||||
cursor: row-resize;
|
|
||||||
}
|
|
||||||
.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
.mce-spellchecker-word {
|
|
||||||
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");
|
|
||||||
background-position: 0 calc(100% + 1px);
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
background-size: auto 6px;
|
|
||||||
cursor: default;
|
|
||||||
height: 2rem;
|
|
||||||
}
|
|
||||||
.mce-spellchecker-grammar {
|
|
||||||
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");
|
|
||||||
background-position: 0 calc(100% + 1px);
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
background-size: auto 6px;
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
.mce-toc {
|
|
||||||
border: 1px solid gray;
|
|
||||||
}
|
|
||||||
.mce-toc h2 {
|
|
||||||
margin: 4px;
|
|
||||||
}
|
|
||||||
.mce-toc li {
|
|
||||||
list-style-type: none;
|
|
||||||
}
|
|
||||||
.mce-item-table,
|
|
||||||
.mce-item-table td,
|
|
||||||
.mce-item-table th,
|
|
||||||
.mce-item-table caption {
|
|
||||||
border: 1px dashed #bbb;
|
|
||||||
}
|
|
||||||
.mce-visualblocks p,
|
|
||||||
.mce-visualblocks h1,
|
|
||||||
.mce-visualblocks h2,
|
|
||||||
.mce-visualblocks h3,
|
|
||||||
.mce-visualblocks h4,
|
|
||||||
.mce-visualblocks h5,
|
|
||||||
.mce-visualblocks h6,
|
|
||||||
.mce-visualblocks div:not([data-mce-bogus]),
|
|
||||||
.mce-visualblocks section,
|
|
||||||
.mce-visualblocks article,
|
|
||||||
.mce-visualblocks blockquote,
|
|
||||||
.mce-visualblocks address,
|
|
||||||
.mce-visualblocks pre,
|
|
||||||
.mce-visualblocks figure,
|
|
||||||
.mce-visualblocks figcaption,
|
|
||||||
.mce-visualblocks hgroup,
|
|
||||||
.mce-visualblocks aside,
|
|
||||||
.mce-visualblocks ul,
|
|
||||||
.mce-visualblocks ol,
|
|
||||||
.mce-visualblocks dl {
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
border: 1px dashed #bbb;
|
|
||||||
margin-left: 3px;
|
|
||||||
padding-top: 10px;
|
|
||||||
}
|
|
||||||
.mce-visualblocks p {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7);
|
|
||||||
}
|
|
||||||
.mce-visualblocks h1 {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==);
|
|
||||||
}
|
|
||||||
.mce-visualblocks h2 {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==);
|
|
||||||
}
|
|
||||||
.mce-visualblocks h3 {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7);
|
|
||||||
}
|
|
||||||
.mce-visualblocks h4 {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==);
|
|
||||||
}
|
|
||||||
.mce-visualblocks h5 {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==);
|
|
||||||
}
|
|
||||||
.mce-visualblocks h6 {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==);
|
|
||||||
}
|
|
||||||
.mce-visualblocks div:not([data-mce-bogus]) {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7);
|
|
||||||
}
|
|
||||||
.mce-visualblocks section {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=);
|
|
||||||
}
|
|
||||||
.mce-visualblocks article {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7);
|
|
||||||
}
|
|
||||||
.mce-visualblocks blockquote {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7);
|
|
||||||
}
|
|
||||||
.mce-visualblocks address {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=);
|
|
||||||
}
|
|
||||||
.mce-visualblocks pre {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==);
|
|
||||||
}
|
|
||||||
.mce-visualblocks figure {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7);
|
|
||||||
}
|
|
||||||
.mce-visualblocks figcaption {
|
|
||||||
border: 1px dashed #bbb;
|
|
||||||
}
|
|
||||||
.mce-visualblocks hgroup {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7);
|
|
||||||
}
|
|
||||||
.mce-visualblocks aside {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=);
|
|
||||||
}
|
|
||||||
.mce-visualblocks ul {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==);
|
|
||||||
}
|
|
||||||
.mce-visualblocks ol {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==);
|
|
||||||
}
|
|
||||||
.mce-visualblocks dl {
|
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==);
|
|
||||||
}
|
|
||||||
.mce-visualblocks:not([dir=rtl]) p,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) h1,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) h2,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) h3,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) h4,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) h5,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) h6,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),
|
|
||||||
.mce-visualblocks:not([dir=rtl]) section,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) article,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) blockquote,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) address,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) pre,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) figure,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) figcaption,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) hgroup,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) aside,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) ul,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) ol,
|
|
||||||
.mce-visualblocks:not([dir=rtl]) dl {
|
|
||||||
margin-left: 3px;
|
|
||||||
}
|
|
||||||
.mce-visualblocks[dir=rtl] p,
|
|
||||||
.mce-visualblocks[dir=rtl] h1,
|
|
||||||
.mce-visualblocks[dir=rtl] h2,
|
|
||||||
.mce-visualblocks[dir=rtl] h3,
|
|
||||||
.mce-visualblocks[dir=rtl] h4,
|
|
||||||
.mce-visualblocks[dir=rtl] h5,
|
|
||||||
.mce-visualblocks[dir=rtl] h6,
|
|
||||||
.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),
|
|
||||||
.mce-visualblocks[dir=rtl] section,
|
|
||||||
.mce-visualblocks[dir=rtl] article,
|
|
||||||
.mce-visualblocks[dir=rtl] blockquote,
|
|
||||||
.mce-visualblocks[dir=rtl] address,
|
|
||||||
.mce-visualblocks[dir=rtl] pre,
|
|
||||||
.mce-visualblocks[dir=rtl] figure,
|
|
||||||
.mce-visualblocks[dir=rtl] figcaption,
|
|
||||||
.mce-visualblocks[dir=rtl] hgroup,
|
|
||||||
.mce-visualblocks[dir=rtl] aside,
|
|
||||||
.mce-visualblocks[dir=rtl] ul,
|
|
||||||
.mce-visualblocks[dir=rtl] ol,
|
|
||||||
.mce-visualblocks[dir=rtl] dl {
|
|
||||||
background-position-x: right;
|
|
||||||
margin-right: 3px;
|
|
||||||
}
|
|
||||||
.mce-nbsp,
|
|
||||||
.mce-shy {
|
|
||||||
background: #aaa;
|
|
||||||
}
|
|
||||||
.mce-shy::after {
|
|
||||||
content: '-';
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"sources":["ui/default/content.mobile.css"],"names":[],"mappings":";;;;;;AAMA,yEAEE,iBAAkB,MAClB,QAAS,aACT,QAAS,GACT,SAAU,SAEZ,KACE,yBAA0B,KAE5B,SAEE,UAAW,KAEb,eACE,UAAW,IAEb,KACE,YAAa,WAEf,MACE,gBAAiB","file":"content.mobile.min.css","sourcesContent":["/**\n * Copyright (c) Tiny Technologies, Inc. All rights reserved.\n * Licensed under the LGPL or a commercial license.\n * For LGPL see License.txt in the project root for license information.\n * For commercial licenses see https://www.tiny.cloud/\n */\n.tinymce-mobile-unfocused-selections .tinymce-mobile-unfocused-selection {\n /* Note: this file is used inside the content, so isn't part of theming */\n background-color: green;\n display: inline-block;\n opacity: 0.5;\n position: absolute;\n}\nbody {\n -webkit-text-size-adjust: none;\n}\nbody img {\n /* this is related to the content margin */\n max-width: 96vw;\n}\nbody table img {\n max-width: 95%;\n}\nbody {\n font-family: sans-serif;\n}\ntable {\n border-collapse: collapse;\n}\n"]}
|
|