Commit Graph

2988 Commits

Author SHA1 Message Date
Joe Cheng
1912784bf3 Do equivalent of "mkdir -p" when making state dir 2016-06-27 08:03:22 -07:00
Winston Chang
fd795e8937 Don't restore state if in a subapp 2016-06-27 08:03:22 -07:00
Winston Chang
34be3c06b9 Change '_state_id' to '__state_id__' 2016-06-27 08:03:22 -07:00
Winston Chang
cfeec933ef Gracefully handle errors in restoring state 2016-06-27 08:03:22 -07:00
Winston Chang
fa7a33d0a2 Grunt 2016-06-27 08:03:22 -07:00
Winston Chang
2d5438eb81 Add asList method 2016-06-27 08:02:28 -07:00
Winston Chang
051f720fe0 Move loading and decoding of query string into RestoreContext 2016-06-27 08:02:28 -07:00
Winston Chang
d180f27e46 Add ShinyRestoreContext class 2016-06-27 08:02:28 -07:00
Winston Chang
9b49b7a3dd Replace bookmarkConfig with bookmarkObserver 2016-06-27 08:02:28 -07:00
Winston Chang
bad566f6c7 Revise how onSave is called; move persist() and encode() into ShinyState object 2016-06-27 08:02:28 -07:00
Winston Chang
08d7f36b36 Refinements to save button 2016-06-27 08:02:28 -07:00
Winston Chang
0cdd96a8e4 Better splitting of state query string 2016-06-27 08:02:28 -07:00
Winston Chang
a688c22929 Add invalidateReactiveValue function 2016-06-27 08:02:28 -07:00
Winston Chang
f110787709 Replace updateQueryString with updateLocationBar 2016-06-27 08:02:28 -07:00
Winston Chang
e57773cfa6 Make 'restorable' opt-out instead of opt-in 2016-06-27 08:02:03 -07:00
Winston Chang
71e0f535b7 Rename 'save' to 'persist' 2016-06-27 08:02:03 -07:00
Winston Chang
6cb3921333 Add bookmarkButton 2016-06-27 08:02:03 -07:00
Winston Chang
a474e9f0ea Fix reactive dependencies when restoring values 2016-06-27 08:02:03 -07:00
Winston Chang
7bae46325b Properly mark actionButtons and passwordInputs as unserializable 2016-06-27 08:02:03 -07:00
Winston Chang
b42d6dce55 Call onRestore only if it exists 2016-06-27 08:02:03 -07:00
Winston Chang
bd39c40fd8 Refinements 2016-06-27 08:02:03 -07:00
Winston Chang
e47bf922b1 Remove 'enable' argument 2016-06-27 08:02:03 -07:00
Winston Chang
282893faff Add support for bookmarking arbitrary values 2016-06-27 08:02:03 -07:00
Winston Chang
87309a64d2 parseQueryString: ignore extra ampersands 2016-06-27 08:02:03 -07:00
Winston Chang
f38fe7d488 Prepare things for separate values 2016-06-27 08:02:03 -07:00
Winston Chang
23451b7c0f Add configureBookmarking function 2016-06-27 08:02:03 -07:00
Winston Chang
0e52b34ab9 Remove outdated example 2016-06-27 08:02:03 -07:00
Winston Chang
94804d972c Remove bookmarkOutput; add saveStateModal and encodeStateModal 2016-06-27 08:02:03 -07:00
Winston Chang
d7c94052a2 Remove clipboard.js 2016-06-27 08:02:03 -07:00
Winston Chang
9bc136773c Fix argument defaults 2016-06-27 08:02:03 -07:00
Winston Chang
1ea1a16fb7 Remove createBookmark function 2016-06-27 08:02:03 -07:00
Winston Chang
cc09429e22 Make names consistent 2016-06-27 08:02:03 -07:00
Winston Chang
ed0c5d4f55 Remove unused code path 2016-06-27 08:02:03 -07:00
Winston Chang
e3ce1ba14d Use new ID each time state is saved 2016-06-27 08:02:03 -07:00
Winston Chang
0c4048068b Check for '..' in restored file input path 2016-06-27 08:02:03 -07:00
Winston Chang
be9d884ae2 Use wrapper functions for saving/restoring state 2016-06-27 08:02:03 -07:00
Winston Chang
7065652e9a Add ability to save and restore fileInputs. Also improve fileInput appearance 2016-06-27 08:02:03 -07:00
Winston Chang
60f7b9077d Add serializers 2016-06-27 08:02:03 -07:00
Winston Chang
aa787f42e4 Save each state in a subdirectory 2016-06-27 08:02:03 -07:00
Winston Chang
33e605509b Better error handling when saving/restoring state 2016-06-27 08:02:03 -07:00
Winston Chang
e31ac5a73d Use same state ID throughout a session 2016-06-27 08:02:03 -07:00
Winston Chang
6282edc537 Remove unneeded randomID function 2016-06-27 08:02:03 -07:00
Winston Chang
75b41eb7d8 Initial version of saving state 2016-06-27 08:02:03 -07:00
Winston Chang
54f6f8793d Restore values only if 'restorable' option is set 2016-06-27 08:02:03 -07:00
Winston Chang
3d5ee44388 Add shiny options 2016-06-27 08:02:03 -07:00
Winston Chang
c355da585c Disable seralizing of passwords and actionButtons 2016-06-27 08:02:03 -07:00
Winston Chang
ae7b5afbb3 Don't clear bookmark DOM elements on error 2016-06-27 08:02:03 -07:00
Winston Chang
2782369e20 Add ability to invalidate a reactive value 2016-06-27 08:02:03 -07:00
Winston Chang
46559be05a Code cleanup 2016-06-27 08:02:03 -07:00
Winston Chang
70a022cb4b Add optional update button for bookmarkOutput 2016-06-27 08:02:03 -07:00