Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
V2.3.2 (#19)
Browse files Browse the repository at this point in the history
* update readme

* bump version

* update packages

* bug fixed and added alert

* blobstorage fix

* fixed async popup issue
  • Loading branch information
JZ6 authored May 8, 2020
1 parent 754622d commit 376d831
Show file tree
Hide file tree
Showing 15 changed files with 1,976 additions and 1,881 deletions.
150 changes: 90 additions & 60 deletions .vscode/JZJS.code-snippets
Original file line number Diff line number Diff line change
@@ -1,62 +1,92 @@
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1',$1);",
// "$2"
// ],
// "description": "Log output to console"
// }
"console.warn()": {
"scope": "javascript,typescript",
"prefix": "con,cw",
"body": [
"console.warn('${1:$TM_LINE_NUMBER}', $0);",
],
"description": "Log output to console"
},

"Destruct": {
"scope": "javascript,typescript",
"prefix": "dc,cons,destruct",
"body": [
"const {", " ${0:property}","} = ${1:object};",
],
"description": "Destruct"
},

"import": {
"scope": "javascript,typescript",
"prefix": "imp",
"body": [
"import {", " ${0:export}","} from '${1:module}';",
],
"description": "Import"
},

"hasOwnProperty": {
"scope": "javascript,typescript",
"prefix": "hasO",
"body": [
"${1:Object}.hasOwnProperty(${0:prop})",
],
"description": "hasOwnProperty"
},

"expect": {
"scope": "javascript,typescript",
"prefix": "expect,exp",
"body": [
"expect(${1:Object}).toEqual(${0:prop})",
],
"description": "hasOwnProperty"
}
// Place your snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted.

// Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.

// Example:
// "Print to console": {
// "scope": "javascript, javascriptreact",
// "prefix": "log",
// "body": [
// "console.log('$1',$1);",
// "$2"
// ],
// "description": "Log output to console"
// }

"console.warn()": {
"scope": "javascript, javascriptreact",
"prefix": "con, cw",
"body": [
"console.warn('${1:$TM_LINE_NUMBER}', $0)",
],
"description": "Log output to console"
},

"Destruct": {
"scope": "javascript, javascriptreact",
"prefix": "dc, cons, destruct",
"body": [
"const {", " ${1:property}", "} = ${0:object};",
],
"description": "Destruct"
},

"import": {
"scope": "javascript, javascriptreact",
"prefix": "imp",
"body": [
"import {", " ${0:export}", "} from '${1:module}';",
],
"description": "Import"
},

"hasOwnProperty": {
"scope": "javascript, javascriptreact",
"prefix": "hasO",
"body": [
"${1:Object}.hasOwnProperty(${0:prop})",
],
"description": "hasOwnProperty"
},

"expect": {
"scope": "javascript, javascriptreact",
"prefix": "expect, exp",
"body": [
"expect(${1:Object}).toEqual(${0:prop})",
],
"description": "hasOwnProperty"
},

"arrow": {
"scope": "javascript, javascriptreact",
"prefix": "arr, =>",
"body": [
"(${0:arg}) => {", " ${0:body}", "};",
],
"description": "Arrow Function"
},

"JS Class": {
"scope": "javascript, javascriptreact",
"prefix": "class",
"body": [
"class ${1:name} {",
" constructor(${2:var1}) {",
" this.${2:var1} = ${2:var1}",
" }",
" ",
" ${0:func1}() {",
" ",
" }",
"}"
],
"description": "JS Class"
}
}
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.tabSize": 3,
"search.exclude": {
"**/node_modules": true,
"**/dist": true,
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@

1. Navigate to MyGeotab/systemSettings/Add-Ins, and click new Add-in.
2. Fill in the configuration field, or copy the values from configuration.json from this project.
3. Proceed to click the "add" button in files, and upload the entire dist folder to Mygeotab.
3. Proceed to click the "add" button in files, and upload the entire dist folder to MyGeotab.
4. Navigate to the Real Time Map addin page (which should be on the sidebar if you used the provided configuration file)

# Development:

1. Execute `npm install` to install all dependencies.
2. Execute `npm run devBuild && npm run devServer` to start the dev server (or execute dev.sh).

### This creates a server (http://localhost:9000/) that can be ran and tested locally as long as you have an account with mygeotab api access.
### This creates a local server (http://localhost:9000/) that can be ran and tested locally, as long as you have an account with MyGeotab API access and can login.

# Using The Real Time Map Add-in:

Expand Down
2 changes: 1 addition & 1 deletion configuration.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Real Time Map",
"supportEmail": "[email protected], [email protected]",
"version": "v2.3.1",
"version": "v2.3.2",
"items": [
{
"icon": "dist/img/icon.png",
Expand Down
Loading

0 comments on commit 376d831

Please sign in to comment.