Set default Bubble position to bottom right.
This commit is contained in:
parent
dda92746fa
commit
29db681e1c
@ -1,17 +1,16 @@
|
|||||||
{
|
{
|
||||||
"name": "moco-browser-extensions",
|
"name": "moco-browser-extensions",
|
||||||
"description": "Browser plugin for MOCO",
|
"description": "Browser plugin for MOCO",
|
||||||
"version": "1.0.18",
|
"version": "1.0.19",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "yarn start:chrome",
|
"start": "yarn start:chrome",
|
||||||
"start:chrome": "node_modules/.bin/webpack --config webpack.chrome.config.js --watch --env.browser chrome --env.NODE_ENV development",
|
"start:chrome": "node_modules/.bin/webpack --config webpack.chrome.config.js --watch --env.browser chrome --env.NODE_ENV development",
|
||||||
"start:firefox": "node_modules/.bin/webpack --config webpack.firefox.config.js --watch --env.browser firefox --env.NODE_ENV development",
|
"start:firefox": "node_modules/.bin/webpack --config webpack.firefox.config.js --watch --env.browser firefox --env.NODE_ENV development",
|
||||||
"build:chrome": "node_modules/.bin/webpack -p --config webpack.chrome.config.js --env.browser chrome --env.NODE_ENV production",
|
"build:chrome": "node_modules/.bin/webpack -p --config webpack.chrome.config.js --env.browser chrome --env.NODE_ENV production && zip -r build/chrome/moco-bx-source.zip src",
|
||||||
"build:firefox": "node_modules/.bin/webpack -p --config webpack.firefox.config.js --env.browser firefox --env.NODE_ENV production",
|
"build:firefox": "node_modules/.bin/webpack -p --config webpack.firefox.config.js --env.browser firefox --env.NODE_ENV production && zip -r build/firefox/moco-bx-source.zip src",
|
||||||
"build": "yarn run build:firefox && yarn run build:chrome",
|
"build": "yarn run build:firefox && yarn run build:chrome",
|
||||||
"test": "node_modules/.bin/jest",
|
"test": "node_modules/.bin/jest",
|
||||||
"test:watch": "node_modules/.bin/jest --watch",
|
"test:watch": "node_modules/.bin/jest --watch"
|
||||||
"release": "copyfiles main.css main.min.js background.min.js manifest.json popup.html options.html node_modules/jquery/dist/jquery.min.js node_modules/select2/select2.js src/images/* release"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bugsnag/js": "^5.2.0",
|
"@bugsnag/js": "^5.2.0",
|
||||||
|
@ -31,8 +31,7 @@ export default {
|
|||||||
?.textContent.trim()
|
?.textContent.trim()
|
||||||
?.match(/^\[(\d+)\]/)
|
?.match(/^\[(\d+)\]/)
|
||||||
return match && match[1]
|
return match && match[1]
|
||||||
},
|
}
|
||||||
position: { right: "2rem" }
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"github-issue": {
|
"github-issue": {
|
||||||
@ -41,8 +40,7 @@ export default {
|
|||||||
id: (document, service, { org, repo, id }) =>
|
id: (document, service, { org, repo, id }) =>
|
||||||
[service.key, org, repo, id].join("."),
|
[service.key, org, repo, id].join("."),
|
||||||
description: (document, service, { org, repo, id }) =>
|
description: (document, service, { org, repo, id }) =>
|
||||||
document.querySelector(".js-issue-title")?.textContent?.trim(),
|
document.querySelector(".js-issue-title")?.textContent?.trim()
|
||||||
position: { right: "2rem" }
|
|
||||||
},
|
},
|
||||||
|
|
||||||
jira: {
|
jira: {
|
||||||
@ -74,8 +72,7 @@ export default {
|
|||||||
name: "trello",
|
name: "trello",
|
||||||
urlPatterns: ["https\\://trello.com/c/:id/:title"],
|
urlPatterns: ["https\\://trello.com/c/:id/:title"],
|
||||||
description: (document, service, { title }) =>
|
description: (document, service, { title }) =>
|
||||||
document.querySelector(".js-title-helper")?.textContent?.trim() || title,
|
document.querySelector(".js-title-helper")?.textContent?.trim() || title
|
||||||
position: { right: "calc(2rem + 4px)" }
|
|
||||||
},
|
},
|
||||||
|
|
||||||
youtrack: {
|
youtrack: {
|
||||||
@ -91,7 +88,6 @@ export default {
|
|||||||
description: document =>
|
description: document =>
|
||||||
document
|
document
|
||||||
.querySelector(".taskItem.selected .taskItem-titleWrapper-title")
|
.querySelector(".taskItem.selected .taskItem-titleWrapper-title")
|
||||||
?.textContent?.trim(),
|
?.textContent?.trim()
|
||||||
position: { right: "calc(2rem + 4px)" }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ export const createEnhancer = document => service => {
|
|||||||
description: evaluate(service.description),
|
description: evaluate(service.description),
|
||||||
projectId: evaluate(service.projectId),
|
projectId: evaluate(service.projectId),
|
||||||
taskId: evaluate(service.taskId),
|
taskId: evaluate(service.taskId),
|
||||||
position: service.position || { left: "50%", transform: "translateX(-50%)" }
|
position: service.position || { right: "calc(2rem + 5px)" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user