Skip to content

Commit

Permalink
docs: improve organization of the security "cheat sheet" table
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Dec 19, 2023
1 parent e298ffa commit 9380bdb
Show file tree
Hide file tree
Showing 5 changed files with 326 additions and 91 deletions.
13 changes: 13 additions & 0 deletions docs/.vitepress/theme/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,17 @@ td:has(> div[class*=language-]:only-child:not(.line-numbers-mode)) {
}
html:not(.dark) .dark-only {
display: none !important;
}

// Improve information density in tables, e.g. on the security overview page.
table td {
li, ul {
margin: 0px !important
}
p {
margin: 0px !important
}
> ul {
padding-left: 1rem !important;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ For properties and other values annotated with [DataTypeAttribute], the followin
* `DataType.EmailAddress`: Renders as a clickable `mailto` link.
* `DataType.PhoneNumber`: Renders as a clickable `tel` link.
* `DataType.ImageUrl`: Renders as an `img` element.
* `"Color"`: Renders a colored dot next to the value, interpreting the field value as a 7-character HTML hex color code..
* `"Color"`: Renders a colored dot next to the value, interpreting the field value as a 7-character HTML hex color code.

Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ createMethods = {

## Slots

`#item="{ item, search }"` - Slot used to customize the text of both items inside the list, as well as the text of selected items. By default, items are rendered with [c-display](/stacks/vue/coalesce-vue-vuetify/components/c-display.md). Slot is passed a parameter `item` containing a [model instance](/stacks/vue/layers/models.md), and `search` containing the current search query..
`#item="{ item, search }"` - Slot used to customize the text of both items inside the list, as well as the text of selected items. By default, items are rendered with [c-display](/stacks/vue/coalesce-vue-vuetify/components/c-display.md). Slot is passed a parameter `item` containing a [model instance](/stacks/vue/layers/models.md), and `search` containing the current search query.

`#list-item="{ item, search }"` - Slot used to customize the text of items inside the list. If not provided, falls back to the `item` slot.

Expand Down
6 changes: 3 additions & 3 deletions docs/stacks/vue/vue2-to-vue3.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export default class MyComponent extends Vue {
public checked = false;
public items = [
{ name: "Foo", checked: false, }
{ name: "Foo", checked: false, },
{ name: "Bar", checked: true, }
]
}
Expand All @@ -303,8 +303,8 @@ const person = new PersonViewModel();
const checked = ref(false);
const items = reactive([
{ name: "Foo", checked: false, }
{ name: "Foo", checked: true, }
{ name: "Foo", checked: false, },
{ name: "Bar", checked: true, }
])
</script>
```
Expand Down
Loading

0 comments on commit 9380bdb

Please sign in to comment.