diff --git a/Podfile b/Podfile index a4c28aa..49ce6fa 100644 --- a/Podfile +++ b/Podfile @@ -7,7 +7,7 @@ target 'SQLiteViewer' do use_frameworks! # Pods for SQLiteViewer - pod 'Http.swift', '~> 2.1' + pod 'Http.swift', '~> 2.2.1' pod 'SQLite.swift', '~> 0.11.5' target 'SQLiteViewerTests' do diff --git a/SQLite.viewer.podspec b/SQLite.viewer.podspec index 3549237..7cd98ef 100644 --- a/SQLite.viewer.podspec +++ b/SQLite.viewer.podspec @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source_files = 'Sources/*.swift' s.resource_bundles = { 'com.biatoms.sqlite-viewer.assets' => ['Sources/**/*.{js,css,ico,html}'] } - s.dependency 'Http.swift', '~> 2.1.1' + s.dependency 'Http.swift', '~> 2.2.1' s.dependency 'SQLite.swift', '>= 0.11.5' end diff --git a/Sources/Assets/css/app.css b/Sources/Assets/css/app.css new file mode 100644 index 0000000..479e8a5 --- /dev/null +++ b/Sources/Assets/css/app.css @@ -0,0 +1,62 @@ +#query-container { + position: fixed; + left: 0px; + top: 0px; + width: 100%; + height: 50px; + z-index: 2; + background: white; +} +#query-container>div { + display: flex; + vertical-align: middle; +} +#query-container>div>textarea { + flex-grow: 1; + min-width: 50%; +} +.row { + margin: 50px 0 0; + display: grid; + grid-template-columns: 1fr 1fr 8fr; + gap: 10px; +} +.row>div.databases { + grid-area: 1/1/1/1; +} +.row>div.tables { + grid-area: 1/2/1/2; +} +.row>div.data { + grid-area: 1/3/1/3; +} +table thead { + position: sticky; + top: 50px; + z-index: 1; +} +table thead td, table thead th { + background: white; +} +table tr td { + position: relative; +} +table tr td .edit-item { + opacity: 0; + position: absolute; + top: 0px; + right: 0px; +} +table tr:hover td .edit-item { + opacity: 1; +} +table tbody td span { + display: inline-block; +} +table tbody td.is-long span { + width: 50vw; + word-break: break-all; +} +table tbody td.is-null { + color: gray; +} diff --git a/Sources/Assets/index.html b/Sources/Assets/index.html index f188d35..e1b5415 100755 --- a/Sources/Assets/index.html +++ b/Sources/Assets/index.html @@ -8,28 +8,26 @@ + +
- -