forked from nusCS2113-AY1819S1/addressbook-level4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nusCS2113-AY1819S1#78 from BearPerson1/master
Refactoring andupdate of UG
- Loading branch information
Showing
18 changed files
with
136 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,30 +305,131 @@ Shows only contacts who have GER1000 in their timetable and are free at mon 10am | |
|
||
=== Notes Commands | ||
|
||
==== Downloading notes from IVLE : `downloadAllNotes` | ||
==== Downloading all notes from a selected module from IVLE : `downloadAllNotes` | ||
|
||
Downloads the your notes from IVLE, and stores them in the folder "notes" | ||
|
||
Format: `downloadAllNotes `downloadAllNotes [user/IVLE USERNAME] [pass/IVLE PASSWORD] [mod/ENROLLED MODULE]` | ||
|
||
[TIP] | ||
You do not have to Enter the full module code or worry about the capitalization. | ||
|
||
[NOTE] | ||
You would need to have Google Chrome installed in the default location in order to execute this command. | ||
[NOTE] | ||
You would be unable to see your inputted command after inputting it, this is a security feature to prevent your login credentials from being compromised. | ||
|
||
Downloads the your notes from IVLE, and stores them in the folder "notes" + | ||
Format: `downloadAllNotes [user/IVLE USERNAME] [pass/IVLE PASSWORD] [mod/ENROLLED MODULE]` | ||
|
||
**** | ||
image::downloadExample.PNG[width="900"] | ||
* Automatically accesses the your IVLE account using Google Chrome, and downloads all notes and resources | ||
of the specified module. | ||
* This process can take up to 1 minute, depending on the internet speed of the local area network. | ||
* if an incomplete module code is entered, it will select the a module that matches it the most | ||
Example: if you are enrolled in `CS2113` and `cs2101` entering `mod/cs21` will select `cs2101` | ||
* You may notice a new window of Google Chrome opening up. Please refrain from interferring with the automated process. | ||
image::chromeOpen.PNG[width="250"] | ||
* N*Sync might be unresponsive during the download, it is so to prevent you from accidentally introducing file corruption. | ||
* If the process is successful, the result window of NSync will display the exact path to your newly downloaded notes. | ||
**** | ||
|
||
Examples: | ||
|
||
* `downloadAllNotes user/e1234567 pass/password1 mod/CS2101` + | ||
Downloads all notes and resources for CS2101 | ||
* `downloadAllNotes user/e1234567 pass/password1 mod/CS2113` + | ||
Downloads all notes and resources for CS2113 | ||
Download Successful | ||
|
||
image::downloadAllSuccessful.PNG[width="900"] | ||
|
||
Module not found | ||
|
||
image::downloadModNotFound.PNG[width="900"] | ||
|
||
Password or username Incorrect | ||
|
||
image::downloadPasswordOrUsernameWrong.PNG[width="900"] | ||
|
||
|
||
==== Display all notes from a selected module from IVLE : `downloadSelectNotes` without prefix `"file/"` | ||
Displays all the available notes of a selected | ||
|
||
Format: `downloadSelectNotes [user/IVLE USERNAME] [pass/IVLE PASSWORD] [mod/ENROLLED MODULE]` | ||
|
||
[NOTE] | ||
Currently the files are not sorted in any order. In a future version we will make its sorted by file type | ||
|
||
image::downloadSelectFileExample.PNG[width="900"] | ||
|
||
* All available notes from the selected module would be sourced and displayed | ||
|
||
* if a file is not shown, it could be either a private folder or a submission folder, consult your lecturer for more information | ||
|
||
Examples: | ||
|
||
[NOTE] | ||
the number on the left of the file represents the file ID, it is static. | ||
|
||
Example: 0:LP41_More_UML_Inheritence.pptx | ||
|
||
File Fetch Successful | ||
|
||
image::downloadSelectFileSuccess1.PNG[width="900"] | ||
image::downloadSelectFileSuccess2.PNG[width="900"] | ||
|
||
Module not found | ||
|
||
image::downloadModNotFound.PNG[width="900"] | ||
|
||
Password or username Incorrect | ||
|
||
image::downloadPasswordOrUsernameWrong.PNG[width="900"] | ||
|
||
==== Downloading selective notes from a selected module from IVLE : `downloadSelectNotes` with prefix `"file/"` | ||
Download a selective number of notes from IVLE, and stores them in the folder "notes". | ||
|
||
Format: `downloadSelectNotes [user/IVLE USERNAME] [pass/IVLE PASSWORD] [mod/ENROLLED MODULE] [file/0,1,2...n]` | ||
|
||
[TIP] | ||
Use `downloadSelectFile` without the `file\` prefix to obtain the file IDs | ||
|
||
image::downloadSelectExample.PNG[width="900"] | ||
|
||
* The files would be downloaded one by one from IVLE to your "notes" folder. | ||
|
||
* if you entered a mix of invalid and valid file IDs, N*Sync will only only download the correct files, up till it encounters a invalid ID. | ||
|
||
Example: file/0,1,2,90000000,3 | ||
if 0,1,2,3 are valid file IDs, only file 0,1,2 will be downloaded. | ||
|
||
Examples: | ||
|
||
Download Successful | ||
|
||
image::downloadSelectSuccess.PNG[width="900"] | ||
|
||
File not found | ||
|
||
image::downloadSelectFileNotFound.PNG[width="900"] | ||
|
||
==== Show all downloaded notes: `showNotes` | ||
Displays all the downloaded notes in the UI | ||
|
||
Format: `showNotes` | ||
|
||
[NOTE] | ||
the files are displayed in the order that it is in your directory | ||
|
||
* It recursively searches your `notes` folder and displays all the files available | ||
|
||
==== Downloading notes from IVLE : `downloadSelectNotes` | ||
Example: | ||
|
||
image::showNotes1.PNG[width="900"] | ||
image::showNotes2.PNG[width="900"] | ||
image::showNotes3.PNG[width="900"] | ||
|
||
==== Clearing all downloaded notes : `clearNotes` | ||
|
||
|
@@ -352,22 +453,40 @@ _{explain how the user can enable/disable data encryption}_ | |
|
||
* *Add* `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]...` + | ||
e.g. `add n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 1234665 t/friend t/colleague` | ||
|
||
* *Clear* : `clear` | ||
|
||
* *Clear Notes* : `clearNotes` | ||
|
||
* *Download All Notes* : `downloadAllNotes user/e1234567 pass/password1 mod/CS2113` | ||
* *Download Selected Notes* : | ||
|
||
* *Download Selected Notes (seleted notes)* : `downloadSelectNotes user/e1234567 pass/password1 mod/CS2113 file/1,2,3...n` | ||
|
||
* *Download Selected Notes (show all notes)* : `downloadSelectNotes user/e1234567 pass/password1 mod/CS2113` | ||
|
||
* *Show notes* : `showNotes` | ||
|
||
* *Delete* : `delete INDEX` + | ||
e.g. `delete 3` | ||
|
||
* *Edit* : `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG]... [em/ENROLLED MODULE]...` + | ||
e.g. `edit 2 n/James Lee e/[email protected]` | ||
|
||
* *Find* : `find KEYWORD [MORE_KEYWORDS]` + | ||
e.g. `find James Jake` | ||
|
||
* *Help* : `help` | ||
|
||
* *History* : `history` | ||
|
||
* *List* : `list` | ||
|
||
* *Merge Timetables* : `merge [index 1] [index 2] <add more indices if required>` | ||
e.g. `merge 1 2 5` | ||
|
||
* *Redo* : `redo` | ||
|
||
* *Select* : `select INDEX` + | ||
e.g.`select 2` | ||
|
||
* *Undo* : `undo` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,8 +205,5 @@ protected void initializeDownloadFolder(){ | |
} | ||
} | ||
|
||
public String getCurrentDirPath(){ | ||
return currentDirPath; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters