samplecms / core Goto Github PK
View Code? Open in Web Editor NEW让网站开发变得容易,解救程序员!!!
让网站开发变得容易,解救程序员!!!
设置请查看 application/app.php
编辑器使用 redactor
点击图片上传后,是否直接写入内容字段 ?
application/common/field/Post.php
中
public $field = [
'title'=>[
'label'=>'标题',
'element'=>'input',
],
'content'=>[
'label'=>'内容',
'element'=>'editor'
],
'files'=>[
'label'=>'图片',
'element'=>'upload',
'option'=>[
'call'=>"
$('.form-field-files img').click(function(){
console.log($(this).attr('src'));
redactor_content.insertHtml('<img src=\"'+$(this).attr('src')+'\" />');
});
",
]
],
'type'=>[
'label'=>'分类',
'element'=>'select',
'data'=>"Type::element_select",
],
'status'=>[
'label'=>'状态',
'element'=>'select',
'data'=>[
0=>'禁用',
1=>'启用',
]
],
];
application/app.php
host 这个设置。
本程序在内部SVN开发,
我们将在新功能开发完成后,统一时间提交。
并修复GITHUB上提交的BUG。
一般周期可能为每周更新一次
其他方法,有待大家讨论
如果用户把一张图片上传N次,
系统只会记录一次,文件也只是被保存一次。
好处:
避免重复上传同样的文件。
相同文件直接秒传!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.