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
Template Code: | |
<q-btn @click="home" > | |
<q-icon v-html="$options.filters.svg('home')" ></q-icon> | |
</q-btn> | |
Boot File: | |
Vue.filter("svg", function (code, options) { | |
options=Object.assign({ | |
width : 20, | |
height : 26, |
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
Vue.directive('click-outside', { | |
bind: function (el, binding, vnode) { | |
el.clickOutsideEvent = function (event) { | |
// here I check that click was outside the el and his childrens | |
if (!(el == event.target || el.contains(event.target))) { | |
// and if it did, call method provided in attribute value | |
vnode.context[binding.expression](event); | |
} | |
}; | |
document.body.addEventListener('click', el.clickOutsideEvent) |
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
$ quasar dev | |
Dev mode.......... spa | |
Pkg quasar........ v1.0.0-beta.0 | |
Pkg @quasar/app... v1.0.0-beta.3 | |
Debugging......... enabled | |
app:extension Running "dotenv" Quasar App Extension... +0ms | |
app:quasar-conf Reading quasar.conf.js +6ms | |
app:dev Checking listening address availability (0.0.0.0:8080)... +2ms | |
app:quasar-conf Extension(dotenv): Extending quasar.conf... +7ms |
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
$ quasar ext --help | |
Description | |
Manage Quasar App Extensions | |
Usage | |
$ quasar ext [-a|-r] | |
Options | |
--add, -a Add Quasar App Extension |
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
$ quasar create --help | |
Description | |
Creates a Quasar App or App Extension project folder | |
Usage | |
$ quasar create <project-name> [--kit <kit-name>] [--branch <version-name>] | |
... | |
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
app:extension Installing "dotenv" Quasar App Extension +0ms | |
? Name of .env for development: .env.development | |
? Name of .env for production: .env.production | |
? Name of your Common Root Object: MyData | |
app:extension Running App Extension install script... +34s | |
app:extension-manager Adding "dotenv" extension prompts to /quasar.extensions.json ... +67ms | |
app:extension Quasar App Extension "dotenv" successfully installed. +1ms |
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
// for brevity | |
let target = conf.build.env | |
// check for common root object | |
if (api.prompts.common_root_object && api.prompts.common_root_object !== 'none') { | |
let rootObject = api.prompts.common_root_object | |
if (!target[rootObject]) { | |
target[rootObject] = {} | |
target = target[rootObject] |
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
{ | |
type: "input", | |
name: "common_root_object", | |
message: "Name of your Common Root Object:", | |
default: "none" | |
} |
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
{ | |
"dotenv": { | |
"env_development": ".env.development", | |
"env_production": ".env.production" | |
} | |
} |
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
$ quasar dev | |
Dev mode.......... spa | |
Pkg quasar........ v1.0.0-beta.2 | |
Pkg @quasar/app... v1.0.0-beta.4 | |
Debugging......... enabled | |
app:extension Running "dotenv" Quasar App Extension... +0ms | |
app:quasar-conf Reading quasar.conf.js +10ms | |
app:dev Checking listening address availability (0.0.0.0:8080)... +2ms |