2018-07-03 11:14:53 +08:00
|
|
|
// Styles for admin/api
|
|
|
|
|
|
|
|
table.web-hooks.grid {
|
|
|
|
td.delivery-status {
|
|
|
|
div {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.d-icon {
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
td.payload-url {
|
|
|
|
word-wrap: break-word;
|
|
|
|
max-width: 55vw;
|
|
|
|
}
|
|
|
|
td.controls {
|
|
|
|
display: flex;
|
|
|
|
button {
|
|
|
|
margin-left: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (min-width: 550px) {
|
|
|
|
tbody {
|
|
|
|
tr {
|
|
|
|
grid-template-columns: 0.5fr repeat(2, 1fr) 0.5fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
td.controls {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-11 21:57:53 +08:00
|
|
|
@include breakpoint(mobile-extra-large) {
|
2018-07-03 11:14:53 +08:00
|
|
|
tbody {
|
|
|
|
tr {
|
|
|
|
grid-template-columns: 0.5fr 1fr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
td.controls {
|
|
|
|
grid-row: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Api keys
|
|
|
|
|
|
|
|
table.api-keys {
|
|
|
|
margin-bottom: 0.25em;
|
2019-11-05 22:10:23 +08:00
|
|
|
|
|
|
|
tr.revoked {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
2019-11-05 22:10:23 +08:00
|
|
|
|
2024-11-07 09:38:25 +08:00
|
|
|
.d-admin-row__overview.key {
|
|
|
|
width: 30%;
|
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
|
2019-11-05 22:10:23 +08:00
|
|
|
.admin-api-keys {
|
|
|
|
h2 {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
2020-09-11 21:38:28 +08:00
|
|
|
.api-key-new {
|
|
|
|
.form-element,
|
|
|
|
.form-element-desc {
|
|
|
|
&.input-area {
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.value-list,
|
|
|
|
.select-kit,
|
2021-02-01 18:07:11 +08:00
|
|
|
input[type="text"],
|
|
|
|
input[type="text"].filter-input {
|
2020-09-11 21:38:28 +08:00
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint(mobile-extra-large, min-width) {
|
|
|
|
width: 75%;
|
|
|
|
.value-list,
|
|
|
|
.select-kit,
|
|
|
|
input[type="text"] {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.label-area {
|
|
|
|
label {
|
|
|
|
margin: 0.5em 1em 0 0;
|
|
|
|
}
|
|
|
|
@include breakpoint(mobile-extra-large, min-width) {
|
|
|
|
width: 25%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.api-key-show {
|
2019-11-05 22:10:23 +08:00
|
|
|
.form-element,
|
|
|
|
.form-element-desc {
|
|
|
|
&.input-area {
|
|
|
|
width: 75%;
|
2020-09-11 21:38:28 +08:00
|
|
|
|
|
|
|
@include breakpoint(mobile-medium) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2019-11-05 22:10:23 +08:00
|
|
|
.value-list,
|
|
|
|
.select-kit,
|
|
|
|
input[type="text"] {
|
|
|
|
width: 50%;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2020-09-11 21:38:28 +08:00
|
|
|
}
|
|
|
|
&.label-area {
|
|
|
|
width: 25%;
|
|
|
|
label {
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.api-key {
|
|
|
|
padding: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
.form-element,
|
|
|
|
.form-element-desc {
|
|
|
|
float: left;
|
|
|
|
padding: 0.5em 0;
|
|
|
|
&.input-area {
|
|
|
|
input[type="checkbox"] {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
2019-11-05 22:10:23 +08:00
|
|
|
.ac-wrap {
|
|
|
|
width: 50% !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.label-area {
|
|
|
|
label {
|
2020-09-11 21:38:28 +08:00
|
|
|
text-align: left;
|
2019-11-05 22:10:23 +08:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.controls {
|
|
|
|
float: right;
|
|
|
|
text-align: left;
|
|
|
|
width: 50%;
|
|
|
|
}
|
2020-08-19 02:12:04 +08:00
|
|
|
.scopes-title {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
2020-09-11 21:38:28 +08:00
|
|
|
}
|
|
|
|
.scopes-table.grid {
|
|
|
|
margin: 20px 0;
|
|
|
|
|
|
|
|
tr {
|
|
|
|
grid-template-columns: repeat(4, 1fr);
|
|
|
|
input {
|
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint(mobile-large) {
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
grid-row-gap: 0.5em;
|
|
|
|
|
|
|
|
&.scope-resource-name {
|
|
|
|
grid-row-gap: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.scope-resource-name {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-1);
|
2020-08-19 02:12:04 +08:00
|
|
|
}
|
2020-09-11 21:38:28 +08:00
|
|
|
|
2020-08-19 02:12:04 +08:00
|
|
|
.scope-tooltip {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2020-08-19 02:12:04 +08:00
|
|
|
}
|
2020-08-24 23:15:08 +08:00
|
|
|
|
2020-09-11 21:38:28 +08:00
|
|
|
.scope-name {
|
|
|
|
font-weight: bold;
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-0);
|
2020-09-11 21:38:28 +08:00
|
|
|
display: inline;
|
|
|
|
}
|
2020-08-24 23:15:08 +08:00
|
|
|
}
|
2019-11-05 22:10:23 +08:00
|
|
|
}
|
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
// Webhook
|
|
|
|
.web-hook-container {
|
|
|
|
.tip.good:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
input {
|
2020-12-31 04:29:10 +08:00
|
|
|
max-width: calc(100% - 10px);
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
.select-kit,
|
|
|
|
.select-kit.multi-select {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 360px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.event-selector {
|
2023-10-09 11:35:31 +08:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: auto auto;
|
2018-07-03 11:14:53 +08:00
|
|
|
margin: 0.5em 0;
|
2023-10-09 11:35:31 +08:00
|
|
|
margin-left: 1.5em;
|
|
|
|
|
|
|
|
.event-group {
|
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
|
|
|
|
.hook-event {
|
|
|
|
margin-bottom: 0.5em;
|
2019-07-11 21:57:53 +08:00
|
|
|
@include breakpoint(mobile-extra-large) {
|
2018-07-03 11:14:53 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> p {
|
|
|
|
padding-bottom: 10px;
|
2020-08-04 10:57:10 +08:00
|
|
|
border-bottom: var(--primary-low) 1px solid;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
.filters {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-bottom: var(--primary-low) 1px solid;
|
2018-07-03 11:14:53 +08:00
|
|
|
.filter {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
label .d-icon {
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.instructions {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
2022-12-13 20:32:34 +08:00
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
.subscription-choice {
|
|
|
|
margin-bottom: 10px;
|
2022-12-13 20:32:34 +08:00
|
|
|
|
|
|
|
label {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-13 08:53:08 +08:00
|
|
|
.admin-webhooks__summary {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.admin-webhooks__edit-button,
|
|
|
|
.admin-webhooks__delete-button {
|
|
|
|
font-size: var(--font-0-rem);
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.web-hook-events {
|
2022-12-13 08:53:08 +08:00
|
|
|
.heading-container {
|
|
|
|
width: 100%;
|
|
|
|
background-color: var(--primary-low);
|
|
|
|
}
|
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
li {
|
|
|
|
padding: 2px 0;
|
|
|
|
}
|
|
|
|
.col {
|
|
|
|
display: inline-block;
|
|
|
|
padding-top: 6px;
|
|
|
|
vertical-align: top;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
2022-12-13 08:53:08 +08:00
|
|
|
.col.heading {
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 4px 0;
|
|
|
|
}
|
|
|
|
.col.heading.actions {
|
|
|
|
padding: 4px 0;
|
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
.col.first {
|
|
|
|
width: 90px;
|
|
|
|
}
|
|
|
|
.col.event-id {
|
2019-04-16 14:24:30 +08:00
|
|
|
width: 90px;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
.col.timestamp {
|
2019-04-16 14:24:30 +08:00
|
|
|
width: 180px;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
.col.completion {
|
2019-04-16 14:24:30 +08:00
|
|
|
width: 250px;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
.col.actions {
|
|
|
|
padding-top: 0;
|
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.details {
|
|
|
|
display: block;
|
2022-12-13 08:53:08 +08:00
|
|
|
margin-top: 1rem;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
label {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-0);
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
&.content-list {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-07 23:26:00 +08:00
|
|
|
.web-hook-events-actions {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.5rem;
|
2022-12-13 08:53:08 +08:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
.web-hook-events-listing {
|
|
|
|
.alert {
|
2022-12-13 08:53:08 +08:00
|
|
|
margin: 0;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-event {
|
|
|
|
display: inline-block;
|
2023-10-09 11:35:31 +08:00
|
|
|
width: 100%;
|
2018-07-03 11:14:53 +08:00
|
|
|
label {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
margin: 0 0 5px 25px;
|
|
|
|
}
|
|
|
|
}
|