Skip to content

Instantly share code, notes, and snippets.

@admicaa
Last active October 29, 2022 13:19
Show Gist options
  • Select an option

  • Save admicaa/b0a1dead2d588cc2032ad75d75a37989 to your computer and use it in GitHub Desktop.

Select an option

Save admicaa/b0a1dead2d588cc2032ad75d75a37989 to your computer and use it in GitHub Desktop.
google maps Address components parser
{"lastUpload":"2020-08-06T23:50:21.809Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "2e9fe0cb-4e63-42fc-a809-fb056aad49c3",
"publisherId": "stevencl.addDocComments",
"publisherDisplayName": "stevencl"
},
"name": "addDocComments",
"publisher": "stevencl",
"version": "0.0.8"
},
{
"metadata": {
"id": "71959203-3711-4dc1-bbd5-6fb2da1ccfac",
"publisherId": "presidentma.axios-snippets",
"publisherDisplayName": "presidentma"
},
"name": "axios-snippets",
"publisher": "presidentma",
"version": "0.0.3"
},
{
"metadata": {
"id": "697255a9-3f36-44c8-b084-d3b91edfb23a",
"publisherId": "HookyQR.beautify",
"publisherDisplayName": "HookyQR"
},
"name": "beautify",
"publisher": "HookyQR",
"version": "1.5.0"
},
{
"metadata": {
"id": "2a658c1b-308a-41e8-805a-fc8abda483bc",
"publisherId": "thekalinga.bootstrap4-vscode",
"publisherDisplayName": "thekalinga"
},
"name": "bootstrap4-vscode",
"publisher": "thekalinga",
"version": "6.1.0"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "c06c54a1-b341-432a-8f19-fad4cb68f4bb",
"publisherId": "DiegoMolina.css-minify",
"publisherDisplayName": "DiegoMolina"
},
"name": "css-minify",
"publisher": "DiegoMolina",
"version": "0.1.13"
},
{
"metadata": {
"id": "0c3167bc-354d-4c84-ad6f-160d4f2243ea",
"publisherId": "alexbabichev.formatter-pug",
"publisherDisplayName": "alexbabichev"
},
"name": "formatter-pug",
"publisher": "alexbabichev",
"version": "0.0.1"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "10.2.2"
},
{
"metadata": {
"id": "49c89bb6-0f18-4430-b62e-51bf48a6a2e1",
"publisherId": "hwencc.html-tag-wrapper",
"publisherDisplayName": "hwencc"
},
"name": "html-tag-wrapper",
"publisher": "hwencc",
"version": "0.2.3"
},
{
"metadata": {
"id": "c16f95f6-9b42-4a24-9bf4-245d4ea54fc5",
"publisherId": "bradgashler.htmltagwrap",
"publisherDisplayName": "bradgashler"
},
"name": "htmltagwrap",
"publisher": "bradgashler",
"version": "0.0.7"
},
{
"metadata": {
"id": "32aada6b-3cbf-4590-ab56-f2c4423d028f",
"publisherId": "cjhowe7.laravel-blade",
"publisherDisplayName": "cjhowe7"
},
"name": "laravel-blade",
"publisher": "cjhowe7",
"version": "1.1.2"
},
{
"metadata": {
"id": "3b58a227-618a-4b57-a06b-6984a2a8d1ba",
"publisherId": "onecentlin.laravel-blade",
"publisherDisplayName": "onecentlin"
},
"name": "laravel-blade",
"publisher": "onecentlin",
"version": "1.22.1"
},
{
"metadata": {
"id": "050d4900-7979-4d10-b7aa-e274f6ae8730",
"publisherId": "onecentlin.laravel5-snippets",
"publisherDisplayName": "onecentlin"
},
"name": "laravel5-snippets",
"publisher": "onecentlin",
"version": "1.9.0"
},
{
"metadata": {
"id": "b63c44fd-0457-4696-99e9-dbfdf70d77de",
"publisherId": "ritwickdey.LiveServer",
"publisherDisplayName": "ritwickdey"
},
"name": "LiveServer",
"publisher": "ritwickdey",
"version": "5.6.1"
},
{
"metadata": {
"id": "489abeb0-400c-4a08-bde4-cf5d9b863a32",
"publisherId": "Tyriar.lorem-ipsum",
"publisherDisplayName": "Tyriar"
},
"name": "lorem-ipsum",
"publisher": "Tyriar",
"version": "1.2.0"
},
{
"metadata": {
"id": "e3100455-813e-40a5-b1ae-74c05bb404e6",
"publisherId": "pixelwar.love2dsnippets",
"publisherDisplayName": "pixelwar"
},
"name": "love2dsnippets",
"publisher": "pixelwar",
"version": "2.0.0"
},
{
"metadata": {
"id": "5db78037-f674-459f-a236-db622c427c5b",
"publisherId": "PKief.material-icon-theme",
"publisherDisplayName": "PKief"
},
"name": "material-icon-theme",
"publisher": "PKief",
"version": "4.2.0"
},
{
"metadata": {
"id": "4910504f-46ab-4f0f-85a5-2803c389588d",
"publisherId": "ashinzekene.nestjs",
"publisherDisplayName": "ashinzekene"
},
"name": "nestjs",
"publisher": "ashinzekene",
"version": "1.4.0"
},
{
"metadata": {
"id": "e58f546c-babc-455f-a265-ba40dbd140d4",
"publisherId": "sdras.night-owl",
"publisherDisplayName": "sdras"
},
"name": "night-owl",
"publisher": "sdras",
"version": "1.1.3"
},
{
"metadata": {
"id": "f4dca966-4ae5-46bd-9d1d-d202f6bdd519",
"publisherId": "tiansin.php-class-helper",
"publisherDisplayName": "tiansin"
},
"name": "php-class-helper",
"publisher": "tiansin",
"version": "0.2.1"
},
{
"metadata": {
"id": "ca0094fa-0dc7-4847-ae5d-879442c099ca",
"publisherId": "neilbrayfield.php-docblocker",
"publisherDisplayName": "neilbrayfield"
},
"name": "php-docblocker",
"publisher": "neilbrayfield",
"version": "2.1.0"
},
{
"metadata": {
"id": "184b10e7-3b8c-40d7-9f2b-b82bd8282464",
"publisherId": "rexshi.phpdoc-comment-vscode-plugin",
"publisherDisplayName": "rexshi"
},
"name": "phpdoc-comment-vscode-plugin",
"publisher": "rexshi",
"version": "1.3.0"
},
{
"metadata": {
"id": "389cd4a7-a68b-4cc5-8451-29cc7674ef6d",
"publisherId": "jeff-hykin.polacode-2019",
"publisherDisplayName": "jeff-hykin"
},
"name": "polacode-2019",
"publisher": "jeff-hykin",
"version": "0.5.2"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "5.1.3"
},
{
"metadata": {
"id": "93d76817-75fd-47d0-bec0-d5f7ca64caeb",
"publisherId": "amandeepmittal.pug",
"publisherDisplayName": "amandeepmittal"
},
"name": "pug",
"publisher": "amandeepmittal",
"version": "1.0.1"
},
{
"metadata": {
"id": "93ce222b-5f6f-49b7-9ab1-a0463c6238df",
"publisherId": "ms-vscode-remote.remote-containers",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-containers",
"publisher": "ms-vscode-remote",
"version": "0.128.0"
},
{
"metadata": {
"id": "f0c5397b-d357-4197-99f0-cb4202f22818",
"publisherId": "ms-vscode-remote.remote-wsl",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-wsl",
"publisher": "ms-vscode-remote",
"version": "0.44.4"
},
{
"metadata": {
"id": "466468c3-1861-4ad1-bf3e-f9ad46545ebb",
"publisherId": "syler.sass-indented",
"publisherDisplayName": "syler"
},
"name": "sass-indented",
"publisher": "syler",
"version": "1.8.9"
},
{
"metadata": {
"id": "735af542-944f-4b07-b336-9df27d7b8d84",
"publisherId": "smlombardi.slime",
"publisherDisplayName": "smlombardi"
},
"name": "slime",
"publisher": "smlombardi",
"version": "3.2.1"
},
{
"metadata": {
"id": "d6ba4b7b-539f-456a-b0f6-0348df44cdf3",
"publisherId": "nikitaKunevich.snippet-creator",
"publisherDisplayName": "nikitaKunevich"
},
"name": "snippet-creator",
"publisher": "nikitaKunevich",
"version": "0.0.5"
},
{
"metadata": {
"id": "cc696a48-d0a5-4d72-8cb2-1030570a525b",
"publisherId": "Cronos87.symfony-snippets",
"publisherDisplayName": "Cronos87"
},
"name": "symfony-snippets",
"publisher": "Cronos87",
"version": "0.1.1"
},
{
"metadata": {
"id": "3324c5be-43aa-4c39-a0f8-d94c2978804f",
"publisherId": "whatwedo.twig",
"publisherDisplayName": "whatwedo"
},
"name": "twig",
"publisher": "whatwedo",
"version": "1.0.2"
},
{
"metadata": {
"id": "bfcc4184-7b55-410e-a012-20ee54be9264",
"publisherId": "mblode.twig-language-2",
"publisherDisplayName": "mblode"
},
"name": "twig-language-2",
"publisher": "mblode",
"version": "0.9.1"
},
{
"metadata": {
"id": "2f5dd8cb-d251-4d70-abfe-ddebcb077483",
"publisherId": "octref.vetur",
"publisherDisplayName": "octref"
},
"name": "vetur",
"publisher": "octref",
"version": "0.26.0"
},
{
"metadata": {
"id": "484d897a-6711-403c-ab54-a96f12be5833",
"publisherId": "Equinusocio.vsc-community-material-theme",
"publisherDisplayName": "Equinusocio"
},
"name": "vsc-community-material-theme",
"publisher": "Equinusocio",
"version": "1.4.1"
},
{
"metadata": {
"id": "dffaf5a1-2219-434b-9d87-cb586fd59260",
"publisherId": "Equinusocio.vsc-material-theme",
"publisherDisplayName": "Equinusocio"
},
"name": "vsc-material-theme",
"publisher": "Equinusocio",
"version": "32.8.0"
},
{
"metadata": {
"id": "8c609a4f-268a-41fb-8fe6-b6fcd95e8113",
"publisherId": "equinusocio.vsc-material-theme-icons",
"publisherDisplayName": "equinusocio"
},
"name": "vsc-material-theme-icons",
"publisher": "equinusocio",
"version": "1.2.0"
},
{
"metadata": {
"id": "70159dd5-3ca5-4ccc-a7ae-011a662e08c2",
"publisherId": "mrmlnc.vscode-autoprefixer",
"publisherDisplayName": "mrmlnc"
},
"name": "vscode-autoprefixer",
"publisher": "mrmlnc",
"version": "3.0.1"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "2.1.8"
},
{
"metadata": {
"id": "d637104e-1fd7-4063-98fc-8afe46012c9b",
"publisherId": "sleistner.vscode-fileutils",
"publisherDisplayName": "sleistner"
},
"name": "vscode-fileutils",
"publisher": "sleistner",
"version": "3.0.1"
},
{
"metadata": {
"id": "ffda6552-0ad5-431b-a4fa-0905a7e4f3f0",
"publisherId": "bmewburn.vscode-intelephense-client",
"publisherDisplayName": "bmewburn"
},
"name": "vscode-intelephense-client",
"publisher": "bmewburn",
"version": "1.5.3"
},
{
"metadata": {
"id": "a0095eaa-9c78-4f59-be64-7326ee267964",
"publisherId": "mrmlnc.vscode-jade-snippets",
"publisherDisplayName": "mrmlnc"
},
"name": "vscode-jade-snippets",
"publisher": "mrmlnc",
"version": "1.0.1"
},
{
"metadata": {
"id": "77b70e30-3534-4098-9d6d-382a96babca4",
"publisherId": "dkundel.vscode-new-file",
"publisherDisplayName": "dkundel"
},
"name": "vscode-new-file",
"publisher": "dkundel",
"version": "4.0.2"
},
{
"metadata": {
"id": "5cc2402f-b151-43bf-851f-01dd66c07aa3",
"publisherId": "namevalues.vscode-next",
"publisherDisplayName": "namevalues"
},
"name": "vscode-next",
"publisher": "namevalues",
"version": "0.0.1"
},
{
"metadata": {
"id": "ddca2c14-67cb-488e-8046-dc12bd814f95",
"publisherId": "fterrag.vscode-php-cs-fixer",
"publisherDisplayName": "fterrag"
},
"name": "vscode-php-cs-fixer",
"publisher": "fterrag",
"version": "0.3.0"
},
{
"metadata": {
"id": "8130e01f-ac60-4803-ab86-f05469dd7b4d",
"publisherId": "kokororin.vscode-phpfmt",
"publisherDisplayName": "kokororin"
},
"name": "vscode-phpfmt",
"publisher": "kokororin",
"version": "1.0.30"
},
{
"metadata": {
"id": "85d9beac-b80e-4b26-846d-72325e4a5aa1",
"publisherId": "dtx92.vscode-pugvuebeautify",
"publisherDisplayName": "dtx92"
},
"name": "vscode-pugvuebeautify",
"publisher": "dtx92",
"version": "1.0.3"
},
{
"metadata": {
"id": "23d72dfc-8dd1-4e30-926e-8783b4378f13",
"publisherId": "ms-vscode-remote.vscode-remote-extensionpack",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "vscode-remote-extensionpack",
"publisher": "ms-vscode-remote",
"version": "0.20.0"
},
{
"metadata": {
"id": "beb68b20-7c55-471c-9b63-3486f9423566",
"publisherId": "mrmlnc.vscode-scss",
"publisherDisplayName": "mrmlnc"
},
"name": "vscode-scss",
"publisher": "mrmlnc",
"version": "0.9.0"
},
{
"metadata": {
"id": "b7f9b6e8-ce58-408c-ae15-47e0d917e10c",
"publisherId": "bejjang2.vue-jsdoc",
"publisherDisplayName": "bejjang2"
},
"name": "vue-jsdoc",
"publisher": "bejjang2",
"version": "0.0.2"
},
{
"metadata": {
"id": "3620b114-6fe8-459b-8c68-99943147069b",
"publisherId": "hollowtree.vue-snippets",
"publisherDisplayName": "hollowtree"
},
"name": "vue-snippets",
"publisher": "hollowtree",
"version": "0.1.12"
},
{
"metadata": {
"id": "a0a6c52d-6418-4b3b-b7a2-3323b1ec8635",
"publisherId": "vuetifyjs.vuetify-vscode",
"publisherDisplayName": "vuetifyjs"
},
"name": "vuetify-vscode",
"publisher": "vuetifyjs",
"version": "0.2.0"
},
{
"metadata": {
"id": "0cb81da2-1880-4755-9995-0ae9cc728e20",
"publisherId": "DotJoshJohnson.xml",
"publisherDisplayName": "DotJoshJohnson"
},
"name": "xml",
"publisher": "DotJoshJohnson",
"version": "2.5.1"
}
]
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+alt+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+d ctrl+shift+s",
"command": "workbench.view.debug"
},
{
"key": "ctrl+shift+d",
"command": "-workbench.view.debug"
},
{
"key": "ctrl+shift+q",
"command": "HookyQR.beautifyFile"
},
{
"key": "ctrl+alt+g",
"command": "class-helper.addPrivateProperties"
},
{
"key": "ctrl+shift+alt+i",
"command": "extension.addPHPComment",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+i",
"command": "-extension.addPHPComment",
"when": "editorTextFocus"
},
{
"key": "ctrl+d",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+shift+alt+d",
"command": "docthis.documentThis"
},
{
"key": "ctrl+alt+d ctrl+alt+d",
"command": "-docthis.documentThis"
}
]
{
"editor.minimap.enabled": false,
"workbench.colorTheme": "Night Owl",
"explorer.openEditors.visible": 0,
"php-cs-fixer.onsave": true,
"php-cs-fixer.executablePath": "${extensionPath}/php-cs-fixer.phar",
"php-cs-fixer.lastDownload": 1579055158403,
"blade.format.enable": true,
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"emmet.triggerExpansionOnTab": true,
"window.zoomLevel": 0,
"files.associations": {
"*.vue": "vue",
},
"emmet.includeLanguages": {
"twig": "html"
},
"javascript.updateImportsOnFileMove.enabled": "always",
"[php]": {
"editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"gitlens.views.repositories.files.layout": "list",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"workbench.iconTheme": "material-icon-theme",
"editor.renderWhitespace": "none",
"editor.renderControlCharacters": false,
"breadcrumbs.enabled": false,
"eslint.validate": [{
"language": "vue",
"autoFix": true
},
{
"language": "html",
"autoFix": true
},
{
"language": "javascript",
"autoFix": true
}
],
"[jsonc]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"eslint.enable": false,
"workbench.activityBar.visible": false,
"workbench.statusBar.visible": true,
"vetur.format.defaultFormatter.pug": "ahmed",
"editor.formatOnSave": true,
"vetur.validation.template": false,
"pugvuebeautify.omitDiv": true,
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSaveTimeout": 5000,
"files.watcherExclude": {
"**/vendor/**": true
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"explorer.confirmDragAndDrop": false,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"sync.gist": "b0a1dead2d588cc2032ad75d75a37989",
"editor.fontSize": 16,
"explorer.confirmDelete": false,
"emmet.extensionsPath": "",
"emmet.syntaxProfiles": {
"javascript":"jsx"
}
}
{
"transme": {
"prefix": "transme",
"body": [
"{{trans('home/main.$1')}}"
],
"description": "transme"
}
}
{
"transme": {
"prefix": "transme",
"body": [
"trans('front.touroffers.$1')"
],
"description": "transme"
},
"inputpattern": {
"prefix": "inputpattern",
"body": [
"{",
" name: '$1',",
" id: '$2',",
" placeholder: '$3',",
" type: '$4',",
" model: '$5',",
" validate: '$6',",
"},"
],
"description": "inputpattern"
},
"StoreModule": {
"prefix": "StoreModule",
"body": [
"const state = {",
"",
"};",
"",
"",
"const getters = {",
"",
"};",
"",
"",
"const actions = {",
"",
"};",
"",
"",
"const mutations = {",
"",
"};",
"",
"export default{",
" state,",
" getters,",
" actions,",
" mutations",
"}"
],
"description": "StoreModule"
},
"vssPost": {
"prefix": "vsspost",
"body": [
"this.$$vss.post({",
" storeDispatch: $1,",
" data: $2,",
" validationForm: $3,",
" successServer: response => {",
" $4;",
" },",
" failServer: error => {",
" $5;",
" },",
" LoadingTitle: this.trans('$6'),",
" LoadingBody: this.trans('$7')",
" });"
],
"description": "vsspost"
},
"vssAsk": {
"prefix": "vssask",
"body": [
"this.$$vss.ask({",
" LoadingTitle: \"Please Confirm\",",
" LoadingBody: \"$2\",",
" confirmedAction: () => {",
" $3",
" }",
" });"
],
"description": "vssask"
},
"Headerspermissions": {
"prefix": "HeadersPermissions",
"body": [
"headers() {",
" return this.allHeaders.filter(header => {",
" if (!header.permissions) {",
" return true;",
" } else {",
" return header.permissions.some(permission => {",
" return this.$can([permission]);",
" });",
" }",
" });",
" }"
],
"description": "headers permissions generator for allHeaders"
},
"crudmodule": {
"prefix": "crudmodule",
"body": [
"const state = () => ({});",
"const getters = {};",
"",
"const actions = {",
" get(context, options) {",
" return this.$$axios.get(\"/$1\", {",
" params: options",
" });",
" },",
"",
" add(context, $2) {",
" return this.$$axios.post(\"/$1\", $2);",
" },",
" edit(context, $2) {",
" return this.$$axios.put(`/$1/$${$2.id}`, $2);",
" },",
"",
" delete(context, $2) {",
" return this.$$axios.delete(`/$1/$${$2.id}`);",
" }",
"};",
"",
"const mutations = {};",
"",
"export default {",
" state,",
" getters,",
" actions,",
" mutations",
"};",
""
],
"description": "crudmodule"
},
"tableheader": {
"prefix": "tableheader",
"body": [
"{",
" text: \"$1\",",
" align: \"center\",",
" value: \"$2\",",
" sortable: ${3:false},",
" }"
],
"description": "tableheader"
},
"optionswatch": {
"prefix": "optionswatch",
"body": [
"options: {",
" deep: true,",
" handler: function(newval) {",
" this.getDataFromApi(newval);",
" }",
" }"
],
"description": "optionswatch"
}
}
{
"lroute": {
"prefix": "lroute",
"body": [
"Route::$1('/$2',['as'=>'$2','uses'=>'$2']);"
],
"description": "lroute"
},
"ahmedaliDoc": {
"prefix": "ahmedaliDoc",
"body": [
"/**",
" * $1",
" *",
" * @param $2",
" * @author Ahmed Ali Thabet",
" * @return $3",
" */ "
],
"description": "ahmedaliDoc"
},
"vardoc": {
"prefix": "vardoc",
"body": [
"/**",
"* $1",
"* @var $2",
"*/"
],
"description": "vardoc"
},
"dbforeign": {
"prefix": "dbforeign",
"body": [
"$table->foreign($1)->references($2)->on($3);"
],
"description": "dbforeign"
},
"paginator": {
"prefix": "paginator",
"body": [
" $$perPage = request()->itemsPerPage ?: 10;",
" $$perPage = $$perPage == -1 ? $1::count() : $$perPage;",
" $$1Paginator = $1::paginate($$perPage);",
" return $$1Paginator;"
],
"description": "paginator"
},
"vssmessages": {
"prefix": "vssmessages",
"body": [
"'$1' => [",
" 'LoadingTitle' => '$2',",
" 'LoadingBody' => '$2',",
" 'successTitle' => '$3',",
" 'successBody' => '$3',",
" ],"
],
"description": "vssmessages"
},
"foreign::language": {
"prefix": "foreign::language",
"body": [
"$table->string('language');",
" $table->foreign('language')->references('shortcut')->on('languages')->onDelete('cascade');"
],
"description": "foreign::language"
}
}
{
"transmee": {
"prefix": "transmee",
"body": [
"trans('front.$1')"
],
"description": "transmee"
},
"undefined": {
"body": [
"<template>",
" <div style=\"min-height:100%;\">",
" ",
" ",
" </div>",
"</template>",
"",
"",
"<script>",
" export default {",
" data() {",
" return {",
" ",
" }",
" },",
" computed: {",
" ",
" },",
" props:{},",
" methods:{},",
" created() {",
" ",
" ",
" },",
" mounted() {",
" ",
" ",
" },",
" ",
" }",
"</script>",
"",
"<style lang=\"scss\">",
" ",
"</style>",
"/******************* ",
"*",
"*",
"*",
"* Ahmed Ali Tahbet",
"*",
"*",
" ********************/"
]
},
"vardoc": {
"prefix": "vardoc",
"body": [
"/**",
"* $1",
"* @var $2",
"*/"
],
"description": "vardoc"
}
}
{
"transme": {
"prefix": "transme",
"body": [
"{{trans('admin.orders.$1')}}"
],
"description": "transme"
},
"nuxtrans": {
"prefix": "nuxtrans",
"body": [
"{{$$t('$1')}}"
],
"description": "nuxtrans"
},
"admindatatable": {
"prefix": "admindatatable",
"body": [
"<v-data-table",
" :headers=\"headers\"",
" :loading=\"loading\"",
" :items=\"$1\"",
" :server-items-length=\"serverItemsLength\"",
" :options.sync=\"options\"",
" class=\"elevation-1 col-12\"",
" >",
" <template v-slot:top>",
" <v-toolbar flat color=\"white\">",
" <v-toolbar-title>{{trans('$2')}}</v-toolbar-title>",
" <v-divider class=\"mx-4\" inset vertical></v-divider>",
" <div class=\"flex-grow-1\"></div>",
" $3",
" </v-toolbar>",
" </template>",
" ",
" </v-data-table>"
],
"description": "admindatatable"
},
"datatabletemplate": {
"prefix": "datatabletemplate",
"body": [
"<template v-slot:item.$1></template>"
],
"description": "datatabletemplate"
}
}
{
// Place your snippets for vue-postcss here. Each snippet is defined under a snippet name and has a prefix, body and
// description. 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": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
}
{
"transme": {
"prefix": "transme",
"body": [
"trans('front.tourpayments.$1')"
],
"description": "transme"
},
"nuxtrans": {
"prefix": "nuxtrans",
"body": [
"$$t('$1')"
],
"description": "nuxtrans"
},
"ahmedalivue": {
"prefix": "ahmedalivue",
"body": [
"<template>",
" <div style=\"min-height:100%;\">",
" ",
" ",
" </div>",
"</template>",
"",
"",
"<script>",
" export default {",
" data() {",
" return {",
" ",
" }",
" },",
" computed: {",
" ",
" },",
" props: {},",
" watch: {},",
" methods: {},",
" components: {},",
" created() {",
" ",
" ",
" },",
" mounted() {",
" ",
" ",
" },",
" ",
" ",
" }",
"</script>",
"",
"",
"/******************* ",
"*",
"*",
"*",
"* Ahmed Ali Tahbet",
"*",
"*",
" ********************/"
],
"description": "ahmedalivue"
},
"vssPost": {
"prefix": "vssPost",
"body": [
"this.$vss.post({",
" storeDispatch: $1,",
" data: $2,",
" validationForm: $3,",
" successServer: response => {",
" $4;",
" },",
" failServer: error => {",
" $5;",
" },",
" LoadingTitle: \"\",",
" LoadingBody: \"\"",
" });"
],
"description": "vssPost"
},
"crudmodal": {
"prefix": "crudmodal",
"body": [
"<template>",
" <v-dialog fullscreen :retain-focus=\"false\" v-model=\"dialog\" max-width=\"500px\">",
" <template v-slot:activator=\"{ on }\">",
" <v-btn",
" color=\"primary\"",
" dark",
" class=\"mb-2\"",
" v-on=\"on\"",
" v-if=\"$$can(['create-$1'])\"",
" >{{trans('newItem')}}</v-btn>",
" </template>",
" <v-card>",
" <ValidationObserver ref=\"form\" v-slot=\"{handleSubmit}\">",
" <v-toolbar dark color=\"primary\">",
" <v-btn icon dark @click=\"close\">",
" <v-icon>mdi-close</v-icon>",
" </v-btn>",
" <v-toolbar-title>{{formTitle}}</v-toolbar-title>",
" <v-spacer></v-spacer>",
" <v-toolbar-items>",
" <v-btn dark text @click=\"handleSubmit(save)\">Save</v-btn>",
" </v-toolbar-items>",
" </v-toolbar>",
"",
" <v-container>",
" <v-row>",
" <v-col cols=\"6\" cols-sm=\"12\"></v-col>",
" <v-col cols=\"12\" cols-sm=\"12\"></v-col>",
" </v-row>",
" </v-container>",
" </ValidationObserver>",
" </v-card>",
" </v-dialog>",
"</template>",
"",
"",
"<script>",
"export default {",
" transBase: \"admin.policies\",",
" data() {",
" return {",
" loaded: false,",
" dialog: false,",
" defaultData: {",
" $2",
" },",
" item: {",
" $2",
" }",
" };",
" },",
" computed: {",
" formTitle() {",
" return this.trans(\"newItem\");",
" }",
" },",
" props: {",
" value: {",
" required: false,",
" default: false",
" },",
" editAgency: {",
" required: false,",
" default: () => {",
" return JSON.parse(JSON.stringify(this.defaultData));",
" }",
" }",
" },",
" watch: {",
" value(newval) {",
" this.dialog = newval;",
" },",
" editAgency(newval) {",
" this.item = JSON.parse(JSON.stringify(newval));",
" },",
" dialog(newval) {",
" newval || this.close();",
" this.$$emit(\"input\", newval);",
" if (newval) {",
" this.$$nextTick(() => {",
" this.loaded = true;",
" });",
" }",
" }",
" },",
" methods: {",
" editorInit(e) {",
" console.log(e);",
" },",
" close() {",
" this.item = JSON.parse(JSON.stringify(this.defaultData));",
" this.dialog = false;",
" this.$$nextTick(() => {",
" this.$$refs.form.reset();",
" });",
" },",
" save() {",
" let storeDispatch = this.item.id",
" ? \"policy/updatePolicy\"",
" : \"policy/addPolicy\";",
" this.$$vss.post({",
" storeDispatch: storeDispatch,",
" data: this.item,",
" validationForm: this.$$refs.form,",
" successServer: response => {",
" this.$$emit(\"updateData\", response.data);",
" this.close();",
" },",
" LoadingTitle: this.trans(\"creatingTitle\"),",
" LoadingBody: this.trans(\"creatingBody\")",
" });",
" }",
" },",
" components: {},",
" created() {},",
" mounted() {}",
"};",
"</script>",
"",
"",
"/******************* ",
"*",
"*",
"*",
"* Ahmed Ali Tahbet",
"*",
"*",
" ********************/"
],
"description": "crudmodal"
},
}
@mantisa
Copy link

mantisa commented Jul 9, 2019

Add postal_town type mapping to city too, please "D
(according to https://developers.google.com/maps/documentation/geocoding/intro#Types)

postal_town indicates a grouping of geographic areas, such as locality and sublocality, used for mailing addresses in some countries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment