Merge branch 'master' into dependabot/npm_and_yarn/cypress-3.8.3
This commit is contained in:
38
.travis.yml
38
.travis.yml
@@ -13,38 +13,40 @@
|
|||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "12"
|
- "12"
|
||||||
|
|
||||||
|
os: linux
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- libgconf-2-4 # cypress binary dependency
|
- libgconf-2-4 # cypress binary dependency
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DEPLOY_ENV=POSTWOMAN_IO
|
- DEPLOY_ENV=POSTWOMAN_IO
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
npm: true
|
npm: true
|
||||||
directories:
|
directories:
|
||||||
- "node_modules"
|
- "node_modules"
|
||||||
- ~/.cache
|
- ~/.cache
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- "master"
|
- "master"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- "npm install firebase-tools"
|
- "npm install firebase-tools"
|
||||||
- "npm install"
|
- "npm install"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- "npm run test"
|
- "npm run test"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- "cd functions"
|
- "cd functions"
|
||||||
- "npm install"
|
- "npm install"
|
||||||
- "cd .."
|
- "cd .."
|
||||||
- "npm run generate"
|
- "npm run generate"
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://www.travisbuddy.com
|
webhooks: https://www.travisbuddy.com
|
||||||
|
|||||||
@@ -592,7 +592,6 @@ pre {
|
|||||||
|
|
||||||
select {
|
select {
|
||||||
height: 37px;
|
height: 37px;
|
||||||
background-color: var(--bg-dark-color);
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
|
|||||||
2
build.js
2
build.js
@@ -53,7 +53,7 @@ try {
|
|||||||
|
|
||||||
// Write version data into a file
|
// Write version data into a file
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
PW_BUILD_DATA_DIR + "/version.json",
|
`${PW_BUILD_DATA_DIR}/version.json`,
|
||||||
JSON.stringify(version)
|
JSON.stringify(version)
|
||||||
);
|
);
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
addNewCollection() {
|
addNewCollection() {
|
||||||
if (!this.$data.name) {
|
if (!this.$data.name) {
|
||||||
this.$toast.info('Please provide a valid name for the collection')
|
this.$toast.info("Please provide a valid name for the collection");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$store.commit("postwoman/addNewCollection", {
|
this.$store.commit("postwoman/addNewCollection", {
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
saveCollection() {
|
saveCollection() {
|
||||||
if (!this.$data.name) {
|
if (!this.$data.name) {
|
||||||
this.$toast.info('Please provide a valid name for the collection');
|
this.$toast.info("Please provide a valid name for the collection");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const collectionUpdated = {
|
const collectionUpdated = {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
editor: null,
|
editor: null,
|
||||||
cacheValue: "",
|
cacheValue: "",
|
||||||
validationSchema: null
|
validationSchema: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ export default {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setValidationSchema(schema) {
|
setValidationSchema(schema) {
|
||||||
this.validationSchema = schema;
|
this.validationSchema = schema;
|
||||||
this.parseContents(this.cacheValue);
|
this.parseContents(this.cacheValue);
|
||||||
@@ -101,16 +101,15 @@ export default {
|
|||||||
|
|
||||||
if (this.validationSchema) {
|
if (this.validationSchema) {
|
||||||
this.editor.session.setAnnotations(
|
this.editor.session.setAnnotations(
|
||||||
gql.validate(this.validationSchema, doc)
|
gql.validate(this.validationSchema, doc).map(err => {
|
||||||
.map((err) => {
|
return {
|
||||||
return {
|
row: err.locations[0].line - 1,
|
||||||
row: err.locations[0].line - 1,
|
column: err.locations[0].column - 1,
|
||||||
column: err.locations[0].column - 1,
|
text: err.message,
|
||||||
text: err.message,
|
type: "error"
|
||||||
type: "error"
|
};
|
||||||
}
|
})
|
||||||
})
|
);
|
||||||
)
|
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.editor.session.setAnnotations([
|
this.editor.session.setAnnotations([
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
// functions which might be called frequently
|
// functions which might be called frequently
|
||||||
// NOTE : Don't use lambda functions as this doesn't get bound properly in them, use the 'function (args) {}' format
|
// NOTE : Don't use lambda functions as this doesn't get bound properly in them, use the 'function (args) {}' format
|
||||||
const debounce = (func, delay) => {
|
const debounce = (func, delay) => {
|
||||||
let inDebounce
|
let inDebounce;
|
||||||
return function() {
|
return function() {
|
||||||
const context = this
|
const context = this;
|
||||||
const args = arguments
|
const args = arguments;
|
||||||
clearTimeout(inDebounce)
|
clearTimeout(inDebounce);
|
||||||
inDebounce = setTimeout(() => func.apply(context, args), delay)
|
inDebounce = setTimeout(() => func.apply(context, args), delay);
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
export default debounce;
|
export default debounce;
|
||||||
|
|||||||
@@ -664,9 +664,8 @@
|
|||||||
import intializePwa from "../assets/js/pwa";
|
import intializePwa from "../assets/js/pwa";
|
||||||
import * as version from "../.postwoman/version.json";
|
import * as version from "../.postwoman/version.json";
|
||||||
import { hasChromeExtensionInstalled } from "../functions/strategies/ChromeStrategy";
|
import { hasChromeExtensionInstalled } from "../functions/strategies/ChromeStrategy";
|
||||||
|
import firebase from "firebase/app";
|
||||||
import firebase from 'firebase/app';
|
import { fb } from "../functions/fb";
|
||||||
import { fb } from '../functions/fb';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
@@ -812,9 +812,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.gqlTypes = types;
|
this.gqlTypes = types;
|
||||||
|
|
||||||
this.$refs.queryEditor.setValidationSchema(schema);
|
this.$refs.queryEditor.setValidationSchema(schema);
|
||||||
|
|
||||||
this.$nuxt.$loading.finish();
|
this.$nuxt.$loading.finish();
|
||||||
const duration = Date.now() - startTime;
|
const duration = Date.now() - startTime;
|
||||||
this.$toast.info(this.$t("finished_in", { duration }), {
|
this.$toast.info(this.$t("finished_in", { duration }), {
|
||||||
|
|||||||
Reference in New Issue
Block a user