samplecms/framework 的完整后台。
/admin/login/create 创建用户
/admin/login/index 登录
数据库是mongodb
后台modules/content是自定义内容系统,里面列出了现有支持的字段类型。
在modules/content/models 中创建对应的文件,将在后台自动生成对应的内容类型。
并可以CRUD操作。
仅供学习使用
让网站开发变得容易,解救程序员!!!
samplecms/framework 的完整后台。
/admin/login/create 创建用户
/admin/login/index 登录
数据库是mongodb
后台modules/content是自定义内容系统,里面列出了现有支持的字段类型。
在modules/content/models 中创建对应的文件,将在后台自动生成对应的内容类型。
并可以CRUD操作。
仅供学习使用
其他方法,有待大家讨论
如果用户把一张图片上传N次,
系统只会记录一次,文件也只是被保存一次。
好处:
避免重复上传同样的文件。
相同文件直接秒传!
application/app.php
host 这个设置。
设置请查看 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=>'启用',
]
],
];
本程序在内部SVN开发,
我们将在新功能开发完成后,统一时间提交。
并修复GITHUB上提交的BUG。
一般周期可能为每周更新一次
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.