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
getFolders: function (absolutePath) { | |
let folders = [] | |
// check incoming arg | |
if (!absolutePath || typeof absolutePath !== 'string') { | |
return folders | |
} | |
for (const fileInfo of walkFolders(absolutePath, false)) { | |
// all files and folders |
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
createNode: function (fileInfo) { | |
let nodeKey = fileInfo.rootDir | |
if (nodeKey.charAt(nodeKey.length - 1) !== path.sep) { | |
nodeKey += path.sep | |
} | |
if (fileInfo.fileName === path.sep) { | |
fileInfo.fileName = nodeKey | |
} | |
else { | |
nodeKey += fileInfo.fileName |
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
folderWatcherHandler: function (newFolder, oldFolder) { | |
if (oldFolder && this.watcher) { | |
this.watcher.close() | |
} | |
if (newFolder) { | |
// let backend know to statically serve files from this folder | |
ipcRenderer.send('folder', newFolder) | |
this.watcher = chokidar.watch(newFolder, { | |
depth: 0, |
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
rescanCurrentFolder: function () { | |
this.clearAllContentItems() | |
this.contents.push(...this.getFolderContents(this.selectedFolder)) | |
}, |
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
requestFullscreen: function (el) { | |
if (el) { | |
if (el.requestFullscreen) { | |
el.requestFullscreen() | |
return true | |
} else if (el.mozRequestFullScreen) { /* Firefox */ | |
el.mozRequestFullScreen() | |
return true | |
} else if (el.webkitRequestFullscreen) { /* Chrome, Safari and Opera */ | |
el.webkitRequestFullscreen() |
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); | |
} |
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
<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 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
module.exports = function () { | |
return [ | |
{ | |
type: 'input', | |
name: 'env_development', | |
message: "Name of .env for development:", | |
default: ".env" | |
}, | |
{ | |
type: 'input', |