Skip to content

Commit

Permalink
Minor fixes: "Add broker" now has a default value. "Consumer json" no…
Browse files Browse the repository at this point in the history
…w overflows texts. "Refresh textbox" improved. "Select cluster" shows the uri if not name provided.
  • Loading branch information
gonzalogarciajaubert committed Nov 10, 2022
1 parent 8c4f2ff commit 2bc461e
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 50 deletions.
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ image::doc/images/Intro%202.png[]

== Releases

* Version 0.1.6:
** Mac version: https://github.com/theam/plasmido/releases/download/v0.1.6/plasmido-darwin-v0.1.6.zip
* Version 0.1.7:
** Mac version: https://github.com/theam/plasmido/releases/download/v0.1.7/plasmido-darwin-v0.1.7.zip

== Development

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theagilemonkeys/plasmido",
"version": "0.1.6",
"version": "0.1.7",
"description": "Plasmido",
"keywords": [
"kafka",
Expand Down
2 changes: 1 addition & 1 deletion src/components/workbook/cluster/ClusterTopicSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
behavior="menu"
>
<template v-slot:selected-item="scope">
<div class="ellipsis">{{ scope.opt.label }}</div>
<div class="ellipsis">{{ scope.opt.label === '' ? '(' + scope.opt.broker.url + ')' : scope.opt.label }}</div>
<q-tooltip>{{ scope.opt.label }}</q-tooltip>
</template>

Expand Down
96 changes: 51 additions & 45 deletions src/components/workbook/consumer/CardTableOutputMessages.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<template>
<div class="q-py-md">
<q-table
grid
title="Messages"
:rows="formattedEvents"
:columns="columns"
row-key="offset"
:filter="filter"
hide-header
no-data-label="No events"
separator="none"
v-model:pagination="pagination"
@request="onRequest"
:loading="loading"
grid
title="Messages"
:rows="formattedEvents"
:columns="columns"
row-key="offset"
:filter="filter"
hide-header
no-data-label="No events"
separator="none"
v-model:pagination="pagination"
@request="onRequest"
:loading="loading"
>
<template v-slot:top-right>
<div class="fit row justify-end">
<div class="q-pt-none q-pb-none q-mr-md col-3">
<ArtifactTextFormatSelect
:text-format-artifact="textFormat"
v-on:textFormatChanged="onTextFormatChanged"
:text-format-artifact="textFormat"
v-on:textFormatChanged="onTextFormatChanged"
/>
</div>
<q-input dense debounce="300" v-model="filter" placeholder="Search" class="q-mr-md">
Expand All @@ -29,25 +29,26 @@
</q-input>
<div class="q-pt-none q-pb-none col-1">
<q-input
class="q-pt-none q-pb-none"
v-model="timeOutInterval"
type="number"
style="max-width: 90px"
label="Refresh"
dense
:rules="[ val => val && val > 0 || 'Please type a valid value']"
:hide-hint="true"
class="q-pt-none q-pb-none"
v-model="timeOutInterval"
type="number"
style="max-width: 200px"
label="Refresh:"
dense
:rules="[ val => val && val > 0 || 'Invalid value']"
:hide-hint="true"
no-error-icon="true"
/>
</div>
<div class="q-pt-sm q-pb-none q-ml-none">
<q-btn
flat
round
dense
icon="refresh"
class="q-ml-sm"
size="12px"
@click="onManualRequest"/>
flat
round
dense
icon="refresh"
class="q-ml-sm"
size="12px"
@click="onManualRequest"/>
</div>
</div>
</template>
Expand Down Expand Up @@ -91,13 +92,13 @@
<q-card-actions>
<q-space/>
<q-btn
color="grey"
flat
dense
label="show headers"
key="props.rowIndex"
:icon="props.expand ? 'keyboard_arrow_up' : 'keyboard_arrow_down'"
@click="props.expand = !props.expand"
color="grey"
flat
dense
label="show headers"
key="props.rowIndex"
:icon="props.expand ? 'keyboard_arrow_up' : 'keyboard_arrow_down'"
@click="props.expand = !props.expand"
/>
</q-card-actions>

Expand All @@ -121,16 +122,16 @@
</template>

<script lang="ts">
import {computed, defineComponent, inject, onMounted, onUnmounted, PropType, ref, watch} from 'vue'
import {IOutputMessageRow} from 'src/interfaces/IOutputMessageRow'
import {syntaxHighlight} from 'src/global'
import {WorkBookStatus} from 'src/enums/WorkBookStatus'
import {IConsumedEvent} from 'src/interfaces/IConsumedEvent'
import { computed, defineComponent, inject, onMounted, onUnmounted, PropType, ref, watch } from 'vue'
import { IOutputMessageRow } from 'src/interfaces/IOutputMessageRow'
import { syntaxHighlight } from 'src/global'
import { WorkBookStatus } from 'src/enums/WorkBookStatus'
import { IConsumedEvent } from 'src/interfaces/IConsumedEvent'
import useOutputMessages from 'src/components/workbook/consumer/useOutputMessages'
import Timeout = NodeJS.Timeout;
import {IRequestOptions} from 'src/interfaces/workbooks/IRequestOptions'
import {IArtifactTextFormatSelector} from 'src/interfaces/selectors/IArtifactTextFormatSelector'
import {ArtifactTextFormat} from 'src/enums/ArtifactTextFormat'
import Timeout = NodeJS.Timeout
import { IRequestOptions } from 'src/interfaces/workbooks/IRequestOptions'
import { IArtifactTextFormatSelector } from 'src/interfaces/selectors/IArtifactTextFormatSelector'
import { ArtifactTextFormat } from 'src/enums/ArtifactTextFormat'
import ArtifactTextFormatSelect from 'components/workbook/artifact/ArtifactTextFormatSelect.vue'
export default defineComponent({
Expand Down Expand Up @@ -298,16 +299,21 @@ export default defineComponent({
.jsoncolors ::v-deep .string
color: green
white-space: normal
.jsoncolors ::v-deep .number
color: darkorange
white-space: normal
.jsoncolors ::v-deep .boolean
color: blue
white-space: normal
.jsoncolors ::v-deep .null
color: magenta
white-space: normal
.jsoncolors ::v-deep .key
color: red
white-space: normal
</style>
2 changes: 1 addition & 1 deletion src/composables/useBrokersRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function useBrokersRepository() {
protocol: BrokerProtocol.NONE,
ssl_enabled: false,
rejectUnauthorized: false,
name: '',
name: 'New Broker',
url: '',
username: '',
password: '',
Expand Down

0 comments on commit 2bc461e

Please sign in to comment.