refactor: remove capabilities in favor of endpoints
This commit is contained in:
@@ -2003,21 +2003,21 @@ p {
|
||||
|
||||
|
||||
/* Capabilities Styles */
|
||||
.capabilities-list {
|
||||
.endpoints-list {
|
||||
margin-top: 0.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
/* Custom dropdown wrapper and arrow for capability selector */
|
||||
.capability-selector {
|
||||
/* Custom dropdown wrapper and arrow for endpoint selector */
|
||||
.endpoint-selector {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
#capability-select {
|
||||
#endpoint-select {
|
||||
padding-right: 2rem;
|
||||
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ecf0f1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
|
||||
background-repeat: no-repeat;
|
||||
@@ -2025,21 +2025,21 @@ p {
|
||||
background-size: 12px 12px;
|
||||
}
|
||||
|
||||
.capability-item {
|
||||
.endpoint-item {
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.capability-header {
|
||||
.endpoint-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.cap-method {
|
||||
.endpoint-method {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5px;
|
||||
@@ -2050,14 +2050,14 @@ p {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.cap-uri {
|
||||
.endpoint-uri {
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.85rem;
|
||||
opacity: 1;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.cap-call-btn {
|
||||
.endpoint-call-btn {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
|
||||
border: 1px solid var(--border-secondary);
|
||||
color: var(--text-secondary);
|
||||
@@ -2070,21 +2070,21 @@ p {
|
||||
backdrop-filter: var(--backdrop-blur);
|
||||
}
|
||||
|
||||
.cap-call-btn:hover {
|
||||
.endpoint-call-btn:hover {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
|
||||
border-color: rgba(255, 255, 255, 0.25);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.capability-form {
|
||||
.endpoint-form {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 0.5rem 0.75rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.capability-param {
|
||||
.endpoint-param {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
@@ -2124,13 +2124,13 @@ p {
|
||||
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
|
||||
}
|
||||
|
||||
.capability-params.none {
|
||||
.endpoint-params.none {
|
||||
opacity: 1;
|
||||
font-size: 0.85rem;
|
||||
padding: 0.25rem 0.25rem 0 0.25rem;
|
||||
}
|
||||
|
||||
.capability-result {
|
||||
.endpoint-result {
|
||||
margin-top: 0.5rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-primary);
|
||||
@@ -2138,7 +2138,7 @@ p {
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.cap-call-success {
|
||||
.endpoint-call-success {
|
||||
color: var(--accent-success);
|
||||
background: rgba(76, 175, 80, 0.1);
|
||||
border: 1px solid rgba(76, 175, 80, 0.2);
|
||||
@@ -2146,7 +2146,7 @@ p {
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.cap-call-error {
|
||||
.endpoint-call-error {
|
||||
color: #f44336;
|
||||
background: rgba(244, 67, 54, 0.1);
|
||||
border: 1px solid rgba(244, 67, 54, 0.2);
|
||||
@@ -2154,7 +2154,7 @@ p {
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.cap-result-pre {
|
||||
.endpoint-result-pre {
|
||||
margin-top: 0.5rem;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
@@ -2321,11 +2321,11 @@ p {
|
||||
|
||||
/* Responsive Capability Selector */
|
||||
@media (max-width: 768px) {
|
||||
.capability-selector {
|
||||
.endpoint-selector {
|
||||
flex-wrap: wrap;
|
||||
align-items: stretch;
|
||||
}
|
||||
#capability-select {
|
||||
#endpoint-select {
|
||||
flex: 1 1 100%;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
@@ -2334,23 +2334,23 @@ p {
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
#capability-select {
|
||||
#endpoint-select {
|
||||
padding-right: 1.75rem;
|
||||
background-position: right 0.5rem center;
|
||||
background-size: 10px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Capability header mobile wrapping */
|
||||
/* Endpoint header mobile wrapping */
|
||||
@media (max-width: 768px) {
|
||||
.capability-header {
|
||||
.endpoint-header {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.cap-uri {
|
||||
.endpoint-uri {
|
||||
flex: 1 1 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
.cap-call-btn {
|
||||
.endpoint-call-btn {
|
||||
flex: 1 1 100%;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
@@ -2359,7 +2359,7 @@ p {
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.cap-call-btn {
|
||||
.endpoint-call-btn {
|
||||
padding: 0.35rem 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user