Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 12 additions & 6 deletions app/src/main/java/com/runcode/app/domain/models/Models.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
package com.runcode.app.domain.models

enum class ProjectProfile(val id: String, val displayName: String, val defaultExtension: String) {
PYTHON_SCRIPT("python_script", "Python Script", "py"),
TELEGRAM_BOT("telegram_bot", "Telegram Bot", "py"),
PYTHON_HTTP("python_http", "Python HTTP API", "py"),
STATIC_WEB("static_web", "Static Website", "html"),
SQLITE_APP("sqlite_app", "SQLite Database App", "py")
enum class ProjectProfile(
val id: String,
val displayName: String,
/** Fits the badge on a project card; a phone is about 360dp wide. */
val shortName: String,
val defaultExtension: String
) {
PYTHON_SCRIPT("python_script", "Python Script", "Python", "py"),
TELEGRAM_BOT("telegram_bot", "Telegram Bot", "Telegram", "py"),
PYTHON_HTTP("python_http", "Python HTTP API", "HTTP API", "py"),
STATIC_WEB("static_web", "Static Website", "Static Web", "html"),
SQLITE_APP("sqlite_app", "SQLite Database App", "SQLite", "py")
}

enum class RestartPolicy {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/runcode/app/ui/screens/HomeScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ fun ProfileBadge(profile: ProjectProfile) {
.padding(horizontal = 6.dp, vertical = 2.dp)
) {
Text(
profile.displayName,
profile.shortName,
fontSize = 9.sp,
fontWeight = FontWeight.Bold,
color = textColor,
Expand Down
Loading