🎨 Minor stylings
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
padding: 8px 16px;
|
||||
font-size: 16px;
|
||||
font-family: "Roboto Mono", monospace;
|
||||
font-weight: 400;
|
||||
|
||||
&:last-child {
|
||||
border-radius: 0 0 8px 8px;
|
||||
|
||||
@@ -4,18 +4,14 @@
|
||||
{{ argName }}
|
||||
</span>
|
||||
:
|
||||
<typelink
|
||||
:type="argType"
|
||||
:jumpTypeCallback="jumpCallback"
|
||||
/>
|
||||
<typelink :type="argType" :jumpTypeCallback="jumpCallback" />
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
<style></style>
|
||||
|
||||
<script>
|
||||
import typelink from './typelink';
|
||||
import typelink from "./typelink";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -36,9 +32,7 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
jumpCallback(typeName) {
|
||||
|
||||
}
|
||||
jumpCallback(typeName) {}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -4,14 +4,19 @@
|
||||
{{ fieldName }}
|
||||
<span v-if="fieldArgs.length > 0">
|
||||
(
|
||||
<span v-for="(field, index) in fieldArgs" :key="index">
|
||||
{{ field.name }}: <typelink :gqlType="field.type" :jumpTypeCallback="jumpTypeCallback" />
|
||||
<span v-if="index !== fieldArgs.length - 1">
|
||||
,
|
||||
</span>
|
||||
<span v-for="(field, index) in fieldArgs" :key="index">
|
||||
{{ field.name }}:
|
||||
<typelink
|
||||
:gqlType="field.type"
|
||||
:jumpTypeCallback="jumpTypeCallback"
|
||||
/>
|
||||
<span v-if="index !== fieldArgs.length - 1">
|
||||
,
|
||||
</span>
|
||||
)
|
||||
</span>: <typelink :gqlType="gqlField.type" :jumpTypeCallback="jumpTypeCallback" />
|
||||
</span>
|
||||
) </span
|
||||
>:
|
||||
<typelink :gqlType="gqlField.type" :jumpTypeCallback="jumpTypeCallback" />
|
||||
</div>
|
||||
<div class="field-desc" v-if="gqlField.description">
|
||||
{{ gqlField.description }}
|
||||
@@ -20,7 +25,6 @@
|
||||
<div class="field-deprecated" v-if="gqlField.isDeprecated">
|
||||
DEPRECATED
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -49,7 +53,7 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import typelink from './typelink';
|
||||
import typelink from "./typelink";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -58,7 +62,6 @@ export default {
|
||||
|
||||
props: {
|
||||
gqlField: Object,
|
||||
|
||||
jumpTypeCallback: Function
|
||||
},
|
||||
|
||||
@@ -73,7 +76,6 @@ export default {
|
||||
);
|
||||
}, "");
|
||||
const argsString = args.length > 0 ? `(${args})` : "";
|
||||
|
||||
return `${
|
||||
this.gqlField.name
|
||||
}${argsString}: ${this.gqlField.type.toString()}`;
|
||||
|
||||
@@ -35,9 +35,9 @@ export default {
|
||||
components: {
|
||||
"gql-field": () => import("./field")
|
||||
},
|
||||
|
||||
props: {
|
||||
gqlType: {},
|
||||
|
||||
jumpTypeCallback: Function
|
||||
}
|
||||
};
|
||||
|
||||
@@ -3,16 +3,18 @@
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.typelink {
|
||||
color: red
|
||||
}
|
||||
.typelink {
|
||||
color: var(--ac-color);
|
||||
font-family: "Roboto Mono", monospace;
|
||||
font-weight: 400;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
gqlType: null,
|
||||
|
||||
// (typeName: string) => void
|
||||
jumpTypeCallback: Function
|
||||
},
|
||||
@@ -28,6 +30,5 @@ export default {
|
||||
this.jumpTypeCallback(this.gqlType);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -298,6 +298,7 @@ ol li {
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
font-family: "Roboto Mono", monospace;
|
||||
font-weight: 400;
|
||||
background-color: transparent;
|
||||
padding: 2px 6px;
|
||||
border-radius: 8px;
|
||||
|
||||
Reference in New Issue
Block a user