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
// within a vue component only use mapGetters, mapActions, or this.$store.dispatch(...) | |
// never directly reference state or mutations from within a vue component | |
// clearly shows what state data should be exposed and should be internal | |
import Vue from 'vue' | |
import Record from '...' | |
import api from '...' | |
const store = { | |
state: { | |
foo: true, |
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
<?php | |
namespace modules; | |
use Craft; | |
use craft\controllers\EntriesController; | |
use craft\controllers\UsersController; | |
use yii\base\ActionEvent; | |
use yii\base\Event; | |
use yii\base\Module; | |
use yii\web\ForbiddenHttpException; |
OlderNewer