Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Jeremykhoo] iP #360

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
556af3f
Add Gradle support
May 24, 2020
11b5c57
finish level-1
MrJeremyKhoo Jan 23, 2023
acf0f45
finish l2
MrJeremyKhoo Jan 24, 2023
f4b87a7
done lvl3
MrJeremyKhoo Jan 25, 2023
f416739
done level 4
MrJeremyKhoo Jan 25, 2023
ab0a146
finish level-4
MrJeremyKhoo Jan 25, 2023
377d098
finish level 6
MrJeremyKhoo Jan 25, 2023
50f6250
Level-7
MrJeremyKhoo Jan 31, 2023
8672b06
level-8
MrJeremyKhoo Feb 1, 2023
8caf430
Merge branch 'branch-Level-7'
MrJeremyKhoo Feb 1, 2023
bf2a6b8
fix bug with event date parsing
MrJeremyKhoo Feb 1, 2023
16a25aa
to merge l8 for auto grader
MrJeremyKhoo Feb 1, 2023
ac27e67
Merge branch 'branch-Level-8'
MrJeremyKhoo Feb 1, 2023
5ec800b
Merge gradle support branch
MrJeremyKhoo Feb 1, 2023
3b6f151
chang tab to 4 space
MrJeremyKhoo Feb 2, 2023
6a80409
gradle stylecheck
MrJeremyKhoo Feb 2, 2023
5cafe0a
add gradle
MrJeremyKhoo Feb 2, 2023
a362945
fixed style
MrJeremyKhoo Feb 9, 2023
eef2648
more oop
MrJeremyKhoo Feb 10, 2023
57f2ea8
A-Packages
MrJeremyKhoo Feb 11, 2023
4a42fa7
JUnit
MrJeremyKhoo Feb 12, 2023
b242f82
Revert "more oop"
MrJeremyKhoo Feb 12, 2023
0610e23
Revert "A-Packages"
MrJeremyKhoo Feb 12, 2023
b1a8543
Merge branch 'master' into alt-history
MrJeremyKhoo Feb 12, 2023
dff0749
add packages
MrJeremyKhoo Feb 12, 2023
0e229bd
java doc
MrJeremyKhoo Feb 12, 2023
2b3ac2f
add find feature
MrJeremyKhoo Feb 12, 2023
8d5aa19
stylecheck graddle
MrJeremyKhoo Feb 12, 2023
3afb857
merge conflict
MrJeremyKhoo Feb 12, 2023
46737fb
ready for gradle build
MrJeremyKhoo Feb 13, 2023
54dfb51
before add UI images
MrJeremyKhoo Feb 14, 2023
18ed672
JFX tutorial p3
MrJeremyKhoo Feb 14, 2023
04f09c3
Level 10
MrJeremyKhoo Feb 15, 2023
02cf756
Fix exception
MrJeremyKhoo Feb 19, 2023
7e4cc29
fix task string update
MrJeremyKhoo Feb 19, 2023
ced7eda
assertion branch
MrJeremyKhoo Feb 19, 2023
61219b6
Merge pull request #2 from jeremykhoo-NUS/branch-A-Assertions
MrJeremyKhoo Feb 19, 2023
8515b69
bad style
MrJeremyKhoo Feb 19, 2023
7d65475
fix arrowhead indentation
MrJeremyKhoo Feb 19, 2023
802b202
Merge pull request #3 from jeremykhoo-NUS/branch-A-CodingQuality
MrJeremyKhoo Feb 19, 2023
27015d1
to merge for level 10
MrJeremyKhoo Feb 20, 2023
7a87b02
Merge branch 'branch-Level-10'
MrJeremyKhoo Feb 20, 2023
6823422
BCD-Extension
MrJeremyKhoo Feb 20, 2023
3325650
added UI and UG
MrJeremyKhoo Feb 20, 2023
006442d
readme
MrJeremyKhoo Feb 20, 2023
94819eb
Update README.md
MrJeremyKhoo Feb 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/*.iml

# Gradle build files
/.gradle/
/build/
src/main/resources/docs/
/.gradle/

# MacOS custom attributes files created by Finder
.DS_Store
Expand All @@ -15,3 +15,7 @@ bin/

/text-ui-test/ACTUAL.TXT
text-ui-test/EXPECTED-UNIX.TXT
*.class
token
*.txt

Binary file added .gradle/6.2/executionHistory/executionHistory.bin
Binary file not shown.
Binary file added .gradle/6.2/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/6.2/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/6.2/fileContent/fileContent.lock
Binary file not shown.
Binary file added .gradle/6.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/6.2/fileHashes/fileHashes.lock
Binary file not shown.
Empty file added .gradle/6.2/gc.properties
Empty file.
Binary file added .gradle/6.2/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file added .gradle/6.2/javaCompile/javaCompile.lock
Binary file not shown.
Binary file added .gradle/6.2/javaCompile/taskHistory.bin
Binary file not shown.
Binary file added .gradle/7.6/checksums/checksums.lock
Binary file not shown.
Binary file added .gradle/7.6/checksums/md5-checksums.bin
Binary file not shown.
Binary file added .gradle/7.6/checksums/sha1-checksums.bin
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added .gradle/7.6/executionHistory/executionHistory.bin
Binary file not shown.
Binary file added .gradle/7.6/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/7.6/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/7.6/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/7.6/fileHashes/fileHashes.lock
Binary file not shown.
Binary file added .gradle/7.6/fileHashes/resourceHashesCache.bin
Binary file not shown.
Empty file added .gradle/7.6/gc.properties
Empty file.
Binary file added .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 2 additions & 0 deletions .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Mon Feb 13 23:09:40 PST 2023
gradle.version=6.2
Binary file added .gradle/checksums/checksums.lock
Binary file not shown.
Binary file added .gradle/checksums/md5-checksums.bin
Binary file not shown.
Binary file added .gradle/checksums/sha1-checksums.bin
Binary file not shown.
Binary file added .gradle/file-system.probe
Binary file not shown.
Empty file added .gradle/vcs-1/gc.properties
Empty file.
92 changes: 68 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,68 @@
# Duke project template

This is a project template for a greenfield Java project. It's named after the Java mascot _Duke_. Given below are instructions on how to use it.

## Setting up in Intellij

Prerequisites: JDK 11, update Intellij to the most recent version.

1. Open Intellij (if you are not in the welcome screen, click `File` > `Close Project` to close the existing project first)
1. Open the project into Intellij as follows:
1. Click `Open`.
1. Select the project directory, and click `OK`.
1. If there are any further prompts, accept the defaults.
1. Configure the project to use **JDK 11** (not other versions) as explained in [here](https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk).<br>
In the same dialog, set the **Project language level** field to the `SDK default` option.
3. After that, locate the `src/main/java/Duke.java` file, right-click it, and choose `Run Duke.main()` (if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output:
```
Hello from
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|
```
# Task Manager User Guide

This task manager allows you to organize and manage your tasks efficiently. Here are the commands you can use:

## Adding Tasks

### Todo
To add a todo task, use the following command:
```todo <description>```

Replace `<description>` with the details of your todo task.

### Event
To add an event task with a specified date range, use the following command:
``` event <description> /from <date> /to <date>```

Replace `<description>` with the event details and `<date>` with the start and end dates.

### Deadline
To add a deadline task with a specified due date, use the following command:
```deadline <description> /by <date>```

Replace `<description>` with the task details and `<date>` with the due date.

## Listing Tasks
To view the list of tasks, simply use the command:
```list```


## Managing Tasks

### Marking a Task as Done
To mark a task as done, use the following command:
```mark <index>```

Replace `<index>` with the index of the task in the list.

### Unmarking a Task
To unmark a task, use the following command:
```unmark <index>```

### Deleting a Task
To remove a task from the list, use the following command:
```delete <index>```

Replace `<index>` with the index of the task in the list.

## Searching for Tasks
To find a task in the list using a keyword, use the following command:

```find <keyword>```

Replace `<keyword>` with the search term.

## Undoing the Latest Action
To undo the most recent action, use the command:
```undo```


## Additional Features

### Saving Tasks
Tasks are automatically saved in a file named `duke.txt` in the current directory.

Make sure to check the file for your tasks or to transfer them to another device.

---

9 changes: 9 additions & 0 deletions ReportVersion.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import javafx.application.Application;
import javafx.stage.Stage;
public class ReportVersion extends Application {
public static void main(String[] args) { launch(args); }
@Override public void start(Stage stage) {
System.out.println("javafx.runtime.version: " + System.getProperties().get("javafx.runtime.version"));
System.exit(0);
}
}
45 changes: 45 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'com.github.johnrengelman.shadow' version '5.1.0'
}

checkstyle {
toolVersion = '10.2'
}

repositories {
mavenCentral()
}

dependencies {
String javaFxVersion = '11'

implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'linux'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0'
}

test {
useJUnitPlatform()
}

application {
mainClassName = "duke.Launcher"
}

run{
standardInput = System.in
}
Loading