Skip to content

Commit

Permalink
一些小改进
Browse files Browse the repository at this point in the history
  • Loading branch information
andyluss committed Apr 24, 2015
1 parent 0b69af0 commit f7b3953
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
7 changes: 7 additions & 0 deletions lib/post/both/collections.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
date:
type: Date
label: '日期'
optional: true
autoValue: ->
if @isInsert
new Date()
Expand All @@ -89,3 +90,9 @@
optional: true
defaultValue: []

viewCount:
type: Number
label: '阅读数'
defaultValue: 0
optional: true

2 changes: 1 addition & 1 deletion modules/journey/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Journeys.attachSchema new SimpleSchema
type: Number
label: '级别'
optional: true
defaultValue: 1
defaultValue: 0
min: 0

peopleCount:
Expand Down
6 changes: 0 additions & 6 deletions modules/product/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,3 @@ Products.attachSchema new SimpleSchema
defaultValue: 100
min: 0
optional: true

viewCount:
type: Number
label: '阅读数'
defaultValue: 0
optional: true
9 changes: 0 additions & 9 deletions modules/profile/both/collections.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ Profiles.attachSchema new SimpleSchema
label: '用户'
regEx: SimpleSchema.RegEx.Id

picture:
type: String
optional:true
label: '照片'
autoform:
afFieldInput:
type: 'fileUpload'
collection: 'ProfilePictures'

avatar:
type: String
optional:true
Expand Down

0 comments on commit f7b3953

Please sign in to comment.