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/public/error.html CHANGED
@@ -26,12 +26,23 @@
26
26
 
27
27
  <script lang="javascript">
28
28
  window.dbgate_page = 'error';
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/index.html CHANGED
@@ -26,12 +26,23 @@
26
26
 
27
27
  <script lang="javascript">
28
28
  window.dbgate_page = '';
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 = '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) {
package/public/login.html CHANGED
@@ -26,12 +26,23 @@
26
26
 
27
27
  <script lang="javascript">
28
28
  window.dbgate_page = '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) {
@@ -26,12 +26,23 @@
26
26
 
27
27
  <script lang="javascript">
28
28
  window.dbgate_page = 'not-logged';
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 = 'redirect';
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 = 'set-admin-password';
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) {