diff --git a/public/queries.json b/public/queries.json new file mode 100644 index 0000000..8d47aab --- /dev/null +++ b/public/queries.json @@ -0,0 +1,47 @@ +{ + "query": "select * from invoices", + "chart": { + "data": [ + { + "type": "scatter", + "mode": "lines", + "x": null, + "xsrc": "InvoiceId", + "meta": { + "columnNames": { + "x": "InvoiceId", + "y": "Total" + } + }, + "y": null, + "ysrc": "Total" + } + ], + "layout": { + "xaxis": { + "range": [ + 1, + 412 + ], + "autorange": true, + "type": "linear" + }, + "yaxis": { + "range": [ + -0.39166666666666683, + 27.241666666666667 + ], + "autorange": true, + "type": "linear" + }, + "autosize": true, + "mapbox": { + "style": "open-street-map" + } + }, + "frames": [] + }, + "name": "Invoices", + "id": "ieZfcITwDUTADwOmQlYyL", + "createdAt": "2020-11-03T14:17:49.524Z" +} \ No newline at end of file diff --git a/src/assets/images/info.svg b/src/assets/images/info.svg new file mode 100644 index 0000000..201f843 --- /dev/null +++ b/src/assets/images/info.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/CheckBox.vue b/src/components/CheckBox.vue index 9df17b9..8252d43 100644 --- a/src/components/CheckBox.vue +++ b/src/components/CheckBox.vue @@ -35,11 +35,6 @@ export default { checked: this.init } }, - watch: { - checked () { - this.$emit('change', this.checked) - } - }, methods: { onClick () { this.checked = !this.checked diff --git a/src/components/MainMenu.vue b/src/components/MainMenu.vue index 98d12d4..b8c69c7 100644 --- a/src/components/MainMenu.vue +++ b/src/components/MainMenu.vue @@ -8,21 +8,70 @@ Save Create + + + + + Save query + + + + + + Note: Predefined queries can't be edited. + That's why your modifications will be saved as a new query. Enter the name for it. + + + + + Cancel + Save + +