mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 18:48:55 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2464d839f | ||
|
|
316e603c3c |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sqliteviz",
|
"name": "sqliteviz",
|
||||||
"version": "0.24.0",
|
"version": "0.24.1",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -216,6 +216,6 @@ table.sqliteviz-table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.column-cell {
|
.column-cell {
|
||||||
max-width: 0;
|
max-width: 150px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
v-if="currentFormat === 'json' && formattedJson"
|
v-if="currentFormat === 'json' && formattedJson"
|
||||||
:value="formattedJson"
|
:value="formattedJson"
|
||||||
:options="cmOptions"
|
:options="cmOptions"
|
||||||
|
class="json-value"
|
||||||
/>
|
/>
|
||||||
<pre
|
<pre
|
||||||
v-if="currentFormat === 'text'"
|
v-if="currentFormat === 'text'"
|
||||||
@@ -62,8 +63,8 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
formats: [
|
formats: [
|
||||||
{ text: 'JSON', value: 'json' },
|
{ text: 'Text', value: 'text' },
|
||||||
{ text: 'Text', value: 'text' }
|
{ text: 'JSON', value: 'json' }
|
||||||
],
|
],
|
||||||
currentFormat: 'text',
|
currentFormat: 'text',
|
||||||
cmOptions: {
|
cmOptions: {
|
||||||
@@ -107,6 +108,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
cellValue () {
|
cellValue () {
|
||||||
|
this.messages = []
|
||||||
if (this.currentFormat === 'json') {
|
if (this.currentFormat === 'json') {
|
||||||
this.formatJson(this.cellValue)
|
this.formatJson(this.cellValue)
|
||||||
}
|
}
|
||||||
@@ -154,17 +156,22 @@ export default {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
.text-value {
|
.text-value {
|
||||||
padding: 8px 8px;
|
padding: 0 8px;
|
||||||
|
margin: 0;
|
||||||
color: var(--color-text-base);
|
color: var(--color-text-base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.json-value {
|
||||||
|
margin-top: -4px;
|
||||||
|
}
|
||||||
|
|
||||||
.text-value.meta-value {
|
.text-value.meta-value {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: var(--color-text-light-2);
|
color: var(--color-text-light-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.messages {
|
.messages {
|
||||||
margin: 8px;
|
margin: 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.value-viewer-toolbar button {
|
.value-viewer-toolbar button {
|
||||||
|
|||||||
Reference in New Issue
Block a user