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