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
| import $nextTickInSequence from './next-tick-in-sequence' | |
| export const install = Vue => { | |
| Object.defineProperty(Vue.prototype, `$nextTickInSequence`, { | |
| get: () => $nextTickInSequence | |
| }) | |
| } |
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
| self.addEventListener('notificationclick', function(e) { | |
| // Android doesn't automatically close notifications on click | |
| e.notification.close(); | |
| // Focus tab if open | |
| e.waitUntil(clients.matchAll({ | |
| type: 'window' | |
| }).then(function(clientList) { | |
| for (var i = 0; i < clientList.length; ++i) { | |
| var client = clientList[i]; |
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
| function formatTime (timeInMs) { | |
| let date = new Date(timeInMs) | |
| // ${date.getDate()}/${date.getMonth()}/${date.getFullYear()} | |
| return `${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}.${date.getMilliseconds()}` | |
| } | |
| function log (type, ...args) { | |
| if (this.$options.debug) { | |
| console[type](`%c[${this.$_id}]${formatTime(Date.now())}>> `, | |
| `background:${type === 'log' ? '#384A5E' : type === 'warn' ? '#F1BF39' : '#FF5370'}; padding: 3px; border-radius: 3px; color: #fff`, |
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 appName = 'App Web' | |
| const companyName = 'D6' | |
| const version = '1.0.0' | |
| const hasSw = (navigator.serviceWorker && navigator.serviceWorker.controller) | |
| const mode = (window.matchMedia('(display-mode: standalone)').matches) | |
| ? 'standalone' | |
| : 'web' | |
| const sw = hasSw | |
| ? 'sw-on' |
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
| FROM node:8.9-alpine | |
| RUN npm install --global yarn && \ | |
| yarn global add pm2 && \ | |
| yarn |
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 { curry } = require('ramda') | |
| const { readdirSync, readFileSync } = require('fs') | |
| const path = require('path') | |
| const isGraphQLFile = fileName => fileName.endsWith('.graphql') | |
| const readFile = curry((dirname, fileName) => readFileSync(path.join(dirname, fileName), 'utf8')) | |
| /** | |
| * @method loadGraphQLFiles | |
| * @param {String} dirname |
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
| --- | |
| version: '2' | |
| services: | |
| zookeeper: | |
| image: confluentinc/cp-zookeeper:latest | |
| network_mode: host | |
| environment: | |
| ZOOKEEPER_CLIENT_PORT: 32181 | |
| ZOOKEEPER_TICK_TIME: 2000 | |
| extra_hosts: |
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
| GOBIN=$(shell pwd)/bin | |
| PROD_VERSION=$(shell cat ./VERSION) | |
| BUILD_DIR=$(shell pwd) | |
| SRC_DIR=$(BUILD_DIR)/src | |
| GONAME=$(shell basename "$(PWD)") | |
| BINFILE=${GOBIN}/${GONAME} | |
| GOFILES=. | |
| PID=/tmp/go-$(GONAME).pid | |
| GOARCH = amd64 |
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
| --- | |
| version: '2' | |
| services: | |
| zookeeper: | |
| image: confluentinc/cp-zookeeper:latest | |
| network_mode: host | |
| environment: | |
| ZOOKEEPER_CLIENT_PORT: 32181 | |
| ZOOKEEPER_TICK_TIME: 2000 | |
| extra_hosts: |
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
| LIB = $(SRC:src/%.js=lib/%.js) | |
| build: $(LIB) | |
| define release | |
| VERSION=`node -pe "require('./package.json').version"` && \ | |
| NEXT_VERSION=`node -pe "require('semver').inc(\"$$VERSION\", '$(1)')"` && \ | |
| node -e "\ | |
| var j = require('./package.json');\ | |
| j.version = \"$$NEXT_VERSION\";\ |