-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
205 changed files
with
23,462 additions
and
18,772 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 |
---|---|---|
@@ -1,8 +1,20 @@ | ||
.PHONY: build install | ||
.PHONY: api desktop build install | ||
|
||
build: | ||
ifeq ($(OS),Windows_NT) | ||
api: | ||
gradlew.bat api:bootJar | ||
|
||
desktop: | ||
cd desktop && npm run electron:build | ||
else | ||
api: | ||
./gradlew api:bootJar | ||
|
||
desktop: | ||
cd desktop && npm run electron:build:deb | ||
|
||
install: | ||
sudo dpkg -i desktop/release/nebulosa_0.1.0_amd64.deb | ||
endif | ||
|
||
build: api desktop |
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
16 changes: 16 additions & 0 deletions
16
api/src/main/kotlin/nebulosa/api/atlas/SatelliteUpdateNotificationEvent.kt
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,16 @@ | ||
package nebulosa.api.atlas | ||
|
||
import nebulosa.api.notifications.NotificationEvent | ||
|
||
sealed interface SatelliteUpdateNotificationEvent : NotificationEvent.System { | ||
|
||
data object Started : SatelliteUpdateNotificationEvent, NotificationEvent.Info { | ||
|
||
override val body = "Satellite database is being updated" | ||
} | ||
|
||
data class Finished(private val numberOfSatellites: Int) : SatelliteUpdateNotificationEvent, NotificationEvent.Success { | ||
|
||
override val body = "Satellite database was updated: $numberOfSatellites satellites" | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
api/src/main/kotlin/nebulosa/api/atlas/SkyAtlasUpdateNotificationEvent.kt
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,21 @@ | ||
package nebulosa.api.atlas | ||
|
||
import nebulosa.api.notifications.NotificationEvent | ||
|
||
sealed interface SkyAtlasUpdateNotificationEvent : NotificationEvent.System { | ||
|
||
data object Started : SkyAtlasUpdateNotificationEvent, NotificationEvent.Info { | ||
|
||
override val body = "Sky Atlas database is being updated" | ||
} | ||
|
||
data class Finished(private val version: String) : SkyAtlasUpdateNotificationEvent, NotificationEvent.Success { | ||
|
||
override val body = "Sky Atlas database was updated: $version" | ||
} | ||
|
||
data object Failed : SkyAtlasUpdateNotificationEvent, NotificationEvent.Error { | ||
|
||
override val body = "Sky Atlas database update failed" | ||
} | ||
} |
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
Oops, something went wrong.