mirror of
https://github.com/OpenBankProject/API-Explorer-II.git
synced 2026-02-06 10:47:04 +00:00
Merge branch 'oauth2' of https://github.com/OpenBankProject/API-Explorer-II into oauth2
This commit is contained in:
commit
8bdfe68db4
@ -100,7 +100,7 @@ export default {
|
||||
</div>
|
||||
<div v-if="message.error" class="error"><el-icon><Warning /></el-icon> {{ message.error }}</div>
|
||||
</div>
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
<style>
|
||||
@ -212,4 +212,24 @@ export default {
|
||||
.tidot:nth-child(3){
|
||||
animation-delay:400ms;
|
||||
}
|
||||
</style>
|
||||
|
||||
/* Override Prism.js styling for Scala code blocks to make them readable */
|
||||
pre.language-scala {
|
||||
background-color: #f5f5f5 !important;
|
||||
color: #333 !important;
|
||||
font-family: 'Courier New', Courier, monospace !important;
|
||||
padding: 1em !important;
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
pre.language-scala code {
|
||||
background-color: transparent !important;
|
||||
color: #333 !important;
|
||||
font-family: 'Courier New', Courier, monospace !important;
|
||||
}
|
||||
|
||||
/* Reset all token colors for Scala to ensure readability */
|
||||
pre.language-scala .token {
|
||||
color: #333 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -281,7 +281,11 @@ const filterKeys = (keys, key) => {
|
||||
|
||||
const searchEvent = (value) => {
|
||||
if (value) {
|
||||
sortedKeys.value = filterKeys(activeKeys.value, value)
|
||||
if (activeKeys.value && Array.isArray(activeKeys.value)) {
|
||||
sortedKeys.value = filterKeys(activeKeys.value, value)
|
||||
} else {
|
||||
sortedKeys.value = []
|
||||
}
|
||||
} else {
|
||||
groups.value = JSON.parse(JSON.stringify(docs.value))
|
||||
sortedKeys.value = Object.keys(groups.value).sort()
|
||||
|
||||
@ -135,4 +135,22 @@ a {
|
||||
.content :deep(a):hover {
|
||||
background-color: #a4b2ce;
|
||||
}
|
||||
|
||||
/* Make Scala code blocks readable */
|
||||
.content :deep(pre.language-scala) {
|
||||
background-color: #f5f5f5 !important;
|
||||
color: #333 !important;
|
||||
font-family: 'Courier New', Courier, monospace !important;
|
||||
padding: 1em !important;
|
||||
}
|
||||
|
||||
.content :deep(pre.language-scala code) {
|
||||
background-color: transparent !important;
|
||||
color: #333 !important;
|
||||
font-family: 'Courier New', Courier, monospace !important;
|
||||
}
|
||||
|
||||
.content :deep(pre.language-scala .token) {
|
||||
color: #333 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user