-
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.
Add persistent editing, adding and removing sources
- Loading branch information
Showing
12 changed files
with
121 additions
and
79 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
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 |
---|---|---|
@@ -1,16 +1,25 @@ | ||
## Things left to do for week 4 deadline | ||
## Things left to do for week 5 deadline | ||
|
||
### Necessary | ||
|
||
### Extra Credit | ||
* Generate UML diagram of core classes and embed it into architecture.md in documentation | ||
#### The actual app | ||
* Add a form for adding and editing sources | ||
* Make it possible to redefine where the sources are loaded from | ||
* Maybe just a dialog box at launch, where the user can feed a path | ||
* Try to figure out the architechture and package structure better | ||
* Figure out how to link to local files or something | ||
* Maybe have a designated file where all the files (or symlinks) are loaded from | ||
* Possivly just have a field with a path, but that pah can also be relative to some set of directories listed in some config file | ||
|
||
#### Other stuff | ||
* Make a way to generate runnable jar and add it to readme | ||
* min 20% test coverage | ||
* Exclude UI code from test report | ||
* Make a way to generate runnable jar and add it to readme | ||
* Keep the hours logged | ||
* Make a sequence diagram of a central part of the program's functionality (making and saving a change?) | ||
* Clean up the readme and add a more detailed user's manual | ||
* Make a release | ||
|
||
|
||
### Done | ||
* Get ktlint errors below 10 | ||
* Switch to gradle and get ./gradlew run to work | ||
* Add jacoco plugin | ||
* Add ktlint to project | ||
* Have packages make sense, separate UI and logic | ||
### Extra Credit | ||
* Generate UML diagram of core classes and embed it into architecture.md in documentation |
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package zhuLi.dao | ||
|
||
import zhuLi.domain.Source | ||
|
||
interface SourceListDao { | ||
val sources: List<Source> | ||
|
||
fun load(): List<Source> | ||
fun save(sources: List<Source>) | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package zhuLi.domain | ||
|
||
import zhuLi.dao.JsonSourceListDao | ||
|
||
class SourceListModel(val sourceListDao: JsonSourceListDao) { | ||
val sources = sourceListDao.sources | ||
|
||
fun save(sources: List<Source>) { | ||
sourceListDao.save(sources) | ||
} | ||
|
||
fun reload() { | ||
sourceListDao.load() | ||
} | ||
|
||
// TODO: something like getByProject should go here? | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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