This file contains 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 { isValidMultiName } from '@/util/folders' | |
import FOLDER_CURRENT from '@/graphql/folder/folderCurrent.gql' | |
import FOLDERS_FAVORITE from '@/graphql/folder/foldersFavorite.gql' | |
import FOLDER_OPEN from '@/graphql/folder/folderOpen.gql' | |
import FOLDER_OPEN_PARENT from '@/graphql/folder/folderOpenParent.gql' | |
import FOLDER_SET_FAVORITE from '@/graphql/folder/folderSetFavorite.gql' | |
import PROJECT_CWD_RESET from '@/graphql/project/projectCwdReset.gql' | |
import FOLDER_CREATE from '@/graphql/folder/folderCreate.gql' |
This file contains 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
import Case from 'case' | |
const originalToString = Object.prototype.toString | |
function isPlainObject (obj: any): boolean { | |
return originalToString.call(obj) === '[object Object]' | |
} | |
export function toCamel (data: any): any { | |
if (Array.isArray(data)) { |
This file contains 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
import Prism from 'prismjs' | |
import loadLanguages from 'prismjs/components/index.js' | |
import path from 'path' | |
loadLanguages() | |
const languages = [ | |
{ test: /\.(html|vue|xml)$/, lang: 'markup' }, | |
{ test: /\.js$/, lang: 'javascript' }, | |
{ test: /\.sh$/, lang: 'bash' }, |
This file contains 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 = { | |
chainWebpack: config => { | |
config | |
.plugin('manifest') | |
.use('webpack-assets-manifest', [{ | |
publicPath: process.env.BASE_URL, | |
output: process.env.NODE_ENV === 'development' ? 'webpack.dev.manifest.json' : 'webpack.manifest.json', | |
writeToDisk: true, | |
}]) | |
} |
This file contains 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
""" | |
Some user. | |
""" | |
type User implements Entity { | |
id: ID! | |
email: String! | |
organization: Organization! | |
""" | |
Teams of the user. | |
""" |
This file contains 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> | |
<DynamicScrollerItem | |
:item="item" | |
:active="active" | |
:size-dependencies="[ | |
idState.answering, | |
data.answer, | |
isLiveAnswering, | |
]" | |
> |
This file contains 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
{ | |
"name": "My preset", | |
"useConfigFiles": false, | |
"plugins": { | |
"@nodepack/plugin-babel": "^0.0.1", | |
"@nodepack/plugin-typescript": "^0.0.1" | |
}, | |
"appMigrations": { | |
"@nodepack/plugin-typescript": { | |
"default-template@0.0.1": { |
This file contains 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 = { | |
pages: { | |
pageA: 'src/pageA.js', | |
pageB: 'src/pageB.js', | |
pageC: 'src/pageC.js', | |
}, | |
chainWebpack: config => { | |
const options = module.exports | |
const pages = options.pages |
This file contains 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
import Vue from 'nativescript-vue' | |
import router from './router' | |
import store from './store' | |
import devtools from '@vue/devtools' | |
// Prints Vue logs when --env.production is *NOT* set while building | |
Vue.config.silent = (TNS_ENV === 'production') | |
const app = new Vue({ | |
router, |
This file contains 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> | |
export default { | |
inheritAttrs: false, | |
props: { | |
index: { | |
type: [String, Number], | |
default: null, | |
}, |