@jsenv/plugin-toolbar 0.1.0 → 0.1.2
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/dist/css/document_execution_indicator.css +87 -0
- package/dist/css/globals.css +75 -0
- package/dist/css/server_indicator.css +83 -0
- package/dist/css/theme_light.css +110 -0
- package/dist/css/toolbar.css +7 -683
- package/dist/css/toolbar_menu_overflow.css +59 -0
- package/dist/css/toolbar_settings.css +202 -0
- package/dist/css/tooltips.css +67 -0
- package/dist/js/animation.js +282 -0
- package/dist/js/animation_actions.js +7 -0
- package/dist/js/animation_effects.js +10 -0
- package/dist/js/animation_signals.js +4 -0
- package/dist/js/changes_actions.js +7 -0
- package/dist/js/changes_indicator.js +57 -0
- package/dist/js/changes_signals.js +2 -0
- package/dist/js/document_execution_indicator.js +62 -0
- package/dist/js/document_index_link.js +4 -0
- package/dist/js/dom.js +48 -0
- package/dist/js/execution_actions.js +46 -0
- package/dist/js/execution_effects.js +16 -0
- package/dist/js/execution_signals.js +17 -0
- package/dist/js/hooks.mjs +185 -0
- package/dist/js/iframe_to_parent_href.js +10 -0
- package/dist/js/notification_actions.js +60 -0
- package/dist/js/notification_context.js +1 -0
- package/dist/js/notification_effects.js +9 -0
- package/dist/js/notification_signals.js +5 -0
- package/dist/js/parent_window_actions.js +39 -0
- package/dist/js/parent_window_context.js +6 -0
- package/dist/js/parent_window_effects.js +15 -0
- package/dist/js/parent_window_signals.js +25 -0
- package/dist/js/preact.mjs +316 -0
- package/dist/js/responsive.js +104 -0
- package/dist/js/server_actions.js +7 -0
- package/dist/js/server_effects.js +9 -0
- package/dist/js/server_indicator.js +52 -0
- package/dist/js/server_signals.js +10 -0
- package/dist/js/settings_actions.js +7 -0
- package/dist/js/settings_signals.js +2 -0
- package/dist/js/signals-core.mjs +339 -0
- package/dist/js/signals.mjs +202 -0
- package/dist/js/theme_actions.js +7 -0
- package/dist/js/theme_effects.js +6 -0
- package/dist/js/theme_signals.js +4 -0
- package/dist/js/toolbar_animation_setting.js +21 -0
- package/dist/js/toolbar_autoreload_setting.js +67 -0
- package/dist/js/toolbar_close_button.js +14 -0
- package/dist/js/toolbar_core.js +8 -1792
- package/dist/js/toolbar_injector.js +2 -4
- package/dist/js/toolbar_menu_overflow.js +81 -0
- package/dist/js/toolbar_notification_setting.js +72 -0
- package/dist/js/toolbar_open_actions.js +7 -0
- package/dist/js/toolbar_open_effects.js +4 -0
- package/dist/js/toolbar_open_signals.js +4 -0
- package/dist/js/toolbar_opening.js +65 -0
- package/dist/js/toolbar_overlay.js +69 -0
- package/dist/js/toolbar_settings.js +44 -0
- package/dist/js/toolbar_state_context.js +1 -0
- package/dist/js/toolbar_state_effects.js +8 -0
- package/dist/js/toolbar_state_signals.js +17 -0
- package/dist/js/toolbar_theme_setting.js +13 -0
- package/dist/js/toolbar_ui.js +20 -0
- package/dist/js/tooltip_actions.js +6 -0
- package/dist/js/variant.js +53 -0
- package/dist/jsenv_plugin_toolbar.js +3 -6
- package/package.json +2 -2
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
#execution_pending_icon {
|
|
2
|
+
width: 20px;
|
|
3
|
+
height: 20px;
|
|
4
|
+
color: #cecece;
|
|
5
|
+
margin: 10px;
|
|
6
|
+
transform: scaleX(-1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
#execution_pending_icon[data-animate] {
|
|
10
|
+
opacity: 0;
|
|
11
|
+
transform-origin: center;
|
|
12
|
+
animation: 1s linear infinite rotateLoader !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@keyframes rotateLoader {
|
|
16
|
+
0% {
|
|
17
|
+
opacity: 1;
|
|
18
|
+
transform: scaleX(-1)rotate(360deg);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
50% {
|
|
22
|
+
opacity: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
100% {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
transform: scaleX(-1)rotate(0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#execution_completed_icon {
|
|
32
|
+
width: 25px;
|
|
33
|
+
height: 25px;
|
|
34
|
+
opacity: 0;
|
|
35
|
+
stroke-width: 5px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#execution_completed_icon[data-animate] {
|
|
39
|
+
opacity: 1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#execution_completed_icon[data-animate] path {
|
|
43
|
+
transform-origin: 50%;
|
|
44
|
+
stroke-dasharray: 48;
|
|
45
|
+
stroke-dashoffset: 48px;
|
|
46
|
+
stroke: green;
|
|
47
|
+
animation: .5s cubic-bezier(.65, 0, .45, 1) forwards stroke;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@keyframes stroke {
|
|
51
|
+
100% {
|
|
52
|
+
stroke-dashoffset: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
#execution_failed_icon {
|
|
57
|
+
width: 20px;
|
|
58
|
+
height: 20px;
|
|
59
|
+
opacity: 0;
|
|
60
|
+
stroke-width: 5px;
|
|
61
|
+
margin: 10px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
#execution_failed_icon rect {
|
|
65
|
+
width: 33px;
|
|
66
|
+
height: 0;
|
|
67
|
+
fill: #d74640;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
#execution_failed_icon[data-animate] {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#execution_failed_icon[data-animate] #cross_p1 {
|
|
75
|
+
animation: .5s cubic-bezier(.65, 0, .45, 1) forwards draw;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
#execution_failed_icon[data-animate] #cross_p2 {
|
|
79
|
+
animation: .5s cubic-bezier(.65, 0, .45, 1) .2s forwards draw;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@keyframes draw {
|
|
83
|
+
100% {
|
|
84
|
+
height: 376.964px;
|
|
85
|
+
width: 45px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
html, body {
|
|
6
|
+
height: 100%;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
html {
|
|
12
|
+
font-family: arial, sans;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
html[data-animation-disabled] * {
|
|
16
|
+
transition: none !important;
|
|
17
|
+
animation-duration: 0s !important;
|
|
18
|
+
animation-delay: 0s !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-when], [data-force-hide] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
button:focus, a:focus, input:focus, [data-contains-hidden-input] input:focus + * {
|
|
26
|
+
outline-offset: -2px;
|
|
27
|
+
outline-style: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-contains-hidden-input] input:focus + * {
|
|
31
|
+
outline-offset: -2px;
|
|
32
|
+
outline-width: 4px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
button:focus-visible, a:focus-visible, input:focus-visible, [data-contains-hidden-input] input:focus-visible + * {
|
|
36
|
+
outline-style: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-contains-hidden-input] input:focus-visible + * {
|
|
40
|
+
outline-color: #0096ff;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@-moz-document url-prefix() {
|
|
44
|
+
button:focus-visible, a:focus-visible, input:focus-visible, [data-input-customized] input:focus-visible + * {
|
|
45
|
+
outline-offset: 0;
|
|
46
|
+
outline: 2px solid #0096ff;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
::-moz-focus-inner {
|
|
51
|
+
border: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
#toolbar_wrapper {
|
|
55
|
+
justify-content: center;
|
|
56
|
+
display: flex;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#toolbar_overlay {
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
filter: url(#better-blur);
|
|
63
|
+
background-color: #0003;
|
|
64
|
+
position: fixed;
|
|
65
|
+
top: 0;
|
|
66
|
+
left: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#toolbar {
|
|
70
|
+
height: 40px;
|
|
71
|
+
width: 100%;
|
|
72
|
+
background: #404040;
|
|
73
|
+
position: fixed;
|
|
74
|
+
bottom: 0;
|
|
75
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
#server_indicator button {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
#server_indicator button svg {
|
|
6
|
+
width: 40px;
|
|
7
|
+
height: 40px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
#server_indicator .autoreload {
|
|
11
|
+
width: 32px;
|
|
12
|
+
height: 32px;
|
|
13
|
+
margin: 4px;
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.autoreload[data-variant="enabled"] {
|
|
20
|
+
color: green;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#server_indicator .icon {
|
|
24
|
+
width: 40px;
|
|
25
|
+
height: 40px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.server_indicator_circle {
|
|
29
|
+
stroke: #000;
|
|
30
|
+
stroke-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.server_indicator_circle[data-variant="connecting"] {
|
|
34
|
+
fill: #cecece;
|
|
35
|
+
transform-origin: center;
|
|
36
|
+
animation: 1.2s ease-out infinite wink;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes wink {
|
|
40
|
+
0% {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
80% {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
100% {
|
|
49
|
+
opacity: 0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.server_indicator_circle[data-variant="connected"] {
|
|
54
|
+
fill: green;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.server_indicator_circle[data-variant="closed"] {
|
|
58
|
+
fill: #c00;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.server_indicator_ring {
|
|
62
|
+
stroke: #cecece75;
|
|
63
|
+
stroke-width: 4px;
|
|
64
|
+
fill: #0000;
|
|
65
|
+
transform-origin: center;
|
|
66
|
+
animation: 1.2s ease-out infinite pulse;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@keyframes pulse {
|
|
70
|
+
0% {
|
|
71
|
+
opacity: 0;
|
|
72
|
+
transform: scale(0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
50% {
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
100% {
|
|
80
|
+
opacity: 0;
|
|
81
|
+
transform: scale(1);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
html[data-theme="light"] #toolbar {
|
|
2
|
+
background: #e8eff3;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
html[data-theme="light"] .toolbar_icon {
|
|
6
|
+
fill: #404040;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html[data-theme="light"] .toolbar_icon:hover {
|
|
10
|
+
fill: #757575 !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html[data-theme="light"] #loader-icon {
|
|
14
|
+
color: #404040;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
html[data-theme="light"] #settings-box, html[data-theme="light"] #settings[data-active] button {
|
|
18
|
+
background: #87acd3;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
html[data-theme="light"] .settings-box-item {
|
|
22
|
+
background: #97b9da;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
html[data-theme="light"] #settings-box-header .settings-icon {
|
|
26
|
+
stroke: #076570;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
html[data-theme="light"] #button-close-settings {
|
|
30
|
+
fill: #076570;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
html[data-theme="light"] #settings-box h3, html[data-theme="light"] #settings-box .category-title {
|
|
34
|
+
color: #076570;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
html[data-theme="light"] #settings-box .category-title svg {
|
|
38
|
+
fill: #076570;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
html[data-theme="light"] #settings-box .category-subtitle {
|
|
42
|
+
color: #5d5d5d;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
html[data-theme="light"] label {
|
|
46
|
+
color: #002e33;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
html[data-theme="light"] .switch input + * .slider, html[data-theme="light"] .switch input + * .square {
|
|
50
|
+
background-color: gray;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
html[data-theme="light"] .switch input:checked + * .slider, html[data-theme="light"] .switch input:checked + * .square {
|
|
54
|
+
background-color: #076570;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
html[data-theme="light"] .tooltip {
|
|
58
|
+
color: #fff;
|
|
59
|
+
background-color: #8a919a;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
html[data-theme="light"] .tooltip_action {
|
|
63
|
+
border-color: #fff;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
html[data-theme="light"] .tooltip:after {
|
|
67
|
+
border-color: #8a919a #0000 #0000;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
html[data-theme="light"] #menu_overflow_button {
|
|
71
|
+
background: #e8eff3;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
html[data-theme="light"] #toolbar[data-menu-overflow-opened] #menu_overflow_button {
|
|
75
|
+
background: #a5a9ad;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
html[data-theme="light"] #menu_overflow {
|
|
79
|
+
background: #dfe4e7;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
html[data-theme="light"] h2, html[data-theme="light"] h4 {
|
|
83
|
+
color: #076570;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
html[data-theme="light"] #explorables_icon {
|
|
87
|
+
fill: #076570;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
html[data-theme="light"] #explorables h2 span {
|
|
91
|
+
color: #ff8d00;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
html[data-theme="light"] article[data-page="file-list"] {
|
|
95
|
+
background: #bbd5ea;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
html[data-theme="light"] #explorables fieldset input:checked + * {
|
|
99
|
+
color: #ff8d00;
|
|
100
|
+
background: #bbd5ea;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
html[data-theme="light"] #explorables #explorables-header, html[data-theme="light"] #explorables fieldset label input + * {
|
|
104
|
+
background: #ddf0ff;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
html[data-theme="light"] .execution-link {
|
|
108
|
+
color: #076570;
|
|
109
|
+
background: #ddf0ff;
|
|
110
|
+
}
|