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
const | |
fs = require('fs'), | |
path = require('path') | |
const extendQuasarConf = function (api, conf) { | |
let envName = '.env' // default name | |
// get .env name based on dev or production | |
if (conf.ctx.dev === true) { | |
// your prompt data is in api.prompts |
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
module.exports = function (api, ctx) { | |
api.extendQuasarConf((conf) => { | |
extendWithDotenv(api, conf) | |
}) | |
} |
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
{ | |
dev: true, | |
prod: false, | |
mode: { spa: true }, | |
modeName: 'spa', | |
target: {}, | |
targetName: undefined, | |
emulator: undefined, | |
arch: {}, | |
archName: undefined, |
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", | |
"env_production": ".env" | |
} | |
} |
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 | |
? Name of .env for production: .env | |
app:extension Running App Extension install script... +9s | |
app:extension-manager Adding "dotenv" extension prompts to /quasar.extensions.json ... +297ms | |
app:extension Quasar App Extension "dotenv" successfully installed. +6ms | |
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
module.exports = function () { | |
return [ | |
{ | |
type: 'input', | |
name: 'env_development', | |
message: "Name of .env for development:", | |
default: ".env" | |
}, | |
{ | |
type: 'input', |
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 App Extension name (without prefix) dotenv | |
? Project description dotenv app extension for Quasar |
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
<script> | |
import { openURL } from 'quasar' | |
export default { | |
name: 'MyLayout', | |
data () { | |
return { | |
leftDrawerOpen: this.$q.platform.is.desktop | |
} | |
}, |
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 App Extension index/runner script | |
* (runs on each dev/build) | |
* | |
* API: https://github.com/quasarframework/quasar/blob/master/app/lib/app-extension/IndexAPI.js | |
*/ | |
const | |
fs = require('fs'), | |
path = require('path') |
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
.q-if-focused:not(.q-if-readonly) { | |
box-shadow: 0 0px 3px 1px rgb(0, 110, 255); | |
} |