Code Monkey home page Code Monkey logo

cnodeapp's Introduction

antd-mobile[cnode]

基于 https://github.com/dianjie/cnode webapp版源码做了一点小修改而出来的app

webapp版:线上访问

app下载:下载地址

实现功能:

  1. 登录
  2. 获取主题
  3. 主题详情
  4. 新建主题
  5. 编辑主题
  6. 收藏主题
  7. 取消主题
  8. 用户所收藏的主题
  9. 新建评论
  10. 为评论点赞
  11. 用户详情
  12. 消息列表(标记全部已读)

下载源码

git clone https://github.com/dianjie/cnodeapp.git

添加平台

cordova platform add android

安装cordova插件(添加平台时没自动安装则自行安装)

cordova plugin add cordova-plugin-whitelist && cordova plugin add cordova-plugin-splashscreen && cordova plugin add cordova-hot-code-push-plugin && cordova plugin add phonegap-plugin-barcodescanner && cordova plugin add cordova-plugin-inappbrowser && cordova plugin add cordova-plugin-device && cordova plugin add cordova-plugin-network-information
  • cordova-hot-code-push-plugin只是为了处理代码热更新(具体使用看官方文档,其他依赖自行安装)

安装依赖

npm install

开发测试

npm start

发布代码

npm run build
  • 发布代码后需替换www/style/indxe.css的字体文件//at.alicdn.com/t/全部替换成../lib/antd-mobile/(找不到插件替换。。[黑脸。黑脸])

处理热更新

cordova-hcp build
  • 在corodva项目根目录下执行,生成清单文件
  • 没有则自行安装

修改www文件夹下的chcp.json

原本文件大概是这样的:

{
  "autogenerated": true,
  "release": "2016.11.14-18.02.04"
}

添加一点东西:

{
  "autogenerated": true,
  "release": "2016.11.14-18.02.04",
  "update": "start",
  "content_url": "http://jjboom.net/cnodeApp"
}

具体看官方文档!! 修改content_url地址也需要修改config.xml下的<config-file url="http://jjboom.net/cnodeApp/chcp.json" />地址!!!

打包外壳

cordova build android

更新记录

2016-12-2更新问题

  • 双击退出app
  • 文章列表点击修改

2016-11-20更新问题

  • 列表查看位置记录
  • 消息查看回复定位
  • 域外链接app内能浏览
  • 省流量处理
  • 静态资源归类

cnodeapp's People

Contributors

dianjie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.