Ping Frontend Desktop und WasmJs funktionieren
This commit is contained in:
@@ -1,25 +1,26 @@
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="450dp"
|
||||
android:height="450dp"
|
||||
android:width="64dp"
|
||||
android:height="64dp"
|
||||
android:viewportWidth="64"
|
||||
android:viewportHeight="64"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://schemas.android.com/aapt ">
|
||||
android:viewportHeight="64">
|
||||
<!-- Outer hexagon -->
|
||||
<path
|
||||
android:pathData="M56.25,18V46L32,60 7.75,46V18L32,4Z"
|
||||
android:pathData="M56.25,18V46L32,60L7.75,46V18L32,4Z"
|
||||
android:fillColor="#6075f2"/>
|
||||
<!-- Right side face -->
|
||||
<path
|
||||
android:pathData="m41.5,26.5v11L32,43V60L56.25,46V18Z"
|
||||
android:pathData="M41.5,26.5V37.5L32,43V60L56.25,46V18Z"
|
||||
android:fillColor="#6b57ff"/>
|
||||
<!-- Left side face with radial gradient -->
|
||||
<path
|
||||
android:pathData="m32,43 l-9.5,-5.5v-11L7.75,18V46L32,60Z">
|
||||
android:pathData="M32,43L22.5,37.5V26.5L7.75,18V46L32,60Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:centerX="23.131"
|
||||
android:centerY="18.441"
|
||||
android:gradientRadius="42.132"
|
||||
android:centerX="23.13"
|
||||
android:centerY="18.44"
|
||||
android:gradientRadius="42.13"
|
||||
android:type="radial">
|
||||
<item
|
||||
android:offset="0"
|
||||
@@ -30,14 +31,15 @@
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<!-- Top face with linear gradient -->
|
||||
<path
|
||||
android:pathData="M22.5,26.5 L32,21 41.5,26.5 56.25,18 32,4 7.75,18Z">
|
||||
android:pathData="M22.5,26.5L32,21L41.5,26.5L56.25,18L32,4L7.75,18Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="44.172"
|
||||
android:startY="4.377"
|
||||
android:endX="17.973"
|
||||
android:endY="34.035"
|
||||
android:startX="44.17"
|
||||
android:startY="4.38"
|
||||
android:endX="17.97"
|
||||
android:endY="34.04"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:offset="0"
|
||||
@@ -48,7 +50,8 @@
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<!-- Center diamond -->
|
||||
<path
|
||||
android:pathData="m32,21 l9.526,5.5v11L32,43 22.474,37.5v-11z"
|
||||
android:pathData="M32,21L41.5,26.5V37.5L32,43L22.5,37.5V26.5Z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
||||
|
||||
@@ -2,32 +2,21 @@ package at.mocode
|
||||
|
||||
import androidx.compose.animation.AnimatedVisibility
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.safeContentPadding
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.material3.Button
|
||||
import androidx.compose.material3.Card
|
||||
import androidx.compose.material3.CircularProgressIndicator
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.material3.*
|
||||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.unit.dp
|
||||
import org.jetbrains.compose.ui.tooling.preview.Preview
|
||||
import io.ktor.client.*
|
||||
import io.ktor.client.call.*
|
||||
import io.ktor.client.plugins.contentnegotiation.*
|
||||
import io.ktor.client.request.*
|
||||
import io.ktor.http.*
|
||||
import io.ktor.serialization.kotlinx.json.*
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.serialization.Serializable
|
||||
import org.jetbrains.compose.ui.tooling.preview.Preview
|
||||
|
||||
@Serializable
|
||||
data class PingResponse(
|
||||
|
||||
Reference in New Issue
Block a user