├── test ├── karma │ └── karma.conf.js └── mocha │ ├── readme.txt │ └── data │ └── userTest.js ├── web ├── view │ ├── user │ │ ├── home.html │ │ ├── signin.html │ │ └── signup.html │ ├── home │ │ ├── error.html │ │ ├── donate.html │ │ └── about.html │ ├── shared │ │ └── scripts.html │ ├── layout_inner.html │ ├── footer │ │ └── footer.html │ ├── layout.html │ └── post │ │ ├── detail.html │ │ └── post_edit.html └── static │ ├── lib │ ├── bootstrap │ │ ├── 3.1.1 │ │ │ ├── less │ │ │ │ ├── mixins.css │ │ │ │ ├── variables.css │ │ │ │ ├── media.css │ │ │ │ ├── .csslintrc │ │ │ │ ├── component-animations.less │ │ │ │ ├── wells.less │ │ │ │ ├── breadcrumbs.less │ │ │ │ ├── close.less │ │ │ │ ├── thumbnails.less │ │ │ │ ├── utilities.less │ │ │ │ ├── jumbotron.less │ │ │ │ ├── bootstrap.less │ │ │ │ ├── media.less │ │ │ │ ├── pager.less │ │ │ │ ├── badges.less │ │ │ │ ├── labels.less │ │ │ │ ├── print.css │ │ │ │ ├── code.less │ │ │ │ ├── alerts.less │ │ │ │ ├── grid.less │ │ │ │ ├── progress-bars.less │ │ │ │ ├── print.less │ │ │ │ ├── pagination.less │ │ │ │ ├── responsive-utilities.less │ │ │ │ ├── tooltip.less │ │ │ │ └── scaffolding.less │ │ │ └── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ └── glyphicons-halflings-regular.woff │ │ └── notify │ │ │ └── 1.0.0 │ │ │ └── less │ │ │ ├── bootstrap-notify.less │ │ │ └── styles │ │ │ ├── alert-bangtidy.less │ │ │ ├── alert-notification-animations.css │ │ │ └── alert-bangtidy.css │ ├── w5cValidator │ │ ├── 2.0.0 │ │ │ ├── style.less │ │ │ └── style.css │ │ └── 1.0.0 │ │ │ ├── style.css │ │ │ └── style.less │ └── highlight │ │ └── 8.0 │ │ └── styles │ │ ├── pojoaque.jpg │ │ ├── school_book.png │ │ ├── brown_papersq.png │ │ ├── ascetic.css │ │ ├── mono-blue.css │ │ ├── tomorrow.css │ │ ├── paraiso.dark.css │ │ ├── paraiso.light.css │ │ ├── vs.css │ │ ├── tomorrow-night-bright.css │ │ ├── tomorrow-night-eighties.css │ │ ├── tomorrow-night.css │ │ ├── tomorrow-night-blue.css │ │ ├── ir_black.css │ │ ├── atelier-dune.dark.css │ │ ├── atelier-dune.light.css │ │ ├── atelier-heath.dark.css │ │ ├── atelier-heath.light.css │ │ ├── atelier-forest.dark.css │ │ ├── atelier-forest.light.css │ │ ├── atelier-seaside.dark.css │ │ ├── atelier-lakeside.dark.css │ │ ├── atelier-seaside.light.css │ │ ├── atelier-lakeside.light.css │ │ ├── solarized_dark.css │ │ ├── solarized_light.css │ │ ├── rainbow.css │ │ ├── pojoaque.css │ │ ├── foundation.css │ │ ├── dark.css │ │ ├── brown_paper.css │ │ ├── github.css │ │ ├── idea.css │ │ ├── zenburn.css │ │ ├── docco.css │ │ ├── far.css │ │ ├── magula.css │ │ ├── school_book.css │ │ ├── monokai.css │ │ ├── googlecode.css │ │ ├── sunburst.css │ │ └── monokai_sublime.css │ ├── fonts │ ├── font-awesome │ │ └── 4.0.3 │ │ │ ├── less │ │ │ ├── mixins.css │ │ │ ├── variables.css │ │ │ ├── fixed-width.less │ │ │ ├── core.less │ │ │ ├── bordered-pulled.less │ │ │ ├── rotated-flipped.less │ │ │ ├── larger.less │ │ │ ├── list.less │ │ │ ├── font-awesome.less │ │ │ ├── stacked.less │ │ │ ├── path.less │ │ │ ├── mixins.less │ │ │ └── spinning.less │ │ │ └── fonts │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ └── fontawesome-webfont.woff │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff │ ├── img │ ├── favicon.ico │ ├── angular-small.png │ ├── default_avatar.png │ └── pay_why520crazy.png │ ├── css │ └── less │ │ ├── user.less │ │ └── layout.less │ └── js │ ├── tpl │ └── common │ │ └── delete_confirm_modal.html │ ├── filter │ └── filter.js │ ├── controller │ ├── home.js │ └── user.js │ ├── status.js │ ├── directive │ └── directive.js │ └── main.js ├── server ├── config │ ├── index.js │ ├── production.confidential.simple.js │ ├── test.js │ ├── development.js │ ├── production.js │ └── config.js ├── controller │ ├── index.js │ ├── userCtrl.js │ └── postCtrl.js ├── data │ ├── model │ │ ├── schema.js │ │ ├── applySchema.js │ │ ├── userSchema.js │ │ └── postSchema.js │ ├── apply.js │ ├── base.js │ ├── index.js │ └── user.js ├── kits │ ├── index.js │ ├── status.js │ ├── logger.js │ ├── constant.js │ └── utils.js ├── auth.js ├── passport.js ├── handler.js └── api │ └── index.js ├── bin └── start.sh ├── .gitignore ├── LICENSE ├── package.json ├── README.md ├── gruntfile.js └── app.js /test/karma/karma.conf.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/view/user/home.html: -------------------------------------------------------------------------------- 1 | 个人主页 -------------------------------------------------------------------------------- /web/view/home/error.html: -------------------------------------------------------------------------------- 1 | 服务器似乎跑小差了 -------------------------------------------------------------------------------- /web/static/lib/bootstrap/3.1.1/less/mixins.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/static/fonts/font-awesome/4.0.3/less/mixins.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/static/lib/bootstrap/3.1.1/less/variables.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/static/fonts/font-awesome/4.0.3/less/variables.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /server/config/index.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require("./config"); -------------------------------------------------------------------------------- /web/static/lib/w5cValidator/2.0.0/style.less: -------------------------------------------------------------------------------- 1 | .w5c-error{ 2 | color: #b94a48; 3 | } -------------------------------------------------------------------------------- /web/static/lib/w5cValidator/2.0.0/style.css: -------------------------------------------------------------------------------- 1 | .w5c-error { 2 | color: #b94a48; 3 | } 4 | -------------------------------------------------------------------------------- /web/static/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/img/favicon.ico -------------------------------------------------------------------------------- /web/static/img/angular-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/img/angular-small.png -------------------------------------------------------------------------------- /web/static/img/default_avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/img/default_avatar.png -------------------------------------------------------------------------------- /web/static/img/pay_why520crazy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/img/pay_why520crazy.png -------------------------------------------------------------------------------- /bin/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This is a very simple example 3 | killall node 4 | cd /home/ng-nice 5 | NODE_ENV=production pm2 start app.js 6 | -------------------------------------------------------------------------------- /web/static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /web/static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /web/static/lib/highlight/8.0/styles/pojoaque.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/lib/highlight/8.0/styles/pojoaque.jpg -------------------------------------------------------------------------------- /web/static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /web/static/lib/highlight/8.0/styles/school_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/lib/highlight/8.0/styles/school_book.png -------------------------------------------------------------------------------- /web/static/lib/highlight/8.0/styles/brown_papersq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/lib/highlight/8.0/styles/brown_papersq.png -------------------------------------------------------------------------------- /web/static/fonts/font-awesome/4.0.3/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/fonts/font-awesome/4.0.3/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /web/static/fonts/font-awesome/4.0.3/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/fonts/font-awesome/4.0.3/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /web/static/fonts/font-awesome/4.0.3/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/fonts/font-awesome/4.0.3/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /web/static/fonts/font-awesome/4.0.3/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/fonts/font-awesome/4.0.3/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /web/static/lib/bootstrap/3.1.1/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/lib/bootstrap/3.1.1/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /web/static/lib/bootstrap/3.1.1/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/lib/bootstrap/3.1.1/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /web/static/lib/bootstrap/3.1.1/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angular-cn/ng-nice/HEAD/web/static/lib/bootstrap/3.1.1/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /test/mocha/readme.txt: -------------------------------------------------------------------------------- 1 | 单元测试框架mocha介绍: 1. 本地环境安装mocha:执行命令 npm install -g mocha; 2. 命令行切换到当前目录,执行 mocha XXX.js 命令执行XXX.js文件的单元测试,mocha * 执行所有文件的单元测试; 3. 更多 mocha 的信息,参照 http://visionmedia.github.io/mocha/。 -------------------------------------------------------------------------------- /web/static/fonts/font-awesome/4.0.3/less/fixed-width.less: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .@{fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /server/config/production.confidential.simple.js: -------------------------------------------------------------------------------- 1 | var config = { 2 | mongoServer : "mongodb://127.0.0.1/ngnicexxx", 3 | cookieSecret : "WOJIUSHINIUBI123456" 4 | }; 5 | 6 | module.exports = exports = config; 7 | -------------------------------------------------------------------------------- /server/controller/index.js: -------------------------------------------------------------------------------- 1 | /*global exports,require*/ (function () { "use strict"; module.exports = { home: require("./homeCtrl"), user : require("./userCtrl"), post : require("./postCtrl") }; })(); -------------------------------------------------------------------------------- /server/data/model/schema.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose'), Schema = mongoose.Schema; schemas = { Post : require("./postSchema"), User : require("./userSchema"), Apply: require("./applySchema") }; module.exports = schemas; -------------------------------------------------------------------------------- /server/kits/index.js: -------------------------------------------------------------------------------- 1 | var config = require("../config"); 2 | 3 | module.exports = exports = { 4 | status : require("./status"), 5 | utils : require("./utils"), 6 | constant: require("./constant"), 7 | logger : require("./logger")(config.logger) 8 | }; -------------------------------------------------------------------------------- /web/static/css/less/user.less: -------------------------------------------------------------------------------- 1 | .signin-panel { 2 | margin-top: 50px; 3 | 4 | form { 5 | width: 350px; 6 | @media (max-width : @screen-xs) { 7 | width: 90%; 8 | } 9 | margin: auto; 10 | .form-control{ 11 | height: 44px; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web/view/home/donate.html: -------------------------------------------------------------------------------- 1 |
如果你觉得NgNice站点对你有用,并且愿意以捐赠的方式资助我们继续为AngularJS社区作贡献,我们非常欢迎。
支付宝账号:why520crazy@163.com, 代收人:站长 why520crazy
用支付宝钱包可以直接扫描二维码捐赠:
NgNice站点是由一批AngularJS爱好者发起的,致力于打造一个AngularJS的学习和经验分享平台。
目前NgNice平台不对外开放注册功能,站内分享内容主要由NgNice官方团队进行维护,如果你也是AngularJS的爱好者,并且乐于分享你的经验给其他人,那就加入我们吧!
官方团队成员参见:点击查看团队成员。
<%=post.author.desc || "作者暂时没有描述"%>
25 |