Skip to content

Commit

Permalink
recompile
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhsianturi committed Nov 7, 2019
1 parent 3c666d8 commit bb29afa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/app.js": "/app.js?id=606a78e1f2a728ccaa99",
"/app.js": "/app.js?id=3bf51ec30c7d081ef312",
"/app.css": "/app.css?id=3e526ffa5cd423c9ab9c"
}
7 changes: 2 additions & 5 deletions resources/js/components/HttpMethods.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default {
computed: {
color: function () {
let methods = this.request.info.methods
let colors = this.colors.filter(color => {
return methods.indexOf(color.method) !== -1
})
Expand All @@ -31,15 +30,13 @@ export default {
</script>

<template>
<span :class="'method-chip text-xs text-center font-bold uppercase ' + color">
<span :class="'w-full inline-block max-w-xxs text-xs text-center font-bold uppercase ' + color">
{{ request.info.methods.length > 1 ? '*' : request.info.methods[0] }}
</span>
</template>

<style scoped>
.method-chip {
.max-w-xxs {
max-width: 45px;
width: 100%;
display: inline-block;
}
</style>
4 changes: 2 additions & 2 deletions resources/js/components/SidebarMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
props: [],
components: {
HttpMethods
HttpMethods
},
data() {
Expand Down Expand Up @@ -107,7 +107,7 @@ export default {
<ul class="ml-4">
<li class="sm:mb-2" v-for="request in resources" :key="request.id">
<router-link :to="{name:'request', params:{id: request.id}}" active-class="text-orange-600" class="text-md px-2 -mx-2 py-1 hover:text-orange-600 text-gray-600">
<method-methods :request="request" />
<http-methods :request="request" />
<span class="ml-2">{{truncateString(request.title, 20)}}</span>
</router-link>
</li>
Expand Down

0 comments on commit bb29afa

Please sign in to comment.