Skip to content

Commit

Permalink
docs(Repo): documentation across a majority of the repo (#170)
Browse files Browse the repository at this point in the history
* feat(Repo): base for documentation set

* docs(Repo): documentation for multiple files across the repo

* fix(Volume): merge conflict fixed

* docs(Repo): more documentation across a few files

Co-authored-by: Jason Panay <[email protected]>
Co-authored-by: Jason Panay <[email protected]>
Co-authored-by: Matt Wisniewski <[email protected]>
  • Loading branch information
4 people authored Oct 12, 2021
1 parent c61fae2 commit aaca63c
Show file tree
Hide file tree
Showing 86 changed files with 1,579 additions and 57 deletions.
4 changes: 4 additions & 0 deletions components/interactables/Chip/Chip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export default Vue.extend({
}
},
methods: {
/**
* @method hide
* @description Hides chip element
*/
hide() {
this.show = false
},
Expand Down
16 changes: 16 additions & 0 deletions components/interactables/ContextMenu/ContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,29 @@ export default Vue.extend({
...mapState(['settings', 'ui']),
},
methods: {
/**
* @method close
* @description Closes context menu by setting toggleContextMenu in state to false
*/
close() {
this.$store.commit('toggleContextMenu', false)
},
/**
* @method handle
* @description Executes callback function and closes the ContextMenu component
* @param func Function to execute
* @example @click="handle(item.func)"
*/
handle(func: any) {
func()
this.close()
},
/**
* @method handleOverflow
* @description Ensures contextMenu is positioned correctly by calculating if the div overflows the page and respositioning as needed.
* Corrects position by commiting an adjusted position to setContextMenuPosition in state
* @example
*/
handleOverflow() {
const contextMenu = this.$refs.contextMenu as HTMLElement
const position = this.ui.contextMenuPosition
Expand Down
8 changes: 8 additions & 0 deletions components/interactables/Input/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,17 @@ export default Vue.extend({
}
},
methods: {
/**
* @method update
* @description Emits the update event with updated internalText string
*/
update() {
this.$emit('update', this.internalText)
},
/**
* @method clearSearch
* @description Sets internalText in data to an empty string
*/
clearSearch() {
this.internalText = ''
},
Expand Down
4 changes: 4 additions & 0 deletions components/interactables/InputGroup/InputGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ export default Vue.extend({
}
},
methods: {
/**
* @method update
* @description Emits the update event with updated internalText string
*/
update() {
this.$emit('update', this.$data.internalText)
},
Expand Down
9 changes: 9 additions & 0 deletions components/interactables/QuickProfile/QuickProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,18 @@ export default Vue.extend({
...mapState(['ui']),
},
methods: {
/**
* @method close
* @description Closes quickProfile by commiting quickProfile false to state
*/
close() {
this.$store.commit('quickProfile', false)
},
/**
* @method close
* @description Ensures quickProfile is positioned correctly by calculating if the div overflows the page and respositioning as needed.
* Corrects position by commiting an adjusted position to setQuickProfilePosition in state
*/
handleOverflow() {
if (this.$device.isDesktop) {
const quickProfile = this.$refs.quickProfile as HTMLElement
Expand Down
Loading

0 comments on commit aaca63c

Please sign in to comment.