parent
c4367d16cb
commit
d70c4e2ee6
@ -1,16 +0,0 @@ |
||||
Accounts.onEmailVerificationLink (token, done) -> |
||||
Accounts.verifyEmail token, (error) -> |
||||
if not error? |
||||
alert(t('Email_verified')) |
||||
|
||||
done() |
||||
|
||||
Accounts.onResetPasswordLink (token, done) -> |
||||
newPassword = prompt(t('New_password')) |
||||
Accounts.resetPassword token, newPassword, (error) -> |
||||
if error? |
||||
console.log error |
||||
alert(t('Error_changing_password')) |
||||
else |
||||
alert('Password_changed') |
||||
done() |
@ -0,0 +1,39 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:rocketchat-ui-account', |
||||
version: '0.0.1', |
||||
// Brief, one-line summary of the package.
|
||||
summary: '', |
||||
// URL to the Git repository containing the source code for this package.
|
||||
git: '', |
||||
// By default, Meteor will default to using README.md for documentation.
|
||||
// To avoid submitting documentation, set this field to null.
|
||||
documentation: 'README.md' |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.versionsFrom('1.2.1'); |
||||
|
||||
api.use([ |
||||
'ecmascript', |
||||
'templating', |
||||
'coffeescript', |
||||
'underscore', |
||||
'rocketchat:lib@0.0.1' |
||||
]); |
||||
|
||||
api.addFiles('account/account.html', 'client'); |
||||
api.addFiles('account/accountFlex.html', 'client'); |
||||
api.addFiles('account/accountPreferences.html', 'client'); |
||||
api.addFiles('account/accountProfile.html', 'client'); |
||||
api.addFiles('account/avatar/avatar.html', 'client'); |
||||
api.addFiles('account/avatar/prompt.html', 'client'); |
||||
|
||||
api.addFiles('account/account.coffee', 'client'); |
||||
api.addFiles('account/accountFlex.coffee', 'client'); |
||||
api.addFiles('account/accountPreferences.coffee', 'client'); |
||||
api.addFiles('account/accountProfile.coffee', 'client'); |
||||
api.addFiles('account/avatar/avatar.coffee', 'client'); |
||||
api.addFiles('account/avatar/prompt.coffee', 'client'); |
||||
|
||||
// api.addAssets('styles/side-nav.less', 'client');
|
||||
}); |
@ -0,0 +1,5 @@ |
||||
// Write your tests here!
|
||||
// Here is an example.
|
||||
Tinytest.add('example', function (test) { |
||||
test.equal(true, true); |
||||
}); |
@ -0,0 +1 @@ |
||||
// Write your package code here!
|
@ -0,0 +1,54 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:rocketchat-ui-admin', |
||||
version: '0.0.1', |
||||
// Brief, one-line summary of the package.
|
||||
summary: '', |
||||
// URL to the Git repository containing the source code for this package.
|
||||
git: '', |
||||
// By default, Meteor will default to using README.md for documentation.
|
||||
// To avoid submitting documentation, set this field to null.
|
||||
documentation: 'README.md' |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.versionsFrom('1.2.1'); |
||||
|
||||
api.use([ |
||||
'ecmascript', |
||||
'templating', |
||||
'coffeescript', |
||||
'underscore', |
||||
'rocketchat:lib@0.0.1' |
||||
]); |
||||
|
||||
// template files
|
||||
api.addFiles('admin/admin.html', 'client'); |
||||
api.addFiles('admin/adminFlex.html', 'client'); |
||||
api.addFiles('admin/adminStatistics.html', 'client'); |
||||
|
||||
api.addFiles('admin/rooms/adminRoomInfo.html', 'client'); |
||||
api.addFiles('admin/rooms/adminRooms.html', 'client'); |
||||
|
||||
api.addFiles('admin/users/adminInviteUser.html', 'client'); |
||||
api.addFiles('admin/users/adminUserChannels.html', 'client'); |
||||
api.addFiles('admin/users/adminUserEdit.html', 'client'); |
||||
api.addFiles('admin/users/adminUserInfo.html', 'client'); |
||||
api.addFiles('admin/users/adminUsers.html', 'client'); |
||||
|
||||
// coffee files
|
||||
api.addFiles('admin/admin.coffee', 'client'); |
||||
api.addFiles('admin/adminFlex.coffee', 'client'); |
||||
api.addFiles('admin/adminStatistics.coffee', 'client'); |
||||
|
||||
api.addFiles('admin/rooms/adminRoomInfo.coffee', 'client'); |
||||
api.addFiles('admin/rooms/adminRooms.coffee', 'client'); |
||||
|
||||
api.addFiles('admin/users/adminInviteUser.coffee', 'client'); |
||||
api.addFiles('admin/users/adminUserChannels.coffee', 'client'); |
||||
api.addFiles('admin/users/adminUserEdit.coffee', 'client'); |
||||
api.addFiles('admin/users/adminUserInfo.coffee', 'client'); |
||||
api.addFiles('admin/users/adminUsers.coffee', 'client'); |
||||
|
||||
|
||||
// api.addAssets('styles/side-nav.less', 'client');
|
||||
}); |
@ -0,0 +1,5 @@ |
||||
// Write your tests here!
|
||||
// Here is an example.
|
||||
Tinytest.add('example', function (test) { |
||||
test.equal(true, true); |
||||
}); |
@ -0,0 +1 @@ |
||||
// Write your package code here!
|
@ -0,0 +1,39 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:rocketchat-ui-login', |
||||
version: '0.0.1', |
||||
// Brief, one-line summary of the package.
|
||||
summary: '', |
||||
// URL to the Git repository containing the source code for this package.
|
||||
git: '', |
||||
// By default, Meteor will default to using README.md for documentation.
|
||||
// To avoid submitting documentation, set this field to null.
|
||||
documentation: 'README.md' |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.versionsFrom('1.2.1'); |
||||
|
||||
api.use([ |
||||
'ecmascript', |
||||
'templating', |
||||
'coffeescript', |
||||
'underscore', |
||||
'rocketchat:lib@0.0.1' |
||||
]); |
||||
|
||||
api.addFiles('login/footer.html', 'client'); |
||||
api.addFiles('login/form.html', 'client'); |
||||
api.addFiles('login/header.html', 'client'); |
||||
api.addFiles('login/intro.html', 'client'); |
||||
api.addFiles('login/layout.html', 'client'); |
||||
api.addFiles('login/services.html', 'client'); |
||||
api.addFiles('login/social.html', 'client'); |
||||
|
||||
api.addFiles('login/footer.coffee', 'client'); |
||||
api.addFiles('login/form.coffee', 'client'); |
||||
api.addFiles('login/header.coffee', 'client'); |
||||
api.addFiles('login/services.coffee', 'client'); |
||||
api.addFiles('login/social.coffee', 'client'); |
||||
|
||||
// api.addAssets('styles/side-nav.less', 'client');
|
||||
}); |
@ -0,0 +1 @@ |
||||
node_modules |
@ -0,0 +1,7 @@ |
||||
This directory and the files immediately inside it are automatically generated |
||||
when you change this package's NPM dependencies. Commit the files in this |
||||
directory (npm-shrinkwrap.json, .gitignore, and this README) to source control |
||||
so that others run the same versions of sub-dependencies. |
||||
|
||||
You should NOT check in the node_modules directory that Meteor automatically |
||||
creates; if you are using git, the .gitignore file tells git to ignore it. |
@ -0,0 +1,285 @@ |
||||
{ |
||||
"dependencies": { |
||||
"less": { |
||||
"version": "https://github.com/meteor/less.js/tarball/8130849eb3d7f0ecf0ca8d0af7c4207b0442e3f6", |
||||
"dependencies": { |
||||
"errno": { |
||||
"version": "0.1.4", |
||||
"dependencies": { |
||||
"prr": { |
||||
"version": "0.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"graceful-fs": { |
||||
"version": "3.0.8" |
||||
}, |
||||
"image-size": { |
||||
"version": "0.3.5" |
||||
}, |
||||
"mime": { |
||||
"version": "1.3.4" |
||||
}, |
||||
"mkdirp": { |
||||
"version": "0.5.1", |
||||
"dependencies": { |
||||
"minimist": { |
||||
"version": "0.0.8" |
||||
} |
||||
} |
||||
}, |
||||
"promise": { |
||||
"version": "6.1.0", |
||||
"dependencies": { |
||||
"asap": { |
||||
"version": "1.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"request": { |
||||
"version": "2.65.0", |
||||
"dependencies": { |
||||
"bl": { |
||||
"version": "1.0.0", |
||||
"dependencies": { |
||||
"readable-stream": { |
||||
"version": "2.0.4", |
||||
"dependencies": { |
||||
"core-util-is": { |
||||
"version": "1.0.1" |
||||
}, |
||||
"inherits": { |
||||
"version": "2.0.1" |
||||
}, |
||||
"isarray": { |
||||
"version": "0.0.1" |
||||
}, |
||||
"process-nextick-args": { |
||||
"version": "1.0.3" |
||||
}, |
||||
"string_decoder": { |
||||
"version": "0.10.31" |
||||
}, |
||||
"util-deprecate": { |
||||
"version": "1.0.2" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"caseless": { |
||||
"version": "0.11.0" |
||||
}, |
||||
"extend": { |
||||
"version": "3.0.0" |
||||
}, |
||||
"forever-agent": { |
||||
"version": "0.6.1" |
||||
}, |
||||
"form-data": { |
||||
"version": "1.0.0-rc3", |
||||
"dependencies": { |
||||
"async": { |
||||
"version": "1.5.0" |
||||
} |
||||
} |
||||
}, |
||||
"json-stringify-safe": { |
||||
"version": "5.0.1" |
||||
}, |
||||
"mime-types": { |
||||
"version": "2.1.7", |
||||
"dependencies": { |
||||
"mime-db": { |
||||
"version": "1.19.0" |
||||
} |
||||
} |
||||
}, |
||||
"node-uuid": { |
||||
"version": "1.4.7" |
||||
}, |
||||
"qs": { |
||||
"version": "5.2.0" |
||||
}, |
||||
"tunnel-agent": { |
||||
"version": "0.4.1" |
||||
}, |
||||
"tough-cookie": { |
||||
"version": "2.2.1" |
||||
}, |
||||
"http-signature": { |
||||
"version": "0.11.0", |
||||
"dependencies": { |
||||
"assert-plus": { |
||||
"version": "0.1.5" |
||||
}, |
||||
"asn1": { |
||||
"version": "0.1.11" |
||||
}, |
||||
"ctype": { |
||||
"version": "0.5.3" |
||||
} |
||||
} |
||||
}, |
||||
"oauth-sign": { |
||||
"version": "0.8.0" |
||||
}, |
||||
"hawk": { |
||||
"version": "3.1.1", |
||||
"dependencies": { |
||||
"hoek": { |
||||
"version": "2.16.3" |
||||
}, |
||||
"boom": { |
||||
"version": "2.10.1" |
||||
}, |
||||
"cryptiles": { |
||||
"version": "2.0.5" |
||||
}, |
||||
"sntp": { |
||||
"version": "1.0.9" |
||||
} |
||||
} |
||||
}, |
||||
"aws-sign2": { |
||||
"version": "0.6.0" |
||||
}, |
||||
"stringstream": { |
||||
"version": "0.0.5" |
||||
}, |
||||
"combined-stream": { |
||||
"version": "1.0.5", |
||||
"dependencies": { |
||||
"delayed-stream": { |
||||
"version": "1.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"isstream": { |
||||
"version": "0.1.2" |
||||
}, |
||||
"har-validator": { |
||||
"version": "2.0.2", |
||||
"dependencies": { |
||||
"chalk": { |
||||
"version": "1.1.1", |
||||
"dependencies": { |
||||
"ansi-styles": { |
||||
"version": "2.1.0" |
||||
}, |
||||
"escape-string-regexp": { |
||||
"version": "1.0.3" |
||||
}, |
||||
"has-ansi": { |
||||
"version": "2.0.0", |
||||
"dependencies": { |
||||
"ansi-regex": { |
||||
"version": "2.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"strip-ansi": { |
||||
"version": "3.0.0", |
||||
"dependencies": { |
||||
"ansi-regex": { |
||||
"version": "2.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"supports-color": { |
||||
"version": "2.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"commander": { |
||||
"version": "2.9.0", |
||||
"dependencies": { |
||||
"graceful-readlink": { |
||||
"version": "1.0.1" |
||||
} |
||||
} |
||||
}, |
||||
"is-my-json-valid": { |
||||
"version": "2.12.3", |
||||
"dependencies": { |
||||
"generate-function": { |
||||
"version": "2.0.0" |
||||
}, |
||||
"generate-object-property": { |
||||
"version": "1.2.0", |
||||
"dependencies": { |
||||
"is-property": { |
||||
"version": "1.0.2" |
||||
} |
||||
} |
||||
}, |
||||
"jsonpointer": { |
||||
"version": "2.0.0" |
||||
}, |
||||
"xtend": { |
||||
"version": "4.0.1" |
||||
} |
||||
} |
||||
}, |
||||
"pinkie-promise": { |
||||
"version": "1.0.0", |
||||
"dependencies": { |
||||
"pinkie": { |
||||
"version": "1.0.0" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"source-map": { |
||||
"version": "0.4.4", |
||||
"dependencies": { |
||||
"amdefine": { |
||||
"version": "1.0.0" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"less-plugin-autoprefix": { |
||||
"version": "1.4.2", |
||||
"dependencies": { |
||||
"autoprefixer-core": { |
||||
"version": "5.2.1", |
||||
"dependencies": { |
||||
"browserslist": { |
||||
"version": "0.4.0" |
||||
}, |
||||
"num2fraction": { |
||||
"version": "1.2.2" |
||||
}, |
||||
"caniuse-db": { |
||||
"version": "1.0.30000362" |
||||
} |
||||
} |
||||
}, |
||||
"postcss": { |
||||
"version": "4.1.16", |
||||
"dependencies": { |
||||
"es6-promise": { |
||||
"version": "2.3.0" |
||||
}, |
||||
"source-map": { |
||||
"version": "0.4.4", |
||||
"dependencies": { |
||||
"amdefine": { |
||||
"version": "1.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"js-base64": { |
||||
"version": "2.1.9" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,54 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:rocketchat-ui-sidenav', |
||||
version: '0.1.0', |
||||
// Brief, one-line summary of the package.
|
||||
summary: '', |
||||
// URL to the Git repository containing the source code for this package.
|
||||
git: '', |
||||
// By default, Meteor will default to using README.md for documentation.
|
||||
// To avoid submitting documentation, set this field to null.
|
||||
documentation: 'README.md' |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.versionsFrom('1.2.1'); |
||||
|
||||
api.use([ |
||||
'ecmascript', |
||||
'templating', |
||||
'coffeescript', |
||||
'underscore', |
||||
'rocketchat:lib@0.0.1' |
||||
]); |
||||
|
||||
api.addFiles('side-nav/channels.html', 'client'); |
||||
api.addFiles('side-nav/chatRoomItem.html', 'client'); |
||||
api.addFiles('side-nav/createChannelFlex.html', 'client'); |
||||
api.addFiles('side-nav/directMessages.html', 'client'); |
||||
api.addFiles('side-nav/listChannelsFlex.html', 'client'); |
||||
api.addFiles('side-nav/listPrivateGroupsFlex.html', 'client'); |
||||
api.addFiles('side-nav/privateGroups.html', 'client'); |
||||
api.addFiles('side-nav/privateGroupsFlex.html', 'client'); |
||||
api.addFiles('side-nav/sideNav.html', 'client'); |
||||
api.addFiles('side-nav/starredRooms.html', 'client'); |
||||
api.addFiles('side-nav/unreadRooms.html', 'client'); |
||||
api.addFiles('side-nav/userStatus.html', 'client'); |
||||
|
||||
api.addFiles('side-nav/channels.coffee', 'client'); |
||||
api.addFiles('side-nav/chatRoomItem.coffee', 'client'); |
||||
api.addFiles('side-nav/createChannelFlex.coffee', 'client'); |
||||
api.addFiles('side-nav/directMessages.coffee', 'client'); |
||||
api.addFiles('side-nav/listChannelsFlex.coffee', 'client'); |
||||
api.addFiles('side-nav/listPrivateGroupsFlex.coffee', 'client'); |
||||
api.addFiles('side-nav/privateGroups.coffee', 'client'); |
||||
api.addFiles('side-nav/privateGroupsFlex.coffee', 'client'); |
||||
api.addFiles('side-nav/sideNav.coffee', 'client'); |
||||
api.addFiles('side-nav/starredRooms.coffee', 'client'); |
||||
api.addFiles('side-nav/unreadRooms.coffee', 'client'); |
||||
|
||||
}); |
||||
|
||||
Npm.depends({ |
||||
'less': 'https://github.com/meteor/less.js/tarball/8130849eb3d7f0ecf0ca8d0af7c4207b0442e3f6', |
||||
'less-plugin-autoprefix': '1.4.2' |
||||
}); |
@ -0,0 +1,17 @@ |
||||
Meteor.startup -> |
||||
Accounts.onEmailVerificationLink (token, done) -> |
||||
Accounts.verifyEmail token, (error) -> |
||||
if not error? |
||||
alert(t('Email_verified')) |
||||
|
||||
done() |
||||
|
||||
Accounts.onResetPasswordLink (token, done) -> |
||||
newPassword = prompt(t('New_password')) |
||||
Accounts.resetPassword token, newPassword, (error) -> |
||||
if error? |
||||
console.log error |
||||
alert(t('Error_changing_password')) |
||||
else |
||||
alert('Password_changed') |
||||
done() |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue