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

Zhou Yang ip #469

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
55f9f9f
docs/README.md: Tweak document template
Jan 7, 2024
f837ddb
Add Gradle support
May 24, 2020
a6f7324
Bump gradle and lib version
Eclipse-Dominator Aug 5, 2023
6a2c3c4
Duke Level0
Jan 25, 2024
230d629
Duke_Level1
Jan 25, 2024
0e99f6d
Duke_Level2
Jan 25, 2024
3edd219
Duke_Level3
Jan 25, 2024
ed31075
Duke_Level4
Jan 26, 2024
c9bb7d8
Duke_Level5
Feb 1, 2024
7371a61
Duke_Level5
Feb 8, 2024
b7a9572
Duke_Level6
Feb 8, 2024
cc18fdb
Duke
Feb 21, 2024
326db9d
Duke_Level7
Feb 21, 2024
c87e0cb
Duke_Level8
Feb 23, 2024
0c8e8da
ui
Feb 23, 2024
c575fa3
Duke_Level8
Feb 24, 2024
a88f458
Duke_Level8
Feb 25, 2024
43d9349
A_Packages
Feb 25, 2024
a31ec41
Merge remote-tracking branch 'origin/add-gradle-support'
Feb 25, 2024
dc2bf14
Junit
Feb 26, 2024
5211ea8
Update
Feb 26, 2024
ecabd86
Duke_Level9
Feb 26, 2024
c4064ae
Duke_Level9
Feb 26, 2024
d16e0b4
SamuelBot
Feb 26, 2024
9985e16
SamuelBot
Feb 26, 2024
18e9e33
Merge branch 'A-CodingStandard'
Feb 26, 2024
f094fc6
Duke_Level10
Feb 26, 2024
f2fcffc
Duke_Level10
Feb 26, 2024
348cb2e
Duke_Level10
Feb 28, 2024
285b828
GUI
Feb 28, 2024
abc1856
Duke_Level10
Feb 29, 2024
ce12d48
Duke_Level9
Feb 29, 2024
14d3723
Duke_Level10
Feb 29, 2024
2ddea92
Added : class Assertions
Feb 29, 2024
efa4525
Added : class Assertions
Feb 29, 2024
242c7d6
Added Assertions.java
Feb 29, 2024
3625a37
add Assertions.java
Feb 29, 2024
46ae3ea
Merge branch 'A-Assertions' of https://github.com/SamuelZero1/ip into…
Feb 29, 2024
1a84a6b
Assertions
Feb 29, 2024
98b1583
Minor changes to ChatBotGUI.java
Feb 29, 2024
87066e5
Merge branch 'A-CodeQuality'
Feb 29, 2024
e3ca239
add UserGuide.md
Feb 29, 2024
38ad3a1
Update README.md
SamuelZero1 Feb 29, 2024
4a08237
modified some classes
Feb 29, 2024
7389801
Merge branch 'master' of https://github.com/SamuelZero1/ip
Feb 29, 2024
8631107
minor changes
Feb 29, 2024
4979698
Add files via upload
SamuelZero1 Feb 29, 2024
3d8edb8
Update README.md
SamuelZero1 Feb 29, 2024
90b394b
update SamuelBot.txt
Mar 3, 2024
48ad843
update SamuelBot.txt
Mar 3, 2024
f0295e5
run SamuelBot.txt
Mar 3, 2024
3c917f4
Update SamuelBot.txt
Mar 3, 2024
fdf5b56
Update SamuelBot.txt
Mar 3, 2024
e777fa8
Update SamuelBot.txt
Mar 3, 2024
d72ebf8
Update SamuelBot.txt
Mar 3, 2024
91d9fff
Update SamuelBot.txt
Mar 3, 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
32 changes: 32 additions & 0 deletions SamuelBot.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
T | 1 | homework
T | 1 | a
D | 1 | b | 2004-10-22
E | 0 | born | 2004-10-22 11:00 | 2004-10-22 12:00
T | 0 | a
T | 1 | eat
T | 0 | sleep
T | 1 | a
T | 0 | a
T | 0 | aa
T | 0 | abc
T | 0 | abcd
D | 0 | return book | 2024-02-29
D | 0 | return book | 2024-02-22
T | 0 | a
T | 0 | home
T | 0 | a
T | 0 | play mario kart
T | 0 | a
D | 0 | Submit report | 2024-03-15
T | 0 | eatmeat
D | 0 | return book | 2024-03-01
E | 1 | project meeting | 2024-03-01 08:00 | 2024-03-01 16:00
T | 0 | ip
T | 0 | play video games
T | 0 | ip
T | 0 | study
T | 0 | test1
T | 0 | test2
T | 0 | test3
T | 0 | test4
T | 0 | test5
55 changes: 55 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}

repositories {
mavenCentral()
}

dependencies {
String javaFxVersion = '17.0.7'
implementation "org.openjfx:javafx-base:$javaFxVersion:win"
implementation "org.openjfx:javafx-base:$javaFxVersion:mac"
implementation "org.openjfx:javafx-base:$javaFxVersion:linux"
implementation "org.openjfx:javafx-controls:$javaFxVersion:win"
implementation "org.openjfx:javafx-controls:$javaFxVersion:mac"
implementation "org.openjfx:javafx-controls:$javaFxVersion:linux"
implementation "org.openjfx:javafx-fxml:$javaFxVersion:win"
implementation "org.openjfx:javafx-fxml:$javaFxVersion:mac"
implementation "org.openjfx:javafx-fxml:$javaFxVersion:linux"
implementation "org.openjfx:javafx-graphics:$javaFxVersion:win"
implementation "org.openjfx:javafx-graphics:$javaFxVersion:mac"
implementation "org.openjfx:javafx-graphics:$javaFxVersion:linux"

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
}

test {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed"
showExceptions true
exceptionFormat "full"
showCauses true
showStackTraces true
showStandardStreams = false
}
}

application {
mainClass.set("SamuelBot.Launcher")
}

shadowJar {
archiveBaseName = "Samuelbot"
archiveClassifier = null
}

run {
standardInput = System.in
classpath = sourceSets.main.runtimeClasspath + configurations.runtimeClasspath
}
100 changes: 84 additions & 16 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,97 @@
# User Guide
# SamuelBot User Guide

## Features
![Ui](https://github.com/SamuelZero1/ip/assets/111351811/4c99bafc-e6b7-4f23-8b57-1e7b0fe7a362)

### Feature-ABC
Welcome to SamuelBot, your personal task manager! SamuelBot helps you keep track of your tasks by allowing you to add, delete, mark as done, and find tasks easily. It can even save your previous added tasks! Below is a guide to help you make the most out of SamuelBot's features.

Description of the feature.
## Adding todos
Command format: todo <description>

### Feature-XYZ
e.g. User's input:
todo Read a book

Description of the feature.
expected outcome example:
Got it. I've added this task:
[T][ ] Read a book
Now you have 1 tasks in the list.

## Usage
## Adding deadlines
Command format: deadline <description> /by <due_date>
due date would be in the format YYYY-MM-DD

### `Keyword` - Describe action
e.g. User's input:
deadline Submit report /by 2024-03-15

Describe the action and its outcome.
expected outcome example:
Got it. I've added this task:
[D][ ] Submit report (by: 3月 15 2024)
Now you have 2 tasks in the list.

Example of usage:
## Adding events
Command format: event <description> /from <start_date> /to <end_date>
<start_date> and <end_date> should be in the format YYYY-MM-DD HH:mm

`keyword (optional arguments)`
e.g. User's input:
event Play Mario Kart /from 2024-03-10 14:00 /to 2024-03-10 16:00

Expected outcome:

Description of the outcome.
expected outcome example:
Got it. I've added this task:
[E][ ] Play Mario Kart (from: 2024-03-10 14:00 to 2024-03-10 16:00)
Now you have 3 tasks in the list.


## Listing Tasks
To list all tasks, simply type:
list

Expected Output:
Here are the tasks in your list:
1.[T][ ] Read a book
2.[D][ ] Submit report (by: 3月 15 2024)
3.[E][ ] Play Mario Kart (from: 2024-03-10 14:00 to 2024-03-10 16:00)

## Marking Tasks as Done
Command:
mark <task_number>

e.g. User's input:
mark 1

Expected Output:
Nice! I've marked this task as done:
[T][X] Read a book

## Marking Tasks as Not Done
Command:
unmark <task_number>

e.g. User's input:
unmark 1

Expected Output:
OK, I've marked this task as not done yet:
[T][] Read a book

## Deleting a Task
Command:
delete <task_number>
e.g User's input:
delete 1
Expected Output:
Noted. I've removed this task:
[D][ ] Submit report (by: 3月 15 2024)
Now you have 2 tasks in the list.
Here are the tasks in your list:
1.[T][ ] Read a book
2.[E][ ] Play Mario Kart (from: 2024-03-10 14:00 to 2024-03-10 16:00)

## Finding Task
Command:
find <keyword>
e.g. User's input:
find Kart
Expected Output:
Here are the matching tasks in your list:
1. [E][ ] Play Mario Kart (from: 2024-03-10 14:00 to 2024-03-10 16:00)

```
expected output
```
Binary file added docs/Ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions duke.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
D | 0 | return book | Sunday
E | 0 | project meeting | Mon 2pm | 4pm
T | 0 | a
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading