-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Instantiate WhiteSpaceWidget and send clearing event * Clearing old status and old error message moved to frontend * Added condition for first time addition of widget * Removing example Endpoint * favicon.ico * better screen for docks Co-authored-by: Stanislaw <[email protected]> Co-authored-by: Szymon Owczarzak <[email protected]>
- Loading branch information
Showing
15 changed files
with
24 additions
and
66 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
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
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
35 changes: 6 additions & 29 deletions
35
cogboard-app/src/main/kotlin/com/cognifide/cogboard/widget/type/WhiteSpaceWidget.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 |
---|---|---|
@@ -1,40 +1,17 @@ | ||
package com.cognifide.cogboard.widget.type | ||
|
||
import com.cognifide.cogboard.widget.Widget | ||
import com.cognifide.cogboard.CogboardConstants | ||
import com.cognifide.cogboard.widget.BaseWidget | ||
import io.vertx.core.Vertx | ||
import io.vertx.core.json.JsonObject | ||
|
||
/** | ||
* Use this for all widgets that don't require backend code | ||
*/ | ||
class WhiteSpaceWidget : Widget { | ||
|
||
override val id: String | ||
get() = "unknown" | ||
|
||
override val type: String | ||
get() = "WhiteSpaceWidget" | ||
|
||
override fun start(): Widget { | ||
return this | ||
} | ||
|
||
override fun stop(): Widget { | ||
return this | ||
} | ||
|
||
override fun send(state: JsonObject) { | ||
// do nothing | ||
} | ||
class WhiteSpaceWidget(vertx: Vertx, config: JsonObject) : BaseWidget(vertx, config) { | ||
|
||
override fun updateState() { | ||
// do nothing | ||
} | ||
|
||
override fun config(): JsonObject { | ||
return JsonObject() | ||
} | ||
|
||
companion object { | ||
val INSTANCE = WhiteSpaceWidget() | ||
send(JsonObject() | ||
.put(CogboardConstants.PROP_CONTENT, JsonObject())) | ||
} | ||
} |
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
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.