mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 02:28:54 +08:00
fix global css in index.html
This commit is contained in:
23
README.md
23
README.md
@@ -4,20 +4,18 @@
|
|||||||
|
|
||||||
# sqliteviz
|
# sqliteviz
|
||||||
|
|
||||||
Sqliteviz is a single-page PWA for fully client-side visualisation of SQLite databases or CSV files.
|
Sqliteviz is a single-page offline-first PWA for fully client-side visualisation of SQLite databases or CSV files.
|
||||||
|
|
||||||
This application allows to:
|
With sqliteviz you can:
|
||||||
- run SQL queries in SQLite database and create all kinds of charts based on result set
|
- run SQL queries against a SQLite database and create [Plotly][11] charts based on the result sets
|
||||||
- import CSV file into SQLite database and visualize imported data
|
- import a CSV file into a SQLite database and visualize imported data
|
||||||
- save queries and chart settings
|
- manage queries and chart settings and run them against different databases
|
||||||
- import/export queries and chart settings to/from a JSON file
|
- import/export queries and chart settings to/from a JSON file
|
||||||
- manipulate saved queries (rename, duplicate, delete)
|
- export a modified SQLite database
|
||||||
- set predefined queries available for all users of sqliteviz on your server (read more about predefind queries on [Wiki][10])
|
- use it offline from your OS application menu like any other desktop app
|
||||||
- export modified SQLite database
|
|
||||||
- use it offline
|
|
||||||
|
|
||||||
## Get started
|
## Quickstart
|
||||||
The latest release of sqliteviz is running on [Github pages][6]. The simplest way to start is to use sqliteviz there.
|
The latest release of sqliteviz is deployed on GitHub Pages at [lana-k.github.io/sqliteviz][6].
|
||||||
|
|
||||||
## Wiki
|
## Wiki
|
||||||
For user documentation, check out sqliteviz [Wiki][7].
|
For user documentation, check out sqliteviz [Wiki][7].
|
||||||
@@ -33,8 +31,9 @@ It is built on top of [react-chart-editor][3], [sql.js][4] and [Vue-Codemirror][
|
|||||||
[3]: https://github.com/plotly/react-chart-editor
|
[3]: https://github.com/plotly/react-chart-editor
|
||||||
[4]: https://github.com/sql-js/sql.js
|
[4]: https://github.com/sql-js/sql.js
|
||||||
[5]: https://github.com/vuejs/vue
|
[5]: https://github.com/vuejs/vue
|
||||||
[6]: https://lana-k.github.io/sqliteviz
|
[6]: https://lana-k.github.io/sqliteviz/
|
||||||
[7]: https://github.com/lana-k/sqliteviz/wiki
|
[7]: https://github.com/lana-k/sqliteviz/wiki
|
||||||
[8]: https://github.com/surmon-china/vue-codemirror#readme
|
[8]: https://github.com/surmon-china/vue-codemirror#readme
|
||||||
[9]: https://www.papaparse.com/
|
[9]: https://www.papaparse.com/
|
||||||
[10]: https://github.com/lana-k/sqliteviz/wiki/Predefined-queries
|
[10]: https://github.com/lana-k/sqliteviz/wiki/Predefined-queries
|
||||||
|
[11]: https://github.com/plotly/plotly.js
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
<link rel="manifest" href="<%= BASE_URL %>manifest.webmanifest">
|
<link rel="manifest" href="<%= BASE_URL %>manifest.webmanifest">
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||||
<style>
|
<style>
|
||||||
#loading-wrapper {
|
#sqliteviz-loading-wrapper {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loading-text {
|
#sqliteviz-loading-text {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.svg-container {
|
#sqliteviz-loading-wrapper svg {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.loader-svg {
|
#sqliteviz-loading-wrapper circle {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0; right: 0; top: 0; bottom: 0;
|
left: 0; right: 0; top: 0; bottom: 0;
|
||||||
fill: none;
|
fill: none;
|
||||||
@@ -45,16 +45,16 @@
|
|||||||
stroke: #119DFF;
|
stroke: #119DFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loader-svg.bg {
|
#sqliteviz-loading-wrapper circle.bg {
|
||||||
stroke: #C8D4E3;
|
stroke: #C8D4E3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loader-svg.front {
|
#sqliteviz-loading-wrapper circle.front {
|
||||||
stroke-dasharray: 402px;
|
stroke-dasharray: 402px;
|
||||||
animation: loading 2s linear 0s infinite;
|
animation: sqliteviz-loading 2s linear 0s infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes loading {
|
@keyframes sqliteviz-loading {
|
||||||
0% {
|
0% {
|
||||||
stroke-dasharray: 100px 402px;
|
stroke-dasharray: 100px 402px;
|
||||||
stroke-dashoffset: 0;
|
stroke-dashoffset: 0;
|
||||||
@@ -75,17 +75,17 @@
|
|||||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<div id="loading-wrapper">
|
<div id="sqliteviz-loading-wrapper">
|
||||||
<div id="loading-text">LOADING</div>
|
<div id="sqliteviz-loading-text">LOADING</div>
|
||||||
<svg class="svg-container" height="170" width="170" viewBox="0 0 170 170">
|
<svg height="170" width="170" viewBox="0 0 170 170">
|
||||||
<circle
|
<circle
|
||||||
class="loader-svg bg"
|
class="bg"
|
||||||
cx="85"
|
cx="85"
|
||||||
cy="85"
|
cy="85"
|
||||||
r="80"
|
r="80"
|
||||||
/>
|
/>
|
||||||
<circle
|
<circle
|
||||||
class="loader-svg front"
|
class="front"
|
||||||
cx="85"
|
cx="85"
|
||||||
cy="85"
|
cy="85"
|
||||||
r="80"
|
r="80"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<svg :class="['svg-container', animationClass ]" height="20" width="20" viewBox="0 0 20 20">
|
<svg :class="animationClass" height="20" width="20" viewBox="0 0 20 20">
|
||||||
<circle
|
<circle
|
||||||
class="loader-svg bg"
|
class="loader-svg bg"
|
||||||
cx="10"
|
cx="10"
|
||||||
|
|||||||
Reference in New Issue
Block a user