diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardUiState.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardUiState.kt index 70a24bf..3126ad9 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardUiState.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardUiState.kt @@ -2,5 +2,4 @@ package eu.m724.vastapp.activity.dashboard data class DashboardUiState( val refreshing: Int = 0 -) { -} \ No newline at end of file +) \ No newline at end of file diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardViewModel.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardViewModel.kt index c3ef0b3..ea49b0b 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardViewModel.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardViewModel.kt @@ -1,17 +1,13 @@ package eu.m724.vastapp.activity.dashboard import android.annotation.SuppressLint -import android.app.Application import android.app.PendingIntent -import android.content.ClipData -import android.content.ClipboardManager import android.content.Context import android.content.Intent import android.widget.Toast import androidx.activity.ComponentActivity import androidx.lifecycle.Lifecycle import androidx.lifecycle.ViewModel -import androidx.lifecycle.viewmodel.compose.viewModel import eu.m724.vastapp.R import eu.m724.vastapp.activity.Opener import eu.m724.vastapp.activity.PermissionChecker diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Instances.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Instances.kt index 2e53274..a111789 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Instances.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Instances.kt @@ -5,7 +5,6 @@ import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.ContextualFlowRow import androidx.compose.foundation.layout.ExperimentalLayoutApi -import androidx.compose.foundation.layout.IntrinsicSize import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer @@ -19,41 +18,23 @@ import androidx.compose.foundation.verticalScroll import androidx.compose.material.icons.Icons import androidx.compose.material.icons.automirrored.filled.KeyboardArrowRight import androidx.compose.material3.Button -import androidx.compose.material3.ButtonDefaults import androidx.compose.material3.Card -import androidx.compose.material3.ElevatedButton -import androidx.compose.material3.FilledIconButton -import androidx.compose.material3.FilledTonalButton -import androidx.compose.material3.FilledTonalIconButton import androidx.compose.material3.Icon -import androidx.compose.material3.IconButton -import androidx.compose.material3.LinearProgressIndicator -import androidx.compose.material3.LocalTextStyle -import androidx.compose.material3.OutlinedButton import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue -import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember -import androidx.compose.runtime.saveable.rememberSaveable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier -import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.painterResource -import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import eu.m724.vastapp.R -import eu.m724.vastapp.activity.PermissionChecker import eu.m724.vastapp.activity.dashboard.DashboardViewModel import eu.m724.vastapp.vastai.data.RentedInstance -import org.json.JSONObject - -class Instances { -} @OptIn(ExperimentalLayoutApi::class) @Composable diff --git a/app/src/main/java/eu/m724/vastapp/activity/termux/TermuxSshActivity.kt b/app/src/main/java/eu/m724/vastapp/activity/termux/TermuxSshActivity.kt index 1f4c554..5ba3e55 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/termux/TermuxSshActivity.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/termux/TermuxSshActivity.kt @@ -1,39 +1,30 @@ package eu.m724.vastapp.activity.termux import android.os.Bundle -import android.widget.Toast import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge import androidx.compose.foundation.layout.Arrangement -import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer -import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width -import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.filled.Home import androidx.compose.material.icons.outlined.Home -import androidx.compose.material3.Button import androidx.compose.material3.Card import androidx.compose.material3.FilledTonalButton import androidx.compose.material3.Icon import androidx.compose.material3.IconButton import androidx.compose.material3.Scaffold import androidx.compose.material3.Text -import androidx.compose.material3.TextButton import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier -import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource -import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import eu.m724.vastapp.R import eu.m724.vastapp.activity.Opener diff --git a/app/src/main/java/eu/m724/vastapp/vastai/data/User.kt b/app/src/main/java/eu/m724/vastapp/vastai/data/User.kt index 92a4a53..968c4ec 100644 --- a/app/src/main/java/eu/m724/vastapp/vastai/data/User.kt +++ b/app/src/main/java/eu/m724/vastapp/vastai/data/User.kt @@ -2,7 +2,6 @@ package eu.m724.vastapp.vastai.data import android.os.Parcel import android.os.Parcelable -import androidx.compose.ui.res.painterResource data class User( val id: String, @@ -23,8 +22,7 @@ data class User( parcel.readDouble(), parcel.readDouble(), parcel.readBoolean() - ) { - } + ) override fun writeToParcel(parcel: Parcel, flags: Int) { parcel.writeString(id)