vue-cli update -g vue init webpack my-project import Vue from 'vue'
import upperFirst from 'lodash/upperFirst' // could be vue.filter
import camelCase from 'lodash/camelCase' // could be vue.filter
// Require in a **base** component context
// nb: you can use any prefix you want instead of 'base' below
const requireComponent = require.context('.', false, /base-[\w-]+\vue$/)
const allEndpoints = document.querySelectorAll('.nostyle span')
let endpoints = {}
allEndpoints.forEach(endpoint => {
if (endpoint.textContent.startsWith('/')) {
const endpointName = endpoint.textContent.substring(1)
const params = endpointName.split('/')
const parent = params[0]
const restOfName = endpointName.replace(parent, '')
| import _ from 'lodash' | |
| const transform = { | |
| toCamelCase (obj) { | |
| const camelCasedObj = {} | |
| Object.keys(obj).forEach((key) => { | |
| if (_.isPlainObject(obj[key])) camelCasedObj[_.camelCase(key)] = this.toCamelCase(obj[key]) | |
| else camelCasedObj[_.camelCase(key)] = obj[key] | |
| }) | |
| return camelCasedObj |
| { | |
| "Console.log with eslint-disable-line": { | |
| "prefix": "cl", | |
| "body": [ | |
| "console.log(``, something) // eslint-disable-line no-console" | |
| ] | |
| } | |
| } |
| // Place your key bindings in this file to overwrite the defaults | |
| [ | |
| { | |
| "key": "ctrl+d", | |
| "command": "editor.action.copyLinesDownAction", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+shift+alt+down", | |
| "command": "-editor.action.copyLinesDownAction", |
| var groupedEstimates = {} | |
| // get all pipelines | |
| var allPipelines = document.querySelectorAll('.zhc-pipeline') | |
| allPipelines.forEach((pipeline) => { | |
| const key = (pipeline.querySelector('div.zhc-pipeline-header__info') || {}).innerText | |
| if (key) { | |
| groupedEstimates[key] = {} | |
| // initialise properties for each pipeline | |
| var groupedEstimates = {} | |
| // get all pipelines | |
| var allPipelines = document.querySelectorAll('.zhc-pipeline') | |
| allPipelines.forEach((pipeline) => { | |
| const key = (pipeline.querySelector('div.zhc-pipeline-header__info') || {}).innerText | |
| if (key) { | |
| // initialise properties for each pipeline | |
| groupedEstimates[key] = {} | |