Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(login): added explanation to loopback #98

Closed
wants to merge 1 commit into from
Closed
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
35 changes: 23 additions & 12 deletions src/pages/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,27 @@
</Form>
<template v-else>
<v-list-subheader lines="two" :disabled="connecting" class="mb-3">
<v-list-item prepend-icon="mdi-server" v-for="(server, index) in servers" :key="server.id"
@click="connect(server)">
<v-list-item v-for="(server, index) in servers"
:key="server.id"
prepend-icon="mdi-server"
@click="connect(server)"
v-bind="props">

<v-list-item-title>{{ server.id }}</v-list-item-title>
<v-list-item-subtitle>{{ server.host }}</v-list-item-subtitle>

<template v-slot:append v-if="server.editable">
<v-list-item-action>
<v-btn variant="text" icon="mdi-pencil" @click.prevent.stop="openEditServerView(index)"></v-btn>
</v-list-item-action>
</template>
</v-list-item>
<v-list-item-title>{{ server.id }}</v-list-item-title>
<v-list-item-subtitle>{{ server.host }}</v-list-item-subtitle>
<template v-slot:append>
<v-list-item-action v-if="server.editable">
<v-btn variant="text" icon="mdi-pencil" @click.prevent.stop="openEditServerView(index)"></v-btn>
</v-list-item-action>
<v-tooltip :text="server.hint" v-if="server.hint">
<template v-slot:activator="{ props }">
<v-list-item-action v-bind="props">
<v-btn variant="text" icon="mdi-help-circle"></v-btn>
</v-list-item-action>
</template>
</v-tooltip>
</template>
</v-list-item>
</v-list-subheader>
<v-checkbox v-model="connectAutomatically"
label="Automatically connect to this instance"></v-checkbox>
Expand Down Expand Up @@ -119,6 +128,7 @@ type ServerItem = {
host: string;
editable: boolean;
protocol: "ws" | "wss";
hint?: string;
port: number;
};

Expand All @@ -133,10 +143,11 @@ export default defineComponent({
const evbc = inject<EVBackendClient>("evbc");
const servers = reactive<ServerItem[]>([
{
id: "Loopback",
id: "Simulator / Mock",
host: "loopback",
editable: false,
protocol: 'ws',
hint: "Mock EVerest Instance for testing: simulates behavior without real data transmission. Not perfect, but useful for development.",
port: 8849,
},
{
Expand Down
Loading