Skip to content

Commit b0aa843

Browse files
authored
Update About and ReadMe (#18)
* Update Project Settings * Update About * Update LICENSE * Update README
1 parent f660ba4 commit b0aa843

File tree

10 files changed

+95
-147
lines changed

10 files changed

+95
-147
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 SQLabs
3+
Copyright (c) 2024 SQLabs and jo-tools
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,64 @@
11
# cubeSQL Web Admin
2-
A web based administration for [cubeSQL Server](https://sqlabs.com/cubesql) (© sqlabs)
2+
A web based administration for [cubeSQL Server](https://sqlabs.com/cubesql) (© [sqlabs](https://sqlabs.com/))
33

44
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
55

66
## Description
77

8-
*[cubeSQL](https://sqlabs.com/cubesql) is a fully featured and high performance relational database management system built on top of the sqlite database engine.*
8+
*[cubeSQL Server](https://sqlabs.com/cubesql) is a fully featured and high performance relational database management system built on top of the sqlite database engine.*
99

10-
cubeSQL Web Admin is a web based administration tool for cubeSQL.
10+
cubeSQL Web Admin is a web based administration tool for [cubeSQL Server](https://sqlabs.com/cubesql).
11+
12+
![ScreenShot: Login](screenshots/login.png?raw=true)
13+
14+
![ScreenShot: Databases](screenshots/databases.png?raw=true)
1115

1216
## Build from Source Code
1317

1418
In order to build cubeSQL Web Admin application, [Xojo](https://xojo.com/) and the latest [cubeSQL Xojo Plugin](https://github.com/cubesql/cubeSQLAdmin) are required.
1519

1620
- Xojo can be obtained from: https://xojo.com/
1721
- Latest [cubeSQL Xojo Plugin](https://github.com/cubesql/cubeSQLAdmin) can be found inside the Plugins folder
22+
23+
## Ready to use executables and Docker Images
24+
25+
1. Executables are provided with the [Releases](https://github.com/cubesql/webadmin/releases).
26+
- A Shell Script is provided to choose a Port and launch the Web Application
27+
- It is up to you to install the Web Application as a service.
28+
See [Xojo Documentation: Deployment Overview](https://documentation.xojo.com/topics/application_deployment/web/deployment_overview.html)
29+
30+
2. Docker Images provided by jo-tools can be found here:
31+
[Docker Hub: jotools/cubesql-webadmin](https://hub.docker.com/r/jotools/cubesql-webadmin)
32+
33+
3. Docker Compose setups provided by jo-tools can be found here:
34+
[GitHub: jo-tools/docker](https://github.com/jo-tools/docker)
35+
- These setups contain both cubeSQL Server and cubeSQL Web Admin
36+
37+
## Configuration
38+
39+
cubeSQL Web Admin supports the following launch arguments and corresponding environment variables:
40+
41+
#### Web Application
42+
- `--Port` | `CUBESQL_WEBADMIN_PORT`
43+
44+
#### Prefill Login data:
45+
46+
- `--CubeSQLHostname` | `CUBESQL_HOSTNAME`
47+
- `--CubeSQLPort` | `CUBESQL_PORT`
48+
- `--CubeSQLEncryption` | `CUBESQL_ENCRYPTION` with values: `NONE`, `AES128`, `AES128`, `SSL`
49+
For Encryption type `SSL`:
50+
- `--CubeSQLSSLCertificate` | `CUBESQL_SSL_CERTIFICATE`
51+
with value: `/path/to/file`
52+
- `--CubeSQLSSLCertificatePassword` | `CUBESQL_SSL_CERTIFICATEPASSWORD`
53+
with value: `/path/to/file.txt` | plain text
54+
- `--CubeSQLSSLRootCertificate` | `CUBESQL_SSL_ROOTCERTIFICATE`
55+
with value: `/path/to/file`
56+
- `--CubeSQLSSLCipherList` | `CUBESQL_SSL_CIPHERLIST`
57+
with value: `/path/to/file.txt` | plain text
58+
- `--CubeSQLUsername` | `CUBESQL_USERNAME`
59+
Only if Username is prefilled:
60+
- `--CubeSQLPassword` | `CUBESQL_PASSWORD`
61+
62+
63+
## About
64+
cubeSQL Web Admin has been written by Jürg Otter, who is a long term user of Xojo and working for [CM Informatik AG](https://cmiag.ch/). Their Application [CMI LehrerOffice](https://cmi-bildung.ch/) is a Xojo Design Award Winner 2018. In his leisure time Jürg provides some [bits and pieces for Xojo Developers](https://www.jo-tools.ch/).

cubesql-webadmin.xojo_project

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,16 @@ Folder=information;webapp/containers/information;&h000000005EFC7FFF;&h0000000058
6666
WebContainer=cntCommands;webapp/containers/information/cntCommands.xojo_code;&h000000002752C7FF;&h000000005EFC7FFF;false
6767
WebContainer=cntClients;webapp/containers/information/cntClients.xojo_code;&h000000002140EFFF;&h000000005EFC7FFF;false
6868
WebContainer=cntLog;webapp/containers/information/cntLog.xojo_code;&h000000002B1057FF;&h000000005EFC7FFF;false
69-
MultiImage=PayPal;resources/PayPal.xojo_image;&h0000000027497FFF;&h0000000035B107FF;false
7069
DefaultWindow=LoginPage
7170
MajorVersion=0
7271
MinorVersion=0
7372
SubVersion=12
7473
NonRelease=0
7574
Release=0
7675
InfoVersion=cubeSQL Web Admin
77-
LongVersion=jo-tools.ch
76+
LongVersion=SQLabs
7877
ShortVersion=0.0.12
79-
WinCompanyName=jo-tools.ch
78+
WinCompanyName=sqlabs.com
8079
WinInternalName=cubesqlwebadmin
8180
WinProductName=cubeSQL Web Admin
8281
WinFileDescription=cubeSQL Web Admin
@@ -93,8 +92,8 @@ MDI=0
9392
MDICaption=
9493
DefaultEncoding=&h0
9594
AppIcon=cubesql-webadmin.xojo_resources;&h0
96-
OSXBundleID=ch.jo-tools.cubesqlwebadmin
97-
DebuggerCommandLine=--CubeSQLHostname=localhost --CubeSQLPort=4440 --CubeSQLUsername=admin --CubeSQLPassword=admin
95+
OSXBundleID=com.sqlabs.cubesqlwebadmin
96+
DebuggerCommandLine=--CubeSQLHostname=localhost --CubeSQLPort=4430 --CubeSQLUsername=admin --CubeSQLPassword=admin
9897
UseGDIPlus=False
9998
UseBuildsFolder=True
10099
HiDPI=True

resources/PayPal.xojo_image

Lines changed: 0 additions & 43 deletions
This file was deleted.

resources/PayPal_1x.png

-3.33 KB
Binary file not shown.

resources/PayPal_2x.png

-8.86 KB
Binary file not shown.

screenshots/databases.png

191 KB
Loading

screenshots/login.png

193 KB
Loading

webapp/dialogs/dlgAbout.xojo_code

Lines changed: 24 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Begin dlgBase dlgAbout
44
ControlCount = 0
55
ControlID = ""
66
Enabled = True
7-
Height = 655
7+
Height = 600
88
Index = -2147483648
99
Indicator = 0
1010
LayoutDirection = 0
@@ -30,7 +30,7 @@ Begin dlgBase dlgAbout
3030
ControlID = ""
3131
Enabled = True
3232
HasBackgroundColor= False
33-
Height = 549
33+
Height = 494
3434
Index = -2147483648
3535
Indicator = 0
3636
LayoutDirection = 0
@@ -511,7 +511,7 @@ Begin dlgBase dlgAbout
511511
Width = 140
512512
_mPanelIndex = -1
513513
End
514-
Begin WebLink labWrittenBy
514+
Begin WebLink labWrittenByWebsite
515515
Appearance = 0
516516
Bold = False
517517
ControlID = ""
@@ -534,57 +534,22 @@ Begin dlgBase dlgAbout
534534
PanelIndex = "0"
535535
Parent = "rctFormContent"
536536
Scope = 2
537-
TabIndex = 13
537+
TabIndex = 14
538538
TabPanelIndex = 0
539539
TabStop = True
540540
Target = 1
541541
Text = "jo-tools.ch"
542542
TextAlignment = 0
543543
TextColor = &c000000FF
544544
Tooltip = ""
545-
Top = 406
546-
Underline = False
547-
URL = "#constUrl_JOTools"
548-
Visible = True
549-
Width = 266
550-
_mPanelIndex = -1
551-
End
552-
Begin WebLabel labContactInfo
553-
Bold = False
554-
ControlID = ""
555-
Enabled = True
556-
FontName = ""
557-
FontSize = 12.0
558-
Height = 58
559-
Index = -2147483648
560-
Indicator = 0
561-
Italic = False
562-
Left = 214
563-
LockBottom = False
564-
LockedInPosition= True
565-
LockHorizontal = False
566-
LockLeft = True
567-
LockRight = True
568-
LockTop = True
569-
LockVertical = False
570-
Multiline = True
571-
PanelIndex = "0"
572-
Parent = "rctFormContent"
573-
Scope = 2
574-
TabIndex = 14
575-
TabPanelIndex = 0
576-
TabStop = True
577-
Text = "If you want to say thanks I'd appreciate a message or a donation via PayPal."
578-
TextAlignment = 0
579-
TextColor = colTextKey
580-
Tooltip = ""
581545
Top = 452
582546
Underline = False
547+
URL = "#constUrl_JOTools"
583548
Visible = True
584-
Width = 266
549+
Width = 120
585550
_mPanelIndex = -1
586551
End
587-
Begin WebLink labContact
552+
Begin WebLink labWrittenByGitHub
588553
Appearance = 0
589554
Bold = False
590555
ControlID = ""
@@ -595,12 +560,12 @@ Begin dlgBase dlgAbout
595560
Index = -2147483648
596561
Indicator = 0
597562
Italic = False
598-
Left = 214
563+
Left = 342
599564
LockBottom = False
600565
LockedInPosition= True
601566
LockHorizontal = False
602567
LockLeft = True
603-
LockRight = False
568+
LockRight = True
604569
LockTop = True
605570
LockVertical = False
606571
Multiline = False
@@ -610,19 +575,19 @@ Begin dlgBase dlgAbout
610575
TabIndex = 15
611576
TabPanelIndex = 0
612577
TabStop = True
613-
Target = 2
614-
Text = "Contact"
578+
Target = 1
579+
Text = "GitHub: jo-tools"
615580
TextAlignment = 0
616581
TextColor = &c000000FF
617582
Tooltip = ""
618-
Top = 518
583+
Top = 452
619584
Underline = False
620-
URL = "#constUrl_MailTo_Contact"
585+
URL = "#constUrl_JOToolsGitHub"
621586
Visible = True
622-
Width = 100
587+
Width = 140
623588
_mPanelIndex = -1
624589
End
625-
Begin WebLabel labDonation
590+
Begin WebLabel labWrittenByAuthor
626591
Bold = False
627592
ControlID = ""
628593
Enabled = True
@@ -632,29 +597,29 @@ Begin dlgBase dlgAbout
632597
Index = -2147483648
633598
Indicator = 0
634599
Italic = False
635-
Left = 360
600+
Left = 214
636601
LockBottom = False
637602
LockedInPosition= True
638603
LockHorizontal = False
639-
LockLeft = False
604+
LockLeft = True
640605
LockRight = True
641606
LockTop = True
642607
LockVertical = False
643608
Multiline = False
644-
PanelIndex = "0"
609+
PanelIndex = 0
645610
Parent = "rctFormContent"
646611
Scope = 2
647-
TabIndex = 16
612+
TabIndex = 13
648613
TabPanelIndex = 0
649614
TabStop = True
650-
Text = "Donation"
651-
TextAlignment = 3
615+
Text = "Jürg Otter"
616+
TextAlignment = 0
652617
TextColor = &c000000FF
653618
Tooltip = ""
654-
Top = 518
619+
Top = 406
655620
Underline = False
656621
Visible = True
657-
Width = 120
622+
Width = 266
658623
_mPanelIndex = -1
659624
End
660625
End
@@ -680,7 +645,7 @@ Begin dlgBase dlgAbout
680645
TabIndex = 1
681646
TabStop = True
682647
Tooltip = ""
683-
Top = 597
648+
Top = 542
684649
Visible = True
685650
Width = 100
686651
_mPanelIndex = -1
@@ -689,11 +654,6 @@ End
689654
#tag EndWebPage
690655

691656
#tag WindowCode
692-
#tag Property, Flags = &h21
693-
Private wpPayPal As WebPicture
694-
#tag EndProperty
695-
696-
697657
#tag EndWindowCode
698658

699659
#tag Events labVersion
@@ -758,21 +718,6 @@ End
758718
End Sub
759719
#tag EndEvent
760720
#tag EndEvents
761-
#tag Events labDonation
762-
#tag Event
763-
Sub Opening()
764-
Self.wpPayPal = New WebPicture(PayPal, "public.png")
765-
766-
Var divBgColor As String = ""
767-
If Session.IsDarkMode Then
768-
divBgColor = " background-color: #D0D0D0;"
769-
End If
770-
771-
Me.Text = "<raw><div style=""padding: 10px 10px 10px 10px;" + divBgColor + """><a href=""https://paypal.me/jotools"" target=""_blank"" style=""cursor: pointer;""><img src=""" + Self.wpPayPal.URL + """ width=""100"" height=""26"" border=""0""></a></div></raw>"
772-
773-
End Sub
774-
#tag EndEvent
775-
#tag EndEvents
776721
#tag Events btnOk
777722
#tag Event
778723
Sub Pressed()

0 commit comments

Comments
 (0)