mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 09:08:32 +02:00
Colored autocompletion icons
This commit is contained in:
@@ -216,28 +216,35 @@
|
|||||||
@apply shadow-lg bg-surface rounded text-text-subtle border border-border-subtle z-50 pointer-events-auto text-editor;
|
@apply shadow-lg bg-surface rounded text-text-subtle border border-border-subtle z-50 pointer-events-auto text-editor;
|
||||||
|
|
||||||
.cm-completionIcon {
|
.cm-completionIcon {
|
||||||
@apply italic font-mono;
|
@apply font-mono opacity-80 italic;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
content: 'x' !important; /* Default (eg. for GraphQL) */
|
content: 'a' !important; /* Default (eg. for GraphQL) */
|
||||||
|
}
|
||||||
|
|
||||||
|
&.cm-completionIcon-function::after {
|
||||||
|
content: 'f' !important;
|
||||||
|
@apply text-info;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.cm-completionIcon-variable::after {
|
||||||
|
content: 'x' !important;
|
||||||
|
@apply text-primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.cm-completionIcon-constant::after {
|
||||||
|
content: 'c' !important;
|
||||||
|
@apply text-notice;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.cm-completionIcon-class::after {
|
&.cm-completionIcon-class::after {
|
||||||
content: 'o' !important;
|
content: 'o' !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.cm-completionIcon-constant::after {
|
|
||||||
content: 'c' !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.cm-completionIcon-enum::after {
|
&.cm-completionIcon-enum::after {
|
||||||
content: 'e' !important;
|
content: 'e' !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.cm-completionIcon-function::after {
|
|
||||||
content: 'z' !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.cm-completionIcon-interface::after {
|
&.cm-completionIcon-interface::after {
|
||||||
content: 'i' !important;
|
content: 'i' !important;
|
||||||
}
|
}
|
||||||
@@ -259,16 +266,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.cm-completionIcon-text::after {
|
&.cm-completionIcon-text::after {
|
||||||
content: 'x' !important;
|
content: 't' !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.cm-completionIcon-type::after {
|
&.cm-completionIcon-type::after {
|
||||||
content: 't' !important;
|
content: 't' !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.cm-completionIcon-variable::after {
|
|
||||||
content: 'x' !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.cm-completionInfo-right {
|
&.cm-completionInfo-right {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export function useTemplateFunctions() {
|
|||||||
{ name: 'Unix (ms)', value: 'unix_millis' },
|
{ name: 'Unix (ms)', value: 'unix_millis' },
|
||||||
],
|
],
|
||||||
optional: true,
|
optional: true,
|
||||||
defaultValue: 'RFC3339',
|
defaultValue: 'rfc3339',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user