dbgate-web-premium 6.6.9 → 6.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dbgate-web-premium",
3
- "version": "6.6.9",
3
+ "version": "6.6.11",
4
4
  "scripts": {
5
5
  "build": "yarn build:index && rollup -c",
6
6
  "dev": "yarn build:index && cross-env API_URL=http://localhost:3000 rollup -c -w",
@@ -31,11 +31,11 @@
31
31
  "chartjs-adapter-moment": "^1.0.0",
32
32
  "chartjs-plugin-datalabels": "^2.2.0",
33
33
  "cross-env": "^7.0.3",
34
- "dbgate-datalib": "^6.6.9",
34
+ "dbgate-datalib": "^6.6.11",
35
35
  "dbgate-query-splitter": "^4.11.7",
36
- "dbgate-sqltree": "^6.6.9",
37
- "dbgate-tools": "^6.6.9",
38
- "dbgate-types": "^6.6.9",
36
+ "dbgate-sqltree": "^6.6.11",
37
+ "dbgate-tools": "^6.6.11",
38
+ "dbgate-types": "^6.6.11",
39
39
  "diff": "^5.0.0",
40
40
  "diff2html": "^3.4.13",
41
41
  "file-selector": "^0.2.4",
@@ -26,12 +26,23 @@
26
26
 
27
27
  <script lang="javascript">
28
28
  window.dbgate_page = 'admin-license';
29
- </script>
30
29
 
30
+ if (localStorage.getItem('currentThemeType') == 'dark') {
31
+ document.documentElement.style.setProperty('--theme-background', '#111');
32
+ document.documentElement.style.setProperty('--theme-foreground', '#e3e3e3');
33
+ } else {
34
+ document.documentElement.style.setProperty('--theme-background', '#fff');
35
+ document.documentElement.style.setProperty('--theme-foreground', '#262626');
36
+ }
37
+ </script>
31
38
 
32
39
  <script defer src="build/bundle.js"></script>
33
40
 
34
41
  <style>
42
+ body {
43
+ background-color: var(--theme-background);
44
+ }
45
+
35
46
  .lds-ellipsis {
36
47
  display: inline-block;
37
48
  position: relative;
@@ -44,7 +55,7 @@
44
55
  width: 13px;
45
56
  height: 13px;
46
57
  border-radius: 50%;
47
- background: #000;
58
+ background: var(--theme-foreground);
48
59
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
49
60
  }
50
61
  .lds-ellipsis div:nth-child(1) {
@@ -26,12 +26,23 @@
26
26
 
27
27
  <script lang="javascript">
28
28
  window.dbgate_page = 'admin-login';
29
- </script>
30
29
 
30
+ if (localStorage.getItem('currentThemeType') == 'dark') {
31
+ document.documentElement.style.setProperty('--theme-background', '#111');
32
+ document.documentElement.style.setProperty('--theme-foreground', '#e3e3e3');
33
+ } else {
34
+ document.documentElement.style.setProperty('--theme-background', '#fff');
35
+ document.documentElement.style.setProperty('--theme-foreground', '#262626');
36
+ }
37
+ </script>
31
38
 
32
39
  <script defer src="build/bundle.js"></script>
33
40
 
34
41
  <style>
42
+ body {
43
+ background-color: var(--theme-background);
44
+ }
45
+
35
46
  .lds-ellipsis {
36
47
  display: inline-block;
37
48
  position: relative;
@@ -44,7 +55,7 @@
44
55
  width: 13px;
45
56
  height: 13px;
46
57
  border-radius: 50%;
47
- background: #000;
58
+ background: var(--theme-foreground);
48
59
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
49
60
  }
50
61
  .lds-ellipsis div:nth-child(1) {
package/public/admin.html CHANGED
@@ -26,12 +26,23 @@
26
26
 
27
27
  <script lang="javascript">
28
28
  window.dbgate_page = 'admin';
29
- </script>
30
29
 
30
+ if (localStorage.getItem('currentThemeType') == 'dark') {
31
+ document.documentElement.style.setProperty('--theme-background', '#111');
32
+ document.documentElement.style.setProperty('--theme-foreground', '#e3e3e3');
33
+ } else {
34
+ document.documentElement.style.setProperty('--theme-background', '#fff');
35
+ document.documentElement.style.setProperty('--theme-foreground', '#262626');
36
+ }
37
+ </script>
31
38
 
32
39
  <script defer src="build/bundle.js"></script>
33
40
 
34
41
  <style>
42
+ body {
43
+ background-color: var(--theme-background);
44
+ }
45
+
35
46
  .lds-ellipsis {
36
47
  display: inline-block;
37
48
  position: relative;
@@ -44,7 +55,7 @@
44
55
  width: 13px;
45
56
  height: 13px;
46
57
  border-radius: 50%;
47
- background: #000;
58
+ background: var(--theme-foreground);
48
59
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
49
60
  }
50
61
  .lds-ellipsis div:nth-child(1) {