更新前端文件
@@ -1,19 +0,0 @@
|
|||||||
<?php
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
|
|
||||||
return [
|
|
||||||
// 生成应用公共文件
|
|
||||||
'__file__' => ['common.php'],
|
|
||||||
'__dir__' => ['controller', 'model', 'view', 'validate'],
|
|
||||||
'controller' => ['Index', 'admin/Config', 'admin/Menu', 'admin/Member', 'admin/Content', 'admin/Action', 'admin/Ad', 'admin/Attribute', 'admin/Category', 'admin/Channel', 'admin/Client', 'admin/Database', 'admin/Model', 'admin/Link', 'admin/Seo', 'admin/Addons', 'admin/Form', 'admin/Group'],
|
|
||||||
'model' => ['Member', 'Config', 'Content', 'Channel', 'Client', 'Model', 'Link', 'Ad', 'AdPlace'],
|
|
||||||
'view' => ['admin/index/index', 'admin/config/group', 'admin/member/index', 'admin/content/index', 'admin/category/index'],
|
|
||||||
];
|
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
namespace app\controller;
|
namespace app\controller;
|
||||||
|
|
||||||
use app\BaseController;
|
use app\BaseController;
|
||||||
use think\facade\Config;
|
use think\facade\Cache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @title 后端公共模块
|
* @title 后端公共模块
|
||||||
@@ -22,13 +22,13 @@ class Admin extends BaseController {
|
|||||||
'\app\middleware\Admin'
|
'\app\middleware\Admin'
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $data = ['meta' => ['title'=>''], 'data' => [], 'code' => 0, 'msg' => ''];
|
protected $data = ['data' => [], 'code' => 0, 'msg' => ''];
|
||||||
|
|
||||||
protected function initialize(){
|
protected function initialize(){
|
||||||
$config = Config::get('system');
|
$config = Cache::get('system_config');
|
||||||
if (!$config) {
|
if (!$config) {
|
||||||
$config = (new \app\model\Config())->lists();
|
$config = (new \app\model\Config())->lists();
|
||||||
Config::set($config, 'system');
|
Cache::set('system_config', $config);
|
||||||
}
|
}
|
||||||
$this->data['config'] = $config;
|
$this->data['config'] = $config;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,5 @@ class Action extends Admin{
|
|||||||
* @title 系统首页
|
* @title 系统首页
|
||||||
*/
|
*/
|
||||||
public function index(){
|
public function index(){
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,4 +18,11 @@ class Addons extends Admin{
|
|||||||
public function index(){
|
public function index(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @title 钩子列表
|
||||||
|
*/
|
||||||
|
public function hooks(){
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -9,13 +9,73 @@
|
|||||||
namespace app\controller\admin;
|
namespace app\controller\admin;
|
||||||
|
|
||||||
use app\controller\Admin;
|
use app\controller\Admin;
|
||||||
|
use think\facade\Db;
|
||||||
|
|
||||||
|
use app\model\Client as ClientModel;
|
||||||
|
|
||||||
class Client extends Admin{
|
class Client extends Admin{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @title 系统首页
|
* @title 系统首页
|
||||||
*/
|
*/
|
||||||
public function index(){
|
public function index(ClientModel $client){
|
||||||
|
$res = $client->paginate(25, false, array(
|
||||||
|
'query' => $this->request->param()
|
||||||
|
));
|
||||||
|
|
||||||
|
$data = $res->toArray();
|
||||||
|
$data['page'] = $res->render();
|
||||||
|
$this->data = $data;
|
||||||
|
return $this->data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @title 添加客户端
|
||||||
|
*/
|
||||||
|
public function add(ClientModel $client){
|
||||||
|
if ($this->request->isPost()) {
|
||||||
|
$data = $this->request->param();
|
||||||
|
$result = $client->validate(true)->save($data);
|
||||||
|
if (false !== $result) {
|
||||||
|
return $this->success('成功添加', url('client/index'));
|
||||||
|
}else{
|
||||||
|
return $this->error($this->model->getError());
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$info['appid'] = rand_string(10, 1); //八位数字appid
|
||||||
|
$info['appsecret'] = rand_string(32); //32位数字加字母秘钥
|
||||||
|
$data = array(
|
||||||
|
'info' => $info
|
||||||
|
);
|
||||||
|
return $this->data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @title 编辑客户端
|
||||||
|
*/
|
||||||
|
public function edit(ClientModel $client){
|
||||||
|
if ($this->request->isPost()) {
|
||||||
|
$data = $this->request->param();
|
||||||
|
$result = $client->validate(true)->save($data, array('id'=>$request->param('id')));
|
||||||
|
if (false !== $result) {
|
||||||
|
return $this->success('修改添加', url('client/index'));
|
||||||
|
}else{
|
||||||
|
return $this->error($this->model->getError());
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$info = $client->where('id', $this->request->param('id'))->find();
|
||||||
|
$data = array(
|
||||||
|
'info' => $info
|
||||||
|
);
|
||||||
|
return $this->data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @title 删除客户端
|
||||||
|
*/
|
||||||
|
public function del(ClientModel $client){
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,5 +8,5 @@ return [
|
|||||||
// Session初始化
|
// Session初始化
|
||||||
\think\middleware\SessionInit::class,
|
\think\middleware\SessionInit::class,
|
||||||
// 页面Trace调试
|
// 页面Trace调试
|
||||||
// \think\middleware\TraceDebug::class,
|
\think\middleware\TraceDebug::class,
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ class Admin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($request->isAjax()) {
|
if ($request->isAjax()) {
|
||||||
|
unset($this->data['config']);
|
||||||
return json($this->data);
|
return json($this->data);
|
||||||
} else {
|
} else {
|
||||||
return $response->data($this->fetch());
|
return $response->data($this->fetch());
|
||||||
@@ -46,7 +47,8 @@ class Admin {
|
|||||||
'__public__' => '/static/admin',
|
'__public__' => '/static/admin',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
$data = isset($this->data['data']) ? $this->data['data'] : [];
|
||||||
return View::config($config)->assign($this->data)->fetch($template);
|
$data['config'] = isset($this->data['config']) ? $this->data['config'] : $data;
|
||||||
|
return View::config($config)->assign($data)->fetch($template);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -39,7 +39,7 @@ class AdminAuth {
|
|||||||
* @title 显示菜单
|
* @title 显示菜单
|
||||||
*/
|
*/
|
||||||
protected function getMenu($request) {
|
protected function getMenu($request) {
|
||||||
$current_controller = str_replace('.', '/', strtolower($request->controller()));
|
$current_controller = '/' . str_replace('.', '/', strtolower($request->controller()));
|
||||||
$current_url = $current_controller . '/' . strtolower($request->action());
|
$current_url = $current_controller . '/' . strtolower($request->action());
|
||||||
$menu = Cache::get('menu');
|
$menu = Cache::get('menu');
|
||||||
if (!$menu) {
|
if (!$menu) {
|
||||||
@@ -50,7 +50,7 @@ class AdminAuth {
|
|||||||
}
|
}
|
||||||
$current_pid = 0;
|
$current_pid = 0;
|
||||||
foreach ($menu as $key => $value) {
|
foreach ($menu as $key => $value) {
|
||||||
if (strpos($value['url'], $current_controller) !== false) {
|
if (strpos($value['url'], $current_controller.'/') !== false) {
|
||||||
if ($value['pid'] == 0) {
|
if ($value['pid'] == 0) {
|
||||||
$current_pid = $value['id'];
|
$current_pid = $value['id'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
1
app/view/admin/action/index.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{extend name="admin/base"/}
|
||||||
1
app/view/admin/ad/index.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{extend name="admin/base"/}
|
||||||
1
app/view/admin/addons/hooks.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{extend name="admin/base"/}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
</meta>
|
</meta>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="theme-wrapper">
|
<div id="theme-wrapper" class="vue-main">
|
||||||
<header class="navbar" id="header-navbar">
|
<header class="navbar" id="header-navbar">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
{volist name="headerMenu" id="item"}
|
{volist name="headerMenu" id="item"}
|
||||||
<li class="{if isset($item['active']) && $item['active']}active{/if}">
|
<li class="{if isset($item['active']) && $item['active']}active{/if}">
|
||||||
<a href="/{$item['url']}">
|
<a href="{:url($item['url'])}">
|
||||||
<i class="fa fa-{$item['icon']}"></i>
|
<i class="fa fa-{$item['icon']}"></i>
|
||||||
<span>{$item['title']}</span>
|
<span>{$item['title']}</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -135,7 +135,7 @@
|
|||||||
{volist name="asideMenu" id="menu"}
|
{volist name="asideMenu" id="menu"}
|
||||||
<li class="nav-header hidden-sm hidden-xs">{$key}</li>
|
<li class="nav-header hidden-sm hidden-xs">{$key}</li>
|
||||||
{volist name="menu" id="item"}
|
{volist name="menu" id="item"}
|
||||||
<li {if $item['active']}class="active"{/if}><a href="/{$item['url']}"><i class="fa fa-{$item['icon']}"></i><span>{$item['title']}</span></a></li>
|
<li {if $item['active']}class="active"{/if}><a href="{:url($item['url'])}"><i class="fa fa-{$item['icon']}"></i><span>{$item['title']}</span></a></li>
|
||||||
{/volist}
|
{/volist}
|
||||||
{/volist}
|
{/volist}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -168,19 +168,19 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
{block name="body"}
|
|
||||||
<div class="main-box clearfix">
|
<div class="main-box clearfix">
|
||||||
<header class="main-box-header clearfix">
|
<header class="main-box-header clearfix">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h2>新功能</h2>
|
<h2>{$meta|default='新功能'}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
{block name="toolbar"}{/block}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div class="main-box-body clearfix">
|
<div class="main-box-body clearfix">
|
||||||
|
{block name="body"}{/block}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -199,7 +199,8 @@
|
|||||||
<script src="__static__/libs/nanoscroller/jquery.nanoscroller.min.js"></script>
|
<script src="__static__/libs/nanoscroller/jquery.nanoscroller.min.js"></script>
|
||||||
<script type="text/javascript" src="__static__/js/jquery.slimscroll.min.js"></script>
|
<script type="text/javascript" src="__static__/js/jquery.slimscroll.min.js"></script>
|
||||||
<script src="__js__/app.js"></script>
|
<script src="__js__/app.js"></script>
|
||||||
<script type="text/javascript" src="__static__/js/require.js" data-main="__static__/admin/js/main"></script>
|
<script type="text/javascript" src="/static/js/vue.js"></script>
|
||||||
|
<script type="text/javascript" src="/static/js/axios.min.js"></script>
|
||||||
{block name="script"}{/block}
|
{block name="script"}{/block}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1 +1,37 @@
|
|||||||
{extend name="admin/base"/}
|
{extend name="admin/base"/}
|
||||||
|
{block name="body"}
|
||||||
|
|
||||||
|
<div class="table-responsive clearfix">
|
||||||
|
<table class="table table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>ID</th>
|
||||||
|
<th>名称</th>
|
||||||
|
<th>APPID</th>
|
||||||
|
<th>APPSECRET</th>
|
||||||
|
<th>创建时间</th>
|
||||||
|
<th>更新时间</th>
|
||||||
|
<th>操作</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{volist name="data" id="item"}
|
||||||
|
<tr>
|
||||||
|
<td>{$item['id']}</td>
|
||||||
|
<td>{$item['title']}</td>
|
||||||
|
<td>{$item['appid']}</td>
|
||||||
|
<td>{$item['appsecret']}</td>
|
||||||
|
<td>{$item['create_time']}</td>
|
||||||
|
<td>{$item['update_time']}</td>
|
||||||
|
<td>
|
||||||
|
<a href="{:url('/admin/client/edit?id='.$item['id'])}">编辑</a>
|
||||||
|
<a href="{:url('/admin/client/del?id='.$item['id'])}" class="ajax-post confirm">删除</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/volist}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{$page}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/block}
|
||||||
@@ -1,23 +1,15 @@
|
|||||||
{extend name="admin/base"/}
|
{extend name="admin/base"/}
|
||||||
|
{block name="toolbar"}
|
||||||
|
<a href="{:url('Config/index')}" class="btn btn-primary">
|
||||||
|
<i class="fa fa-list"></i>
|
||||||
|
配置列表
|
||||||
|
</a>
|
||||||
|
<a href="{:url('Config/add')}" class="btn btn-danger">
|
||||||
|
<i class="fa fa-list"></i>
|
||||||
|
添加配置
|
||||||
|
</a>
|
||||||
|
{/block}
|
||||||
{block name="body"}
|
{block name="body"}
|
||||||
|
|
||||||
<div class="main-box clearfix vue-main">
|
|
||||||
<header class="main-box-header clearfix">
|
|
||||||
<div class="pull-left">
|
|
||||||
<h2>配置管理</h2>
|
|
||||||
</div>
|
|
||||||
<div class="pull-right">
|
|
||||||
<a href="{:url('Config/index')}" class="btn btn-primary">
|
|
||||||
<i class="fa fa-list"></i>
|
|
||||||
配置列表
|
|
||||||
</a>
|
|
||||||
<a href="{:url('Config/add')}" class="btn btn-danger">
|
|
||||||
<i class="fa fa-list"></i>
|
|
||||||
添加配置
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
<div class="main-box-body clearfix">
|
|
||||||
<div class="tabs-wrapper">
|
<div class="tabs-wrapper">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
{volist name="config['config_group_list']" id="item"}
|
{volist name="config['config_group_list']" id="item"}
|
||||||
@@ -80,16 +72,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/block}
|
{/block}
|
||||||
{block name="script"}
|
{block name="script"}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
require(['vue', 'jquery'], function(Vue, $){
|
var vm = new Vue({
|
||||||
new Vue({
|
el:".vue-main",
|
||||||
el:".vue-main",
|
data:{},
|
||||||
data:{}
|
created(){
|
||||||
})
|
$.ajax({
|
||||||
|
success: function(res){
|
||||||
|
console.log(res)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{/block}
|
{/block}
|
||||||
|
|||||||
1
app/view/admin/form/index.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{extend name="admin/base"/}
|
||||||
1
app/view/admin/group/index.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{extend name="admin/base"/}
|
||||||
@@ -3,4 +3,8 @@ require.config({
|
|||||||
'vue':'/static/js/vue.js',
|
'vue':'/static/js/vue.js',
|
||||||
"jquery":'/static/libs/jquery/jquery.min.js'
|
"jquery":'/static/libs/jquery/jquery.min.js'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
require(['vue', 'jquery'], function(Vue, $){
|
||||||
|
|
||||||
|
})
|
||||||
9
public/static/js/axios.min.js
vendored
Normal file
2433
public/static/libs/form-create/form-create.js
Normal file
32317
public/static/libs/iview/dist/iview.js
vendored
Normal file
1
public/static/libs/iview/dist/iview.min.js
vendored
Normal file
185
public/static/libs/iview/dist/locale/de-DE.js
vendored
Normal file
@@ -0,0 +1,185 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ([
|
||||||
|
/* 0 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Auswählen',
|
||||||
|
noMatch: 'Keine Übereinstimmungen',
|
||||||
|
loading: 'Lädt'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'Keine Daten',
|
||||||
|
noFilteredDataText: 'Keine gefilterten Daten',
|
||||||
|
confirmFilter: 'Bestätigen',
|
||||||
|
resetFilter: 'Zurücksetzen',
|
||||||
|
clearFilter: 'Alle'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Datum auswählen',
|
||||||
|
selectTime: 'Zeit auswählen',
|
||||||
|
startTime: 'Beginn',
|
||||||
|
endTime: 'Ende',
|
||||||
|
clear: 'Leeren',
|
||||||
|
ok: 'OK',
|
||||||
|
month: '',
|
||||||
|
month1: 'Januar',
|
||||||
|
month2: 'Februar',
|
||||||
|
month3: 'März',
|
||||||
|
month4: 'April',
|
||||||
|
month5: 'Mai',
|
||||||
|
month6: 'Juni',
|
||||||
|
month7: 'Juli',
|
||||||
|
month8: 'August',
|
||||||
|
month9: 'September',
|
||||||
|
month10: 'Oktober',
|
||||||
|
month11: 'November',
|
||||||
|
month12: 'Dezember',
|
||||||
|
year: '',
|
||||||
|
weeks: {
|
||||||
|
sun: 'So',
|
||||||
|
mon: 'Mo',
|
||||||
|
tue: 'Di',
|
||||||
|
wed: 'Mi',
|
||||||
|
thu: 'Do',
|
||||||
|
fri: 'Fr',
|
||||||
|
sat: 'Sa'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Jan',
|
||||||
|
m2: 'Feb',
|
||||||
|
m3: 'Mär',
|
||||||
|
m4: 'Apr',
|
||||||
|
m5: 'Mai',
|
||||||
|
m6: 'Jun',
|
||||||
|
m7: 'Jul',
|
||||||
|
m8: 'Aug',
|
||||||
|
m9: 'Sep',
|
||||||
|
m10: 'Okt',
|
||||||
|
m11: 'Nov',
|
||||||
|
m12: 'Dez'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Quelle',
|
||||||
|
target: 'Ziel'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Suchen',
|
||||||
|
notFoundText: 'Nicht gefunden'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Abbrechen'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Abbrechen'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Vorherige Seite',
|
||||||
|
next: 'Nächste Seite',
|
||||||
|
total: 'Total',
|
||||||
|
item: 'Eintrag',
|
||||||
|
items: 'Einträge',
|
||||||
|
prev5: 'vorherigen fünf Seiten',
|
||||||
|
next5: 'nächste fünf Seiten',
|
||||||
|
page: '/seite',
|
||||||
|
goto: 'Gehe zu',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Stern',
|
||||||
|
stars: 'Sterne'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'Keine Daten'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
/******/ ]);
|
||||||
|
});
|
||||||
186
public/static/libs/iview/dist/locale/en-US.js
vendored
Normal file
@@ -0,0 +1,186 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 1);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ([
|
||||||
|
/* 0 */,
|
||||||
|
/* 1 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Select',
|
||||||
|
noMatch: 'No matching data',
|
||||||
|
loading: 'Loading'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'No Data',
|
||||||
|
noFilteredDataText: 'No filter data',
|
||||||
|
confirmFilter: 'Confirm',
|
||||||
|
resetFilter: 'Reset',
|
||||||
|
clearFilter: 'All'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Select date',
|
||||||
|
selectTime: 'Select time',
|
||||||
|
startTime: 'Start Time',
|
||||||
|
endTime: 'End Time',
|
||||||
|
clear: 'Clear',
|
||||||
|
ok: 'OK',
|
||||||
|
month: '',
|
||||||
|
month1: 'January',
|
||||||
|
month2: 'February',
|
||||||
|
month3: 'March',
|
||||||
|
month4: 'April',
|
||||||
|
month5: 'May',
|
||||||
|
month6: 'June',
|
||||||
|
month7: 'July',
|
||||||
|
month8: 'August',
|
||||||
|
month9: 'September',
|
||||||
|
month10: 'October',
|
||||||
|
month11: 'November',
|
||||||
|
month12: 'December',
|
||||||
|
year: '',
|
||||||
|
weeks: {
|
||||||
|
sun: 'Sun',
|
||||||
|
mon: 'Mon',
|
||||||
|
tue: 'Tue',
|
||||||
|
wed: 'Wed',
|
||||||
|
thu: 'Thu',
|
||||||
|
fri: 'Fri',
|
||||||
|
sat: 'Sat'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Jan',
|
||||||
|
m2: 'Feb',
|
||||||
|
m3: 'Mar',
|
||||||
|
m4: 'Apr',
|
||||||
|
m5: 'May',
|
||||||
|
m6: 'Jun',
|
||||||
|
m7: 'Jul',
|
||||||
|
m8: 'Aug',
|
||||||
|
m9: 'Sep',
|
||||||
|
m10: 'Oct',
|
||||||
|
m11: 'Nov',
|
||||||
|
m12: 'Dec'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Source',
|
||||||
|
target: 'Target'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Search here',
|
||||||
|
notFoundText: 'Not Found'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Cancel'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Cancel'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Previous Page',
|
||||||
|
next: 'Next Page',
|
||||||
|
total: 'Total',
|
||||||
|
item: 'item',
|
||||||
|
items: 'items',
|
||||||
|
prev5: 'Previous 5 Pages',
|
||||||
|
next5: 'Next 5 Pages',
|
||||||
|
page: '/page',
|
||||||
|
goto: 'Goto',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Star',
|
||||||
|
stars: 'Stars'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'No Data'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
/******/ ]);
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/es-ES.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 2);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 2:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Seleccionar',
|
||||||
|
noMatch: 'Sin coincidencias',
|
||||||
|
loading: 'Cargando'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'Sin Datos',
|
||||||
|
noFilteredDataText: 'Sin Datos para el filtro',
|
||||||
|
confirmFilter: 'Aceptar',
|
||||||
|
resetFilter: 'Quitar filtro',
|
||||||
|
clearFilter: 'Todos'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Seleccionar fecha',
|
||||||
|
selectTime: 'Seleccionar hora',
|
||||||
|
startTime: 'Hora de inicio',
|
||||||
|
endTime: 'Hora de fin',
|
||||||
|
clear: 'Limpiar',
|
||||||
|
ok: 'Aceptar',
|
||||||
|
month: 'Mes',
|
||||||
|
month1: 'Enero',
|
||||||
|
month2: 'Febrero',
|
||||||
|
month3: 'Marzo',
|
||||||
|
month4: 'Abril',
|
||||||
|
month5: 'Mayo',
|
||||||
|
month6: 'Junio',
|
||||||
|
month7: 'Julio',
|
||||||
|
month8: 'Augosto',
|
||||||
|
month9: 'Septiembre',
|
||||||
|
month10: 'Octubre',
|
||||||
|
month11: 'Noviembre',
|
||||||
|
month12: 'Deciembre',
|
||||||
|
year: 'Año',
|
||||||
|
weeks: {
|
||||||
|
sun: 'Domingo',
|
||||||
|
mon: 'Lunes',
|
||||||
|
tue: 'Martes',
|
||||||
|
wed: 'Miércoles',
|
||||||
|
thu: 'Jueves',
|
||||||
|
fri: 'Viernes',
|
||||||
|
sat: 'Sábado'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Ene',
|
||||||
|
m2: 'Feb',
|
||||||
|
m3: 'Mar',
|
||||||
|
m4: 'Abr',
|
||||||
|
m5: 'May',
|
||||||
|
m6: 'Jun',
|
||||||
|
m7: 'Jul',
|
||||||
|
m8: 'Ago',
|
||||||
|
m9: 'Sep',
|
||||||
|
m10: 'Oct',
|
||||||
|
m11: 'Nov',
|
||||||
|
m12: 'Dic'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Origen',
|
||||||
|
target: 'Destino'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Buscar aquí',
|
||||||
|
notFoundText: 'Sin resultados'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'Aceptar',
|
||||||
|
cancelText: 'Cancelar'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'Aceptar',
|
||||||
|
cancelText: 'Cancelar'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Página Anterior',
|
||||||
|
next: 'Página Siguiente',
|
||||||
|
total: 'Total',
|
||||||
|
item: 'Elemento',
|
||||||
|
items: 'Elementos',
|
||||||
|
prev5: '5 Páginas Anteriores',
|
||||||
|
next5: '5 Páginas Siguientes',
|
||||||
|
page: '/page',
|
||||||
|
goto: 'Ir a',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Estrella',
|
||||||
|
stars: 'Estrellas'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'Sin Datos'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/fr-FR.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 3);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 3:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Sélectionnez',
|
||||||
|
noMatch: 'Aucun résultat',
|
||||||
|
loading: 'Chargement'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'Aucune donnée',
|
||||||
|
noFilteredDataText: 'No filter data',
|
||||||
|
confirmFilter: 'Confirmez',
|
||||||
|
resetFilter: 'Reset',
|
||||||
|
clearFilter: 'Tout'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Sélectionnez une date',
|
||||||
|
selectTime: 'Sélectionnez une heure',
|
||||||
|
startTime: 'Heure de début',
|
||||||
|
endTime: 'Heure de fin',
|
||||||
|
clear: 'Annuler',
|
||||||
|
ok: 'OK',
|
||||||
|
month: '',
|
||||||
|
month1: 'Janvier',
|
||||||
|
month2: 'Février',
|
||||||
|
month3: 'Mars',
|
||||||
|
month4: 'Avril',
|
||||||
|
month5: 'Mai',
|
||||||
|
month6: 'Juin',
|
||||||
|
month7: 'Juillet',
|
||||||
|
month8: 'Août',
|
||||||
|
month9: 'Septembre',
|
||||||
|
month10: 'Octobre',
|
||||||
|
month11: 'Novembre',
|
||||||
|
month12: 'Decembre',
|
||||||
|
year: '',
|
||||||
|
weeks: {
|
||||||
|
sun: 'Dim',
|
||||||
|
mon: 'Lun',
|
||||||
|
tue: 'Mar',
|
||||||
|
wed: 'Mer',
|
||||||
|
thu: 'Jeu',
|
||||||
|
fri: 'Ven',
|
||||||
|
sat: 'Sam'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Jan',
|
||||||
|
m2: 'Fev',
|
||||||
|
m3: 'Mar',
|
||||||
|
m4: 'Avr',
|
||||||
|
m5: 'Mai',
|
||||||
|
m6: 'Jun',
|
||||||
|
m7: 'Jul',
|
||||||
|
m8: 'Aoû',
|
||||||
|
m9: 'Sep',
|
||||||
|
m10: 'Oct',
|
||||||
|
m11: 'Nov',
|
||||||
|
m12: 'Déc'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Source',
|
||||||
|
target: 'Cible'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Recherche',
|
||||||
|
notFoundText: 'Pas de résultat'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Annuler'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Annuler'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Page Précédente',
|
||||||
|
next: 'Page Suivante',
|
||||||
|
total: 'Total',
|
||||||
|
item: 'élément',
|
||||||
|
items: 'éléments',
|
||||||
|
prev5: '5 Pages en Avant',
|
||||||
|
next5: '5 Pages en Arrière',
|
||||||
|
page: '/page',
|
||||||
|
goto: 'Aller à',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Étoile',
|
||||||
|
stars: 'Étoiles'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'Aucune donnée'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/id-ID.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 4);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 4:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Pilih',
|
||||||
|
noMatch: 'Tidak ada data yang cocok',
|
||||||
|
loading: 'Memuat'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'Tidak ada data',
|
||||||
|
noFilteredDataText: 'Tidak ada data filter',
|
||||||
|
confirmFilter: 'Konfirmasi',
|
||||||
|
resetFilter: 'Tata ulang',
|
||||||
|
clearFilter: 'Semua'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Pilih tanggal',
|
||||||
|
selectTime: 'Pilih waktu',
|
||||||
|
startTime: 'Waktu Mulai',
|
||||||
|
endTime: 'Waktu Selesai',
|
||||||
|
clear: 'Bersihkan',
|
||||||
|
ok: 'OK',
|
||||||
|
month: '',
|
||||||
|
month1: 'Januari',
|
||||||
|
month2: 'Februari',
|
||||||
|
month3: 'Maret',
|
||||||
|
month4: 'April',
|
||||||
|
month5: 'Mei',
|
||||||
|
month6: 'Juni',
|
||||||
|
month7: 'Juli',
|
||||||
|
month8: 'Agustus',
|
||||||
|
month9: 'September',
|
||||||
|
month10: 'Oktober',
|
||||||
|
month11: 'November',
|
||||||
|
month12: 'Desember',
|
||||||
|
year: '',
|
||||||
|
weeks: {
|
||||||
|
sun: 'Min',
|
||||||
|
mon: 'Sen',
|
||||||
|
tue: 'Sel',
|
||||||
|
wed: 'Rab',
|
||||||
|
thu: 'Kam',
|
||||||
|
fri: 'Jum',
|
||||||
|
sat: 'Sab'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Jan',
|
||||||
|
m2: 'Feb',
|
||||||
|
m3: 'Mar',
|
||||||
|
m4: 'Apr',
|
||||||
|
m5: 'Mei',
|
||||||
|
m6: 'Jun',
|
||||||
|
m7: 'Jul',
|
||||||
|
m8: 'Agu',
|
||||||
|
m9: 'Sep',
|
||||||
|
m10: 'Okt',
|
||||||
|
m11: 'Nov',
|
||||||
|
m12: 'Dec'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Sumber',
|
||||||
|
target: 'Tujuan'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Cari disini',
|
||||||
|
notFoundText: 'Tidak ditemukan'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Batal'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Batal'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Halaman Sebelumnya',
|
||||||
|
next: 'Halaman Selanjutnya',
|
||||||
|
total: 'Total',
|
||||||
|
item: 'butir',
|
||||||
|
items: 'butir',
|
||||||
|
prev5: '5 Halaman Sebelumnya',
|
||||||
|
next5: '5 Halaman Selanjutnya',
|
||||||
|
page: '/page',
|
||||||
|
goto: 'Pergi ke',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Star',
|
||||||
|
stars: 'Stars'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'Tidak ada data'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/ja-JP.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 5);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 5:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: '選んでください',
|
||||||
|
noMatch: 'マッチするデータなし',
|
||||||
|
loading: 'ロード中'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'データなし',
|
||||||
|
noFilteredDataText: 'スクリーニングしたデータなし',
|
||||||
|
confirmFilter: 'スクリーニング',
|
||||||
|
resetFilter: 'リセット',
|
||||||
|
clearFilter: '全部'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: '日時を選んでください',
|
||||||
|
selectTime: '時間を選んでください',
|
||||||
|
startTime: 'スタート時間',
|
||||||
|
endTime: '終了時間',
|
||||||
|
clear: 'クリーア',
|
||||||
|
ok: '確定',
|
||||||
|
month: '月',
|
||||||
|
month1: '1 月',
|
||||||
|
month2: '2 月',
|
||||||
|
month3: '3 月',
|
||||||
|
month4: '4 月',
|
||||||
|
month5: '5 月',
|
||||||
|
month6: '6 月',
|
||||||
|
month7: '7 月',
|
||||||
|
month8: '8 月',
|
||||||
|
month9: '9 月',
|
||||||
|
month10: '10 月',
|
||||||
|
month11: '11 月',
|
||||||
|
month12: '12 月',
|
||||||
|
year: '年',
|
||||||
|
weeks: {
|
||||||
|
sun: '日',
|
||||||
|
mon: '月',
|
||||||
|
tue: '火',
|
||||||
|
wed: '水',
|
||||||
|
thu: '木',
|
||||||
|
fri: '金',
|
||||||
|
sat: '土'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: '1月',
|
||||||
|
m2: '2月',
|
||||||
|
m3: '3月',
|
||||||
|
m4: '4月',
|
||||||
|
m5: '5月',
|
||||||
|
m6: '6月',
|
||||||
|
m7: '7月',
|
||||||
|
m8: '8月',
|
||||||
|
m9: '9月',
|
||||||
|
m10: '10月',
|
||||||
|
m11: '11月',
|
||||||
|
m12: '12月'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'ソースリスト',
|
||||||
|
target: 'ターゲットリスト'
|
||||||
|
},
|
||||||
|
filterPlaceholder: '検索内容を入力ください',
|
||||||
|
notFoundText: '内容が見つかってなかった'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: '確定',
|
||||||
|
cancelText: 'キャンセル'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: '確定',
|
||||||
|
cancelText: 'キャンセル'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: '前へ',
|
||||||
|
next: '次へ',
|
||||||
|
total: '全部',
|
||||||
|
item: '件',
|
||||||
|
items: '件',
|
||||||
|
prev5: '前の5ページへ',
|
||||||
|
next5: '次の5ページへ',
|
||||||
|
page: '件/ページ',
|
||||||
|
goto: '',
|
||||||
|
p: 'ページ目へ'
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: '点',
|
||||||
|
stars: '点'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'データなし'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/ko-KR.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 6);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 6:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: '선택',
|
||||||
|
noMatch: '일치하는 데이터 없음',
|
||||||
|
loading: '로딩'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: '데이터 없음',
|
||||||
|
noFilteredDataText: '필터된 데이터 없음',
|
||||||
|
confirmFilter: '확인',
|
||||||
|
resetFilter: '초기화',
|
||||||
|
clearFilter: '전부'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: '날짜 선택',
|
||||||
|
selectTime: '시간 선택',
|
||||||
|
startTime: '시작 시간',
|
||||||
|
endTime: '종료 시간',
|
||||||
|
clear: '삭제',
|
||||||
|
ok: '예',
|
||||||
|
month: '월',
|
||||||
|
month1: '1월',
|
||||||
|
month2: '2월',
|
||||||
|
month3: '3월',
|
||||||
|
month4: '4월',
|
||||||
|
month5: '5월',
|
||||||
|
month6: '6월',
|
||||||
|
month7: '7월',
|
||||||
|
month8: '8월',
|
||||||
|
month9: '9월',
|
||||||
|
month10: '10월',
|
||||||
|
month11: '11월',
|
||||||
|
month12: '12월',
|
||||||
|
year: '년',
|
||||||
|
weeks: {
|
||||||
|
sun: '일',
|
||||||
|
mon: '월',
|
||||||
|
tue: '화',
|
||||||
|
wed: '수',
|
||||||
|
thu: '목',
|
||||||
|
fri: '금',
|
||||||
|
sat: '토'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: '1월',
|
||||||
|
m2: '2월',
|
||||||
|
m3: '3월',
|
||||||
|
m4: '4월',
|
||||||
|
m5: '5월',
|
||||||
|
m6: '6월',
|
||||||
|
m7: '7월',
|
||||||
|
m8: '8월',
|
||||||
|
m9: '9월',
|
||||||
|
m10: '10월',
|
||||||
|
m11: '11월',
|
||||||
|
m12: '12월'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: '소스',
|
||||||
|
target: '타겟'
|
||||||
|
},
|
||||||
|
filterPlaceholder: '여기서 찾기',
|
||||||
|
notFoundText: '아무 것도 찾을 수 없음'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: '예',
|
||||||
|
cancelText: '취소'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: '예',
|
||||||
|
cancelText: '취소'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: '이전 페이지',
|
||||||
|
next: '다음 페이지',
|
||||||
|
total: '전체',
|
||||||
|
item: '항목',
|
||||||
|
items: '항목',
|
||||||
|
prev5: '이전 5 페이지',
|
||||||
|
next5: '다음 5 페이지',
|
||||||
|
page: '/페이지',
|
||||||
|
goto: '이동',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: '중요',
|
||||||
|
stars: '중요'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: '데이터 없음'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/pt-BR.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 7);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 7:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Selecionar',
|
||||||
|
noMatch: 'Não encontrado',
|
||||||
|
loading: 'Carregando'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'Sem dados',
|
||||||
|
noFilteredDataText: 'Sem dados filtrados',
|
||||||
|
confirmFilter: 'Confirmar',
|
||||||
|
resetFilter: 'Limpar',
|
||||||
|
clearFilter: 'Todos'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Selecione a data',
|
||||||
|
selectTime: 'Selecione a hora',
|
||||||
|
startTime: 'Hora inicial',
|
||||||
|
endTime: 'Hora final',
|
||||||
|
clear: 'Limpar',
|
||||||
|
ok: 'Confirmar',
|
||||||
|
month: 'Mês',
|
||||||
|
month1: 'Janeiro',
|
||||||
|
month2: 'Fevereiro',
|
||||||
|
month3: 'Março',
|
||||||
|
month4: 'Abril',
|
||||||
|
month5: 'Maio',
|
||||||
|
month6: 'Junho',
|
||||||
|
month7: 'Julho',
|
||||||
|
month8: 'Agosto',
|
||||||
|
month9: 'Setembro',
|
||||||
|
month10: 'Outubro',
|
||||||
|
month11: 'Novembro',
|
||||||
|
month12: 'Dezembro',
|
||||||
|
year: 'Ano',
|
||||||
|
weeks: {
|
||||||
|
sun: 'Dom',
|
||||||
|
mon: 'Seg',
|
||||||
|
tue: 'Ter',
|
||||||
|
wed: 'Qua',
|
||||||
|
thu: 'Qui',
|
||||||
|
fri: 'Sex',
|
||||||
|
sat: 'Sáb'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Jan',
|
||||||
|
m2: 'Fev',
|
||||||
|
m3: 'Mar',
|
||||||
|
m4: 'Abr',
|
||||||
|
m5: 'Mai',
|
||||||
|
m6: 'Jun',
|
||||||
|
m7: 'Jul',
|
||||||
|
m8: 'Ago',
|
||||||
|
m9: 'Set',
|
||||||
|
m10: 'Out',
|
||||||
|
m11: 'Nov',
|
||||||
|
m12: 'Dez'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Origem',
|
||||||
|
target: 'Destino'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Pesquise aqui',
|
||||||
|
notFoundText: 'Não encontrado'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'Confirmar',
|
||||||
|
cancelText: 'Cancelar'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'Confirmar',
|
||||||
|
cancelText: 'Cancelar'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Página Anterior',
|
||||||
|
next: 'Próxima Página',
|
||||||
|
total: 'Total',
|
||||||
|
item: 'item',
|
||||||
|
items: 'itens',
|
||||||
|
prev5: 'Voltar 5 Páginas',
|
||||||
|
next5: 'Avançar 5 Páginas',
|
||||||
|
page: '/page',
|
||||||
|
goto: 'Ir para',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Estrela',
|
||||||
|
stars: 'Estrelas'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'Sem dados'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/pt-PT.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 8);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 8:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Selecionar',
|
||||||
|
noMatch: 'Não encontrado',
|
||||||
|
loading: 'A carregar'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'Sem dados',
|
||||||
|
noFilteredDataText: 'Sem dados filtrados',
|
||||||
|
confirmFilter: 'Confirmar',
|
||||||
|
resetFilter: 'Limpar',
|
||||||
|
clearFilter: 'Todos'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Selecione a data',
|
||||||
|
selectTime: 'Selecione a hora',
|
||||||
|
startTime: 'Hora inicial',
|
||||||
|
endTime: 'Hora final',
|
||||||
|
clear: 'Limpar',
|
||||||
|
ok: 'Confirmar',
|
||||||
|
month: 'Mês',
|
||||||
|
month1: 'Janeiro',
|
||||||
|
month2: 'Fevereiro',
|
||||||
|
month3: 'Março',
|
||||||
|
month4: 'Abril',
|
||||||
|
month5: 'Maio',
|
||||||
|
month6: 'Junho',
|
||||||
|
month7: 'Julho',
|
||||||
|
month8: 'Agosto',
|
||||||
|
month9: 'Setembro',
|
||||||
|
month10: 'Outubro',
|
||||||
|
month11: 'Novembro',
|
||||||
|
month12: 'Dezembro',
|
||||||
|
year: 'Ano',
|
||||||
|
weeks: {
|
||||||
|
sun: 'Dom',
|
||||||
|
mon: 'Seg',
|
||||||
|
tue: 'Ter',
|
||||||
|
wed: 'Qua',
|
||||||
|
thu: 'Qui',
|
||||||
|
fri: 'Sex',
|
||||||
|
sat: 'Sáb'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Jan',
|
||||||
|
m2: 'Fev',
|
||||||
|
m3: 'Mar',
|
||||||
|
m4: 'Abr',
|
||||||
|
m5: 'Mai',
|
||||||
|
m6: 'Jun',
|
||||||
|
m7: 'Jul',
|
||||||
|
m8: 'Ago',
|
||||||
|
m9: 'Set',
|
||||||
|
m10: 'Out',
|
||||||
|
m11: 'Nov',
|
||||||
|
m12: 'Dez'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Origem',
|
||||||
|
target: 'Destino'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Pesquise aqui',
|
||||||
|
notFoundText: 'Não encontrado'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'Confirmar',
|
||||||
|
cancelText: 'Cancelar'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'Confirmar',
|
||||||
|
cancelText: 'Cancelar'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Página anterior',
|
||||||
|
next: 'Próxima página',
|
||||||
|
total: 'Total',
|
||||||
|
item: 'item',
|
||||||
|
items: 'itens',
|
||||||
|
prev5: 'Voltar 5 páginas',
|
||||||
|
next5: 'Avançar 5 páginas',
|
||||||
|
page: '/page',
|
||||||
|
goto: 'Ir para',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Estrela',
|
||||||
|
stars: 'Estrelas'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'Sem dados'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/ru-RU.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 9);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 9:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Выбрать',
|
||||||
|
noMatch: 'Нет соответствующих данных',
|
||||||
|
loading: 'Загрузка'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'Нет данных',
|
||||||
|
noFilteredDataText: 'Нет данных по фильтру',
|
||||||
|
confirmFilter: 'Подтвердить',
|
||||||
|
resetFilter: 'Сброс',
|
||||||
|
clearFilter: 'Все'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Выбрать дату',
|
||||||
|
selectTime: 'Выбрать время',
|
||||||
|
startTime: 'Начальное время',
|
||||||
|
endTime: 'Конечное время',
|
||||||
|
clear: 'Очистить',
|
||||||
|
ok: 'OK',
|
||||||
|
month: '',
|
||||||
|
month1: 'Январь',
|
||||||
|
month2: 'Февраль',
|
||||||
|
month3: 'Март',
|
||||||
|
month4: 'Апрель',
|
||||||
|
month5: 'Май',
|
||||||
|
month6: 'Июнь',
|
||||||
|
month7: 'Июль',
|
||||||
|
month8: 'Август',
|
||||||
|
month9: 'Сентябрь',
|
||||||
|
month10: 'Октябрь',
|
||||||
|
month11: 'Ноябрь',
|
||||||
|
month12: 'Декабрь',
|
||||||
|
year: '',
|
||||||
|
weeks: {
|
||||||
|
sun: 'Вс',
|
||||||
|
mon: 'Пн',
|
||||||
|
tue: 'Вт',
|
||||||
|
wed: 'Ср',
|
||||||
|
thu: 'Чт',
|
||||||
|
fri: 'Пт',
|
||||||
|
sat: 'Сб'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Янв',
|
||||||
|
m2: 'Фев',
|
||||||
|
m3: 'Мар',
|
||||||
|
m4: 'Апр',
|
||||||
|
m5: 'Май',
|
||||||
|
m6: 'Июн',
|
||||||
|
m7: 'Июл',
|
||||||
|
m8: 'Авг',
|
||||||
|
m9: 'Сен',
|
||||||
|
m10: 'Окт',
|
||||||
|
m11: 'Ноя',
|
||||||
|
m12: 'Дек'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Источник',
|
||||||
|
target: 'Цель'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Искать здесь',
|
||||||
|
notFoundText: 'Не Найдено'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Отменить'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Отменить'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Пред. страница',
|
||||||
|
next: 'След. страница',
|
||||||
|
total: 'Всего',
|
||||||
|
item: 'пункт',
|
||||||
|
items: 'пункты',
|
||||||
|
prev5: 'Пред. 5 страниц',
|
||||||
|
next5: 'След. 5 страниц',
|
||||||
|
page: '/page',
|
||||||
|
goto: 'Идти к',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Звезда',
|
||||||
|
stars: 'Звезды'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'Нет данных'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/sv-SE.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 10);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 10:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Välj',
|
||||||
|
noMatch: 'Ingen träff',
|
||||||
|
loading: 'Ladar'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'Ingen data',
|
||||||
|
noFilteredDataText: 'Ingen filter data',
|
||||||
|
confirmFilter: 'Bekräfta',
|
||||||
|
resetFilter: 'Återställ filter',
|
||||||
|
clearFilter: 'Rensa filter'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Välj datum',
|
||||||
|
selectTime: 'Välj tidpunkt',
|
||||||
|
startTime: 'Start tid',
|
||||||
|
endTime: 'Slut tid',
|
||||||
|
clear: 'Rensa',
|
||||||
|
ok: 'Ok',
|
||||||
|
month: 'Månad',
|
||||||
|
month1: 'Januari',
|
||||||
|
month2: 'Februari',
|
||||||
|
month3: 'Mars',
|
||||||
|
month4: 'April',
|
||||||
|
month5: 'Maj',
|
||||||
|
month6: 'Juni',
|
||||||
|
month7: 'Juli',
|
||||||
|
month8: 'Augusti',
|
||||||
|
month9: 'September',
|
||||||
|
month10: 'Oktober',
|
||||||
|
month11: 'November',
|
||||||
|
month12: 'December',
|
||||||
|
year: 'År',
|
||||||
|
weeks: {
|
||||||
|
sun: 'Sön',
|
||||||
|
mon: 'Mån',
|
||||||
|
tue: 'Tis',
|
||||||
|
wed: 'Ons',
|
||||||
|
thu: 'Tor',
|
||||||
|
fri: 'Fre',
|
||||||
|
sat: 'Lör'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Jan',
|
||||||
|
m2: 'Feb',
|
||||||
|
m3: 'Mar',
|
||||||
|
m4: 'Apr',
|
||||||
|
m5: 'Maj',
|
||||||
|
m6: 'Jun',
|
||||||
|
m7: 'Jul',
|
||||||
|
m8: 'Aug',
|
||||||
|
m9: 'Sep',
|
||||||
|
m10: 'Okt',
|
||||||
|
m11: 'Nov',
|
||||||
|
m12: 'Dec'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Källa',
|
||||||
|
target: 'Mål'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Sök här',
|
||||||
|
notFoundText: 'Hittade inte'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'Ok',
|
||||||
|
cancelText: 'Avbryt'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'Ok',
|
||||||
|
cancelText: 'Avbryt'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Föregående sida',
|
||||||
|
next: 'Nästa sida',
|
||||||
|
total: 'Totalt',
|
||||||
|
item: 'objekt',
|
||||||
|
items: 'objekt',
|
||||||
|
prev5: 'Föregående 5 sidor',
|
||||||
|
next5: 'Nästa 5 sidor',
|
||||||
|
page: '/page',
|
||||||
|
goto: 'Gå till',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Stjärna',
|
||||||
|
stars: 'Stjärnor'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'Ingen data'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/tr-TR.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 11);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 11:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Seç',
|
||||||
|
noMatch: 'Eşleşen veri yok',
|
||||||
|
loading: 'yükleme'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'Veri Yok',
|
||||||
|
noFilteredDataText: 'Süzülen veri yok',
|
||||||
|
confirmFilter: 'Onayla',
|
||||||
|
resetFilter: 'Sıfırla',
|
||||||
|
clearFilter: 'Hepsi'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Tarih seç',
|
||||||
|
selectTime: 'Zaman seç',
|
||||||
|
startTime: 'Başlangıç',
|
||||||
|
endTime: 'Bitişe',
|
||||||
|
clear: 'Temizle',
|
||||||
|
ok: 'Tamam',
|
||||||
|
month: '',
|
||||||
|
month1: 'Ocak',
|
||||||
|
month2: 'Şubat',
|
||||||
|
month3: 'Mart',
|
||||||
|
month4: 'Nisan',
|
||||||
|
month5: 'Mayıs',
|
||||||
|
month6: 'Haziran',
|
||||||
|
month7: 'Temmuz',
|
||||||
|
month8: 'Ağustos',
|
||||||
|
month9: 'Eylül',
|
||||||
|
month10: 'Ekim',
|
||||||
|
month11: 'Kasım',
|
||||||
|
month12: 'Aralık',
|
||||||
|
year: '',
|
||||||
|
weeks: {
|
||||||
|
sun: 'Paz',
|
||||||
|
mon: 'Pzt',
|
||||||
|
tue: 'Sal',
|
||||||
|
wed: 'Çar',
|
||||||
|
thu: 'Per',
|
||||||
|
fri: 'Cum',
|
||||||
|
sat: 'Cmt'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Oca',
|
||||||
|
m2: 'Şub',
|
||||||
|
m3: 'Mar',
|
||||||
|
m4: 'Nis',
|
||||||
|
m5: 'May',
|
||||||
|
m6: 'Haz',
|
||||||
|
m7: 'Tem',
|
||||||
|
m8: 'Ağu',
|
||||||
|
m9: 'Eyl',
|
||||||
|
m10: 'Ekm',
|
||||||
|
m11: 'Kas',
|
||||||
|
m12: 'Ara'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Kaynak',
|
||||||
|
target: 'Hedef'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Arama yapın',
|
||||||
|
notFoundText: 'Bulunamadı'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'Tamam',
|
||||||
|
cancelText: 'İptal'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'Tamam',
|
||||||
|
cancelText: 'İptal'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Önceki',
|
||||||
|
next: 'Sonraki',
|
||||||
|
total: 'Toplam',
|
||||||
|
item: 'öğe',
|
||||||
|
items: 'öğeler',
|
||||||
|
prev5: 'Önceki 5 Sayfa',
|
||||||
|
next5: 'Sonraki 5 Sayfa',
|
||||||
|
page: '/sayfa',
|
||||||
|
goto: 'Git',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Yıldız',
|
||||||
|
stars: 'Yıldız'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'Veri Yok'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/vi-VN.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 12);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 12:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: 'Chọn',
|
||||||
|
noMatch: 'Không tìm thấy',
|
||||||
|
loading: 'Đang tải'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: 'Không có dữ liệu',
|
||||||
|
noFilteredDataText: 'Không có dữ liệu lọc',
|
||||||
|
confirmFilter: 'Xác nhận',
|
||||||
|
resetFilter: 'Làm lại',
|
||||||
|
clearFilter: 'Xóa hết'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: 'Chọn ngày',
|
||||||
|
selectTime: 'Chọn giờ',
|
||||||
|
startTime: 'Ngày bắt đầu',
|
||||||
|
endTime: 'Ngày kết thúc',
|
||||||
|
clear: 'Xóa',
|
||||||
|
ok: 'Đồng ý',
|
||||||
|
month: '',
|
||||||
|
month1: 'Tháng 1',
|
||||||
|
month2: 'Tháng 2',
|
||||||
|
month3: 'Tháng 3',
|
||||||
|
month4: 'Tháng 4',
|
||||||
|
month5: 'Tháng 5',
|
||||||
|
month6: 'Tháng 6',
|
||||||
|
month7: 'Tháng 7',
|
||||||
|
month8: 'Tháng 8',
|
||||||
|
month9: 'Tháng 9',
|
||||||
|
month10: 'Tháng 10',
|
||||||
|
month11: 'Tháng 11',
|
||||||
|
month12: 'Tháng 12',
|
||||||
|
year: '',
|
||||||
|
weeks: {
|
||||||
|
sun: 'CN',
|
||||||
|
mon: 'T2',
|
||||||
|
tue: 'T3',
|
||||||
|
wed: 'T4',
|
||||||
|
thu: 'T5',
|
||||||
|
fri: 'T6',
|
||||||
|
sat: 'T7'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: 'Th.1',
|
||||||
|
m2: 'Th.2',
|
||||||
|
m3: 'Th.3',
|
||||||
|
m4: 'Th.4',
|
||||||
|
m5: 'Th.5',
|
||||||
|
m6: 'Th.6',
|
||||||
|
m7: 'Th.7',
|
||||||
|
m8: 'Th.8',
|
||||||
|
m9: 'Th.9',
|
||||||
|
m10: 'Th.10',
|
||||||
|
m11: 'Th.11',
|
||||||
|
m12: 'Th.12'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: 'Nguồn',
|
||||||
|
target: 'Đích'
|
||||||
|
},
|
||||||
|
filterPlaceholder: 'Nhập từ khóa',
|
||||||
|
notFoundText: 'Không tìm thấy'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: 'Đồng ý',
|
||||||
|
cancelText: 'Hủy bỏ'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: 'Đồng ý',
|
||||||
|
cancelText: 'Hủy bỏ'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: 'Trang trước',
|
||||||
|
next: 'Trang kế',
|
||||||
|
total: 'Tổng',
|
||||||
|
item: 'kết quả',
|
||||||
|
items: 'kết quả',
|
||||||
|
prev5: '5 trang trước',
|
||||||
|
next5: '5 trang kế',
|
||||||
|
page: '/trang',
|
||||||
|
goto: 'Tới trang',
|
||||||
|
p: ''
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: 'Sao',
|
||||||
|
stars: 'Sao'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: 'Không có dữ liệu'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/zh-CN.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 13);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 13:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: '请选择',
|
||||||
|
noMatch: '无匹配数据',
|
||||||
|
loading: '加载中'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: '暂无数据',
|
||||||
|
noFilteredDataText: '暂无筛选结果',
|
||||||
|
confirmFilter: '筛选',
|
||||||
|
resetFilter: '重置',
|
||||||
|
clearFilter: '全部'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: '选择日期',
|
||||||
|
selectTime: '选择时间',
|
||||||
|
startTime: '开始时间',
|
||||||
|
endTime: '结束时间',
|
||||||
|
clear: '清空',
|
||||||
|
ok: '确定',
|
||||||
|
month: '月',
|
||||||
|
month1: '1 月',
|
||||||
|
month2: '2 月',
|
||||||
|
month3: '3 月',
|
||||||
|
month4: '4 月',
|
||||||
|
month5: '5 月',
|
||||||
|
month6: '6 月',
|
||||||
|
month7: '7 月',
|
||||||
|
month8: '8 月',
|
||||||
|
month9: '9 月',
|
||||||
|
month10: '10 月',
|
||||||
|
month11: '11 月',
|
||||||
|
month12: '12 月',
|
||||||
|
year: '年',
|
||||||
|
weeks: {
|
||||||
|
sun: '日',
|
||||||
|
mon: '一',
|
||||||
|
tue: '二',
|
||||||
|
wed: '三',
|
||||||
|
thu: '四',
|
||||||
|
fri: '五',
|
||||||
|
sat: '六'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: '1月',
|
||||||
|
m2: '2月',
|
||||||
|
m3: '3月',
|
||||||
|
m4: '4月',
|
||||||
|
m5: '5月',
|
||||||
|
m6: '6月',
|
||||||
|
m7: '7月',
|
||||||
|
m8: '8月',
|
||||||
|
m9: '9月',
|
||||||
|
m10: '10月',
|
||||||
|
m11: '11月',
|
||||||
|
m12: '12月'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: '源列表',
|
||||||
|
target: '目的列表'
|
||||||
|
},
|
||||||
|
filterPlaceholder: '请输入搜索内容',
|
||||||
|
notFoundText: '列表为空'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: '确定',
|
||||||
|
cancelText: '取消'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: '确定',
|
||||||
|
cancelText: '取消'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: '上一页',
|
||||||
|
next: '下一页',
|
||||||
|
total: '共',
|
||||||
|
item: '条',
|
||||||
|
items: '条',
|
||||||
|
prev5: '向前 5 页',
|
||||||
|
next5: '向后 5 页',
|
||||||
|
page: '条/页',
|
||||||
|
goto: '跳至',
|
||||||
|
p: '页'
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: '星',
|
||||||
|
stars: '星'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: '暂无数据'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
187
public/static/libs/iview/dist/locale/zh-TW.js
vendored
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define("iview/locale", [], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["iview/locale"] = factory();
|
||||||
|
else
|
||||||
|
root["iview/locale"] = factory();
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "/dist/locale/";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 14);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ({
|
||||||
|
|
||||||
|
/***/ 14:
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", {
|
||||||
|
value: true
|
||||||
|
});
|
||||||
|
exports.default = {
|
||||||
|
i: {
|
||||||
|
select: {
|
||||||
|
placeholder: '請選擇',
|
||||||
|
noMatch: '無匹配數據',
|
||||||
|
loading: '加載中'
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
noDataText: '暫無數據',
|
||||||
|
noFilteredDataText: '暫無篩選結果',
|
||||||
|
confirmFilter: '篩選',
|
||||||
|
resetFilter: '重置',
|
||||||
|
clearFilter: '全部'
|
||||||
|
},
|
||||||
|
datepicker: {
|
||||||
|
selectDate: '選擇日期',
|
||||||
|
selectTime: '選擇時間',
|
||||||
|
startTime: '開始時間',
|
||||||
|
endTime: '結束時間',
|
||||||
|
clear: '清空',
|
||||||
|
ok: '確定',
|
||||||
|
month: '月',
|
||||||
|
month1: '1 月',
|
||||||
|
month2: '2 月',
|
||||||
|
month3: '3 月',
|
||||||
|
month4: '4 月',
|
||||||
|
month5: '5 月',
|
||||||
|
month6: '6 月',
|
||||||
|
month7: '7 月',
|
||||||
|
month8: '8 月',
|
||||||
|
month9: '9 月',
|
||||||
|
month10: '10 月',
|
||||||
|
month11: '11 月',
|
||||||
|
month12: '12 月',
|
||||||
|
year: '年',
|
||||||
|
weeks: {
|
||||||
|
sun: '日',
|
||||||
|
mon: '一',
|
||||||
|
tue: '二',
|
||||||
|
wed: '三',
|
||||||
|
thu: '四',
|
||||||
|
fri: '五',
|
||||||
|
sat: '六'
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
m1: '1月',
|
||||||
|
m2: '2月',
|
||||||
|
m3: '3月',
|
||||||
|
m4: '4月',
|
||||||
|
m5: '5月',
|
||||||
|
m6: '6月',
|
||||||
|
m7: '7月',
|
||||||
|
m8: '8月',
|
||||||
|
m9: '9月',
|
||||||
|
m10: '10月',
|
||||||
|
m11: '11月',
|
||||||
|
m12: '12月'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
titles: {
|
||||||
|
source: '源列表',
|
||||||
|
target: '目的列表'
|
||||||
|
},
|
||||||
|
filterPlaceholder: '請輸入搜索內容',
|
||||||
|
notFoundText: '列表爲空'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
okText: '確定',
|
||||||
|
cancelText: '取消'
|
||||||
|
},
|
||||||
|
poptip: {
|
||||||
|
okText: '確定',
|
||||||
|
cancelText: '取消'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
prev: '上壹頁',
|
||||||
|
next: '下壹頁',
|
||||||
|
total: '共',
|
||||||
|
item: '條',
|
||||||
|
items: '條',
|
||||||
|
prev5: '向前 5 頁',
|
||||||
|
next5: '向後 5 頁',
|
||||||
|
page: '條/頁',
|
||||||
|
goto: '跳至',
|
||||||
|
p: '頁'
|
||||||
|
},
|
||||||
|
rate: {
|
||||||
|
star: '星',
|
||||||
|
stars: '星'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
emptyText: '暫無數據'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
});
|
||||||
BIN
public/static/libs/iview/dist/styles/fonts/ionicons.eot
vendored
Normal file
2230
public/static/libs/iview/dist/styles/fonts/ionicons.svg
vendored
Normal file
|
After Width: | Height: | Size: 326 KiB |
BIN
public/static/libs/iview/dist/styles/fonts/ionicons.ttf
vendored
Normal file
BIN
public/static/libs/iview/dist/styles/fonts/ionicons.woff
vendored
Normal file
1
public/static/libs/iview/dist/styles/iview.css
vendored
Normal file
9
public/static/libs/requirejs/README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# requirejs
|
||||||
|
|
||||||
|
RequireJS for use in Node. includes:
|
||||||
|
|
||||||
|
* r.js: the RequireJS optimizer, and AMD runtime for use in Node.
|
||||||
|
* require.js: The browser-based AMD loader.
|
||||||
|
|
||||||
|
More information at http://requirejs.org
|
||||||
|
|
||||||
30420
public/static/libs/requirejs/bin/r.js
Normal file
81
public/static/libs/requirejs/package.json
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
{
|
||||||
|
"_args": [
|
||||||
|
[
|
||||||
|
"requirejs",
|
||||||
|
"F:\\coreCms\\tp5\\public\\system"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"_from": "requirejs@latest",
|
||||||
|
"_id": "requirejs@2.3.5",
|
||||||
|
"_inCache": true,
|
||||||
|
"_installable": true,
|
||||||
|
"_location": "/requirejs",
|
||||||
|
"_nodeVersion": "8.1.0",
|
||||||
|
"_npmOperationalInternal": {
|
||||||
|
"host": "s3://npm-registry-packages",
|
||||||
|
"tmp": "tmp/requirejs-2.3.5.tgz_1503270211869_0.5688834469765425"
|
||||||
|
},
|
||||||
|
"_npmUser": {
|
||||||
|
"email": "jrburke@gmail.com",
|
||||||
|
"name": "jrburke"
|
||||||
|
},
|
||||||
|
"_npmVersion": "5.0.3",
|
||||||
|
"_phantomChildren": {},
|
||||||
|
"_requested": {
|
||||||
|
"name": "requirejs",
|
||||||
|
"raw": "requirejs",
|
||||||
|
"rawSpec": "",
|
||||||
|
"scope": null,
|
||||||
|
"spec": "latest",
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
"_requiredBy": [
|
||||||
|
"#USER"
|
||||||
|
],
|
||||||
|
"_resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.5.tgz",
|
||||||
|
"_shasum": "617b9acbbcb336540ef4914d790323a8d4b861b0",
|
||||||
|
"_shrinkwrap": null,
|
||||||
|
"_spec": "requirejs",
|
||||||
|
"_where": "F:\\coreCms\\tp5\\public\\system",
|
||||||
|
"author": {
|
||||||
|
"email": "jrburke@gmail.com",
|
||||||
|
"name": "James Burke",
|
||||||
|
"url": "http://github.com/jrburke"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"r.js": "./bin/r.js",
|
||||||
|
"r_js": "./bin/r.js"
|
||||||
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/jrburke/r.js/issues"
|
||||||
|
},
|
||||||
|
"dependencies": {},
|
||||||
|
"description": "Node adapter for RequireJS, for loading AMD modules. Includes RequireJS optimizer",
|
||||||
|
"devDependencies": {},
|
||||||
|
"directories": {},
|
||||||
|
"dist": {
|
||||||
|
"integrity": "sha512-svnO+aNcR/an9Dpi44C7KSAy5fFGLtmPbaaCeQaklUz8BQhS64tWWIIlvEA5jrWICzlO/X9KSzSeXFnZdBu8nw==",
|
||||||
|
"shasum": "617b9acbbcb336540ef4914d790323a8d4b861b0",
|
||||||
|
"tarball": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.5.tgz"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.4.0"
|
||||||
|
},
|
||||||
|
"homepage": "http://github.com/jrburke/r.js",
|
||||||
|
"license": "MIT",
|
||||||
|
"main": "./bin/r.js",
|
||||||
|
"maintainers": [
|
||||||
|
{
|
||||||
|
"email": "jrburke@gmail.com",
|
||||||
|
"name": "jrburke"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "requirejs",
|
||||||
|
"optionalDependencies": {},
|
||||||
|
"readme": "ERROR: No README data found!",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/jrburke/r.js.git"
|
||||||
|
},
|
||||||
|
"version": "2.3.5"
|
||||||
|
}
|
||||||
2145
public/static/libs/requirejs/require.js
Normal file
87
public/static/libs/umeditor/dialogs/emotion/emotion.css
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
.edui-popup-emotion .edui-emotion-jd img{
|
||||||
|
background:transparent url(images/jxface2.gif?v=1.1) no-repeat scroll left top;
|
||||||
|
cursor:pointer;width:35px;height:35px;display:block;
|
||||||
|
}
|
||||||
|
.edui-popup-emotion .edui-emotion-pp img{
|
||||||
|
background:transparent url(images/fface.gif?v=1.1) no-repeat scroll left top;
|
||||||
|
cursor:pointer;width:25px;height:25px;display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-emotion-ldw img{
|
||||||
|
background:transparent url(images/wface.gif?v=1.1) no-repeat scroll left top;
|
||||||
|
cursor:pointer;width:35px;height:35px;display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-emotion-tsj img{
|
||||||
|
background:transparent url(images/tface.gif?v=1.1) no-repeat scroll left top;
|
||||||
|
cursor:pointer;width:35px;height:35px;display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-emotion-cat img{
|
||||||
|
background:transparent url(images/cface.gif?v=1.1) no-repeat scroll left top;
|
||||||
|
cursor:pointer;width:35px;height:35px;display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-emotion-bb img{
|
||||||
|
background:transparent url(images/bface.gif?v=1.1) no-repeat scroll left top;
|
||||||
|
cursor:pointer;width:35px;height:35px;display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-emotion-youa img{
|
||||||
|
background:transparent url(images/yface.gif?v=1.1) no-repeat scroll left top;
|
||||||
|
cursor:pointer;width:35px;height:35px;display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-emotion-smileytable {
|
||||||
|
width: 100%;
|
||||||
|
border-spacing: 0;
|
||||||
|
border-collapse: collapse;
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-emotion-wrapper {
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-tab-nav{
|
||||||
|
height: auto;
|
||||||
|
*height: 31px;
|
||||||
|
}
|
||||||
|
.edui-popup-emotion .edui-emotion-tabs{
|
||||||
|
clear: both;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-tab-content {
|
||||||
|
padding: 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-emotion-preview-box {
|
||||||
|
width:90px;
|
||||||
|
height:76px;
|
||||||
|
border:2px solid #9cb945;
|
||||||
|
background:#FFFFFF;
|
||||||
|
background-position:center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
position: absolute;
|
||||||
|
top: 67px;
|
||||||
|
left: 494px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-tab-text {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-emotion-preview-left {
|
||||||
|
left: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edui-popup-emotion .edui-emotion-preview-img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: block;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center center;
|
||||||
|
}
|
||||||
272
public/static/libs/umeditor/dialogs/emotion/emotion.js
Normal file
@@ -0,0 +1,272 @@
|
|||||||
|
(function(){
|
||||||
|
|
||||||
|
var editor = null;
|
||||||
|
|
||||||
|
UM.registerWidget('emotion',{
|
||||||
|
|
||||||
|
tpl: "<link type=\"text/css\" rel=\"stylesheet\" href=\"<%=emotion_url%>emotion.css\">" +
|
||||||
|
"<div class=\"edui-emotion-tab-Jpanel edui-emotion-wrapper\">" +
|
||||||
|
"<ul class=\"edui-emotion-Jtabnav edui-tab-nav\">" +
|
||||||
|
"<li class=\"edui-tab-item\"><a data-context=\".edui-emotion-Jtab0\" hideFocus=\"true\" class=\"edui-tab-text\"><%=lang_input_choice%></a></li>" +
|
||||||
|
"<li class=\"edui-tab-item\"><a data-context=\".edui-emotion-Jtab1\" class=\"edui-tab-text\"><%=lang_input_Tuzki%></a></li>" +
|
||||||
|
"<li class=\"edui-tab-item\"><a data-context=\".edui-emotion-Jtab2\" hideFocus=\"true\" class=\"edui-tab-text\"><%=lang_input_lvdouwa%></a></li>" +
|
||||||
|
"<li class=\"edui-tab-item\"><a data-context=\".edui-emotion-Jtab3\" hideFocus=\"true\" class=\"edui-tab-text\"><%=lang_input_BOBO%></a></li>" +
|
||||||
|
"<li class=\"edui-tab-item\"><a data-context=\".edui-emotion-Jtab4\" hideFocus=\"true\" class=\"edui-tab-text\"><%=lang_input_babyCat%></a></li>" +
|
||||||
|
"<li class=\"edui-tab-item\"><a data-context=\".edui-emotion-Jtab5\" hideFocus=\"true\" class=\"edui-tab-text\"><%=lang_input_bubble%></a></li>" +
|
||||||
|
"<li class=\"edui-tab-item\"><a data-context=\".edui-emotion-Jtab6\" hideFocus=\"true\" class=\"edui-tab-text\"><%=lang_input_youa%></a></li>" +
|
||||||
|
"<li class=\"edui-emotion-tabs\"></li>" +
|
||||||
|
"</ul>" +
|
||||||
|
"<div class=\"edui-tab-content edui-emotion-JtabBodys\">" +
|
||||||
|
"<div class=\"edui-emotion-Jtab0 edui-tab-pane\"></div>" +
|
||||||
|
"<div class=\"edui-emotion-Jtab1 edui-tab-pane\"></div>" +
|
||||||
|
"<div class=\"edui-emotion-Jtab2 edui-tab-pane\"></div>" +
|
||||||
|
"<div class=\"edui-emotion-Jtab3 edui-tab-pane\"></div>" +
|
||||||
|
"<div class=\"edui-emotion-Jtab4 edui-tab-pane\"></div>" +
|
||||||
|
"<div class=\"edui-emotion-Jtab5 edui-tab-pane\"></div>" +
|
||||||
|
"<div class=\"edui-emotion-Jtab6 edui-tab-pane\"></div>" +
|
||||||
|
"</div>" +
|
||||||
|
"<div class=\"edui-emotion-JtabIconReview edui-emotion-preview-box\">" +
|
||||||
|
"<img src=\"<%=cover_img%>\" class=\'edui-emotion-JfaceReview edui-emotion-preview-img\'/>" +
|
||||||
|
"</div>",
|
||||||
|
|
||||||
|
sourceData: {
|
||||||
|
emotion: {
|
||||||
|
tabNum:7, //切换面板数量
|
||||||
|
SmilmgName:{ 'edui-emotion-Jtab0':['j_00', 84], 'edui-emotion-Jtab1':['t_00', 40], 'edui-emotion-Jtab2':['w_00', 52], 'edui-emotion-Jtab3':['B_00', 63], 'edui-emotion-Jtab4':['C_00', 20], 'edui-emotion-Jtab5':['i_f', 50], 'edui-emotion-Jtab6':['y_00', 40] }, //图片前缀名
|
||||||
|
imageFolders:{ 'edui-emotion-Jtab0':'jx2/', 'edui-emotion-Jtab1':'tsj/', 'edui-emotion-Jtab2':'ldw/', 'edui-emotion-Jtab3':'bobo/', 'edui-emotion-Jtab4':'babycat/', 'edui-emotion-Jtab5':'face/', 'edui-emotion-Jtab6':'youa/'}, //图片对应文件夹路径
|
||||||
|
imageCss:{'edui-emotion-Jtab0':'jd', 'edui-emotion-Jtab1':'tsj', 'edui-emotion-Jtab2':'ldw', 'edui-emotion-Jtab3':'bb', 'edui-emotion-Jtab4':'cat', 'edui-emotion-Jtab5':'pp', 'edui-emotion-Jtab6':'youa'}, //图片css类名
|
||||||
|
imageCssOffset:{'edui-emotion-Jtab0':35, 'edui-emotion-Jtab1':35, 'edui-emotion-Jtab2':35, 'edui-emotion-Jtab3':35, 'edui-emotion-Jtab4':35, 'edui-emotion-Jtab5':25, 'edui-emotion-Jtab6':35}, //图片偏移
|
||||||
|
SmileyInfor:{
|
||||||
|
'edui-emotion-Jtab0':['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '打酱油', '俯卧撑', '气愤', '?', '吻', '怒', '胜利', 'HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '微笑', '亲吻', '调皮', '惊恐', '耍酷', '发火', '害羞', '汗水', '大哭', '', '加油', '困', '你NB', '晕倒', '开心', '偷笑', '大哭', '滴汗', '叹气', '超赞', '??', '飞吻', '天使', '撒花', '生气', '被砸', '吓傻', '随意吐'],
|
||||||
|
'edui-emotion-Jtab1':['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '摊手', '睡觉', '瘫坐', '无聊', '星星闪', '旋转', '也不行', '郁闷', '正Music', '抓墙', '撞墙至死', '歪头', '戳眼', '飘过', '互相拍砖', '砍死你', '扔桌子', '少林寺', '什么?', '转头', '我爱牛奶', '我踢', '摇晃', '晕厥', '在笼子里', '震荡'],
|
||||||
|
'edui-emotion-Jtab2':['大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '我错了', 'money', '气愤', '挑逗', '吻', '怒', '胜利', '委屈', '受伤', '说啥呢?', '闭嘴', '不', '逗你玩儿', '飞吻', '眩晕', '魔法', '我来了', '睡了', '我打', '闭嘴', '打', '打晕了', '刷牙', '爆揍', '炸弹', '倒立', '刮胡子', '邪恶的笑', '不要不要', '爱恋中', '放大仔细看', '偷窥', '超高兴', '晕', '松口气', '我跑', '享受', '修养', '哭', '汗', '啊~', '热烈欢迎', '打酱油', '俯卧撑', '?'],
|
||||||
|
'edui-emotion-Jtab3':['HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '泪眼', '流泪', '生气', '吐舌', '喜欢', '旋转', '再见', '抓狂', '汗', '鄙视', '拜', '吐血', '嘘', '打人', '蹦跳', '变脸', '扯肉', '吃To', '吃花', '吹泡泡糖', '大变身', '飞天舞', '回眸', '可怜', '猛抽', '泡泡', '苹果', '亲', '', '骚舞', '烧香', '睡', '套娃娃', '捅捅', '舞倒', '西红柿', '爱慕', '摇', '摇摆', '杂耍', '招财', '被殴', '被球闷', '大惊', '理想', '欧打', '呕吐', '碎', '吐痰'],
|
||||||
|
'edui-emotion-Jtab4':['发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '顶', '幸运', '爱心', '躲', '送花', '选择'],
|
||||||
|
'edui-emotion-Jtab5':['微笑', '亲吻', '调皮', '惊讶', '耍酷', '发火', '害羞', '汗水', '大哭', '得意', '鄙视', '困', '夸奖', '晕倒', '疑问', '媒婆', '狂吐', '青蛙', '发愁', '亲吻', '', '爱心', '心碎', '玫瑰', '礼物', '哭', '奸笑', '可爱', '得意', '呲牙', '暴汗', '楚楚可怜', '困', '哭', '生气', '惊讶', '口水', '彩虹', '夜空', '太阳', '钱钱', '灯泡', '咖啡', '蛋糕', '音乐', '爱', '胜利', '赞', '鄙视', 'OK'],
|
||||||
|
'edui-emotion-Jtab6':['男兜', '女兜', '开心', '乖乖', '偷笑', '大笑', '抽泣', '大哭', '无奈', '滴汗', '叹气', '狂晕', '委屈', '超赞', '??', '疑问', '飞吻', '天使', '撒花', '生气', '被砸', '口水', '泪奔', '吓傻', '吐舌头', '点头', '随意吐', '旋转', '困困', '鄙视', '狂顶', '篮球', '再见', '欢迎光临', '恭喜发财', '稍等', '我在线', '恕不议价', '库房有货', '货在路上']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
initContent:function( _editor, $widget ){
|
||||||
|
|
||||||
|
var me = this,
|
||||||
|
emotion = me.sourceData.emotion,
|
||||||
|
lang = _editor.getLang( 'emotion' )['static'],
|
||||||
|
emotionUrl = UMEDITOR_CONFIG.UMEDITOR_HOME_URL + 'dialogs/emotion/',
|
||||||
|
options = $.extend( {}, lang, {
|
||||||
|
emotion_url: emotionUrl
|
||||||
|
}),
|
||||||
|
$root = me.root();
|
||||||
|
|
||||||
|
if( me.inited ) {
|
||||||
|
me.preventDefault();
|
||||||
|
this.switchToFirst();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
me.inited = true;
|
||||||
|
|
||||||
|
editor = _editor;
|
||||||
|
this.widget = $widget;
|
||||||
|
|
||||||
|
emotion.SmileyPath = _editor.options.emotionLocalization === true ? emotionUrl + 'images/' : "http://img.baidu.com/hi/";
|
||||||
|
emotion.SmileyBox = me.createTabList( emotion.tabNum );
|
||||||
|
emotion.tabExist = me.createArr( emotion.tabNum );
|
||||||
|
|
||||||
|
options['cover_img'] = emotion.SmileyPath + (editor.options.emotionLocalization ? '0.gif' : 'default/0.gif');
|
||||||
|
|
||||||
|
$root.html( $.parseTmpl( me.tpl, options ) );
|
||||||
|
|
||||||
|
me.tabs = $.eduitab({selector:".edui-emotion-tab-Jpanel"});
|
||||||
|
|
||||||
|
//缓存预览对象
|
||||||
|
me.previewBox = $root.find(".edui-emotion-JtabIconReview");
|
||||||
|
me.previewImg = $root.find(".edui-emotion-JfaceReview");
|
||||||
|
|
||||||
|
me.initImgName();
|
||||||
|
|
||||||
|
},
|
||||||
|
initEvent:function(){
|
||||||
|
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
//防止点击过后关闭popup
|
||||||
|
me.root().on('click', function(e){
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
//移动预览
|
||||||
|
me.root().delegate( 'td', 'mouseover mouseout', function( evt ){
|
||||||
|
|
||||||
|
var $td = $( this),
|
||||||
|
url = $td.attr('data-surl') || null;
|
||||||
|
|
||||||
|
if( url ) {
|
||||||
|
me[evt.type]( this, url , $td.attr('data-posflag') );
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
|
||||||
|
} );
|
||||||
|
|
||||||
|
//点击选中
|
||||||
|
me.root().delegate( 'td', 'click', function( evt ){
|
||||||
|
|
||||||
|
var $td = $( this),
|
||||||
|
realUrl = $td.attr('data-realurl') || null;
|
||||||
|
|
||||||
|
if( realUrl ) {
|
||||||
|
me.insertSmiley( realUrl.replace( /'/g, "\\'" ), evt );
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
|
||||||
|
} );
|
||||||
|
|
||||||
|
//更新模板
|
||||||
|
me.tabs.edui().on("beforeshow", function( evt ){
|
||||||
|
|
||||||
|
var contentId = $(evt.target).attr('data-context').replace( /^.*\.(?=[^\s]*$)/, '' );
|
||||||
|
|
||||||
|
evt.stopPropagation();
|
||||||
|
|
||||||
|
me.updateTab( contentId );
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
this.switchToFirst();
|
||||||
|
|
||||||
|
},
|
||||||
|
initImgName: function() {
|
||||||
|
|
||||||
|
var emotion = this.sourceData.emotion;
|
||||||
|
|
||||||
|
for ( var pro in emotion.SmilmgName ) {
|
||||||
|
var tempName = emotion.SmilmgName[pro],
|
||||||
|
tempBox = emotion.SmileyBox[pro],
|
||||||
|
tempStr = "";
|
||||||
|
|
||||||
|
if ( tempBox.length ) return;
|
||||||
|
|
||||||
|
for ( var i = 1; i <= tempName[1]; i++ ) {
|
||||||
|
tempStr = tempName[0];
|
||||||
|
if ( i < 10 ) tempStr = tempStr + '0';
|
||||||
|
tempStr = tempStr + i + '.gif';
|
||||||
|
tempBox.push( tempStr );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 切换到第一个tab
|
||||||
|
*/
|
||||||
|
switchToFirst: function(){
|
||||||
|
this.root().find(".edui-emotion-Jtabnav .edui-tab-text:first").trigger('click');
|
||||||
|
},
|
||||||
|
updateTab: function( contentBoxId ) {
|
||||||
|
|
||||||
|
var me = this,
|
||||||
|
emotion = me.sourceData.emotion;
|
||||||
|
|
||||||
|
me.autoHeight( contentBoxId );
|
||||||
|
|
||||||
|
if ( !emotion.tabExist[ contentBoxId ] ) {
|
||||||
|
|
||||||
|
emotion.tabExist[ contentBoxId ] = true;
|
||||||
|
me.createTab( contentBoxId );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
autoHeight: function( ) {
|
||||||
|
this.widget.height(this.root() + 2);
|
||||||
|
},
|
||||||
|
createTabList: function( tabNum ) {
|
||||||
|
var obj = {};
|
||||||
|
for ( var i = 0; i < tabNum; i++ ) {
|
||||||
|
obj["edui-emotion-Jtab" + i] = [];
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
},
|
||||||
|
mouseover: function( td, srcPath, posFlag ) {
|
||||||
|
|
||||||
|
posFlag -= 0;
|
||||||
|
|
||||||
|
$(td).css( 'backgroundColor', '#ACCD3C' );
|
||||||
|
|
||||||
|
this.previewImg.css( "backgroundImage", "url(" + srcPath + ")" );
|
||||||
|
posFlag && this.previewBox.addClass('edui-emotion-preview-left');
|
||||||
|
this.previewBox.show();
|
||||||
|
|
||||||
|
},
|
||||||
|
mouseout: function( td ) {
|
||||||
|
$(td).css( 'backgroundColor', 'transparent' );
|
||||||
|
this.previewBox.removeClass('edui-emotion-preview-left').hide();
|
||||||
|
},
|
||||||
|
insertSmiley: function( url, evt ) {
|
||||||
|
var obj = {
|
||||||
|
src: url
|
||||||
|
};
|
||||||
|
obj._src = obj.src;
|
||||||
|
editor.execCommand( 'insertimage', obj );
|
||||||
|
if ( !evt.ctrlKey ) {
|
||||||
|
//关闭预览
|
||||||
|
this.previewBox.removeClass('edui-emotion-preview-left').hide();
|
||||||
|
this.widget.edui().hide();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
createTab: function( contentBoxId ) {
|
||||||
|
|
||||||
|
var faceVersion = "?v=1.1", //版本号
|
||||||
|
me = this,
|
||||||
|
$contentBox = this.root().find("."+contentBoxId),
|
||||||
|
emotion = me.sourceData.emotion,
|
||||||
|
imagePath = emotion.SmileyPath + emotion.imageFolders[ contentBoxId ], //获取显示表情和预览表情的路径
|
||||||
|
positionLine = 11 / 2, //中间数
|
||||||
|
iWidth = iHeight = 35, //图片长宽
|
||||||
|
iColWidth = 3, //表格剩余空间的显示比例
|
||||||
|
tableCss = emotion.imageCss[ contentBoxId ],
|
||||||
|
cssOffset = emotion.imageCssOffset[ contentBoxId ],
|
||||||
|
textHTML = ['<table border="1" class="edui-emotion-smileytable">'],
|
||||||
|
i = 0, imgNum = emotion.SmileyBox[ contentBoxId ].length, imgColNum = 11, faceImage,
|
||||||
|
sUrl, realUrl, posflag, offset, infor;
|
||||||
|
|
||||||
|
for ( ; i < imgNum; ) {
|
||||||
|
textHTML.push( '<tr>' );
|
||||||
|
for ( var j = 0; j < imgColNum; j++, i++ ) {
|
||||||
|
faceImage = emotion.SmileyBox[ contentBoxId ][i];
|
||||||
|
if ( faceImage ) {
|
||||||
|
sUrl = imagePath + faceImage + faceVersion;
|
||||||
|
realUrl = imagePath + faceImage;
|
||||||
|
posflag = j < positionLine ? 0 : 1;
|
||||||
|
offset = cssOffset * i * (-1) - 1;
|
||||||
|
infor = emotion.SmileyInfor[ contentBoxId ][i];
|
||||||
|
|
||||||
|
textHTML.push( '<td class="edui-emotion-' + tableCss + '" data-surl="'+ sUrl +'" data-realurl="'+ realUrl +'" data-posflag="'+ posflag +'" align="center">' );
|
||||||
|
textHTML.push( '<span>' );
|
||||||
|
textHTML.push( '<img style="background-position:left ' + offset + 'px;" title="' + infor + '" src="' + emotion.SmileyPath + (editor.options.emotionLocalization ? '0.gif" width="' : 'default/0.gif" width="') + iWidth + '" height="' + iHeight + '"></img>' );
|
||||||
|
textHTML.push( '</span>' );
|
||||||
|
} else {
|
||||||
|
textHTML.push( '<td bgcolor="#FFFFFF">' );
|
||||||
|
}
|
||||||
|
textHTML.push( '</td>' );
|
||||||
|
}
|
||||||
|
textHTML.push( '</tr>' );
|
||||||
|
}
|
||||||
|
textHTML.push( '</table>' );
|
||||||
|
textHTML = textHTML.join( "" );
|
||||||
|
$contentBox.html( textHTML );
|
||||||
|
},
|
||||||
|
createArr: function( tabNum ) {
|
||||||
|
var arr = [];
|
||||||
|
for ( var i = 0; i < tabNum; i++ ) {
|
||||||
|
arr[i] = 0;
|
||||||
|
}
|
||||||
|
return arr;
|
||||||
|
},
|
||||||
|
width:603,
|
||||||
|
height:400
|
||||||
|
});
|
||||||
|
|
||||||
|
})();
|
||||||
|
|
||||||
BIN
public/static/libs/umeditor/dialogs/emotion/images/0.gif
Normal file
|
After Width: | Height: | Size: 43 B |
BIN
public/static/libs/umeditor/dialogs/emotion/images/bface.gif
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
public/static/libs/umeditor/dialogs/emotion/images/cface.gif
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
public/static/libs/umeditor/dialogs/emotion/images/fface.gif
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/static/libs/umeditor/dialogs/emotion/images/jxface2.gif
Normal file
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 216 B |
BIN
public/static/libs/umeditor/dialogs/emotion/images/tface.gif
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/static/libs/umeditor/dialogs/emotion/images/wface.gif
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
public/static/libs/umeditor/dialogs/emotion/images/yface.gif
Normal file
|
After Width: | Height: | Size: 28 KiB |
32
public/static/libs/umeditor/dialogs/formula/formula.css
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
.edui-popup-formula .edui-formula-wrapper {
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
.edui-popup-formula .edui-formula-wrapper .edui-tab-nav{
|
||||||
|
height: auto;
|
||||||
|
*height: 31px;
|
||||||
|
}
|
||||||
|
.edui-popup-formula .edui-formula-wrapper .edui-tab-text {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.edui-popup-formula .edui-formula-wrapper .edui-formula-clearboth {
|
||||||
|
clear: both;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
.edui-popup-formula .edui-formula-wrapper .edui-tab-pane ul {
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
.edui-popup-formula .edui-formula-wrapper .edui-tab-content {
|
||||||
|
padding: 5px 0px 0px 0px;
|
||||||
|
}
|
||||||
|
.edui-popup-formula .edui-formula-wrapper .edui-tab-pane .edui-formula-latex-item {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
margin: 0px 3px 3px 0px;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
border:1px solid #cccccc;
|
||||||
|
background-image: url("images/formula.png");
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
213
public/static/libs/umeditor/dialogs/formula/formula.html
Normal file
@@ -0,0 +1,213 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Document</title>
|
||||||
|
<link rel="stylesheet" href="../../third-party/mathquill/mathquill.css"/>
|
||||||
|
<style>
|
||||||
|
html, body, .main{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.main{
|
||||||
|
width:1024px;
|
||||||
|
height:1024px;
|
||||||
|
}
|
||||||
|
.mathquill-editable,
|
||||||
|
.mathquill-rendered-math{
|
||||||
|
border: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
margin:4px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="main">
|
||||||
|
<div class="mathquill-editable"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<input id="blurHelper" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="../../third-party/jquery.min.js"></script>
|
||||||
|
<script type="text/javascript" src="../third-party/template.min.js"></script>
|
||||||
|
<script src="../../third-party/mathquill/mathquill.js"></script>
|
||||||
|
<script>
|
||||||
|
$(function(){
|
||||||
|
|
||||||
|
var UM = parent.UM,
|
||||||
|
$iframe = $(getSelfIframe()),
|
||||||
|
editorId = $iframe.parents('.edui-body-container').attr('id'),
|
||||||
|
editor = UM.getEditor(editorId),
|
||||||
|
timer;
|
||||||
|
|
||||||
|
/* 获得当前公式所在的iframe节点 */
|
||||||
|
function getSelfIframe(){
|
||||||
|
var iframes = parent.document.getElementsByTagName('iframe');
|
||||||
|
for (var key in iframes) {
|
||||||
|
if (iframes[key].contentWindow == window) {
|
||||||
|
return iframes[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
/* 获得当前url上的hash存储的参数值 */
|
||||||
|
function getLatex() {
|
||||||
|
return $iframe.attr('data-latex') || '';
|
||||||
|
}
|
||||||
|
/* 保存场景 */
|
||||||
|
function saveScene(){
|
||||||
|
timer && clearTimeout(timer);
|
||||||
|
timer = setTimeout(function(){
|
||||||
|
editor.fireEvent('savescene');
|
||||||
|
editor.fireEvent('contentchange');
|
||||||
|
editor.fireEvent('selectionchange');
|
||||||
|
timer = null;
|
||||||
|
}, 300);
|
||||||
|
}
|
||||||
|
/* 设置编辑器可编辑 */
|
||||||
|
function enableEditor(){
|
||||||
|
if(editor.body.contentEditable == 'false') {
|
||||||
|
editor.setEnabled();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* 设置编辑器不可编辑 */
|
||||||
|
function disableEditor(){
|
||||||
|
if(editor.body.contentEditable == 'true') {
|
||||||
|
editor.setDisabled(['undo', 'redo', 'preview', 'formula'], true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 公式 */
|
||||||
|
var Formula = function(){
|
||||||
|
var _this = this,
|
||||||
|
latex = getLatex();
|
||||||
|
|
||||||
|
this.isFocus = false;
|
||||||
|
this.isDisabled = false;
|
||||||
|
|
||||||
|
/* 加载公式内容 */
|
||||||
|
this.$mathquill = $('.mathquill-editable').mathquill('latex', latex);
|
||||||
|
|
||||||
|
/* 设置活动状态的公式iframe */
|
||||||
|
this.$mathquill.on('mousedown', function(){
|
||||||
|
/* 编辑器不可用时,公式也不可用 */
|
||||||
|
if(_this.disabled) return false;
|
||||||
|
|
||||||
|
/* 第一次点击当前公式,设置公式活动 */
|
||||||
|
if(!$iframe.hasClass('edui-formula-active')) {
|
||||||
|
disableEditor();
|
||||||
|
editor.blur();
|
||||||
|
editor.$body.find('iframe').not($iframe).each(function(k, v){
|
||||||
|
v.contentWindow.formula.blur();
|
||||||
|
});
|
||||||
|
if(_this.$mathquill.find('.cursor').css('display') == 'none') {
|
||||||
|
_this.refresh();
|
||||||
|
_this.$mathquill.addClass('hasCursor');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_this.focus();
|
||||||
|
});
|
||||||
|
editor.addListener('click', function(){
|
||||||
|
_this.blur();
|
||||||
|
enableEditor();
|
||||||
|
});
|
||||||
|
|
||||||
|
/* 里面focus,编辑器也判断为focus */
|
||||||
|
editor.addListener('isFocus', function(){
|
||||||
|
return _this.isFocus;
|
||||||
|
});
|
||||||
|
/* um不可用,公式也不可编辑 */
|
||||||
|
editor.addListener('setDisabled', function(type, except){
|
||||||
|
if (!(except && except.join(' ').indexOf('formula') != -1) && _this.isDisabled != true ) {
|
||||||
|
_this.setDisabled();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
editor.addListener('setEnabled', function(){
|
||||||
|
if (_this.isDisabled != false) {
|
||||||
|
_this.setEnabled();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
/* 设置更新外层iframe的大小和属性 */
|
||||||
|
$(document.body).on('keydown', function(){
|
||||||
|
_this.updateIframe();
|
||||||
|
}).on('keyup', function(){
|
||||||
|
_this.updateIframe();
|
||||||
|
});
|
||||||
|
|
||||||
|
/* 清除初始化的高亮状态 */
|
||||||
|
this.$mathquill.removeClass('hasCursor');
|
||||||
|
|
||||||
|
/* 初始化后延迟刷新外层iframe大小 */
|
||||||
|
setTimeout(function(){
|
||||||
|
_this.updateIframe();
|
||||||
|
}, 300);
|
||||||
|
};
|
||||||
|
|
||||||
|
Formula.prototype = {
|
||||||
|
focus:function(){
|
||||||
|
$iframe.addClass('edui-formula-active');
|
||||||
|
this.isFocus = true;
|
||||||
|
},
|
||||||
|
blur:function(){
|
||||||
|
$iframe.removeClass('edui-formula-active');
|
||||||
|
this.removeCursor();
|
||||||
|
this.isFocus = false;
|
||||||
|
},
|
||||||
|
removeCursor: function(){
|
||||||
|
this.$mathquill.find('span.cursor').hide();
|
||||||
|
this.$mathquill.parent().find('.hasCursor').removeClass('hasCursor');
|
||||||
|
},
|
||||||
|
updateIframe: function(){
|
||||||
|
$iframe.width(this.$mathquill.width()+8).height(this.$mathquill.height()+8);
|
||||||
|
var latex = $iframe.attr('data-latex'),
|
||||||
|
newLatex = this.getLatex();
|
||||||
|
if(latex != newLatex) {
|
||||||
|
$iframe.attr('data-latex', this.getLatex());
|
||||||
|
saveScene();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
insertLatex: function(latex){
|
||||||
|
this.$mathquill.mathquill('write', latex);
|
||||||
|
this.updateIframe();
|
||||||
|
this.removeCursor();
|
||||||
|
},
|
||||||
|
setLatex: function(latex){
|
||||||
|
this.$mathquill.mathquill('latex', latex);
|
||||||
|
this.updateIframe();
|
||||||
|
},
|
||||||
|
getLatex: function(){
|
||||||
|
return this.$mathquill.mathquill('latex');
|
||||||
|
},
|
||||||
|
redraw: function(){
|
||||||
|
this.$mathquill.mathquill('redraw');
|
||||||
|
},
|
||||||
|
setDisabled: function(){
|
||||||
|
this.blur();
|
||||||
|
var latex = this.getLatex();
|
||||||
|
this.$mathquill.mathquill('revert').text(latex).mathquill();
|
||||||
|
this.updateIframe();
|
||||||
|
this.isDisabled = true;
|
||||||
|
},
|
||||||
|
setEnabled: function(){
|
||||||
|
this.$mathquill.removeClass('mathquill-rendered-math');
|
||||||
|
this.refresh();
|
||||||
|
this.isDisabled = false;
|
||||||
|
},
|
||||||
|
refresh: function(){
|
||||||
|
var latex = this.getLatex();
|
||||||
|
this.$mathquill.mathquill('revert').text(latex).mathquill('editable');
|
||||||
|
this.updateIframe();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/* 绑定到window上,给上级window调用 */
|
||||||
|
window.formula = new Formula();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
124
public/static/libs/umeditor/dialogs/formula/formula.js
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
(function () {
|
||||||
|
|
||||||
|
var editor = null;
|
||||||
|
|
||||||
|
UM.registerWidget('formula', {
|
||||||
|
|
||||||
|
tpl: "<link type=\"text/css\" rel=\"stylesheet\" href=\"<%=formula_url%>formula.css\">" +
|
||||||
|
"<div class=\"edui-formula-wrapper\">" +
|
||||||
|
"<ul class=\"edui-tab-nav\"></ul>" +
|
||||||
|
"<div class=\"edui-tab-content\"></div>" +
|
||||||
|
"</div>",
|
||||||
|
|
||||||
|
sourceData: {
|
||||||
|
formula: {
|
||||||
|
'common': [
|
||||||
|
"{/}frac{ }{ }", "^{ }/_{ }", "x^{ }", "x_{ }", "x^{ }_{ }", "{/}bar{ }", "{/}sqrt{ }", "{/}nthroot{ }{ }",
|
||||||
|
"{/}sum^{ }_{n=}", "{/}sum", "{/}log_{ }", "{/}ln", "{/}int_{ }^{ }", "{/}oint_{ }^{ }"
|
||||||
|
],
|
||||||
|
'symbol': [
|
||||||
|
"+", "-", "{/}pm", "{/}times", "{/}ast", "{/}div", "/", "{/}bigtriangleup",
|
||||||
|
"=", "{/}ne", "{/}approx", ">", "<", "{/}ge", "{/}le", "{/}infty",
|
||||||
|
"{/}cap", "{/}cup", "{/}because", "{/}therefore", "{/}subset", "{/}supset", "{/}subseteq", "{/}supseteq",
|
||||||
|
"{/}nsubseteq", "{/}nsupseteq", "{/}in", "{/}ni", "{/}notin", "{/}mapsto", "{/}leftarrow", "{/}rightarrow",
|
||||||
|
"{/}Leftarrow", "{/}Rightarrow", "{/}leftrightarrow", "{/}Leftrightarrow"
|
||||||
|
],
|
||||||
|
'letter': [
|
||||||
|
"{/}alpha", "{/}beta", "{/}gamma", "{/}delta", "{/}varepsilon", "{/}varphi", "{/}lambda", "{/}mu",
|
||||||
|
"{/}rho", "{/}sigma", "{/}omega", "{/}Gamma", "{/}Delta", "{/}Theta", "{/}Lambda", "{/}Xi",
|
||||||
|
"{/}Pi", "{/}Sigma", "{/}Upsilon", "{/}Phi", "{/}Psi", "{/}Omega"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
initContent: function (_editor, $widget) {
|
||||||
|
|
||||||
|
var me = this,
|
||||||
|
formula = me.sourceData.formula,
|
||||||
|
lang = _editor.getLang('formula').static,
|
||||||
|
formulaUrl = UMEDITOR_CONFIG.UMEDITOR_HOME_URL + 'dialogs/formula/',
|
||||||
|
options = $.extend({}, lang, { 'formula_url': formulaUrl }),
|
||||||
|
$root = me.root();
|
||||||
|
|
||||||
|
if (me.inited) {
|
||||||
|
me.preventDefault();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
me.inited = true;
|
||||||
|
|
||||||
|
editor = _editor;
|
||||||
|
me.$widget = $widget;
|
||||||
|
|
||||||
|
$root.html($.parseTmpl(me.tpl, options));
|
||||||
|
me.tabs = $.eduitab({selector: "#edui-formula-tab-Jpanel"});
|
||||||
|
|
||||||
|
/* 初始化popup的内容 */
|
||||||
|
var headHtml = [], xMax = 0, yMax = 0,
|
||||||
|
$tabContent = me.root().find('.edui-tab-content');
|
||||||
|
$.each(formula, function (k, v) {
|
||||||
|
var contentHtml = [];
|
||||||
|
$.each(v, function (i, f) {
|
||||||
|
contentHtml.push('<li class="edui-formula-latex-item" data-latex="' + f + '" style="background-position:-' + (xMax * 30) + 'px -' + (yMax * 30) + 'px"></li>');
|
||||||
|
if (++xMax >=8) {
|
||||||
|
++yMax; xMax = 0;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
yMax++; xMax = 0;
|
||||||
|
$tabContent.append('<div class="edui-tab-pane"><ul>' + contentHtml.join('') + '</ul>');
|
||||||
|
headHtml.push('<li class="edui-tab-item"><a href="javascript:void(0);" class="edui-tab-text">' + lang['lang_tab_' + k] + '</a></li>');
|
||||||
|
});
|
||||||
|
headHtml.push('<li class="edui-formula-clearboth"></li>');
|
||||||
|
$root.find('.edui-tab-nav').html(headHtml.join(''));
|
||||||
|
$root.find('.edui-tab-content').append('<div class="edui-formula-clearboth"></div>');
|
||||||
|
|
||||||
|
/* 选中第一个tab */
|
||||||
|
me.switchTab(0);
|
||||||
|
},
|
||||||
|
initEvent: function () {
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
//防止点击过后关闭popup
|
||||||
|
me.root().on('click', function (e) {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
//点击tab切换菜单
|
||||||
|
me.root().find('.edui-tab-nav').delegate('.edui-tab-item', 'click', function (evt) {
|
||||||
|
me.switchTab(this);
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
//点击选中公式
|
||||||
|
me.root().find('.edui-tab-pane').delegate('.edui-formula-latex-item', 'click', function (evt) {
|
||||||
|
var $item = $(this),
|
||||||
|
latex = $item.attr('data-latex') || '';
|
||||||
|
|
||||||
|
if (latex) {
|
||||||
|
me.insertLatex(latex.replace("{/}", "\\"));
|
||||||
|
}
|
||||||
|
me.$widget.edui().hide();
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
switchTab:function(index){
|
||||||
|
var me = this,
|
||||||
|
$root = me.root(),
|
||||||
|
index = $.isNumeric(index) ? index:$.inArray(index, $root.find('.edui-tab-nav .edui-tab-item'));
|
||||||
|
|
||||||
|
$root.find('.edui-tab-nav .edui-tab-item').removeClass('edui-active').eq(index).addClass('edui-active');
|
||||||
|
$root.find('.edui-tab-content .edui-tab-pane').removeClass('edui-active').eq(index).addClass('edui-active');
|
||||||
|
|
||||||
|
/* 自动长高 */
|
||||||
|
me.autoHeight(0);
|
||||||
|
},
|
||||||
|
autoHeight: function () {
|
||||||
|
this.$widget.height(this.root() + 2);
|
||||||
|
},
|
||||||
|
insertLatex: function (latex) {
|
||||||
|
editor.execCommand('formula', latex );
|
||||||
|
},
|
||||||
|
width: 350,
|
||||||
|
height: 400
|
||||||
|
});
|
||||||
|
|
||||||
|
})();
|
||||||
|
|
||||||
BIN
public/static/libs/umeditor/dialogs/formula/images/formula.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
42
public/static/libs/umeditor/dialogs/image/image.css
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
.edui-dialog-image .edui-image-wrapper{font-size: 12px;margin: 15px;}
|
||||||
|
|
||||||
|
/*upload*/
|
||||||
|
.edui-dialog-image .edui-image-upload1{position: absolute;top:50%;left:50%;width:44px;height:38px;margin-top:-19px; margin-left: -22px;}
|
||||||
|
.edui-dialog-image .edui-image-upload2{position:relative;float:left;width:120px;height:120px;margin:5px 0 0 5px;}
|
||||||
|
|
||||||
|
.edui-dialog-image .edui-image-form{position: absolute;left: 0px;top: 0px;width: 100%;height: 100%;opacity: 0;cursor: pointer;}
|
||||||
|
.edui-dialog-image .edui-image-form .edui-image-file{width: 100%;height:100%;filter: alpha(opacity=0)}
|
||||||
|
|
||||||
|
.edui-dialog-image .edui-image-upload1 .edui-image-icon{display: inline-block;width:44px;height:38px;background-image: url('images/upload1.png')}
|
||||||
|
.edui-dialog-image .edui-image-upload1 .edui-image-icon.hover{background-position: -50px 0;}
|
||||||
|
.edui-dialog-image .edui-image-upload2 .edui-image-icon{display: inline-block;width:120px;height:120px;background-image: url('images/upload2.png')}
|
||||||
|
|
||||||
|
.edui-dialog-image .edui-image-dragTip{position: absolute;display:none;top:50%;left:50%;margin-top:30px;margin-left: -60px;
|
||||||
|
color: #222;font-size:14px;text-shadow: 0px 2px 3px #555;}
|
||||||
|
|
||||||
|
.edui-dialog-image .edui-image-content{height:330px;width:100%;position: relative;}
|
||||||
|
|
||||||
|
.edui-dialog-image .edui-image-mask{display: none;position: absolute;top:0;left:0;width: 100%; height: 100%;background-color:#fff;
|
||||||
|
text-align: center;line-height:300px;color:#000;font-size:14px;font-weight:bold;opacity: 0.6;filter: alpha(opacity=60);}
|
||||||
|
.edui-dialog-image .edui-image-mask.edui-active{display: block;}
|
||||||
|
|
||||||
|
/*network*/
|
||||||
|
.edui-dialog-image .edui-image-searchBar{margin: 10px;}
|
||||||
|
.edui-dialog-image .edui-image-searchBar .edui-image-searchTxt{display: inline-block !important;*display: inline !important;*zoom:1;width:400px; border: 1px solid #c5d2ff; height: 20px; line-height: 18px; font-size: 14px; padding: 3px; margin: 0;outline:0;}
|
||||||
|
.edui-dialog-image .edui-image-searchBar .edui-image-searchAdd{display: inline-block !important;*display: inline !important;*zoom:1;
|
||||||
|
width:60px; text-align:center;height: 25px;text-align: center;line-height: 25px;
|
||||||
|
background-color: #ffffff;padding: 0; border: 1px solid #ababab;margin-left: 20px;cursor: pointer;
|
||||||
|
}
|
||||||
|
.edui-dialog-image .edui-image-searchBar .edui-image-searchAdd.hover{
|
||||||
|
background-color: #d5e1f2;
|
||||||
|
padding: 0;
|
||||||
|
border: 1px solid #a3bde3;
|
||||||
|
}
|
||||||
|
.edui-dialog-image .edui-image-searchRes{height:280px;overflow:auto;}
|
||||||
|
|
||||||
|
|
||||||
|
/*common*/
|
||||||
|
.edui-dialog-image .edui-image-item{position:relative;float:left;width:120px;height:120px;border: 1px solid #CCC;cursor: default;margin: 5px 0 0 5px;}
|
||||||
|
.edui-dialog-image .edui-image-item .edui-image-pic{position: absolute;left:-9999px;}
|
||||||
|
.edui-dialog-image .edui-image-item .edui-image-close{position:absolute;right:0;background: url('images/close.png');width:17px;height:17px;cursor:pointer;z-index:1}
|
||||||
|
.edui-dialog-image .edui-image-item.hover .edui-image-close{display: block;}
|
||||||
445
public/static/libs/umeditor/dialogs/image/image.js
Normal file
@@ -0,0 +1,445 @@
|
|||||||
|
(function () {
|
||||||
|
|
||||||
|
var utils = UM.utils,
|
||||||
|
browser = UM.browser,
|
||||||
|
Base = {
|
||||||
|
checkURL: function (url) {
|
||||||
|
if(!url) return false;
|
||||||
|
url = utils.trim(url);
|
||||||
|
if (url.length <= 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (url.search(/http:\/\/|https:\/\//) !== 0) {
|
||||||
|
url += 'http://';
|
||||||
|
}
|
||||||
|
|
||||||
|
url=url.replace(/\?[\s\S]*$/,"");
|
||||||
|
|
||||||
|
if (!/(.gif|.jpg|.jpeg|.png)$/i.test(url)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return url;
|
||||||
|
},
|
||||||
|
getAllPic: function (sel, $w, editor) {
|
||||||
|
var me = this,
|
||||||
|
arr = [],
|
||||||
|
$imgs = $(sel, $w);
|
||||||
|
|
||||||
|
$.each($imgs, function (index, node) {
|
||||||
|
$(node).removeAttr("width").removeAttr("height");
|
||||||
|
|
||||||
|
// if (node.width > editor.options.initialFrameWidth) {
|
||||||
|
// me.scale(node, editor.options.initialFrameWidth -
|
||||||
|
// parseInt($(editor.body).css("padding-left")) -
|
||||||
|
// parseInt($(editor.body).css("padding-right")));
|
||||||
|
// }
|
||||||
|
|
||||||
|
return arr.push({
|
||||||
|
_src: node.src,
|
||||||
|
src: node.src
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
return arr;
|
||||||
|
},
|
||||||
|
scale: function (img, max, oWidth, oHeight) {
|
||||||
|
var width = 0, height = 0, percent, ow = img.width || oWidth, oh = img.height || oHeight;
|
||||||
|
if (ow > max || oh > max) {
|
||||||
|
if (ow >= oh) {
|
||||||
|
if (width = ow - max) {
|
||||||
|
percent = (width / ow).toFixed(2);
|
||||||
|
img.height = oh - oh * percent;
|
||||||
|
img.width = max;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (height = oh - max) {
|
||||||
|
percent = (height / oh).toFixed(2);
|
||||||
|
img.width = ow - ow * percent;
|
||||||
|
img.height = max;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return this;
|
||||||
|
},
|
||||||
|
close: function ($img) {
|
||||||
|
|
||||||
|
$img.css({
|
||||||
|
top: ($img.parent().height() - $img.height()) / 2,
|
||||||
|
left: ($img.parent().width()-$img.width())/2
|
||||||
|
}).prev().on("click",function () {
|
||||||
|
|
||||||
|
if ( $(this).parent().remove().hasClass("edui-image-upload-item") ) {
|
||||||
|
//显示图片计数-1
|
||||||
|
Upload.showCount--;
|
||||||
|
Upload.updateView();
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
return this;
|
||||||
|
},
|
||||||
|
createImgBase64: function (img, file, $w) {
|
||||||
|
if (browser.webkit) {
|
||||||
|
//Chrome8+
|
||||||
|
img.src = window.webkitURL.createObjectURL(file);
|
||||||
|
} else if (browser.gecko) {
|
||||||
|
//FF4+
|
||||||
|
img.src = window.URL.createObjectURL(file);
|
||||||
|
} else {
|
||||||
|
//实例化file reader对象
|
||||||
|
var reader = new FileReader();
|
||||||
|
reader.onload = function (e) {
|
||||||
|
img.src = this.result;
|
||||||
|
$w.append(img);
|
||||||
|
};
|
||||||
|
reader.readAsDataURL(file);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
callback: function (editor, $w, url, state) {
|
||||||
|
|
||||||
|
if (state == "SUCCESS") {
|
||||||
|
//显示图片计数+1
|
||||||
|
Upload.showCount++;
|
||||||
|
var $img = $("<img src='" + editor.options.imagePath + url + "' class='edui-image-pic' />"),
|
||||||
|
$item = $("<div class='edui-image-item edui-image-upload-item'><div class='edui-image-close'></div></div>").append($img);
|
||||||
|
|
||||||
|
if ($(".edui-image-upload2", $w).length < 1) {
|
||||||
|
$(".edui-image-content", $w).append($item);
|
||||||
|
|
||||||
|
Upload.render(".edui-image-content", 2)
|
||||||
|
.config(".edui-image-upload2");
|
||||||
|
} else {
|
||||||
|
$(".edui-image-upload2", $w).before($item).show();
|
||||||
|
}
|
||||||
|
|
||||||
|
$img.on("load", function () {
|
||||||
|
Base.scale(this, 120);
|
||||||
|
Base.close($(this));
|
||||||
|
$(".edui-image-content", $w).focus();
|
||||||
|
});
|
||||||
|
|
||||||
|
} else {
|
||||||
|
currentDialog.showTip( state );
|
||||||
|
window.setTimeout( function () {
|
||||||
|
|
||||||
|
currentDialog.hideTip();
|
||||||
|
|
||||||
|
}, 3000 );
|
||||||
|
}
|
||||||
|
|
||||||
|
Upload.toggleMask();
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 本地上传
|
||||||
|
* */
|
||||||
|
var Upload = {
|
||||||
|
showCount: 0,
|
||||||
|
uploadTpl: '<div class="edui-image-upload%%">' +
|
||||||
|
'<span class="edui-image-icon"></span>' +
|
||||||
|
'<form class="edui-image-form" method="post" enctype="multipart/form-data" target="up">' +
|
||||||
|
'<input style=\"filter: alpha(opacity=0);\" class="edui-image-file" type="file" hidefocus name="upfile" accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp"/>' +
|
||||||
|
'</form>' +
|
||||||
|
|
||||||
|
'</div>',
|
||||||
|
init: function (editor, $w) {
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
me.editor = editor;
|
||||||
|
me.dialog = $w;
|
||||||
|
me.render(".edui-image-local", 1);
|
||||||
|
me.config(".edui-image-upload1");
|
||||||
|
me.submit();
|
||||||
|
me.drag();
|
||||||
|
|
||||||
|
$(".edui-image-upload1").hover(function () {
|
||||||
|
$(".edui-image-icon", this).toggleClass("hover");
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!(UM.browser.ie && UM.browser.version <= 9)) {
|
||||||
|
$(".edui-image-dragTip", me.dialog).css("display", "block");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return me;
|
||||||
|
},
|
||||||
|
render: function (sel, t) {
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
$(sel, me.dialog).append($(me.uploadTpl.replace(/%%/g, t)));
|
||||||
|
|
||||||
|
return me;
|
||||||
|
},
|
||||||
|
config: function (sel) {
|
||||||
|
var me = this,
|
||||||
|
url=me.editor.options.imageUrl;
|
||||||
|
|
||||||
|
url=url + (url.indexOf("?") == -1 ? "?" : "&") + "editorid="+me.editor.id;//初始form提交地址;
|
||||||
|
|
||||||
|
$("form", $(sel, me.dialog)).attr("action", url);
|
||||||
|
|
||||||
|
return me;
|
||||||
|
},
|
||||||
|
uploadComplete: function(r){
|
||||||
|
var me = this;
|
||||||
|
try{
|
||||||
|
var json = eval('('+r+')');
|
||||||
|
Base.callback(me.editor, me.dialog, json.url, json.state);
|
||||||
|
}catch (e){
|
||||||
|
var lang = me.editor.getLang('image');
|
||||||
|
Base.callback(me.editor, me.dialog, '', (lang && lang.uploadError) || 'Error!');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
submit: function (callback) {
|
||||||
|
|
||||||
|
var me = this,
|
||||||
|
input = $( '<input style="filter: alpha(opacity=0);" class="edui-image-file" type="file" hidefocus="" name="upfile" accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp">'),
|
||||||
|
input = input[0];
|
||||||
|
|
||||||
|
$(me.dialog).delegate( ".edui-image-file", "change", function ( e ) {
|
||||||
|
|
||||||
|
if ( !this.parentNode ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$('<iframe name="up" style="display: none"></iframe>').insertBefore(me.dialog).on('load', function(){
|
||||||
|
var r = this.contentWindow.document.body.innerHTML;
|
||||||
|
if(r == '')return;
|
||||||
|
me.uploadComplete(r);
|
||||||
|
$(this).unbind('load');
|
||||||
|
$(this).remove();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$(this).parent()[0].submit();
|
||||||
|
Upload.updateInput( input );
|
||||||
|
me.toggleMask("Loading....");
|
||||||
|
callback && callback();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
return me;
|
||||||
|
},
|
||||||
|
//更新input
|
||||||
|
updateInput: function ( inputField ) {
|
||||||
|
|
||||||
|
$( ".edui-image-file", this.dialog ).each( function ( index, ele ) {
|
||||||
|
|
||||||
|
ele.parentNode.replaceChild( inputField.cloneNode( true ), ele );
|
||||||
|
|
||||||
|
} );
|
||||||
|
|
||||||
|
},
|
||||||
|
//更新上传框
|
||||||
|
updateView: function () {
|
||||||
|
|
||||||
|
if ( Upload.showCount !== 0 ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$(".edui-image-upload2", this.dialog).hide();
|
||||||
|
$(".edui-image-dragTip", this.dialog).show();
|
||||||
|
$(".edui-image-upload1", this.dialog).show();
|
||||||
|
|
||||||
|
},
|
||||||
|
drag: function () {
|
||||||
|
var me = this;
|
||||||
|
//做拽上传的支持
|
||||||
|
if (!UM.browser.ie9below) {
|
||||||
|
me.dialog.find('.edui-image-content').on('drop',function (e) {
|
||||||
|
|
||||||
|
//获取文件列表
|
||||||
|
var fileList = e.originalEvent.dataTransfer.files;
|
||||||
|
var img = document.createElement('img');
|
||||||
|
var hasImg = false;
|
||||||
|
$.each(fileList, function (i, f) {
|
||||||
|
if (/^image/.test(f.type)) {
|
||||||
|
//创建图片的base64
|
||||||
|
Base.createImgBase64(img, f, me.dialog);
|
||||||
|
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open("post", me.editor.getOpt('imageUrl') + "?type=ajax", true);
|
||||||
|
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
|
||||||
|
|
||||||
|
//模拟数据
|
||||||
|
var fd = new FormData();
|
||||||
|
fd.append(me.editor.getOpt('imageFieldName'), f);
|
||||||
|
|
||||||
|
xhr.send(fd);
|
||||||
|
xhr.addEventListener('load', function (e) {
|
||||||
|
var r = e.target.response, json;
|
||||||
|
me.uploadComplete(r);
|
||||||
|
if (i == fileList.length - 1) {
|
||||||
|
$(img).remove()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
hasImg = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (hasImg) {
|
||||||
|
e.preventDefault();
|
||||||
|
me.toggleMask("Loading....");
|
||||||
|
}
|
||||||
|
|
||||||
|
}).on('dragover', function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toggleMask: function (html) {
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
var $mask = $(".edui-image-mask", me.dialog);
|
||||||
|
if (html) {
|
||||||
|
if (!(UM.browser.ie && UM.browser.version <= 9)) {
|
||||||
|
$(".edui-image-dragTip", me.dialog).css( "display", "none" );
|
||||||
|
}
|
||||||
|
$(".edui-image-upload1", me.dialog).css( "display", "none" );
|
||||||
|
$mask.addClass("edui-active").html(html);
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$mask.removeClass("edui-active").html();
|
||||||
|
|
||||||
|
if ( Upload.showCount > 0 ) {
|
||||||
|
return me;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(UM.browser.ie && UM.browser.version <= 9) ){
|
||||||
|
$(".edui-image-dragTip", me.dialog).css("display", "block");
|
||||||
|
}
|
||||||
|
$(".edui-image-upload1", me.dialog).css( "display", "block" );
|
||||||
|
}
|
||||||
|
|
||||||
|
return me;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 网络图片
|
||||||
|
* */
|
||||||
|
var NetWork = {
|
||||||
|
init: function (editor, $w) {
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
me.editor = editor;
|
||||||
|
me.dialog = $w;
|
||||||
|
|
||||||
|
me.initEvt();
|
||||||
|
},
|
||||||
|
initEvt: function () {
|
||||||
|
var me = this,
|
||||||
|
url,
|
||||||
|
$ele = $(".edui-image-searchTxt", me.dialog);
|
||||||
|
|
||||||
|
$(".edui-image-searchAdd", me.dialog).on("click", function () {
|
||||||
|
url = Base.checkURL($ele.val());
|
||||||
|
|
||||||
|
if (url) {
|
||||||
|
|
||||||
|
$("<img src='" + url + "' class='edui-image-pic' />").on("load", function () {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var $item = $("<div class='edui-image-item'><div class='edui-image-close'></div></div>").append(this);
|
||||||
|
|
||||||
|
$(".edui-image-searchRes", me.dialog).append($item);
|
||||||
|
|
||||||
|
Base.scale(this, 120);
|
||||||
|
|
||||||
|
$item.width($(this).width());
|
||||||
|
|
||||||
|
Base.close($(this));
|
||||||
|
|
||||||
|
$ele.val("");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.hover(function () {
|
||||||
|
$(this).toggleClass("hover");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var $tab = null,
|
||||||
|
currentDialog = null;
|
||||||
|
|
||||||
|
UM.registerWidget('image', {
|
||||||
|
tpl: "<link rel=\"stylesheet\" type=\"text/css\" href=\"<%=image_url%>image.css\">" +
|
||||||
|
"<div class=\"edui-image-wrapper\">" +
|
||||||
|
"<ul class=\"edui-tab-nav\">" +
|
||||||
|
"<li class=\"edui-tab-item edui-active\"><a data-context=\".edui-image-local\" class=\"edui-tab-text\"><%=lang_tab_local%></a></li>" +
|
||||||
|
"<li class=\"edui-tab-item\"><a data-context=\".edui-image-JimgSearch\" class=\"edui-tab-text\"><%=lang_tab_imgSearch%></a></li>" +
|
||||||
|
"</ul>" +
|
||||||
|
"<div class=\"edui-tab-content\">" +
|
||||||
|
"<div class=\"edui-image-local edui-tab-pane edui-active\">" +
|
||||||
|
"<div class=\"edui-image-content\"></div>" +
|
||||||
|
"<div class=\"edui-image-mask\"></div>" +
|
||||||
|
"<div class=\"edui-image-dragTip\"><%=lang_input_dragTip%></div>" +
|
||||||
|
"</div>" +
|
||||||
|
"<div class=\"edui-image-JimgSearch edui-tab-pane\">" +
|
||||||
|
"<div class=\"edui-image-searchBar\">" +
|
||||||
|
"<table><tr><td><input class=\"edui-image-searchTxt\" type=\"text\"></td>" +
|
||||||
|
"<td><div class=\"edui-image-searchAdd\"><%=lang_btn_add%></div></td></tr></table>" +
|
||||||
|
"</div>" +
|
||||||
|
"<div class=\"edui-image-searchRes\"></div>" +
|
||||||
|
"</div>" +
|
||||||
|
"</div>" +
|
||||||
|
"</div>",
|
||||||
|
initContent: function (editor, $dialog) {
|
||||||
|
var lang = editor.getLang('image')["static"],
|
||||||
|
opt = $.extend({}, lang, {
|
||||||
|
image_url: UMEDITOR_CONFIG.UMEDITOR_HOME_URL + 'dialogs/image/'
|
||||||
|
});
|
||||||
|
|
||||||
|
Upload.showCount = 0;
|
||||||
|
|
||||||
|
if (lang) {
|
||||||
|
var html = $.parseTmpl(this.tpl, opt);
|
||||||
|
}
|
||||||
|
|
||||||
|
currentDialog = $dialog.edui();
|
||||||
|
|
||||||
|
this.root().html(html);
|
||||||
|
|
||||||
|
},
|
||||||
|
initEvent: function (editor, $w) {
|
||||||
|
$tab = $.eduitab({selector: ".edui-image-wrapper"})
|
||||||
|
.edui().on("beforeshow", function (e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
});
|
||||||
|
|
||||||
|
Upload.init(editor, $w);
|
||||||
|
|
||||||
|
NetWork.init(editor, $w);
|
||||||
|
},
|
||||||
|
buttons: {
|
||||||
|
'ok': {
|
||||||
|
exec: function (editor, $w) {
|
||||||
|
var sel = "",
|
||||||
|
index = $tab.activate();
|
||||||
|
|
||||||
|
if (index == 0) {
|
||||||
|
sel = ".edui-image-content .edui-image-pic";
|
||||||
|
} else if (index == 1) {
|
||||||
|
sel = ".edui-image-searchRes .edui-image-pic";
|
||||||
|
}
|
||||||
|
|
||||||
|
var list = Base.getAllPic(sel, $w, editor);
|
||||||
|
|
||||||
|
if (index != -1) {
|
||||||
|
editor.execCommand('insertimage', list);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'cancel': {}
|
||||||
|
},
|
||||||
|
width: 700,
|
||||||
|
height: 408
|
||||||
|
}, function (editor, $w, url, state) {
|
||||||
|
Base.callback(editor, $w, url, state)
|
||||||
|
})
|
||||||
|
})();
|
||||||
|
|
||||||
BIN
public/static/libs/umeditor/dialogs/image/images/close.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
public/static/libs/umeditor/dialogs/image/images/upload1.png
Normal file
|
After Width: | Height: | Size: 848 B |
BIN
public/static/libs/umeditor/dialogs/image/images/upload2.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
73
public/static/libs/umeditor/dialogs/link/link.js
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
(function(){
|
||||||
|
var utils = UM.utils;
|
||||||
|
function hrefStartWith(href, arr) {
|
||||||
|
href = href.replace(/^\s+|\s+$/g, '');
|
||||||
|
for (var i = 0, ai; ai = arr[i++];) {
|
||||||
|
if (href.indexOf(ai) == 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
UM.registerWidget('link', {
|
||||||
|
tpl: "<style type=\"text/css\">" +
|
||||||
|
".edui-dialog-link .edui-link-table{font-size: 12px;margin: 10px;line-height: 30px}" +
|
||||||
|
".edui-dialog-link .edui-link-txt{width:300px;height:21px;line-height:21px;border:1px solid #d7d7d7;}" +
|
||||||
|
"</style>" +
|
||||||
|
"<table class=\"edui-link-table\">" +
|
||||||
|
"<tr>" +
|
||||||
|
"<td><label for=\"href\"><%=lang_input_url%></label></td>" +
|
||||||
|
"<td><input class=\"edui-link-txt\" id=\"edui-link-Jhref\" type=\"text\" /></td>" +
|
||||||
|
"</tr>" +
|
||||||
|
"<tr>" +
|
||||||
|
"<td><label for=\"title\"><%=lang_input_title%></label></td>" +
|
||||||
|
"<td><input class=\"edui-link-txt\" id=\"edui-link-Jtitle\" type=\"text\"/></td>" +
|
||||||
|
"</tr>" +
|
||||||
|
"<tr>" +
|
||||||
|
"<td colspan=\"2\">" +
|
||||||
|
"<label for=\"target\"><%=lang_input_target%></label>" +
|
||||||
|
"<input id=\"edui-link-Jtarget\" type=\"checkbox\"/>" +
|
||||||
|
"</td>" +
|
||||||
|
"</tr>" +
|
||||||
|
// "<tr>" +
|
||||||
|
// "<td colspan=\"2\" id=\"edui-link-Jmsg\"></td>" +
|
||||||
|
// "</tr>" +
|
||||||
|
"</table>",
|
||||||
|
initContent: function (editor) {
|
||||||
|
var lang = editor.getLang('link');
|
||||||
|
if (lang) {
|
||||||
|
var html = $.parseTmpl(this.tpl, lang.static);
|
||||||
|
}
|
||||||
|
this.root().html(html);
|
||||||
|
},
|
||||||
|
initEvent: function (editor, $w) {
|
||||||
|
var link = editor.queryCommandValue('link');
|
||||||
|
if(link){
|
||||||
|
$('#edui-link-Jhref',$w).val(utils.html($(link).attr('href')));
|
||||||
|
$('#edui-link-Jtitle',$w).val($(link).attr('title'));
|
||||||
|
$(link).attr('target') == '_blank' && $('#edui-link-Jtarget').attr('checked',true)
|
||||||
|
}
|
||||||
|
$('#edui-link-Jhref',$w).focus();
|
||||||
|
},
|
||||||
|
buttons: {
|
||||||
|
'ok': {
|
||||||
|
exec: function (editor, $w) {
|
||||||
|
var href = $('#edui-link-Jhref').val().replace(/^\s+|\s+$/g, '');
|
||||||
|
|
||||||
|
if (href) {
|
||||||
|
editor.execCommand('link', {
|
||||||
|
'href': href,
|
||||||
|
'target': $("#edui-link-Jtarget:checked").length ? "_blank" : '_self',
|
||||||
|
'title': $("#edui-link-Jtitle").val().replace(/^\s+|\s+$/g, ''),
|
||||||
|
'_href': href
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'cancel':{}
|
||||||
|
},
|
||||||
|
width: 400
|
||||||
|
})
|
||||||
|
})();
|
||||||
|
|
||||||
148
public/static/libs/umeditor/dialogs/map/map.html
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="keywords" content="百度地图,百度地图API,百度地图自定义工具,百度地图所见即所得工具"/>
|
||||||
|
<meta name="description" content="百度地图API自定义地图,帮助用户在可视化操作下生成百度地图"/>
|
||||||
|
<title>百度地图API自定义地图</title>
|
||||||
|
<!--引用百度地图API-->
|
||||||
|
<style type="text/css">
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=2.0&ak=6b6c1a67eaa7db1ca6d6da28e590e343&services=true"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body onload="initMap();">
|
||||||
|
<!--百度地图容器-->
|
||||||
|
<div style="width:697px;height:550px;border:#ccc solid 1px;" id="dituContent"></div>
|
||||||
|
</body>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function getParam(name) {
|
||||||
|
return location.href.match(new RegExp('[?#&]' + name + '=([^?#&]+)', 'i')) ? RegExp.$1 : '';
|
||||||
|
}
|
||||||
|
var map, marker;
|
||||||
|
var centerParam = getParam('center');
|
||||||
|
var zoomParam = getParam('zoom');
|
||||||
|
var widthParam = getParam('width');
|
||||||
|
var heightParam = getParam('height');
|
||||||
|
var markersParam = getParam('markers');
|
||||||
|
var markerStylesParam = getParam('markerStyles');
|
||||||
|
var iframe = getSelfIframe();
|
||||||
|
var UM = parent.UM;
|
||||||
|
var editor = getEditor();
|
||||||
|
|
||||||
|
//创建和初始化地图函数:
|
||||||
|
function initMap() {
|
||||||
|
// [FF]切换模式后报错
|
||||||
|
if (!window.BMap) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var dituContent = document.getElementById('dituContent');
|
||||||
|
dituContent.style.width = widthParam + 'px';
|
||||||
|
dituContent.style.height = heightParam + 'px';
|
||||||
|
|
||||||
|
createMap();//创建地图
|
||||||
|
setMapEvent();//设置地图事件
|
||||||
|
addMapControl();//向地图添加控件
|
||||||
|
|
||||||
|
// 创建标注
|
||||||
|
var markersArr = markersParam.split(',');
|
||||||
|
var point = new BMap.Point(markersArr[0], markersArr[1]);
|
||||||
|
marker = new BMap.Marker(point);
|
||||||
|
marker.enableDragging();
|
||||||
|
map.addOverlay(marker); // 将标注添加到地图中
|
||||||
|
|
||||||
|
if(iframe && UM && editor) { //在编辑状态下
|
||||||
|
setMapListener();//地图改变修改外层的iframe标签src属性
|
||||||
|
} else {
|
||||||
|
document.focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//创建地图函数:
|
||||||
|
function createMap() {
|
||||||
|
map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
|
||||||
|
var centerArr = centerParam.split(',');
|
||||||
|
var point = new BMap.Point(parseFloat(centerArr[0]), parseFloat(centerArr[1]));//定义一个中心点坐标
|
||||||
|
map.centerAndZoom(point, parseInt(zoomParam));//设定地图的中心点和坐标并将地图显示在地图容器中
|
||||||
|
}
|
||||||
|
|
||||||
|
//地图事件设置函数:
|
||||||
|
function setMapEvent() {
|
||||||
|
map.enableDragging();//启用地图拖拽事件,默认启用(可不写)
|
||||||
|
map.enableScrollWheelZoom();//启用地图滚轮放大缩小
|
||||||
|
map.enableDoubleClickZoom();//启用鼠标双击放大,默认启用(可不写)
|
||||||
|
map.enableKeyboard();//启用键盘上下左右键移动地图
|
||||||
|
}
|
||||||
|
|
||||||
|
//地图控件添加函数:
|
||||||
|
function addMapControl() {
|
||||||
|
//向地图中添加缩放控件
|
||||||
|
var ctrl_nav = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_LEFT, type: BMAP_NAVIGATION_CONTROL_LARGE});
|
||||||
|
map.addControl(ctrl_nav);
|
||||||
|
//向地图中添加缩略图控件
|
||||||
|
var ctrl_ove = new BMap.OverviewMapControl({anchor: BMAP_ANCHOR_BOTTOM_RIGHT, isOpen: 1});
|
||||||
|
map.addControl(ctrl_ove);
|
||||||
|
//向地图中添加比例尺控件
|
||||||
|
var ctrl_sca = new BMap.ScaleControl({anchor: BMAP_ANCHOR_BOTTOM_LEFT});
|
||||||
|
map.addControl(ctrl_sca);
|
||||||
|
}
|
||||||
|
|
||||||
|
function setMapListener() {
|
||||||
|
var timer;
|
||||||
|
|
||||||
|
map.addEventListener('moveend', mapListenerHandler);
|
||||||
|
map.addEventListener('zoomend', mapListenerHandler);
|
||||||
|
marker.addEventListener('dragend', mapListenerHandler);
|
||||||
|
|
||||||
|
function mapListenerHandler() {
|
||||||
|
var zoom = map.getZoom(),
|
||||||
|
center = map.getCenter(),
|
||||||
|
marker = window.marker.P;
|
||||||
|
|
||||||
|
iframe.src = iframe.src.
|
||||||
|
replace(new RegExp('([?#&])center=([^?#&]+)', 'i'), '$1center=' + center.lng + ',' + center.lat).
|
||||||
|
replace(new RegExp('([?#&])markers=([^?#&]+)', 'i'), '$1markers=' + marker.lng + ',' + marker.lat).
|
||||||
|
replace(new RegExp('([?#&])zoom=([^?#&]+)', 'i'), '$1zoom=' + zoom);
|
||||||
|
editor.fireEvent('saveScene');
|
||||||
|
saveScene(editor);
|
||||||
|
}
|
||||||
|
|
||||||
|
function saveScene(){
|
||||||
|
if(!timer) {
|
||||||
|
timer = setTimeout(function(){
|
||||||
|
editor.fireEvent('savescene');
|
||||||
|
editor.fireEvent('contentchange');
|
||||||
|
timer = null;
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getSelfIframe(){
|
||||||
|
var iframes = parent.document.getElementsByTagName('iframe');
|
||||||
|
for (var key in iframes) {
|
||||||
|
if (iframes[key].contentWindow == window) {
|
||||||
|
return iframes[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getEditor(){
|
||||||
|
var parentNode = iframe.parentNode;
|
||||||
|
while (parentNode && parentNode.tagName && parentNode.tagName.toLowerCase() != 'body') {
|
||||||
|
if (parentNode.className && parentNode.className.indexOf('edui-body-container')!=-1) {
|
||||||
|
return UM.getEditor(parentNode.id);
|
||||||
|
}
|
||||||
|
parentNode = parentNode.parentNode;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</html>
|
||||||
263
public/static/libs/umeditor/dialogs/map/map.js
Normal file
@@ -0,0 +1,263 @@
|
|||||||
|
(function () {
|
||||||
|
|
||||||
|
var widgetName = 'map';
|
||||||
|
|
||||||
|
UM.registerWidget(widgetName, {
|
||||||
|
|
||||||
|
tpl: "<style type=\"text/css\">" +
|
||||||
|
".edui-dialog-map .edui-map-content{width:530px; height: 350px;margin: 10px auto;}" +
|
||||||
|
".edui-dialog-map .edui-map-content table{width: 100%}" +
|
||||||
|
".edui-dialog-map .edui-map-content table td{vertical-align: middle;}" +
|
||||||
|
".edui-dialog-map .edui-map-button { border: 1px solid #ccc; float: left; cursor: default; height: 23px; width: 70px; cursor: pointer; margin: 0; font-size: 12px; line-height: 24px; text-align: center; }" +
|
||||||
|
".edui-dialog-map .edui-map-button:hover {background:#eee;}" +
|
||||||
|
".edui-dialog-map .edui-map-city,.edui-dialog-map .edui-map-address{height:21px;background: #FFF;border:1px solid #d7d7d7; line-height: 21px;}" +
|
||||||
|
".edui-dialog-map .edui-map-city{width:90px}" +
|
||||||
|
".edui-dialog-map .edui-map-address{width:150px}" +
|
||||||
|
".edui-dialog-map .edui-map-dynamic-label span{vertical-align:middle;margin: 3px 0px 3px 3px;}" +
|
||||||
|
".edui-dialog-map .edui-map-dynamic-label input{vertical-align:middle;margin: 3px;}" +
|
||||||
|
"</style>" +
|
||||||
|
"<div class=\"edui-map-content\">" +
|
||||||
|
"<table>" +
|
||||||
|
"<tr>" +
|
||||||
|
"<td><%=lang_city%>:</td>" +
|
||||||
|
"<td><input class=\"edui-map-city\" type=\"text\" value=\"<%=city.value%>\"/></td>" +
|
||||||
|
"<td><%=lang_address%>:</td>" +
|
||||||
|
"<td><input class=\"edui-map-address\" type=\"text\" value=\"\" /></td>" +
|
||||||
|
"<td><a class=\"edui-map-button\"><%=lang_search%></a></td>" +
|
||||||
|
"<td><label class=\"edui-map-dynamic-label\"><input class=\"edui-map-dynamic\" type=\"checkbox\" name=\"edui-map-dynamic\" /><span><%=lang_dynamicmap%></span></label></td>"+
|
||||||
|
"</tr>" +
|
||||||
|
"</table>" +
|
||||||
|
"<div style=\"width:100%;height:340px;margin:5px auto;border:1px solid gray\" class=\"edui-map-container\"></div>" +
|
||||||
|
"</div>" +
|
||||||
|
"<script class=\"edui-tpl-container\" type=\"text/plain\">" +
|
||||||
|
"<!DOCTYPE html>" +
|
||||||
|
"<html>" +
|
||||||
|
"<head>" +
|
||||||
|
"<title></title>" +
|
||||||
|
"</head>" +
|
||||||
|
"<body>" +
|
||||||
|
"<scr_ipt>" +
|
||||||
|
"window.onload = function(){" +
|
||||||
|
"var scripts = document.scripts || document.getElementsByTagName(\"script\")," +
|
||||||
|
"src = [];" +
|
||||||
|
"for( var i = 1, len = scripts.length; i<len; i++ ) {" +
|
||||||
|
"src.push( scripts[i].src );" +
|
||||||
|
"}" +
|
||||||
|
"parent.UM.getEditor(<<id>>).getWidgetData(\'map\').requestMapApi( src );" +
|
||||||
|
"};" +
|
||||||
|
"function mapReadyStateChange ( state ) { " +
|
||||||
|
" if ( state === 'complete' || state === 'loaded' ) {" +
|
||||||
|
" document.close(); " +
|
||||||
|
" } }" +
|
||||||
|
"</scr_ipt>" +
|
||||||
|
"<scr_ipt onreadystatechange='mapReadyStateChange(this.readyState);' onload='mapReadyStateChange(\"loaded\");' src=\"http://api.map.baidu.com/api?v=2.0&ak=6b6c1a67eaa7db1ca6d6da28e590e343&services=true\"></scr_ipt>" +
|
||||||
|
"</body>" +
|
||||||
|
"</html>" +
|
||||||
|
"</script>",
|
||||||
|
initContent: function (editor, $widget) {
|
||||||
|
|
||||||
|
var me = this,
|
||||||
|
lang = editor.getLang(widgetName),
|
||||||
|
theme_url = editor.options.themePath + editor.options.theme;
|
||||||
|
|
||||||
|
if( me.inited ) {
|
||||||
|
me.preventDefault();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
me.inited = true;
|
||||||
|
|
||||||
|
me.lang = lang;
|
||||||
|
me.editor = editor;
|
||||||
|
|
||||||
|
me.root().html($.parseTmpl(me.tpl, $.extend({}, lang['static'], {
|
||||||
|
'theme_url': theme_url
|
||||||
|
})));
|
||||||
|
|
||||||
|
me.initRequestApi();
|
||||||
|
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 初始化请求API
|
||||||
|
*/
|
||||||
|
initRequestApi: function () {
|
||||||
|
|
||||||
|
var $ifr = null;
|
||||||
|
|
||||||
|
//已经初始化过, 不用再次初始化
|
||||||
|
if (window.BMap && window.BMap.Map) {
|
||||||
|
this.initBaiduMap();
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$ifr = $('<iframe style="display: none;"></iframe>');
|
||||||
|
$ifr.appendTo( this.root() );
|
||||||
|
|
||||||
|
$ifr = $ifr[ 0 ].contentWindow.document;
|
||||||
|
|
||||||
|
$ifr.open();
|
||||||
|
$ifr.write( this.root().find(".edui-tpl-container").html().replace( /scr_ipt/g, 'script').replace('<<id>>',"'" + this.editor.id + "'") );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
requestMapApi: function (src) {
|
||||||
|
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
if (src.length) {
|
||||||
|
|
||||||
|
var _src = src[0];
|
||||||
|
|
||||||
|
src = src.slice(1);
|
||||||
|
|
||||||
|
if (_src) {
|
||||||
|
$.getScript(_src, function () {
|
||||||
|
me.requestMapApi(src);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
me.requestMapApi(src);
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
me.initBaiduMap();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
initBaiduMap: function () {
|
||||||
|
|
||||||
|
var $root = this.root(),
|
||||||
|
map = new BMap.Map($root.find(".edui-map-container")[0]),
|
||||||
|
me = this,
|
||||||
|
marker,
|
||||||
|
point,
|
||||||
|
imgcss,
|
||||||
|
img = $(me.editor.selection.getRange().getClosedNode());
|
||||||
|
|
||||||
|
map.enableInertialDragging();
|
||||||
|
map.enableScrollWheelZoom();
|
||||||
|
map.enableContinuousZoom();
|
||||||
|
|
||||||
|
if (img.length && /api[.]map[.]baidu[.]com/ig.test(img.attr("src"))) {
|
||||||
|
var url = img.attr("src"),
|
||||||
|
centerPos = me.getPars(url, "center").split(","),
|
||||||
|
markerPos = me.getPars(url, "markers").split(",");
|
||||||
|
point = new BMap.Point(Number(centerPos[0]), Number(centerPos[1]));
|
||||||
|
marker = new BMap.Marker(new BMap.Point(Number(markerPos[0]), Number(markerPos[1])));
|
||||||
|
map.addControl(new BMap.NavigationControl());
|
||||||
|
map.centerAndZoom(point, Number(me.getPars(url, "zoom")));
|
||||||
|
imgcss = img.attr('style');
|
||||||
|
} else {
|
||||||
|
point = new BMap.Point(116.404, 39.915); // 创建点坐标
|
||||||
|
marker = new BMap.Marker(point);
|
||||||
|
map.addControl(new BMap.NavigationControl());
|
||||||
|
map.centerAndZoom(point, 10); // 初始化地图,设置中心点坐标和地图级别。
|
||||||
|
}
|
||||||
|
marker.enableDragging();
|
||||||
|
map.addOverlay(marker);
|
||||||
|
|
||||||
|
me.map = map;
|
||||||
|
me.marker = marker;
|
||||||
|
me.imgcss = imgcss;
|
||||||
|
},
|
||||||
|
doSearch: function () {
|
||||||
|
var me = this,
|
||||||
|
city = me.root().find('.edui-map-city').val(),
|
||||||
|
address = me.root().find('.edui-map-address').val();
|
||||||
|
|
||||||
|
if (!city) {
|
||||||
|
alert(me.lang.cityMsg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var search = new BMap.LocalSearch(city, {
|
||||||
|
onSearchComplete: function (results) {
|
||||||
|
if (results && results.getNumPois()) {
|
||||||
|
var points = [];
|
||||||
|
for (var i = 0; i < results.getCurrentNumPois(); i++) {
|
||||||
|
points.push(results.getPoi(i).point);
|
||||||
|
}
|
||||||
|
if (points.length > 1) {
|
||||||
|
me.map.setViewport(points);
|
||||||
|
} else {
|
||||||
|
me.map.centerAndZoom(points[0], 13);
|
||||||
|
}
|
||||||
|
point = me.map.getCenter();
|
||||||
|
me.marker.setPoint(point);
|
||||||
|
} else {
|
||||||
|
alert(me.lang.errorMsg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
search.search(address || city);
|
||||||
|
},
|
||||||
|
getPars: function (str, par) {
|
||||||
|
var reg = new RegExp(par + "=((\\d+|[.,])*)", "g");
|
||||||
|
return reg.exec(str)[1];
|
||||||
|
},
|
||||||
|
reset: function(){
|
||||||
|
this.map && this.map.reset();
|
||||||
|
},
|
||||||
|
initEvent: function () {
|
||||||
|
var me = this,
|
||||||
|
$root = me.root();
|
||||||
|
|
||||||
|
$root.find('.edui-map-address').on('keydown', function (evt) {
|
||||||
|
evt = evt || event;
|
||||||
|
if (evt.keyCode == 13) {
|
||||||
|
me.doSearch();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$root.find(".edui-map-button").on('click', function (evt) {
|
||||||
|
me.doSearch();
|
||||||
|
});
|
||||||
|
|
||||||
|
$root.find(".edui-map-address").focus();
|
||||||
|
|
||||||
|
$root.on( "mousewheel DOMMouseScroll", function ( e ) {
|
||||||
|
return false;
|
||||||
|
} );
|
||||||
|
|
||||||
|
},
|
||||||
|
width: 580,
|
||||||
|
height: 408,
|
||||||
|
buttons: {
|
||||||
|
ok: {
|
||||||
|
exec: function (editor) {
|
||||||
|
var widget = editor.getWidgetData(widgetName),
|
||||||
|
center = widget.map.getCenter(),
|
||||||
|
zoom = widget.map.getZoom(),
|
||||||
|
size = widget.map.getSize(),
|
||||||
|
point = widget.marker.P;
|
||||||
|
|
||||||
|
if (widget.root().find(".edui-map-dynamic")[0].checked) {
|
||||||
|
var URL = editor.getOpt('UMEDITOR_HOME_URL'),
|
||||||
|
url = [URL + (/\/$/.test(URL) ? '':'/') + "dialogs/map/map.html" +
|
||||||
|
'#center=' + center.lng + ',' + center.lat,
|
||||||
|
'&zoom=' + zoom,
|
||||||
|
'&width=' + size.width,
|
||||||
|
'&height=' + size.height,
|
||||||
|
'&markers=' + point.lng + ',' + point.lat].join('');
|
||||||
|
editor.execCommand('inserthtml', '<iframe class="ueditor_baidumap" src="' + url + '" frameborder="0" width="' + (size.width+4) + '" height="' + (size.height+4) + '"></iframe>');
|
||||||
|
} else {
|
||||||
|
url = "http://api.map.baidu.com/staticimage?center=" + center.lng + ',' + center.lat +
|
||||||
|
"&zoom=" + zoom + "&width=" + size.width + '&height=' + size.height + "&markers=" + point.lng + ',' + point.lat;
|
||||||
|
editor.execCommand('inserthtml', '<img width="' + size.width + '"height="' + size.height + '" src="' + url + '"' + (widget.imgcss ? ' style="' + widget.imgcss + '"' : '') + '/>', true);
|
||||||
|
}
|
||||||
|
|
||||||
|
widget.reset();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
cancel: {
|
||||||
|
exec: function(editor){
|
||||||
|
editor.getWidgetData(widgetName).reset();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
})();
|
||||||
|
|
||||||
|
After Width: | Height: | Size: 12 KiB |
BIN
public/static/libs/umeditor/dialogs/video/images/left_focus.jpg
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
public/static/libs/umeditor/dialogs/video/images/none_focus.jpg
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
public/static/libs/umeditor/dialogs/video/images/right_focus.jpg
Normal file
|
After Width: | Height: | Size: 11 KiB |
59
public/static/libs/umeditor/dialogs/video/video.css
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
@charset "utf-8";
|
||||||
|
.edui-dialog-video .edui-video-wrapper{ width: 570px;_width:575px;margin: 10px auto; zoom:1;position: relative}
|
||||||
|
.edui-dialog-video .edui-video-tabbody{height:335px;}
|
||||||
|
.edui-dialog-video .edui-video-panel { position: absolute;width:100%; height:100%;background: #fff;}
|
||||||
|
.edui-dialog-video .edui-video-panel table td{vertical-align: middle;}
|
||||||
|
.edui-dialog-video #eduiVideoUrl {
|
||||||
|
width: 470px;
|
||||||
|
height: 21px;
|
||||||
|
line-height: 21px;
|
||||||
|
margin: 8px 5px;
|
||||||
|
background: #FFF;
|
||||||
|
border: 1px solid #d7d7d7;
|
||||||
|
}
|
||||||
|
.edui-dialog-video #eduiVideoSearchTxt{margin-left:15px;background: #FFF;width:200px;height:21px;line-height:21px;border: 1px solid #d7d7d7;}
|
||||||
|
.edui-dialog-video #searchList{width: 570px;overflow: auto;zoom:1;height: 270px;}
|
||||||
|
.edui-dialog-video #searchList div{float: left;width: 120px;height: 135px;margin: 5px 15px;}
|
||||||
|
.edui-dialog-video #searchList img{margin: 2px 8px;cursor: pointer;border: 2px solid #fff} /*不用缩略图*/
|
||||||
|
.edui-dialog-video #searchList p{margin-left: 10px;}
|
||||||
|
.edui-dialog-video #eduiVideoType{
|
||||||
|
width: 65px;
|
||||||
|
height: 23px;
|
||||||
|
line-height: 22px;
|
||||||
|
border: 1px solid #d7d7d7;
|
||||||
|
}
|
||||||
|
.edui-dialog-video #eduiVideoSearchBtn,.edui-dialog-video #eduiVideoSearchReset{
|
||||||
|
/*width: 80px;*/
|
||||||
|
height: 25px;
|
||||||
|
line-height: 25px;
|
||||||
|
background: #eee;
|
||||||
|
border: 1px solid #d7d7d7;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.edui-dialog-video #eduiVideoPreview{width: 420px; margin-left: 10px; _margin-left:5px; height: 280px;background-color: #ddd;float: left}
|
||||||
|
.edui-dialog-video #eduiVideoInfo {width: 120px;float: left;margin-left: 10px;_margin-left:7px;}
|
||||||
|
.edui-dialog-video .edui-video-wrapper fieldset{
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
padding-left: 5px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
width: 115px;
|
||||||
|
}
|
||||||
|
.edui-dialog-video .edui-video-wrapper fieldset legend{font-weight: bold;}
|
||||||
|
.edui-dialog-video .edui-video-wrapper fieldset p{line-height: 30px;}
|
||||||
|
.edui-dialog-video .edui-video-wrapper fieldset input.edui-video-txt{
|
||||||
|
width: 65px;
|
||||||
|
height: 21px;
|
||||||
|
line-height: 21px;
|
||||||
|
margin: 8px 5px;
|
||||||
|
background: #FFF;
|
||||||
|
border: 1px solid #d7d7d7;
|
||||||
|
}
|
||||||
|
.edui-dialog-video .edui-video-wrapper label.edui-video-url{font-weight: bold;margin-left: 5px;color: #06c;}
|
||||||
|
.edui-dialog-video #eduiVideoFloat div{cursor:pointer;opacity: 0.5;filter: alpha(opacity = 50);margin:9px;_margin:5px;width:38px;height:36px;float:left;}
|
||||||
|
.edui-dialog-video #eduiVideoFloat .edui-video-focus{opacity: 1;filter: alpha(opacity = 100)}
|
||||||
|
.edui-dialog-video .edui-video-wrapper span.edui-video-view{display: inline-block;width: 30px;float: right;cursor: pointer;color: blue}
|
||||||
282
public/static/libs/umeditor/dialogs/video/video.js
Normal file
@@ -0,0 +1,282 @@
|
|||||||
|
|
||||||
|
(function(){
|
||||||
|
var domUtils = UM.dom.domUtils;
|
||||||
|
var widgetName = 'video';
|
||||||
|
|
||||||
|
UM.registerWidget( widgetName,{
|
||||||
|
|
||||||
|
tpl: "<link rel=\"stylesheet\" type=\"text/css\" href=\"<%=video_url%>video.css\" />" +
|
||||||
|
"<div class=\"edui-video-wrapper\">" +
|
||||||
|
"<div id=\"eduiVideoTab\">" +
|
||||||
|
"<div id=\"eduiVideoTabHeads\" class=\"edui-video-tabhead\">" +
|
||||||
|
"<span tabSrc=\"video\" class=\"edui-video-focus\"><%=lang_tab_insertV%></span>" +
|
||||||
|
"</div>" +
|
||||||
|
"<div id=\"eduiVideoTabBodys\" class=\"edui-video-tabbody\">" +
|
||||||
|
"<div id=\"eduiVideoPanel\" class=\"edui-video-panel\">" +
|
||||||
|
"<table><tr><td><label for=\"eduiVideoUrl\" class=\"edui-video-url\"><%=lang_video_url%></label></td><td><input id=\"eduiVideoUrl\" type=\"text\"></td></tr></table>" +
|
||||||
|
"<div id=\"eduiVideoPreview\"></div>" +
|
||||||
|
"<div id=\"eduiVideoInfo\">" +
|
||||||
|
"<fieldset>" +
|
||||||
|
"<legend><%=lang_video_size%></legend>" +
|
||||||
|
"<table>" +
|
||||||
|
"<tr><td><label for=\"eduiVideoWidth\"><%=lang_videoW%></label></td><td><input class=\"edui-video-txt\" id=\"eduiVideoWidth\" type=\"text\"/></td></tr>" +
|
||||||
|
"<tr><td><label for=\"eduiVideoHeight\"><%=lang_videoH%></label></td><td><input class=\"edui-video-txt\" id=\"eduiVideoHeight\" type=\"text\"/></td></tr>" +
|
||||||
|
"</table>" +
|
||||||
|
"</fieldset>" +
|
||||||
|
"<fieldset>" +
|
||||||
|
"<legend><%=lang_alignment%></legend>" +
|
||||||
|
"<div id=\"eduiVideoFloat\"></div>" +
|
||||||
|
"</fieldset>" +
|
||||||
|
"</div>" +
|
||||||
|
"</div>" +
|
||||||
|
"</div>" +
|
||||||
|
"</div>" +
|
||||||
|
"</div>",
|
||||||
|
initContent:function( editor, $widget ){
|
||||||
|
|
||||||
|
var me = this,
|
||||||
|
lang = editor.getLang( widgetName),
|
||||||
|
video_url = UMEDITOR_CONFIG.UMEDITOR_HOME_URL + 'dialogs/video/';
|
||||||
|
|
||||||
|
me.lang = lang;
|
||||||
|
me.editor = editor;
|
||||||
|
me.$widget = $widget;
|
||||||
|
me.root().html( $.parseTmpl( me.tpl, $.extend( { video_url: video_url }, lang['static'] ) ) );
|
||||||
|
|
||||||
|
me.initController( lang );
|
||||||
|
|
||||||
|
},
|
||||||
|
initEvent:function(){
|
||||||
|
|
||||||
|
var me = this,
|
||||||
|
url = $("#eduiVideoUrl", me.$widget)[0];
|
||||||
|
|
||||||
|
if( 'oninput' in url ) {
|
||||||
|
url.oninput = function(){
|
||||||
|
me.createPreviewVideo( this.value );
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
url.onpropertychange = function () {
|
||||||
|
me.createPreviewVideo( this.value );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
initController: function( lang ){
|
||||||
|
|
||||||
|
var me = this,
|
||||||
|
img = me.editor.selection.getRange().getClosedNode(),
|
||||||
|
url;
|
||||||
|
|
||||||
|
me.createAlignButton( ["eduiVideoFloat"] );
|
||||||
|
|
||||||
|
//编辑视频时初始化相关信息
|
||||||
|
if(img && img.className == "edui-faked-video"){
|
||||||
|
$("#eduiVideoUrl", me.$widget)[0].value = url = img.getAttribute("_url");
|
||||||
|
$("#eduiVideoWidth", me.$widget)[0].value = img.width;
|
||||||
|
$("#eduiVideoHeight", me.$widget)[0].value = img.height;
|
||||||
|
var align = domUtils.getComputedStyle(img,"float"),
|
||||||
|
parentAlign = domUtils.getComputedStyle(img.parentNode,"text-align");
|
||||||
|
me.updateAlignButton(parentAlign==="center"?"center":align);
|
||||||
|
}
|
||||||
|
me.createPreviewVideo(url);
|
||||||
|
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 根据url生成视频预览
|
||||||
|
*/
|
||||||
|
createPreviewVideo: function(url){
|
||||||
|
|
||||||
|
if ( !url )return;
|
||||||
|
|
||||||
|
var me = this,
|
||||||
|
lang = me.lang,
|
||||||
|
conUrl = me.convert_url(url);
|
||||||
|
|
||||||
|
if(!me.endWith(conUrl,[".swf",".flv",".wmv"])){
|
||||||
|
$("#eduiVideoPreview", me.$widget).html( lang.urlError );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$("#eduiVideoPreview", me.$widget)[0].innerHTML = '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"' +
|
||||||
|
' src="' + url + '"' +
|
||||||
|
' width="' + 420 + '"' +
|
||||||
|
' height="' + 280 + '"' +
|
||||||
|
' wmode="transparent" play="true" loop="false" menu="false" allowscriptaccess="never" allowfullscreen="true" ></embed>';
|
||||||
|
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 将单个视频信息插入编辑器中
|
||||||
|
*/
|
||||||
|
insertSingle: function(){
|
||||||
|
|
||||||
|
var me = this,
|
||||||
|
width = $("#eduiVideoWidth", me.$widget)[0],
|
||||||
|
height = $("#eduiVideoHeight", me.$widget)[0],
|
||||||
|
url=$('#eduiVideoUrl', me.$widget)[0].value,
|
||||||
|
align = this.findFocus("eduiVideoFloat","name");
|
||||||
|
|
||||||
|
if(!url) return false;
|
||||||
|
if ( !me.checkNum( [width, height] ) ) return false;
|
||||||
|
this.editor.execCommand('insertvideo', {
|
||||||
|
url: me.convert_url(url),
|
||||||
|
width: width.value,
|
||||||
|
height: height.value,
|
||||||
|
align: align
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* URL转换
|
||||||
|
*/
|
||||||
|
convert_url: function(url){
|
||||||
|
if ( !url ) return '';
|
||||||
|
var matches = url.match(/youtu.be\/(\w+)$/) ||
|
||||||
|
url.match(/youtube\.com\/watch\?v=(\w+)/) ||
|
||||||
|
url.match(/youtube.com\/v\/(\w+)/),
|
||||||
|
youku = url.match(/youku\.com\/v_show\/id_(\w+)/),
|
||||||
|
youkuPlay = /player\.youku\.com/ig.test(url);
|
||||||
|
|
||||||
|
if(youkuPlay){
|
||||||
|
url = url.replace(/\?f=.*/, "");
|
||||||
|
} else if (matches){
|
||||||
|
url = "https://www.youtube.com/v/" + matches[1] + "?version=3&feature=player_embedded";
|
||||||
|
}else if(youku){
|
||||||
|
url = "http://player.youku.com/player.php/sid/"+youku[1]+"/v.swf"
|
||||||
|
} else {
|
||||||
|
url = url.replace(/http:\/\/www\.tudou\.com\/programs\/view\/([\w\-]+)\/?/i, "http://www.tudou.com/v/$1")
|
||||||
|
.replace(/http:\/\/www\.youtube\.com\/watch\?v=([\w\-]+)/i, "http://www.youtube.com/v/$1")
|
||||||
|
.replace(/http:\/\/v\.youku\.com\/v_show\/id_([\w\-=]+)\.html/i, "http://player.youku.com/player.php/sid/$1")
|
||||||
|
.replace(/http:\/\/www\.56\.com\/u\d+\/v_([\w\-]+)\.html/i, "http://player.56.com/v_$1.swf")
|
||||||
|
.replace(/http:\/\/www.56.com\/w\d+\/play_album\-aid\-\d+_vid\-([^.]+)\.html/i, "http://player.56.com/v_$1.swf")
|
||||||
|
.replace(/http:\/\/v\.ku6\.com\/.+\/([^.]+)\.html/i, "http://player.ku6.com/refer/$1/v.swf")
|
||||||
|
.replace(/\?f=.*/, "");
|
||||||
|
}
|
||||||
|
return url;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 检测传入的所有input框中输入的长宽是否是正数
|
||||||
|
*/
|
||||||
|
checkNum: function checkNum( nodes ) {
|
||||||
|
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
for ( var i = 0, ci; ci = nodes[i++]; ) {
|
||||||
|
var value = ci.value;
|
||||||
|
if ( !me.isNumber( value ) && value) {
|
||||||
|
alert( me.lang.numError );
|
||||||
|
ci.value = "";
|
||||||
|
ci.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 数字判断
|
||||||
|
* @param value
|
||||||
|
*/
|
||||||
|
isNumber: function( value ) {
|
||||||
|
return /(0|^[1-9]\d*$)/.test( value );
|
||||||
|
},
|
||||||
|
updateAlignButton: function( align ) {
|
||||||
|
var aligns = $( "#eduiVideoFloat", this.$widget )[0].children;
|
||||||
|
|
||||||
|
for ( var i = 0, ci; ci = aligns[i++]; ) {
|
||||||
|
if ( ci.getAttribute( "name" ) == align ) {
|
||||||
|
if ( ci.className !="edui-video-focus" ) {
|
||||||
|
ci.className = "edui-video-focus";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ( ci.className =="edui-video-focus" ) {
|
||||||
|
ci.className = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 创建图片浮动选择按钮
|
||||||
|
* @param ids
|
||||||
|
*/
|
||||||
|
createAlignButton: function( ids ) {
|
||||||
|
var lang = this.lang,
|
||||||
|
vidoe_home = UMEDITOR_CONFIG.UMEDITOR_HOME_URL + 'dialogs/video/';
|
||||||
|
|
||||||
|
for ( var i = 0, ci; ci = ids[i++]; ) {
|
||||||
|
var floatContainer = $( "#" + ci, this.$widget ) [0],
|
||||||
|
nameMaps = {"none":lang['default'], "left":lang.floatLeft, "right":lang.floatRight};
|
||||||
|
for ( var j in nameMaps ) {
|
||||||
|
var div = document.createElement( "div" );
|
||||||
|
div.setAttribute( "name", j );
|
||||||
|
if ( j == "none" ) div.className="edui-video-focus";
|
||||||
|
div.style.cssText = "background:url("+ vidoe_home +"images/" + j + "_focus.jpg);";
|
||||||
|
div.setAttribute( "title", nameMaps[j] );
|
||||||
|
floatContainer.appendChild( div );
|
||||||
|
}
|
||||||
|
this.switchSelect( ci );
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 选择切换
|
||||||
|
*/
|
||||||
|
switchSelect: function( selectParentId ) {
|
||||||
|
var selects = $( "#" + selectParentId, this.$widget )[0].children;
|
||||||
|
for ( var i = 0, ci; ci = selects[i++]; ) {
|
||||||
|
$(ci).on("click", function () {
|
||||||
|
for ( var j = 0, cj; cj = selects[j++]; ) {
|
||||||
|
cj.className = "";
|
||||||
|
cj.removeAttribute && cj.removeAttribute( "class" );
|
||||||
|
}
|
||||||
|
this.className = "edui-video-focus";
|
||||||
|
} )
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 找到id下具有focus类的节点并返回该节点下的某个属性
|
||||||
|
* @param id
|
||||||
|
* @param returnProperty
|
||||||
|
*/
|
||||||
|
findFocus: function( id, returnProperty ) {
|
||||||
|
var tabs = $( "#" + id , this.$widget)[0].children,
|
||||||
|
property;
|
||||||
|
for ( var i = 0, ci; ci = tabs[i++]; ) {
|
||||||
|
if ( ci.className=="edui-video-focus" ) {
|
||||||
|
property = ci.getAttribute( returnProperty );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return property;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 末尾字符检测
|
||||||
|
*/
|
||||||
|
endWith: function(str,endStrArr){
|
||||||
|
for(var i=0,len = endStrArr.length;i<len;i++){
|
||||||
|
var tmp = endStrArr[i];
|
||||||
|
if(str.length - tmp.length<0) return false;
|
||||||
|
|
||||||
|
if(str.substring(str.length-tmp.length)==tmp){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
width:610,
|
||||||
|
height:498,
|
||||||
|
buttons: {
|
||||||
|
ok: {
|
||||||
|
exec: function( editor, $w ){
|
||||||
|
$("#eduiVideoPreview", $w).html("");
|
||||||
|
editor.getWidgetData(widgetName).insertSingle();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
cancel: {
|
||||||
|
exec: function(){
|
||||||
|
//清除视频
|
||||||
|
$("#eduiVideoPreview").html("");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
})();
|
||||||
150
public/static/libs/umeditor/lang/en/en.js
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
/**
|
||||||
|
* English language package
|
||||||
|
*/
|
||||||
|
UM.I18N['en'] = {
|
||||||
|
'labelMap':{
|
||||||
|
'anchor':'Anchor', 'undo':'Undo', 'redo':'Redo', 'bold':'Bold', 'indent':'Indent', 'snapscreen':'SnapScreen',
|
||||||
|
'italic':'Italic', 'underline':'Underline', 'strikethrough':'Strikethrough', 'subscript':'SubScript','fontborder':'text border',
|
||||||
|
'superscript':'SuperScript', 'formatmatch':'Format Match', 'source':'Source', 'blockquote':'BlockQuote',
|
||||||
|
'pasteplain':'PastePlain', 'selectall':'SelectAll', 'print':'Print', 'preview':'Preview',
|
||||||
|
'horizontal':'Horizontal', 'removeformat':'RemoveFormat', 'time':'Time', 'date':'Date',
|
||||||
|
'unlink':'Unlink', 'insertrow':'InsertRow', 'insertcol':'InsertCol', 'mergeright':'MergeRight', 'mergedown':'MergeDown',
|
||||||
|
'deleterow':'DeleteRow', 'deletecol':'DeleteCol', 'splittorows':'SplitToRows','insertcode':'insert code',
|
||||||
|
'splittocols':'SplitToCols', 'splittocells':'SplitToCells','deletecaption':'DeleteCaption','inserttitle':'InsertTitle',
|
||||||
|
'mergecells':'MergeCells', 'deletetable':'DeleteTable', 'cleardoc':'Clear', 'insertparagraphbeforetable':"InsertParagraphBeforeTable",
|
||||||
|
'fontfamily':'FontFamily', 'fontsize':'FontSize', 'paragraph':'Paragraph', 'image':'Image','edittable':'Edit Table', 'edittd':'Edit Td','link':'Link',
|
||||||
|
'emotion':'Emotion', 'spechars':'Spechars', 'searchreplace':'SearchReplace', 'map':'BaiduMap', 'gmap':'GoogleMap',
|
||||||
|
'video':'Video', 'help':'Help', 'justifyleft':'JustifyLeft', 'justifyright':'JustifyRight', 'justifycenter':'JustifyCenter',
|
||||||
|
'justifyjustify':'Justify', 'forecolor':'FontColor', 'backcolor':'BackColor', 'insertorderedlist':'OL',
|
||||||
|
'insertunorderedlist':'UL', 'fullscreen':'FullScreen', 'directionalityltr':'EnterFromLeft', 'directionalityrtl':'EnterFromRight',
|
||||||
|
'rowspacingtop':'RowSpacingTop', 'rowspacingbottom':'RowSpacingBottom', 'highlightcode':'Code', 'pagebreak':'PageBreak', 'insertframe':'Iframe', 'imagenone':'Default',
|
||||||
|
'imageleft':'ImageLeft', 'imageright':'ImageRight', 'attachment':'Attachment', 'imagecenter':'ImageCenter', 'wordimage':'WordImage',
|
||||||
|
'lineheight':'LineHeight','edittip':'EditTip','customstyle':'CustomStyle', 'scrawl':'Scrawl', 'autotypeset':'AutoTypeset',
|
||||||
|
'webapp':'WebAPP', 'touppercase':'UpperCase', 'tolowercase':'LowerCase','template':'Template','background':'Background','inserttable':'InsertTable',
|
||||||
|
'drafts': 'drafts', 'formula':'formula'
|
||||||
|
},
|
||||||
|
'paragraph':{'p':'Paragraph', 'h1':'Title 1', 'h2':'Title 2', 'h3':'Title 3', 'h4':'Title 4', 'h5':'Title 5', 'h6':'Title 6'},
|
||||||
|
'fontfamily':{
|
||||||
|
'songti':'Sim sun',
|
||||||
|
'kaiti':'Sim kai',
|
||||||
|
'heiti':'Sim hei',
|
||||||
|
'lishu':'Sim li',
|
||||||
|
'yahei': 'Microsoft yahei',
|
||||||
|
'andaleMono':'Andale mono',
|
||||||
|
'arial': 'Arial',
|
||||||
|
'arialBlack':'Arial black',
|
||||||
|
'comicSansMs':'Comic sans ms',
|
||||||
|
'impact':'Impact',
|
||||||
|
'timesNewRoman':'Times new roman'
|
||||||
|
},
|
||||||
|
'ok':"OK",
|
||||||
|
'cancel':"Cancel",
|
||||||
|
'closeDialog':"closeDialog",
|
||||||
|
'tableDrag':"You must import the file uiUtils.js before drag! ",
|
||||||
|
'autofloatMsg':"The plugin AutoFloat depends on EditorUI!",
|
||||||
|
'anthorMsg':"Link",
|
||||||
|
'clearColor':'Clear',
|
||||||
|
'standardColor':'Standard color',
|
||||||
|
'themeColor':'Theme color',
|
||||||
|
'property':'Property',
|
||||||
|
'default':'Default',
|
||||||
|
'modify':'Modify',
|
||||||
|
'justifyleft':'Justify Left',
|
||||||
|
'justifyright':'Justify Right',
|
||||||
|
'justifycenter':'Justify Center',
|
||||||
|
'justify':'Default',
|
||||||
|
'clear':'Clear',
|
||||||
|
'anchorMsg':'Anchor',
|
||||||
|
'delete':'Delete',
|
||||||
|
'clickToUpload':"Click to upload",
|
||||||
|
'unset':"Language hasn't been set!",
|
||||||
|
't_row':'row',
|
||||||
|
't_col':'col',
|
||||||
|
'more':'More',
|
||||||
|
'pasteOpt':'Paste Option',
|
||||||
|
'pasteSourceFormat':"Keep Source Formatting",
|
||||||
|
'tagFormat':'Keep tag',
|
||||||
|
'pasteTextFormat':'Keep Text only',
|
||||||
|
|
||||||
|
//===============dialog i18N=======================
|
||||||
|
'image':{
|
||||||
|
'static':{
|
||||||
|
'lang_tab_local':"Local Upload",
|
||||||
|
'lang_tab_imgSearch':"Network Pictures",
|
||||||
|
'lang_input_dragTip':"Support drag upload",
|
||||||
|
'lang_btn_add':"Add"
|
||||||
|
},
|
||||||
|
'uploadError': 'Upload Error'
|
||||||
|
},
|
||||||
|
'emotion':{
|
||||||
|
'static':{
|
||||||
|
'lang_input_choice':'Choice',
|
||||||
|
'lang_input_Tuzki':'Tuzki',
|
||||||
|
'lang_input_lvdouwa':'LvDouWa',
|
||||||
|
'lang_input_BOBO':'BOBO',
|
||||||
|
'lang_input_babyCat':'BabyCat',
|
||||||
|
'lang_input_bubble':'Bubble',
|
||||||
|
'lang_input_youa':'YouA'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'gmap':{
|
||||||
|
'static':{
|
||||||
|
'lang_input_address':'Address:',
|
||||||
|
'lang_input_search':'Search',
|
||||||
|
'address':{'value':"Beijing"}
|
||||||
|
},
|
||||||
|
'searchError':'Unable to locate the address!'
|
||||||
|
},
|
||||||
|
'link':{
|
||||||
|
'static':{
|
||||||
|
'lang_input_text':'Text:',
|
||||||
|
'lang_input_url':'URL:',
|
||||||
|
'lang_input_title':'Title:',
|
||||||
|
'lang_input_target':'open in new window:'
|
||||||
|
},
|
||||||
|
'validLink':'Supports only effective when a link is selected',
|
||||||
|
'httpPrompt':'The hyperlink you enter should start with "http|https|ftp://"!'
|
||||||
|
},
|
||||||
|
'map':{
|
||||||
|
'static':{
|
||||||
|
'lang_city':"City",
|
||||||
|
'lang_address':"Address",
|
||||||
|
'city':{'value':"Beijing"},
|
||||||
|
'lang_search':"Search",
|
||||||
|
'lang_dynamicmap':"Dynamic map"
|
||||||
|
},
|
||||||
|
'cityMsg':"Please enter the city name!",
|
||||||
|
'errorMsg':"Can't find the place!"
|
||||||
|
},
|
||||||
|
'video':{
|
||||||
|
'static':{
|
||||||
|
'lang_tab_insertV':"Video",
|
||||||
|
'lang_video_url':" URL ",
|
||||||
|
'lang_video_size':"Video Size",
|
||||||
|
'lang_videoW':"Width",
|
||||||
|
'lang_videoH':"Height",
|
||||||
|
'lang_alignment':"Alignment",
|
||||||
|
'videoSearchTxt':{'value':"Enter the search keyword!"},
|
||||||
|
'videoType':{'options':["All", "Hot", "Entertainment", "Funny", "Sports", "Science", "variety"]},
|
||||||
|
'videoSearchBtn':{'value':"Search in Baidu"},
|
||||||
|
'videoSearchReset':{'value':"Clear result"}
|
||||||
|
},
|
||||||
|
'numError':"Please enter the correct Num. e.g 123,400",
|
||||||
|
'floatLeft':"Float left",
|
||||||
|
'floatRight':"Float right",
|
||||||
|
'default':"Default",
|
||||||
|
'block':"Display in block",
|
||||||
|
'urlError':"The video url format may be wrong!",
|
||||||
|
'loading':" The video is loading, please wait…",
|
||||||
|
'clickToSelect':"Click to select",
|
||||||
|
'goToSource':'Visit source video ',
|
||||||
|
'noVideo':" Sorry,can't find the video,please try again!"
|
||||||
|
},
|
||||||
|
'formula':{
|
||||||
|
'static':{
|
||||||
|
'lang_tab_common':'Common',
|
||||||
|
'lang_tab_symbol':'Symbol',
|
||||||
|
'lang_tab_letter':'Letter'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
BIN
public/static/libs/umeditor/lang/en/images/addimage.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 743 B |
|
After Width: | Height: | Size: 743 B |
BIN
public/static/libs/umeditor/lang/en/images/background.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
public/static/libs/umeditor/lang/en/images/button.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
public/static/libs/umeditor/lang/en/images/copy.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
public/static/libs/umeditor/lang/en/images/deletedisable.png
Normal file
|
After Width: | Height: | Size: 649 B |
BIN
public/static/libs/umeditor/lang/en/images/deleteenable.png
Normal file
|
After Width: | Height: | Size: 664 B |
BIN
public/static/libs/umeditor/lang/en/images/imglabel.png
Normal file
|
After Width: | Height: | Size: 672 B |
BIN
public/static/libs/umeditor/lang/en/images/listbackground.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/static/libs/umeditor/lang/en/images/localimage.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
public/static/libs/umeditor/lang/en/images/music.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
public/static/libs/umeditor/lang/en/images/rotateleftdisable.png
Normal file
|
After Width: | Height: | Size: 719 B |
BIN
public/static/libs/umeditor/lang/en/images/rotateleftenable.png
Normal file
|
After Width: | Height: | Size: 952 B |
|
After Width: | Height: | Size: 754 B |
BIN
public/static/libs/umeditor/lang/en/images/rotaterightenable.png
Normal file
|
After Width: | Height: | Size: 1007 B |
BIN
public/static/libs/umeditor/lang/en/images/upload.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
public/static/libs/umeditor/lang/zh-cn/images/copy.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
public/static/libs/umeditor/lang/zh-cn/images/imglabel.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/static/libs/umeditor/lang/zh-cn/images/localimage.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
public/static/libs/umeditor/lang/zh-cn/images/music.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
public/static/libs/umeditor/lang/zh-cn/images/upload.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
150
public/static/libs/umeditor/lang/zh-cn/zh-cn.js
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
/**
|
||||||
|
* 中文语言包
|
||||||
|
*/
|
||||||
|
UM.I18N['zh-cn'] = {
|
||||||
|
'labelMap':{
|
||||||
|
'anchor':'锚点', 'undo':'撤销', 'redo':'重做', 'bold':'加粗', 'indent':'首行缩进', 'snapscreen':'截图',
|
||||||
|
'italic':'斜体', 'underline':'下划线', 'strikethrough':'删除线', 'subscript':'下标','fontborder':'字符边框',
|
||||||
|
'superscript':'上标', 'formatmatch':'格式刷', 'source':'源代码', 'blockquote':'引用',
|
||||||
|
'pasteplain':'纯文本粘贴模式', 'selectall':'全选', 'print':'打印', 'preview':'预览',
|
||||||
|
'horizontal':'分隔线', 'removeformat':'清除格式', 'time':'时间', 'date':'日期',
|
||||||
|
'unlink':'取消链接', 'insertrow':'前插入行', 'insertcol':'前插入列', 'mergeright':'右合并单元格', 'mergedown':'下合并单元格',
|
||||||
|
'deleterow':'删除行', 'deletecol':'删除列', 'splittorows':'拆分成行', 'splittocols':'拆分成列', 'splittocells':'完全拆分单元格',
|
||||||
|
'mergecells':'合并多个单元格', 'deletetable':'删除表格', 'cleardoc':'清空文档','insertparagraphbeforetable':"表格前插入行",'insertcode':'代码语言','fontfamily':'字体', 'fontsize':'字号', 'paragraph':'段落格式', 'image':'图片',
|
||||||
|
'edittable':'表格属性','edittd':'单元格属性', 'link':'超链接','emotion':'表情', 'spechars':'特殊字符', 'searchreplace':'查询替换', 'map':'百度地图', 'gmap':'Google地图',
|
||||||
|
'video':'视频', 'help':'帮助', 'justifyleft':'居左对齐', 'justifyright':'居右对齐', 'justifycenter':'居中对齐',
|
||||||
|
'justifyjustify':'两端对齐', 'forecolor':'字体颜色', 'backcolor':'背景色', 'insertorderedlist':'有序列表',
|
||||||
|
'insertunorderedlist':'无序列表', 'fullscreen':'全屏', 'directionalityltr':'从左向右输入', 'directionalityrtl':'从右向左输入',
|
||||||
|
'rowspacingtop':'段前距', 'rowspacingbottom':'段后距', 'highlightcode':'插入代码', 'pagebreak':'分页', 'insertframe':'插入Iframe', 'imagenone':'默认',
|
||||||
|
'imageleft':'左浮动', 'imageright':'右浮动', 'attachment':'附件', 'imagecenter':'居中', 'wordimage':'图片转存',
|
||||||
|
'lineheight':'行间距','edittip' :'编辑提示','customstyle':'自定义标题', 'autotypeset':'自动排版', 'webapp':'百度应用',
|
||||||
|
'touppercase':'字母大写', 'tolowercase':'字母小写','background':'背景','template':'模板','scrawl':'涂鸦','music':'音乐','inserttable':'插入表格',
|
||||||
|
'drafts': '草稿箱', 'formula':'数学公式','save':'保存'
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
'paragraph':{'p':'段落', 'h1':'标题 1', 'h2':'标题 2', 'h3':'标题 3', 'h4':'标题 4', 'h5':'标题 5', 'h6':'标题 6'},
|
||||||
|
'fontfamily':{
|
||||||
|
'songti':'宋体',
|
||||||
|
'kaiti':'楷体',
|
||||||
|
'heiti':'黑体',
|
||||||
|
'lishu':'隶书',
|
||||||
|
'yahei':'微软雅黑',
|
||||||
|
'andaleMono':'andale mono',
|
||||||
|
'arial': 'arial',
|
||||||
|
'arialBlack':'arial black',
|
||||||
|
'comicSansMs':'comic sans ms',
|
||||||
|
'impact':'impact',
|
||||||
|
'timesNewRoman':'times new roman'
|
||||||
|
},
|
||||||
|
'ok':"确认",
|
||||||
|
'cancel':"取消",
|
||||||
|
'closeDialog':"关闭对话框",
|
||||||
|
'tableDrag':"表格拖动必须引入uiUtils.js文件!",
|
||||||
|
'autofloatMsg':"工具栏浮动依赖编辑器UI,您首先需要引入UI文件!",
|
||||||
|
'anthorMsg':"链接",
|
||||||
|
'clearColor':'清空颜色',
|
||||||
|
'standardColor':'标准颜色',
|
||||||
|
'themeColor':'主题颜色',
|
||||||
|
'property':'属性',
|
||||||
|
'default':'默认',
|
||||||
|
'modify':'修改',
|
||||||
|
'justifyleft':'左对齐',
|
||||||
|
'justifyright':'右对齐',
|
||||||
|
'justifycenter':'居中',
|
||||||
|
'justify':'默认',
|
||||||
|
'clear':'清除',
|
||||||
|
'anchorMsg':'锚点',
|
||||||
|
'delete':'删除',
|
||||||
|
'clickToUpload':"点击上传",
|
||||||
|
'unset':'尚未设置语言文件',
|
||||||
|
't_row':'行',
|
||||||
|
't_col':'列',
|
||||||
|
'more':'更多',
|
||||||
|
'pasteOpt':'粘贴选项',
|
||||||
|
'pasteSourceFormat':"保留源格式",
|
||||||
|
'tagFormat':'只保留标签',
|
||||||
|
'pasteTextFormat':'只保留文本',
|
||||||
|
|
||||||
|
//===============dialog i18N=======================
|
||||||
|
'image':{
|
||||||
|
'static':{
|
||||||
|
'lang_tab_local':"本地上传",
|
||||||
|
'lang_tab_imgSearch':"网络图片",
|
||||||
|
'lang_input_dragTip':"支持图片拖拽上传",
|
||||||
|
'lang_btn_add':"添加"
|
||||||
|
},
|
||||||
|
'uploadError': '上传出错'
|
||||||
|
},
|
||||||
|
'emotion':{
|
||||||
|
'static':{
|
||||||
|
'lang_input_choice':'精选',
|
||||||
|
'lang_input_Tuzki':'兔斯基',
|
||||||
|
'lang_input_BOBO':'BOBO',
|
||||||
|
'lang_input_lvdouwa':'绿豆蛙',
|
||||||
|
'lang_input_babyCat':'baby猫',
|
||||||
|
'lang_input_bubble':'泡泡',
|
||||||
|
'lang_input_youa':'有啊'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'gmap':{
|
||||||
|
'static':{
|
||||||
|
'lang_input_address':'地址',
|
||||||
|
'lang_input_search':'搜索',
|
||||||
|
'address':{'value':"北京"}
|
||||||
|
},
|
||||||
|
'searchError':'无法定位到该地址!'
|
||||||
|
},
|
||||||
|
'link':{
|
||||||
|
'static':{
|
||||||
|
'lang_input_text':'文本内容:',
|
||||||
|
'lang_input_url':'链接地址:',
|
||||||
|
'lang_input_title':'标题:',
|
||||||
|
'lang_input_target':'是否在新窗口打开:'
|
||||||
|
},
|
||||||
|
'validLink':'只支持选中一个链接时生效',
|
||||||
|
'httpPrompt':'您输入的超链接中不包含http等协议名称,默认将为您添加http://前缀'
|
||||||
|
},
|
||||||
|
'map':{
|
||||||
|
'static':{
|
||||||
|
'lang_city':"城市",
|
||||||
|
'lang_address':"地址",
|
||||||
|
'city':{'value':"北京"},
|
||||||
|
'lang_search':"搜索",
|
||||||
|
'lang_dynamicmap':"插入动态地图"
|
||||||
|
},
|
||||||
|
'cityMsg':"请选择城市",
|
||||||
|
'errorMsg':"抱歉,找不到该位置!"
|
||||||
|
},
|
||||||
|
'video':{
|
||||||
|
'static':{
|
||||||
|
'lang_tab_insertV':"插入视频",
|
||||||
|
'lang_video_url':"视频网址",
|
||||||
|
'lang_video_size':"视频尺寸",
|
||||||
|
'lang_videoW':"宽度",
|
||||||
|
'lang_videoH':"高度",
|
||||||
|
'lang_alignment':"对齐方式",
|
||||||
|
'videoSearchTxt':{'value':"请输入搜索关键字!"},
|
||||||
|
'videoType':{'options':["全部", "热门", "娱乐", "搞笑", "体育", "科技", "综艺"]},
|
||||||
|
'videoSearchBtn':{'value':"百度一下"},
|
||||||
|
'videoSearchReset':{'value':"清空结果"}
|
||||||
|
},
|
||||||
|
'numError':"请输入正确的数值,如123,400",
|
||||||
|
'floatLeft':"左浮动",
|
||||||
|
'floatRight':"右浮动",
|
||||||
|
'default':"默认",
|
||||||
|
'block':"独占一行",
|
||||||
|
'urlError':"输入的视频地址有误,请检查后再试!",
|
||||||
|
'loading':" 视频加载中,请等待……",
|
||||||
|
'clickToSelect':"点击选中",
|
||||||
|
'goToSource':'访问源视频',
|
||||||
|
'noVideo':" 抱歉,找不到对应的视频,请重试!"
|
||||||
|
},
|
||||||
|
'formula':{
|
||||||
|
'static':{
|
||||||
|
'lang_tab_common':'常用公式',
|
||||||
|
'lang_tab_symbol':'符号',
|
||||||
|
'lang_tab_letter':'字母'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
208
public/static/libs/umeditor/php/Uploader.class.php
Normal file
@@ -0,0 +1,208 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Created by JetBrains PhpStorm.
|
||||||
|
* User: taoqili
|
||||||
|
* Date: 12-7-18
|
||||||
|
* Time: 上午11: 32
|
||||||
|
* UEditor编辑器通用上传类
|
||||||
|
*/
|
||||||
|
class Uploader
|
||||||
|
{
|
||||||
|
private $fileField; //文件域名
|
||||||
|
private $file; //文件上传对象
|
||||||
|
private $config; //配置信息
|
||||||
|
private $oriName; //原始文件名
|
||||||
|
private $fileName; //新文件名
|
||||||
|
private $fullName; //完整文件名,即从当前配置目录开始的URL
|
||||||
|
private $fileSize; //文件大小
|
||||||
|
private $fileType; //文件类型
|
||||||
|
private $stateInfo; //上传状态信息,
|
||||||
|
private $stateMap = array( //上传状态映射表,国际化用户需考虑此处数据的国际化
|
||||||
|
"SUCCESS" , //上传成功标记,在UEditor中内不可改变,否则flash判断会出错
|
||||||
|
"文件大小超出 upload_max_filesize 限制" ,
|
||||||
|
"文件大小超出 MAX_FILE_SIZE 限制" ,
|
||||||
|
"文件未被完整上传" ,
|
||||||
|
"没有文件被上传" ,
|
||||||
|
"上传文件为空" ,
|
||||||
|
"POST" => "文件大小超出 post_max_size 限制" ,
|
||||||
|
"SIZE" => "文件大小超出网站限制" ,
|
||||||
|
"TYPE" => "不允许的文件类型" ,
|
||||||
|
"DIR" => "目录创建失败" ,
|
||||||
|
"IO" => "输入输出错误" ,
|
||||||
|
"UNKNOWN" => "未知错误" ,
|
||||||
|
"MOVE" => "文件保存时出错",
|
||||||
|
"DIR_ERROR" => "创建目录失败"
|
||||||
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 构造函数
|
||||||
|
* @param string $fileField 表单名称
|
||||||
|
* @param array $config 配置项
|
||||||
|
* @param bool $base64 是否解析base64编码,可省略。若开启,则$fileField代表的是base64编码的字符串表单名
|
||||||
|
*/
|
||||||
|
public function __construct( $fileField , $config , $base64 = false )
|
||||||
|
{
|
||||||
|
$this->fileField = $fileField;
|
||||||
|
$this->config = $config;
|
||||||
|
$this->stateInfo = $this->stateMap[ 0 ];
|
||||||
|
$this->upFile( $base64 );
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上传文件的主处理方法
|
||||||
|
* @param $base64
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
private function upFile( $base64 )
|
||||||
|
{
|
||||||
|
//处理base64上传
|
||||||
|
if ( "base64" == $base64 ) {
|
||||||
|
$content = $_POST[ $this->fileField ];
|
||||||
|
$this->base64ToImage( $content );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//处理普通上传
|
||||||
|
$file = $this->file = $_FILES[ $this->fileField ];
|
||||||
|
if ( !$file ) {
|
||||||
|
$this->stateInfo = $this->getStateInfo( 'POST' );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ( $this->file[ 'error' ] ) {
|
||||||
|
$this->stateInfo = $this->getStateInfo( $file[ 'error' ] );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ( !is_uploaded_file( $file[ 'tmp_name' ] ) ) {
|
||||||
|
$this->stateInfo = $this->getStateInfo( "UNKNOWN" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->oriName = $file[ 'name' ];
|
||||||
|
$this->fileSize = $file[ 'size' ];
|
||||||
|
$this->fileType = $this->getFileExt();
|
||||||
|
|
||||||
|
if ( !$this->checkSize() ) {
|
||||||
|
$this->stateInfo = $this->getStateInfo( "SIZE" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ( !$this->checkType() ) {
|
||||||
|
$this->stateInfo = $this->getStateInfo( "TYPE" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$folder = $this->getFolder();
|
||||||
|
|
||||||
|
if ( $folder === false ) {
|
||||||
|
$this->stateInfo = $this->getStateInfo( "DIR_ERROR" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->fullName = $folder . '/' . $this->getName();
|
||||||
|
|
||||||
|
if ( $this->stateInfo == $this->stateMap[ 0 ] ) {
|
||||||
|
if ( !move_uploaded_file( $file[ "tmp_name" ] , $this->fullName ) ) {
|
||||||
|
$this->stateInfo = $this->getStateInfo( "MOVE" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理base64编码的图片上传
|
||||||
|
* @param $base64Data
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
private function base64ToImage( $base64Data )
|
||||||
|
{
|
||||||
|
$img = base64_decode( $base64Data );
|
||||||
|
$this->fileName = time() . rand( 1 , 10000 ) . ".png";
|
||||||
|
$this->fullName = $this->getFolder() . '/' . $this->fileName;
|
||||||
|
if ( !file_put_contents( $this->fullName , $img ) ) {
|
||||||
|
$this->stateInfo = $this->getStateInfo( "IO" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$this->oriName = "";
|
||||||
|
$this->fileSize = strlen( $img );
|
||||||
|
$this->fileType = ".png";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取当前上传成功文件的各项信息
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getFileInfo()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
"originalName" => $this->oriName ,
|
||||||
|
"name" => $this->fileName ,
|
||||||
|
"url" => $this->fullName ,
|
||||||
|
"size" => $this->fileSize ,
|
||||||
|
"type" => $this->fileType ,
|
||||||
|
"state" => $this->stateInfo
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上传错误检查
|
||||||
|
* @param $errCode
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
private function getStateInfo( $errCode )
|
||||||
|
{
|
||||||
|
return !$this->stateMap[ $errCode ] ? $this->stateMap[ "UNKNOWN" ] : $this->stateMap[ $errCode ];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重命名文件
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
private function getName()
|
||||||
|
{
|
||||||
|
return $this->fileName = time() . rand( 1 , 10000 ) . $this->getFileExt();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件类型检测
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
private function checkType()
|
||||||
|
{
|
||||||
|
return in_array( $this->getFileExt() , $this->config[ "allowFiles" ] );
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件大小检测
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
private function checkSize()
|
||||||
|
{
|
||||||
|
return $this->fileSize <= ( $this->config[ "maxSize" ] * 1024 );
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取文件扩展名
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
private function getFileExt()
|
||||||
|
{
|
||||||
|
return strtolower( strrchr( $this->file[ "name" ] , '.' ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 按照日期自动创建存储文件夹
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
private function getFolder()
|
||||||
|
{
|
||||||
|
$pathStr = $this->config[ "savePath" ];
|
||||||
|
if ( strrchr( $pathStr , "/" ) != "/" ) {
|
||||||
|
$pathStr .= "/";
|
||||||
|
}
|
||||||
|
$pathStr .= date( "Ymd" );
|
||||||
|
if ( !file_exists( $pathStr ) ) {
|
||||||
|
if ( !mkdir( $pathStr , 0777 , true ) ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $pathStr;
|
||||||
|
}
|
||||||
|
}
|
||||||
14
public/static/libs/umeditor/php/getContent.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<script src="../third-party/jquery.min.js"></script>
|
||||||
|
<script src="../third-party/mathquill/mathquill.min.js"></script>
|
||||||
|
<link rel="stylesheet" href="../third-party/mathquill/mathquill.css"/>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
//获取数据
|
||||||
|
error_reporting(E_ERROR|E_WARNING);
|
||||||
|
$content = htmlspecialchars($_POST['myEditor']);
|
||||||
|
|
||||||
|
//存入数据库或者其他操作
|
||||||
|
|
||||||
|
//显示
|
||||||
|
echo "<div class='content'>".htmlspecialchars_decode($content)."</div>";
|
||||||