Skip to content

Commit

Permalink
automatic merge to finish v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cars10 committed Jan 13, 2024
2 parents 83d3c64 + 9bb017b commit d3d6338
Show file tree
Hide file tree
Showing 16 changed files with 208 additions and 326 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,6 @@ jobs:
with:
path: src-tauri/target/release/elasticvue.exe

build_browser_extensions:
name: Build browser extensions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make build_browser_extensions

- name: upload extensions
uses: actions/upload-artifact@v3
with:
path: artifacts/*.zip

build_docker:
name: Build docker images
runs-on: ubuntu-latest
Expand Down Expand Up @@ -136,7 +124,6 @@ jobs:
name: Publish release
needs:
- build_desktop
- build_browser_extensions
- build_docker
runs-on: ubuntu-latest
steps:
Expand All @@ -153,7 +140,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
prerelease: true
prerelease: false
tag: ${{ github.ref_name }}
name: ${{ github.ref_name }}
artifacts: github-artifacts/artifact/*
Expand Down
304 changes: 97 additions & 207 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion browser_extension/chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Elasticvue",
"version": "1.0.2",
"version": "1.0.3",
"description": "Elasticsearch frontend",
"manifest_version": 3,
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion browser_extension/firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Elasticvue",
"version": "1.0.2",
"version": "1.0.3",
"description": "Elasticsearch frontend",
"manifest_version": 2,
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "elasticvue",
"private": true,
"version": "1.0.2",
"version": "1.0.3",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": {
"productName": "elasticvue",
"version": "1.0.2"
"version": "1.0.3"
},
"build": {
"distDir": "../dist",
Expand Down
2 changes: 1 addition & 1 deletion src/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const queryKeywords = [
'fields', 'type',
'filter', 'boost',
'operator', 'cutoff_frequency', 'bool', 'must', 'should', 'term', 'terms', 'prefix',
'query', 'match', 'match_phrase', 'range', 'gte', 'lte',
'query', 'query_string', 'match', 'match_phrase', 'range', 'gte', 'lte',
'_source'
]

Expand Down
3 changes: 0 additions & 3 deletions src/components/base/LanguageSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
</q-list>
</q-menu>
</q-btn>

<a v-if="store.language === 'cn'" class="q-px-md" target="_blank"
href="https://github.com/cars10/elasticvue/wiki/Help-translating-elasticvue">帮忙翻译elasticvue</a>
</template>

<script setup lang="ts">
Expand Down
9 changes: 4 additions & 5 deletions src/components/nodes/NodePercentProgress.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<template>
<q-linear-progress :value="numValue / 100" :color="color" />
<q-linear-progress :value="props.value / 100" :color="color" />
</template>

<script setup lang="ts">
import { computed } from 'vue'
const props = defineProps<{ value: string }>()
const numValue = computed(() => (parseFloat(props.value)))
const props = defineProps<{ value: number }>()
const color = computed(() => {
if (numValue.value >= 90) {
if (props.value >= 90) {
return 'negative'
} else if (numValue.value < 90 && numValue.value >= 80) {
} else if (props.value < 90 && props.value >= 80) {
return 'warning'
} else {
return 'primary-dark'
Expand Down
2 changes: 1 addition & 1 deletion src/components/nodes/NodesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
{ label: t('cluster_nodes.node_properties.master'), field: 'master', align: 'left' },
{ label: t('cluster_nodes.node_properties.node_role'), field: 'nodeRole', align: 'left' },
{ label: t('cluster_nodes.node_properties.attr'), align: 'left' },
{ label: t('cluster_nodes.node_properties.load'), field: 'load_1m', align: 'left' },
{ label: t('cluster_nodes.node_properties.load'), align: 'left' },
{ label: t('cluster_nodes.node_properties.cpu'), field: 'cpu', align: 'left' },
{ label: t('cluster_nodes.node_properties.ram'), field: 'ramPercent', align: 'left' },
{ label: t('cluster_nodes.node_properties.heap'), field: 'heapPercent', align: 'left' },
Expand Down
1 change: 0 additions & 1 deletion src/components/settings/GlobalSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
<div class="row q-mb-lg">
<div class="col-md-6 col-sm-12">
<q-input v-model="nodesStore.hideAttributesRegex"
autofocus
outlined
:label="t('settings.hide_nodes_attributes_regex.label')"
:hint="t('settings.hide_nodes_attributes_regex.message')">
Expand Down
2 changes: 2 additions & 0 deletions src/composables/CodeEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { queryKeywords, queryValues } from '../autocomplete.ts'
*/
const completions = (context: any) => {
const word = context.matchBefore(/\w*/)
if (!context.explicit) return null

const nodeBefore = syntaxTree(context.state).resolveInner(context.pos, -1)
if (nodeBefore.name === 'Property') {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/composables/components/rest/RestQueryForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const useRestQueryForm = (props: RestQueryFormProps, emit: any) => {
})

const editorCommands = [{
key: 'Ctrl-Enter', mac: 'Cmd-Enter', run: () => {
key: 'Ctrl-Enter', run: () => {
sendRequest()
return true
}
Expand Down
2 changes: 1 addition & 1 deletion src/composables/components/search/SearchDocuments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const useSearchDocuments = () => {
}

const editorCommands = [{
key: 'Alt-Enter', mac: 'Cmd-Enter', run: () => {
key: 'Ctrl-Enter', run: () => {
search()
return true
}
Expand Down
Loading

0 comments on commit d3d6338

Please sign in to comment.