Coder Social home page Coder Social logo

piper's Introduction

piper

Install

npm install

Phantomjs

因为网络问题,安装 prerender-spa-plugin 插件的依赖 phantomjs 可能会报错,可以自己下载 phantomjs 安装,并加入到系统的 PATH

Config

开始开发之前,请确认安装了 Mysql 服务,并创建名为 piper 的数据库

项目的范例配置位于 ./server/config.sample.js,复制并重命名为 ./server/config.js

cp ./server/config.sample.js ./server/config.js

用自己喜欢的编辑器修改 ./server/config.js, 可修改 Mysql qiniu opads 等配置

Develop

npm run dev

A message about px to rem

// `px` is converted to `rem`
.convert {
    font-size: 16px; // converted to 1rem
}

// `Px` or `PX` is ignored by `postcss-pxtorem` but still accepted by browsers
.ignore {
    border: 1Px solid; // ignored
    border-width: 2PX; // ignored
}

TODO

  • api server
  • preview mode
  • swipe auto get image height
  • publish html
  • prerender? => prerender
  • 编辑器页面判断是否有数据变更
  • 图片上传
  • css 导出成文件?
  • 倒计时组件
  • 操作日志
  • 页面发布到CDN
  • webpack code split lazy load
  • 增加活动的一些全局属性,比如背景图,分享信息等
  • property 拆分的更细
  • property 数据校验
  • modules 数据更新的方式(目前的不对)
  • property 的 px 需要转换到 rem
  • 添加 布局 组件,实现布局内的子元素可相对定位
  • 数据分页
  • 保存发布的时候对页面进行截图当作封面
  • 增加页面已添加模块列表
  • 按钮组件的配置属性移出data
  • 用户系统/权限?接入CTX
  • 更多的 modules 组件
  • 更多的 property 组件
  • ...

Issues

  • store cache error
  • hot reload not work
  • 编辑器页面和预览页面的 rem 显示 bug
  • px2rem bugfix
  • 拖拽模块导致数据还原
  • webpack performance warning
  • publish 后 css 重复的bug
  • 判断是否有数据修改的方法不准确
  • 倒计时组件时间数据保存bug
  • src 代码自动编译可能会导致 nodemoon watchr 报错

piper's People

Contributors

fireyy avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.