Add config editor and dump viewer (#1)
* Begin working on config editor * Finish working on config editor * Add dump viewer * Fix online mode not showing in dump viewer * remove debug logging * Replace " with ' * Fix syntax error * Add more functionality to dump viewer * Improve style of plugin popover * Change card header colour * Use crypto api for generating uuids * Fix broken regex * Add german translations from @onebeastchris Co-authored-by: chris <github@onechris.mozmail.com> * Move pretty much all hardcoded text on dump and config viewer pages to translations * Use old yarn.lock * Add indicator to show if a plugin is enabled --------- Co-authored-by: chris <github@onechris.mozmail.com>
This commit is contained in:
1 parent
be8823e189
commit
aa3f447873
12 files changed
+1542
-2
No files matched your search
+115
-1
@@ -21,6 +21,7 @@
|
||||
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
|
||||
--ifm-font-family-base: 'Montserrat', sans-serif;
|
||||
--ifm-heading-font-family: 'Montserrat', sans-serif;
|
||||
--switch-background-color: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
/* For readability concerns, you should choose a lighter palette in dark mode. */
|
||||
@@ -39,6 +40,7 @@
|
||||
--ifm-background-surface-color: #1a2a3a;
|
||||
--ifm-horizontal-line-color: rgba(227, 227, 227, 0.2);
|
||||
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
||||
--switch-background-color: rgb(135, 129, 129);
|
||||
}
|
||||
|
||||
html[data-theme='dark'] {
|
||||
@@ -96,6 +98,26 @@ html[data-theme='dark'] {
|
||||
background-color: var(--ifm-navbar-link-hover-color);
|
||||
}
|
||||
|
||||
.header-utilities-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.header-utilities-link::before {
|
||||
content: '';
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: inline-block;
|
||||
background-color: var(--ifm-navbar-link-color);
|
||||
mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <path d="M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"/> </svg>');
|
||||
transition: background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
|
||||
}
|
||||
|
||||
.header-download-link:hover::before {
|
||||
background-color: var(--ifm-navbar-link-hover-color);
|
||||
}
|
||||
|
||||
.header-download-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -366,7 +388,8 @@ html[data-theme='dark'] {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.openapi-tabs__code-list-container, .tabs-host-type {
|
||||
.openapi-tabs__code-list-container,
|
||||
.tabs-host-type {
|
||||
display: flex !important;
|
||||
}
|
||||
}
|
||||
@@ -392,3 +415,94 @@ html[data-theme='dark'] {
|
||||
border-radius: var(--ifm-global-radius);
|
||||
color: #fff
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.font-normal {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 150px;
|
||||
outline: 3px solid var(--ifm-tabs-color-active);
|
||||
outline-offset: -3px;
|
||||
border: 0;
|
||||
border-radius: var(--ifm-global-radius);
|
||||
background-color: transparent;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
font-weight: normal;
|
||||
transition: background-color 0.5s ease, color 0.5s ease;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
color: var(--ifm-tabs-color-active);
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background-color: var(--ifm-color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.button-secondary {
|
||||
outline: 3px solid var(--ifm-color-secondary);
|
||||
}
|
||||
|
||||
.button-secondary:hover {
|
||||
background-color: var(--ifm-color-secondary);
|
||||
}
|
||||
|
||||
.form-input {
|
||||
border-radius: var(--ifm-global-radius);
|
||||
outline: 1px solid var(--ifm-color-secondary);
|
||||
outline-offset: -1px;
|
||||
padding: 10px;
|
||||
min-width: 50%;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.no-outline {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.form-input {
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* https://codepen.io/JAGATHISH1123/pen/PvayMB */
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
height: 20px;
|
||||
background-color: var(--switch-background-color);
|
||||
border-radius: 20px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.switch::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background-color: white;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.checkbox:checked+.switch::after {
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
.checkbox:checked+.switch {
|
||||
background-color: var(--ifm-color-secondary);
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
display: none;
|
||||
}
|
||||
Reference in new issue
Block a user