-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Add a service sticky details vue component.
- Loading branch information
1 parent
f2656e6
commit 1ace1b8
Showing
2 changed files
with
84 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<template> | ||
<div> | ||
<q-card-section> | ||
<div class="row items-start no-wrap"> | ||
<div class="text-subtitle1">Sticky: Cookie </div> | ||
</div> | ||
</q-card-section> | ||
<q-card-section> | ||
<div class="row items-start no-wrap"> | ||
<div class="col" v-if="sticky.cookie && sticky.cookie.name"> | ||
<div class="text-subtitle2">NAME</div> | ||
<q-chip | ||
dense | ||
class="app-chip app-chip-entry-points"> | ||
{{ sticky.cookie.name }} | ||
</q-chip> | ||
</div> | ||
</div> | ||
</q-card-section> | ||
<q-card-section> | ||
<div class="row items-start no-wrap"> | ||
<div class="col"> | ||
<div class="text-subtitle2">SECURE</div> | ||
<boolean-state :value="sticky.cookie.secure"/> | ||
</div> | ||
|
||
<div class="col"> | ||
<div class="text-subtitle2">HTTP Only</div> | ||
<boolean-state :value="sticky.cookie.httpOnly"/> | ||
</div> | ||
</div> | ||
</q-card-section> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import BooleanState from './BooleanState' | ||
export default { | ||
name: 'StickyServiceDetails', | ||
components: { | ||
BooleanState | ||
}, | ||
props: ['sticky', 'dense'] | ||
} | ||
</script> | ||
<style scoped lang="scss"> | ||
@import "../../css/sass/variables"; | ||
.q-card__section { | ||
padding: 24px; | ||
+ .q-card__section { | ||
padding-top: 0; | ||
} | ||
} | ||
.text-subtitle2 { | ||
font-size: 11px; | ||
color: $app-text-grey; | ||
line-height: 16px; | ||
margin-bottom: 4px; | ||
text-align: left; | ||
letter-spacing: 2px; | ||
font-weight: 600; | ||
text-transform: uppercase; | ||
} | ||
</style> |