import { CheckOutStore } from '../services/store'
export const checkOutStoreInjectKey = Symbol('checkOutStore')
export const StorePlugin = {
install (Vue: any): void {
Vue.mixin({
inject: {
This file contains hidden or 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
| -- Finds the first energy buffer (your AE2 acceptor) and a monitor, | |
| -- then shows stored energy & approximate FE/t on the monitor. | |
| local dev = peripheral.find("energy_storage") | |
| assert(dev, "No energy_storage peripheral found (check wired modem ON & cabling)") | |
| local mon = peripheral.find("monitor") | |
| assert(mon, "No monitor found. Place one and connect (touching or via wired modem).") | |
| -- make the monitor comfy to read |
This file contains hidden or 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
| import DomHelpers from './Utility/DomHelpers.js' | |
| // ... | |
| methods: { | |
| click (event) { | |
| DomHelpers.isChild(this.$el, event.target) || this.hide() | |
| }, | |
| } |
This file contains hidden or 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
| <div class="click-target-modal"> | |
| <div class="click-target-modal__content" | |
| v-if="isDisplayed" | |
| > | |
| <slot></slot> | |
| </div> | |
| </div> |
This file contains hidden or 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
| // ... | |
| methods: { | |
| show () { | |
| this.isDisplayed = true | |
| this.$emit('input', true) | |
| this.listen(true) | |
| }, | |
| hide () { | |
| this.isDisplayed = false | |
| this.$emit('input', false) |
This file contains hidden or 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
| <div class="document-event-modal"> | |
| <div class="document-event-modal__content" | |
| @click.stop | |
| v-if="isDisplayed" | |
| > | |
| <slot></slot> | |
| </div> | |
| </div> |
This file contains hidden or 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
| .full-screen-overlay-modal { | |
| &__background { | |
| position: fixed; | |
| z-index: 1000; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| } | |
| &__content { |
This file contains hidden or 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
| <div class="full-screen-overlay-modal"> | |
| <div class="background" | |
| @click="hide()" | |
| v-if="isDisplayed" | |
| /> | |
| <div class="content" | |
| v-if="isDisplayed" | |
| > | |
| <slot></slot> | |
| </div> |
This file contains hidden or 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
| import Field from '../Domain/Entity/Field.js' | |
| import FieldMapper from '../Domain/Mapper/FieldMapper.js' | |
| import repoBus from '../../oop-store/repoBus' | |
| import axios from '../../plugins/internal/axios-instance.js' | |
| import MappingHelpers from '../Utility/Static/MappingHelpers.js' | |
| export const FIELD_UPDATED = 'Field updated' | |
| export const FIELD_CREATED = 'Field created' |
NewerOlder
