lanceli / cnodejs-ionic Goto Github PK
View Code? Open in Web Editor NEWThe mobile app of https://cnodejs.org made by Ionic 1.x, web demo http://lanceli.com/cnodejs-ionic
License: MIT License
The mobile app of https://cnodejs.org made by Ionic 1.x, web demo http://lanceli.com/cnodejs-ionic
License: MIT License
在状态栏中一直提示这个东东
设备是iphone6sp
之前是好使的,今天突然发现收不到推送了
首次点击登录时
非首次登录不再提示
之后我们社区不打算提供的收藏功能,麻烦应用检查一下是否有接触到相关的功能,如果有的话,可以全部去掉。
server上运行没有问题
执行 grunt run:ios,返回
** BUILD SUCCEEDED **
--devicetypeid was not specified, using first available device: Apple Watch - 38mm.
An error was encountered processing the command (domain=LaunchServicesError, code=0):
The operation couldn’t be completed. (LaunchServicesError error 0.),好像是运行在AppleWatch模拟器上了,无法解决
试着用xcode7打开,运行后模拟器一直显示在Launch Screen上
log
2015-10-09 11:45:29.326 CNodeJs[17186:131152] Multi-tasking -> Device: YES, App: YES
2015-10-09 11:45:29.332 CNodeJs[17186:131152] Unlimited access to network resources
2015-10-09 11:45:29.335 CNodeJs[17186:131152]
Started backup to iCloud! Please be careful.
Your application might rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines"
You could find it at the following address https://developer.apple.com/icloud/documentation/data-storage/ .
2015-10-09 11:45:29.643 CNodeJs[17186:131152] [CDVTimer][splashscreen] 198.056996ms
2015-10-09 11:45:29.652 CNodeJs[17186:131152] [CDVTimer][statusbar] 8.543968ms
2015-10-09 11:45:29.652 CNodeJs[17186:131152] [CDVTimer][keyboard] 0.155985ms
2015-10-09 11:45:29.652 CNodeJs[17186:131152] [CDVTimer][TotalPluginStartup] 207.367003ms
2015-10-09 11:45:29.688 CNodeJs[17186:131152] Resetting plugins due to page load.
2015-10-09 11:45:29.844 CNodeJs[17186:131152] Finished load of: file:///Users/abc/Library/Developer/CoreSimulator/Devices/BF30782A-A87F-4D5A-8A4E-1B63DA3EA5A5/data/Containers/Bundle/Application/644AAA9F-72AF-4FE6-8ECF-C1AD0ED15A10/CNodeJs.app/www/index.html#/topics/all
2015-10-09 11:45:30.252 CNodeJs[17186:131152] CDVPlugin class CDVDevice (pluginName: Device) does not exist.
2015-10-09 11:45:30.252 CNodeJs[17186:131152] ERROR: Plugin 'Device' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2015-10-09 11:45:30.252 CNodeJs[17186:131152] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
"Device174012649",
"Device",
"getDeviceInfo",
[
]
]
发布话题时可否增加图片上传功能?
我使用6plus,当我点进贴子的详细,如果要返回列表页的话,想要按到返回按钮很困难,我又不想总是去使用home键,加个swipe事件吧.
本来我是想自己去添加 , 按照你的doc,用浏览器调试时,跨域你是怎么解决的?
Current working directory is not a Cordova-based project.
如题
点击登录按钮报错,下面是chrome的log:
TypeError: Cannot read property 'barcodeScanner' of undefined
at n.b.login (scripts.js:1)
at vendor.js:4
at vendor.js:13
at n.$eval (vendor.js:3)
at n.$apply (vendor.js:3)
at HTMLElement. (vendor.js:13)
at HTMLElement.Ma.c (vendor.js:1)
at c (vendor.js:6)
at b (vendor.js:6)
at HTMLDocument.f (vendor.js:6)
当点赞一次别人的回复后,再此点击那个回复,弹出的ActionSheet上的按钮上还是显示”赞“,应该显示”已赞“。也就说 下面的已赞逻辑永远走不到
//cnodejs-ionic/app/js/controllers/topic.js
$log.debug('action reply:', reply);
var upLabel = '赞';
// detect if current user already do up
if (reply.ups.indexOf(currentUser.id) !== -1) {
upLabel = '已赞';
}
var replyContent = '@' + reply.author.loginname;
$ionicActionSheet.show({
原因好像是reply.ups.push('') 应该push(currentUser.id)
//cnodejs-ionic/app/js/services/topic.js
upReply: function(replyId) {
var currentUser = User.getCurrentUser();
return resource.upReply({
replyId: replyId,
accesstoken: currentUser.accesstoken
}, null, function(response) {
if (response.success) {
angular.forEach(topic.replies, function(reply, key) {
if (reply.id === replyId) {
if (response.action === 'up') {
reply.ups.push('');
} else {
reply.ups.pop();
}
我看了你的JS源码,在读取数据和写入数据都是请求https://cnodejs.org/api/v1接口的,我在本机是localhost 应该算是跨域请求了,不过我没见你在JS里面做了什么特别处理,你是怎么处理跨域的?
不是说gulp更有爱么?
我弱弱地问下程序如何在github.io 上部署?不是只能部署静态的介绍页面么?github.io/www/路径怎么设置?我部署的是访问不到的。。。
Installing "cordova-plugin-badge" for android
Failed to install 'cordova-plugin-badge':CordovaError: Plugin doesn't support this project's cordova-android version. cordova-android: 3.5.1, failed version requirement: >=4
at checkEngines (/home/lenzhao/dev/ionic/cnodejs-ionic/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:117:29)
at _fulfilled (/home/lenzhao/dev/ionic/cnodejs-ionic/node_modules/cordova/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/home/lenzhao/dev/ionic/cnodejs-ionic/node_modules/cordova/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/home/lenzhao/dev/ionic/cnodejs-ionic/node_modules/cordova/node_modules/q/q.js:760:13)
at /home/lenzhao/dev/ionic/cnodejs-ionic/node_modules/cordova/node_modules/q/q.js:574:44
at flush (/home/lenzhao/dev/ionic/cnodejs-ionic/node_modules/cordova/node_modules/q/q.js:108:17)
at nextTickCallbackWith0Args (node.js:415:9)
at process._tickCallback (node.js:344:13)
Plugin doesn't support this project's cordova-android version. cordova-android: 3.5.1, failed version requirement: >=4
Warning: Task "platform:add:android" failed. Use --force to continue.
Aborted due to warnings.
bower extract ionic#v1.0.0-beta.14 archive.tar.gz
bower invalid-meta ionic is missing "main" entry in bower.json
bower invalid-meta ionic is missing "ignore" entry in bower.json
bower EPERM EPERM, unlink 'C:\Users\ADMINI~1\AppData\Local\Temp\W61-2013
0902QAR-Administrator\bower\ionic-1940-N9zPzr\archive.tar.gz'
Stack trace:
Error: EPERM, unlink 'C:\Users\ADMINI~1\AppData\Local\Temp\W61-20130902QAR-Admin
istrator\bower\ionic-1940-N9zPzr\archive.tar.gz'
请明白的说一下,大概啥意思。
C:\cnodejsIonic>grunt serve --force
Running "serve" task
Running "clean:dist" (clean) task
Cleaning .tmp...OK
Cleaning www/css...OK
Cleaning www/fonts...OK
Cleaning www/img...OK
Cleaning www/index.html...OK
Cleaning www/js...OK
Cleaning www/lib...OK
Cleaning www/templates...OK
Running "clean:server" (clean) task
Running "ngconstant:development" (ngconstant) task
Creating module cnodejs.config at app/js/config.js...OK
Running "wiredep:app" (wiredep) task
Running "wiredep:sass" (wiredep) task
Running "concurrent:server" (concurrent) task
Running "copy:styles" (copy) task
Done, without errors.
Running "copy:vendor" (copy) task
Done, without errors.
Running "copy:fonts" (copy) task
Done, without errors.
Running "compass:server" (compass) task
directory .tmp/css
write .tmp/css/main.css (0.03s)
Done, without errors.
Running "autoprefixer:dist" (autoprefixer) task
Prefixed file ".tmp/css/main.css" created.
Running "newer:copy:app" (newer) task
Running "copy:app" (copy) task
Created 35 directories, copied 250 files
Running "newer-postrun:copy:app:1:C:\java\mygit\cnodejsIonic\node_modules\grunt-newer.cache" (newer-postrun) task
Running "newer:copy:tmp" (newer) task
Running "copy:tmp" (copy) task
Copied 1 files
Running "newer-postrun:copy:tmp:2:C:\java\mygit\cnodejsIonic\node_modules\grunt-newer.cache" (newer-postrun) task
Running "concurrent:ionic" (concurrent) task
Running "watch" taskRunning "ionic:serve" (ionic) task
Waiting...Warning: undefined is not a function Used --force, continuing.
Done, but with warnings.
Execution Time (2015-01-22 10:07:25 UTC)
loading tasks 4ms ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 50%
ionic:serve 4ms ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 50%
Total 8ms
Uncaught Error: [$injector:unpr] Unknown provider: $$qProvider <- $$q <- $animate <- $compile
可否简单介绍下,win7下一直无法跑起来,各种错误,另外8010端口在哪里配置?
代码没发运行,compass没发安装上,各种问题
CNode 点击 意见反馈
闪退
IOS 9.3.1
CNode当前版本 2.0.1
难道一定需要 wifi 环境?
执行grunt platform:add:android报错了
报错信息如下
~/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while listing Android targets
之前,有一次时可以的。
后来提示sdk需要22版本,故升级了一下,到这一步就不可以了。
使用ionic platform add android
可以执行成功,可是 执行grunt build:android
,会报找不到资源文件。
我的cnode社区密码一直没改但上不去了。召回密码说我的邮箱没有找到。能帮我找回我的账号吗?
这里是ionic官方blog的crosswalk教程
不过试过之后发现安装包变得很大,20多M,不过确实能够带来一些性能提升
我这边看后台日志推送是成功的,但是我的手机没有收到推送。
希望作者能增加iOS的原声分享支持哦(虽然不知道ionic能不能做到),像自己多使用pocket和pinboard,总喜欢把文章保存到pocket里面去。
Something like this? https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin
求解
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.