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
| mysql -u <USER> -p --host <SERVICE NAME> --port=3306 |
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
| /usr/local/mysql/bin/mysql -u <USER> -p --host 127.0.0.1 --port=3309 |
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
| docker run -d \ | |
| -v key.json:/config \ | |
| -p 127.0.0.1:3309:3306 \ | |
| gcr.io/cloudsql-docker/gce-proxy:1.12 /cloud_sql_proxy \ | |
| -instances=<PROJECT>:<REGION>:<INSTACNE>=tcp:0.0.0.0:3306 -credential_file=/config |
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
| <html> | |
| <head> | |
| <script> | |
| window.onload = function() { | |
| const elm = document.querySelector('body'); | |
| animate(elm, 'ffffff', 'ff0000', 2 * 1000); | |
| } | |
| function getColorNumbers(color) { |
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 RegisterStoreModule from '@/mixins/RegisterStoreModule' | |
| import userModule from '@/store/modules/user' | |
| export default { | |
| mixins: [ RegisterStoreModule ], | |
| created () | |
| { | |
| this.registerStoreModule('currentUser', userModule); | |
| } | |
| } |
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
| export default { | |
| methods: { | |
| registerStoreModule (moduleName, storeModule) | |
| { | |
| const store = this.$store; | |
| if (!(store && store.state && store.state[moduleName])) | |
| { | |
| store.registerModule(moduleName, storeModule); | |
| } |
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 userModule from '@/store/modules/user'; | |
| export default { | |
| created () | |
| { | |
| this.registerStoreModule('currentUser', userModule); | |
| }, | |
| methods: { | |
| registerStoreModule (moduleName, storeModule) | |
| { |
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 userModule from '@/store/modules/user'; | |
| export default | |
| { | |
| created () | |
| { | |
| this.$store.registerModule('selectedUser', userModule); | |
| } | |
| } |
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 userModule from '@/store/modules/user'; | |
| export default | |
| { | |
| created () | |
| { | |
| this.$store.registerModule('currentUser', userModule); | |
| } | |
| } |
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
| export default new Vuex.Store({ | |
| modules: { | |
| user, | |
| reports, | |
| callNotes, | |
| calls | |
| }, | |
| strict: process.env.NODE_ENV !== 'production' | |
| }) |