Skip to content

Instantly share code, notes, and snippets.

nothingismagick

Block or report user

Report or block nothingismagick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View quasar-faq.md

Quasar FAQ

Here is a list of questions which are asked more often then others. If you know of a question that a lot of people ask, just ask it in a comment. If you would like to add to this faq, just leave a comment in the Q & A & R (question, answer, reference) format. Use Markdown! Let's Answer this!!!

Although Quasar documentation covers most of the asked questions from users we think it would be nice to have quick reference guide to Frequently Asked Questions.

NPM

Q: quasar build on Win 10 - complains about resource busy or locked. Windows restart is needed whenever I build the app.

A: There is probably other process blocking the dist/spa folder (e.g. Tortoise Git, Remote Desktop etc.). Install a Process Monitor to discover the process which blocks the folder.

@nothingismagick
nothingismagick / post-commit
Last active Mar 11, 2019 — forked from danmichaelo/post-commit
Git post-commit: update api docs on gh-pages branch for GitHub Pages
View post-commit
#!/usr/bin/env bash
###
### The following block runs after commit to "master" branch
###
if [ `git rev-parse --abbrev-ref HEAD` == "master" ]; then
echo
echo "Updating API documentation at the gh-pages branch..."
echo
@nothingismagick
nothingismagick / jest-loader.js
Created Dec 4, 2018
<test lang="jest"> template loader for Vue SFC
View jest-loader.js
const fs = require('fs')
const loaderUtils = require('loader-utils')
const path = require('path')
module.exports = function (source) {
const options = loaderUtils.getOptions(this)
const filename = path.parse(this.resourcePath).name
const extension = (options && options.extension) || '_jest.spec.js'
@nothingismagick
nothingismagick / ts-quasar-cli.md
Created Nov 16, 2018 — forked from snowyu/ts-quasar-cli.md
Add the typescript supports to quasar framework
View ts-quasar-cli.md

Note: This guide applies to the project created by quasar-cli.

First install typescript and ts-loaderpackages in your project.

npm i -D typescript ts-loader

Then modified the quasar.conf.js file in your project:

@nothingismagick
nothingismagick / caret.js
Last active Nov 12, 2018 — forked from bulatie/caret.coffee
Small script to detect caret pixel position in contenteditable div
View caret.js
/**
* Get the caret position in all cases
*
* @returns {object} left, top distance in pixels
*/
getCaretTopPoint () {
const sel = document.getSelection()
const r = sel.getRangeAt(0)
let rect
let r2
View Description.md

So you want to use ENV vars. Good on you. Here is a quick snippet to help you manage that.

/config/index.js

module.exports = {
  NODE_ENV: 'development',
  FOO: 'bar'
}
@nothingismagick
nothingismagick / a11y.md
Created Aug 20, 2018
a11y and ARIA research for quasar
@nothingismagick
nothingismagick / .block
Last active Jun 5, 2018
Quasar QComponents
View .block
license: mit
@nothingismagick
nothingismagick / quasar-cypress.md
Last active Jun 3, 2018
problematic approaches to quasar e2e testing in cypress
View quasar-cypress.md
  • using vue state to construct triggers in cypress (prebaked vue.state interaction antipattern
  • non-standard browser behaviour of clicking "un-clickable" components {force: true} (not proof of integration)
  • non-standard browser behaviour of clicking everything at the same time {force: true, multiple: true} (not proof of integration)
  • X,Y-clicking works, then you are measuring not reading the dom the offset and click there. (mistaking the map for the territory")
  • repurposing existing schemas is only slightly better than bumping schema versions (idempotency lost)
@nothingismagick
nothingismagick / develop-quasar-inline.sh
Last active Jun 1, 2018
Install a development environment for hacking on quasar and quasar cli
View develop-quasar-inline.sh
#!/usr/bin/env bash
##############################
# License: MIT
# Author: D.C. Thompson
# ://gist.githubusercontent.com/nothingismagick/527588a147e39b51153958ecafbd3075/raw
# @quasar/develop
#
# REQUIREMENTS
# git
You can’t perform that action at this time.