-
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.
Index attributes and order support in sql query
- Loading branch information
Showing
10 changed files
with
260 additions
and
145 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,8 +1,21 @@ | ||
package models | ||
|
||
sealed class ParameterFormats(val key: String, val text: String) | ||
object FormatJsonPretty : ParameterFormats("jsonpretty", "Json with pretty print") | ||
object FormatJsonCompact : ParameterFormats("json", "Compact Json") | ||
object FormatYaml : ParameterFormats("yaml", "Yaml") | ||
sealed class ParameterFormats(val key: String, val text: String, val subText: String) | ||
object FormatJsonPretty : | ||
ParameterFormats( | ||
"jsonpretty", "Json with pretty print", | ||
"Long string with multiple lines with json format" | ||
) | ||
|
||
object FormatJsonCompact : | ||
ParameterFormats( | ||
"json", "Compact Json", | ||
"Small json string without any formatting in a single line" | ||
) | ||
|
||
object FormatYaml : ParameterFormats( | ||
"yaml", "Yaml", | ||
"Human friendly formatted string with indentation as formatting and multi-lines" | ||
) | ||
|
||
val DefaultFormats = listOf(FormatJsonPretty, FormatJsonCompact, FormatYaml) |
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,24 @@ | ||
package models | ||
|
||
enum class SocialIcons(val icon: String, val url: String) { | ||
Twitter( | ||
"icons/social/social_twitter.svg", | ||
"https://twitter.com/Aman22Kapoor" | ||
), | ||
Github( | ||
"icons/social/social_github.svg", | ||
"https://github.com/amank22/LogVue" | ||
), | ||
GithubIssues( | ||
"icons/social/social_github.svg", | ||
"https://github.com/amank22/LogVue/issues/new" | ||
), | ||
Linkedin("icons/social/social_linkedIn.svg", "https://www.linkedin.com/in/amank22/"), | ||
Email("icons/ico-email.svg", "mailto://[email protected]"), | ||
; | ||
|
||
companion object { | ||
val DefaultIcons = listOf(Twitter, Github, Linkedin, Email) | ||
} | ||
//object SocialFacebook : SocialIcons("icons/social/social_facebook.svg", "") | ||
} |
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
Oops, something went wrong.