mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
add .sqlite extension in db uploader
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
.worning {
|
.warning {
|
||||||
background-color: var(--color-bg-warning);
|
background-color: var(--color-bg-warning);
|
||||||
color: var(--color-text-base);
|
color: var(--color-text-base);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-show="visible" class="chart-container">
|
<div v-show="visible" class="chart-container">
|
||||||
<div class="worning chart-worning" v-show="!sqlResult && visible">
|
<div class="warning chart-warning" v-show="!sqlResult && visible">
|
||||||
There is no data to build a chart. Run your sql query and make sure the result is not empty.
|
There is no data to build a chart. Run your sql query and make sure the result is not empty.
|
||||||
</div>
|
</div>
|
||||||
<PlotlyEditor
|
<PlotlyEditor
|
||||||
@@ -95,7 +95,7 @@ export default {
|
|||||||
.chart-container {
|
.chart-container {
|
||||||
height: calc(100% - 89px);
|
height: calc(100% - 89px);
|
||||||
}
|
}
|
||||||
.chart-worning {
|
.chart-warning {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
id="assetsFieldHandle"
|
id="assetsFieldHandle"
|
||||||
@change="loadDb"
|
@change="loadDb"
|
||||||
ref="file"
|
ref="file"
|
||||||
accept=".db"
|
accept=".db,.sqlite,.sqlite3"
|
||||||
/>
|
/>
|
||||||
<div>
|
<div>
|
||||||
Drop the database file to upload here or click to choose a file from your computer.
|
Drop the database file to upload here or click to choose a file from your computer.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<template #left-pane>
|
<template #left-pane>
|
||||||
<schema v-if="$store.state.schema"/>
|
<schema v-if="$store.state.schema"/>
|
||||||
<div v-else id="empty-schema-container">
|
<div v-else id="empty-schema-container">
|
||||||
<div class="worning">
|
<div class="warning">
|
||||||
Database is not uploaded. Queries can’t be run without database.
|
Database is not uploaded. Queries can’t be run without database.
|
||||||
</div>
|
</div>
|
||||||
<db-upload id="db-uploader"/>
|
<db-upload id="db-uploader"/>
|
||||||
@@ -56,7 +56,7 @@ export default {
|
|||||||
margin: 24px;
|
margin: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.worning {
|
.warning {
|
||||||
padding: 12px 24px;
|
padding: 12px 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user