Commit Graph

1139 Commits

Author SHA1 Message Date
Juan Cruz Viotti
3db13f6329 Move patterns to resin/ui 2014-11-26 13:29:19 -04:00
Juan Cruz Viotti
67ade4bf12 Move widgets to resin/ui module 2014-11-26 13:26:01 -04:00
Juan Cruz Viotti
ce8b11004c Move table to widget module 2014-11-26 13:20:56 -04:00
Juan Cruz Viotti
bc11b305b2 Move device to resin module 2014-11-26 13:12:39 -04:00
Juan Cruz Viotti
ff07764b39 Move auth to resin module 2014-11-26 13:02:22 -04:00
Juan Cruz Viotti
64cb1520f6 Move data to resin module 2014-11-26 12:56:52 -04:00
Juan Cruz Viotti
1736d8a759 Move token to resin module 2014-11-26 12:42:10 -04:00
Juan Cruz Viotti
edcee1c9cf Move log and errors to resin module 2014-11-26 12:38:02 -04:00
Juan Cruz Viotti
8b81fbdbbd Move models to resin 2014-11-26 12:15:40 -04:00
Juan Cruz Viotti
698ddd168c Move server to resin module 2014-11-26 12:07:10 -04:00
Juan Cruz Viotti
af00bd1faf Improve error support 2014-11-26 11:39:58 -04:00
Juan Cruz Viotti
76e92fea22 Fix authHooks test suite 2014-11-26 09:19:02 -04:00
Juan Cruz Viotti
d4310bf970 Implement connection.parseConnectionParameters 2014-11-25 13:50:50 -04:00
Juan Cruz Viotti
ea13f7e11e Test failIfNotLoggedIn auth hook 2014-11-25 09:37:53 -04:00
Juan Cruz Viotti
a6099b227b Require internet connection before attempting to use server module 2014-11-25 09:02:50 -04:00
Juan Cruz Viotti
927b7bc0eb Make use of errors.NotFound 2014-11-24 14:48:16 -04:00
Juan Cruz Viotti
86548fc3d2 Fix typo in constructor 2014-11-24 14:41:16 -04:00
Juan Cruz Viotti
5549a2bd9e Make use of errors.handle() everywhere 2014-11-24 14:08:58 -04:00
Juan Cruz Viotti
90cb463390 Implement errors module 2014-11-24 14:08:51 -04:00
Juan Cruz Viotti
cbf7039fca Remove unnecessary fat arrow 2014-11-24 13:40:56 -04:00
Juan Cruz Viotti
e05b149a0e Return promise rejection to prevent Bluebird from complaining 2014-11-24 13:28:44 -04:00
Juan Cruz Viotti
1165113240 Prevent some undefined js errors 2014-11-24 13:27:15 -04:00
Juan Cruz Viotti
12fc2e3bfb Table: Prevent map from being called if contents is undefined 2014-11-24 13:18:35 -04:00
Juan Cruz Viotti
b9d5b0fd59 Implement env:rm command 2014-11-24 13:00:36 -04:00
Juan Cruz Viotti
7988b0cbbe Allow increasing verbosity for envs command 2014-11-24 12:43:37 -04:00
Juan Cruz Viotti
a8a78f0749 Implement envs command 2014-11-24 12:12:12 -04:00
Juan Cruz Viotti
79f7d23f35 Move /blink to config 2014-11-24 11:40:51 -04:00
Juan Cruz Viotti
f0e25589cd Add non interactive support for app:create 2014-11-24 10:56:03 -04:00
Juan Cruz Viotti
f4ad73d2f8 Implement app:create command (interacitivy only for now) 2014-11-24 10:46:33 -04:00
Juan Cruz Viotti
f8e6894ea0 Fix bug that caused request body not being sent 2014-11-24 10:40:12 -04:00
Juan Cruz Viotti
b90b803fcb Return device name if passing a display name to getDisplayName() 2014-11-24 09:09:39 -04:00
Juan Cruz Viotti
b9d1626fe1 Improve device module with required functionality 2014-11-24 09:03:02 -04:00
Juan Cruz Viotti
77e59cf7b9 Improve device.getSupportedDevices() to return valid slugs 2014-11-24 08:54:35 -04:00
Juan Cruz Viotti
51c6a8b4c2 Implement select widget 2014-11-24 08:45:15 -04:00
Juan Cruz Viotti
8ee2568144 Implement device.getSupportedDevices() 2014-11-24 08:25:45 -04:00
Juan Cruz Viotti
f56cd8162c Implement device:identify command 2014-11-21 14:21:47 -04:00
Juan Cruz Viotti
982c18a900 Add UUID to table KEY_DISPLAY_MAP 2014-11-21 14:20:43 -04:00
Juan Cruz Viotti
34b0c7d783 Removeu unneeded dependency 2014-11-21 13:57:51 -04:00
Juan Cruz Viotti
29054bedf1 Implement key:rm command 2014-11-21 13:56:11 -04:00
Juan Cruz Viotti
832cbf89ff Implement device rm command 2014-11-21 13:23:29 -04:00
Juan Cruz Viotti
a853c0418a Add -q|--quiet global option 2014-11-21 12:20:37 -04:00
Juan Cruz Viotti
d46cf4aced Make use of new log module everywhere 2014-11-21 11:40:37 -04:00
Juan Cruz Viotti
aa2d0e70ca Implement log module 2014-11-21 11:37:23 -04:00
Juan Cruz Viotti
fed63fd178 Omit confirmation interactivity with -y/--yes 2014-11-21 10:44:48 -04:00
Juan Cruz Viotti
0697510f38 Refactor app:rm with async 2014-11-21 10:12:03 -04:00
Juan Cruz Viotti
37c68118db Implement app rm command 2014-11-21 09:43:03 -04:00
Juan Cruz Viotti
1c1e8b375e Use packageJSON directly instead of creating version action 2014-11-21 09:30:29 -04:00
Juan Cruz Viotti
b53bc060a3 Revert back to commander 2014-11-21 09:23:02 -04:00
Juan Cruz Viotti
4b20ba435d Implement key info command 2014-11-20 14:00:39 -04:00
Juan Cruz Viotti
5bbbc93d80 Implement helpers module with formatLongString() 2014-11-20 13:53:10 -04:00
Juan Cruz Viotti
c4bb275923 Implement key list command 2014-11-20 13:03:23 -04:00
Juan Cruz Viotti
a189e21c30 Restart URL TODO 2014-11-20 12:54:43 -04:00
Juan Cruz Viotti
322fed866d Test that server can handle a relative as well as an absolute url 2014-11-20 12:33:07 -04:00
Juan Cruz Viotti
574d612624 Implement app restart command 2014-11-20 12:24:39 -04:00
Juan Cruz Viotti
e1a63fb548 Implement version module 2014-11-20 12:13:59 -04:00
Juan Cruz Viotti
ee0fc8206f Make use of yargs.showHelp() instead of yargs.help(), as the latter uses
stderr by default
2014-11-20 12:11:01 -04:00
Juan Cruz Viotti
d6c8d77ceb Update areFunctionsEqual comment 2014-11-20 12:07:03 -04:00
Juan Cruz Viotti
91567cb5c7 Make run() print help if no matches 2014-11-20 12:05:50 -04:00
Juan Cruz Viotti
14459e1d09 Re enable all commands with new Yargs Command plugin 2014-11-20 11:57:53 -04:00
Juan Cruz Viotti
7610fe87cc Implement Yargs Command plugin 2014-11-20 11:50:58 -04:00
Juan Cruz Viotti
f1a76db5f5 Show Is Online information in devices command 2014-11-19 15:18:15 -04:00
Juan Cruz Viotti
3f1bcf3f02 Improve devices table ordering 2014-11-19 15:01:27 -04:00
Juan Cruz Viotti
be01094463 Fix ID -> Id ordering bug 2014-11-19 14:57:30 -04:00
Juan Cruz Viotti
34346dd3d0 Refactor table utilities into tableHelpers 2014-11-19 14:25:09 -04:00
Juan Cruz Viotti
55fa8435bb Implement devices command 2014-11-19 13:38:15 -04:00
Juan Cruz Viotti
e0032c090f Catch errors from applicationModel.getAll() 2014-11-19 12:15:39 -04:00
Juan Cruz Viotti
7dc5915db5 Remove unused dependencies 2014-11-19 12:14:34 -04:00
Juan Cruz Viotti
9130281862 Extend table module to handle formatting 2014-11-19 12:12:08 -04:00
Juan Cruz Viotti
e0448357df Implement table.horizontal() 2014-11-19 10:42:18 -04:00
Juan Cruz Viotti
26c69d183d Make sure table.prepareObject() doesn't removes non empty arrays 2014-11-19 10:29:59 -04:00
Juan Cruz Viotti
e390efd46e Implement table module 2014-11-19 10:20:36 -04:00
Juan Cruz Viotti
77d84103f6 Implement app info action 2014-11-19 09:23:40 -04:00
Juan Cruz Viotti
3015af3aeb Fix hook arguments issue 2014-11-19 09:14:40 -04:00
Juan Cruz Viotti
98f4dc8e19 Require login before opening preferences 2014-11-19 09:05:26 -04:00
Juan Cruz Viotti
47a1e16dab Implement preferences module 2014-11-19 08:59:17 -04:00
Juan Cruz Viotti
76194c7d46 Use getDisplayName() in apps action 2014-11-19 08:51:42 -04:00
Juan Cruz Viotti
d77e671648 Return unknown if no matches in device.getDisplayName() 2014-11-19 08:50:11 -04:00
Juan Cruz Viotti
f0e1effc05 Implement device module with getDisplayName() 2014-11-19 08:45:56 -04:00
Juan Cruz Viotti
89ec171a3d Improve apps printing with cliff 2014-11-18 14:51:05 -04:00
Juan Cruz Viotti
8777bb9536 Make use of authHooks in actions 2014-11-18 12:37:01 -04:00
Juan Cruz Viotti
8bdd3b697a Implement authHooks module 2014-11-18 12:36:43 -04:00
Juan Cruz Viotti
a0c743d771 Implement messages module 2014-11-18 12:36:33 -04:00
Juan Cruz Viotti
5109bba302 Move TODO to a better place 2014-11-18 12:20:37 -04:00
Juan Cruz Viotti
24f50fa5ec Add optional interactivity to login command 2014-11-18 12:15:40 -04:00
Juan Cruz Viotti
275eed82f0 Implement widgets module 2014-11-18 12:14:48 -04:00
Juan Cruz Viotti
53c25412c3 Make auth.parseCredentials async 2014-11-18 12:11:20 -04:00
Juan Cruz Viotti
d671832b5a Implement logout command 2014-11-18 11:48:05 -04:00
Juan Cruz Viotti
c41b28d4f0 Organise action requires close to their use in app.coffee 2014-11-18 11:40:12 -04:00
Juan Cruz Viotti
5c53829812 Implement signup command 2014-11-18 11:37:29 -04:00
Juan Cruz Viotti
612bb5e605 Basic test suite for Canvas 2014-11-18 11:15:47 -04:00
Juan Cruz Viotti
719c8d199d Remove server facade duplication 2014-11-18 10:33:24 -04:00
Juan Cruz Viotti
eee13418b9 Delete obsolete comment 2014-11-18 10:13:58 -04:00
Juan Cruz Viotti
6afdd0e48a Make use of new ApplicationModel in apps list action 2014-11-18 10:12:35 -04:00
Juan Cruz Viotti
e4b0f3772b Implement ApplicationModel's getAll function 2014-11-18 10:11:18 -04:00
Juan Cruz Viotti
e18bc83285 Integrat resin-platform-api 2014-11-18 10:11:07 -04:00
Juan Cruz Viotti
6da7290d73 Use gzip by default in server 2014-11-18 10:05:38 -04:00
Juan Cruz Viotti
e6570efbaf Simplify header assignment in server.request 2014-11-18 10:04:26 -04:00
Juan Cruz Viotti
7524a0efa8 Option based server.request() 2014-11-18 09:59:19 -04:00
Juan Cruz Viotti
9e0940063e Use built-in url module instead of url-join 2014-11-18 09:19:20 -04:00
Juan Cruz Viotti
2fd2b702ae Rename config.baseUrl to config.remoteUrl 2014-11-18 08:53:07 -04:00
Juan Cruz Viotti
d0cc3e54ad Create actions submodule to clean app a bit 2014-11-18 08:41:13 -04:00
Juan Cruz Viotti
2b8313da74 Rename interface as simply app.coffee 2014-11-18 08:35:50 -04:00
Juan Cruz Viotti
c753e1b41b Move auth outside of cli-modules 2014-11-18 08:34:40 -04:00
Juan Cruz Viotti
69dbd49444 Implement simple interface module 2014-11-17 15:48:26 -04:00
Juan Cruz Viotti
8df43575d0 Correctly reference home directory 2014-11-17 15:40:16 -04:00
Juan Cruz Viotti
3c3cb3e850 Create prefix directory when using data.prefix.set 2014-11-17 15:32:35 -04:00
Juan Cruz Viotti
11998a63cd Make data.prefix.set() async 2014-11-17 15:20:19 -04:00
Juan Cruz Viotti
5eeb4e04ee Remove unneeded logErrorOrContinue 2014-11-17 15:13:31 -04:00
Juan Cruz Viotti
fa47ad1201 Implement handy logErrorOrContinue 2014-11-17 14:55:36 -04:00
Juan Cruz Viotti
798a3ded61 Improve parseCredentials error message 2014-11-17 14:54:20 -04:00
Juan Cruz Viotti
b0fe4f41c1 Implement auth.parseCredentials() 2014-11-17 14:40:32 -04:00
Juan Cruz Viotti
d9bfe96cb5 Pass null as first argument for consistency 2014-11-14 15:50:29 -04:00
Juan Cruz Viotti
93b3f90e92 Remove done TODO 2014-11-14 15:49:35 -04:00
Juan Cruz Viotti
58cc0be0c9 Cleanup tests 2014-11-14 15:48:37 -04:00
Juan Cruz Viotti
8143fa3ab3 Update tests that assume saveToken returned the token as the second
parameter
2014-11-14 15:37:55 -04:00
Juan Cruz Viotti
b0dde8104f Pass undefined directly on data.get when key doesn't exists
To prevent confusing async
2014-11-14 15:26:25 -04:00
Juan Cruz Viotti
a4a9ebf0bb Fix undefined callback issue 2014-11-14 15:18:08 -04:00
Juan Cruz Viotti
48d39a39f8 Reorder server unit test to get more meaningful results 2014-11-14 15:04:47 -04:00
Juan Cruz Viotti
15620145eb Make data module return undefined if key is not found 2014-11-14 14:56:52 -04:00
Juan Cruz Viotti
14bacbc4a4 Make token fs based 2014-11-14 14:28:58 -04:00
Juan Cruz Viotti
e288d3e85f Implement data.has() 2014-11-14 13:34:04 -04:00
Juan Cruz Viotti
d83e269f20 Implement data.remove() 2014-11-14 13:21:56 -04:00
Juan Cruz Viotti
86b3489a48 Implement fsUtils.isDirectory() helper 2014-11-14 12:58:05 -04:00
Juan Cruz Viotti
aef90a18e8 Use staging instead of alpha for now 2014-11-14 11:54:03 -04:00
Juan Cruz Viotti
b47adaefa4 Make sure server response body is parsed 2014-11-14 11:53:46 -04:00
Juan Cruz Viotti
97d778634d Implement Authorization header support in server module 2014-11-14 11:05:30 -04:00
Juan Cruz Viotti
58300acb77 Implement Auth module 2014-11-14 09:51:59 -04:00
Juan Cruz Viotti
5d6d2f0511 Convert Token module into callback based 2014-11-07 14:51:54 -04:00
Juan Cruz Viotti
3f5da39990 Add TODO for fsUtils.isValidPath() 2014-11-07 14:17:37 -04:00
Juan Cruz Viotti
cad1d5764b Remove unused fsUtils.isFile() 2014-11-07 14:17:05 -04:00
Juan Cruz Viotti
f00691529a Implement Data module 2014-11-07 14:15:59 -04:00
Juan Cruz Viotti
453d1bbd7b Add colon after each module spec title 2014-11-07 12:43:10 -04:00
Juan Cruz Viotti
64e66e229f Implement DataPrefix module 2014-11-07 12:42:02 -04:00
Juan Cruz Viotti
afe438ff82 Don't not send an error on isFile, even when the file doesn't exists 2014-11-07 12:10:18 -04:00
Juan Cruz Viotti
89bb0d0b21 Implement fsUtils module 2014-11-07 11:21:48 -04:00
Juan Cruz Viotti
41d73eaf98 Implement precarious token persistence mechanism 2014-10-31 15:19:16 -04:00
Juan Cruz Viotti
463ed6473b Implement basic Auth module that fetches a token 2014-10-31 14:47:18 -04:00
Juan Cruz Viotti
b52d1ccb6d Throw error if serve response status code is higher or equal than 400 2014-10-31 13:25:02 -04:00
Juan Cruz Viotti
62fc40cd4b Implement Server module 2014-10-31 11:59:23 -04:00