code
stringlengths
2
1.05M
version https://git-lfs.github.com/spec/v1 oid sha256:296b3a2e6106f8de0e15364c429858e732060bdc83643da8b36f3a9d547b7048 size 31684
import AbstractPlate from './AbstractPlate.js'; import LayerOrganizer from '../layerOrganizer.js'; class SvgPlate extends AbstractPlate { constructor(...options) { super(document.createElementNS('http://www.w3.org/2000/svg', 'svg'), ...options); this.rootG = this.selection.append('g'); this.layers = new LayerOrganizer(this.rootG); } _updateDimension() { const width = this.width(); const height = this.height(); const { top, left } = this.margin(); const [x, y] = this.offset(); this.selection .attr('width', width) .attr('height', height); this.rootG.attr( 'transform', `translate(${left + x},${top + y})` ); return this; } } export default SvgPlate;
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.canUseDOM = undefined; exports.removeDocumentMeta = removeDocumentMeta; exports.insertDocumentMeta = insertDocumentMeta; var _utils = require('./utils'); function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); function removeNode(node) { node.parentNode.removeChild(node); } function removeDocumentMeta() { (0, _utils.forEach)(document.querySelectorAll('head [data-rdm]'), removeNode); } function insertDocumentMetaNode(entry) { var tagName = entry.tagName, attr = _objectWithoutProperties(entry, ['tagName']); var newNode = document.createElement(tagName); for (var prop in attr) { if (entry.hasOwnProperty(prop)) { newNode.setAttribute(prop, entry[prop]); } } newNode.setAttribute('data-rdm', ''); document.getElementsByTagName('head')[0].appendChild(newNode); } function insertDocumentMeta(nodes) { removeDocumentMeta(); (0, _utils.forEach)(nodes, insertDocumentMetaNode); }
define(['views/topic_token_view', 'views/list_view', 'result_set'], function(TopicTokenView, ListView, ResultSet){ //TODO: create term mode, fetch-topics mode (use dropdown command button?). var BasicTypeView = ListView.extend({ className: 'basic_types', /*events: { 'click a': 'fetchTopics' }, */ query: function(type){ var method = {topic_type: 'isa', name_type: 'name', occurrence_type: 'occurrence', association_type: 'association', role_type: 'role'}[this.options.basic_type]; return this.model.topics()[method]({type: type}); }, items: function(){ var tm = this.model; return this.list.map(function(topic){ return topic.iids().map(function(iid){ return {iid: iid, topic: topic}; }); }).flatten().sortBy(function(item){ return item.iid; }).map(function(item){ //tm.term(iid); return new TopicTokenView({tm: tm, model: item.topic, label: item.iid}); }); }, fetchTopics: function(e){ e.preventDefault(); _.stopPropagation(e) var type = $(e.target).html(); var query = this.query(type); var topics = query.all(); var results = new ResultSet(topics, query.matches, this.model, type.titleize().pluralize()); this.model.trigger('searched', results); return this; } }); _.aspect(BasicTypeView.prototype, 'initialize', function($super, options){ var self = this; var tm = this.model, method = options.basic_type.pluralize(); var query = tm.topics().type(options.basic_type).where(function(topic){ return topic.iids().length > 0; }); var types = query.all(); //TODO: bug -- this gets hit twice. why? var results = new ResultSet(types, query.matches, this.model, method.humanize().titleize()); $super.call(this, _.defaults(options, {list: results})); results.bind('added', function(model){ self.append(model.iids().map(function(iid){ return new TopicTokenView({tm: tm, model: model, label: iid}); })); }); }); return BasicTypeView; });
var exp_reg={ "features" : [ { "geometry" : { "coordinates" : [8.217724999999973, 45.159023 ], "type" : "Point" }, "properties" : { "wpid":"12623","plink":"http://www.monferratopaesaggi.org/museo-storico-delle-truppe-alpine/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.160454630851746, 45.15466989273043 ], "type" : "Point" }, "properties" : { "wpid":"12311","plink":"http://www.monferratopaesaggi.org/infernot-via-fucina/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.238404989242554, 45.09685205276264 ], "type" : "Point" }, "properties" : { "wpid":"12308","plink":"http://www.monferratopaesaggi.org/infernot-cascina-marole/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.267544507980347, 45.14148978764561 ], "type" : "Point" }, "properties" : { "wpid":"11432","plink":"http://www.monferratopaesaggi.org/fontana-bric-del-lupo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.250850439071655, 45.13283044839087 ], "type" : "Point" }, "properties" : { "wpid":"11429","plink":"http://www.monferratopaesaggi.org/infernot-via-roma-61/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.251832127571106, 45.133678150436474 ], "type" : "Point" }, "properties" : { "wpid":"11425","plink":"http://www.monferratopaesaggi.org/infernot-via-roma/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.31839919090271, 45.03830845554792 ], "type" : "Point" }, "properties" : { "wpid":"11422","plink":"http://www.monferratopaesaggi.org/infernot-via-mameli/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.19205105304718, 45.12901563325583 ], "type" : "Point" }, "properties" : { "wpid":"11420","plink":"http://www.monferratopaesaggi.org/infernot-via-santa-lucia/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.151769638061523, 45.15374835552467 ], "type" : "Point" }, "properties" : { "wpid":"11412","plink":"http://www.monferratopaesaggi.org/cimitero-di-moncestino/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.386366367340088, 45.03234540626007 ], "type" : "Point" }, "properties" : { "wpid":"11399","plink":"http://www.monferratopaesaggi.org/infernot-via-xx-settembre/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.197394990490693, 45.12349558880949 ], "type" : "Point" }, "properties" : { "wpid":"11397","plink":"http://www.monferratopaesaggi.org/infernot-via-alla-chiesa/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.39232623577118, 45.07426690597466 ], "type" : "Point" }, "properties" : { "wpid":"11395","plink":"http://www.monferratopaesaggi.org/infernot-via-barbano-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.38283121585846, 45.081466109773935 ], "type" : "Point" }, "properties" : { "wpid":"11391","plink":"http://www.monferratopaesaggi.org/infernot-via-cei-18/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.391551077365875, 45.074598380948835 ], "type" : "Point" }, "properties" : { "wpid":"11383","plink":"http://www.monferratopaesaggi.org/infernot-piazza-vallino/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.389129042625427, 45.07572916967901 ], "type" : "Point" }, "properties" : { "wpid":"11378","plink":"http://www.monferratopaesaggi.org/infernot-via-barbano-38/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.39947, 45.07963 ], "type" : "Point" }, "properties" : { "wpid":"11071","plink":"http://www.monferratopaesaggi.org/valle-ghenza/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.28225, 45.16083 ], "type" : "Point" }, "properties" : { "wpid":"11067","plink":"http://www.monferratopaesaggi.org/welcome-to-winter-season/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.183341802655036, 45.154523124062585 ], "type" : "Point" }, "properties" : { "wpid":"11065","plink":"http://www.monferratopaesaggi.org/riflessi-nel-lago-del-castello-di-gabiano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.450704514980316, 45.13812648742042 ], "type" : "Point" }, "properties" : { "wpid":"11058","plink":"http://www.monferratopaesaggi.org/nuove-prospettive-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.448430001735687, 45.137464272933286 ], "type" : "Point" }, "properties" : { "wpid":"11056","plink":"http://www.monferratopaesaggi.org/nuove-prospettive/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.361475467681885, 45.13833650240866 ], "type" : "Point" }, "properties" : { "wpid":"11001","plink":"http://www.monferratopaesaggi.org/colline-vialarda/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.361728666641284, 45.13837661366091 ], "type" : "Point" }, "properties" : { "wpid":"10996","plink":"http://www.monferratopaesaggi.org/guardo-verso-le-montagne/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.48377557116396, 44.998375486648335 ], "type" : "Point" }, "properties" : { "wpid":"10969","plink":"http://www.monferratopaesaggi.org/passeggiata-tra-cuccaro-e-lu/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.221134271163919, 45.1591733919838 ], "type" : "Point" }, "properties" : { "wpid":"10912","plink":"http://www.monferratopaesaggi.org/allombradi-edmond/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.398097813096683, 45.0800437659818 ], "type" : "Point" }, "properties" : { "wpid":"10610","plink":"http://www.monferratopaesaggi.org/vista-di-rosignano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.459042966333072, 45.0492947984177 ], "type" : "Point" }, "properties" : { "wpid":"10609","plink":"http://www.monferratopaesaggi.org/san-maurizio-conzano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.399383127689362, 45.079628987954656 ], "type" : "Point" }, "properties" : { "wpid":"10605","plink":"http://www.monferratopaesaggi.org/mattmonzegmail-com-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.398757728836017, 45.079237681950595 ], "type" : "Point" }, "properties" : { "wpid":"10598","plink":"http://www.monferratopaesaggi.org/la-valle-ghenza/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.351344982208957, 45.05035749376466 ], "type" : "Point" }, "properties" : { "wpid":"10469","plink":"http://www.monferratopaesaggi.org/paesaggio-nei-pressi-di-cascina-monsaietto/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.454054594039917, 45.137237226195836 ], "type" : "Point" }, "properties" : { "wpid":"9802","plink":"http://www.monferratopaesaggi.org/palazzo-sannazaro/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.448033034801483, 45.136321461844936 ], "type" : "Point" }, "properties" : { "wpid":"9789","plink":"http://www.monferratopaesaggi.org/cortile/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45474660396576, 45.13783227593339 ], "type" : "Point" }, "properties" : { "wpid":"9764","plink":"http://www.monferratopaesaggi.org/palazzo-seminario-vescovile/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456189632415771, 45.09874542084463 ], "type" : "Point" }, "properties" : { "wpid":"9721","plink":"http://www.monferratopaesaggi.org/chiesa-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.435933589935303, 45.10595100557878 ], "type" : "Point" }, "properties" : { "wpid":"9719","plink":"http://www.monferratopaesaggi.org/chiesa-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.414475917816162, 45.107597976858244 ], "type" : "Point" }, "properties" : { "wpid":"9674","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-san-giorgio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.412673473358154, 45.10803621465967 ], "type" : "Point" }, "properties" : { "wpid":"9650","plink":"http://www.monferratopaesaggi.org/scorcio-torrione/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.413183093070984, 45.108054198428476 ], "type" : "Point" }, "properties" : { "wpid":"9643","plink":"http://www.monferratopaesaggi.org/castello-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.41626763343811, 45.06407169108483 ], "type" : "Point" }, "properties" : { "wpid":"9641","plink":"http://www.monferratopaesaggi.org/chiesa-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.413504958152771, 45.06611012177668 ], "type" : "Point" }, "properties" : { "wpid":"9638","plink":"http://www.monferratopaesaggi.org/chiesa-san-martino-800/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.356497287750244, 45.077066388446205 ], "type" : "Point" }, "properties" : { "wpid":"9526","plink":"http://www.monferratopaesaggi.org/punto-veduta-126/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.197267949581146, 45.1123152453911 ], "type" : "Point" }, "properties" : { "wpid":"9524","plink":"http://www.monferratopaesaggi.org/punto-veduta-125/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.280995786190033, 45.0930424059499 ], "type" : "Point" }, "properties" : { "wpid":"9522","plink":"http://www.monferratopaesaggi.org/punto-veduta-124/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265111744403839, 45.08435235505272 ], "type" : "Point" }, "properties" : { "wpid":"9520","plink":"http://www.monferratopaesaggi.org/punto-veduta-123/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.23979839682579, 45.127976733144905 ], "type" : "Point" }, "properties" : { "wpid":"9518","plink":"http://www.monferratopaesaggi.org/punto-veduta-122/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.206588625907898, 45.04936006134896 ], "type" : "Point" }, "properties" : { "wpid":"9516","plink":"http://www.monferratopaesaggi.org/punto-veduta-121/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.138396143913269, 45.07811568551019 ], "type" : "Point" }, "properties" : { "wpid":"9514","plink":"http://www.monferratopaesaggi.org/punto-veduta-120/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.16503718495369, 45.067059217586596 ], "type" : "Point" }, "properties" : { "wpid":"9512","plink":"http://www.monferratopaesaggi.org/punto-veduta-119/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.179659247398376, 45.06243293712725 ], "type" : "Point" }, "properties" : { "wpid":"9510","plink":"http://www.monferratopaesaggi.org/punto-veduta-118/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.182777315378189, 45.06878118951059 ], "type" : "Point" }, "properties" : { "wpid":"9507","plink":"http://www.monferratopaesaggi.org/punto-veduta-117/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.168860673904419, 45.134506918378925 ], "type" : "Point" }, "properties" : { "wpid":"9505","plink":"http://www.monferratopaesaggi.org/punto-veduta-116/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.292328119277954, 45.16042727121142 ], "type" : "Point" }, "properties" : { "wpid":"9502","plink":"http://www.monferratopaesaggi.org/strada-per-percorso-po/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.187464475631714, 45.05933149037456 ], "type" : "Point" }, "properties" : { "wpid":"9487","plink":"http://www.monferratopaesaggi.org/punto-veduta-115/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.391100466251373, 45.07542421880788 ], "type" : "Point" }, "properties" : { "wpid":"9445","plink":"http://www.monferratopaesaggi.org/punto-veduta-114/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45609575510025, 45.13956441239723 ], "type" : "Point" }, "properties" : { "wpid":"9173","plink":"http://www.monferratopaesaggi.org/hotel-candiani-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.29107016324997, 45.14142798489276 ], "type" : "Point" }, "properties" : { "wpid":"8994","plink":"http://www.monferratopaesaggi.org/chiesa-santeusebio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.27107161283493, 45.131290171802675 ], "type" : "Point" }, "properties" : { "wpid":"8989","plink":"http://www.monferratopaesaggi.org/chiesa-san-michele-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281754851341248, 45.0963824877628 ], "type" : "Point" }, "properties" : { "wpid":"8986","plink":"http://www.monferratopaesaggi.org/castello-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.275603204965591, 45.09422490056251 ], "type" : "Point" }, "properties" : { "wpid":"8984","plink":"http://www.monferratopaesaggi.org/santuario-crea-sacro-monte/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.268837332725525, 45.092841691863626 ], "type" : "Point" }, "properties" : { "wpid":"8980","plink":"http://www.monferratopaesaggi.org/centro-studi-parco-crea/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.287159502506256, 45.085263272272236 ], "type" : "Point" }, "properties" : { "wpid":"8978","plink":"http://www.monferratopaesaggi.org/punto-veduta-113/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281846046447754, 45.083257720135975 ], "type" : "Point" }, "properties" : { "wpid":"8976","plink":"http://www.monferratopaesaggi.org/fontanella-36/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.23401689529419, 45.087709988405905 ], "type" : "Point" }, "properties" : { "wpid":"8964","plink":"http://www.monferratopaesaggi.org/cascina-gigliola/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.212320506572723, 45.101627006572976 ], "type" : "Point" }, "properties" : { "wpid":"8962","plink":"http://www.monferratopaesaggi.org/punto-veduta-112/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.247886598110199, 45.1032816753493 ], "type" : "Point" }, "properties" : { "wpid":"8960","plink":"http://www.monferratopaesaggi.org/chiesa-santo-spirito/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.247937560081482, 45.10301284226637 ], "type" : "Point" }, "properties" : { "wpid":"8958","plink":"http://www.monferratopaesaggi.org/palazzo-dellaglio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.232518881559372, 45.107485340681094 ], "type" : "Point" }, "properties" : { "wpid":"8955","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-san-candido/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.233015090227127, 45.11158553291308 ], "type" : "Point" }, "properties" : { "wpid":"8950","plink":"http://www.monferratopaesaggi.org/chiesa-san-michele/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.227069973945618, 45.16040079314133 ], "type" : "Point" }, "properties" : { "wpid":"8933","plink":"http://www.monferratopaesaggi.org/cimitero/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.222354650497437, 45.09513660707389 ], "type" : "Point" }, "properties" : { "wpid":"8800","plink":"http://www.monferratopaesaggi.org/cascine-ramengo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.212966918945312, 45.09443223696683 ], "type" : "Point" }, "properties" : { "wpid":"8797","plink":"http://www.monferratopaesaggi.org/case-carisio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.214050531387329, 45.09380738524503 ], "type" : "Point" }, "properties" : { "wpid":"8794","plink":"http://www.monferratopaesaggi.org/punto-veduta-111/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.213127851486206, 45.096628631187784 ], "type" : "Point" }, "properties" : { "wpid":"8791","plink":"http://www.monferratopaesaggi.org/stagni-salamandre/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.214715719223022, 45.09683879896478 ], "type" : "Point" }, "properties" : { "wpid":"8789","plink":"http://www.monferratopaesaggi.org/fontana-solforosa/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.215429186820984, 45.09894895417618 ], "type" : "Point" }, "properties" : { "wpid":"8786","plink":"http://www.monferratopaesaggi.org/chiesa-san-rocco/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.213565051555634, 45.101130975239954 ], "type" : "Point" }, "properties" : { "wpid":"8784","plink":"http://www.monferratopaesaggi.org/casa-bosco/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.412635922431946, 45.03742901118246 ], "type" : "Point" }, "properties" : { "wpid":"8740","plink":"http://www.monferratopaesaggi.org/castello-lignano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.459166884422302, 45.04927383998701 ], "type" : "Point" }, "properties" : { "wpid":"8736","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-san-maurizio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.431599140167236, 45.09031187649019 ], "type" : "Point" }, "properties" : { "wpid":"8728","plink":"http://www.monferratopaesaggi.org/torre-veglio-xix-secolo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.42352569103241, 45.08296606646384 ], "type" : "Point" }, "properties" : { "wpid":"8726","plink":"http://www.monferratopaesaggi.org/villa-maria-dei-morbelli/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.419269025325775, 45.08162898576485 ], "type" : "Point" }, "properties" : { "wpid":"8718","plink":"http://www.monferratopaesaggi.org/cappella-san-bartolomeo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.41915637254715, 45.081683908959384 ], "type" : "Point" }, "properties" : { "wpid":"8717","plink":"http://www.monferratopaesaggi.org/punto-veduta-110/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.418324887752533, 45.081358156826404 ], "type" : "Point" }, "properties" : { "wpid":"8721","plink":"http://www.monferratopaesaggi.org/punto-veduta-109/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.41290682554245, 45.08031838904616 ], "type" : "Point" }, "properties" : { "wpid":"8711","plink":"http://www.monferratopaesaggi.org/punto-veduta-108/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.413563966751099, 45.0779717397609 ], "type" : "Point" }, "properties" : { "wpid":"8707","plink":"http://www.monferratopaesaggi.org/cava-tufo-abbandonata/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.40952455997467, 45.07518745458696 ], "type" : "Point" }, "properties" : { "wpid":"8704","plink":"http://www.monferratopaesaggi.org/punto-veduta-107/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.200009167194366, 45.040118476303974 ], "type" : "Point" }, "properties" : { "wpid":"8620","plink":"http://www.monferratopaesaggi.org/punto-veduta-106/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.20006012916565, 45.04114760393322 ], "type" : "Point" }, "properties" : { "wpid":"8619","plink":"http://www.monferratopaesaggi.org/parcheggio-33/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.206749558448792, 45.05208591585838 ], "type" : "Point" }, "properties" : { "wpid":"8617","plink":"http://www.monferratopaesaggi.org/edificio-dinteresse-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.266788125038147, 45.04909571192648 ], "type" : "Point" }, "properties" : { "wpid":"8611","plink":"http://www.monferratopaesaggi.org/punto-veduta-105/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.34786057472229, 45.0208686736627 ], "type" : "Point" }, "properties" : { "wpid":"8604","plink":"http://www.monferratopaesaggi.org/punto-veduta-104/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.43148648738861, 45.01953014043001 ], "type" : "Point" }, "properties" : { "wpid":"8601","plink":"http://www.monferratopaesaggi.org/punto-veduta-103/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.432800769805908, 45.01969129693793 ], "type" : "Point" }, "properties" : { "wpid":"8597","plink":"http://www.monferratopaesaggi.org/murales-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.311736583709717, 45.055989242140576 ], "type" : "Point" }, "properties" : { "wpid":"8485","plink":"http://www.monferratopaesaggi.org/monumento-badoglio-cippo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.161785006523132, 45.05024405968328 ], "type" : "Point" }, "properties" : { "wpid":"8435","plink":"http://www.monferratopaesaggi.org/chiesa-san-giorgio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.168678283691406, 45.05977483515755 ], "type" : "Point" }, "properties" : { "wpid":"8433","plink":"http://www.monferratopaesaggi.org/reperto-archeologia-industriale-recente/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.177902400493622, 45.05598166312347 ], "type" : "Point" }, "properties" : { "wpid":"8431","plink":"http://www.monferratopaesaggi.org/punto-veduta-102/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.317418843507767, 45.09316169795 ], "type" : "Point" }, "properties" : { "wpid":"8327","plink":"http://www.monferratopaesaggi.org/punto-veduta-101/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.32181766629219, 45.08732840606138 ], "type" : "Point" }, "properties" : { "wpid":"8325","plink":"http://www.monferratopaesaggi.org/fontanella-35/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.3175690472126, 45.087900305198225 ], "type" : "Point" }, "properties" : { "wpid":"8321","plink":"http://www.monferratopaesaggi.org/chiesa-s-defendente/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.316756337881088, 45.08676786360259 ], "type" : "Point" }, "properties" : { "wpid":"8319","plink":"http://www.monferratopaesaggi.org/castello-gualino/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.315289169549942, 45.086461077900836 ], "type" : "Point" }, "properties" : { "wpid":"8317","plink":"http://www.monferratopaesaggi.org/punto-veduta-100/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.315576165914536, 45.086430777989044 ], "type" : "Point" }, "properties" : { "wpid":"8315","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-dei-santi-pietro-apostolo-paolo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.317194879055023, 45.08558805525255 ], "type" : "Point" }, "properties" : { "wpid":"8313","plink":"http://www.monferratopaesaggi.org/chiesa-s-rocco-seicento/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.3176589012146, 45.085428031216054 ], "type" : "Point" }, "properties" : { "wpid":"8311","plink":"http://www.monferratopaesaggi.org/chiesa-s-giacomo-settecento/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.317858725786209, 45.08540151831467 ], "type" : "Point" }, "properties" : { "wpid":"8308","plink":"http://www.monferratopaesaggi.org/fontanella-34/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.317856043577194, 45.08529546658599 ], "type" : "Point" }, "properties" : { "wpid":"8306","plink":"http://www.monferratopaesaggi.org/parcheggio-69/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.324188739061356, 45.04789143798602 ], "type" : "Point" }, "properties" : { "wpid":"8304","plink":"http://www.monferratopaesaggi.org/infernot-21/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.338714241981506, 45.05551176215966 ], "type" : "Point" }, "properties" : { "wpid":"8302","plink":"http://www.monferratopaesaggi.org/parcheggio-68/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.338781297206879, 45.055483340606486 ], "type" : "Point" }, "properties" : { "wpid":"8300","plink":"http://www.monferratopaesaggi.org/punto-panoramico-18/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.338526487350464, 45.05505796300643 ], "type" : "Point" }, "properties" : { "wpid":"8298","plink":"http://www.monferratopaesaggi.org/castello-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.338326662778854, 45.05454163182407 ], "type" : "Point" }, "properties" : { "wpid":"8296","plink":"http://www.monferratopaesaggi.org/punto-veduta-99/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.338440656661987, 45.05437488901522 ], "type" : "Point" }, "properties" : { "wpid":"8294","plink":"http://www.monferratopaesaggi.org/chiesa-s-germano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.339619487524033, 45.054081193112744 ], "type" : "Point" }, "properties" : { "wpid":"8292","plink":"http://www.monferratopaesaggi.org/infernot-20/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.339359313249588, 45.05314609320938 ], "type" : "Point" }, "properties" : { "wpid":"8290","plink":"http://www.monferratopaesaggi.org/infernot-19/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.338041007518768, 45.05241183484847 ], "type" : "Point" }, "properties" : { "wpid":"8287","plink":"http://www.monferratopaesaggi.org/parcheggio-67/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.337649405002594, 45.05176188990497 ], "type" : "Point" }, "properties" : { "wpid":"8285","plink":"http://www.monferratopaesaggi.org/chiesa-s-eusebio-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.33758369088173, 45.05168135685393 ], "type" : "Point" }, "properties" : { "wpid":"8283","plink":"http://www.monferratopaesaggi.org/casetta-dellacqua-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.337648063898087, 45.051617877780856 ], "type" : "Point" }, "properties" : { "wpid":"8280","plink":"http://www.monferratopaesaggi.org/wc-pubblici-13/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.363409340381622, 45.03784883383186 ], "type" : "Point" }, "properties" : { "wpid":"8276","plink":"http://www.monferratopaesaggi.org/cedro-libano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.36528554558754, 45.03877660253139 ], "type" : "Point" }, "properties" : { "wpid":"8274","plink":"http://www.monferratopaesaggi.org/punto-veduta-98/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.365433067083359, 45.038694155870914 ], "type" : "Point" }, "properties" : { "wpid":"8272","plink":"http://www.monferratopaesaggi.org/chiesa-s-sebastiano-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.365429043769836, 45.0385681164936 ], "type" : "Point" }, "properties" : { "wpid":"8269","plink":"http://www.monferratopaesaggi.org/villa-candiani/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367287814617157, 45.03730486439138 ], "type" : "Point" }, "properties" : { "wpid":"8267","plink":"http://www.monferratopaesaggi.org/parcheggio-66/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367623090744019, 45.037219572546704 ], "type" : "Point" }, "properties" : { "wpid":"8265","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367483615875244, 45.03700065623015 ], "type" : "Point" }, "properties" : { "wpid":"8263","plink":"http://www.monferratopaesaggi.org/fontanella-33/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367554694414139, 45.03702055774809 ], "type" : "Point" }, "properties" : { "wpid":"8261","plink":"http://www.monferratopaesaggi.org/oratorio-s-pietro/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367565423250198, 45.03693905624982 ], "type" : "Point" }, "properties" : { "wpid":"8259","plink":"http://www.monferratopaesaggi.org/wc-pubblici-12/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367341458797455, 45.03676941903817 ], "type" : "Point" }, "properties" : { "wpid":"8257","plink":"http://www.monferratopaesaggi.org/infernot-18/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367915451526642, 45.03554308814773 ], "type" : "Point" }, "properties" : { "wpid":"8255","plink":"http://www.monferratopaesaggi.org/chiesa-dei-ss-pietro-paolo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367875218391418, 45.03545589824296 ], "type" : "Point" }, "properties" : { "wpid":"8253","plink":"http://www.monferratopaesaggi.org/punto-veduta-97/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.371591418981552, 45.052079283766616 ], "type" : "Point" }, "properties" : { "wpid":"8251","plink":"http://www.monferratopaesaggi.org/chiesetta-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.371745645999908, 45.05200443582065 ], "type" : "Point" }, "properties" : { "wpid":"8249","plink":"http://www.monferratopaesaggi.org/punto-veduta-96/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.368645012378693, 45.05304377131923 ], "type" : "Point" }, "properties" : { "wpid":"8247","plink":"http://www.monferratopaesaggi.org/parcheggio-65/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.36939200758934, 45.05308545803731 ], "type" : "Point" }, "properties" : { "wpid":"8245","plink":"http://www.monferratopaesaggi.org/edificio-30/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.369760811328888, 45.05277659663189 ], "type" : "Point" }, "properties" : { "wpid":"8243","plink":"http://www.monferratopaesaggi.org/edificio-29/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.370275795459747, 45.05195706365231 ], "type" : "Point" }, "properties" : { "wpid":"8241","plink":"http://www.monferratopaesaggi.org/edificio-28/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.369802385568619, 45.05171072774451 ], "type" : "Point" }, "properties" : { "wpid":"8239","plink":"http://www.monferratopaesaggi.org/edificio-18/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.370509147644043, 45.04956756057738 ], "type" : "Point" }, "properties" : { "wpid":"8237","plink":"http://www.monferratopaesaggi.org/cave-gesso/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.385152667760849, 45.03910923095525 ], "type" : "Point" }, "properties" : { "wpid":"8235","plink":"http://www.monferratopaesaggi.org/chiesa-s-bernardo-chiaravalle/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.385403454303741, 45.03577243487167 ], "type" : "Point" }, "properties" : { "wpid":"8231","plink":"http://www.monferratopaesaggi.org/chiesa-s-maria-delle-grazie/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.38688537478447, 45.03286193781101 ], "type" : "Point" }, "properties" : { "wpid":"8229","plink":"http://www.monferratopaesaggi.org/infernot-17/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.38677003979683, 45.03260130320744 ], "type" : "Point" }, "properties" : { "wpid":"8227","plink":"http://www.monferratopaesaggi.org/infernot-16/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.387138843536377, 45.03272166915369 ], "type" : "Point" }, "properties" : { "wpid":"8224","plink":"http://www.monferratopaesaggi.org/infernot-15/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.387219309806824, 45.03238047368718 ], "type" : "Point" }, "properties" : { "wpid":"8221","plink":"http://www.monferratopaesaggi.org/punto-veduta-95/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.387687355279922, 45.03228001018994 ], "type" : "Point" }, "properties" : { "wpid":"8217","plink":"http://www.monferratopaesaggi.org/castello-sacchi-nemours/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.387213945388794, 45.03222883060468 ], "type" : "Point" }, "properties" : { "wpid":"8215","plink":"http://www.monferratopaesaggi.org/ex-chiesa-dei-santi-angeli-salone-comunale/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.386308699846268, 45.032044962828216 ], "type" : "Point" }, "properties" : { "wpid":"8213","plink":"http://www.monferratopaesaggi.org/fontanella-32/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.386379778385162, 45.03201273851789 ], "type" : "Point" }, "properties" : { "wpid":"8211","plink":"http://www.monferratopaesaggi.org/wc-pubblici-11/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.38645488023758, 45.03177958561445 ], "type" : "Point" }, "properties" : { "wpid":"8209","plink":"http://www.monferratopaesaggi.org/scorcio-interno-31/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.386845141649246, 45.03170186776888 ], "type" : "Point" }, "properties" : { "wpid":"8207","plink":"http://www.monferratopaesaggi.org/sagrato/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.386649340391159, 45.03134265830671 ], "type" : "Point" }, "properties" : { "wpid":"8205","plink":"http://www.monferratopaesaggi.org/parcheggio-64/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.387087881565094, 45.03164784432627 ], "type" : "Point" }, "properties" : { "wpid":"8203","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-dellassunzione-maria-vergine-san-spiridione/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.387227356433868, 45.03152937168584 ], "type" : "Point" }, "properties" : { "wpid":"8200","plink":"http://www.monferratopaesaggi.org/punto-panoramico-17/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.387124091386795, 45.031360666222604 ], "type" : "Point" }, "properties" : { "wpid":"8198","plink":"http://www.monferratopaesaggi.org/scorcio-interno-30/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.388577848672867, 45.03179759339289 ], "type" : "Point" }, "properties" : { "wpid":"8196","plink":"http://www.monferratopaesaggi.org/parcheggio-63/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.38854968547821, 45.03168954663734 ], "type" : "Point" }, "properties" : { "wpid":"8194","plink":"http://www.monferratopaesaggi.org/fontanella-31/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.388736099004745, 45.03150188599822 ], "type" : "Point" }, "properties" : { "wpid":"8192","plink":"http://www.monferratopaesaggi.org/chiesa-s-anna/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.389652073383331, 45.0314099510161 ], "type" : "Point" }, "properties" : { "wpid":"8190","plink":"http://www.monferratopaesaggi.org/chiesa-s-giuseppe-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.393133580684662, 45.03120617707571 ], "type" : "Point" }, "properties" : { "wpid":"8188","plink":"http://www.monferratopaesaggi.org/punto-panoramico-16/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.392648100852966, 45.03106400878065 ], "type" : "Point" }, "properties" : { "wpid":"8186","plink":"http://www.monferratopaesaggi.org/parcheggio-62/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.441552817821503, 45.08509472527482 ], "type" : "Point" }, "properties" : { "wpid":"8184","plink":"http://www.monferratopaesaggi.org/parco-comunale/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.441157191991806, 45.08370656086539 ], "type" : "Point" }, "properties" : { "wpid":"8182","plink":"http://www.monferratopaesaggi.org/villa-poggio-villa-adele/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.44182774424553, 45.083773791979006 ], "type" : "Point" }, "properties" : { "wpid":"8180","plink":"http://www.monferratopaesaggi.org/punto-veduta-94/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.441833108663559, 45.08291871994802 ], "type" : "Point" }, "properties" : { "wpid":"8178","plink":"http://www.monferratopaesaggi.org/edificio-17/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.441939055919647, 45.08298595198878 ], "type" : "Point" }, "properties" : { "wpid":"8175","plink":"http://www.monferratopaesaggi.org/punto-veduta-93/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.442077189683914, 45.083066440947604 ], "type" : "Point" }, "properties" : { "wpid":"8173","plink":"http://www.monferratopaesaggi.org/teatro-delle-muse/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.442454040050507, 45.08310810577585 ], "type" : "Point" }, "properties" : { "wpid":"8170","plink":"http://www.monferratopaesaggi.org/municipio-11/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.442298471927643, 45.08328044633359 ], "type" : "Point" }, "properties" : { "wpid":"8167","plink":"http://www.monferratopaesaggi.org/fontanella-30/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.442450016736984, 45.08353990311585 ], "type" : "Point" }, "properties" : { "wpid":"8165","plink":"http://www.monferratopaesaggi.org/parcheggio-61/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.442707508802414, 45.083388395648925 ], "type" : "Point" }, "properties" : { "wpid":"8163","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-s-martino/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.442885875701904, 45.083343890254156 ], "type" : "Point" }, "properties" : { "wpid":"8161","plink":"http://www.monferratopaesaggi.org/punto-veduta-92/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.443327099084854, 45.08340828102688 ], "type" : "Point" }, "properties" : { "wpid":"8159","plink":"http://www.monferratopaesaggi.org/wc-pubblici-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.44325065612793, 45.08319048841502 ], "type" : "Point" }, "properties" : { "wpid":"8157","plink":"http://www.monferratopaesaggi.org/punto-veduta-91/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.44381257891655, 45.082829708392055 ], "type" : "Point" }, "properties" : { "wpid":"8155","plink":"http://www.monferratopaesaggi.org/palazzo-biletta-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.444275259971619, 45.08239222404793 ], "type" : "Point" }, "properties" : { "wpid":"8153","plink":"http://www.monferratopaesaggi.org/chiesa-s-grato-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.442775905132294, 45.081161189519335 ], "type" : "Point" }, "properties" : { "wpid":"8151","plink":"http://www.monferratopaesaggi.org/villa-pavia/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.446654379367828, 45.07959394949021 ], "type" : "Point" }, "properties" : { "wpid":"8149","plink":"http://www.monferratopaesaggi.org/punto-veduta-90/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.457211554050446, 44.99067202422576 ], "type" : "Point" }, "properties" : { "wpid":"8147","plink":"http://www.monferratopaesaggi.org/museo-cristoforo-colombo-colombiano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456907123327255, 44.990740313194664 ], "type" : "Point" }, "properties" : { "wpid":"8145","plink":"http://www.monferratopaesaggi.org/fontanella-29/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456728756427765, 44.9908237773795 ], "type" : "Point" }, "properties" : { "wpid":"8143","plink":"http://www.monferratopaesaggi.org/punto-veduta-89/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456448465585709, 44.99092526207686 ], "type" : "Point" }, "properties" : { "wpid":"8140","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456412255764008, 44.99102484968931 ], "type" : "Point" }, "properties" : { "wpid":"8138","plink":"http://www.monferratopaesaggi.org/wc-pubblici-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45627948641777, 44.99103717957214 ], "type" : "Point" }, "properties" : { "wpid":"8136","plink":"http://www.monferratopaesaggi.org/punto-veduta-88/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.455879837274551, 44.99097173631754 ], "type" : "Point" }, "properties" : { "wpid":"8133","plink":"http://www.monferratopaesaggi.org/area-pic-nic-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.455851674079895, 44.990793426780904 ], "type" : "Point" }, "properties" : { "wpid":"8130","plink":"http://www.monferratopaesaggi.org/parco-rimembranza-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.455541878938675, 44.99072229250244 ], "type" : "Point" }, "properties" : { "wpid":"8128","plink":"http://www.monferratopaesaggi.org/municipio-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45554992556572, 44.99079247832444 ], "type" : "Point" }, "properties" : { "wpid":"8126","plink":"http://www.monferratopaesaggi.org/wc-pubblici-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.455997854471207, 44.99153796026411 ], "type" : "Point" }, "properties" : { "wpid":"8121","plink":"http://www.monferratopaesaggi.org/murales/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456176221370697, 44.99249113869501 ], "type" : "Point" }, "properties" : { "wpid":"8119","plink":"http://www.monferratopaesaggi.org/punto-panoramico-15/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456330448389053, 44.992520539966726 ], "type" : "Point" }, "properties" : { "wpid":"8117","plink":"http://www.monferratopaesaggi.org/parcheggio-60/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456433713436127, 44.993101923305886 ], "type" : "Point" }, "properties" : { "wpid":"8114","plink":"http://www.monferratopaesaggi.org/fontanella-28/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.457664847373962, 44.99670959278795 ], "type" : "Point" }, "properties" : { "wpid":"8112","plink":"http://www.monferratopaesaggi.org/punto-veduta-87/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.457572311162949, 44.99678356470705 ], "type" : "Point" }, "properties" : { "wpid":"8108","plink":"http://www.monferratopaesaggi.org/madonna-neve/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.457454293966293, 44.99686038159893 ], "type" : "Point" }, "properties" : { "wpid":"8106","plink":"http://www.monferratopaesaggi.org/area-pic-nic-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.490972518920898, 45.00368434539031 ], "type" : "Point" }, "properties" : { "wpid":"8103","plink":"http://www.monferratopaesaggi.org/fontanella-27/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.488070368766785, 45.002979796427404 ], "type" : "Point" }, "properties" : { "wpid":"8099","plink":"http://www.monferratopaesaggi.org/viale-rimembranza/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.48695993423462, 45.00290203948338 ], "type" : "Point" }, "properties" : { "wpid":"8097","plink":"http://www.monferratopaesaggi.org/parcheggio-59/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.48657101392746, 45.00272850836184 ], "type" : "Point" }, "properties" : { "wpid":"8094","plink":"http://www.monferratopaesaggi.org/museo-diocesano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.48405510187149, 45.00195756866402 ], "type" : "Point" }, "properties" : { "wpid":"8092","plink":"http://www.monferratopaesaggi.org/punto-veduta-86/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.48400816321373, 45.00186179314317 ], "type" : "Point" }, "properties" : { "wpid":"8090","plink":"http://www.monferratopaesaggi.org/municipio-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.484979122877121, 45.00201067185412 ], "type" : "Point" }, "properties" : { "wpid":"8088","plink":"http://www.monferratopaesaggi.org/chiesa-s-maria-nuova/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.48457008600235, 45.00137912001228 ], "type" : "Point" }, "properties" : { "wpid":"8086","plink":"http://www.monferratopaesaggi.org/punto-veduta-85/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.484677374362946, 45.00119325658279 ], "type" : "Point" }, "properties" : { "wpid":"8084","plink":"http://www.monferratopaesaggi.org/casa-storica-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.48398670554161, 45.0015649828388 ], "type" : "Point" }, "properties" : { "wpid":"8082","plink":"http://www.monferratopaesaggi.org/punto-veduta-84/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.483679592609406, 45.00163515538183 ], "type" : "Point" }, "properties" : { "wpid":"8079","plink":"http://www.monferratopaesaggi.org/la-torre-di-lu/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.482870906591415, 45.00180489671832 ], "type" : "Point" }, "properties" : { "wpid":"8077","plink":"http://www.monferratopaesaggi.org/scuola-materna/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.481663912534714, 45.00166170713244 ], "type" : "Point" }, "properties" : { "wpid":"8075","plink":"http://www.monferratopaesaggi.org/chiesa-s-giuseppe-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.48379760980606, 45.000958081583384 ], "type" : "Point" }, "properties" : { "wpid":"8072","plink":"http://www.monferratopaesaggi.org/chiesa-s-nazario/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.482781052589417, 45.001007392550356 ], "type" : "Point" }, "properties" : { "wpid":"8070","plink":"http://www.monferratopaesaggi.org/chiesa-ss-trinita-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.482656329870224, 45.00056833379352 ], "type" : "Point" }, "properties" : { "wpid":"8068","plink":"http://www.monferratopaesaggi.org/palazzo-paleologi/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.483065366744995, 45.0002772065856 ], "type" : "Point" }, "properties" : { "wpid":"8066","plink":"http://www.monferratopaesaggi.org/casa-bobba/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.482469916343689, 45.00013970299262 ], "type" : "Point" }, "properties" : { "wpid":"8064","plink":"http://www.monferratopaesaggi.org/casa-storica/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.482715338468552, 45.00008090825213 ], "type" : "Point" }, "properties" : { "wpid":"8062","plink":"http://www.monferratopaesaggi.org/chiesa-s-francesco-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.457538783550262, 45.01983064955261 ], "type" : "Point" }, "properties" : { "wpid":"8060","plink":"http://www.monferratopaesaggi.org/punto-veduta-83/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.457462340593338, 45.01984960906583 ], "type" : "Point" }, "properties" : { "wpid":"8057","plink":"http://www.monferratopaesaggi.org/torre-civica-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45729872584343, 45.019867620597545 ], "type" : "Point" }, "properties" : { "wpid":"8054","plink":"http://www.monferratopaesaggi.org/chiesetta-s-biagio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.457157909870148, 45.01968086917761 ], "type" : "Point" }, "properties" : { "wpid":"8052","plink":"http://www.monferratopaesaggi.org/punto-veduta-82/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.457064032554626, 45.019867620597545 ], "type" : "Point" }, "properties" : { "wpid":"8050","plink":"http://www.monferratopaesaggi.org/punto-veduta-81/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456980884075165, 45.02003351601808 ], "type" : "Point" }, "properties" : { "wpid":"8048","plink":"http://www.monferratopaesaggi.org/fontanella-26/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456864207983017, 45.01997568966891 ], "type" : "Point" }, "properties" : { "wpid":"8046","plink":"http://www.monferratopaesaggi.org/giardino-villa-vidua/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456746190786362, 45.019852452992254 ], "type" : "Point" }, "properties" : { "wpid":"8044","plink":"http://www.monferratopaesaggi.org/scorcio-interno-paese/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456567823886871, 45.02028662410496 ], "type" : "Point" }, "properties" : { "wpid":"8042","plink":"http://www.monferratopaesaggi.org/scorcio-interno-29/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456465899944305, 45.02010176999439 ], "type" : "Point" }, "properties" : { "wpid":"8040","plink":"http://www.monferratopaesaggi.org/villa-vidua/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45640555024147, 45.01989226794756 ], "type" : "Point" }, "properties" : { "wpid":"8038","plink":"http://www.monferratopaesaggi.org/punto-veduta-80/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.456138670444489, 45.02059945277865 ], "type" : "Point" }, "properties" : { "wpid":"8036","plink":"http://www.monferratopaesaggi.org/municipio-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.4556183218956, 45.02005626735256 ], "type" : "Point" }, "properties" : { "wpid":"8034","plink":"http://www.monferratopaesaggi.org/punto-veduta-79/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.455846309661865, 45.02029799972304 ], "type" : "Point" }, "properties" : { "wpid":"8031","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-s-lucia/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45573365688324, 45.02049422877917 ], "type" : "Point" }, "properties" : { "wpid":"8029","plink":"http://www.monferratopaesaggi.org/wc-pubblici-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45499336719513, 45.02059566092617 ], "type" : "Point" }, "properties" : { "wpid":"8027","plink":"http://www.monferratopaesaggi.org/parcheggio-58/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.431884795427322, 45.01896040113912 ], "type" : "Point" }, "properties" : { "wpid":"8024","plink":"http://www.monferratopaesaggi.org/infernot-14/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.43089371919632, 45.01862860359886 ], "type" : "Point" }, "properties" : { "wpid":"8022","plink":"http://www.monferratopaesaggi.org/chiesetta-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.430876284837723, 45.018487352062536 ], "type" : "Point" }, "properties" : { "wpid":"8019","plink":"http://www.monferratopaesaggi.org/edificio-16/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.430731445550919, 45.018316712157926 ], "type" : "Point" }, "properties" : { "wpid":"8017","plink":"http://www.monferratopaesaggi.org/edificio-15/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.43063086271286, 45.01837643618238 ], "type" : "Point" }, "properties" : { "wpid":"8015","plink":"http://www.monferratopaesaggi.org/scorcio-interno-28/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.430329114198685, 45.01774316875148 ], "type" : "Point" }, "properties" : { "wpid":"8013","plink":"http://www.monferratopaesaggi.org/municipio-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.430543690919876, 45.017944146599 ], "type" : "Point" }, "properties" : { "wpid":"8010","plink":"http://www.monferratopaesaggi.org/wc-pubblici-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.4306201338768, 45.017843657763436 ], "type" : "Point" }, "properties" : { "wpid":"8008","plink":"http://www.monferratopaesaggi.org/scorcio-interno-27/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.43043103814125, 45.01773084461526 ], "type" : "Point" }, "properties" : { "wpid":"8006","plink":"http://www.monferratopaesaggi.org/parcheggio-57/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.430199027061462, 45.01762466733158 ], "type" : "Point" }, "properties" : { "wpid":"8004","plink":"http://www.monferratopaesaggi.org/punto-veduta-78/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.430101126432419, 45.017630355405345 ], "type" : "Point" }, "properties" : { "wpid":"8002","plink":"http://www.monferratopaesaggi.org/punto-veduta-77/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.430162817239761, 45.01861817564502 ], "type" : "Point" }, "properties" : { "wpid":"8000","plink":"http://www.monferratopaesaggi.org/punto-veduta-76/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.430156111717224, 45.01823802803061 ], "type" : "Point" }, "properties" : { "wpid":"7998","plink":"http://www.monferratopaesaggi.org/punto-veduta-75/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.429819494485855, 45.018114787613904 ], "type" : "Point" }, "properties" : { "wpid":"7996","plink":"http://www.monferratopaesaggi.org/rocca/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.429406434297562, 45.01810530757084 ], "type" : "Point" }, "properties" : { "wpid":"7994","plink":"http://www.monferratopaesaggi.org/scorcio-interno-26/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.429470807313919, 45.017689132134436 ], "type" : "Point" }, "properties" : { "wpid":"7992","plink":"http://www.monferratopaesaggi.org/scorcio-interno-25/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.429592847824097, 45.017512801766166 ], "type" : "Point" }, "properties" : { "wpid":"7990","plink":"http://www.monferratopaesaggi.org/scorcio-interno-24/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.430020660161972, 45.01750806169499 ], "type" : "Point" }, "properties" : { "wpid":"7988","plink":"http://www.monferratopaesaggi.org/museo-resistenza-basso-monferrato-presso-casa-giambone/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.427998274564743, 45.01969129693793 ], "type" : "Point" }, "properties" : { "wpid":"7986","plink":"http://www.monferratopaesaggi.org/infernot-13/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.428373783826828, 45.019111131386545 ], "type" : "Point" }, "properties" : { "wpid":"7984","plink":"http://www.monferratopaesaggi.org/infernot-12/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.4284408390522, 45.01770145627967 ], "type" : "Point" }, "properties" : { "wpid":"7982","plink":"http://www.monferratopaesaggi.org/punto-veduta-74/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.42849850654602, 45.01752322992133 ], "type" : "Point" }, "properties" : { "wpid":"7980","plink":"http://www.monferratopaesaggi.org/scorcio-interno-23/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.42869833111763, 45.01761329118238 ], "type" : "Point" }, "properties" : { "wpid":"7978","plink":"http://www.monferratopaesaggi.org/edificio-14/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.428615182638168, 45.01740188399823 ], "type" : "Point" }, "properties" : { "wpid":"7976","plink":"http://www.monferratopaesaggi.org/parcheggio-56/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.428861945867538, 45.01746350500686 ], "type" : "Point" }, "properties" : { "wpid":"7974","plink":"http://www.monferratopaesaggi.org/chiesa-s-eusebio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.428686261177063, 45.017232188877664 ], "type" : "Point" }, "properties" : { "wpid":"7971","plink":"http://www.monferratopaesaggi.org/bici-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.428790867328644, 45.01723503293409 ], "type" : "Point" }, "properties" : { "wpid":"7969","plink":"http://www.monferratopaesaggi.org/punto-veduta-73/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.4287828207016, 45.01708998587535 ], "type" : "Point" }, "properties" : { "wpid":"7967","plink":"http://www.monferratopaesaggi.org/scorcio-interno-22/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.428859263658524, 45.01639508212479 ], "type" : "Point" }, "properties" : { "wpid":"7965","plink":"http://www.monferratopaesaggi.org/scorcio-interno-21/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.42814177274704, 45.01487062525615 ], "type" : "Point" }, "properties" : { "wpid":"7963","plink":"http://www.monferratopaesaggi.org/scorcio-interno-20/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.427976816892624, 45.012484313715255 ], "type" : "Point" }, "properties" : { "wpid":"7961","plink":"http://www.monferratopaesaggi.org/bici/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.42165619134903, 44.99752327864626 ], "type" : "Point" }, "properties" : { "wpid":"7959","plink":"http://www.monferratopaesaggi.org/punto-veduta-72/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.421527445316315, 44.99764751171744 ], "type" : "Point" }, "properties" : { "wpid":"7957","plink":"http://www.monferratopaesaggi.org/chiesa-s-lorenzo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.420205116271973, 45.001201791141234 ], "type" : "Point" }, "properties" : { "wpid":"7955","plink":"http://www.monferratopaesaggi.org/museo-arte-contadina/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.42232272028923, 45.02074923075065 ], "type" : "Point" }, "properties" : { "wpid":"7953","plink":"http://www.monferratopaesaggi.org/chiesa-madonna-fossano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.40335950255394, 45.0101642722872 ], "type" : "Point" }, "properties" : { "wpid":"7950","plink":"http://www.monferratopaesaggi.org/chiesa-s-sebastiano-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.401638865470886, 45.01000498524334 ], "type" : "Point" }, "properties" : { "wpid":"7948","plink":"http://www.monferratopaesaggi.org/archeologia-agricola/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.399161845445633, 45.01007419931089 ], "type" : "Point" }, "properties" : { "wpid":"7946","plink":"http://www.monferratopaesaggi.org/cartellone-percorso-storico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.399135023355484, 45.01025244885314 ], "type" : "Point" }, "properties" : { "wpid":"7944","plink":"http://www.monferratopaesaggi.org/parcheggio-55/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.398952633142471, 45.010288477948535 ], "type" : "Point" }, "properties" : { "wpid":"7941","plink":"http://www.monferratopaesaggi.org/wc-pubblici-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.398886919021606, 45.01024581191203 ], "type" : "Point" }, "properties" : { "wpid":"7939","plink":"http://www.monferratopaesaggi.org/casetta-dellacqua-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.398105055093765, 45.0101102285184 ], "type" : "Point" }, "properties" : { "wpid":"7937","plink":"http://www.monferratopaesaggi.org/scorcio-interno-19/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.397010713815689, 45.00988836409106 ], "type" : "Point" }, "properties" : { "wpid":"7935","plink":"http://www.monferratopaesaggi.org/antiche-mura-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.397508263587952, 45.01104697995906 ], "type" : "Point" }, "properties" : { "wpid":"7933","plink":"http://www.monferratopaesaggi.org/castello-callori/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.397261500358582, 45.01140821301042 ], "type" : "Point" }, "properties" : { "wpid":"7931","plink":"http://www.monferratopaesaggi.org/punto-veduta-71/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396820276975632, 45.01168885443831 ], "type" : "Point" }, "properties" : { "wpid":"7929","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-s-bartolomeo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396987915039062, 45.0105065483054 ], "type" : "Point" }, "properties" : { "wpid":"7926","plink":"http://www.monferratopaesaggi.org/palazzo-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396745175123215, 45.01069143339236 ], "type" : "Point" }, "properties" : { "wpid":"7924","plink":"http://www.monferratopaesaggi.org/palazzo-vitale/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396625816822052, 45.01089528036055 ], "type" : "Point" }, "properties" : { "wpid":"7922","plink":"http://www.monferratopaesaggi.org/palazzo-municipale/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396467566490173, 45.0108848509984 ], "type" : "Point" }, "properties" : { "wpid":"7920","plink":"http://www.monferratopaesaggi.org/scorcio-interno-18/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396541327238083, 45.01052551090589 ], "type" : "Point" }, "properties" : { "wpid":"7918","plink":"http://www.monferratopaesaggi.org/cartellone-percorso-artista-colonna/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.39627981185913, 45.01060041311643 ], "type" : "Point" }, "properties" : { "wpid":"7916","plink":"http://www.monferratopaesaggi.org/scorcio-interno-17/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.39607059955597, 45.01058903557179 ], "type" : "Point" }, "properties" : { "wpid":"7914","plink":"http://www.monferratopaesaggi.org/torre-civica-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396609723567963, 45.01020693838444 ], "type" : "Point" }, "properties" : { "wpid":"7910","plink":"http://www.monferratopaesaggi.org/fontanella-25/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396130949258804, 45.010140568886115 ], "type" : "Point" }, "properties" : { "wpid":"7908","plink":"http://www.monferratopaesaggi.org/palazzo-callori/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.395924419164658, 45.009943356208716 ], "type" : "Point" }, "properties" : { "wpid":"7905","plink":"http://www.monferratopaesaggi.org/scorcio-interno-16/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396337479352951, 45.009765105704496 ], "type" : "Point" }, "properties" : { "wpid":"7903","plink":"http://www.monferratopaesaggi.org/scorcio-interno-15/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.395758122205734, 45.00964469148614 ], "type" : "Point" }, "properties" : { "wpid":"7899","plink":"http://www.monferratopaesaggi.org/chiesa-purificazione-maria-vergine-chiesa-dei-battuti/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.395532816648483, 45.009280602860706 ], "type" : "Point" }, "properties" : { "wpid":"7896","plink":"http://www.monferratopaesaggi.org/porta-urbis/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.399002254009247, 45.01190976378422 ], "type" : "Point" }, "properties" : { "wpid":"7894","plink":"http://www.monferratopaesaggi.org/parcheggio-54/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.395762145519257, 45.01186046220149 ], "type" : "Point" }, "properties" : { "wpid":"7892","plink":"http://www.monferratopaesaggi.org/fontanella-24/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.395267277956009, 45.012171440705195 ], "type" : "Point" }, "properties" : { "wpid":"7890","plink":"http://www.monferratopaesaggi.org/scorcio-interno-14/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.395027220249176, 45.01214679003178 ], "type" : "Point" }, "properties" : { "wpid":"7888","plink":"http://www.monferratopaesaggi.org/edificio-dinteresse/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.394516259431839, 45.01005997724904 ], "type" : "Point" }, "properties" : { "wpid":"7884","plink":"http://www.monferratopaesaggi.org/bastioni-ambienti-ricavati-nel-sottostante-banco-arenaria/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.39455246925354, 45.00948729929142 ], "type" : "Point" }, "properties" : { "wpid":"7882","plink":"http://www.monferratopaesaggi.org/scorcio-interno-13/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.39547649025917, 45.00901606826717 ], "type" : "Point" }, "properties" : { "wpid":"7880","plink":"http://www.monferratopaesaggi.org/portale-ingresso-ex-convento-servi-maria/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.395041972398758, 45.00896676419351 ], "type" : "Point" }, "properties" : { "wpid":"7878","plink":"http://www.monferratopaesaggi.org/chiesa-beata-vergine-addolorata/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.394630253314972, 45.0088871190618 ], "type" : "Point" }, "properties" : { "wpid":"7876","plink":"http://www.monferratopaesaggi.org/parco-rimembranza/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.395032584667206, 45.00863490874741 ], "type" : "Point" }, "properties" : { "wpid":"7874","plink":"http://www.monferratopaesaggi.org/ex-convento-servi-maria-casa-salute/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.39487299323082, 45.0083694230062 ], "type" : "Point" }, "properties" : { "wpid":"7872","plink":"http://www.monferratopaesaggi.org/punto-veduta-70/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.363280594348907, 45.010610842530376 ], "type" : "Point" }, "properties" : { "wpid":"7870","plink":"http://www.monferratopaesaggi.org/chiesa-dellannunziata/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.339830040931702, 45.02251335826342 ], "type" : "Point" }, "properties" : { "wpid":"7867","plink":"http://www.monferratopaesaggi.org/chiesa-s-giorgio-madonna-delle-grazie/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.328820914030075, 45.02145166525231 ], "type" : "Point" }, "properties" : { "wpid":"7865","plink":"http://www.monferratopaesaggi.org/scorcio-paese/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.329014033079147, 45.02079283692203 ], "type" : "Point" }, "properties" : { "wpid":"7863","plink":"http://www.monferratopaesaggi.org/punto-veduta-69/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.329102545976639, 45.020779565482066 ], "type" : "Point" }, "properties" : { "wpid":"7861","plink":"http://www.monferratopaesaggi.org/parcheggio-53/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.342214524745941, 45.02349919843034 ], "type" : "Point" }, "properties" : { "wpid":"7859","plink":"http://www.monferratopaesaggi.org/punto-veduta-68/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.34081307053566, 45.022653651938576 ], "type" : "Point" }, "properties" : { "wpid":"7857","plink":"http://www.monferratopaesaggi.org/parco-giochi-bambini/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.34005132317543, 45.0225180979202 ], "type" : "Point" }, "properties" : { "wpid":"7855","plink":"http://www.monferratopaesaggi.org/punto-veduta-67/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.339767009019852, 45.022564546536096 ], "type" : "Point" }, "properties" : { "wpid":"7852","plink":"http://www.monferratopaesaggi.org/punto-veduta-66/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.339199721813202, 45.022756028187274 ], "type" : "Point" }, "properties" : { "wpid":"7850","plink":"http://www.monferratopaesaggi.org/parcheggio-52/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.337914943695068, 45.02308685388739 ], "type" : "Point" }, "properties" : { "wpid":"7847","plink":"http://www.monferratopaesaggi.org/scorcio-interno-12/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.337678909301758, 45.02298353030669 ], "type" : "Point" }, "properties" : { "wpid":"7845","plink":"http://www.monferratopaesaggi.org/palazzo-biletta/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.337311446666718, 45.02307168713492 ], "type" : "Point" }, "properties" : { "wpid":"7843","plink":"http://www.monferratopaesaggi.org/punto-veduta-65/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.337316811084747, 45.023174062636066 ], "type" : "Point" }, "properties" : { "wpid":"7841","plink":"http://www.monferratopaesaggi.org/confraternita-ss-trinita/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.335838913917542, 45.023279281710366 ], "type" : "Point" }, "properties" : { "wpid":"7839","plink":"http://www.monferratopaesaggi.org/punto-veduta-64/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.335828185081482, 45.023567448275145 ], "type" : "Point" }, "properties" : { "wpid":"7835","plink":"http://www.monferratopaesaggi.org/palazzo-residenza-evangelica-per-anziani/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.334583640098572, 45.02387931111386 ], "type" : "Point" }, "properties" : { "wpid":"7833","plink":"http://www.monferratopaesaggi.org/chiesa-dei-batu/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.334092795848846, 45.02385561338941 ], "type" : "Point" }, "properties" : { "wpid":"7831","plink":"http://www.monferratopaesaggi.org/parcheggio-51/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.333980143070221, 45.023588302378144 ], "type" : "Point" }, "properties" : { "wpid":"7829","plink":"http://www.monferratopaesaggi.org/albero-secolare-castagno/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.33362877368927, 45.02349066719405 ], "type" : "Point" }, "properties" : { "wpid":"7827","plink":"http://www.monferratopaesaggi.org/punto-veduta-63/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.334378451108932, 45.023174062636066 ], "type" : "Point" }, "properties" : { "wpid":"7824","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-s-vincenzo-martire/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.33456888794899, 45.02298353030669 ], "type" : "Point" }, "properties" : { "wpid":"7822","plink":"http://www.monferratopaesaggi.org/canonica/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.334153145551682, 45.02271337143923 ], "type" : "Point" }, "properties" : { "wpid":"7820","plink":"http://www.monferratopaesaggi.org/punto-panoramico-14/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.337256461381912, 45.02170287118035 ], "type" : "Point" }, "properties" : { "wpid":"7816","plink":"http://www.monferratopaesaggi.org/punto-informazioni-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.337135761976242, 45.021675380774 ], "type" : "Point" }, "properties" : { "wpid":"7814","plink":"http://www.monferratopaesaggi.org/wc-pubblici-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.337480425834656, 45.02164599446298 ], "type" : "Point" }, "properties" : { "wpid":"7812","plink":"http://www.monferratopaesaggi.org/parcheggio-50/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.339679837226868, 45.021439341914274 ], "type" : "Point" }, "properties" : { "wpid":"7810","plink":"http://www.monferratopaesaggi.org/torre/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.323097079992294, 45.00476248766094 ], "type" : "Point" }, "properties" : { "wpid":"7808","plink":"http://www.monferratopaesaggi.org/bialbero-casorzo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.323153406381607, 45.00483075983926 ], "type" : "Point" }, "properties" : { "wpid":"7806","plink":"http://www.monferratopaesaggi.org/area-pic-nic-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.308861255645752, 45.04081214447438 ], "type" : "Point" }, "properties" : { "wpid":"7804","plink":"http://www.monferratopaesaggi.org/infernot-alasio-via-roma-49a/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.31353634595871, 45.03952525067822 ], "type" : "Point" }, "properties" : { "wpid":"7799","plink":"http://www.monferratopaesaggi.org/punto-veduta-62/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.313608765602112, 45.039772586710725 ], "type" : "Point" }, "properties" : { "wpid":"7797","plink":"http://www.monferratopaesaggi.org/punto-veduta-61/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.313858211040497, 45.03985503181726 ], "type" : "Point" }, "properties" : { "wpid":"7795","plink":"http://www.monferratopaesaggi.org/fontanella-23/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.313868939876556, 45.039684455603336 ], "type" : "Point" }, "properties" : { "wpid":"7793","plink":"http://www.monferratopaesaggi.org/chiesa-dei-ss-vittore-corona/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.312910050153732, 45.039784906102 ], "type" : "Point" }, "properties" : { "wpid":"7791","plink":"http://www.monferratopaesaggi.org/fontanella-22/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.312946259975433, 45.03965413088985 ], "type" : "Point" }, "properties" : { "wpid":"7789","plink":"http://www.monferratopaesaggi.org/wc-pubblici-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.313197046518326, 45.03941153260333 ], "type" : "Point" }, "properties" : { "wpid":"7787","plink":"http://www.monferratopaesaggi.org/punto-veduta-60/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.313088417053223, 45.03933856338623 ], "type" : "Point" }, "properties" : { "wpid":"7785","plink":"http://www.monferratopaesaggi.org/parcheggio-49/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.313430398702621, 45.038885583567016 ], "type" : "Point" }, "properties" : { "wpid":"7783","plink":"http://www.monferratopaesaggi.org/chiesa-s-spirito/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.313548415899277, 45.03893107124223 ], "type" : "Point" }, "properties" : { "wpid":"7781","plink":"http://www.monferratopaesaggi.org/municipio-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.31347867846489, 45.03876902123424 ], "type" : "Point" }, "properties" : { "wpid":"7779","plink":"http://www.monferratopaesaggi.org/infernot-mosso-redoglia/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.313391506671906, 45.03874912032444 ], "type" : "Point" }, "properties" : { "wpid":"7777","plink":"http://www.monferratopaesaggi.org/infernot-monti-colombaro/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.314198851585388, 45.039567894898006 ], "type" : "Point" }, "properties" : { "wpid":"7773","plink":"http://www.monferratopaesaggi.org/chiostro-dellabbazia/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.314173370599747, 45.03948734467837 ], "type" : "Point" }, "properties" : { "wpid":"7771","plink":"http://www.monferratopaesaggi.org/punto-veduta-59/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.314617276191711, 45.03938784130927 ], "type" : "Point" }, "properties" : { "wpid":"7769","plink":"http://www.monferratopaesaggi.org/edificio-13/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.315619081258774, 45.03950724533141 ], "type" : "Point" }, "properties" : { "wpid":"7767","plink":"http://www.monferratopaesaggi.org/punto-veduta-58/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.315446078777313, 45.03919546763837 ], "type" : "Point" }, "properties" : { "wpid":"7765","plink":"http://www.monferratopaesaggi.org/casa-brion/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.317452371120453, 45.03868941755348 ], "type" : "Point" }, "properties" : { "wpid":"7763","plink":"http://www.monferratopaesaggi.org/casa-redoglia/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.318248987197876, 45.03860318010763 ], "type" : "Point" }, "properties" : { "wpid":"7761","plink":"http://www.monferratopaesaggi.org/infernot-testa/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.31413447856903, 45.03561795763389 ], "type" : "Point" }, "properties" : { "wpid":"7759","plink":"http://www.monferratopaesaggi.org/tenuta-santa-caterina/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.301679641008377, 45.06851314118451 ], "type" : "Point" }, "properties" : { "wpid":"7757","plink":"http://www.monferratopaesaggi.org/chiesa-s-caterina-dalessandria/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.292494416236877, 45.0570701890344 ], "type" : "Point" }, "properties" : { "wpid":"7755","plink":"http://www.monferratopaesaggi.org/chiesa-s-croce-xvi-secolo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.292426019906998, 45.05700671594275 ], "type" : "Point" }, "properties" : { "wpid":"7751","plink":"http://www.monferratopaesaggi.org/punto-veduta-57/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.252076208591461, 45.04535110429882 ], "type" : "Point" }, "properties" : { "wpid":"7749","plink":"http://www.monferratopaesaggi.org/chiesa-s-pietro-in-vincoli/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.261237293481827, 45.04638582302102 ], "type" : "Point" }, "properties" : { "wpid":"7747","plink":"http://www.monferratopaesaggi.org/convento-dei-cappuccini-1642/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.256731182336807, 45.04871197671991 ], "type" : "Point" }, "properties" : { "wpid":"7745","plink":"http://www.monferratopaesaggi.org/villa-foa/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.254951536655426, 45.05102192901737 ], "type" : "Point" }, "properties" : { "wpid":"7730","plink":"http://www.monferratopaesaggi.org/residenza-dei-primi-novecento/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.258356600999832, 45.05273680455039 ], "type" : "Point" }, "properties" : { "wpid":"7724","plink":"http://www.monferratopaesaggi.org/ex-ospedale-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.25880452990532, 45.05279175551279 ], "type" : "Point" }, "properties" : { "wpid":"7722","plink":"http://www.monferratopaesaggi.org/chiesa-s-marco/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.260637819766998, 45.05234172452482 ], "type" : "Point" }, "properties" : { "wpid":"7720","plink":"http://www.monferratopaesaggi.org/casa-c-ferraris/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.261670470237732, 45.0520442284117 ], "type" : "Point" }, "properties" : { "wpid":"7718","plink":"http://www.monferratopaesaggi.org/edificio-12/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.26234370470047, 45.051888847661004 ], "type" : "Point" }, "properties" : { "wpid":"7716","plink":"http://www.monferratopaesaggi.org/edificio-medievale/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.262209594249725, 45.05159229664194 ], "type" : "Point" }, "properties" : { "wpid":"7714","plink":"http://www.monferratopaesaggi.org/edificio-anni-30/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.266941010951996, 45.05213234047912 ], "type" : "Point" }, "properties" : { "wpid":"7712","plink":"http://www.monferratopaesaggi.org/punto-panoramico-belvedere-bonaventura/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.2672119140625, 45.0521617111381 ], "type" : "Point" }, "properties" : { "wpid":"7710","plink":"http://www.monferratopaesaggi.org/scorcio-interno-sulle-mura-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.267331272363663, 45.05205938748674 ], "type" : "Point" }, "properties" : { "wpid":"7707","plink":"http://www.monferratopaesaggi.org/punto-panoramico-interno-torre/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.267270922660828, 45.05191442866728 ], "type" : "Point" }, "properties" : { "wpid":"7705","plink":"http://www.monferratopaesaggi.org/scorcio-interno-sulle-mura/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.266463577747345, 45.05225550765768 ], "type" : "Point" }, "properties" : { "wpid":"7703","plink":"http://www.monferratopaesaggi.org/punto-panoramico-13/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.267048299312592, 45.052015805135206 ], "type" : "Point" }, "properties" : { "wpid":"7701","plink":"http://www.monferratopaesaggi.org/wc-pubblico-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.266985267400742, 45.05191158633382 ], "type" : "Point" }, "properties" : { "wpid":"7699","plink":"http://www.monferratopaesaggi.org/fontanella-21/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.266580253839493, 45.0516415640104 ], "type" : "Point" }, "properties" : { "wpid":"7697","plink":"http://www.monferratopaesaggi.org/parcheggio-48/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265923112630844, 45.05164440635729 ], "type" : "Point" }, "properties" : { "wpid":"7695","plink":"http://www.monferratopaesaggi.org/scorcio-interno-torre/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.263248950242996, 45.051701253265335 ], "type" : "Point" }, "properties" : { "wpid":"7693","plink":"http://www.monferratopaesaggi.org/scorcio-panoramico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.263342827558517, 45.05159229664194 ], "type" : "Point" }, "properties" : { "wpid":"7691","plink":"http://www.monferratopaesaggi.org/edificio-11/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.262755423784256, 45.05131279826752 ], "type" : "Point" }, "properties" : { "wpid":"7689","plink":"http://www.monferratopaesaggi.org/scorcio-interno-11/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.263440728187561, 45.05144828409078 ], "type" : "Point" }, "properties" : { "wpid":"7687","plink":"http://www.monferratopaesaggi.org/museo-civico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.264266848564148, 45.05135069643223 ], "type" : "Point" }, "properties" : { "wpid":"7684","plink":"http://www.monferratopaesaggi.org/palazzo-manacorda/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265291452407837, 45.05127205771245 ], "type" : "Point" }, "properties" : { "wpid":"7682","plink":"http://www.monferratopaesaggi.org/teatro-comunale/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265316933393478, 45.050875072645034 ], "type" : "Point" }, "properties" : { "wpid":"7680","plink":"http://www.monferratopaesaggi.org/scorcio-interno-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265004456043243, 45.050911076177655 ], "type" : "Point" }, "properties" : { "wpid":"7678","plink":"http://www.monferratopaesaggi.org/edificio-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265118449926376, 45.05089117949138 ], "type" : "Point" }, "properties" : { "wpid":"7676","plink":"http://www.monferratopaesaggi.org/casa-dei-marchesi-monferrato-palazzo-paleologo-meta-xv-secolo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.26497495174408, 45.05082769954126 ], "type" : "Point" }, "properties" : { "wpid":"7674","plink":"http://www.monferratopaesaggi.org/scorcio-interno-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265878856182098, 45.05097739841525 ], "type" : "Point" }, "properties" : { "wpid":"7672","plink":"http://www.monferratopaesaggi.org/ex-sinagoga/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265734016895294, 45.050708319145734 ], "type" : "Point" }, "properties" : { "wpid":"7670","plink":"http://www.monferratopaesaggi.org/casa-lanfrancone/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265687078237534, 45.050700739429665 ], "type" : "Point" }, "properties" : { "wpid":"7668","plink":"http://www.monferratopaesaggi.org/scorcio-interno-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.264645040035248, 45.05065905097336 ], "type" : "Point" }, "properties" : { "wpid":"7666","plink":"http://www.monferratopaesaggi.org/palazzo-testa-fochi/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.264100551605225, 45.05015878712745 ], "type" : "Point" }, "properties" : { "wpid":"7662","plink":"http://www.monferratopaesaggi.org/scorcio-interno-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265679031610489, 45.04952208135886 ], "type" : "Point" }, "properties" : { "wpid":"7658","plink":"http://www.monferratopaesaggi.org/palazzo-dal-pozzo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.266436755657196, 45.04945102000751 ], "type" : "Point" }, "properties" : { "wpid":"7656","plink":"http://www.monferratopaesaggi.org/punto-veduta-56/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.266930282115936, 45.04886547111148 ], "type" : "Point" }, "properties" : { "wpid":"7654","plink":"http://www.monferratopaesaggi.org/punto-veduta-55/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.2681305706501, 45.04780331938513 ], "type" : "Point" }, "properties" : { "wpid":"7652","plink":"http://www.monferratopaesaggi.org/parco-monumento-caduti/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.26959639787674, 45.04697802998533 ], "type" : "Point" }, "properties" : { "wpid":"7649","plink":"http://www.monferratopaesaggi.org/punto-veduta-54/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.206489384174347, 45.049393223376626 ], "type" : "Point" }, "properties" : { "wpid":"7646","plink":"http://www.monferratopaesaggi.org/parcheggio-bar-ristorante/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.206961452960968, 45.04929563221163 ], "type" : "Point" }, "properties" : { "wpid":"7644","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-s-marziano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.212624937295914, 45.04788670043028 ], "type" : "Point" }, "properties" : { "wpid":"7641","plink":"http://www.monferratopaesaggi.org/chiesetta/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.25218215584755, 45.13413700175629 ], "type" : "Point" }, "properties" : { "wpid":"7639","plink":"http://www.monferratopaesaggi.org/punto-veduta-belvedere/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.252391368150711, 45.133886289637 ], "type" : "Point" }, "properties" : { "wpid":"7636","plink":"http://www.monferratopaesaggi.org/chiesetta-s-martino/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.251498192548752, 45.133179559353124 ], "type" : "Point" }, "properties" : { "wpid":"7634","plink":"http://www.monferratopaesaggi.org/palazzo-tornelli/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.251153528690338, 45.13311806299723 ], "type" : "Point" }, "properties" : { "wpid":"7632","plink":"http://www.monferratopaesaggi.org/chiesa-dei-ss-pietro-apostolo-anna/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.251372128725052, 45.13292695082182 ], "type" : "Point" }, "properties" : { "wpid":"7629","plink":"http://www.monferratopaesaggi.org/antiche-mura/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.251228630542755, 45.13285315485991 ], "type" : "Point" }, "properties" : { "wpid":"7626","plink":"http://www.monferratopaesaggi.org/punto-veduta-53/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.250949680805206, 45.13304142898401 ], "type" : "Point" }, "properties" : { "wpid":"7623","plink":"http://www.monferratopaesaggi.org/municipio-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.249575048685074, 45.13232806545091 ], "type" : "Point" }, "properties" : { "wpid":"7621","plink":"http://www.monferratopaesaggi.org/punto-veduta-52/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.249738663434982, 45.132086806533955 ], "type" : "Point" }, "properties" : { "wpid":"7619","plink":"http://www.monferratopaesaggi.org/parcheggio-47/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.249329626560211, 45.13174336560933 ], "type" : "Point" }, "properties" : { "wpid":"7617","plink":"http://www.monferratopaesaggi.org/chiesa-s-sebastiano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281129896640778, 45.131208804683624 ], "type" : "Point" }, "properties" : { "wpid":"7615","plink":"http://www.monferratopaesaggi.org/edificio-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.28098639845848, 45.13099497891046 ], "type" : "Point" }, "properties" : { "wpid":"7613","plink":"http://www.monferratopaesaggi.org/parcheggio-46/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.282251060009003, 45.130874819827625 ], "type" : "Point" }, "properties" : { "wpid":"7609","plink":"http://www.monferratopaesaggi.org/punto-veduta-51/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.283160328865051, 45.13083129757778 ], "type" : "Point" }, "properties" : { "wpid":"7607","plink":"http://www.monferratopaesaggi.org/palazzo-crova/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.302536606788635, 45.0896311173665 ], "type" : "Point" }, "properties" : { "wpid":"7605","plink":"http://www.monferratopaesaggi.org/chiesa-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.302515149116516, 45.089518445741476 ], "type" : "Point" }, "properties" : { "wpid":"7602","plink":"http://www.monferratopaesaggi.org/punto-veduta-50/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.278593868017197, 45.101684750398476 ], "type" : "Point" }, "properties" : { "wpid":"7579","plink":"http://www.monferratopaesaggi.org/punto-veduta-49/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.279811590909958, 45.10119629258934 ], "type" : "Point" }, "properties" : { "wpid":"7575","plink":"http://www.monferratopaesaggi.org/chiesa-s-giacomo-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281647562980652, 45.100861185396404 ], "type" : "Point" }, "properties" : { "wpid":"7573","plink":"http://www.monferratopaesaggi.org/punto-veduta-48/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281725347042084, 45.10055068884064 ], "type" : "Point" }, "properties" : { "wpid":"7571","plink":"http://www.monferratopaesaggi.org/parcheggio-45/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281750828027725, 45.100393546647574 ], "type" : "Point" }, "properties" : { "wpid":"7568","plink":"http://www.monferratopaesaggi.org/punto-veduta-47/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.282555490732193, 45.10040963954263 ], "type" : "Point" }, "properties" : { "wpid":"7566","plink":"http://www.monferratopaesaggi.org/ex-macelleria-biblioteca-cesare-pavese/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.283602893352509, 45.09994673033773 ], "type" : "Point" }, "properties" : { "wpid":"7563","plink":"http://www.monferratopaesaggi.org/parcheggio-31/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.285071402788162, 45.100393546647574 ], "type" : "Point" }, "properties" : { "wpid":"7560","plink":"http://www.monferratopaesaggi.org/chiesa-s-rocco-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.272444903850555, 45.0960653398625 ], "type" : "Point" }, "properties" : { "wpid":"7557","plink":"http://www.monferratopaesaggi.org/punto-veduta-46/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.271048814058304, 45.09543103877767 ], "type" : "Point" }, "properties" : { "wpid":"7555","plink":"http://www.monferratopaesaggi.org/punto-veduta-45/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.27247440814972, 45.095315538418866 ], "type" : "Point" }, "properties" : { "wpid":"7553","plink":"http://www.monferratopaesaggi.org/punto-veduta-44/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.275356441736221, 45.09460833030808 ], "type" : "Point" }, "properties" : { "wpid":"7551","plink":"http://www.monferratopaesaggi.org/punto-veduta-43/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.275792300701141, 45.09424667565405 ], "type" : "Point" }, "properties" : { "wpid":"7547","plink":"http://www.monferratopaesaggi.org/chiesa-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.275668919086456, 45.09406016699232 ], "type" : "Point" }, "properties" : { "wpid":"7545","plink":"http://www.monferratopaesaggi.org/punto-veduta-42/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.273830264806747, 45.09365401150467 ], "type" : "Point" }, "properties" : { "wpid":"7543","plink":"http://www.monferratopaesaggi.org/parcheggio-30/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.267877101898193, 45.07955417607216 ], "type" : "Point" }, "properties" : { "wpid":"7541","plink":"http://www.monferratopaesaggi.org/dimora-sagittario/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.266132324934006, 45.08409290196034 ], "type" : "Point" }, "properties" : { "wpid":"7519","plink":"http://www.monferratopaesaggi.org/fontanella-20/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.262558281421661, 45.085670434315475 ], "type" : "Point" }, "properties" : { "wpid":"7516","plink":"http://www.monferratopaesaggi.org/parcheggio-29/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.262279331684113, 45.08552082627408 ], "type" : "Point" }, "properties" : { "wpid":"7514","plink":"http://www.monferratopaesaggi.org/palazzo-nazzari/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.261820673942566, 45.08533618289795 ], "type" : "Point" }, "properties" : { "wpid":"7512","plink":"http://www.monferratopaesaggi.org/ex-municipio-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.258156776428223, 45.08622530628813 ], "type" : "Point" }, "properties" : { "wpid":"7509","plink":"http://www.monferratopaesaggi.org/punto-veduta-41/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.22745218873024, 45.064222302530794 ], "type" : "Point" }, "properties" : { "wpid":"7507","plink":"http://www.monferratopaesaggi.org/edificio-ottocentesco/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.227312713861465, 45.06373447156573 ], "type" : "Point" }, "properties" : { "wpid":"7505","plink":"http://www.monferratopaesaggi.org/chiesa-ss-maria/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.2497239112854, 45.07511926630938 ], "type" : "Point" }, "properties" : { "wpid":"7503","plink":"http://www.monferratopaesaggi.org/villa-storica-ottocentesca/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.249286711215973, 45.0736418336492 ], "type" : "Point" }, "properties" : { "wpid":"7501","plink":"http://www.monferratopaesaggi.org/chiesa-s-antonio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.241250813007355, 45.07576326346408 ], "type" : "Point" }, "properties" : { "wpid":"7499","plink":"http://www.monferratopaesaggi.org/parcheggio-28/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.24075996875763, 45.0751486251611 ], "type" : "Point" }, "properties" : { "wpid":"7495","plink":"http://www.monferratopaesaggi.org/municipio-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.240753263235092, 45.07510790158854 ], "type" : "Point" }, "properties" : { "wpid":"7493","plink":"http://www.monferratopaesaggi.org/fontanella-19/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.240770697593689, 45.07510979570885 ], "type" : "Point" }, "properties" : { "wpid":"7491","plink":"http://www.monferratopaesaggi.org/wc-pubblici-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.24062317609787, 45.07511547806937 ], "type" : "Point" }, "properties" : { "wpid":"7487","plink":"http://www.monferratopaesaggi.org/parcheggio-27/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.240408599376678, 45.07505297207264 ], "type" : "Point" }, "properties" : { "wpid":"7485","plink":"http://www.monferratopaesaggi.org/punto-panoramico-12/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.240084052085876, 45.07355091346867 ], "type" : "Point" }, "properties" : { "wpid":"7483","plink":"http://www.monferratopaesaggi.org/palazzo-storico-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.188497126102448, 45.13356272746148 ], "type" : "Point" }, "properties" : { "wpid":"7481","plink":"http://www.monferratopaesaggi.org/punto-veduta-40/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.188867270946503, 45.13301588429005 ], "type" : "Point" }, "properties" : { "wpid":"7477","plink":"http://www.monferratopaesaggi.org/ex-canonica/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.188900798559189, 45.13235361045295 ], "type" : "Point" }, "properties" : { "wpid":"7470","plink":"http://www.monferratopaesaggi.org/parcheggio-26/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.411833941936493, 45.109759791170035 ], "type" : "Point" }, "properties" : { "wpid":"7448","plink":"http://www.monferratopaesaggi.org/chiesa-s-rocco-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.412440121173859, 45.10836560068441 ], "type" : "Point" }, "properties" : { "wpid":"7446","plink":"http://www.monferratopaesaggi.org/parcheggio-25/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.412837088108063, 45.10838926340037 ], "type" : "Point" }, "properties" : { "wpid":"7443","plink":"http://www.monferratopaesaggi.org/scorcio-interno-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.412259072065353, 45.10788098610404 ], "type" : "Point" }, "properties" : { "wpid":"7440","plink":"http://www.monferratopaesaggi.org/fontanella-18/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.412335515022278, 45.107892344305355 ], "type" : "Point" }, "properties" : { "wpid":"7438","plink":"http://www.monferratopaesaggi.org/wc-pubblici/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.412944376468658, 45.10785921621187 ], "type" : "Point" }, "properties" : { "wpid":"7436","plink":"http://www.monferratopaesaggi.org/punto-veduta-39/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.414693176746368, 45.107881932620906 ], "type" : "Point" }, "properties" : { "wpid":"7430","plink":"http://www.monferratopaesaggi.org/wc-pubblico-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.41463416814804, 45.10780905077657 ], "type" : "Point" }, "properties" : { "wpid":"7426","plink":"http://www.monferratopaesaggi.org/fontanella-17/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.414854109287262, 45.10759040468523 ], "type" : "Point" }, "properties" : { "wpid":"7424","plink":"http://www.monferratopaesaggi.org/punto-panoramico-attrezzato/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.414690494537354, 45.107482501110724 ], "type" : "Point" }, "properties" : { "wpid":"7422","plink":"http://www.monferratopaesaggi.org/parcheggio-24/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.41638296842575, 45.10757147424832 ], "type" : "Point" }, "properties" : { "wpid":"7418","plink":"http://www.monferratopaesaggi.org/edificio-interessante/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.42389851808548, 45.10572194029193 ], "type" : "Point" }, "properties" : { "wpid":"7412","plink":"http://www.monferratopaesaggi.org/parcheggio-23/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.424543589353561, 45.105440813456354 ], "type" : "Point" }, "properties" : { "wpid":"7410","plink":"http://www.monferratopaesaggi.org/chiesa-madonna-neve-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.424374610185623, 45.105445546242805 ], "type" : "Point" }, "properties" : { "wpid":"7408","plink":"http://www.monferratopaesaggi.org/punto-veduta-37/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.391210436820984, 45.08510419422044 ], "type" : "Point" }, "properties" : { "wpid":"7406","plink":"http://www.monferratopaesaggi.org/infernot-11/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.398211002349854, 45.081344899432814 ], "type" : "Point" }, "properties" : { "wpid":"7404","plink":"http://www.monferratopaesaggi.org/parcheggio-22/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.398417532444, 45.0811450911998 ], "type" : "Point" }, "properties" : { "wpid":"7400","plink":"http://www.monferratopaesaggi.org/punto-veduta-36/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.39893251657486, 45.08092255514147 ], "type" : "Point" }, "properties" : { "wpid":"7398","plink":"http://www.monferratopaesaggi.org/castello-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.399849832057953, 45.08077672253097 ], "type" : "Point" }, "properties" : { "wpid":"7396","plink":"http://www.monferratopaesaggi.org/punto-veduta-35/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.39956283569336, 45.08073126813474 ], "type" : "Point" }, "properties" : { "wpid":"7394","plink":"http://www.monferratopaesaggi.org/infernot-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.400000035762787, 45.08014319862297 ], "type" : "Point" }, "properties" : { "wpid":"7392","plink":"http://www.monferratopaesaggi.org/punto-veduta-34/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.397901207208633, 45.08023505529029 ], "type" : "Point" }, "properties" : { "wpid":"7389","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-s-vittore-martire-quattrocento/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.397999107837677, 45.080098690700275 ], "type" : "Point" }, "properties" : { "wpid":"7387","plink":"http://www.monferratopaesaggi.org/torre-civica-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.398337066173553, 45.080093008835284 ], "type" : "Point" }, "properties" : { "wpid":"7385","plink":"http://www.monferratopaesaggi.org/parrocchia-s-antonio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.38783085346222, 45.07837516574749 ], "type" : "Point" }, "properties" : { "wpid":"7381","plink":"http://www.monferratopaesaggi.org/wc-pubblico-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.387722223997116, 45.077982156899665 ], "type" : "Point" }, "properties" : { "wpid":"7379","plink":"http://www.monferratopaesaggi.org/parcheggio-21/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.3884397149086, 45.07785999215289 ], "type" : "Point" }, "properties" : { "wpid":"7377","plink":"http://www.monferratopaesaggi.org/punto-veduta-33/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.451377749443054, 45.13589573993871 ], "type" : "Point" }, "properties" : { "wpid":"7373","plink":"http://www.monferratopaesaggi.org/oratorio-gesu/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.449218571186066, 45.13650877847679 ], "type" : "Point" }, "properties" : { "wpid":"7368","plink":"http://www.monferratopaesaggi.org/palazzo-trevisio-xv-secolo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.44972550868988, 45.13703666749245 ], "type" : "Point" }, "properties" : { "wpid":"7363","plink":"http://www.monferratopaesaggi.org/palazzo-ricci-cereseto/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.458415865898132, 45.13276232892955 ], "type" : "Point" }, "properties" : { "wpid":"7360","plink":"http://www.monferratopaesaggi.org/monumento-caduti-l-bistolfi/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.453362584114075, 45.13336783239968 ], "type" : "Point" }, "properties" : { "wpid":"7354","plink":"http://www.monferratopaesaggi.org/palazzo-gambera-mellana/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45224678516388, 45.13328079167152 ], "type" : "Point" }, "properties" : { "wpid":"7352","plink":"http://www.monferratopaesaggi.org/casa-tornielli/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.357822299003601, 45.09892434088164 ], "type" : "Point" }, "properties" : { "wpid":"7348","plink":"http://www.monferratopaesaggi.org/infernot-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.373676836490631, 45.08410615871627 ], "type" : "Point" }, "properties" : { "wpid":"7346","plink":"http://www.monferratopaesaggi.org/infernot-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.38207483291626, 45.08078998005641 ], "type" : "Point" }, "properties" : { "wpid":"7343","plink":"http://www.monferratopaesaggi.org/infernot-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.39093416929245, 45.07478495316008 ], "type" : "Point" }, "properties" : { "wpid":"7341","plink":"http://www.monferratopaesaggi.org/infernot-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.389528691768646, 45.07581440410355 ], "type" : "Point" }, "properties" : { "wpid":"7339","plink":"http://www.monferratopaesaggi.org/infernot-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.386787474155426, 45.07878995287656 ], "type" : "Point" }, "properties" : { "wpid":"7337","plink":"http://www.monferratopaesaggi.org/infernot-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.390901982784271, 45.075293525079125 ], "type" : "Point" }, "properties" : { "wpid":"7335","plink":"http://www.monferratopaesaggi.org/infernot-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.38879108428955, 45.07626140922611 ], "type" : "Point" }, "properties" : { "wpid":"7331","plink":"http://www.monferratopaesaggi.org/infernot-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.382407426834106, 45.08081270723567 ], "type" : "Point" }, "properties" : { "wpid":"7329","plink":"http://www.monferratopaesaggi.org/infernot/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.388427644968033, 45.07728231035523 ], "type" : "Point" }, "properties" : { "wpid":"7326","plink":"http://www.monferratopaesaggi.org/area-pic-nic-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.38855504989624, 45.07718666083829 ], "type" : "Point" }, "properties" : { "wpid":"7324","plink":"http://www.monferratopaesaggi.org/fontanella-16/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.388597965240479, 45.07712036899994 ], "type" : "Point" }, "properties" : { "wpid":"7322","plink":"http://www.monferratopaesaggi.org/punto-veduta-32/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.388435691595078, 45.07709669332475 ], "type" : "Point" }, "properties" : { "wpid":"7320","plink":"http://www.monferratopaesaggi.org/chiesa-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.388337790966034, 45.07707680575 ], "type" : "Point" }, "properties" : { "wpid":"7318","plink":"http://www.monferratopaesaggi.org/punto-veduta-31/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.389855921268463, 45.07574716362366 ], "type" : "Point" }, "properties" : { "wpid":"7316","plink":"http://www.monferratopaesaggi.org/punto-veduta-30/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.389749974012375, 45.07518271929254 ], "type" : "Point" }, "properties" : { "wpid":"7314","plink":"http://www.monferratopaesaggi.org/palazzo-storico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.389917612075806, 45.074913753925124 ], "type" : "Point" }, "properties" : { "wpid":"7310","plink":"http://www.monferratopaesaggi.org/edificio-novecento-torretta/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.390496969223022, 45.07492322455815 ], "type" : "Point" }, "properties" : { "wpid":"7308","plink":"http://www.monferratopaesaggi.org/municipio-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.3909972012043, 45.075231966335274 ], "type" : "Point" }, "properties" : { "wpid":"7306","plink":"http://www.monferratopaesaggi.org/eco-museo-pietra-cantoni/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.390708863735199, 45.07496584238737 ], "type" : "Point" }, "properties" : { "wpid":"7304","plink":"http://www.monferratopaesaggi.org/chiesa-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.391033411026001, 45.07505865443881 ], "type" : "Point" }, "properties" : { "wpid":"7302","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-dei-ss-quirico-giuditta/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.391832709312439, 45.07476317064905 ], "type" : "Point" }, "properties" : { "wpid":"7300","plink":"http://www.monferratopaesaggi.org/parcheggio-20/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.393383026123047, 45.072677693535745 ], "type" : "Point" }, "properties" : { "wpid":"7298","plink":"http://www.monferratopaesaggi.org/punto-veduta-29/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.393364250659943, 45.0726208674812 ], "type" : "Point" }, "properties" : { "wpid":"7296","plink":"http://www.monferratopaesaggi.org/chiesa-s-rocco/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.356776237487793, 45.07659666077336 ], "type" : "Point" }, "properties" : { "wpid":"7290","plink":"http://www.monferratopaesaggi.org/punto-veduta-28/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.356917053461075, 45.07664117142408 ], "type" : "Point" }, "properties" : { "wpid":"7287","plink":"http://www.monferratopaesaggi.org/chiesa-s-francesco/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.358239382505417, 45.07614397601563 ], "type" : "Point" }, "properties" : { "wpid":"7285","plink":"http://www.monferratopaesaggi.org/punto-veduta-27/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.357222825288773, 45.075566276869566 ], "type" : "Point" }, "properties" : { "wpid":"7282","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-s-giacomo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.357495069503784, 45.07566761140445 ], "type" : "Point" }, "properties" : { "wpid":"7280","plink":"http://www.monferratopaesaggi.org/edificio-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.357808887958527, 45.07563257051085 ], "type" : "Point" }, "properties" : { "wpid":"7277","plink":"http://www.monferratopaesaggi.org/edificio-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.357783406972885, 45.07537781309787 ], "type" : "Point" }, "properties" : { "wpid":"7275","plink":"http://www.monferratopaesaggi.org/antico-forno/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.358199149370193, 45.07538444248733 ], "type" : "Point" }, "properties" : { "wpid":"7273","plink":"http://www.monferratopaesaggi.org/municipio-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.365083038806915, 45.07616291687235 ], "type" : "Point" }, "properties" : { "wpid":"7268","plink":"http://www.monferratopaesaggi.org/wc-pubblico-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.358692675828934, 45.074765064780784 ], "type" : "Point" }, "properties" : { "wpid":"7255","plink":"http://www.monferratopaesaggi.org/parcheggio-19/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.358939439058304, 45.07431520673342 ], "type" : "Point" }, "properties" : { "wpid":"7253","plink":"http://www.monferratopaesaggi.org/fontanella-15/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.356937170028687, 45.1028121632243 ], "type" : "Point" }, "properties" : { "wpid":"7233","plink":"http://www.monferratopaesaggi.org/chiesetta-s-quirico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.358818739652634, 45.09719191695657 ], "type" : "Point" }, "properties" : { "wpid":"7230","plink":"http://www.monferratopaesaggi.org/chiesa-s-giacomo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.359683752059937, 45.09843112608886 ], "type" : "Point" }, "properties" : { "wpid":"7228","plink":"http://www.monferratopaesaggi.org/cantinone-attrezzatura-depoca-per-uso-vitivinicolo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.36136281490326, 45.09755639302249 ], "type" : "Point" }, "properties" : { "wpid":"7225","plink":"http://www.monferratopaesaggi.org/area-pic-nic-attrezzata/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.361271619796753, 45.0975166321102 ], "type" : "Point" }, "properties" : { "wpid":"7223","plink":"http://www.monferratopaesaggi.org/parcheggio-18/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.361435234546661, 45.09736610840558 ], "type" : "Point" }, "properties" : { "wpid":"7221","plink":"http://www.monferratopaesaggi.org/fontanella-14/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.36034893989563, 45.09736326833187 ], "type" : "Point" }, "properties" : { "wpid":"7218","plink":"http://www.monferratopaesaggi.org/chiesa-s-ambrogio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.36063727736473, 45.09739166906264 ], "type" : "Point" }, "properties" : { "wpid":"7216","plink":"http://www.monferratopaesaggi.org/punto-veduta-26/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.360190689563751, 45.09751757879889 ], "type" : "Point" }, "properties" : { "wpid":"7214","plink":"http://www.monferratopaesaggi.org/punto-veduta-25/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.359998911619186, 45.0973358142787 ], "type" : "Point" }, "properties" : { "wpid":"7211","plink":"http://www.monferratopaesaggi.org/punto-veduta-24/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.360407948493958, 45.09695240284651 ], "type" : "Point" }, "properties" : { "wpid":"7208","plink":"http://www.monferratopaesaggi.org/punto-veduta-23/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.360654711723328, 45.09701204479395 ], "type" : "Point" }, "properties" : { "wpid":"7206","plink":"http://www.monferratopaesaggi.org/scorcio-interno/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.36108922958374, 45.09689465423488 ], "type" : "Point" }, "properties" : { "wpid":"7204","plink":"http://www.monferratopaesaggi.org/punto-veduta-22/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.362246602773666, 45.096721408049575 ], "type" : "Point" }, "properties" : { "wpid":"7202","plink":"http://www.monferratopaesaggi.org/punto-veduta-terrazza-delle-rose/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.373644649982452, 45.12345190380423 ], "type" : "Point" }, "properties" : { "wpid":"7200","plink":"http://www.monferratopaesaggi.org/cascina-sinaccio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.371252119541168, 45.11840812233264 ], "type" : "Point" }, "properties" : { "wpid":"7192","plink":"http://www.monferratopaesaggi.org/casacina-mago-ingresso-galleria/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.370517194271088, 45.11751666093022 ], "type" : "Point" }, "properties" : { "wpid":"7190","plink":"http://www.monferratopaesaggi.org/pozzone-cavallera/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.37033212184906, 45.116600579926676 ], "type" : "Point" }, "properties" : { "wpid":"7185","plink":"http://www.monferratopaesaggi.org/abitazione-cavatori/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.368953466415405, 45.11392417638612 ], "type" : "Point" }, "properties" : { "wpid":"7182","plink":"http://www.monferratopaesaggi.org/ruderi-stabilimento-unione-cementi-marchino/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367609679698944, 45.10920325485629 ], "type" : "Point" }, "properties" : { "wpid":"7180","plink":"http://www.monferratopaesaggi.org/fabbrica-milanese-azzi/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.368508219718933, 45.10802580300148 ], "type" : "Point" }, "properties" : { "wpid":"7178","plink":"http://www.monferratopaesaggi.org/ex-fabbrica-italcementi/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.371233344078064, 45.107285623887805 ], "type" : "Point" }, "properties" : { "wpid":"7174","plink":"http://www.monferratopaesaggi.org/fontanella-13/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.376929014921188, 45.10727899820021 ], "type" : "Point" }, "properties" : { "wpid":"7172","plink":"http://www.monferratopaesaggi.org/complesso-edifici-novecento/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.376946449279785, 45.10627851054934 ], "type" : "Point" }, "properties" : { "wpid":"7169","plink":"http://www.monferratopaesaggi.org/fornace-calce-ex-bargero/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.37408185005188, 45.10431061281313 ], "type" : "Point" }, "properties" : { "wpid":"7167","plink":"http://www.monferratopaesaggi.org/punto-veduta-largo-pelegano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.375350534915924, 45.10378242092095 ], "type" : "Point" }, "properties" : { "wpid":"7165","plink":"http://www.monferratopaesaggi.org/castello-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.375984877347946, 45.10404841063879 ], "type" : "Point" }, "properties" : { "wpid":"7163","plink":"http://www.monferratopaesaggi.org/chiesetta-s-giovanni-battista/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.377175778150558, 45.10343596982159 ], "type" : "Point" }, "properties" : { "wpid":"7161","plink":"http://www.monferratopaesaggi.org/casa-massa-ex-calleri/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.377051055431366, 45.103009055875866 ], "type" : "Point" }, "properties" : { "wpid":"7159","plink":"http://www.monferratopaesaggi.org/palazzo-squassi/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45248281955719, 45.12933354426273 ], "type" : "Point" }, "properties" : { "wpid":"7149","plink":"http://www.monferratopaesaggi.org/parco-dei-cementieri/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.451624512672424, 45.13426850691779 ], "type" : "Point" }, "properties" : { "wpid":"7147","plink":"http://www.monferratopaesaggi.org/palazzo-langosco/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.449049592018127, 45.13885869848592 ], "type" : "Point" }, "properties" : { "wpid":"7145","plink":"http://www.monferratopaesaggi.org/palazzo-ardizzone-darco/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.455610275268555, 45.13528647905952 ], "type" : "Point" }, "properties" : { "wpid":"7143","plink":"http://www.monferratopaesaggi.org/ospizio-carita/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45445692539215, 45.139172770635014 ], "type" : "Point" }, "properties" : { "wpid":"7141","plink":"http://www.monferratopaesaggi.org/monastero-san-bartolomeo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45698893070221, 45.13767429036052 ], "type" : "Point" }, "properties" : { "wpid":"7139","plink":"http://www.monferratopaesaggi.org/chiesa-santissimo-crocefisso-beata-vergine-addolorata/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45283418893814, 45.13651918493831 ], "type" : "Point" }, "properties" : { "wpid":"7137","plink":"http://www.monferratopaesaggi.org/chiesa-san-michele-primi-500/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45497727394104, 45.13760996078033 ], "type" : "Point" }, "properties" : { "wpid":"7134","plink":"http://www.monferratopaesaggi.org/chiesa-san-filippo-1728/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45345914363861, 45.133996035455056 ], "type" : "Point" }, "properties" : { "wpid":"7132","plink":"http://www.monferratopaesaggi.org/chiesa-santantonio-abate/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.37555706501007, 45.103120754289776 ], "type" : "Point" }, "properties" : { "wpid":"7130","plink":"http://www.monferratopaesaggi.org/villa-braccio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.376157879829407, 45.10283866804388 ], "type" : "Point" }, "properties" : { "wpid":"7128","plink":"http://www.monferratopaesaggi.org/punto-veduta-20/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.376761376857758, 45.10269857100106 ], "type" : "Point" }, "properties" : { "wpid":"7126","plink":"http://www.monferratopaesaggi.org/casa-barbano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.376232981681824, 45.102404176770605 ], "type" : "Point" }, "properties" : { "wpid":"7124","plink":"http://www.monferratopaesaggi.org/casa-bonaria-simonetti/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.37612971663475, 45.10212871327021 ], "type" : "Point" }, "properties" : { "wpid":"7121","plink":"http://www.monferratopaesaggi.org/parcheggio-17/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.375118523836136, 45.102476118909195 ], "type" : "Point" }, "properties" : { "wpid":"7119","plink":"http://www.monferratopaesaggi.org/fontanella-12/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.373676836490631, 45.10200186708772 ], "type" : "Point" }, "properties" : { "wpid":"7114","plink":"http://www.monferratopaesaggi.org/info-point-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.375414907932281, 45.100988980744376 ], "type" : "Point" }, "properties" : { "wpid":"7112","plink":"http://www.monferratopaesaggi.org/museo-cavatore/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.375975489616394, 45.10204067826302 ], "type" : "Point" }, "properties" : { "wpid":"7110","plink":"http://www.monferratopaesaggi.org/wc-pubblico-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.376278579235077, 45.101925191273565 ], "type" : "Point" }, "properties" : { "wpid":"7108","plink":"http://www.monferratopaesaggi.org/municipio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.376380503177643, 45.10188070032186 ], "type" : "Point" }, "properties" : { "wpid":"7105","plink":"http://www.monferratopaesaggi.org/info-point/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.377056419849396, 45.100619793403105 ], "type" : "Point" }, "properties" : { "wpid":"7103","plink":"http://www.monferratopaesaggi.org/villa-ottocentesca/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.377281725406647, 45.10011428686368 ], "type" : "Point" }, "properties" : { "wpid":"7101","plink":"http://www.monferratopaesaggi.org/chiesa-s-maria-assunta/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167020678520203, 45.072247708319225 ], "type" : "Point" }, "properties" : { "wpid":"7098","plink":"http://www.monferratopaesaggi.org/ex-asilo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167803883552551, 45.07229032814372 ], "type" : "Point" }, "properties" : { "wpid":"7094","plink":"http://www.monferratopaesaggi.org/punto-veduta-19/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167837411165237, 45.072169098337326 ], "type" : "Point" }, "properties" : { "wpid":"7092","plink":"http://www.monferratopaesaggi.org/chiesa-ss-trinita/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167675137519836, 45.073176813287205 ], "type" : "Point" }, "properties" : { "wpid":"7090","plink":"http://www.monferratopaesaggi.org/villa-feltrinelli/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.168654143810272, 45.07241061058806 ], "type" : "Point" }, "properties" : { "wpid":"7088","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-dei-ss-remigio-grato-maria-assunta/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.169673383235931, 45.07284627716511 ], "type" : "Point" }, "properties" : { "wpid":"7086","plink":"http://www.monferratopaesaggi.org/parcheggio-16/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.16932201385498, 45.072479749201335 ], "type" : "Point" }, "properties" : { "wpid":"7084","plink":"http://www.monferratopaesaggi.org/punto-veduta-18/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.169312626123428, 45.07234810163281 ], "type" : "Point" }, "properties" : { "wpid":"7082","plink":"http://www.monferratopaesaggi.org/punto-veduta-17/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167453855276108, 45.07166333996469 ], "type" : "Point" }, "properties" : { "wpid":"7080","plink":"http://www.monferratopaesaggi.org/museo-labar/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167522251605988, 45.07166807555074 ], "type" : "Point" }, "properties" : { "wpid":"7078","plink":"http://www.monferratopaesaggi.org/palazzo-labar/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167487382888794, 45.071463497875996 ], "type" : "Point" }, "properties" : { "wpid":"7076","plink":"http://www.monferratopaesaggi.org/punto-veduta-16/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.165843188762665, 45.07087438585165 ], "type" : "Point" }, "properties" : { "wpid":"7074","plink":"http://www.monferratopaesaggi.org/chiesa-s-remigio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.16465362906456, 45.0706925365405 ], "type" : "Point" }, "properties" : { "wpid":"7072","plink":"http://www.monferratopaesaggi.org/punto-veduta-15/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.164775669574738, 45.070696325073705 ], "type" : "Point" }, "properties" : { "wpid":"7070","plink":"http://www.monferratopaesaggi.org/parcheggio-15/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.164693862199783, 45.07064233845164 ], "type" : "Point" }, "properties" : { "wpid":"7068","plink":"http://www.monferratopaesaggi.org/fontanella-11/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.160650432109833, 45.052200556180004 ], "type" : "Point" }, "properties" : { "wpid":"7066","plink":"http://www.monferratopaesaggi.org/parco-giochi/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.160781860351562, 45.05212002374667 ], "type" : "Point" }, "properties" : { "wpid":"7064","plink":"http://www.monferratopaesaggi.org/acqua-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.209482729434967, 45.078878023728755 ], "type" : "Point" }, "properties" : { "wpid":"7062","plink":"http://www.monferratopaesaggi.org/area-pic-nic/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.20942372083664, 45.07824637278429 ], "type" : "Point" }, "properties" : { "wpid":"7060","plink":"http://www.monferratopaesaggi.org/osservatorio-astronomico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.202058374881744, 45.07506623092613 ], "type" : "Point" }, "properties" : { "wpid":"7055","plink":"http://www.monferratopaesaggi.org/punto-veduta-14/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.204971253871918, 45.07179120065018 ], "type" : "Point" }, "properties" : { "wpid":"7049","plink":"http://www.monferratopaesaggi.org/fontanella-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.209477365016937, 45.071901065899546 ], "type" : "Point" }, "properties" : { "wpid":"7047","plink":"http://www.monferratopaesaggi.org/wc-pubblico-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.209536373615265, 45.0718859120846 ], "type" : "Point" }, "properties" : { "wpid":"7045","plink":"http://www.monferratopaesaggi.org/fontana/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.209779113531113, 45.071067600110815 ], "type" : "Point" }, "properties" : { "wpid":"6989","plink":"http://www.monferratopaesaggi.org/chiesa-s-pietro/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.218446671962738, 45.07123429424094 ], "type" : "Point" }, "properties" : { "wpid":"6987","plink":"http://www.monferratopaesaggi.org/punto-veduta-13/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.217105567455292, 45.07009015656458 ], "type" : "Point" }, "properties" : { "wpid":"6985","plink":"http://www.monferratopaesaggi.org/punto-veduta-12/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.162965178489685, 45.11446173851482 ], "type" : "Point" }, "properties" : { "wpid":"6983","plink":"http://www.monferratopaesaggi.org/fontanella-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167543709278107, 45.10993205131024 ], "type" : "Point" }, "properties" : { "wpid":"6979","plink":"http://www.monferratopaesaggi.org/castello-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.166618347167969, 45.109488149123386 ], "type" : "Point" }, "properties" : { "wpid":"6976","plink":"http://www.monferratopaesaggi.org/parcheggio-14/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167482018470764, 45.1096140321838 ], "type" : "Point" }, "properties" : { "wpid":"6954","plink":"http://www.monferratopaesaggi.org/punto-veduta-11/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.168206214904785, 45.10944934301119 ], "type" : "Point" }, "properties" : { "wpid":"6951","plink":"http://www.monferratopaesaggi.org/punto-panoramico-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.139214217662811, 45.1377840288887 ], "type" : "Point" }, "properties" : { "wpid":"6896","plink":"http://www.monferratopaesaggi.org/chiesa-s-filippo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.151415586471558, 45.143352035933006 ], "type" : "Point" }, "properties" : { "wpid":"6893","plink":"http://www.monferratopaesaggi.org/punto-veduta-case-curto/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.161943256855011, 45.14199555832339 ], "type" : "Point" }, "properties" : { "wpid":"6891","plink":"http://www.monferratopaesaggi.org/fontanella-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.179108053445816, 45.13361949288822 ], "type" : "Point" }, "properties" : { "wpid":"6885","plink":"http://www.monferratopaesaggi.org/monastero-s-liberata/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.17582905292511, 45.14085662193237 ], "type" : "Point" }, "properties" : { "wpid":"6879","plink":"http://www.monferratopaesaggi.org/punto-veduta-borgata-monterizzolo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.169665336608887, 45.13455327604831 ], "type" : "Point" }, "properties" : { "wpid":"6864","plink":"http://www.monferratopaesaggi.org/fontanella-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.169580847024918, 45.134812499867614 ], "type" : "Point" }, "properties" : { "wpid":"6861","plink":"http://www.monferratopaesaggi.org/punto-veduta-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167271465063095, 45.13343878941677 ], "type" : "Point" }, "properties" : { "wpid":"6859","plink":"http://www.monferratopaesaggi.org/parcheggio-13/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.160567283630371, 45.13027969748921 ], "type" : "Point" }, "properties" : { "wpid":"6856","plink":"http://www.monferratopaesaggi.org/punto-panoramico-colle-monte-croce/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.100952506065369, 45.10200754677355 ], "type" : "Point" }, "properties" : { "wpid":"6854","plink":"http://www.monferratopaesaggi.org/punto-veduta-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.100866675376892, 45.102062450374206 ], "type" : "Point" }, "properties" : { "wpid":"6852","plink":"http://www.monferratopaesaggi.org/parcheggio-12/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.09837356209755, 45.101631739675625 ], "type" : "Point" }, "properties" : { "wpid":"6845","plink":"http://www.monferratopaesaggi.org/punto-panoramico-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.097425401210785, 45.10101169988739 ], "type" : "Point" }, "properties" : { "wpid":"6843","plink":"http://www.monferratopaesaggi.org/casale-armanda/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.096730709075928, 45.10035946756066 ], "type" : "Point" }, "properties" : { "wpid":"6841","plink":"http://www.monferratopaesaggi.org/parco-giochi-panchine/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.095987737178802, 45.09959362938214 ], "type" : "Point" }, "properties" : { "wpid":"6839","plink":"http://www.monferratopaesaggi.org/punto-panoramico-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.105936050415039, 45.09659833666965 ], "type" : "Point" }, "properties" : { "wpid":"6836","plink":"http://www.monferratopaesaggi.org/punt-panoramico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.169745802879333, 45.1345674671638 ], "type" : "Point" }, "properties" : { "wpid":"6774","plink":"http://www.monferratopaesaggi.org/parcheggio-11/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.097100853919983, 45.10037366718268 ], "type" : "Point" }, "properties" : { "wpid":"6737","plink":"http://www.monferratopaesaggi.org/edificio-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.119628727436066, 45.10032444181126 ], "type" : "Point" }, "properties" : { "wpid":"6706","plink":"http://www.monferratopaesaggi.org/chiesa-s-luigi/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.119634091854095, 45.100217471146316 ], "type" : "Point" }, "properties" : { "wpid":"6704","plink":"http://www.monferratopaesaggi.org/parcheggio-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.120293915271759, 45.097590473782454 ], "type" : "Point" }, "properties" : { "wpid":"6702","plink":"http://www.monferratopaesaggi.org/chiesa-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.120021671056747, 45.09731214698091 ], "type" : "Point" }, "properties" : { "wpid":"6700","plink":"http://www.monferratopaesaggi.org/parcheggio-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.120119571685791, 45.097381255462984 ], "type" : "Point" }, "properties" : { "wpid":"6698","plink":"http://www.monferratopaesaggi.org/punto-veduta-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.137183785438538, 45.08389026259413 ], "type" : "Point" }, "properties" : { "wpid":"6695","plink":"http://www.monferratopaesaggi.org/wc-pubblico-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.135009855031967, 45.081595842432236 ], "type" : "Point" }, "properties" : { "wpid":"6692","plink":"http://www.monferratopaesaggi.org/fontanella-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.135150671005249, 45.081473685411716 ], "type" : "Point" }, "properties" : { "wpid":"6690","plink":"http://www.monferratopaesaggi.org/wc-pubblico-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.139349669218063, 45.0858475015544 ], "type" : "Point" }, "properties" : { "wpid":"6684","plink":"http://www.monferratopaesaggi.org/punto-panoramico-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.139721155166626, 45.0855473391201 ], "type" : "Point" }, "properties" : { "wpid":"6681","plink":"http://www.monferratopaesaggi.org/chiesa-s-michele/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.13968226313591, 45.08516952990247 ], "type" : "Point" }, "properties" : { "wpid":"6674","plink":"http://www.monferratopaesaggi.org/casa-cormanni/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.139833807945251, 45.08553029514906 ], "type" : "Point" }, "properties" : { "wpid":"6672","plink":"http://www.monferratopaesaggi.org/punto-veduta-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.140954971313477, 45.08560983363706 ], "type" : "Point" }, "properties" : { "wpid":"6665","plink":"http://www.monferratopaesaggi.org/castello-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.140563368797302, 45.085317245082045 ], "type" : "Point" }, "properties" : { "wpid":"6662","plink":"http://www.monferratopaesaggi.org/punto-panoramico-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.140865117311478, 45.085289785237826 ], "type" : "Point" }, "properties" : { "wpid":"6659","plink":"http://www.monferratopaesaggi.org/punto-panoramico-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.141350597143173, 45.08525001578485 ], "type" : "Point" }, "properties" : { "wpid":"6654","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-s-antonio-abate/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.141952753067017, 45.08491481500974 ], "type" : "Point" }, "properties" : { "wpid":"6641","plink":"http://www.monferratopaesaggi.org/punto-veduta-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.142345696687698, 45.08486747010899 ], "type" : "Point" }, "properties" : { "wpid":"6637","plink":"http://www.monferratopaesaggi.org/ex-municipio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.14018115401268, 45.08480876237753 ], "type" : "Point" }, "properties" : { "wpid":"6635","plink":"http://www.monferratopaesaggi.org/edificio-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.441889435052872, 45.13582951624541 ], "type" : "Point" }, "properties" : { "wpid":"6630","plink":"http://www.monferratopaesaggi.org/architettura-primi-900/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.138870894908905, 45.08498299159792 ], "type" : "Point" }, "properties" : { "wpid":"6624","plink":"http://www.monferratopaesaggi.org/ex-asilo-lavazza-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.13860535621643, 45.084511435198195 ], "type" : "Point" }, "properties" : { "wpid":"6613","plink":"http://www.monferratopaesaggi.org/parcheggio-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.13724547624588, 45.08374633139285 ], "type" : "Point" }, "properties" : { "wpid":"6610","plink":"http://www.monferratopaesaggi.org/parcheggio-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.135169446468353, 45.081557017361014 ], "type" : "Point" }, "properties" : { "wpid":"6606","plink":"http://www.monferratopaesaggi.org/parcheggio-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.189352750778198, 45.15430672714695 ], "type" : "Point" }, "properties" : { "wpid":"6589","plink":"http://www.monferratopaesaggi.org/chiesa-san-pietro/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.13495084643364, 45.0805560789776 ], "type" : "Point" }, "properties" : { "wpid":"6587","plink":"http://www.monferratopaesaggi.org/chiesa-madonna-neve/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.135662972927094, 45.07976724763159 ], "type" : "Point" }, "properties" : { "wpid":"6572","plink":"http://www.monferratopaesaggi.org/casetta-dellacqua/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.135968744754791, 45.07977103556323 ], "type" : "Point" }, "properties" : { "wpid":"6567","plink":"http://www.monferratopaesaggi.org/parcheggio-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.135913693822658, 45.07848771138267 ], "type" : "Point" }, "properties" : { "wpid":"6561","plink":"http://www.monferratopaesaggi.org/punto-veduta-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.136177957057953, 45.07852100448768 ], "type" : "Point" }, "properties" : { "wpid":"6555","plink":"http://www.monferratopaesaggi.org/torre-romanica-s-pietro/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.13686728477478, 45.07858540069607 ], "type" : "Point" }, "properties" : { "wpid":"6546","plink":"http://www.monferratopaesaggi.org/ex-cava-gesso/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.28392744064331, 45.15986744653748 ], "type" : "Point" }, "properties" : { "wpid":"6527","plink":"http://www.monferratopaesaggi.org/punto-panoramico-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.192328661680222, 45.15877898788882 ], "type" : "Point" }, "properties" : { "wpid":"6520","plink":"http://www.monferratopaesaggi.org/punto-panoramico-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.158743381500244, 45.155040621876374 ], "type" : "Point" }, "properties" : { "wpid":"6480","plink":"http://www.monferratopaesaggi.org/parcheggio-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.160889148712158, 45.15466421828598 ], "type" : "Point" }, "properties" : { "wpid":"6476","plink":"http://www.monferratopaesaggi.org/edificio-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.162442147731781, 45.1548022962737 ], "type" : "Point" }, "properties" : { "wpid":"6473","plink":"http://www.monferratopaesaggi.org/banco-arenaria/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.176743686199188, 45.15910524396654 ], "type" : "Point" }, "properties" : { "wpid":"6471","plink":"http://www.monferratopaesaggi.org/fontanella-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.183905184268951, 45.15778129466892 ], "type" : "Point" }, "properties" : { "wpid":"6469","plink":"http://www.monferratopaesaggi.org/cascina/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.189874440431595, 45.156384494812926 ], "type" : "Point" }, "properties" : { "wpid":"6466","plink":"http://www.monferratopaesaggi.org/parco-storico-basso-monferrato/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.19265991449356, 45.15976909839159 ], "type" : "Point" }, "properties" : { "wpid":"6463","plink":"http://www.monferratopaesaggi.org/castello-gabiano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.192844986915588, 45.159127939972045 ], "type" : "Point" }, "properties" : { "wpid":"6461","plink":"http://www.monferratopaesaggi.org/edifici/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.192968368530273, 45.15843759909436 ], "type" : "Point" }, "properties" : { "wpid":"6459","plink":"http://www.monferratopaesaggi.org/edificio-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.193220496177673, 45.158688203256695 ], "type" : "Point" }, "properties" : { "wpid":"6457","plink":"http://www.monferratopaesaggi.org/punto-panoramico-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.193530291318893, 45.15864281088638 ], "type" : "Point" }, "properties" : { "wpid":"6455","plink":"http://www.monferratopaesaggi.org/villa-novecento-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.194765448570251, 45.15865510465693 ], "type" : "Point" }, "properties" : { "wpid":"6453","plink":"http://www.monferratopaesaggi.org/punto-panoramico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.194859325885773, 45.15857945064236 ], "type" : "Point" }, "properties" : { "wpid":"6451","plink":"http://www.monferratopaesaggi.org/parcheggio-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.195360898971558, 45.158223875428476 ], "type" : "Point" }, "properties" : { "wpid":"6449","plink":"http://www.monferratopaesaggi.org/villa-novecento/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.332498222589493, 45.14357905832152 ], "type" : "Point" }, "properties" : { "wpid":"6441","plink":"http://www.monferratopaesaggi.org/museo-colombotto-rosso/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.332574665546417, 45.14360932790502 ], "type" : "Point" }, "properties" : { "wpid":"6439","plink":"http://www.monferratopaesaggi.org/museo-dei-giocattoli/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.33261489868164, 45.141847989774966 ], "type" : "Point" }, "properties" : { "wpid":"6437","plink":"http://www.monferratopaesaggi.org/edificio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.333011865615845, 45.142846907875054 ], "type" : "Point" }, "properties" : { "wpid":"6435","plink":"http://www.monferratopaesaggi.org/chiesa-oratorio-s-giacomo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.369699120521545, 45.15134078825457 ], "type" : "Point" }, "properties" : { "wpid":"6433","plink":"http://www.monferratopaesaggi.org/acqua/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367290496826172, 45.14796703428586 ], "type" : "Point" }, "properties" : { "wpid":"6431","plink":"http://www.monferratopaesaggi.org/wc-pubblico-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367494344711304, 45.14797081769344 ], "type" : "Point" }, "properties" : { "wpid":"6429","plink":"http://www.monferratopaesaggi.org/fontanella-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.372043371200562, 45.147164000344745 ], "type" : "Point" }, "properties" : { "wpid":"6424","plink":"http://www.monferratopaesaggi.org/fontanella/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.374256193637848, 45.147587746401925 ], "type" : "Point" }, "properties" : { "wpid":"6422","plink":"http://www.monferratopaesaggi.org/wc-pubblico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.291845321655273, 45.15976909839159 ], "type" : "Point" }, "properties" : { "wpid":"6417","plink":"http://www.monferratopaesaggi.org/cornale/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.4309983253479, 45.13538865369851 ], "type" : "Point" }, "properties" : { "wpid":"6352","plink":"http://www.monferratopaesaggi.org/area-ex-eternit/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.214206099510193, 45.12105592662694 ], "type" : "Point" }, "properties" : { "wpid":"6337","plink":"http://www.monferratopaesaggi.org/chiesa/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.215850293636322, 45.12083543867924 ], "type" : "Point" }, "properties" : { "wpid":"6335","plink":"http://www.monferratopaesaggi.org/punto-veduta-4/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.215823471546173, 45.12075121773613 ], "type" : "Point" }, "properties" : { "wpid":"6333","plink":"http://www.monferratopaesaggi.org/parcheggio-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.215174376964569, 45.12022223166644 ], "type" : "Point" }, "properties" : { "wpid":"6331","plink":"http://www.monferratopaesaggi.org/municipio-info-point/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.21545735001564, 45.12020898329405 ], "type" : "Point" }, "properties" : { "wpid":"6329","plink":"http://www.monferratopaesaggi.org/casaforte/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.21579396724701, 45.120359446771 ], "type" : "Point" }, "properties" : { "wpid":"6326","plink":"http://www.monferratopaesaggi.org/chke/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.447622656822205, 45.12686211799634 ], "type" : "Point" }, "properties" : { "wpid":"6304","plink":"http://www.monferratopaesaggi.org/furnasetta/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.458560705184937, 45.12753202512801 ], "type" : "Point" }, "properties" : { "wpid":"6302","plink":"http://www.monferratopaesaggi.org/cittadella/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.454934358596802, 45.13046892625109 ], "type" : "Point" }, "properties" : { "wpid":"6300","plink":"http://www.monferratopaesaggi.org/paraboloide/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.447762131690979, 45.14021525072857 ], "type" : "Point" }, "properties" : { "wpid":"6294","plink":"http://www.monferratopaesaggi.org/palazzo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.447983413934708, 45.140020378402745 ], "type" : "Point" }, "properties" : { "wpid":"6292","plink":"http://www.monferratopaesaggi.org/ex-panificio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.448132276535034, 45.13950576090363 ], "type" : "Point" }, "properties" : { "wpid":"6290","plink":"http://www.monferratopaesaggi.org/chiesa-s-ilario/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.447933793067932, 45.138919242649266 ], "type" : "Point" }, "properties" : { "wpid":"6288","plink":"http://www.monferratopaesaggi.org/palazzo-scoria-calliano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.447949886322021, 45.138716797851174 ], "type" : "Point" }, "properties" : { "wpid":"6286","plink":"http://www.monferratopaesaggi.org/palazzo-grisella/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.448440730571747, 45.13745670472327 ], "type" : "Point" }, "properties" : { "wpid":"6284","plink":"http://www.monferratopaesaggi.org/punto-informazioni/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.448397815227509, 45.13782186971153 ], "type" : "Point" }, "properties" : { "wpid":"6282","plink":"http://www.monferratopaesaggi.org/teatro-municipale/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.4486123919487, 45.13772348351998 ], "type" : "Point" }, "properties" : { "wpid":"6280","plink":"http://www.monferratopaesaggi.org/palazzo-sacchi-nemour-frassinello/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.449883759021759, 45.1372703372347 ], "type" : "Point" }, "properties" : { "wpid":"6278","plink":"http://www.monferratopaesaggi.org/chiesa-s-stefano/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.450168073177338, 45.13732426088537 ], "type" : "Point" }, "properties" : { "wpid":"6276","plink":"http://www.monferratopaesaggi.org/torre-civica/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.448411226272583, 45.1365428359801 ], "type" : "Point" }, "properties" : { "wpid":"6274","plink":"http://www.monferratopaesaggi.org/chiesa-s-caterina/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.4479458630085, 45.13598656087873 ], "type" : "Point" }, "properties" : { "wpid":"6272","plink":"http://www.monferratopaesaggi.org/palazzo-anna-dalencon/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.449911922216415, 45.13651918493831 ], "type" : "Point" }, "properties" : { "wpid":"6270","plink":"http://www.monferratopaesaggi.org/palazzo-vitta/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.450206965208054, 45.13593358201463 ], "type" : "Point" }, "properties" : { "wpid":"6268","plink":"http://www.monferratopaesaggi.org/edificio-settecento/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.449814021587372, 45.13551447962277 ], "type" : "Point" }, "properties" : { "wpid":"6266","plink":"http://www.monferratopaesaggi.org/sinagoga-museo-israelitico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.450925797224045, 45.1350556393863 ], "type" : "Point" }, "properties" : { "wpid":"6264","plink":"http://www.monferratopaesaggi.org/santa-croce/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.451628535985947, 45.13495535628631 ], "type" : "Point" }, "properties" : { "wpid":"6262","plink":"http://www.monferratopaesaggi.org/museo-civico-gipsoteca/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.451471626758575, 45.13518051998129 ], "type" : "Point" }, "properties" : { "wpid":"6260","plink":"http://www.monferratopaesaggi.org/palazzo-gaspardoni/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45185250043869, 45.1351010505434 ], "type" : "Point" }, "properties" : { "wpid":"6258","plink":"http://www.monferratopaesaggi.org/dimora-governatore-gonzaga/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45272958278656, 45.13393927040312 ], "type" : "Point" }, "properties" : { "wpid":"6256","plink":"http://www.monferratopaesaggi.org/scuola-leardi/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.453432321548462, 45.13461666300346 ], "type" : "Point" }, "properties" : { "wpid":"6254","plink":"http://www.monferratopaesaggi.org/ex-convento-francescani/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.455730974674225, 45.13612657621121 ], "type" : "Point" }, "properties" : { "wpid":"6250","plink":"http://www.monferratopaesaggi.org/parcheggio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.452856987714767, 45.135026311328126 ], "type" : "Point" }, "properties" : { "wpid":"6247","plink":"http://www.monferratopaesaggi.org/palazzo-s-giorgio/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.453185558319092, 45.135138893146674 ], "type" : "Point" }, "properties" : { "wpid":"6245","plink":"http://www.monferratopaesaggi.org/chiesa-s-paolo-dei-barnabiti-convento/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.453027307987213, 45.135566512818556 ], "type" : "Point" }, "properties" : { "wpid":"6243","plink":"http://www.monferratopaesaggi.org/palazzo-magnacavalli/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.453381359577179, 45.135941150426795 ], "type" : "Point" }, "properties" : { "wpid":"6241","plink":"http://www.monferratopaesaggi.org/palazzo-treville/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.453603982925415, 45.13717100406048 ], "type" : "Point" }, "properties" : { "wpid":"6239","plink":"http://www.monferratopaesaggi.org/palazzo-vescovado/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45240905880928, 45.137303448254315 ], "type" : "Point" }, "properties" : { "wpid":"6237","plink":"http://www.monferratopaesaggi.org/duomo-s-evasio-museo-sacrestia/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.452665209770203, 45.13818324830433 ], "type" : "Point" }, "properties" : { "wpid":"6235","plink":"http://www.monferratopaesaggi.org/chiesa-dei-santi-pietro-paolo/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.452042937278748, 45.13819081641791 ], "type" : "Point" }, "properties" : { "wpid":"6233","plink":"http://www.monferratopaesaggi.org/palazzo-rosa-rossa/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.451839089393616, 45.13847556596163 ], "type" : "Point" }, "properties" : { "wpid":"6231","plink":"http://www.monferratopaesaggi.org/casa-taricco/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45173716545105, 45.138802884278384 ], "type" : "Point" }, "properties" : { "wpid":"6229","plink":"http://www.monferratopaesaggi.org/confraternita-misericordia/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.451995998620987, 45.13900722077203 ], "type" : "Point" }, "properties" : { "wpid":"6227","plink":"http://www.monferratopaesaggi.org/chiesa-san-domenico/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.452276289463043, 45.13919547457874 ], "type" : "Point" }, "properties" : { "wpid":"6225","plink":"http://www.monferratopaesaggi.org/chiostro/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.451073318719864, 45.13911128074203 ], "type" : "Point" }, "properties" : { "wpid":"6223","plink":"http://www.monferratopaesaggi.org/palazzo-misericordia/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45161110162735, 45.139237098452085 ], "type" : "Point" }, "properties" : { "wpid":"6221","plink":"http://www.monferratopaesaggi.org/santa-rita/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.45099151134491, 45.13954360058383 ], "type" : "Point" }, "properties" : { "wpid":"6219","plink":"http://www.monferratopaesaggi.org/palazzo-morelli/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.450707197189331, 45.13969495905352 ], "type" : "Point" }, "properties" : { "wpid":"6217","plink":"http://www.monferratopaesaggi.org/ex-ospedale/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.26073169708252, 45.08492996536971 ], "type" : "Point" }, "properties" : { "wpid":"6214","plink":"http://www.monferratopaesaggi.org/punto-veduta-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.260482251644135, 45.085454544105154 ], "type" : "Point" }, "properties" : { "wpid":"6210","plink":"http://www.monferratopaesaggi.org/punto-veduta-2/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.260581493377686, 45.085702628399744 ], "type" : "Point" }, "properties" : { "wpid":"6206","plink":"http://www.monferratopaesaggi.org/villa-vittorio-veneto-castello-dei-conti-cavallero/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.44624936580658, 45.13748130140211 ], "type" : "Point" }, "properties" : { "wpid":"6168","plink":"http://www.monferratopaesaggi.org/castello/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.37632954120636, 45.10309992917832 ], "type" : "Point" }, "properties" : { "wpid":"6035","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-san-salvatore/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.168753385543823, 45.07230074631803 ], "type" : "Point" }, "properties" : { "wpid":"6003","plink":"http://www.monferratopaesaggi.org/punto-veduta/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.311361, 45.056145 ], "type" : "Point" }, "properties" : { "wpid":"5893","plink":"http://www.monferratopaesaggi.org/punto-panoramico-28/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.321738958335914, 45.05235862431945 ], "type" : "Point" }, "properties" : { "wpid":"5894","plink":"http://www.monferratopaesaggi.org/cippo-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.32470255092619, 45.050354832798725 ], "type" : "Point" }, "properties" : { "wpid":"5896","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-149/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.457997, 45.048241 ], "type" : "Point" }, "properties" : { "wpid":"5904","plink":"http://www.monferratopaesaggi.org/punto-panoramico-29/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.454194, 45.022743 ], "type" : "Point" }, "properties" : { "wpid":"5906","plink":"http://www.monferratopaesaggi.org/punto-panoramico-del-cimitero-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.444278, 45.022266 ], "type" : "Point" }, "properties" : { "wpid":"5908","plink":"http://www.monferratopaesaggi.org/castello-dei-primi-del-900-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.362972, 45.041512 ], "type" : "Point" }, "properties" : { "wpid":"5912","plink":"http://www.monferratopaesaggi.org/punto-panoramico-30/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.345882, 45.051308 ], "type" : "Point" }, "properties" : { "wpid":"5915","plink":"http://www.monferratopaesaggi.org/fontanella-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.395464, 45.010170 ], "type" : "Point" }, "properties" : { "wpid":"5863","plink":"http://www.monferratopaesaggi.org/punto-belvedere-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.395368, 45.009480 ], "type" : "Point" }, "properties" : { "wpid":"5864","plink":"http://www.monferratopaesaggi.org/casa-particolare-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.394306, 45.009838 ], "type" : "Point" }, "properties" : { "wpid":"5866","plink":"http://www.monferratopaesaggi.org/visuale-panoramica-piazza-italia-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.412995, 45.016552 ], "type" : "Point" }, "properties" : { "wpid":"5867","plink":"http://www.monferratopaesaggi.org/punto-panoramico-regione-san-bernardo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.427919, 45.011669 ], "type" : "Point" }, "properties" : { "wpid":"5868","plink":"http://www.monferratopaesaggi.org/monumento-ai-caduti-di-camagna-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.427329, 45.013538 ], "type" : "Point" }, "properties" : { "wpid":"5869","plink":"http://www.monferratopaesaggi.org/visuale-panoramica-ingresso-camagna-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.428665, 45.018024 ], "type" : "Point" }, "properties" : { "wpid":"5871","plink":"http://www.monferratopaesaggi.org/visuale-panoramica-da-zona-bar-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.486391, 45.002941 ], "type" : "Point" }, "properties" : { "wpid":"5879","plink":"http://www.monferratopaesaggi.org/scorcio-panoramico-chiesa-s-giacomo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.485544, 45.003006 ], "type" : "Point" }, "properties" : { "wpid":"5880","plink":"http://www.monferratopaesaggi.org/punto-panoramico-terrazza-mephisto-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.485125, 45.002983 ], "type" : "Point" }, "properties" : { "wpid":"5881","plink":"http://www.monferratopaesaggi.org/punto-panoramico-stradina-dissestata-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.483865, 45.000870 ], "type" : "Point" }, "properties" : { "wpid":"5886","plink":"http://www.monferratopaesaggi.org/punto-semi-panoramico-chiesa-san-nazario-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.483398, 45.000481 ], "type" : "Point" }, "properties" : { "wpid":"5887","plink":"http://www.monferratopaesaggi.org/antico-monastero-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.263441, 45.051407 ], "type" : "Point" }, "properties" : { "wpid":"5833","plink":"http://www.monferratopaesaggi.org/municipio-ex-convento-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.261187440475396, 45.05226510246632 ], "type" : "Point" }, "properties" : { "wpid":"5834","plink":"http://www.monferratopaesaggi.org/belvedere-di-fronte-a-casa-ferraris-e-acquedotto-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.269165, 45.047649 ], "type" : "Point" }, "properties" : { "wpid":"5836","plink":"http://www.monferratopaesaggi.org/punto-panoramico-cimitero-moncalvo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.313662, 45.039555 ], "type" : "Point" }, "properties" : { "wpid":"5839","plink":"http://www.monferratopaesaggi.org/visuale-panoramica-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.313925, 45.039478 ], "type" : "Point" }, "properties" : { "wpid":"5840","plink":"http://www.monferratopaesaggi.org/visuale-panoramica-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.314011, 45.039989 ], "type" : "Point" }, "properties" : { "wpid":"5842","plink":"http://www.monferratopaesaggi.org/visuale-panoramica-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.316468, 45.053471 ], "type" : "Point" }, "properties" : { "wpid":"5844","plink":"http://www.monferratopaesaggi.org/visuale-panoramica-zona-madonna-dei-monti-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.270237, 45.052013 ], "type" : "Point" }, "properties" : { "wpid":"5847","plink":"http://www.monferratopaesaggi.org/cantina-sociale-moncalvo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.333736, 45.023037 ], "type" : "Point" }, "properties" : { "wpid":"5850","plink":"http://www.monferratopaesaggi.org/punto-panoramico-sotto-chiesa-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.334696, 45.022442 ], "type" : "Point" }, "properties" : { "wpid":"5851","plink":"http://www.monferratopaesaggi.org/punto-panoramico-piazza-del-popolo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.333875262565584, 45.0236630417558 ], "type" : "Point" }, "properties" : { "wpid":"5852","plink":"http://www.monferratopaesaggi.org/punto-panoramico-torrione-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.33425071163947, 45.02283941578076 ], "type" : "Point" }, "properties" : { "wpid":"5854","plink":"http://www.monferratopaesaggi.org/municipio-casorzo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.333929, 45.023136 ], "type" : "Point" }, "properties" : { "wpid":"5855","plink":"http://www.monferratopaesaggi.org/punto-panoramico-sotto-chiesa-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.334058, 45.022972 ], "type" : "Point" }, "properties" : { "wpid":"5856","plink":"http://www.monferratopaesaggi.org/punto-panoramico-vicino-municipio-casorzo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.340039, 45.022579 ], "type" : "Point" }, "properties" : { "wpid":"5857","plink":"http://www.monferratopaesaggi.org/visuale-panoramica-parco-rimembranza-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396401, 45.011616 ], "type" : "Point" }, "properties" : { "wpid":"5860","plink":"http://www.monferratopaesaggi.org/punto-panoramico-da-chiesa-di-vignale-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396301067459035, 45.01004090408682 ], "type" : "Point" }, "properties" : { "wpid":"5861","plink":"http://www.monferratopaesaggi.org/enoteca-regionale-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.396569, 45.010151 ], "type" : "Point" }, "properties" : { "wpid":"5862","plink":"http://www.monferratopaesaggi.org/parco-giochi-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.434448, 45.134987 ], "type" : "Point" }, "properties" : { "wpid":"5808","plink":"http://www.monferratopaesaggi.org/segnaposto-43-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.446727, 45.136738 ], "type" : "Point" }, "properties" : { "wpid":"5810","plink":"http://www.monferratopaesaggi.org/parcheggio-44/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.439367, 45.135757 ], "type" : "Point" }, "properties" : { "wpid":"5812","plink":"http://www.monferratopaesaggi.org/edificio-primi-900-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.417351, 45.136932 ], "type" : "Point" }, "properties" : { "wpid":"5813","plink":"http://www.monferratopaesaggi.org/diga-e-veduta-sul-po-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.436457, 45.135078 ], "type" : "Point" }, "properties" : { "wpid":"5815","plink":"http://www.monferratopaesaggi.org/edificio-scolatstico-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.431775, 45.134209 ], "type" : "Point" }, "properties" : { "wpid":"5816","plink":"http://www.monferratopaesaggi.org/palazzina-primi-900-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.161596787696908, 45.050290735402484 ], "type" : "Point" }, "properties" : { "wpid":"5817","plink":"http://www.monferratopaesaggi.org/punto-panoramico-chiesa-s-giorgio-zanco-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.19979690674586, 45.040513284114816 ], "type" : "Point" }, "properties" : { "wpid":"5818","plink":"http://www.monferratopaesaggi.org/castello-di-razzano-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.223191440475489, 45.03452665491 ], "type" : "Point" }, "properties" : { "wpid":"5819","plink":"http://www.monferratopaesaggi.org/punto-panoramico-cimitero-di-sanico-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.225048, 45.029392 ], "type" : "Point" }, "properties" : { "wpid":"5820","plink":"http://www.monferratopaesaggi.org/punto-panoramico-pratone-frazione-castelmerlino-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.206015, 45.051991 ], "type" : "Point" }, "properties" : { "wpid":"5821","plink":"http://www.monferratopaesaggi.org/punto-panoramico-belvedere-alfiano-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.264020, 45.050137 ], "type" : "Point" }, "properties" : { "wpid":"5823","plink":"http://www.monferratopaesaggi.org/visuale-panoramica-in-fondo-a-via-testafochi-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.266410, 45.052124 ], "type" : "Point" }, "properties" : { "wpid":"5829","plink":"http://www.monferratopaesaggi.org/portici-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.390942, 45.139374 ], "type" : "Point" }, "properties" : { "wpid":"5784","plink":"http://www.monferratopaesaggi.org/villa-sordi-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.387765, 45.139820 ], "type" : "Point" }, "properties" : { "wpid":"5785","plink":"http://www.monferratopaesaggi.org/reperto-di-archeologia-industriale-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.374507, 45.147423 ], "type" : "Point" }, "properties" : { "wpid":"5786","plink":"http://www.monferratopaesaggi.org/area-verde-coniolo-fiori-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.372561, 45.147640 ], "type" : "Point" }, "properties" : { "wpid":"5787","plink":"http://www.monferratopaesaggi.org/parcheggio-40/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.372273, 45.147194 ], "type" : "Point" }, "properties" : { "wpid":"5788","plink":"http://www.monferratopaesaggi.org/totem-percorso-cemento-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.354201, 45.127647 ], "type" : "Point" }, "properties" : { "wpid":"5791","plink":"http://www.monferratopaesaggi.org/parcheggio-41/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.334011, 45.134472 ], "type" : "Point" }, "properties" : { "wpid":"5792","plink":"http://www.monferratopaesaggi.org/cascina-bagiana-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.335336, 45.139297 ], "type" : "Point" }, "properties" : { "wpid":"5793","plink":"http://www.monferratopaesaggi.org/ex-mulino-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.335630, 45.141464 ], "type" : "Point" }, "properties" : { "wpid":"5794","plink":"http://www.monferratopaesaggi.org/edificio-25/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.335140, 45.142197 ], "type" : "Point" }, "properties" : { "wpid":"5795","plink":"http://www.monferratopaesaggi.org/monumento-ai-caduti-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.334981, 45.142315 ], "type" : "Point" }, "properties" : { "wpid":"5796","plink":"http://www.monferratopaesaggi.org/edificio-26/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.333173, 45.143929 ], "type" : "Point" }, "properties" : { "wpid":"5798","plink":"http://www.monferratopaesaggi.org/parcheggio-42/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.332725, 45.143623 ], "type" : "Point" }, "properties" : { "wpid":"5799","plink":"http://www.monferratopaesaggi.org/municipio-41/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.372113, 45.146816 ], "type" : "Point" }, "properties" : { "wpid":"5800","plink":"http://www.monferratopaesaggi.org/museo-coniolo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.368048, 45.147926 ], "type" : "Point" }, "properties" : { "wpid":"5802","plink":"http://www.monferratopaesaggi.org/parcheggio-43/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.357686, 45.143227 ], "type" : "Point" }, "properties" : { "wpid":"5803","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-148/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.262191, 45.156410 ], "type" : "Point" }, "properties" : { "wpid":"5761","plink":"http://www.monferratopaesaggi.org/edificio-24/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.249602, 45.169041 ], "type" : "Point" }, "properties" : { "wpid":"5762","plink":"http://www.monferratopaesaggi.org/parcheggio-38/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.253254, 45.160923 ], "type" : "Point" }, "properties" : { "wpid":"5763","plink":"http://www.monferratopaesaggi.org/sosta-per-veduta-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.290599, 45.161610 ], "type" : "Point" }, "properties" : { "wpid":"5764","plink":"http://www.monferratopaesaggi.org/parcheggio-39/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.225635, 45.160011 ], "type" : "Point" }, "properties" : { "wpid":"5766","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-146/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.333530, 45.143593 ], "type" : "Point" }, "properties" : { "wpid":"5769","plink":"http://www.monferratopaesaggi.org/teatro-verdi-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.339782, 45.140995 ], "type" : "Point" }, "properties" : { "wpid":"5771","plink":"http://www.monferratopaesaggi.org/laghetto-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.363973, 45.146652 ], "type" : "Point" }, "properties" : { "wpid":"5772","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-147/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.368160, 45.147938 ], "type" : "Point" }, "properties" : { "wpid":"5774","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-con-belvedere-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.196552, 45.158112 ], "type" : "Point" }, "properties" : { "wpid":"5744","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-142/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.295411, 45.151470 ], "type" : "Point" }, "properties" : { "wpid":"5751","plink":"http://www.monferratopaesaggi.org/reperto-archeologia-industriale-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.291832, 45.159294 ], "type" : "Point" }, "properties" : { "wpid":"5752","plink":"http://www.monferratopaesaggi.org/residenza-primi-900-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.29219291534423, 45.16015626079647 ], "type" : "Point" }, "properties" : { "wpid":"5753","plink":"http://www.monferratopaesaggi.org/scorcio-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.290995, 45.163815 ], "type" : "Point" }, "properties" : { "wpid":"5754","plink":"http://www.monferratopaesaggi.org/scorcio-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.277156, 45.168941 ], "type" : "Point" }, "properties" : { "wpid":"5755","plink":"http://www.monferratopaesaggi.org/edificio-residenziale-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.291682, 45.159950 ], "type" : "Point" }, "properties" : { "wpid":"5756","plink":"http://www.monferratopaesaggi.org/parcheggio-36/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.287288, 45.162075 ], "type" : "Point" }, "properties" : { "wpid":"5757","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-143/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.287393, 45.162201 ], "type" : "Point" }, "properties" : { "wpid":"5758","plink":"http://www.monferratopaesaggi.org/parcheggio-37/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.283887, 45.162788 ], "type" : "Point" }, "properties" : { "wpid":"5759","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-144/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.276997, 45.162365 ], "type" : "Point" }, "properties" : { "wpid":"5760","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-145/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.277302, 45.168671 ], "type" : "Point" }, "properties" : { "wpid":"5721","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-140/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265039, 45.172134 ], "type" : "Point" }, "properties" : { "wpid":"5726","plink":"http://www.monferratopaesaggi.org/parrocchiale-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265055, 45.172287 ], "type" : "Point" }, "properties" : { "wpid":"5727","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-parrocchiale-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.264779, 45.170532 ], "type" : "Point" }, "properties" : { "wpid":"5729","plink":"http://www.monferratopaesaggi.org/villetta-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.236613, 45.153027 ], "type" : "Point" }, "properties" : { "wpid":"5734","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-141/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.226276, 45.159378 ], "type" : "Point" }, "properties" : { "wpid":"5737","plink":"http://www.monferratopaesaggi.org/locanda-del-rubino-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.224200, 45.159958 ], "type" : "Point" }, "properties" : { "wpid":"5738","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-con-papere-e-galline-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.219672, 45.159779 ], "type" : "Point" }, "properties" : { "wpid":"5740","plink":"http://www.monferratopaesaggi.org/punto-panoramico-belvedere-di-cantavenna-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.206717, 45.156937 ], "type" : "Point" }, "properties" : { "wpid":"5743","plink":"http://www.monferratopaesaggi.org/punto-panoramico-belvedere-le-rocche-di-zoalengo-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281098, 45.160847 ], "type" : "Point" }, "properties" : { "wpid":"5705","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-138/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281028, 45.162136 ], "type" : "Point" }, "properties" : { "wpid":"5707","plink":"http://www.monferratopaesaggi.org/castello-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.282246, 45.160831 ], "type" : "Point" }, "properties" : { "wpid":"5708","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-139/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.283804, 45.162704 ], "type" : "Point" }, "properties" : { "wpid":"5709","plink":"http://www.monferratopaesaggi.org/cappelletta-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.286159, 45.162460 ], "type" : "Point" }, "properties" : { "wpid":"5710","plink":"http://www.monferratopaesaggi.org/casa-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.287637, 45.162045 ], "type" : "Point" }, "properties" : { "wpid":"5711","plink":"http://www.monferratopaesaggi.org/edificio-23/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.282393, 45.164268 ], "type" : "Point" }, "properties" : { "wpid":"5718","plink":"http://www.monferratopaesaggi.org/fontanella-con-panchine-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.152537, 45.156277 ], "type" : "Point" }, "properties" : { "wpid":"5690","plink":"http://www.monferratopaesaggi.org/palazzo-21/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.176143, 45.159706 ], "type" : "Point" }, "properties" : { "wpid":"5694","plink":"http://www.monferratopaesaggi.org/fabbrica-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.189235, 45.154083 ], "type" : "Point" }, "properties" : { "wpid":"5697","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-137/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.190008396329858, 45.15583306259851 ], "type" : "Point" }, "properties" : { "wpid":"5698","plink":"http://www.monferratopaesaggi.org/casetta-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.354201, 45.127647 ], "type" : "Point" }, "properties" : { "wpid":"5672","plink":"http://www.monferratopaesaggi.org/parcheggio-35/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.361531559524565, 45.09741145589293 ], "type" : "Point" }, "properties" : { "wpid":"5677","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-136/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.160591, 45.155212 ], "type" : "Point" }, "properties" : { "wpid":"5681","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-parrocchiale-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.158279, 45.154930 ], "type" : "Point" }, "properties" : { "wpid":"5683","plink":"http://www.monferratopaesaggi.org/municipio-40/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.158902, 45.154972 ], "type" : "Point" }, "properties" : { "wpid":"5684","plink":"http://www.monferratopaesaggi.org/stalle-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.158354, 45.155060 ], "type" : "Point" }, "properties" : { "wpid":"5685","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-comune-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.160173, 45.154812 ], "type" : "Point" }, "properties" : { "wpid":"5687","plink":"http://www.monferratopaesaggi.org/edificio-22/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.380943, 45.124214 ], "type" : "Point" }, "properties" : { "wpid":"5651","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-133/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.385984201223437, 45.12667310758963 ], "type" : "Point" }, "properties" : { "wpid":"5653","plink":"http://www.monferratopaesaggi.org/parte-di-traliccio-vecchio-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.419788, 45.033539 ], "type" : "Point" }, "properties" : { "wpid":"5622","plink":"http://www.monferratopaesaggi.org/villa-10/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.362972, 45.041512 ], "type" : "Point" }, "properties" : { "wpid":"5624","plink":"http://www.monferratopaesaggi.org/punto-panoramico-26/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.345882, 45.051308 ], "type" : "Point" }, "properties" : { "wpid":"5627","plink":"http://www.monferratopaesaggi.org/fontanella-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.41112737301637, 45.07702991478982 ], "type" : "Point" }, "properties" : { "wpid":"5630","plink":"http://www.monferratopaesaggi.org/punto-panoramico-27/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.419631, 45.081455 ], "type" : "Point" }, "properties" : { "wpid":"5631","plink":"http://www.monferratopaesaggi.org/castello-san-bartolomeo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.409712, 45.074688 ], "type" : "Point" }, "properties" : { "wpid":"5632","plink":"http://www.monferratopaesaggi.org/castello-duviglie-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.406834321426459, 45.11466214383581 ], "type" : "Point" }, "properties" : { "wpid":"5639","plink":"http://www.monferratopaesaggi.org/villetta-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.412258, 45.107780 ], "type" : "Point" }, "properties" : { "wpid":"5641","plink":"http://www.monferratopaesaggi.org/parco-giochi-bimbi-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.384135, 45.116432 ], "type" : "Point" }, "properties" : { "wpid":"5644","plink":"http://www.monferratopaesaggi.org/villa-11/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.402524, 45.113991 ], "type" : "Point" }, "properties" : { "wpid":"5647","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-132/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.219672, 45.159779 ], "type" : "Point" }, "properties" : { "wpid":"5598","plink":"http://www.monferratopaesaggi.org/punto-panoramico-belvedere-di-cantavenna-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.206717, 45.156937 ], "type" : "Point" }, "properties" : { "wpid":"5601","plink":"http://www.monferratopaesaggi.org/punto-panoramico-belvedere-le-rocche-di-zoalengo-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.196552, 45.158112 ], "type" : "Point" }, "properties" : { "wpid":"5602","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-128/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.225635, 45.160011 ], "type" : "Point" }, "properties" : { "wpid":"5606","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-129/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.351908, 45.069817 ], "type" : "Point" }, "properties" : { "wpid":"5612","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-130/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.457997, 45.048241 ], "type" : "Point" }, "properties" : { "wpid":"5618","plink":"http://www.monferratopaesaggi.org/punto-panoramico-25/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.459204, 45.048828 ], "type" : "Point" }, "properties" : { "wpid":"5619","plink":"http://www.monferratopaesaggi.org/convento-romanico-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.454194, 45.022743 ], "type" : "Point" }, "properties" : { "wpid":"5620","plink":"http://www.monferratopaesaggi.org/punto-panoramico-del-cimitero-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.444278, 45.022266 ], "type" : "Point" }, "properties" : { "wpid":"5571","plink":"http://www.monferratopaesaggi.org/castello-dei-primi-del-900-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.246162, 45.087582 ], "type" : "Point" }, "properties" : { "wpid":"5572","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-cascina-mario-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.260206, 45.084911 ], "type" : "Point" }, "properties" : { "wpid":"5574","plink":"http://www.monferratopaesaggi.org/palazzo-20/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.262030, 45.085403 ], "type" : "Point" }, "properties" : { "wpid":"5575","plink":"http://www.monferratopaesaggi.org/arco-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.241253, 45.075645 ], "type" : "Point" }, "properties" : { "wpid":"5582","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-127/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.240240, 45.074020 ], "type" : "Point" }, "properties" : { "wpid":"5583","plink":"http://www.monferratopaesaggi.org/casa-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.237554949737614, 45.140296474010825 ], "type" : "Point" }, "properties" : { "wpid":"5588","plink":"http://www.monferratopaesaggi.org/segnaposto-7-11/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.237082640892027, 45.14503050668687 ], "type" : "Point" }, "properties" : { "wpid":"5589","plink":"http://www.monferratopaesaggi.org/segnaposto-8-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.226276, 45.159378 ], "type" : "Point" }, "properties" : { "wpid":"5594","plink":"http://www.monferratopaesaggi.org/locanda-del-rubino-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.224200, 45.159958 ], "type" : "Point" }, "properties" : { "wpid":"5595","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-con-papere-e-galline-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.272442, 45.158806 ], "type" : "Point" }, "properties" : { "wpid":"5597","plink":"http://www.monferratopaesaggi.org/cascina-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.25426326504703, 45.139224782108144 ], "type" : "Point" }, "properties" : { "wpid":"5551","plink":"http://www.monferratopaesaggi.org/cappelletta-s-anna-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.254236265047098, 45.13897912997044 ], "type" : "Point" }, "properties" : { "wpid":"5552","plink":"http://www.monferratopaesaggi.org/portale-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.254050, 45.118351 ], "type" : "Point" }, "properties" : { "wpid":"5559","plink":"http://www.monferratopaesaggi.org/monumento-ai-partigiani-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.208651046626983, 45.103202222932666 ], "type" : "Point" }, "properties" : { "wpid":"5561","plink":"http://www.monferratopaesaggi.org/punto-panoramico-cimitero-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.223229, 45.094364 ], "type" : "Point" }, "properties" : { "wpid":"5562","plink":"http://www.monferratopaesaggi.org/punto-panoramico-cascina-ramengo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.230348, 45.090504 ], "type" : "Point" }, "properties" : { "wpid":"5563","plink":"http://www.monferratopaesaggi.org/punto-panoramico-24/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.232751, 45.088158 ], "type" : "Point" }, "properties" : { "wpid":"5564","plink":"http://www.monferratopaesaggi.org/punto-panoramico-cascina-gigliola-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.257070481777191, 45.0865248339224 ], "type" : "Point" }, "properties" : { "wpid":"5565","plink":"http://www.monferratopaesaggi.org/punto-di-sosta-attrezzato-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.264192, 45.086933 ], "type" : "Point" }, "properties" : { "wpid":"5566","plink":"http://www.monferratopaesaggi.org/punto-panoramico-cascina-zanavreia-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.228899, 45.084724 ], "type" : "Point" }, "properties" : { "wpid":"5567","plink":"http://www.monferratopaesaggi.org/scorcio-esterno-verso-valle-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.230176, 45.084133 ], "type" : "Point" }, "properties" : { "wpid":"5568","plink":"http://www.monferratopaesaggi.org/scorcio-esterno-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.230433, 45.087490 ], "type" : "Point" }, "properties" : { "wpid":"5569","plink":"http://www.monferratopaesaggi.org/rovine-castello-dei-merli-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.450585, 45.020763 ], "type" : "Point" }, "properties" : { "wpid":"5570","plink":"http://www.monferratopaesaggi.org/villa-dei-primi-del-900-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.269862, 45.094254 ], "type" : "Point" }, "properties" : { "wpid":"5521","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-attrezzato-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.274947, 45.091778 ], "type" : "Point" }, "properties" : { "wpid":"5523","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-tenuta-la-tenaglia-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.27981800859834, 45.09406352071431 ], "type" : "Point" }, "properties" : { "wpid":"5524","plink":"http://www.monferratopaesaggi.org/prima-cappella-sacro-monte-crea-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.283707, 45.099998 ], "type" : "Point" }, "properties" : { "wpid":"5531","plink":"http://www.monferratopaesaggi.org/punto-di-vista-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.282978152114879, 45.100347521676504 ], "type" : "Point" }, "properties" : { "wpid":"5532","plink":"http://www.monferratopaesaggi.org/edificio-21/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.289604460153555, 45.1388736003591 ], "type" : "Point" }, "properties" : { "wpid":"5538","plink":"http://www.monferratopaesaggi.org/pesa-pubblica-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.290568530094106, 45.14093323616042 ], "type" : "Point" }, "properties" : { "wpid":"5539","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-cimitero-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.273295, 45.136425 ], "type" : "Point" }, "properties" : { "wpid":"5495","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-122/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.283809545963322, 45.085357699518916 ], "type" : "Point" }, "properties" : { "wpid":"5496","plink":"http://www.monferratopaesaggi.org/canonica-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.28343685515597, 45.0854866630935 ], "type" : "Point" }, "properties" : { "wpid":"5497","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-123/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.284469134918254, 45.08547584978878 ], "type" : "Point" }, "properties" : { "wpid":"5498","plink":"http://www.monferratopaesaggi.org/palazzo-17/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.287438845577299, 45.085027867652364 ], "type" : "Point" }, "properties" : { "wpid":"5499","plink":"http://www.monferratopaesaggi.org/villa-larbel-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.221727, 45.123234 ], "type" : "Point" }, "properties" : { "wpid":"5501","plink":"http://www.monferratopaesaggi.org/santuario-delladdolorata-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.219943, 45.123829 ], "type" : "Point" }, "properties" : { "wpid":"5502","plink":"http://www.monferratopaesaggi.org/punto-panoramico-attrezzato-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.189726, 45.131645 ], "type" : "Point" }, "properties" : { "wpid":"5505","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-124/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.185225, 45.140297 ], "type" : "Point" }, "properties" : { "wpid":"5509","plink":"http://www.monferratopaesaggi.org/palazzo-18/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.190109, 45.147583 ], "type" : "Point" }, "properties" : { "wpid":"5510","plink":"http://www.monferratopaesaggi.org/villa-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.2309340846557, 45.10691239599498 ], "type" : "Point" }, "properties" : { "wpid":"5514","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-125/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.230916635581934, 45.10673499999998 ], "type" : "Point" }, "properties" : { "wpid":"5515","plink":"http://www.monferratopaesaggi.org/palazzo-19/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.266498, 45.087753 ], "type" : "Point" }, "properties" : { "wpid":"5517","plink":"http://www.monferratopaesaggi.org/punto-panoramico-23/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.166921, 45.133007 ], "type" : "Point" }, "properties" : { "wpid":"5463","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-del-cimitero-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167203, 45.133389 ], "type" : "Point" }, "properties" : { "wpid":"5464","plink":"http://www.monferratopaesaggi.org/punto-panoramico-22/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.160591, 45.155212 ], "type" : "Point" }, "properties" : { "wpid":"5468","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-parrocchiale-7/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.161549, 45.155636 ], "type" : "Point" }, "properties" : { "wpid":"5469","plink":"http://www.monferratopaesaggi.org/palazzo-castello-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.158902, 45.154972 ], "type" : "Point" }, "properties" : { "wpid":"5471","plink":"http://www.monferratopaesaggi.org/stalle-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.158354, 45.155060 ], "type" : "Point" }, "properties" : { "wpid":"5472","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-comune-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.153674, 45.156708 ], "type" : "Point" }, "properties" : { "wpid":"5476","plink":"http://www.monferratopaesaggi.org/tempietto-votivo-5/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281701, 45.130836 ], "type" : "Point" }, "properties" : { "wpid":"5486","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-121/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.282331093254129, 45.131302 ], "type" : "Point" }, "properties" : { "wpid":"5488","plink":"http://www.monferratopaesaggi.org/castello-solonghello/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.297102, 45.115849 ], "type" : "Point" }, "properties" : { "wpid":"5489","plink":"http://www.monferratopaesaggi.org/casina-fornacetta-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.278810, 45.113846 ], "type" : "Point" }, "properties" : { "wpid":"5493","plink":"http://www.monferratopaesaggi.org/cascina-gambarello-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.186534, 45.095158 ], "type" : "Point" }, "properties" : { "wpid":"5434","plink":"http://www.monferratopaesaggi.org/torretta-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.166858061342282, 45.10945476581296 ], "type" : "Point" }, "properties" : { "wpid":"5440","plink":"http://www.monferratopaesaggi.org/bagno-pubblico-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.145045, 45.108257 ], "type" : "Point" }, "properties" : { "wpid":"5451","plink":"http://www.monferratopaesaggi.org/palazzo-15/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.144281, 45.109749 ], "type" : "Point" }, "properties" : { "wpid":"5452","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-119/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.151279, 45.138638 ], "type" : "Point" }, "properties" : { "wpid":"5456","plink":"http://www.monferratopaesaggi.org/san-pietro-martire-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.169778, 45.134510 ], "type" : "Point" }, "properties" : { "wpid":"5459","plink":"http://www.monferratopaesaggi.org/municipio-38/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.170955084655816, 45.13477838212945 ], "type" : "Point" }, "properties" : { "wpid":"5461","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-120/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.098453185180688, 45.10259567049426 ], "type" : "Point" }, "properties" : { "wpid":"5405","plink":"http://www.monferratopaesaggi.org/segnaposto-24-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.099530699405705, 45.10219760167383 ], "type" : "Point" }, "properties" : { "wpid":"5406","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-114/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.099285209821687, 45.10204363030734 ], "type" : "Point" }, "properties" : { "wpid":"5407","plink":"http://www.monferratopaesaggi.org/servizi-pubblici-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.099512250331827, 45.10231378643685 ], "type" : "Point" }, "properties" : { "wpid":"5408","plink":"http://www.monferratopaesaggi.org/municipio-37/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.10081879629513, 45.10225538814139 ], "type" : "Point" }, "properties" : { "wpid":"5409","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-115/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.097884, 45.101398 ], "type" : "Point" }, "properties" : { "wpid":"5410","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-116/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.097456667493816, 45.10139611774031 ], "type" : "Point" }, "properties" : { "wpid":"5411","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-117/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167611, 45.059658 ], "type" : "Point" }, "properties" : { "wpid":"5418","plink":"http://www.monferratopaesaggi.org/punto-panoramico-21/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.200462084655783, 45.08024624204983 ], "type" : "Point" }, "properties" : { "wpid":"5427","plink":"http://www.monferratopaesaggi.org/castello-di-pessine-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.200216, 45.080212 ], "type" : "Point" }, "properties" : { "wpid":"5429","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-118/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.278177, 45.045223 ], "type" : "Point" }, "properties" : { "wpid":"5377","plink":"http://www.monferratopaesaggi.org/cimitero-ebrei-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.319241, 45.036968 ], "type" : "Point" }, "properties" : { "wpid":"5378","plink":"http://www.monferratopaesaggi.org/cimitero-56/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.325094224536883, 45.050264416313865 ], "type" : "Point" }, "properties" : { "wpid":"5380","plink":"http://www.monferratopaesaggi.org/chiesa-153/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.486519644180362, 45.00276603483694 ], "type" : "Point" }, "properties" : { "wpid":"5382","plink":"http://www.monferratopaesaggi.org/chiesa-san-giacomo-e-museo-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.328380, 45.047165 ], "type" : "Point" }, "properties" : { "wpid":"5384","plink":"http://www.monferratopaesaggi.org/chiesetta-di-santeusebio-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.121023, 45.120831 ], "type" : "Point" }, "properties" : { "wpid":"5393","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-111/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.111048, 45.114742 ], "type" : "Point" }, "properties" : { "wpid":"5396","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-112/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.099244063823676, 45.102056815152025 ], "type" : "Point" }, "properties" : { "wpid":"5404","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-113/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.205221, 45.155231 ], "type" : "Point" }, "properties" : { "wpid":"5358","plink":"http://www.monferratopaesaggi.org/chiesetta-38/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.278249, 45.169388 ], "type" : "Point" }, "properties" : { "wpid":"5359","plink":"http://www.monferratopaesaggi.org/chiesa-di-santi-rocco-e-stefano-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.268046, 45.157997 ], "type" : "Point" }, "properties" : { "wpid":"5360","plink":"http://www.monferratopaesaggi.org/chiesa-147/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.261165, 45.156975 ], "type" : "Point" }, "properties" : { "wpid":"5361","plink":"http://www.monferratopaesaggi.org/chiesa-148/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.252519, 45.168308 ], "type" : "Point" }, "properties" : { "wpid":"5362","plink":"http://www.monferratopaesaggi.org/chiesa-149/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.247649, 45.169216 ], "type" : "Point" }, "properties" : { "wpid":"5363","plink":"http://www.monferratopaesaggi.org/chiesa-150/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.331652, 45.143452 ], "type" : "Point" }, "properties" : { "wpid":"5365","plink":"http://www.monferratopaesaggi.org/chiesa-di-santagata-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.096422, 45.096142 ], "type" : "Point" }, "properties" : { "wpid":"5366","plink":"http://www.monferratopaesaggi.org/segnaposto-35-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.367639, 45.147827 ], "type" : "Point" }, "properties" : { "wpid":"5369","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-dellassunta-e-di-santeusebio-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.354647, 45.129581 ], "type" : "Point" }, "properties" : { "wpid":"5370","plink":"http://www.monferratopaesaggi.org/chiesa-151/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.335459, 45.142181 ], "type" : "Point" }, "properties" : { "wpid":"5371","plink":"http://www.monferratopaesaggi.org/chiesa-152/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.429327, 45.133411 ], "type" : "Point" }, "properties" : { "wpid":"5372","plink":"http://www.monferratopaesaggi.org/chiesetta-39/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.264759915344257, 45.05048373167663 ], "type" : "Point" }, "properties" : { "wpid":"5373","plink":"http://www.monferratopaesaggi.org/chiesa-della-madonna-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.265919, 45.050220 ], "type" : "Point" }, "properties" : { "wpid":"5374","plink":"http://www.monferratopaesaggi.org/chiesa-di-santantonio-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.252031, 45.045410 ], "type" : "Point" }, "properties" : { "wpid":"5375","plink":"http://www.monferratopaesaggi.org/chiesetta-la-pieve-punto-panoramico-sui-gessi-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.267019, 45.048328 ], "type" : "Point" }, "properties" : { "wpid":"5376","plink":"http://www.monferratopaesaggi.org/chiesa-san-francesco-3/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.237270055225395, 45.13511307869914 ], "type" : "Point" }, "properties" : { "wpid":"5340","plink":"http://www.monferratopaesaggi.org/chiesa-madonna-del-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.238413445438368, 45.13795953454558 ], "type" : "Point" }, "properties" : { "wpid":"5341","plink":"http://www.monferratopaesaggi.org/chiesa-di-s-bononio-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.232716, 45.153522 ], "type" : "Point" }, "properties" : { "wpid":"5342","plink":"http://www.monferratopaesaggi.org/chiesetta-33/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.226517, 45.159801 ], "type" : "Point" }, "properties" : { "wpid":"5343","plink":"http://www.monferratopaesaggi.org/chiesa-142/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.205221, 45.155231 ], "type" : "Point" }, "properties" : { "wpid":"5344","plink":"http://www.monferratopaesaggi.org/chiesetta-34/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.354580, 45.070709 ], "type" : "Point" }, "properties" : { "wpid":"5349","plink":"http://www.monferratopaesaggi.org/cimitero-54/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.352042, 45.069851 ], "type" : "Point" }, "properties" : { "wpid":"5350","plink":"http://www.monferratopaesaggi.org/chiesetta-36/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.160731, 45.155216 ], "type" : "Point" }, "properties" : { "wpid":"5352","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-assunzione-di-maria-vergine-1763-9/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.232716, 45.153522 ], "type" : "Point" }, "properties" : { "wpid":"5354","plink":"http://www.monferratopaesaggi.org/chiesetta-37/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.292285, 45.158989 ], "type" : "Point" }, "properties" : { "wpid":"5355","plink":"http://www.monferratopaesaggi.org/chiesa-145/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.226517, 45.159801 ], "type" : "Point" }, "properties" : { "wpid":"5357","plink":"http://www.monferratopaesaggi.org/chiesa-146/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.283608583991963, 45.0854932307163 ], "type" : "Point" }, "properties" : { "wpid":"5326","plink":"http://www.monferratopaesaggi.org/chiesa-santantonio-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.188666, 45.133434 ], "type" : "Point" }, "properties" : { "wpid":"5327","plink":"http://www.monferratopaesaggi.org/chiesa-133/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.196318, 45.124458 ], "type" : "Point" }, "properties" : { "wpid":"5328","plink":"http://www.monferratopaesaggi.org/chiesa-134/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281891991401608, 45.10043643875292 ], "type" : "Point" }, "properties" : { "wpid":"5329","plink":"http://www.monferratopaesaggi.org/chiesa-135/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.289141944774656, 45.13896905605418 ], "type" : "Point" }, "properties" : { "wpid":"5330","plink":"http://www.monferratopaesaggi.org/chiesa-136/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.267303588954974, 45.14094180965955 ], "type" : "Point" }, "properties" : { "wpid":"5331","plink":"http://www.monferratopaesaggi.org/chiesa-137/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.254200889549224, 45.13976439545172 ], "type" : "Point" }, "properties" : { "wpid":"5332","plink":"http://www.monferratopaesaggi.org/chiesa-s-anna-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.253543, 45.137394 ], "type" : "Point" }, "properties" : { "wpid":"5333","plink":"http://www.monferratopaesaggi.org/cimitero-51/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.212103, 45.101601 ], "type" : "Point" }, "properties" : { "wpid":"5335","plink":"http://www.monferratopaesaggi.org/chiesa-139/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.260911, 45.084915 ], "type" : "Point" }, "properties" : { "wpid":"5336","plink":"http://www.monferratopaesaggi.org/chiesa-140/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.261721, 45.085468 ], "type" : "Point" }, "properties" : { "wpid":"5337","plink":"http://www.monferratopaesaggi.org/chiesetta-32/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.241279982803349, 45.075102705820846 ], "type" : "Point" }, "properties" : { "wpid":"5338","plink":"http://www.monferratopaesaggi.org/chiesa-141/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.239768, 45.128105 ], "type" : "Point" }, "properties" : { "wpid":"5339","plink":"http://www.monferratopaesaggi.org/chiesa-s-gottardo-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.121310521495843, 45.1207446109008 ], "type" : "Point" }, "properties" : { "wpid":"5310","plink":"http://www.monferratopaesaggi.org/chiesetta-31/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.106735, 45.113827 ], "type" : "Point" }, "properties" : { "wpid":"5311","plink":"http://www.monferratopaesaggi.org/chiesa-125/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.098453955854438, 45.10168289323932 ], "type" : "Point" }, "properties" : { "wpid":"5312","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-di-s-giacomo-apostolo-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.095593, 45.099724 ], "type" : "Point" }, "properties" : { "wpid":"5313","plink":"http://www.monferratopaesaggi.org/chiesa-126/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.201989, 45.075275 ], "type" : "Point" }, "properties" : { "wpid":"5314","plink":"http://www.monferratopaesaggi.org/chiesa-127/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.181419, 45.099674 ], "type" : "Point" }, "properties" : { "wpid":"5315","plink":"http://www.monferratopaesaggi.org/chiesa-128/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.166508228172233, 45.10986335471923 ], "type" : "Point" }, "properties" : { "wpid":"5316","plink":"http://www.monferratopaesaggi.org/chiesa-129/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.162952, 45.114399 ], "type" : "Point" }, "properties" : { "wpid":"5317","plink":"http://www.monferratopaesaggi.org/cimitero-50/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.164427, 45.095295 ], "type" : "Point" }, "properties" : { "wpid":"5318","plink":"http://www.monferratopaesaggi.org/chiesa-130/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.145487504299126, 45.10809098597228 ], "type" : "Point" }, "properties" : { "wpid":"5319","plink":"http://www.monferratopaesaggi.org/chiesa-131/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.171056918979616, 45.134658741030854 ], "type" : "Point" }, "properties" : { "wpid":"5320","plink":"http://www.monferratopaesaggi.org/chiesa-ss-filippo-e-michele-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.167186975479126, 45.133174828866466 ], "type" : "Point" }, "properties" : { "wpid":"5321","plink":"http://www.monferratopaesaggi.org/chiesa-di-s-michele-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.161155, 45.141685 ], "type" : "Point" }, "properties" : { "wpid":"5322","plink":"http://www.monferratopaesaggi.org/chiesa-s-stefano-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.172452, 45.148006 ], "type" : "Point" }, "properties" : { "wpid":"5323","plink":"http://www.monferratopaesaggi.org/chiesa-s-liberata-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.160731, 45.155216 ], "type" : "Point" }, "properties" : { "wpid":"5324","plink":"http://www.monferratopaesaggi.org/chiesa-parrocchiale-assunzione-di-maria-vergine-1763-8/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.281459504299164, 45.13103049172794 ], "type" : "Point" }, "properties" : { "wpid":"5325","plink":"http://www.monferratopaesaggi.org/chiesa-132/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.142652588954888, 45.10882732507847 ], "type" : "Point" }, "properties" : { "wpid":"5297","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-109/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.166903, 45.109570 ], "type" : "Point" }, "properties" : { "wpid":"5298","plink":"http://www.monferratopaesaggi.org/municipio-36/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.230907, 45.106880 ], "type" : "Point" }, "properties" : { "wpid":"5300","plink":"http://www.monferratopaesaggi.org/parcheggio-32/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.290933, 45.161205 ], "type" : "Point" }, "properties" : { "wpid":"5301","plink":"http://www.monferratopaesaggi.org/chiesa-123/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.252132830688424, 45.13378149045003 ], "type" : "Point" }, "properties" : { "wpid":"5304","plink":"http://www.monferratopaesaggi.org/punto-di-veduta-110/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.095384, 45.099667 ], "type" : "Point" }, "properties" : { "wpid":"5305","plink":"http://www.monferratopaesaggi.org/cimitero-48/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.397036, 45.011246 ], "type" : "Point" }, "properties" : { "wpid":"5306","plink":"http://www.monferratopaesaggi.org/visuale-da-stradina-per-ostello-6/" }, "type" : "Feature" } , { "geometry" : { "coordinates" : [8.151349, 45.154503 ], "type" : "Point" }, "properties" : { "wpid":"5308","plink":"http://www.monferratopaesaggi.org/chiesa-124/" }, "type" : "Feature" } ], "type" : "FeatureCollection" }
module.exports= require("./build/app.js");
import test from 'ava'; import actions from 'actions'; import reducer, { initialState } from './container'; test('should have a default null state', t => { t.deepEqual(reducer(undefined, { type: 'ON_CHANGE' }), initialState); }); test('should store container on fetch end', t => { t.deepEqual( reducer(initialState, actions.fetchContainerSucceeded({ id: 'test', name: 'vibioh/dasboard' })), { id: 'test', name: 'vibioh/dasboard' }, ); }); test('should reset to default state on error', t => { t.deepEqual( reducer({ id: 'test', name: 'vibioh/dasboard' }, actions.fetchContainerFailed()), initialState, ); });
var gulp = require('gulp'); var gutil = require('gulp-util'); var bower = require('bower'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var minifyCss = require('gulp-minify-css'); var rename = require('gulp-rename'); var sh = require('shelljs'); var paths = { sass: ['./scss/**/*.scss', './www/scss/**/*.scss'] }; gulp.task('default', ['sass']); gulp.task('sass', function(done) { gulp.src('./scss/ionic.app.scss') .pipe(sass()) .on('error', sass.logError) .pipe(gulp.dest('./www/css/')) .pipe(minifyCss({ keepSpecialComments: 0 })) .pipe(rename({ extname: '.min.css' })) .pipe(gulp.dest('./www/css/')) .on('end', done); }); gulp.task('watch', function() { gulp.watch(paths.sass, ['sass']); }); gulp.task('install', ['git-check'], function() { return bower.commands.install() .on('log', function(data) { gutil.log('bower', gutil.colors.cyan(data.id), data.message); }); }); gulp.task('git-check', function(done) { if (!sh.which('git')) { console.log( ' ' + gutil.colors.red('Git is not installed.'), '\n Git, the version control system, is required to download Ionic.', '\n Download git here:', gutil.colors.cyan('http://git-scm.com/downloads') + '.', '\n Once git is installed, run \'' + gutil.colors.cyan('gulp install') + '\' again.' ); process.exit(1); } done(); });
/** * Run predefined tasks whenever watched file patterns are added, changed or deleted. * * --------------------------------------------------------------- * * Watch for changes on * - files in the `assets` folder * and re-run the appropriate tasks. * * For usage docs see: * https://github.com/gruntjs/grunt-contrib-watch * */ module.exports = function(grunt) { grunt.config.set('watch', { options: { interrupt: true, // Interrupt any running tasks on save }, src: { files: ['src/**/*.js', 'tests/specs/**/*.js'], tasks: ['asciify', 'concat', 'karma:watch:run', 'jshint:src', 'jscs:src', 'flow:watch:status'] }, grunt: { // Grunt Files files: ['Gruntfile.js', 'tasks/**/*.js'], // Automatically reload Grunt configuration options: { reload: true } }, }); };
const { Readable } = require('stream') const fs = require('fs') const test = require('ava') const micro = require('micro') const listen = require('test-listen') const request = require('request-promise') const UrlPattern = require('url-pattern') const { withNamespace, router, get } = require('./') const server = fn => listen(micro(fn)) test('different routes', async t => { const routes = router( get('/foo', () => ({ name: 'foo' })), get('/bar', () => ({ name: 'bar' })) ) const url = await server(routes) const fooGet = await request(`${url}/foo`) const barGet = await request(`${url}/bar`) t.is(JSON.parse(fooGet).name, 'foo') t.is(JSON.parse(barGet).name, 'bar') }) test('routes with params and query', async t => { const hello = req => `Hello ${req.params.msg} ${req.query.time}` const routes = router(get('/hello/:msg', hello)) const url = await server(routes) const response = await request(`${url}/hello/world?time=now`) t.is(response, 'Hello world now') }) test('routes with underline', async t => { const routes = router(get('/foo_bar', () => 'Hello with underline')) const url = await server(routes) const response = await request(`${url}/foo_bar`) t.is(response, 'Hello with underline') }) test('async handlers', async t => { const hello = req => Promise.resolve(`Hello ${req.params.msg} ${req.query.time}`) const routes = router(get('/hello/:msg', hello)) const url = await server(routes) const response = await request(`${url}/hello/world?time=now`) t.is(response, 'Hello world now') }) test('composed routes', async t => { const fooRouter = router(get('/foo', () => `Hello foo`)) const barRouter = router(get('/bar', () => `Hello bar`)) const routes = router(fooRouter, barRouter) const url = await server(routes) const fooResponse = await request(`${url}/foo`) const barResponse = await request(`${url}/bar`) t.is(fooResponse, 'Hello foo') t.is(barResponse, 'Hello bar') }) test('multiple matching routes', async t => { const withPath = () => 'Hello world' const withParam = () => t.fail('Clashing route should not have been called') const routes = router(get('/path', withPath), get('/:param', withParam)) const url = await server(routes) const reponse = await request(`${url}/path`) t.is(reponse, 'Hello world') }) test('multiple matching async routes', async t => { const withPath = (req, res) => micro.send(res, 200, 'Hello world') const withParam = () => t.fail('Clashing route should not have been called') const routes = router(get('/path', withPath), get('/:param', withParam)) const url = await server(routes) const reponse = await request(`${url}/path`) t.is(reponse, 'Hello world') }) test('error without path and handler', t => { const fn = () => { router(get()) } const error = t.throws(fn, Error) t.is(error.message, 'You need to set a valid path') }) test('error without handler', t => { const fn = () => { router(get('/hey')) } const error = t.throws(fn, Error) t.is(error.message, 'You need to set a valid handler') }) test('route which sends a Stream', async t => { const stream = new Readable() stream._read = () => {} stream.push('foo') stream.push(null) const routes = router(get('/', (req, res) => micro.send(res, 200, stream))) const url = await server(routes) const response = await request(url) t.is(response, 'foo') }) test('route which sends a file stream', async t => { const stream = fs.createReadStream('./package.json') const routes = router(get('/', (req, res) => micro.send(res, 200, stream))) const url = await server(routes) const response = await request(url) const json = JSON.parse(response) t.is(json.name, 'microrouter') }) test('passing UrlPattern instance as path argument', async t => { const pattern = new UrlPattern(/^\/api$/) const routes = router(get(pattern, () => 'with custom pattern')) const url = await server(routes) const response = await request(`${url}/api`) t.is(response, 'with custom pattern') }) test('allow handlers returning null', async t => { const routes = router(get('/null', () => null)) const url = await server(routes) const reponse = await request(`${url}/null`, { simple: false, resolveWithFullResponse: true, }) t.not(reponse.statusCode, 404) t.not(reponse.body, 'Cannot GET /null') }) test('routes with namespace', async t => { const fooRoutes = withNamespace('/foo') const barRoutes = withNamespace('/bar') const routes = router( fooRoutes(get('/test', () => 'foo')), barRoutes(get('/test', () => 'bar')) ) const url = await server(routes) const fooResponse = await request(`${url}/foo/test`) const barResponse = await request(`${url}/bar/test`) t.is(fooResponse, 'foo') t.is(barResponse, 'bar') }) test('route with namespace without trailing slash', async t => { const fooRoutes = withNamespace('/foo') const routes = router(fooRoutes(get('/', () => 'foo'))) const url = await server(routes) const fooResponse = await request(`${url}/foo`) t.is(fooResponse, 'foo') }) test('route with namespace with trailing slash', async t => { const fooRoutes = withNamespace('/foo') const routes = router(fooRoutes(get('/', () => 'foo'))) const url = await server(routes) const fooResponse = await request(`${url}/foo/`) t.is(fooResponse, 'foo') })
version https://git-lfs.github.com/spec/v1 oid sha256:448bad5f38d8c05f579cb83436fe196b66069f4e0a348779ced2047d75e3bce2 size 357
var cs = require("color-string"); module.exports = { proximity: proximity, rgb2lab: rgb2lab }; function proximity(s1, s2){ c1 = rgb2lab(cs.getRgb(s1)); c2 = rgb2lab(cs.getRgb(s2)); return Math.sqrt(Math.pow(c1[0]-c2[0],2) + Math.pow(c1[1]-c2[1],2) + Math.pow(c1[2]-c2[2],2)); } function rgb2lab(input){ // This code is adapted from various functions at http://www.easyrgb.com/index.php?X=MATH var rgb = [0,0,0], xyz = [0,0,0], Lab = [0,0,0]; for(var i=0; i<input.length;i++){ var value = input[i]/255; if(value > 0.04045){ value = Math.pow(((value+0.055 )/1.055), 2.4); }else{ value = value / 12.92; } rgb[i] = value * 100; } xyz[0] = (rgb[0] * 0.4124 + rgb[1] * 0.3576 + rgb[2] * 0.1805) / 95.047; // ref_X = 95.047 Observer= 2°, Illuminant= D65 xyz[1] = (rgb[0] * 0.2126 + rgb[1] * 0.7152 + rgb[2] * 0.0722) / 100.0; // ref_Y = 100.000 xyz[2] = (rgb[0] * 0.0193 + rgb[1] * 0.1192 + rgb[2] * 0.9505) / 108.883; // ref_Z = 108.883 for(var i=0;i<3;i++){ var value = xyz[i]; if(value > 0.008856){ value = Math.pow(value,1/3); }else{ value = (7.787*value)+(16/116); } xyz[i] = value; } Lab[0] = parseFloat(( (116*xyz[1]) - 16 ).toFixed(3)); Lab[1] = parseFloat(( 500*(xyz[0]-xyz[1]) ).toFixed(3)); Lab[2] = parseFloat(( 200*(xyz[1]-xyz[2]) ).toFixed(3)); return Lab; }
var assert = require('assert'); function add (a, b) { return a + b; } var expected = add(1,2); // these three assertions are equivalent: assert(expected == 3, 'one plus two is three'); assert.ok(expected == 3, 'one plus two is three'); assert.equal(expected, 3, 'one plus two is three');
ace.define('ace/mode/provn',["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/text_highlight_rules", "ace/worker/worker_client" ], function(require, exports, module) { var oop = require("ace/lib/oop"); var TextMode = require("ace/mode/text").Mode; var o = require("./provn_highlight_rules").provnHighlightRules var TextHighlightRules = require("ace/mode/text_highlight_rules").TextHighlightRules; var MyHighlightRules = function() { var keywordMapper = this.createKeywordMapper({ "keyword.control": "document|endDocument|bundle|endBundle", "keyword.operator": "",//"used|wasStartedBy|wasEndedBy|wasInvalidatedBy|wasInformedBy|agent|wasAsociatedWith|wasAttributedTo|actedOnBehalfOf|wasDerivedFrom|wasInfluencedBy|alternateOf|specializationOf|hadMember", "keyword.other": "", "storage.type": "used|wasStartedBy|wasEndedBy|wasInvalidatedBy|wasInformedBy|wasAsociatedWith|wasAttributedTo|actedOnBehalfOf|wasDerivedFrom|wasInfluencedBy|alternateOf|specializationOf|hadMember|wasGeneratedBy|wasAssociatedWith", "storage.modifier": "entity|activity|agent", "support.function": "", "constant.language": "prefix|default" }, "identifier"); this.$rules = { "start": [ { token : "comment", regex : "//" }, { token : "string", regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' }, { token : "constant.numeric", regex : "0[xX][0-9a-fA-F]+\\b" }, { token : "constant.numeric", regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" }, { token : "constant.numeric", regex: "<[^>]?>" }, { token : "keyword.operator", regex : "=|%%" }, { token : "punctuation.operator", regex : "\\?|\\:|\\,|\\;|\\." }, { token : "paren.lparen", regex : "[[({<]" }, { token : "paren.rparen", regex : "[\\])}>]" }, { token : "text", regex : "\\s+" }, { token: keywordMapper, regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b" } ] }; }; oop.inherits(MyHighlightRules, TextHighlightRules); var ProvnMode = function() { this.HighlightRules = MyHighlightRules; }; oop.inherits(ProvnMode, TextMode); (function() { this.$id = "ace/mode/prov-n-mode"; var WorkerClient = require("ace/worker/worker_client").WorkerClient; this.createWorker = function(session) { this.$worker = new WorkerClient(["ace"], "ace/worker/provn", "ProvnWorker", "prov-n-worker.js"); this.$worker.attachToDocument(session.getDocument()); this.$worker.on("errors", function(e) { session.setAnnotations(e.data); }); this.$worker.on("annotate", function(e) { session.setAnnotations(e.data); }); this.$worker.on("terminate", function() { session.clearAnnotations(); }); return this.$worker; }; }).call(ProvnMode.prototype); exports.Mode = ProvnMode; }), ace.define("ace/mode/provn_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function (e, t, n) { var r = e("../lib/oop"), i = e("./text_highlight_rules").TextHighlightRules, s = function () { var e = /(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])?T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\.[0-9]+)?(Z|[+\-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?/, t = "\\w[\\w-]*", n = "[\\w][-/%\\.\\w]*[-/%#\\w]*", r = '[^<>"{}|^`\\\\]*', i = "entity|activity|agent|wasGeneratedBy|used|wasInformedBy|wasStartedBy|wasEndedBy|wasInvalidatedBy|wasDerivedFrom|wasAttributedTo|wasAssociatedWith|actedOnBehalfOf|wasInfluencedBy|alternateOf|specializationOf|hadMember|mentionOf", s = {token: "comment.line.double-slash", regex: /\/\//, push: "line_comment"}, o = {token: "comment.block", regex: /\/\*/, push: "block_comment"}, u = "(" + t + ")(:)(" + n + ")", a = {token: ["storage.type", "punctuation.operator", "entity.localname.variable.provn"], regex: u}, f = {token: "entity.localname.variable.provn", regex: "(" + n + ")"}, l = {token: "text.space", regex: /^[ \t]/}, c = {token: "invalid.illegal", regex: /\S+/}, h = { token: ["keyword.other.prefix.provn", "text", "storage.type.prefix.provn", "text", "paren.lparen", "markup.underline.link", "paren.rparen"], regex: "(prefix)([ \\t]+)(" + t + ")([ \\t]+)(<)(" + r + ")(>)" }, p = { token: ["keyword.other.prefix.provn", "text", "paren.lparen", "markup.underline.link", "paren.rparen"], regex: "(default)([ \\t]+)(<)(" + r + ")(>)" }, d = { token: ["keyword.statement.provn", "text", "paren.lparen"], regex: "\\b(" + i + ")([ \\t]*)(\\()", push: "statement" }, v = { token: ["keyword.control.bundle.provn", "text", "storage.type", "punctuation.operator", "entity.localname.variable.provn"], regex: "(bundle)([ \\t]*)" + u, next: "bundle_content" }; this.$rules = { start: [{ token: "keyword.control.document.provn", regex: "document", next: "doc_content" }, s, o, l, c], end: [s, o, l, c], doc_content: [{ token: "keyword.control.document.provn", regex: "endDocument", next: "end" }, s, o, h, p, d, v], doc_content_bundle_only: [{ token: "keyword.control.document.provn", regex: "endDocument", next: "end" }, s, o, v, l, c], bundle_content: [{ token: "keyword.control.bundle.provn", regex: "endBundle", next: "doc_content_bundle_only" }, s, o, h, p, d], statement: [{token: "constant.other.datetime", regex: e}, a, f, s, o, { token: "keyword.operator", regex: "-" }, {token: "punctuation.separator", regex: ","}, { token: "paren.lparen.square", regex: /\[/, push: "attribute_block" }, {token: "paren.rparen", regex: /\)/, next: "pop"}], attribute_block: [s, o, { token: ["storage.type", "punctuation.operator", "entity.localname.variable.provn", "text", "keyword.operator"], regex: "(" + t + ")(:)(" + n + ")([ \\t]*)(=)", push: "attribute_value" }, {token: "punctuation.separator", regex: ","}, {token: "paren.rparen.square", regex: /\]/, next: "pop"}], attribute_value: [s, o, { token: ["punctuation", "storage.type", "punctuation.operator", "entity.localname.variable.provn", "punctuation"], regex: "(')" + u + "(')", next: "pop" }, { token: ["punctuation", "entity.localname.variable.provn", "punctuation"], regex: "(')(" + n + ")(')", next: "pop" }, { token: ["string", "text", "keyword.operator", "text", "storage.type", "punctuation.operator", "entity.localname.variable.provn"], regex: '(["](?:(?:\\\\.)|(?:[^"\\\\]))*?["])(\\s*)(%%)(\\s*)' + u, next: "pop" }, {token: "string", regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]', next: "pop"}, { token: "constant.numeric", regex: /[-]?\d+/, next: "pop" }, {token: "punctuation.separator", regex: ",", next: "pop"}, l, { token: "invalid.illegal", regex: /[^,\]\s]+/, next: "pop" }], line_comment: [{ token: "comment.line.double-slash", regex: /$|^/, next: "pop" }, {defaultToken: "comment.line.double-slash"}], block_comment: [{token: "comment.block", regex: /\*\//, next: "pop"}, {defaultToken: "comment.block"}] }, this.normalizeRules() }; r.inherits(s, i), t.provnHighlightRules = s });
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Dessine une ellipse dans un canvas * @param {CanvasRenderingContext2D} ctx le contexte graphique du canvas * @param {number} cx l'abscisse du centre de l'ellipse * @param {number} cy l'ordonnée du centre de l'ellipse * @param {number} rx le rayon horizontal de l'ellipse * @param {number} ry le rayon vertical de l'ellipse * @param {number} angle l'angle (en degrés) de l'ellipse par rapport à l'horizontale * @param {string} style le style de tracé (couleur) pour le contour de l'ellipse */ function ellipse(ctx, cx, cy, rx, ry, angle, style) { ctx.save(); // sauvegarde l'état du contexte graphique ctx.beginPath(); ctx.translate(cx, cy); ctx.rotate(angle * Math.PI / 180); ctx.scale(rx, ry); ctx.arc(0, 0, 1, 0, 2 * Math.PI, false); ctx.restore(); // restaure l'état original du contexte graphique ctx.save(); if (style) { ctx.strokeStyle = style; } ctx.stroke(); ctx.restore(); } function dessiner() { var k = parseFloat(document.getElementById("nbr").value); k = k - 1; var canvas = document.getElementById("c"); var ctx = canvas.getContext("2d"); for (var i = 0; i < 2 * k; i++) { ellipse(ctx, canvas.width / 2, canvas.height / 2, 200, 40, (90 / k) * i, 'blue'); } } function effacer() { var canvas = document.getElementById("c"); var ctx = canvas.getContext("2d"); ctx.clearRect(0, 0, canvas.width, canvas.height); }
module.exports = function (Mocha, casper, utils) { var currentDone, currentTest, f = utils.format, reportError = function() { casper.checker = null if (currentDone && (!currentTest || !currentTest.state)) { // the first error takes priority currentDone(currentTest.errors && currentTest.errors[0]) } }, failTest = function(error) { casper.unwait() clearInterval(casper.checker) if (currentTest.errors) { currentTest.errors.push(error) } else { currentTest.errors = [error] } if ( casper.step < casper.steps.length ) { casper.run(function() { reportError(); }); } else { reportError(); } }, resetSteps = function() { casper.bypass(casper.steps.length) } Mocha.prototype.failCurrentTest = failTest; // hookup to all the various casper error events and save that error to report to mocha later [ 'error', 'wait.error', 'waitFor.timeout.error', 'event.error', 'complete.error', 'step.error' ].forEach(function(event) { casper.on(event, function(error) { failTest(error) }) }) casper.on('waitFor.timeout', function(timeout, details) { resetSteps() var message = f('waitFor timeout of %dms occured', timeout) details = details || {} if (details.selector) { message = f(details.waitWhile ? '"%s" never went away in %dms' : '"%s" still did not exist %dms', details.selector, timeout) } else if (details.visible) { message = f(details.waitWhile ? '"%s" never disappeared in %dms' : '"%s" never appeared in %dms', details.visible, timeout) } else if (details.url) { message = f('%s did not load in %dms', details.url, timeout) } else if (details.popup) { message = f('%s did not pop up in %dms', details.popup, timeout) } else if (details.text) { message = f('"%s" did not appear in the page in %dms', details.text, timeout) } else if (details.selectorTextChange) { message = f('"%s" did not have a text change in %dms', details.selectorTextChange, timeout) } else if (typeof details.testFx === 'Function') { message = f('"%s" did not appear in the page in %dms', details.testFx.toString(), timeout) } failTest(new Error(message)) }) casper.on('step.timeout', function(step) { resetSteps() failTest(new Error(f('step %d timed out (%dms)', step, casper.options.stepTimeout))) }) casper.on('timeout', function() { resetSteps() failTest(new Error(f('Load timeout of (%dms)', casper.options.timeout))) }) // clear Casper's default handlers for these as we handle everything through events casper.options.onTimeout = casper.options.onWaitTimeout = casper.options.onStepTimeout = function() {} // casper will exit on step failure by default casper.options.silentErrors = true // Method for patching mocha to run casper steps is inspired by https://github.com/domenic/mocha-as-promised // Object.defineProperties(Mocha.Runnable.prototype, { fn: { configurable: true, enumerable: true, get: function () { return this.casperWraperFn; }, set: function (fn) { Object.defineProperty(this, 'casperWraperFn', { value: function (done) { currentTest = this.test currentDone = done // Run the original `fn`, passing along `done` for the case in which it's callback-asynchronous. // Make sure to forward the `this` context, since you can set variables and stuff on it to share // within a suite. fn.call(this, done) // only flush the casper steps on test Runnables, // and if there are steps not ran, // and no set of steps are running (casper.checker is the setInterval for the checkSteps call) if (currentTest && casper.steps && casper.steps.length && casper.step < casper.steps.length && !casper.checker) { casper.run(function () { casper.checker = null if (!currentTest || !currentTest.state) { done() } }) } else if (fn.length === 0 && currentTest && !currentTest.state) { // If `fn` is synchronous (i.e. didn't have a `done` parameter and didn't return a promise), // call `done` now. (If it's callback-asynchronous, `fn` will call `done` eventually since // we passed it in above.) done() } }, writable: true, configurable: true }) this.casperWraperFn.toString = function () { return fn.toString(); } } }, async: { configurable: true, enumerable: true, get: function () { return typeof this.casperWraperFn === 'function' }, set: function () { // Ignore Mocha trying to set this - tests are always asyncronous with our wrapper } } }) // Mocha needs the formating feature of console.log so copy node's format function and // monkey-patch it into place. This code is copied from node's, links copyright applies. // https://github.com/joyent/node/blob/master/lib/util.js console.format = function (f) { var i; if (typeof f !== 'string') { var objects = []; for (i = 0; i < arguments.length; i++) { objects.push(JSON.stringify(arguments[i])); } return objects.join(' '); } i = 1; var args = arguments; var len = args.length; var str = String(f).replace(/%[sdj%]/g, function(x) { if (x === '%%') return '%'; if (i >= len) return x; switch (x) { case '%s': return String(args[i++]); case '%d': return Number(args[i++]); case '%j': return JSON.stringify(args[i++]); default: return x; } }); for (var x = args[i]; i < len; x = args[++i]) { if (x === null || typeof x !== 'object') { str += ' ' + x; } else { str += ' ' + JSON.stringify(x); } } return str; }; var origError = console.error, origLog = console.log console.error = function() { origError.call(console, console.format.apply(console, arguments)) } console.log = function() { origLog.call(console, console.format.apply(console, arguments)) } // Since we're using the precompiled version of mocha usually meant for the browser, // patch the expossed process object (thanks mocha-phantomjs users for ensuring it's exposed) // https://github.com/visionmedia/mocha/issues/770 Mocha.process = Mocha.process || {} Mocha.process.stdout = require('system').stdout }
/** * Created by zuozhuo on 2017/5/10. */
//Cache db in memory to only read db file once per worker db = {}; var start = function () { db.home = {}; require('fs').readFileSync('./db/home.db').toString().split(/\r?\n/).forEach(function (line) { var l = JSON.parse(line); db.home[l.key] = l.val; }); db.breads = {}; require('fs').readFileSync('./db/breads.db').toString().split(/\r?\n/).forEach(function (line) { var l = JSON.parse(line); db.breads[l.key] = l.val; }); } exports.start = start;
/*! formstone v1.4.20 [cookie.js] 2021-01-29 | GPL-3.0 License | formstone.it */ /* global define */ (function(factory) { if (typeof define === "function" && define.amd) { define([ "jquery", "./core" ], factory); } else { factory(jQuery, Formstone); } }(function($, Formstone) { "use strict"; /** * @method private * @name delegate * @param key [string] "Cookie key" * @param value [string] "Cookie value" * @param options [object] "Options object" * @return [null || string] "Cookie value, if 'read'" */ function delegate(key, value, options) { if (typeof key === "object") { // Set defaults Defaults = $.extend(Defaults, key); } else { // Delegate intent options = $.extend({}, Defaults, options || {}); if (typeof key !== "undefined") { if (typeof value !== "undefined") { if (value === null) { eraseCookie(key, options); } else { createCookie(key, value, options); } } else { return readCookie(key); } } } return null; } /** * @method * @name create * @description Creates a cookie. * @param key [string] "Cookie key" * @param value [string] "Cookie value" * @param options [object] "Options object" * @example $.cookie(key, value, options); */ function createCookie(key, value, options) { var expiration = false, date = new Date(); // Check Expiration Date if (options.expires && typeof options.expires === "number") { date.setTime(date.getTime() + options.expires); expiration = date.toGMTString(); } var domain = (options.domain) ? "; domain=" + options.domain : "", expires = (expiration) ? "; expires=" + expiration : "", maxAge = (expiration) ? "; max-age=" + (options.expires / 1000) : "", // to seconds path = (options.path) ? "; path=" + options.path : "", secure = (options.secure) ? "; secure" : ""; // Set Cookie Document.cookie = key + "=" + value + expires + maxAge + domain + path + secure; } /** * @method * @name read * @description Returns a cookie's value, or null. * @param key [string] "Cookie key" * @return [string | null] "Cookie's value, or null" * @example var value = $.cookie(key); */ function readCookie(key) { var keyString = key + "=", cookies = Document.cookie.split(';'); // Loop Cookies for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i]; while (cookie.charAt(0) === ' ') { cookie = cookie.substring(1, cookie.length); } // Return Match if (cookie.indexOf(keyString) === 0) { return cookie.substring(keyString.length, cookie.length); } } return null; } /** * @method * @name erase * @description Deletes a cookie. * @param key [string] "Cookie key" * @example $.cookie(key, null); */ function eraseCookie(key, options) { createCookie(key, "", $.extend({}, options, { expires: -604800000 // -7 days })); } /** * @plugin * @name Cookie * @description A jQuery plugin for simple access to browser cookies. * @type utility * @main cookie.js * @dependency jQuery * @dependency core.js */ var Plugin = Formstone.Plugin("cookie", { utilities: { _delegate: delegate } }), /** * @options * @param domain [string] "Cookie domain" * @param expires [int] <604800000> "Time until cookie expires" * @param path [string] "Cookie path" */ Defaults = { domain: null, expires: 604800000, // 7 days path: null, secure: null }, // Localize References Document = Formstone.document; }) );
import Head from 'next/head'; export default () => ( <div> <Head> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta httpEquiv="X-UA-Compatible" content="ie=edge" /> <meta name="Deploying with Now" content="Deploying with Now" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css" async /> <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" async /> <title>RCWS Development</title> </Head> <style jsx global>{` * { box-sizing: border-box; } body { align-items: center; background-color: #005444; color: #123456; display: flex; flex-direction: column; font-family: Source Code Pro, monospace; font-size: 2em; height: 100vh; justify-content: center; margin: 0; overflow-x: hidden; padding: 0; width: 100vw; } a { color: #005444; text-decoration: none; } a:visited { color: #005444; } a:hover { color: #123456; text-decoration: underline; text-decoration-color: red; } `}</style> </div> );
var Address = require('./address') var assert = require('assert') var base58 = require('./base58') var convert = require('./convert') var CJS = require('crypto-js') var crypto = require('./crypto') var ECKey = require('./eckey').ECKey var ECPubKey = require('./eckey').ECPubKey var format = require('util').format var Network = require('./network') function HmacSHA512(buffer, secret) { var words = convert.bytesToWordArray(buffer) var hash = CJS.HmacSHA512(words, secret) return convert.wordArrayToBytes(hash) } function HDWallet(seed, network) { if (seed === undefined) return; var I = HmacSHA512(seed, 'Bitcoin seed') this.chaincode = I.slice(32) this.network = network || 'mainnet' if(!Network.hasOwnProperty(this.network)) { throw new Error("Unknown network: " + this.network) } this.priv = new ECKey(I.slice(0, 32).concat([1]), true) this.pub = this.priv.getPub() this.index = 0 this.depth = 0 } HDWallet.HIGHEST_BIT = 0x80000000 HDWallet.LENGTH = 78 function arrayEqual(a, b) { return !(a < b || a > b) } HDWallet.fromSeedHex = function(hex, network) { return new HDWallet(convert.hexToBytes(hex), network) } HDWallet.fromSeedString = function(string, network) { return new HDWallet(convert.stringToBytes(string), network) } HDWallet.fromBase58 = function(string) { var buffer = base58.decode(string) var payload = buffer.slice(0, -4) var checksum = buffer.slice(-4) var newChecksum = crypto.hash256(payload).slice(0, 4) assert.deepEqual(newChecksum, checksum) assert.equal(payload.length, HDWallet.LENGTH) return HDWallet.fromBytes(payload) } HDWallet.fromHex = function(input) { return HDWallet.fromBytes(convert.hexToBytes(input)) } HDWallet.fromBytes = function(input) { // This 78 byte structure can be encoded like other Bitcoin data in Base58. (+32 bits checksum) if (input.length != HDWallet.LENGTH) { throw new Error(format('Invalid input length, %s. Expected %s.', input.length, HDWallet.LENGTH)) } // FIXME: transitionary fix if (Buffer.isBuffer(input)) { input = Array.prototype.map.bind(input, function(x) { return x })() } var hd = new HDWallet() // 4 byte: version bytes (mainnet: 0x0488B21E public, 0x0488ADE4 private // testnet: 0x043587CF public, 0x04358394 private) var versionBytes = input.slice(0, 4) var versionWord = convert.bytesToWords(versionBytes)[0] var type for(var name in Network) { var network = Network[name] for(var t in network.hdVersions) { if (versionWord != network.hdVersions[t]) continue type = t hd.network = name } } if (!hd.network) { throw new Error(format('Could not find version %s', convert.bytesToHex(versionBytes))) } // 1 byte: depth: 0x00 for master nodes, 0x01 for level-1 descendants, ... hd.depth = input[4] // 4 bytes: the fingerprint of the parent's key (0x00000000 if master key) hd.parentFingerprint = input.slice(5, 9) assert((hd.depth === 0) == arrayEqual(hd.parentFingerprint, [0, 0, 0, 0])) // 4 bytes: child number. This is the number i in xi = xpar/i, with xi the key being serialized. // This is encoded in MSB order. (0x00000000 if master key) hd.index = convert.bytesToNum(input.slice(9, 13).reverse()) assert(hd.depth > 0 || hd.index === 0) // 32 bytes: the chain code hd.chaincode = input.slice(13, 45) // 33 bytes: the public key or private key data (0x02 + X or 0x03 + X for // public keys, 0x00 + k for private keys) if (type == 'priv') { hd.priv = new ECKey(input.slice(46, 78).concat([1]), true) hd.pub = hd.priv.getPub() } else { hd.pub = new ECPubKey(input.slice(45, 78), true) } return hd } HDWallet.prototype.getIdentifier = function() { return crypto.hash160(this.pub.toBytes()) } HDWallet.prototype.getFingerprint = function() { return Array.prototype.slice.call(this.getIdentifier(), 0, 4) } HDWallet.prototype.getAddress = function() { return new Address(crypto.hash160(this.pub.toBytes()), this.getKeyVersion()) } HDWallet.prototype.toBytes = function(priv) { var buffer = [] // Version // 4 byte: version bytes (mainnet: 0x0488B21E public, 0x0488ADE4 private; testnet: 0x043587CF public, // 0x04358394 private) var version = Network[this.network].hdVersions[priv ? 'priv' : 'pub'] var vBytes = convert.wordsToBytes([version]) buffer = buffer.concat(vBytes) assert.equal(buffer.length, 4) // Depth // 1 byte: depth: 0x00 for master nodes, 0x01 for level-1 descendants, .... buffer.push(this.depth) assert.equal(buffer.length, 4 + 1) // 4 bytes: the fingerprint of the parent's key (0x00000000 if master key) buffer = buffer.concat(this.depth ? this.parentFingerprint : [0, 0, 0, 0]) assert.equal(buffer.length, 4 + 1 + 4) // 4 bytes: child number. This is the number i in xi = xpar/i, with xi the key being serialized. // This is encoded in MSB order. (0x00000000 if master key) buffer = buffer.concat(convert.numToBytes(this.index, 4).reverse()) assert.equal(buffer.length, 4 + 1 + 4 + 4) // 32 bytes: the chain code buffer = buffer.concat(this.chaincode) assert.equal(buffer.length, 4 + 1 + 4 + 4 + 32) // 33 bytes: the public key or private key data // (0x02 + X or 0x03 + X for public keys, 0x00 + k for private keys) if (priv) { assert(this.priv, 'Cannot serialize to private without private key') buffer.push(0) buffer = buffer.concat(this.priv.toBytes().slice(0, 32)) } else { buffer = buffer.concat(this.pub.toBytes(true)) } return buffer } HDWallet.prototype.toHex = function(priv) { var bytes = this.toBytes(priv) return convert.bytesToHex(bytes) } HDWallet.prototype.toBase58 = function(priv) { var buffer = new Buffer(this.toBytes(priv)) var checksum = crypto.hash256(buffer).slice(0, 4) return base58.encode(Buffer.concat([ buffer, checksum ])) } HDWallet.prototype.derive = function(i) { var I , iBytes = convert.numToBytes(i, 4).reverse() , cPar = this.chaincode , usePriv = i >= HDWallet.HIGHEST_BIT , SHA512 = CJS.algo.SHA512 if (usePriv) { assert(this.priv, 'Private derive on public key') // If 1, private derivation is used: // let I = HMAC-SHA512(Key = cpar, Data = 0x00 || kpar || i) [Note:] var kPar = this.priv.toBytes().slice(0, 32) I = HmacFromBytesToBytes(SHA512, [0].concat(kPar, iBytes), cPar) } else { // If 0, public derivation is used: // let I = HMAC-SHA512(Key = cpar, Data = χ(kpar*G) || i) var KPar = this.pub.toBytes(true) I = HmacFromBytesToBytes(SHA512, KPar.concat(iBytes), cPar) } // Split I = IL || IR into two 32-byte sequences, IL and IR. var IL = I.slice(0, 32) , IR = I.slice(32) var hd = new HDWallet() hd.network = this.network if (this.priv) { // ki = IL + kpar (mod n). hd.priv = this.priv.add(new ECKey(IL.concat([1]))) hd.priv.compressed = true hd.priv.version = this.getKeyVersion() hd.pub = hd.priv.getPub() } else { // Ki = (IL + kpar)*G = IL*G + Kpar hd.pub = this.pub.add(new ECKey(IL.concat([1]), true).getPub()) } // ci = IR. hd.chaincode = IR hd.parentFingerprint = this.getFingerprint() hd.depth = this.depth + 1 hd.index = i hd.pub.compressed = true return hd } HDWallet.prototype.derivePrivate = function(index) { return this.derive(index + HDWallet.HIGHEST_BIT) } HDWallet.prototype.getKeyVersion = function() { return Network[this.network].addressVersion } HDWallet.prototype.toString = HDWallet.prototype.toBase58 function HmacFromBytesToBytes(hasher, message, key) { var hmac = CJS.algo.HMAC.create(hasher, convert.bytesToWordArray(key)) hmac.update(convert.bytesToWordArray(message)) return convert.wordArrayToBytes(hmac.finalize()) } module.exports = HDWallet
'use strict'; import React from 'react'; import PortfolioStore from 'stores/PortfolioStore'; import PortfolioActions from 'actions/PortfolioActions'; class HeaderComponent extends React.Component { constructor(props) { super(props); this.state = PortfolioStore.getState(); } componentDidMount() { PortfolioStore.listen(this.onChange.bind(this)); } componentWillUnmount() { PortfolioStore.unlisten(this.onChange.bind(this)); } onChange(state) { this.setState(state); } getHeading() { if (this.state.portfolio) { return this.state.portfolio.header.heading; } } getSubheading() { if (this.state.portfolio) { return this.state.portfolio.header.subheading; } } render() { return ( <div className="header-component"> <div className="header-component_heading"> <h1 className="font-heading">{this.getHeading()}</h1> <h3 className="font-subheading">{this.getSubheading()}</h3> </div> </div> ); } } HeaderComponent.displayName = 'HeaderComponent'; // Uncomment properties you need // HeaderComponent.propTypes = {}; // HeaderComponent.defaultProps = {}; export default HeaderComponent;
import {compileVertexShader, compileFragmentShader} from './compile-shader'; import {clamp, lerp} from 'math.gl'; const shaderCache = {}; export const COLOR_MODE = { NONE: 0, DEPTH: 1, FRAGMENT: 2 }; const MIN_DEPTH_COLOR = [1, 1, 0, 1]; const MAX_DEPTH_COLOR = [0, 0, 1, 1]; const DISCARDED_FRAG_COLOR = [1, 0, 0, 1]; export default ({model, draw, colorMode = COLOR_MODE.NONE}) => { const shaders = getShaders(model); // draw params const {uniforms} = model.program; const { instancedAttributes, vertexAttributes, indices, attributeValues, vertexCount } = sortAttributes(model._attributes); const drawMode = model.getDrawMode(); const instanceCount = model.instanceCount || 1; // iterate through all instances for (let i = 0; i < instanceCount; i++) { const ai = getAttributeAtIndex(instancedAttributes, i, attributeValues); const positions = []; const colors = []; // iterate through all vertices for (let j = 0; j < vertexCount; j++) { const aj = Object.assign({}, ai, getAttributeAtIndex(vertexAttributes, j, attributeValues)); const {position, color} = renderVertex(shaders, uniforms, aj, colorMode); positions[j] = position; colors[j] = color; } draw({indices, drawMode, positions, colors}); } }; // Transpile shaders of a model to JavaScript function getShaders(model) { const {id, program} = model; let vs = shaderCache[program.vs.source]; if (!vs) { vs = compileVertexShader(`${id}-vs`, program.vs.source); shaderCache[program.vs.source] = vs; } let fs = shaderCache[program.fs.source]; if (!fs) { fs = compileFragmentShader(`${id}-fs`, program.fs.source); shaderCache[program.fs.source] = fs; } return {vs, fs}; } // Sort attributes by instanced and indexed function sortAttributes(attributes) { const attributeValues = {}; const instancedAttributes = {}; const vertexAttributes = {}; let indexAttribute = null; let vertexCount = 1; for (const attributeName in attributes) { const attribute = attributes[attributeName]; if (attribute.isIndexed) { indexAttribute = attribute; } else if (attribute.divisor) { instancedAttributes[attributeName] = attribute; } else { vertexAttributes[attributeName] = attribute; if (!attribute.constant) { vertexCount = attribute.getBuffer().getElementCount() / attribute.size; } } attributeValues[attributeName] = !attribute.constant && attribute.getBuffer().getData(); } let indices; if (indexAttribute) { indices = attributeValues[indexAttribute.id]; } else { indices = Array.from({length: vertexCount}, (d, i) => i); } return {instancedAttributes, vertexAttributes, indices, attributeValues, vertexCount}; } // Get single attribute value by vertex index function getAttributeAtIndex(attributes, i, values) { const result = {}; for (const attributeName in attributes) { const attribute = attributes[attributeName]; if (attribute.constant) { result[attributeName] = attribute.value; } else { const {size} = attribute; const value = values[attributeName].subarray(i * size, (i + 1) * size); result[attributeName] = Array.from(value); } } return result; } // Get the position and color of a single vertex function renderVertex(shaders, uniforms, attributes, colorMode) { // Run vertex shader const {gl_Position, varyings} = shaders.vs(uniforms, attributes); let color; switch (colorMode) { case COLOR_MODE.DEPTH: { const depth = clamp(gl_Position[2] / gl_Position[3], -1, 1); color = lerp(MIN_DEPTH_COLOR, MAX_DEPTH_COLOR, (depth + 1) / 2); break; } case COLOR_MODE.FRAGMENT: { // Run fragment shader const {gl_FragColor, isDiscarded} = shaders.fs(uniforms, varyings); color = isDiscarded ? DISCARDED_FRAG_COLOR : gl_FragColor; break; } default: } return {position: gl_Position, color}; }
var onReady = function(){ $('#admin_page_controller').hide(); $('#text_event_name').text("Error: Invalid event name "); var eventName = getURLParameter("q"); if (eventName != null && eventName !== '' ) { $('#text_event_name').text("Event name: " + eventName); } }; $(document).ready(onReady); angular.module('teamform-admin-app', ['firebase']) .controller('AdminCtrl', ['$scope', '$firebaseObject', '$firebaseArray', function($scope, $firebaseObject, $firebaseArray) { // TODO: implementation of AdminCtrl // Initialize $scope.param as an empty JSON object $scope.param = {}; // Call Firebase initialization code defined in site.js initializeFirebase(); var refPath, ref, eventName; eventName = getURLParameter("q"); refPath = "event/"+ eventName + "/admin/param"; ref = firebase.database().ref(refPath); // Link and sync a firebase object $scope.param = $firebaseObject(ref); $scope.param.$loaded() .then( function(data) { // Fill in some initial values when the DB entry doesn't exist if(typeof $scope.param.maxTeamSize == "undefined"){ $scope.param.maxTeamSize = 10; } if(typeof $scope.param.minTeamSize == "undefined"){ $scope.param.minTeamSize = 1; } $scope.param.likes = 0; // Enable the UI when the data is successfully loaded and synchornized $('#admin_page_controller').show(); }) .catch(function(error) { // Database connection error handling... //console.error("Error:", error); }); refPath = "event/" + eventName + "/team"; $scope.team = []; $scope.team = $firebaseArray(firebase.database().ref(refPath)); refPath = "event/" + eventName + "/member"; $scope.member = []; $scope.member = $firebaseArray(firebase.database().ref(refPath)); $scope.changeMinTeamSize = function(delta) { var newVal = $scope.param.minTeamSize + delta; if ((newVal >=1) && (newVal <= $scope.param.maxTeamSize) ) { $scope.$apply($scope.param.minTeamSize = newVal); } } $scope.changeMaxTeamSize = function(delta) { var newVal = $scope.param.maxTeamSize + delta; if ((newVal >=1) && (newVal >= $scope.param.minTeamSize )) { $scope.param.maxTeamSize = newVal; } } $scope.saveFunc = function() { $scope.param.$save(); // Finally, go back to the front-end window.location.href= "index.html"; } }]);
search_result['1912']=["topic_00000000000004A5_methods--.html","BlobDirectory Methods",""];
import {APP_URL} from './AppConstants'; export const BASE_URL = APP_URL; export const LIST_URL = BASE_URL + 'api/songsheets'; export const ITEM_URL = BASE_URL + 'api/songsheets/'; export const SIMILAR_URL = BASE_URL + 'api/similarity/'; export const DELETE_URL = BASE_URL + 'api/protected/songsheet/delete/'; export const ROWS = 12; export const UPDATE_SONGSHEET_START = 'UPDATE_SONGSHEET_START'; export const LOAD_LIST = 'LOAD_LIST'; export const LOAD_ITEM = 'LOAD_ITEM'; export const UPDATE_SIMILAR = 'UPDATE_SIMILAR'; export const DELETE_SONGSHEET = 'DELETE_SONGSHEET'; export const IMAGE_WIDTH = 2743; export const IMAGE_HEIGHT = 3440; export const THUMBNAIL_PREFIX = 'thumbnail.'; export const DOWNLOAD_PATH = '/api/songsheets/download/';
import"./index-a1fc4272.js";import{C as e}from"./component-7d7d1a18.js";export default class extends e{static get params(){return{input:!0,localized:!0,component:"dateinput",props:["value","begin","end","mode","host","placeholder"]}}}
/* (The MIT License) Copyright (C) 2005-2013 Kai Davenport Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** * Module dependencies. */ var EventEmitter = require('events').EventEmitter; var util = require('util'); var eyes = require('eyes'); var async = require('async'); var _ = require('lodash'); var Node = require('./proto'); var dye = require('dye'); var Device = require('../device'); var Warehouse = require('../../warehouse'); var Supplier = require('../../supplier'); /* quarry.io - api node virtual host for api servers */ module.exports = function(trim, node, callback){ /* we pass this into the api handlers so they have access to the system tings */ var system = { id:worker.stackid, cache:self.cache, worker:worker } //rpcserver.on('message', supplychain.handle); /* now build up each service */ async.forEach(node.find('service').containers(), function(service, nextservice){ var module = service.attr('module'); var route = service.attr('mount'); /* this will become the Quarry handler */ var fn = null; var moduleoptions = _.extend({}, service.attr(), { stackpath:stackpath }) _.each(moduleoptions, function(val, prop){ if(prop.indexOf('__stack.')==0){ moduleoptions[prop] = system.worker.stack[prop.substr('__stack.'.length)]; } }) /* is it a custom module */ if(!module.match(/^quarry\./)){ var codepath = self.codepath(module); var loadedmodule = require(codepath); fn = loadedmodule(moduleoptions, system); } /* no it's a quarry supplier */ else{ fn = Supplier(module, moduleoptions, system); } /* do we have middleware to wrap or are we going in raw? */ if(service.attr('middleware') && service.attr('middleware').length>0){ var apifn = fn; fn = Warehouse(); _.each(service.attr('middleware'), function(middlewareoptions){ if(!middlewareoptions.module.match(/^quarry\./)){ var codepath = self.codepath(middlewareoptions.module); var loadedmiddlewaremodule = require(codepath); var middlewarefn = loadedmodule(middlewareoptions, system); fn.use(middlewarefn); } else{ var middlewarefn = Supplier.middleware[middlewareoptions.module.replace(/^quarry\./, '')](middlewareoptions, system); fn.use(middlewarefn); } }) fn.use(apifn); } var wrapper = supplychain.wrapper(route, fn); /* mount the quarryfn on the supply chain */ route=='/' ? supplychain.use(wrapper) : supplychain.use(route, wrapper); nextservice(); }, next) } ], function(){ callback(); }) }
import { Container, Sprite } from 'pixi.js'; import { Application } from 'engine'; export default class GameApp extends Application { constructor(services) { super(services); this.renderer.backgroundColor = 0x204080; this.stage = new Container; } preload(loader) { loader.add('player', 'images/player.png'); } ready(resources) { let sprite = new Sprite(resources.player.texture); sprite.position.set(10, 10); this.stage.addChild(sprite); sprite = new Sprite(resources.player.texture); sprite.position.set(30, 30); sprite.scale.set(2, 2); this.stage.addChild(sprite); } render() { this.renderer.render(this.stage); } }
define(['exports', 'module', 'react', 'classnames'], function (exports, module, _react, _classnames) { 'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; } var _React = _interopRequireDefault(_react); var _classnames2 = _interopRequireDefault(_classnames); console.warn('This file is deprecated, and will be removed in v0.24.0. Use react-bootstrap.js or react-bootstrap.min.js instead.'); console.warn('You can read more about it at https://github.com/react-bootstrap/react-bootstrap/issues/693'); var ModalHeader = (function (_React$Component) { function ModalHeader() { _classCallCheck(this, ModalHeader); if (_React$Component != null) { _React$Component.apply(this, arguments); } } _inherits(ModalHeader, _React$Component); _createClass(ModalHeader, [{ key: 'render', value: function render() { return _React['default'].createElement( 'div', _extends({}, this.props, { className: (0, _classnames2['default'])(this.props.className, this.props.modalClassName) }), this.props.closeButton && _React['default'].createElement( 'button', { className: 'close', 'aria-label': this.props['aria-label'] || 'Close', onClick: this.props.onHide, style: { marginTop: -2 } }, _React['default'].createElement( 'span', { 'aria-hidden': 'true' }, '×' ) ), this.props.children ); } }]); return ModalHeader; })(_React['default'].Component); //used in liue of parent contexts right now to auto wire the close button ModalHeader.__isModalHeader = true; ModalHeader.propTypes = { /** * A css class applied to the Component */ modalClassName: _React['default'].PropTypes.string, /** * Specify whether the Component should contain a close button */ closeButton: _React['default'].PropTypes.bool, /** * A Callback fired when the close button is clicked. If used directly inside a Modal component, the onHide will automatically * be propagated up to the parent Modal `onHide`. */ onHide: _React['default'].PropTypes.func }; ModalHeader.defaultProps = { modalClassName: 'modal-header', closeButton: false }; module.exports = ModalHeader; }); //eslint-disable-line react/prop-types
($ => { "use strict"; window.DragDropHelper = function (ext) { let sidebarPos = null; let oldAboveElm = null; let oldTopVal = 0; let dirOpenTimeout = null; let edgeScroll = { running: false, posY: null, previousDelta: 0, fpsLimit: 30 }; /** * Initializes the events for the drag n drop functionality * * @returns {Promise} */ this.init = async () => { sidebarPos = ext.helper.model.getData("b/sidebarPosition"); initEvents(); initExternalDragDropEvents(); }; /** * Checks if the dragged element is outside of the sidebar, so the mouseup will cause an abort and not a repositioning * * @param {jsu|int} elm * @returns {boolean} */ let isDraggedElementOutside = (elm) => { let offset = 0; if (typeof elm === "object") { let boundClientRect = elm[0].getBoundingClientRect(); offset = boundClientRect.left; } else { offset = +elm; } if (sidebarPos === "right") { offset = window.innerWidth - offset; } if (typeof elm === "object") { return elm.realWidth() * 0.6 + offset > ext.elements.sidebar.realWidth(); } else { return offset > ext.elements.sidebar.realWidth(); } }; /** * Initialises the eventhandler for external elements beeing dragged into the sidebar (e.g. a link, an image, ...) * * @returns {Promise} */ let initExternalDragDropEvents = async () => { ext.elements.iframeBody.on("dragenter", () => { ext.helper.contextmenu.close(); ext.helper.tooltip.close(); ext.elements.iframeBody.addClass(ext.opts.classes.drag.isDragged); ext.elements.iframe.removeClass(ext.opts.classes.page.hideMask); trackStart("selection"); if (!edgeScroll.running) { window.requestAnimationFrame(edgeScrolling); } }).on("drop dragend", (e) => { e.preventDefault(); e.stopPropagation(); edgeScroll.posY = null; if (ext.elements.iframeBody.hasClass(ext.opts.classes.drag.isDragged)) { // something has been dragged if (!isDraggedElementOutside(e.pageX)) { // only proceed if mouse position is in the sidebar let entryPlaceholder = ext.elements.bookmarkBox["all"].find("li." + ext.opts.classes.drag.isDragged).eq(0); if (entryPlaceholder && entryPlaceholder.length() > 0) { let url = e.dataTransfer.getData('URL'); let title = ""; if (location.href === url) { title = $(document).find("title").text(); } trackEnd("selection"); ext.helper.overlay.create("add", ext.helper.i18n.get("contextmenu_add"), { values: { index: entryPlaceholder.prevAll("li").length(), parentId: entryPlaceholder.parent("ul").prev("a").attr(ext.opts.attr.id), title: title, url: url } }); } } else { trackEnd("selection", true); } ext.elements.iframeBody.removeClass(ext.opts.classes.drag.isDragged); if (ext.helper.utility.sidebarHasMask() === false) { ext.elements.iframe.addClass(ext.opts.classes.page.hideMask); } } }); }; /** * Returns the type of the element which is dragged * * @param {jsu|string} elm */ let getDragType = (elm) => { let type = "bookmark"; if (elm === "selection") { // element is text type = elm; } else if (elm.data("type")) { // element type is cached in data obj type = elm.data("type"); } else { // determine type of given element if (elm.hasClass(ext.opts.classes.sidebar.bookmarkDir)) { type = "directory"; } else if (elm.hasClass(ext.opts.classes.sidebar.separator)) { type = "separator"; } else if (elm.parent("li." + ext.opts.classes.sidebar.entryPinned).length() > 0) { type = "pinned"; } elm.data("type", type); } return type; }; /** * Tracks that an element is beeing dragged * * @param {jsu|string} elm */ let trackStart = (elm) => { ext.helper.model.call("trackEvent", { category: "dragndrop", action: getDragType(elm), label: "dragstart" }); }; /** * Tracks that an element is no longer dragged * * @param {jsu|string} elm * @param {boolean} cancel */ let trackEnd = (elm, cancel = false) => { ext.helper.model.call("trackEvent", { category: "dragndrop", action: getDragType(elm), label: cancel ? "cancel" : "dragend" }); }; /** * Start dragging an element (bookmark or directory) * * @param {Element} node * @param {int} x * @param {int} y */ let dragstart = (node, x, y) => { ext.helper.contextmenu.close(); ext.helper.tooltip.close(); let elm = $(node).parent("a").removeClass(ext.opts.classes.sidebar.dirOpened); let data = {}; if (!elm.hasClass(ext.opts.classes.sidebar.separator)) { data = ext.helper.entry.getData(elm.attr(ext.opts.attr.id)); if (data === null) { return false; } } let elmParent = elm.parent("li"); let parentTrigger = elmParent.parent("ul").prev("a"); ext.elements.iframeBody.addClass(ext.opts.classes.drag.isDragged); elmParent.clone().addClass(ext.opts.classes.drag.dragInitial).insertAfter(elmParent); let helper = elm.clone().appendTo(ext.elements.iframeBody); let boundClientRect = elm[0].getBoundingClientRect(); let index = 0; elmParent.prevAll("li").forEach((entry) => { if (!$(entry).hasClass(ext.opts.classes.drag.dragInitial) && $(entry).children("a." + ext.opts.classes.sidebar.separator).length() === 0) { index++; } }); helper.removeAttr("title").css({ top: boundClientRect.top + "px", left: boundClientRect.left + "px", width: elm.realWidth() + "px" }).data({ elm: elmParent, isDir: !!(data.isDir), parentId: parentTrigger.length() > 0 ? parentTrigger.attr(ext.opts.attr.id) : null, index: index, startPos: { top: y - boundClientRect.top, left: x - boundClientRect.left } }).addClass(ext.opts.classes.drag.helper); elmParent.addClass(ext.opts.classes.drag.isDragged); trackStart(elm); if (!edgeScroll.running) { window.requestAnimationFrame(edgeScrolling); } }; /** * Scrolls the bookmark list automatically when the user drags an element near the top or bottom of the list * * @param {int} currentDelta */ let edgeScrolling = (currentDelta) => { window.requestAnimationFrame(edgeScrolling); let delta = currentDelta - edgeScroll.previousDelta; if (edgeScroll.fpsLimit && delta < 1000 / edgeScroll.fpsLimit) { return; } if (edgeScroll.posY !== null) { let bookmarkBoxTopOffset = ext.elements.bookmarkBox["all"][0].offsetTop; let bookmarkBoxHeight = ext.elements.bookmarkBox["all"][0].offsetHeight; let scrollPos = ext.helper.scroll.getScrollPos(ext.elements.bookmarkBox["all"]); let newScrollPos = null; if (edgeScroll.posY - bookmarkBoxTopOffset < 60) { newScrollPos = scrollPos - Math.pow((50 - edgeScroll.posY + bookmarkBoxTopOffset) / 10, 2); } else if (edgeScroll.posY + 60 > bookmarkBoxHeight) { newScrollPos = scrollPos + Math.pow((edgeScroll.posY + 50 - bookmarkBoxHeight) / 10, 2); } if (newScrollPos) { ext.helper.scroll.setScrollPos(ext.elements.bookmarkBox["all"], newScrollPos); } } edgeScroll.previousDelta = currentDelta; }; /** * Stop dragging an element (bookmark or directory) */ let dragend = () => { clearDirOpenTimeout(); let draggedElm = ext.elements.iframeBody.children("a." + ext.opts.classes.drag.helper); let dragInitialElm = ext.elements.bookmarkBox["all"].find("li." + ext.opts.classes.drag.dragInitial); let entryElm = draggedElm.data("elm"); let prevParentId = draggedElm.data("parentId"); let prevIndex = draggedElm.data("index"); let elm = entryElm.children("a"); let type = getDragType(elm); if (isDraggedElementOutside(draggedElm)) {// cancel drop if mouse position is outside the sidebar entryElm.insertAfter(dragInitialElm).removeClass(ext.opts.classes.drag.isDragged); dragInitialElm.remove(); draggedElm.remove(); trackEnd(elm, true); } else { // animate the helper back to the new position and save it draggedElm.addClass(ext.opts.classes.drag.snap); let parentId = entryElm.parent("ul").prev("a").attr(ext.opts.attr.id); let index = 0; entryElm.prevAll("li").forEach((el) => { if (el !== dragInitialElm && !$(el).children("a").hasClass(ext.opts.classes.sidebar.separator)) { index++; } }); if (type === "separator") { // save separator position if (parentId !== prevParentId) { // separator is moved from one directory into another -> remove from previous directory ext.helper.specialEntry.removeSeparator({id: prevParentId, index: prevIndex}); } ext.helper.specialEntry.reorderSeparators([parentId]); } else if (type === "pinned") { // save position of pinned entry ext.helper.specialEntry.reorderPinnedEntries({ id: entryElm.children("a").attr(ext.opts.attr.id), prevId: entryElm.prev("li").children("a").attr(ext.opts.attr.id) }); } else { // save bookmark/directory position ext.helper.model.call("moveBookmark", { id: entryElm.children("a").attr(ext.opts.attr.id), parentId: parentId, index: index }); ext.helper.specialEntry.reorderSeparators([parentId]); } trackEnd(elm); $.delay().then(() => { let boundClientRect = entryElm[0].getBoundingClientRect(); draggedElm.css({ top: boundClientRect.top + "px", left: boundClientRect.left + "px" }); return $.delay(200); }).then(() => { entryElm.removeClass(ext.opts.classes.drag.isDragged); dragInitialElm.remove(); draggedElm.remove(); }); } ext.elements.iframeBody.removeClass(ext.opts.classes.drag.isDragged); $.delay(500).then(() => { if (ext.helper.utility.sidebarHasMask() === false) { ext.elements.iframe.addClass(ext.opts.classes.page.hideMask); } }); }; /** * Clears the directory open timeout * * @param {jsu} checkElm */ let clearDirOpenTimeout = (checkElm = null) => { if (dirOpenTimeout !== null && (checkElm === null || dirOpenTimeout.id !== checkElm.attr(ext.opts.attr.id))) { dirOpenTimeout.elm.removeClass(ext.opts.classes.drag.dragHover); clearTimeout(dirOpenTimeout.instance); dirOpenTimeout = null; } }; /** * Drag an element (bookmark or directory or something external (a link, an image, ...)) * * @param {string} eventType * @param {int} x * @param {int} y */ let dragmove = (eventType, x, y) => { edgeScroll.posY = y; let draggedElm = null; let bookmarkElm = null; let topVal = 0; let leftVal = 0; if (eventType === "dragover") { // dragging anything (e.g. a link, an image, ...) topVal = y - 20; leftVal = x; if (topVal === oldTopVal) { return false; } oldTopVal = topVal; ext.elements.bookmarkBox["all"].find("li." + ext.opts.classes.drag.isDragged).remove(); bookmarkElm = $("<li />").html("<a>&nbsp;</a>").addClass(ext.opts.classes.drag.isDragged); } else { // dragging bookmark or directory draggedElm = ext.elements.iframeBody.children("a." + ext.opts.classes.drag.helper); let startPos = draggedElm.data("startPos"); topVal = y - startPos.top; leftVal = x - startPos.left; draggedElm.css({ top: topVal + "px", left: leftVal + "px" }); bookmarkElm = draggedElm.data("elm"); } if (isDraggedElementOutside(draggedElm || leftVal)) { // dragged outside the sidebar -> mouseup will cancel clearDirOpenTimeout(); ext.elements.iframeBody.addClass(ext.opts.classes.drag.cancel); return false; } else { ext.elements.iframeBody.removeClass(ext.opts.classes.drag.cancel); } let newAboveElm = {elm: null}; let type = getDragType(bookmarkElm.children("a")); let elmLists = null; if (type === "pinned") { elmLists = [ext.elements.bookmarkBox["all"].find("> ul > li." + ext.opts.classes.sidebar.entryPinned)]; } else { elmLists = [ ext.elements.bookmarkBox["all"].find("a." + ext.opts.classes.sidebar.dirOpened + " + ul > li"), ext.elements.bookmarkBox["all"].find("> ul > li > a." + ext.opts.classes.sidebar.dirOpened).parent("li") ]; } elmLists.some((list) => { list.forEach((node) => { // determine the element which is above the current drag position let elmObj = $(node); if (elmObj[0] !== bookmarkElm[0] && !elmObj.hasClass(ext.opts.classes.drag.dragInitial)) { let boundClientRect = elmObj[0].getBoundingClientRect(); let diff = topVal - boundClientRect.top; if (boundClientRect.top > topVal) { return false; } else if (newAboveElm.elm === null || newAboveElm.diff > diff) { newAboveElm = {elm: elmObj, diff: diff}; } } }); }); if (newAboveElm.elm && newAboveElm.elm !== oldAboveElm) { oldAboveElm = newAboveElm.elm; let newAboveLink = newAboveElm.elm.children("a").eq(0); clearDirOpenTimeout(newAboveLink); if (newAboveLink.hasClass(ext.opts.classes.sidebar.bookmarkDir)) { // drag position is beneath a directory if (newAboveLink.hasClass(ext.opts.classes.sidebar.dirOpened)) { // opened directory let elm = bookmarkElm.prependTo(newAboveLink.next("ul")); draggedElm && draggedElm.data("elm", elm); } else if (draggedElm && draggedElm.data("isDir")) { let elm = bookmarkElm.insertAfter(newAboveElm.elm); draggedElm && draggedElm.data("elm", elm); } else if (!newAboveLink.hasClass(ext.opts.classes.sidebar.dirAnimated)) { // closed directory if (dirOpenTimeout === null) { dirOpenTimeout = { id: newAboveLink.attr(ext.opts.attr.id), elm: newAboveLink.addClass(ext.opts.classes.drag.dragHover) }; dirOpenTimeout.instance = setTimeout(() => { // open closed directory after short delay -> possibility for user to cancel timeout ext.helper.list.toggleBookmarkDir(newAboveLink); }, 700); } } else if (newAboveLink.next("ul").length() === 0) { // empty directory newAboveLink.addClass(ext.opts.classes.sidebar.dirOpened); $("<ul />").insertAfter(newAboveLink); } } else { // drag position is beneath a bookmark let elm = bookmarkElm.insertAfter(newAboveElm.elm); draggedElm && draggedElm.data("elm", elm); } } else if (type === "pinned") { // pinned entry -> no element above -> index = 0 let elm = bookmarkElm.prependTo(ext.elements.bookmarkBox["all"].find("> ul")); draggedElm && draggedElm.data("elm", elm); } }; /** * Initializes the eventhandlers for the dragDrop functionality of the bookmarks * * @returns {Promise} */ let initEvents = async () => { ext.elements.bookmarkBox["all"].children("ul").on("mousedown", "span." + ext.opts.classes.drag.trigger, (e) => { // drag start let x = e.pageX; let hasMask = ext.helper.utility.sidebarHasMask(); if (hasMask === false && sidebarPos === "right") { let width = ext.elements.iframe.realWidth(); ext.elements.iframe.removeClass(ext.opts.classes.page.hideMask); x += ext.elements.iframe.realWidth() - width; } ext.elements.iframe.removeClass(ext.opts.classes.page.hideMask); dragstart(e.currentTarget, x, e.pageY); }); ext.elements.iframeBody.on("mouseup", (e) => { // drag end edgeScroll.posY = null; if (ext.elements.iframeBody.hasClass(ext.opts.classes.drag.isDragged)) { // bookmark has been dragged e.preventDefault(); e.stopPropagation(); dragend(); } }); ext.elements.iframeBody.on('wheel', (e) => { // scroll the bookmark list if (ext.elements.iframeBody.hasClass(ext.opts.classes.drag.isDragged)) { e.preventDefault(); e.stopPropagation(); let scrollPos = ext.elements.bookmarkBox["all"][0].scrollTop; ext.helper.scroll.setScrollPos(ext.elements.bookmarkBox["all"], scrollPos - e.wheelDelta, 300); } }); ext.elements.iframeBody.on("mousemove dragover", (e) => { // drag move if (ext.elements.iframeBody.hasClass(ext.opts.classes.drag.isDragged) && e.which === 1) { e.preventDefault(); e.stopPropagation(); dragmove(e.type, e.pageX, e.pageY); } }); ext.elements.iframeBody.on('contextmenu', "a." + ext.opts.classes.drag.helper, (e) => { // disable right click or the drag handle e.preventDefault(); e.stopPropagation(); }); }; }; })(jsu);
$(function() { var $format = $('#format'); var $inputConditionName = $('#input_condition_name'); var showHideConditionName = function(value) { if (value === 'xprs') { $inputConditionName.removeClass('hidden'); } else { $inputConditionName.addClass('hidden'); } }; showHideConditionName($format.val()); $format.change(function() { showHideConditionName($(this).val()); }); var $searchByNameForm = $('#search_by_name_form'); $searchByNameForm.submit(function(event) { event.preventDefault(); window.location.href = window.location.href.split('?')[0] + '/' + $("#name").val().trim(); }); });
import $ from '../../jquery-2.1.1.min.js'; import ListItem from '../../list_item.js'; import UIGen from '../../ui_gen.js'; describe("listGen", function(){ var foo, bar, items, gen, fakeChrome; beforeEach(function(){ foo = new ListItem("foo", "google"); bar = new ListItem("bar", "youtube"); items = { foo : foo, bar: bar }; jasmine.addMatchers({ // got this function definition from jasmine-jquery library. // you can find it on github: https://github.com/velesin/jasmine-jquery toHaveClass: function(){ return { compare: function(actual, className){ return {pass: $(actual).hasClass(className)} } } }, toBeInDOM: function () { return { compare: function (actual) { return { pass: $.contains(document.documentElement, $(actual)[0]) } } } } }); $('<div id="everything"><div class="header"><p>InterNotes</p><button type="button" class="addButton" id="add-button" data-count="0">+</button></div><div class="new-item" id="new-div"><input type="text" id="item-input" value="bonobos"><button type="button" class="addButton" id="add-icon">Add</button></div><div class="main"></div></div>').appendTo('body'); $("<div class='all'><span id='site-choice' data-choice='google'><i id='site-icon' class='fa fa-google'></i><i class='fa fa-angle-down'></i></span><ul class='site-choice'><li data-site='google'><i></i></li><li data-site='youtube'><i></i></li></ul></div>").appendTo('body'); // chrome specific objects seem to cause errors (probably permissions-related) // so we'll stub that out entirely fakeChrome = { storage : { sync : { set : function(){ return; }, get : function() { return; } } }, browserAction: { setBadgeText: function(){ return; }, setBadgeBackgroundColor: function() { return; } } }; gen = new UIGen({chrome: fakeChrome}); }); afterEach(function(){ $("#everything").remove(); $(".all").remove(); }); describe("makeElement", function(){ it("should add a ul element to the DOM is one doesn't already exist", function(){ gen.makeElement(foo); expect($("#list")[0]).toBeInDOM(); }); it("should add an li element to DOM", function(){ gen.makeElement(foo); expect($("#"+foo.ID)[0]).toBeInDOM(); }); it("should add click event listeners", function(){ spyOn(gen, "addClickListeners"); gen.makeElement(foo); expect(gen.addClickListeners).toHaveBeenCalled(); }); }); describe("addItem", function(){ it("should add the item to userItems object", function(){ // TODO: this is hacky, solve later // Issue figuring out how to deal with randomly generated ID gen.addItem("foo"); var ID = Object.keys(gen.userItems)[0]; expect(gen.userItems[ID]).toBeDefined(); }); it("should call makeElement", function(){ spyOn(gen, "makeElement").and.callThrough(); gen.addItem("foo"); expect(gen.makeElement).toHaveBeenCalled(); }); it("should call saveChanges", function(){ spyOn(gen, "saveChanges"); gen.addItem("foo"); expect(gen.saveChanges).toHaveBeenCalled(); }); it("should do nothing if input value is empty string", function(){ gen.userItems = {}; gen.addItem(""); expect(gen.userItems).toEqual({}); }); }); describe("chooseSite", function(){ it("should data-choice attribute to correct site", function(){ var choice = $("#site-choice").data("choice"); expect(choice).toEqual("google"); gen.chooseSite("youtube"); expect($("#site-choice").data("choice")).toEqual("youtube"); }); it("should set icon to chosen site", function(){ expect($("#site-icon")).toHaveClass("fa fa-google"); gen.chooseSite("youtube"); expect($("#site-icon")).toHaveClass("fa fa-youtube"); expect($("#site-icon")).not.toHaveClass("fa-google"); }); }); describe("deleteItem", function(){ //TODO: also hacky, same thing; var ID; beforeEach(function(){ gen.addItem("foo"); ID = Object.keys(gen.userItems)[0]; }); it("should remove the item from userItems", function(){ gen.deleteItem(gen.userItems[ID]); expect(gen.userItems[ID]).not.toBeDefined(); }); }); });
import Dexie from 'dexie'; import {module, stop, start, asyncTest, equal, ok} from 'QUnit'; import {resetDatabase} from './dexie-unittest-utils'; "use strict"; var db = new Dexie("TestDBTrans"); db.version(1).stores({ users: "username", pets: "++id,kind", petsPerUser: "++,user,pet" }); module("transaction", { setup: function () { stop(); resetDatabase(db).catch(function (e) { ok(false, "Error resetting database: " + e.stack); }).finally(start); }, teardown: function () { } }); asyncTest("Transaction should fail if returning non-Dexie Promise in transaction scope", function(){ db.transaction('rw', db.users, function() { return window.Promise.resolve().then(()=> { ok(Dexie.currentTransaction == null, "Dexie.currentTransaction == null. If this assertion fails, don't weap. Rejoice and try to understand how the hell this could be possible."); //return db.users.add({ username: "foobar" }); }).then(()=>{ //return db.users.add({ username: "barfoo" }); }); }).then (function(){ ok(false, "Transaction should not commit because we were using a non-Dexie promise"); }).catch ('IncompatiblePromiseError', function(e){ ok(true, "Good. Should fail with 'IncompatiblePromiseError': " + e); }).finally(start); }); asyncTest("empty transaction block", function () { db.transaction('rw', db.users, db.pets, function () { ok(true, "Entering transaction block but dont start any transaction"); // Leave it empty. }).catch(function (err) { ok(false, err); }).finally(function () { setTimeout(start, 10); }); }); asyncTest("db.transaction()", function () { db.transaction('rw', db.users, function () { db.users.add({ username: "arne" }); return db.users.get("arne", function (user) { equal(user.username, "arne", "Got user arne the line after adding it - we must be in a transaction"); ok(Dexie.currentTransaction != null, "Current Transaction must be set"); }); }).then(function () { ok(Dexie.currentTransaction == null, "Current Transaction must be null even when transaction scope returned a Promise that was bound to the transaction"); }).finally(start); }); asyncTest("Table not in transaction", function () { db.pets.add({kind: "dog"}).then(function() { return db.transaction('rw', db.users, function () { db.users.add({ username: "arne" }); return db.pets.get(1, function (pet) { ok(false, "Should not be able to get a pet because pets is not in transaction"); }); }).then(function () { ok(false, "Transaction should not commit because I made an error"); }).catch(function (err) { ok(true, "Got error since we tried using a table not in transaction: " + err.stack); }); }).finally(start); }); asyncTest("Table not in transaction 2", function () { return db.transaction('rw', db.users, function () { db.pets.add({kind: "dog"}); }).then(function () { ok(false, "Transaction should not commit because I made an error"); }).catch(function (err) { ok(true, "Got error since we tried using a table not in transaction: " + err.stack); }).finally(start); }); asyncTest("Write into readonly transaction", function () { return db.transaction('r', db.users, function () { db.users.add({ username: "arne" }).then(function(){ ok(false, "Should not be able to get a here because we tried to write to users when in a readonly transaction"); }); }).then(function () { ok(false, "Transaction should not commit because I made an error"); }).catch(function (err) { ok(true, "Got error since we tried to write to users when in a readonly transaction: " + err.stack); }).finally(start); }); asyncTest("Inactive transaction", function () { return db.transaction('rw', db.users, function () { return new Dexie.Promise(function (resolve, reject) { // Notify log when transaction completes too early Dexie.currentTransaction.complete(function () { ok(true, "Transaction committing too early..."); // Resolve the promise after transaction commit. // Flow will continue in the same Transaction scope but with an // inactive transaction resolve(); }); }).then(function () { // Now when transaction has already committed, try to add a user with the current transaction: return db.users.add({ username: "arne" }); }).then(function () { ok(false, "Should not be able to get a here transaction has become inactive"); }); }).then(function () { ok(false, "Should not be able to get a here transaction has become inactive"); }).catch(function (err) { ok(true, "Got error because the transaction has already committed: " + err.stack); }).finally(start); }); asyncTest("Inactive transaction 2", function () { return db.transaction('rw', db.users, function () { // First make an operation so that transaction is internally created (this is the thing differing from the previous test case return db.users.add({ username: "arne" }).then(function () { // Create a custom promise that will use setTimeout() so that IDB transaction will commit return new Dexie.Promise(function (resolve, reject) { // Notify log when transaction completes too early Dexie.currentTransaction.complete(function() { ok(true, "Transaction committing too early..."); resolve(); }); }); }).then(function () { // Now when transaction has already committed, try to add a user with the current transaction: return db.users.add({ username: "arne" }); }).then(function () { ok(false, "Should not be able to get a here transaction has become inactive"); }); }).then(function () { ok(false, "Should not be able to get a here transaction has become inactive"); }).catch(function (err) { ok(true, "Got error because the transaction has already committed: " + err.stack); }).finally(start); }); asyncTest("sub-transactions", function () { var parentTrans; function addUser(user, pets) { return db.transaction('rw', db.users, db.pets, db.petsPerUser, function () { ok(parentTrans._reculock > 0, "Parent transaction is locked"); db.users.add(user); pets.forEach(function (pet) { db.pets.add(pet).then(function (petId) { return db.petsPerUser.add({ user: user.username, pet: petId }); }); }); }).then(function () { return db.transaction('rw', db.users, function () { db.users.add({ username: user.username + "2" }); return "hello..."; }); }); } db.transaction('rw', db.users, db.pets, db.petsPerUser, function () { var trans = Dexie.currentTransaction; parentTrans = Dexie.currentTransaction; ok(trans._reculock === 0, "Main transaction not locked yet"); addUser({ username: "user1" }, [{ kind: "dog" }, { kind: "cat" }]).then(function () { db.users.get("someoneelse", function (someone) { equal(someone.username, "someoneelse", "Someonelse was recently added"); }); }); ok(trans._reculock > 0, "Main transaction is now locked"); db.users.get("someoneelse", function (someone) { ok(!someone, "Someoneelse not yet added"); }); db.users.add({ username: "someoneelse" }); return addUser({ username: "user2" }, [{ kind: "giraff" }]).then(function (val) { ok(trans._reculock == 0, "Main transaction not locked anymore"); return val; }); }).then(function (retval) { equal(retval, "hello...", "Return value went all the way down to transaction resolvance"); ok(Dexie.currentTransaction == null, "Dexie.currentTransaction is null"); db.users.count(function (count) { // Transaction-less operation! equal(count, 5, "There are five users in db"); }); db.pets.count(function (count) {// Transaction-less operation! equal(count, 3, "There are three pets in db"); }); db.petsPerUser.count(function (count) {// Transaction-less operation! equal(count, 3, "There are three pets-to-user relations"); }); }).then(function () { ok(Dexie.currentTransaction == null, "Dexie.currentTransaction is null"); // Start an outer transaction return db.transaction('rw', db.users, function () { // Do an add operation db.users.add({ username: "sune" });//.then(function () { // Start an inner transaction db.transaction('rw', db.users, function () { // Do an add-operation that will result in ConstraintError: db.users.add({ username: "sune" }); }).then(function () { ok(false, "Transaction shouldn't have committed"); }).catch("ConstraintError", function (err) { ok(true, "Got ContraintError when trying to add multiple users with same username"); }).catch(function (err) { ok(false, "Got unknown error: " + err); }); //}); }).catch("ConstraintError", function (err) { // Yes, it should fail beause of limited rollback support on nested transactions: // https://github.com/dfahlander/Dexie.js/wiki/Dexie.transaction()#limitations-with-nested-transactions ok(true, "Got constraint error on outer transaction as well"); }); }).catch(function (err) { ok(false, "Error: " + err); }).finally(start); }); asyncTest("Three-level sub transactions", function () { db.transaction('rw', db.users, db.pets, db.petsPerUser, function () { db.users.add({ username: "ojsan" }); db.transaction('rw', db.users, db.pets, function () { db.users.add({ username: "ojsan2" }); db.users.toCollection().delete(); db.transaction('r', db.users, function () { db.users.toArray(function (usersArray) { equal(usersArray.length, 0, "All users should be deleted"); Dexie.currentTransaction.abort(); }); }); }); }).then(function () { ok(false, "Shouldnt work"); }).catch(function (err) { ok(true, "Got error: " + err); }).finally(start); }); asyncTest("Table not in main transactions", function () { Dexie.Promise.resolve().then(()=>{ return db.transaction('rw', db.users, function () { db.users.add({username: "bertil"}); db.transaction('rw', db.users, db.pets, function () { db.pets.add({kind: "cat"}); }); }); }).then(function () { ok(false, "Shouldnt work"); }).catch(function (err) { ok(true, "Got error: " + err); }).finally(start); }); asyncTest("Transaction is not in read-mode", function () { db.transaction('r', db.users, db.pets, function () { db.users.toArray(); db.transaction('rw', db.users, db.pets, function () { db.pets.add({ kind: "cat" }); }); }).then(function () { ok(false, "Shouldnt work"); }).catch(function (err) { ok(true, "Got error: " + err); }).finally(start); }); // // Testing the "!" mode // asyncTest("'!' mode: Table not in main transactions", function () { var counter = 0; db.transaction('rw', db.users, function () { db.users.add({ username: "bertil" }); db.transaction('rw!', db.users, db.pets, function () { db.pets.add({ kind: "cat" }); }).then(function () { ok(true, "Inner transaction complete"); }).catch(function (err) { ok(false, "Got error in inner transaction: " + err); }).finally(function () { if (++counter == 2) start(); }); Dexie.currentTransaction.abort(); // Aborting outer transaction should not abort inner. }).then(function () { ok(false, "Outer transaction should not complete"); }).catch(function (err) { ok(true, "Got Abort Error: " + err); }).finally(function () { if (++counter == 2) start(); }); }); asyncTest("'!' mode: Transaction is not in read-mode", function () { var counter = 0; db.transaction('r', db.users, db.pets, function () { db.users.toArray(); db.transaction('rw!', db.users, db.pets, function () { db.pets.add({ kind: "cat" }); }).then(function () { ok(true, "Inner transaction complete"); }).catch(function (err) { ok(false, "Got error: " + err); }).finally(function () { if (++counter == 2) start(); }); }).then(function () { ok(true, "Outer transaction complete"); }).catch(function (err) { ok(false, "Got error: " + err); }).finally(function () { if (++counter == 2) start(); }); }); asyncTest("'!' mode: Transaction bound to different db instance", function () { var counter = 0; var db2 = new Dexie("TestDB2"); db2.version(1).stores({ users: "username", pets: "++id,kind", petsPerUser: "++,user,pet" }); db2.delete() .then(()=>db2.open()) .then(()=>db.transaction('rw', "users", "pets", function () { db2.transaction('rw!', "users", "pets", function () { ok(true, "Possible to enter a transaction in db2"); }).catch(function (err) { ok(false, "Got error: " + err); }).finally(function () { if (++counter == 2) db2.delete().then(start); console.log("finally() in db2.transaction(). counter == " + counter); }); })).finally(function () { if (++counter == 2) db2.delete().then(start); console.log("finally() in db.transaction(). counter == " + counter); }); }); // // Testing the "?" mode // asyncTest("'?' mode: Table not in main transactions", function () { var counter = 0; db.transaction('rw', db.users, function () { db.users.add({ username: "bertil" }); db.transaction('rw?', db.users, db.pets, function () { db.pets.add({ kind: "cat" }); }).then(function () { ok(true, "Inner transaction complete"); }).catch(function (err) { ok(false, "Got error in inner transaction: " + err); }).finally(function () { if (++counter == 2) start(); }); Dexie.currentTransaction.abort(); // Aborting outer transaction should not abort inner. }).then(function () { ok(false, "Outer transaction should not complete"); }).catch(function (err) { ok(true, "Got Abort Error: " + err); }).finally(function () { if (++counter == 2) start(); }); }); asyncTest("'?' mode: Transaction is not in read-mode", function () { var counter = 0; db.transaction('r', db.users, db.pets, function () { db.users.toArray(); db.transaction('rw?', db.users, db.pets, function () { db.pets.add({ kind: "cat" }); }).then(function () { ok(true, "Inner transaction complete"); }).catch(function (err) { ok(false, "Got error: " + err); }).finally(function () { if (++counter == 2) start(); }); }).then(function () { ok(true, "Outer transaction complete"); }).catch(function (err) { ok(false, "Got error: " + err); }).finally(function () { if (++counter == 2) start(); }); }); asyncTest("'?' mode: Transaction bound to different db instance", function () { var counter = 0; var db2 = new Dexie("TestDB2"); db2.version(1).stores({ users: "username", pets: "++id,kind", petsPerUser: "++,user,pet" }); db2.open(); db.transaction('rw', "users", "pets", function () { db2.transaction('rw?', "users", "pets", function () { ok(true, "Possible to enter a transaction in db2"); }).catch(function (err) { ok(false, "Got error: " + err); }).finally(function () { if (++counter == 2) db2.delete().then(start); }); }).finally(function () { if (++counter == 2) db2.delete().then(start); }); }); asyncTest("'?' mode: Three-level sub transactions", function () { db.transaction('rw', db.users, db.pets, db.petsPerUser, function () { db.users.add({ username: "ojsan" }); db.transaction('rw?', db.users, db.pets, function () { db.users.add({ username: "ojsan2" }); db.users.toCollection().delete(); db.transaction('r?', db.users, function () { db.users.toArray(function (usersArray) { equal(usersArray.length, 0, "All users should be deleted"); Dexie.currentTransaction.abort(); }); }); }); }).then(function () { ok(false, "Shouldnt work"); }).catch(function (err) { ok(true, "Got error: " + err); }).finally(start); }); asyncTest("Transactions in multiple databases", function () { var logDb = new Dexie("logger"); logDb.version(1).stores({ log: "++,time,type,message" }); var lastLogAddPromise; logDb.open().then(()=>{ return db.transaction('rw', db.pets, function () { // Test that a non-transactional add in the other DB can coexist with // the current transaction on db: logDb.log.add({time: new Date(), type: "info", message: "Now adding a dog"}); db.pets.add({kind: "dog"}).then(function(petId){ // Test that a transactional add in the other DB can coexist with // the current transaction on db: lastLogAddPromise = logDb.transaction('rw!', logDb.log, function (){ logDb.log.add({time: new Date(), type: "info", message: "Added dog got key " + petId}); }); }); }); }).then(function() { return lastLogAddPromise; // Need to wait for the transaction of the other database to complete as well. }).then(function(){ return logDb.log.toArray(); }).then(function (logItems) { equal(logItems.length, 2, "Log has two items"); equal(logItems[0].message, "Now adding a dog", "First message in log is: " + logItems[0].message); ok(logItems[1].message.indexOf("Added dog got key ") === 0, "Second message in log is: " + logItems[1].message); }).catch(function (err) { ok(false, err); }).finally(function(){ return logDb.delete(); }).finally(start); }); asyncTest("Issue #71 If returning a Promise from from a sub transaction, parent transaction will abort", function () { db.transaction('rw', db.users, db.pets, function () { ok(true, "Entered parent transaction"); ok(true, "Now adding Gunnar in parent transaction"); db.users.add({ username: "Gunnar" }).then(function() { ok(true, "First add on parent transaction finished. Now adding another object in parent transaction."); db.pets.add({ kind: "cat", name: "Garfield" }).then(function() { ok(true, "Successfully added second object in parent transaction."); }).catch(function(err) { ok(false, "Failed to add second object in parent transaction: " + err.stack || err); }); }); db.transaction('rw', db.users, function() { ok(true, "Entered sub transaction"); return db.users.add({ username: "JustAnnoyingMyParentTransaction" }).then(function() { ok(true, "Add on sub transaction succeeded"); }).catch(function(err) { ok(false, "Failed to add object in sub transaction: " + err.stack || err); }); }); }).finally(start); }); asyncTest("Issue #91 Promise.resolve() from within parent transaction", function () { db.transaction('rw', db.users, db.pets, function () { ok(true, "Entered parent transaction"); var trans = Dexie.currentTransaction; return db.transaction('rw', db.users, function() { ok(true, "Entered sub transaction"); ok(Dexie.currentTransaction !== trans, "We are not in parent transaction"); ok(Dexie.currentTransaction.parent === trans, "...but in a sub transaction"); return Dexie.Promise.resolve(3); }).then(function (result) { equal(result, 3, "Got 3"); ok(Dexie.currentTransaction === trans, "Now we are in parent transaction"); db.users.add({ username: "Gunnar" }); return db.users.where("username").equals("Gunnar").first(); }).then(function(result) { ok(!!result, "Got result"); equal(result.username, "Gunnar", "Got the Gunnar we expected"); return Dexie.Promise.resolve(result); }).catch(function(e) { ok(false, "Error: " + e.stack); }); }).then(function(result) { ok(!!result, "Got result"); equal(result.username, "Gunnar", "Got the Gunnar we expected"); }).catch(function(e) { ok(false, "Error at root scope: " + e.stack); }).finally(start); }); asyncTest("Issue #95 Nested transactions fails if parent transaction don't execute any operation", function () { function smallChild() { return db.transaction('rw', db.users, db.pets, function () { console.log("Entering small child"); return db.users.add({ // Here: Test succeeded if removing the 'return' statement here! username: 123, value: 'val' }).then(function (res) { ok(true, "smallChild() could add user with primary key " + res); return res; }).catch(function (err) { ok(false, 'SCCA' + err); }); }).then(function(res) { ok(true, "smallChild's 3rd level nested transaction commited with result " + res); }).catch (function (err) { ok(false, 'SCTR' + err); }); } function middleChild() { return db.transaction('rw', db.users, db.pets, function () { console.log("Entering middle child"); return db.pets.add({ id: 321, value: 'anotherval' }).catch (function (err) { ok(false, 'MCCA' + err); }); }).catch (function (err) { ok(false, 'MCTR' + err); }); } function bigParent() { // Nesting transaction without starting the real indexedDB transaction cause an error? return db.transaction('rw', db.users, db.pets, function () { // Here: Test succeeded if skipping the outermost transaction scope. console.log("Entering root transaction"); return db.transaction('rw', db.users, db.pets, function () { console.log("Entering first sub transaction"); return smallChild().then(function () { return middleChild(); }).catch (function (err) { ok(false, 'BPCA ' + err); }); }).catch (function (err) { ok(false, 'BPTRI ' + err); }); }).catch (function (err) { ok(false, 'BPTRX ' + err); }); } bigParent().then(function(res) { ok(true, "done"); }).catch(function(e) { ok(false, "Final error: " + e); }).finally(start); }); asyncTest("Issue #91 / #95 with Dexie.Promise.resolve() mixed in here and there...", function () { ok(!Dexie.currentTransaction, "There is no ongoing transaction"); db.transaction('rw', db.pets, function () { var rootLevelTransaction = Dexie.currentTransaction; ok(true, "Entered root transaction scope"); return db.transaction('rw', db.pets, function() { ok(true, "Entered sub scope"); var level2Transaction = Dexie.currentTransaction; ok(level2Transaction.parent === rootLevelTransaction, "Level2 transaction's parent is the root level transaction"); return db.transaction('rw', db.pets, function() { ok(true, "Entered sub of sub scope"); var innermostTransaction = Dexie.currentTransaction; ok(!!innermostTransaction, "There is an ongoing transaction (direct in 3rd level scope)"); ok(innermostTransaction.parent === level2Transaction, "Parent is level2 transaction"); return Dexie.Promise.resolve().then(function() { ok(true, "Sub of sub scope: Promise.resolve().then() called"); ok(!!Dexie.currentTransaction, "There is an ongoing transaction"); ok(Dexie.currentTransaction === innermostTransaction, "Still in innermost transaction"); return db.pets.add({ id: 123, value: 'val' }).then(function(resultId) { ok(true, "Sub of sub scope: add() resolved"); ok(Dexie.currentTransaction === innermostTransaction, "Still in innermost transaction"); return Dexie.Promise.resolve(resultId).then(function(res) { return Dexie.Promise.resolve(res); }); }).then(function(resultId) { ok(true, "Sub if sub scope: Promise.resolve() after add() resolve"); ok(Dexie.currentTransaction === innermostTransaction, "Still in innermost transaction"); return Dexie.Promise.resolve(resultId); }); }).then(function() { ok(true, "sub of sub scope chaining further in promise chains..."); ok(Dexie.currentTransaction === innermostTransaction, "Still in innermost transaction"); return Dexie.Promise.resolve(db.pets.get(123)); }).then(function(pet) { ok(true, "sub of sub scope chaining further in promise chains 2..."); ok(Dexie.currentTransaction === innermostTransaction, "Still in innermost transaction"); return Dexie.Promise.resolve(pet.id); }); }).then(function(resultId) { ok(true, "Innermost transaction completed"); ok(Dexie.currentTransaction == level2Transaction, "We should now be executing within level 2 sub transaction"); return Dexie.Promise.resolve(resultId); }).then(function(resultId) { ok(Dexie.currentTransaction == level2Transaction, "We should still be executing within level 2 sub transaction"); return Dexie.Promise.resolve(resultId); }).then(function(resultId) { equal(resultId, 123, "Result was 123 as expected"); }).then(function() { return db.transaction('rw', db.pets, function() { var innermostTransaction2 = Dexie.currentTransaction; ok(innermostTransaction2.parent == level2Transaction, "Another 3rd level transaction has parent set to our level2 transaction"); return db.pets.add({ id: 321, value: 'val' }).then(function(resultId2) { return Dexie.Promise.resolve(resultId2); }).then(function(resultId2) { ok(Dexie.currentTransaction === innermostTransaction2, "We're still in the innermostTransaction (second one)"); return Dexie.Promise.resolve(resultId2).then(function(x) { ok(Dexie.currentTransaction === innermostTransaction2, "We're still in the innermostTransaction (second one)"); return x; }); }); }).then(function(resultId2) { equal(resultId2, 321, "Result2 was 321 as expected"); ok(Dexie.currentTransaction === level2Transaction, "We should still be executing within level 2 sub transaction"); return "finalResult"; }); }); }).then(function(x) { ok(Dexie.currentTransaction === rootLevelTransaction, "Now we're at the root level transaction and can do some more stuff here"); return db.pets.clear().then(function() { return x; }).then(function(y) { ok(true, "Could clear the pets table for example."); return y; }).catch(function(e) { ok(false, "oops, this was not what I expected!: " + e); }); }); }).then(function(finalResult) { equal(finalResult, "finalResult", "Got the final result"); ok(!Dexie.currentTransaction, "No ongoing transaction now"); ok(true, "done"); }).catch(function(error) { ok(false, error.stack); }).finally(start); ok(!Dexie.currentTransaction, "After main transaction scope: Still no ongoing transaction at this scope"); }); asyncTest("Promise Microtask / indexedDB transaction compatibility", function() { // Change line below from Dexie.Promise to window.Promise to test // compatibility between indexedDB transactions and window.Promise. // As of 2015-06-25, this works only with Chromium but not with Firefox // and not with IE11 because it lacks window.Promise. var Promise = Dexie.Promise; // window.Promise; db.transaction('rw', db.users, function() { var trans = Dexie.currentTransaction; return Promise.resolve(trans.users.add({ username: "apansson" })).then(function() { return Promise.resolve(trans.users.get("apansson")); }).then(function(o) { equal(o.username, "apansson", "Got the correct object"); var p = Promise.resolve(o); for (var i = 0; i < 100; ++i) { p = p.then(function(o) { return o; }); } return p; }).then(function(o) { return trans.users.get("apansson"); }).then(function(o) { equal(o.username, "apansson", "Got the correct object after 100 promises in a chain"); }).catch(function(e) { ok(false, "Error: " + e); }); }).then(function() { ok(true, "Transaction successfully committed"); }).catch(function(e) { ok(false, "Error:" + e); }).finally(start); }); asyncTest("Issue #137 db.table() does not respect current transaction", function() { db.transaction('rw', db.users, function() { db.users.add({ username: "erictheviking", color: "blue" }).then(function() { db.table('users').get('erictheviking', function (eric) { ok(eric, "Got back an object"); equal(eric.color, "blue", "eric.color is still blue. If red, the getter must have been run from another transaction."); }); db.users.put({ username: "erictheviking", color: "red" }); }); }).catch(function(e) { ok(false, "Error: " + e); }).finally(start); }); asyncTest("Dexie.currentTransaction in CRUD hooks", 53, function () { function CurrentTransChecker(scope, trans) { return function() { ok(Dexie.currentTransaction === trans, "Dexie.currentTransaction correct in " + scope); } } function onCreating(primKey, obj, transaction) { ok(!!Dexie.currentTransaction, "Dexie.currentTransaction should exist in creating"); ok(Dexie.currentTransaction === transaction, "Dexie.currentTransaction correct in creating"); this.onerror = CurrentTransChecker("creating.onerror", transaction); this.onsuccess = CurrentTransChecker("creating.onsuccess", transaction); } function onReading(obj) { ok(!!Dexie.currentTransaction, "Dexie.currentTransaction should exist in reading"); return obj; } function onUpdating(modifications, primKey, obj, transaction) { ok(Dexie.currentTransaction === transaction, "Dexie.currentTransaction correct in updating"); this.onerror = CurrentTransChecker("updating.onerror", transaction); this.onsuccess = CurrentTransChecker("updating.onsuccess", transaction); } function onDeleting(primKey, obj, transaction) { ok(Dexie.currentTransaction === transaction, "Dexie.currentTransaction correct in deleting"); this.onsuccess = CurrentTransChecker("deleting.onsuccess", transaction); } db.users.hook.creating.subscribe(onCreating); db.users.hook.reading.subscribe(onReading); db.users.hook.updating.subscribe(onUpdating); db.users.hook.deleting.subscribe(onDeleting); function doTheTests() { db.users.add({ username: "monkey1" }); db.users.add({ username: "monkey1" }).catch(function(ex) { ok(true, "Should fail adding a second monkey1"); }); // Trigger creating.onerror // Test bulkAdd as well: ok(true, "Testing bulkAdd"); db.users.bulkAdd([{ username: "monkey1" }, { username: "monkey2" }]) .then(()=>ok(false, "Should get error on one of the adds")) .catch(Dexie.BulkError, e=>{ ok(true, "Got BulkError"); ok(e.failures.length === 1, "One error out of two: " + e); }); db.users.where("username").equals("monkey1").modify({ name: "Monkey 1" }); db.users.where("username").equals("monkey1").modify(function (user) { user.username = "monkey2";// trigger updating.onerror }).catch(function(ex) { ok(true, "Should fail modifying primary key"); }); db.users.toArray(); db.users.delete("monkey2"); return db.users.delete("monkey1"); }; doTheTests().then(function () { ok(true, "Now in an explicit transaction block..."); return db.transaction('rw', db.users, function() { doTheTests(); }); }).catch(function(ex) { ok(false, ex); }).finally(function() { db.users.hook.creating.unsubscribe(onCreating); db.users.hook.reading.unsubscribe(onReading); db.users.hook.updating.unsubscribe(onUpdating); db.users.hook.deleting.unsubscribe(onDeleting); start(); }); });
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("path", { d: "M5 19h14V5H5v14zM16.5 6c.83 0 1.5.67 1.5 1.5S17.33 9 16.5 9 15 8.33 15 7.5 15.67 6 16.5 6zm0 9c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zM12 10.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zM7.5 6C8.33 6 9 6.67 9 7.5S8.33 9 7.5 9 6 8.33 6 7.5 6.67 6 7.5 6zm0 9c.83 0 1.5.67 1.5 1.5S8.33 18 7.5 18 6 17.33 6 16.5 6.67 15 7.5 15z", opacity: ".3" }), h("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" }), h("circle", { cx: "7.5", cy: "16.5", r: "1.5" }), h("circle", { cx: "7.5", cy: "7.5", r: "1.5" }), h("circle", { cx: "12", cy: "12", r: "1.5" }), h("circle", { cx: "16.5", cy: "16.5", r: "1.5" }), h("circle", { cx: "16.5", cy: "7.5", r: "1.5" })), 'CasinoTwoTone');
'use strict'; /** Requires */ const path = require('path'); const webpack = require('webpack'); const CleanWebpackPlugin = require('clean-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin; const ImageminPlugin = require('imagemin-webpack-plugin').default; const p = require('./package.json'); /** Constants */ const IS_PRODUCTION = process.env.NODE_ENV === 'production'; const assetsPath = path.join(__dirname, 'assets/'); const stylesPath = path.join(__dirname, 'styles/'); const phaserRoot = path.join(__dirname, 'node_modules/phaser/build/custom/'); const phaserPath = path.join(phaserRoot, 'phaser-split.js'); const pixiPath = path.join(phaserRoot, 'pixi.js'); const p2Path = path.join(phaserRoot, 'p2.js'); const outputPath = path.join(__dirname, 'dist'); const templatePath = path.join(__dirname, 'templates/index.ejs'); /** Helpers */ /** * Determines whether an array includes a certain element. * @param {T[]} array * @param {T} searchElement * * @return {boolean} */ function includes(array, searchElement) { return !!~array.indexOf(searchElement); } /** * Create rule for `expose-loader`, to adds module to the global object with passed name. * @param {string} modulePath * @param {string} name] * * @return {Object} */ function exposeRules(modulePath, name) { return { test: (path) => modulePath === path, loader: 'expose-loader', options: name }; } /** * Remove `null` elements from array * @param {T[]} array * * @return {T[]} */ function filterNull(array) { return array.filter((item) => item !== null); } /** * Invoke `fn` if `isIt` is true, else invoke `fail`. * * @param {boolean} isIt * @param {function} fn * @param {function} fail * * @return {any} */ function only(isIt, fn, fail) { if (!isIt) { return fail !== undefined ? fail() : null; } return fn(); } /** Helpers (based on `only`) */ const onlyProd = (fn, fail) => only(IS_PRODUCTION, fn, fail); const onlyDev = (fn, fail) => only(!IS_PRODUCTION, fn, fail); module.exports = { entry: { main: path.join(__dirname, 'src/index.ts') }, output: { path: outputPath, filename: `js/[name]${onlyProd(() => '.[chunkhash]', () => '')}.js`, chunkFilename: `js/[name]${onlyProd(() => '.[chunkhash]', () => '')}.chunk.js`, sourceMapFilename: '[file].map', publicPath: '/' }, devtool: onlyDev(() => 'source-map', () => ''), // Disable sourcemaps on production resolve: { extensions: ['.ts', '.js'], alias: { pixi: pixiPath, // alias for 'pixi' library phaser: phaserPath, // alias for 'phaser' library p2: p2Path, // alias for 'p2' library assets: assetsPath, // alias for `assets/` directory styles: stylesPath // alias for `styles/` directory } }, plugins: filterNull([ /** DefinePlugin */ new webpack.DefinePlugin({ IS_PRODUCTION: JSON.stringify(IS_PRODUCTION), VERSION: JSON.stringify(p.version) }), /** JavaScript */ onlyProd(() => new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false }, comments: false })), /** Clean */ new CleanWebpackPlugin([outputPath]), // Clean `dist` directory /** TypeScript */ new CheckerPlugin(), /** Images */ // Minimize images and svg's onlyProd(() => new ImageminPlugin({ test: /\.(jpe?g|png|gif|svg)$/ })), /** Template */ // Auto generation index HTML file new HtmlWebpackPlugin({ title: 'Phaser TypeScript boilerplate project', template: templatePath }), /** CSS */ // Extract CSS files from `styles/` directory to external CSS file new ExtractTextPlugin({ filename: `css/[name]${onlyProd(() => '.[chunkhash]', () => '')}.css` }), /** Chunks */ // Create ckunks for: // * other vendor modules new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', minChunks: (module) => /node_modules/.test(module.resource) }), // * phaser modules (p2, PIXI, phaser) new webpack.optimize.CommonsChunkPlugin({ name: 'phaser', minChunks: (module) => includes([p2Path, pixiPath, phaserPath], module.resource) }), // * webpack's utils new webpack.optimize.CommonsChunkPlugin({ name: 'commons' }) ]), devServer: { contentBase: path.join(__dirname, 'dist'), compress: true, port: 8080, inline: true, watchOptions: { aggregateTimeout: 300, poll: true, ignored: /node_modules/ } }, module: { rules: [ /** Assets */ { test: (path) => path.indexOf(assetsPath) === 0, loader: 'file-loader', options: { name: `[path][name]${onlyProd(() => '.[sha256:hash]', () => '')}.[ext]` } }, /** CSS */ { test: /\.styl$/, exclude: /node_modules/, loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: [ 'css-loader', 'stylus-loader' ] }) }, /** JavaScript */ exposeRules(pixiPath, 'PIXI'), // adds `PIXI` to the global object (window) exposeRules(p2Path, 'p2'), // adds `p2` to the global object (window) exposeRules(phaserPath, 'Phaser'), // adds `Phaser` to the global object (window) { test: /\.ts$/, exclude: /node_modules/, loader: 'awesome-typescript-loader' } ] } };
import { join } from 'path' import { parse } from './parse' const DIRNAME = join(__dirname, '../fixtures') export async function parseFixture(fileName, options) { return await parse(join(DIRNAME, fileName), options) }
import { Input } from 'react-bootstrap'; import React from 'react'; export default React.createClass({ getValue: function () { return this.refs.weightOz.getValue(); }, render: function () { return ( <Input type="text" ref="weightOz" placeholder="Ounces" addonAfter="oz"/> ); }, });
/** * Module dependencies. * @api private */ var peer = require('peer'); var channel = require('channel'); var Emitter = require('component-emitter'); /** * Expose 'Socket' */ module.exports = Socket; /** * Socket constructor. * * Examples: * * var socket = socket.connect('chat'); * * var socket = socket(peer); * socket.connect('chat'); * * @param {Peer} peer * @api public */ function Socket(peer) { if(!(this instanceof Socket)) return new Socket(peer); var _this = this; this.peer = peer; peer.on('message', function(ev) { ev = JSON.parse(ev); peer.emit.apply(_this, [ev.topic].concat(ev.body)); }); peer.on('channel open', function() { // should do that in channel peer.on('channel emit', function(topic, body) { peer.send({ topic: topic, body: body }); }); }); } // Emitter Emitter(Socket.prototype); /** * Socket factory. * * Create a socket from a newly created peer * and connect it to a room. * * @param {String} room * @return {Socket} * @api public */ Socket.connect = function(room) { var socket = new Socket(peer()); socket.connect(room); return socket; }; /** * Connect socket to a data channel. * * @param {String} room * @return {this} * @api public */ Socket.prototype.connect = function(room) { return this.use(channel(room)); }; /** * Emit messages through socket. * * A message has a topic and a body. * * Examples: * * socket.emit('hello'); * socket.emit('hello', 'world'); * * @param {String} topic * @return {this} * @api public */ Socket.prototype.emit = function(topic, body) { // NOTE: we should allow to pass multiple arguments this.peer.queue('channel emit', topic, body); return this; }; /** * Use plugin on socket peer connection. * * @return {this} * @api public */ Socket.prototype.use = function() { this.peer.use.apply(this.peer, arguments); return this; };
/** * @author Richard Davey <[email protected]> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * Calculate the width of the given line. * * @function Phaser.Geom.Line.Width * @since 3.0.0 * * @param {Phaser.Geom.Line} line - The line to calculate the width of. * * @return {number} The width of the line. */ var Width = function (line) { return Math.abs(line.x1 - line.x2); }; module.exports = Width;
var nijs = require('nijs'); exports.pkg = { mkDerivation : function(args) { return new nijs.NixFunInvocation({ funExpr: new nijs.NixExpression("pkgs.stdenv.mkDerivation"), paramExpr: args }); } };
import React from 'react'; import {render} from 'react-dom'; // components import ProgressBar from 'components/progress-bar'; import Controls from 'components/controls'; // stores import PlaybackStore from 'stores/playback-store'; // actions import playbackActions from 'actions/playback-actions'; class App extends React.Component { constructor (props) { super (props); this.state = { action: 'initializing' }; this.onChange = this.onChange.bind(this); } componentDidMount () { PlaybackStore.addListener(this.onChange); PlaybackStore.load().then(() => { this.setState({ action: 'loaded' }); }); } onChange () { // } render () { return ( <div> <div>Music player</div> <div>State: {this.state.action}</div> <ProgressBar hey={this.state.action} /> <Controls /> </div> ); } } render(<App/>, document.getElementById('app'));
'use strict'; angular.module('myANgularTestApp') .controller('MynewrouteCtrl', function ($scope) { $scope.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma' ]; });
import { Carousel } from 'antd'; export default Carousel;
// ========================================================================== // DG.MapView // // Author: William Finzer // // Copyright ©2014 Concord Consortium // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ========================================================================== /** @class DG.MapView A view on a map and plotted data. @extends SC.View */ DG.MapView = SC.View.extend(DG.GraphDropTarget, /** @scope DG.MapView.prototype */ { displayProperties: ['model.dataConfiguration.attributeAssignment'], kPadding: [10, 10], /** * @property {DG.MapModel} */ model: null, /** A map view is neither horizontal or vertical. Distinguish it from axes @property { String } */ orientation: DG.GraphTypes.EOrientation.kNone, /** * @property {DG.Attribute} */ plottedAttribute: function() { var tLegendViews = this.get('legendViews'); return tLegendViews.length === 1 ? tLegendViews[0].get('plottedAttribute') : null; }.property(), /** * @property {DG.BaseMapView} */ mapLayer: null, mapBinding: '.mapLayer.map', /** * @property [{DG.MapPolygonLayer}] */ mapPolygonLayers: null, /** * @property {DG.MapPointView} */ mapPointView: null, /** * @property {DG.MapGridLayer} */ mapGridLayer: null, /** * @property [{DG.LegendView}] */ legendViews: null, /** * Assigned on creation. Called with newly created LegendView. * @property {Function} */ legendViewCreationCallback: null, /** * SC.SliderView */ gridControl: null, /** * SC.ImageButtonView */ marqueeTool: null, selection: null, selectionBinding: '*model.casesController.selection', _ignoreMapDisplayChanges: false, _fitBoundsInProgress: false, _mapDisplayChangeInProgress: false, _mapDisplayChange: null, paper: function () { return this.getPath('mapPointView.paper'); }.property(), layerManager: function () { return this.getPath('mapPointView.layerManager'); }.property(), dataConfiguration: function() { return this.getPath('model.firstDataConfiguration'); }.property(), init: function () { sc_super(); var tMapLayer = DG.BaseMapView.create({model: this.get('model')}); this.set('mapLayer', tMapLayer); this.appendChild(tMapLayer); this.legendViews = []; this.gridControl = SC.SliderView.create({ controlSize: SC.SMALL_CONTROL_SIZE, layout: {width: 40, height: 16, top: 16, right: 58}, toolTip: 'DG.MapView.gridControlHint'.loc(), classNames: ['dg-map-grid-slider'], minimum: 0.1, maximum: 2.0, step: 0, value: this.getPath('model.gridMultiplier'), persistedValue: this.getPath('model.gridMultiplier'), previousPersistedValue: this.getPath('model.gridMultiplier'), isVisible: false, mouseUp: function (iEvent) { sc_super(); if (this.get('value') !== this.get('persistedValue')) { this.set('previousPersistedValue', this.get('persistedValue')); this.set('persistedValue', this.get('value')); DG.logUser('changeGridMultiplier: %@', this.get('value')); } } }); this.appendChild(this.gridControl); this.marqueeTool = SC.ImageButtonView.create({ buttonBehavior: SC.PUSH_BEHAVIOR, layout: {right: 10, top: 9, width: 32, height: 32}, toolTip: 'DG.MapView.marqueeHint'.loc(), image: 'dg-map-marquee', action: 'setMarqueeMode', isVisible: false }); this.appendChild(this.marqueeTool); // Don't trigger undo events until the map has settled down initially this._ignoreMapDisplayChanges = true; tMapLayer._setIdle(); DG.globalsController.addObserver('globalValueChanges', this, 'globalValueDidChange'); }, destroy: function () { this._ignoreMapDisplayChanges = true; // So we don't install an idleTask in response to layout changes this.model.destroy(); // so that it can unlink observers DG.globalsController.removeObserver('globalValueChanges', this, 'globalValueDidChange'); this.get('legendViews').forEach( function( iLegendView) { iLegendView.removeObserver('dragData', this, this.legendDidAcceptDrop); }); sc_super(); }, setMarqueeMode: function () { var tMapPointView = this.get('mapPointView'), tMapGridLayer = this.get('mapGridLayer'); if (tMapPointView && tMapPointView.get('isVisible')) { tMapPointView.set('isInMarqueeMode', true); } else if (tMapGridLayer && tMapGridLayer.get('isVisible')) { tMapGridLayer.set('isInMarqueeMode', true); } DG.logUser('marqueeToolSelect'); }, marqueeModeChanged: function () { var tGridInMarqueeMode = this.getPath('mapGridLayer.isInMarqueeMode'), tImage = (this.getPath('mapPointView.isInMarqueeMode') || tGridInMarqueeMode) ? 'dg-map-marquee-selected' : 'dg-map-marquee'; this.setPath('marqueeTool.image', tImage); }.observes('mapPointView.isInMarqueeMode', 'mapGridLayer.isInMarqueeMode'), changeBaseMap: function (iNewValue) { var tOldBackground = this.getPath('model.baseMapLayerName'); DG.UndoHistory.execute(DG.Command.create({ name: "map.changeBaseMap", undoString: 'DG.Undo.map.changeBaseMap', redoString: 'DG.Redo.map.changeBaseMap', log: 'Map base layer changed: %@'.fmt(iNewValue), _componentId: this.getPath('controller.model.id'), _controller: function () { return DG.currDocumentController().componentControllersMap[this._componentId]; }, executeNotification: { action: 'notify', resource: 'component', values: { operation: 'change base map', type: 'DG.MapView' } }, execute: function () { this._controller().setPath('view.contentView.model.baseMapLayerName', iNewValue); }, undo: function () { this._controller().setPath('view.contentView.model.baseMapLayerName', tOldBackground); this._controller().setPath('view.contentView.backgroundControl.value', [tOldBackground]); }, redo: function () { this._controller().setPath('view.contentView.model.baseMapLayerName', iNewValue); this._controller().setPath('view.contentView.backgroundControl.value', [iNewValue]); } })); }, changeGridSize: function () { var tControlValue = this.gridControl.get('value'); this.setPath('model.gridMultiplier', tControlValue); }.observes('gridControl.value'), changePersistedGridSize: function () { var tControlValue = this.gridControl.get('persistedValue'), tPreviousControlValue = this.gridControl.get('previousPersistedValue'); DG.UndoHistory.execute(DG.Command.create({ name: "map.changeGridSize", undoString: 'DG.Undo.map.changeGridSize', redoString: 'DG.Redo.map.changeGridSize', log: "Map grid size changed: {from: %@, to: %@}".fmt(tPreviousControlValue, tControlValue), _componentId: this.getPath('controller.model.id'), _controller: function () { return DG.currDocumentController().componentControllersMap[this._componentId]; }, executeNotification: { action: 'notify', resource: 'component', values: { operation: 'change grid size', type: 'DG.MapView' } }, execute: function () { }, undo: function () { this._controller().setPath('view.contentView.model.gridMultiplier', tPreviousControlValue); this._controller().setPath('view.contentView.gridControl.value', tPreviousControlValue); }, redo: function () { this._controller().setPath('view.contentView.model.gridMultiplier', tControlValue); this._controller().setPath('view.contentView.gridControl.value', tControlValue); } })); }.observes('gridControl.persistedValue'), addPointLayers: function () { if (!this.get('mapPointView')) { var tMapPointView = DG.MapPointView.create( { mapLayer: this.get('mapLayer'), model: this.get('model') }); this.set('mapPointView', tMapPointView); this.appendChild(tMapPointView); } else { this.get('mapPointView').addMapPointLayers(); } var tAlreadyUsedMapPointLegends = this.get('legendViews').map(function (iLegendView) { return iLegendView.get('model'); }), tUnusedMapPointLayers = this.getPath('mapPointView.mapPointLayers').filter( function( iLayer) { return tAlreadyUsedMapPointLegends.indexOf( iLayer.getPath('model.legend')) < 0; }); tUnusedMapPointLayers.forEach(function (iMapPointLayer) { var tNewLegendView = DG.LegendView.create( { model: iMapPointLayer.getPath('model.legend')}); this.observeLegendView( tNewLegendView); this.appendChild(tNewLegendView); this.legendViewCreationCallback(tNewLegendView); this.get('legendViews').push( tNewLegendView); }.bind( this)); this.adjustLayout(this.renderContext(this.get('tagName'))); this.updateMarqueeToolVisibility(); this.updateGridControlVisibility(); }, numberOfLayerModelsChanged: function () { function processLayerArray( iLayerArray) { iLayerArray.filter( function( iLayer) { return tMapLayerModels.indexOf( iLayer.get('model')) < 0; }).forEach( function( iLayerToRemove) { iLayerArray.splice( iLayerArray.indexOf( iLayerToRemove) , 1); iLayerToRemove.destroy(); }); } var tMapLayerModels = this.getPath( 'model.mapLayerModels'), tPolygonLayers = this.get('mapPolygonLayers'), tPointLayers = this.getPath('mapPointView.mapPointLayers'); if( tMapLayerModels.length > tPolygonLayers.length + tPointLayers.length) { // The routines to add point and polygon layers check to avoid duplicates, so we can just call them both. this.addPointLayers(); this.addPolygonLayers(); this.displayDidChange(); this.fitBounds(); } else { processLayerArray( tPolygonLayers); processLayerArray( tPointLayers); this.displayDidChange(); } this.updateMarqueeToolVisibility(); }.observes('model.mapLayerModelsChange'), updateMarqueeToolVisibility: function () { this.setPath('marqueeTool.isVisible', this.getPath('model.somethingIsSelectable')); }, somethingIsSelectableDidChange: function() { this.updateMarqueeToolVisibility(); }.observes('model.somethingIsSelectable'), updateGridControlVisibility: function () { this.setPath('gridControl.isVisible', this.getPath('model.gridIsVisible')); }, gridIsVisibleDidChange: function() { this.updateGridControlVisibility(); }.observes('model.gridIsVisible'), addPolygonLayers: function () { var tNewLayerAdded = false; if (!this.get('mapPolygonLayers')) { this.set('mapPolygonLayers', []); } var tLegendViews = this.get('legendViews'), tPolygonLayers = this.get('mapPolygonLayers'), tModelsForExistingLayers = tPolygonLayers.map(function (iLayer) { return iLayer.get('model'); }); this.getPath('model.mapLayerModels').forEach(function (iLayerModel) { if (iLayerModel.constructor === DG.MapPolygonLayerModel && tModelsForExistingLayers.indexOf(iLayerModel) < 0) { var tNewLayer = DG.MapPolygonLayer.create( { mapSource: this, model: iLayerModel }); tPolygonLayers.push(tNewLayer); tNewLayer.addFeatures(); var tLegendView = DG.LegendView.create({model: iLayerModel.get('legend')}); this.observeLegendView( tLegendView); this.appendChild(tLegendView); tLegendViews.push(tLegendView); this.legendViewCreationCallback(tLegendView); tNewLayerAdded = true; } }.bind(this)); if (!this.getPath('model.centerAndZoomBeingRestored') && tNewLayerAdded) { this.fitBounds(); } }, /** * Cause the map to shrink or expand to encompass the data */ fitBounds: function () { var tPolygonLayers = this.get('mapPolygonLayers'), tPointView = this.get('mapPointView'), tBounds = tPointView ? tPointView.getBounds() : null; if (tPolygonLayers) { tPolygonLayers.forEach(function (iLayer) { if( iLayer.getPath('model.isVisible')) { var tPolyBounds = iLayer.getBounds(); if (!SC.none(tPolyBounds)) { if (!tBounds) tBounds = tPolyBounds; else tBounds.extend(tPolyBounds); } } }); } if (tBounds && tBounds.isValid()) { this._fitBoundsInProgress = true; this.getPath('mapLayer.map').fitBounds(tBounds, {padding: this.kPadding, animate: true}); this.get('mapLayer')._setIdle(); } }, observeLegendView: function( iLegendView) { iLegendView.addObserver('dragData', this, this.legendDidAcceptDrop); }, /** * We pass the notification along to our controller by setting dragData as though the drop * had been received by us. * @param iView * @param iKey */ legendDidAcceptDrop: function(iView, iKey) { this.set('dragData', iView.get('dragData')); }, viewDidResize: function () { sc_super(); this.adjustLayout(this.renderContext(this.get('tagName'))); }, /** Set the layout (view position) for our subviews. @returns {void} */ adjustLayout: function (context, firstTime) { var tMapLayer = this.get('mapLayer'), tMapPointView = this.get('mapPointView'), tLegendHeight = 0; if (this._isRenderLayoutInProgress || !tMapPointView) return; this._isRenderLayoutInProgress = true; this.get('legendViews').forEach(function (iLegendView) { var tHeight = iLegendView.get('desiredExtent'); iLegendView.set('layout', {bottom: tLegendHeight, height: tHeight}); tLegendHeight += tHeight; }.bind(this)); // adjust() method avoids triggering observers if layout parameter is already at correct value. tMapPointView.adjust('bottom', tLegendHeight); tMapLayer.adjust('bottom', tLegendHeight); this._isRenderLayoutInProgress = false; // The polygons in the map, if any, may now be exposed, so give it a nudge so that they will repaint. this.invokeLast( function() { this.getPath('mapLayer.map').invalidateSize({pan: false}); }.bind(this)); }.observes('model.legendAttributeChange'), /** * Private property to prevent recursive execution of renderLayout. Seems most important in Firefox. */ _isRenderLayoutInProgress: false, /** * This is our chance to add the features to the area layer */ createVisualization: function () { var tPolygonLayers = this.get('mapPolygonLayers'); if (tPolygonLayers) { tPolygonLayers.forEach(function (iLayer) { iLayer.createVisualization(); }); } }, /** Called when the value of a global value changes (e.g. when a slider is dragged). */ globalValueDidChange: function () { var tPolygonLayers = this.get('mapPolygonLayers'); if (tPolygonLayers) { tPolygonLayers.forEach(function (iLayer) { iLayer.refreshComputedLegendColors(); }); } }, handleMapLayerDisplayChange: function () { var tMapPointView = this.get('mapPointView'), tLastEventType = this.getPath('mapLayer.lastEventType'); if (tMapPointView) { if (tLastEventType === 'dragstart') { tMapPointView.set('isVisible', false); } else if (tLastEventType === 'moveend') { tMapPointView.doDraw(); tMapPointView.set('isVisible', true); } tMapPointView.updateConnectingLines(); } var tMap = this.getPath('mapLayer.map'), tCenter = tMap.getCenter(), tZoom = tMap.getZoom(); // Record the current values, which will be applied in handleIdle() this._mapDisplayChangeInProgress = true; this._mapDisplayChange = { center: tCenter, zoom: tZoom }; this.setPath('mapLayer.lastEventType', null); }.observes('mapLayer.displayChangeCount'), /** * Clicks have to be handled carefully because we don't want a click on the map background to deselect * everything if the click is the click that first selects the map component. * So didBecomeSelected sets a temporary flag that remains set for a brief time so we can use it to * decide whether we should deselect everything. */ handleClick: function () { if (!this.justSelected) this.get('model').selectAll(false); }.observes('mapLayer.clickCount'), didBecomeSelected: function() { this.justSelected = true; this.invokeLater( function() { this.justSelected = false; }, 500); }.observes('parentView.parentView.isSelected'), handleIdle: function () { var tModel = this.get('model'), oldCenter = tModel.get('center'), oldZoom = tModel.get('zoom'); if (this._ignoreMapDisplayChanges) { this._ignoreMapDisplayChanges = false; this._mapDisplayChange = null; this._mapDisplayChangeInProgress = false; return; } if (this._mapDisplayChange) { var newCenter = this._mapDisplayChange.center, newZoom = this._mapDisplayChange.zoom, centerChanged = !newCenter.equals(oldCenter), zoomChanged = newZoom !== oldZoom; if (this._mapDisplayChangeInProgress && (centerChanged || zoomChanged)) { var change = 'change'; if (this._fitBoundsInProgress || (centerChanged && zoomChanged)) { change = 'fitBounds'; this._fitBoundsInProgress = false; } else if (centerChanged) { change = 'pan'; } else { change = 'zoom'; } DG.UndoHistory.execute(DG.Command.create({ name: "map." + change, undoString: 'DG.Undo.map.' + change, redoString: 'DG.Redo.map.' + change, causedChange: this.getPath('mapLayer.lastEventType') !== 'moveend', log: 'mapEvent: %@ at {center: %@, zoom: %@}'.fmt(change, newCenter, newZoom), _componentId: this.getPath('controller.model.id'), _controller: function () { return DG.currDocumentController().componentControllersMap[this._componentId]; }, executeNotification: { action: 'notify', resource: 'component', values: { operation: 'change map coordinates', type: 'DG.MapView' } }, execute: function () { var view = this._controller().getPath('view.contentView'); view.setPath('model.center', newCenter); view.setPath('model.zoom', newZoom); }, undo: function () { // Tell the map to change, but also ignore any events until those changes are done... var controller = this._controller(), view = controller.getPath('view.contentView'), map = view.getPath('mapLayer.map'); view._ignoreMapDisplayChanges = true; map.setView(oldCenter, oldZoom); view.setPath('model.center', oldCenter); view.setPath('model.zoom', oldZoom); }, redo: function () { // Tell the map to change, but also ignore any events until those changes are done... var controller = this._controller(), view = controller.getPath('view.contentView'), map = view.getPath('mapLayer.map'); view._ignoreMapDisplayChanges = true; map.setView(newCenter, newZoom); view.setPath('model.center', newCenter); view.setPath('model.zoom', newZoom); } })); } this._mapDisplayChangeInProgress = false; } }.observes('mapLayer.idleCount'), /** * Override the two mixin methods because the drop target view is mapPointView */ dragStarted: function () { if(this.get('dataConfiguration')) { DG.GraphDropTarget.dragStarted.apply(this, arguments); if (!this.getPath('model.hasLatLongAttributes')) this.setPath('mapPointView.isVisible', true); } }, dragEntered: function() { if(this.get('dataConfiguration')) { DG.GraphDropTarget.dragEntered.apply(this, arguments); } }, dragExited: function() { if(this.get('dataConfiguration')) { DG.GraphDropTarget.dragExited.apply(this, arguments); } }, dragEnded: function () { if(this.get('dataConfiguration')) { DG.GraphDropTarget.dragEnded.apply(this, arguments); } }, /** */ selectionDidChange: function () { var tAdorn = this.get('connectingLineAdorn'); if (tAdorn) { tAdorn.updateSelection(); } }.observes('selection'), /** * We've animated to our initial position and along the way lost our bounds. */ didReachInitialPosition: function () { this.fitBounds(); } } );
function RobotMazeInterface(robot,maze,selector ) { this.robot = robot; this.maze = maze; this.selector = selector; } RobotMazeInterface.prototype.canMove = function (x, y, direction) { var forwardX, forwardY, forwardDirection; if (["north","east","south","west"].indexOf(direction) === -1) { return false; } switch (direction) { case "north": forwardX = x; forwardY = y+1; forwardDirection = "south"; break; case "east": forwardX = x+1; forwardY = y; forwardDirection = "west"; break; case "south": forwardX = x; forwardY = y-1; forwardDirection = "north"; break; case "west": forwardX = x-1; forwardY = y; forwardDirection = "east"; break; } if (forwardX <= 0 || forwardX > this.maze.width || forwardY <= 0 || forwardY > this.maze.height) { return false } if (this.maze.spaces[x][y][direction]) { return false } if (this.maze.spaces[forwardX][forwardY][forwardDirection]) { return false } return true } RobotMazeInterface.prototype.render = function () { $(this.selector).empty().append(this.renderMaze(), this.renderControls()); }; RobotMazeInterface.prototype.renderMaze = function () { var $maze = $("<div class='maze'>"); var $mazeRow, $mazeSpace; for (var y=this.maze.height; y >= 1; y -=1 ){ $mazeRow = $('<div class="mazeRow">').appendTo($maze); for (var x=1; x <= this.maze.width; x +=1 ){ $mazeSpace = $('<div class="mazeSpace">').appendTo($mazeRow); $mazeSpace.append(this.renderSpace(x,y)); $mazeSpace.append("&nbsp;") .toggleClass('north', !this.canMove(x, y, 'north')) .toggleClass('south', !this.canMove(x, y, 'south')) .toggleClass('east', !this.canMove(x, y, 'east')) .toggleClass('west', !this.canMove(x, y, 'west')); } } return $maze; } RobotMazeInterface.prototype.renderSpace = function (x,y) { var isRobot = false; var isStart = false; var isEnd = false; if (this.robot !== null && this.robot.x == x && this.robot.y == y) { isRobot = true; } if (this.maze.endX == x && this.maze.endY == y) { isEnd = true; } if (this.maze.startX == x && this.maze.startY == y) { isStart = true; } if (!isRobot && !isStart && !isEnd) { return ""; } var icons = { start: "icon-screenshot", end: "icon-remove-circle", northRobot: "icon-user", eastRobot: "icon-user", southRobot: "icon-user", westRobot: "icon-user", northRobotStart: "icon-user", eastRobotStart: "icon-user", southRobotStart: "icon-user", westRobotStart: "icon-user", robotEnd: "icon-ok-sign " } var $space = $('<i>'); if (isRobot) { $space.addClass("robot"); } if (isStart) { $space.addClass("start"); } if (isEnd) { $space.addClass("end"); } if (isRobot && isEnd) { $space.addClass(icons["robotEnd"]); } else if (isRobot && isStart) { $space.addClass(icons[this.robot.orientation + "RobotStart"]); } else if (isRobot) { $space.addClass(icons[this.robot.orientation + "Robot"]); } else if (isEnd) { $space.addClass(icons["end"]); } else if (isStart) { $space.addClass(icons["start"]); } return $space; } RobotMazeInterface.prototype.renderControls = function () { var interface = this; if (interface.robot === null) return false; var $actions = $("<div class='actions'>"); var buttons = {}; if(typeof interface.robot.setMaze == 'function') { buttons["Place Robot in Maze"] = function () { interface.robot.setMaze(interface.maze); interface.render(); }; } if(typeof interface.robot.exitMazeLeftWall == 'function') { buttons["Follow the Left Wall"] = function () { if (interface.robot.maze == interface.maze) { (function callExitMaze(){ setTimeout(function() { result = interface.robot.exitMazeLeftWall(1); interface.render(); if (result === false) { callExitMaze(); } return result; }, 150); })(); } }; } if(typeof interface.robot.exitMazeRightWall == 'function') { buttons["Follow the Right Wall"] = function () { if (interface.robot.maze == interface.maze) { (function callExitMaze(){ setTimeout(function() { result = interface.robot.exitMazeRightWall(1); interface.render(); if (result === false) { callExitMaze(); } return result; }, 150); })(); } }; } for (var label in buttons) { if (buttons.hasOwnProperty(label)){ var $btn = $('<a class="btn">') .text(label) .appendTo($actions) .click(buttons[label]); } } if (this.robot.maze != this.maze || (this.maze.endX == this.robot.x && this.maze.endY == this.robot.y)) { $robot = $('<i class="robot icon-user"></i>').appendTo($actions); } return $actions; }
'use strict'; class Zone { constructor(hosts, whitelist) { this.root = {}; this.whitelist = whitelist; this.hosts = Array.isArray(hosts) ? hosts : [hosts]; this.buildIndex(); } buildIndex() { const root = this.root; this.whitelist .map(domain => reverse(domain)) .sort() .forEach(reversed => { let words = reversed.split('.'); let subtree = root; for (let w of words) { if (!subtree[w]) { subtree[w] = {__: 0}; subtree.__++; } subtree = subtree[w]; } }); return root; } match(domain, exact = false) { let subtree = this.root; const reversedDomain = reverse(domain).split('.'); let matched = false; for (let i = 0, m; m = reversedDomain[i]; i++) { if (m in subtree) { if (subtree[m].__ === 0) { matched = exact ? !reversedDomain[i + 1] : true; break; } else { subtree = subtree[m]; } } else { break; } } return matched; } hosts() { return this.hosts; } } function reverse(domain) { return domain.split('.').reverse().join('.') } module.exports = Zone;
function checkBalance(x) { var acct = eth.accounts[x]; var acctBal = web3.fromWei(eth.getBalance(acct), "ether"); console.log(" eth.accounts[" + x + "]: \t" + acct + " \tbalance: " + acctBal + " ether"); } function checkAllBalances() { var totalBal = 0; for (var acctNum in eth.accounts) { var acct = eth.accounts[acctNum]; var acctBal = web3.fromWei(eth.getBalance(acct), "ether"); totalBal += parseFloat(acctBal); console.log(" eth.accounts[" + acctNum + "]: \t" + acct + " \tbalance: " + acctBal + " ether"); } console.log(" Total balance: " + totalBal + " ether"); };
const _ = require('lodash'); const fs = require('fs'); const _path = require('path'); /** * @memberOf FileUtil * @function utimesSync * * Synchronous {@link http://man7.org/linux/man-pages/man2/utimes.2.html|utimes(2)}. * * @param {Object} options * @param {String|Buffer} options.path * @param {Number} options.atime * @param {Number} options.mtime * * @returns {undefined} * @see {@link https://nodejs.org/api/fs.html#fs_fs_utimessync_path_atime_mtime} */ var utimesSync = function (options) { var path = _.get(options, 'path'); if (_.isString(path) || _.isBuffer(path)) { path = _path.resolve(process.cwd(), path); } var atime = _.get(options, 'atime'); var mtime = _.get(options, 'mtime'); return fs.utimesSync(path, atime, mtime); }; module.exports = utimesSync;
'use strict'; const AWS = require('aws-sdk-mock'); AWS.mock('S3', 'upload', function(params, callback) { if(!params.Key) return callback(new Error('must have a key')); if(!params.Body) return callback(new Error('must have a body')); if(params.ACL !== 'public-read') return callback(new Error('ACL must be public-read')); if(params.Bucket !== 'fake-bucket') return callback(new Error('Bucket must be fake-bucket')); callback(null, { key: params.Key, Location: `fakeaws.s3.com/fake-bucket/${params.Key}`, }); }); AWS.mock('S3', 'deleteObject', function(params, callback) { if(!params.Key) return callback(new Error('must have a key')); if(params.Bucket !== 'fake-bucket') return callback(new Error('bucket must be fake-bucket')); callback(null, {}); });
/* https://tools.ietf.org/html/rfc3629 UTF8-char = UTF8-1 / UTF8-2 / UTF8-3 / UTF8-4 UTF8-1 = %x00-7F UTF8-2 = %xC2-DF UTF8-tail UTF8-3 = %xE0 %xA0-BF UTF8-tail %xE1-EC 2( UTF8-tail ) %xED %x80-9F UTF8-tail %xEE-EF 2( UTF8-tail ) UTF8-4 = %xF0 %x90-BF 2( UTF8-tail ) %xF1-F3 3( UTF8-tail ) %xF4 %x80-8F 2( UTF8-tail ) UTF8-tail = %x80-BF */ /** * Check if a Node.js Buffer or Uint8Array is UTF-8. */ function isUtf8(buf) { if (!buf) { return false; } let i = 0; const len = buf.length; while (i < len) { // UTF8-1 = %x00-7F if (buf[i] <= 0x7F) { i++; continue; } // UTF8-2 = %xC2-DF UTF8-tail if (buf[i] >= 0xC2 && buf[i] <= 0xDF) { // if(buf[i + 1] >= 0x80 && buf[i + 1] <= 0xBF) { if (buf[i + 1] >> 6 === 2) { i += 2; continue; } else { return false; } } // UTF8-3 = %xE0 %xA0-BF UTF8-tail // UTF8-3 = %xED %x80-9F UTF8-tail if (((buf[i] === 0xE0 && buf[i + 1] >= 0xA0 && buf[i + 1] <= 0xBF) || (buf[i] === 0xED && buf[i + 1] >= 0x80 && buf[i + 1] <= 0x9F)) && buf[i + 2] >> 6 === 2) { i += 3; continue; } // UTF8-3 = %xE1-EC 2( UTF8-tail ) // UTF8-3 = %xEE-EF 2( UTF8-tail ) if (((buf[i] >= 0xE1 && buf[i] <= 0xEC) || (buf[i] >= 0xEE && buf[i] <= 0xEF)) && buf[i + 1] >> 6 === 2 && buf[i + 2] >> 6 === 2) { i += 3; continue; } // UTF8-4 = %xF0 %x90-BF 2( UTF8-tail ) // %xF1-F3 3( UTF8-tail ) // %xF4 %x80-8F 2( UTF8-tail ) if (((buf[i] === 0xF0 && buf[i + 1] >= 0x90 && buf[i + 1] <= 0xBF) || (buf[i] >= 0xF1 && buf[i] <= 0xF3 && buf[i + 1] >> 6 === 2) || (buf[i] === 0xF4 && buf[i + 1] >= 0x80 && buf[i + 1] <= 0x8F)) && buf[i + 2] >> 6 === 2 && buf[i + 3] >> 6 === 2) { i += 4; continue; } return false; } return true; } export default isUtf8;
/** * Module dependencies. */ var rode = require('rode'); var __PACKAGE__ = rode.getModel('__PACKAGE__'); /** * Main Controller of __PACKAGE__ */ var __PACKAGE__Controller = { /** * index Action */ index: function (req, res) { res.render('__PACKAGE__/index', { //{{render}}// title: 'Index of __PACKAGE__' }); } }; module.exports = __PACKAGE__Controller;
if (typeof require == 'function') { var oakstacheParse = require('./parser').mparse; } var oakstache = (function() { /** Escape HTML. */ function escapeHtml(html) { var table = { '<': '&lt;', '>': '&gt;', '&': '&amp;', '"': '&quot;', '\'': '&#039;' }; return ('' + html).replace(/[\<\>\&'"]/g, function(match) { return table[match]; }); } /** Robust way to operate on an AST. */ function operate(fns, ast, state) { return (function helper(state, ast) { if (Array.isArray(ast)) { var helperfn = helper.bind(null, state); return fns.stmts ? fns.stmts(ast, state) : ast.map(helperfn); } else if (typeof ast == 'string') { return fns.content ? fns.content(ast, state) : ast; } else if (ast && typeof ast == 'object') { if (ast.type == 'unbound') { return fns.unbound ? fns.unbound(ast, state) : ast; } else if (ast.type == 'loop') { return fns.loop ? fns.loop(ast, state) : ast; } else if (ast.type == 'if') { return fns.if ? fns.if(ast, state) : ast; } else if (ast.open) { return fns.open ? fns.open(ast, state) : ast; } else if (ast.close) { return fns.close ? fns.close(ast, state) : ast; } else if (ast.type == 'lit') { return fns.literal ? fns.literal(ast, state) : ast; } else { throw new Error('invalid ast: ' + JSON.stringify(ast)); } } else { throw new Error('invalid ast: ' + JSON.stringify(ast)); } })(state, ast); } function resolve(obj, paths) { for (var i = 0; i < paths.length; i++) { obj = obj[paths[i]]; if (obj === undefined) { return undefined; } } return obj; } function forceStr(obj) { if (obj === undefined || obj === null) { return ''; } else if (typeof obj == 'object') { return ''; } else { return obj.toString(); } } function stringifyPath(path) { if (path.type == 'i') { return 'i'; } else if (path[0].backout) { var dotdot = new Array(path[0].backout + 1).join('../'); return dotdot + path.slice(1).join('.'); } else { return path.join('.'); } } function stringifyOpenIf(ast) { var name = stringifyPath(ast.clause.path); var rvalue = ast.clause.value && ast.clause.value.type == 'last' ? '.last' : ast.clause.value; var result = '{if '; if (ast.clause.type == 'simple') { result += name; } else if (ast.clause.type == 'inverse') { result += 'not ' + name; } else if (ast.clause.type == 'eq') { result += name + ' is ' + rvalue; } else if (ast.clause.type == 'neq') { result += 'not ' + name + ' is ' + rvalue; } return result + '}'; } function stringifyOpenLoop(ast) { return '{loop ' + stringifyPath(ast.path) + '}'; } /** Binds all unbound variables using lookupFn. */ function bind(ast, obj, state, escapefn, unresolved) { state = state || []; escapefn = escapefn || escapeHtml; unresolved = unresolved || function() {}; var lookup = function(state, path) { if (path.length > 0 && path[0].backout) { var sliceOff = path[0].backout; if (state.length > 1 && typeof state[state.length - 1] == 'number') { sliceOff += 1; } state = state.slice(0, state.length - sliceOff); path = path.slice(1); } return resolve(obj, state.concat(path)); }; var simplify = function(stmts) { if (stmts.every(function(s) { return typeof s == 'string'; })) { return stmts.join(''); } else { return stmts; } }; var transforms = { stmts: function(ast, state) { return simplify(ast.map(function(ast, i) { return operate(transforms, ast, state); })); }, unbound: function(ast, state) { var bound = lookup(state, ast.path); if (bound === undefined) { return unresolved(ast, state); } else if (ast.escape) { return escapefn(forceStr(bound)); } else { return forceStr(bound); } }, loop: function(ast, state) { var bound = lookup(state, ast.path); if (bound === undefined) { return unresolved(ast, state); } else if (Array.isArray(bound)) { return simplify(bound.map(function(obj, i) { return operate(transforms, ast.contents, state.concat(ast.path, [i])); })); } else { return ''; } }, 'if': function(ast, state) { var loopStateI = (function() { for (var i = state.length - 1; i >= 0; i--) { if (typeof parseInt(state[i]) == 'number') { return i; } } return -1; }); var bound = undefined; if (ast.clause.path.type == 'i') { bound = state[loopStateI()]; } else { bound = lookup(state, ast.clause.path); if (bound === undefined) { var resolved = unresolved(ast, state); if (resolved !== undefined) { return resolved; } } } var value = ast.clause.value; if (value && value.type == 'last') { var i = loopStateI(); value = resolve(obj, state.slice(0, i)).length - 1; } var clause = ast.clause; var isRealObject = typeof bound == 'object' && bound !== null; if (Array.isArray(bound) && bound.length === 0) { isRealObject = false; } var execute = false; if (clause.type == 'eq') { execute = !isRealObject && forceStr(bound) == value; } else if (clause.type == 'neq') { execute = !isRealObject && forceStr(bound) != value; } else if (clause.type == 'simple') { execute = isRealObject || bound !== false && forceStr(bound); } else if (clause.type == 'inverse') { execute = !isRealObject && (bound === false || !forceStr(bound)); } if (execute) { return operate(transforms, ast.contents, state); } else { return ''; } }, open: function(ast, state) { return unresolved(ast, state); }, close: function(ast, state) { return unresolved(ast, state); }, literal: function(ast, state) { return unresolved(ast, state); } }; return operate(transforms, ast, state); } /** * Convenience function that parses string as an AST and then evaluates the * AST using obj as its namespace. */ function renderString(str, obj, escapefn, state) { state = state || []; var unresolved = function(ast) { if (ast.type == 'if') { return undefined; } else if (ast.open) { if (ast.obj.type == 'loop') { return stringifyOpenLoop(ast.obj); } else if (ast.obj.type == 'if') { return stringifyOpenIf(ast.obj); } else { return ''; } } else if (ast.close) { return '{/}'; } else if (ast.type == 'lit') { return ast.value; } else { return ''; } }; return bind(oakstacheParse(str), obj, state, escapefn, unresolved); } /** Like renderString, but leaves unbound variables in place. */ function renderStringUnbound(str, obj, escapefn) { var unresolved = function(ast, state) { if (ast.type == 'loop') { return (stringifyOpenLoop(ast) + bind(ast.contents, obj, state, escapefn, unresolved) + '{/}'); } else if (ast.type == 'if') { return (stringifyOpenIf(ast) + bind(ast.contents, obj, state, escapefn, unresolved) + '{/}'); } else if (ast.type == 'unbound') { var name = stringifyPath(ast.path); if (ast.escape) { return '{' + name + '}'; } else { return '{{' + name + '}}'; } } else if (ast.open) { if (ast.obj.type == 'loop') { return stringifyOpenLoop(ast.obj); } else if (ast.obj.type == 'if') { return stringifyOpenIf(ast.obj); } else { return ''; } } else if (ast.close) { return '{/}'; } else if (ast.type == 'lit') { return '{"""' + ast.value + '"""}'; } }; return bind(oakstacheParse(str), obj, [], escapefn, unresolved); } if (typeof require == 'function' && require.main == module) { var assert = require('assert'); // renderString tests (function test(str, json, result, state) { try { assert.equal(renderString(str, json, undefined, state), result); } catch(e) { console.log(JSON.stringify(oakstacheParse(str), 0, 2)); throw e; } return test; }) // Basic unbound ('{}', {}, '{}') ('test {123}', { 123: 'hi' }, 'test hi') ('test {abc.123}', { abc: { 123: 'hi' } }, 'test hi') ('test {abc.123}', {}, 'test ') // Escaped unbound ('<a href="{{href}}">', { href: '">hax!' }, '<a href="">hax!">') ('<a href="{href}">', { href: '">hax!' }, '<a href="&quot;&gt;hax!">') // Literal ('{"""{test}"""}', {}, '{test}') // If checks ('{if not r}no results{/}', { r: 5 }, '') ('{if not r}no results{/}', {}, 'no results') ('{if r}r: {{r}}{/}', { r: 5 }, 'r: 5') ('{if not r}bar{/}', { r: [] }, 'bar') ('{if r}bar{/}', { r: [] }, '') ('{if not r}bar{/}', { r: [1] }, '') ('{if r}bar{/}', { r: [1] }, 'bar') ('{if not r}bar{/}', { r: {} }, '') ('{if r}bar{/}', { r: {} }, 'bar') ('{if r is 4}r: {{r}}{/}', { r: 5 }, '') ('{if r is 5}r: {{r}}{/}', { r: 5 }, 'r: 5') ('{if r is r}r: {{r}}{/}', { r: 'r' }, 'r: r') ('{if r is r}r: {{r}}{/}', { r: 5 }, '') ('{if r}yes{/}', { r: false }, '') ('{if not r}no{/}', { r: false }, 'no') // Loops ('test {loop loop}{.}{/}', { loop: [1, 2, 3, 4, 5] }, 'test 12345') ('test {loop loop}Hello, {name}.{/}', { loop: [{ name: 'Ben' }, { name: 'world' }] }, 'test Hello, Ben.Hello, world.') ('{loop loop}Number {{i}} {/}', { loop: [{ i: 10 }, { i: 0 }] }, 'Number 10 Number 0 ') ('{loop loop}{../bar}{/}', { loop: [1, 2], bar: 3 }, '33') ('{loop loop}{bar}{/}', { loop: [1, 2], bar: 3 }, '') ('{loop .}{loop .}{.}{/}{/}', [[1,2],[3],[4]], '1234') // Loops with ifs ('{loop .}{if .i is .last}..{/}{.}{/}', [1, 2, 3], '12..3') ('{loop .}{.}{if not .i is .last}, {/}{/}', [1, 2, 3], '1, 2, 3') ('{if loop}{loop loop}{.}{/}{/}', { loop: [1, 2, 3] }, '123') // Unresolved open or closed things. ('{loop x}', {}, '{loop x}') ('{/}', {}, '{/}') // Start with state ('{a}', { b: { a: 5 } }, '5', ['b']) ('{../value}', { b: { a: 5 }, value: 101 }, '101', ['b']); // renderStringUnbound tests (function test(str, json, result) { assert.equal(renderStringUnbound(str, json), result); return test; }) ('test {123}', { 4: 'hi' }, 'test {123}') ('test {"""{}"""}', {}, 'test {"""{}"""}') ('test { }', {}, 'test { }') ('test {', {}, 'test {') ('test {456', {}, 'test {456') ('test {loop a}a{/}', {}, 'test {loop a}a{/}') ('test {if a}a', {}, 'test {if a}a'); } var exports = {}; exports.escapeHtml = escapeHtml; exports.resolve = resolve; exports.parse = oakstacheParse; exports.operate = operate; exports.bind = bind; exports.renderString = renderString; exports.renderStringUnbound = renderStringUnbound; return exports; })(); if (typeof module == 'object') { module.exports = oakstache; }
import PropTypes from 'prop-types'; import React from 'react'; import AUctaLink from '../../scripts/uikit/cta-link'; /** * The Feedback component to be used after all content blocks */ const Feedback = ( page ) => { return ( <div className="au-body au-grid feedback_container"> <div className="container-fluid"> <div className="row"> <div className="col-xs-12 feedback_form__container"> <span className="helpful__question">Was this page helpful?</span> <span className="helpful__buttons"> <button className="au-btn au-btn--dark helpful_yes">Yes</button> <button className="au-btn au-btn--dark helpful_no">No</button> </span> <div className="feedback_response__container"> <textarea placeholder="Please type your feedback here" className="au-text-input au-text-input--block au-text-input--dark helpful__yes__textarea"/> </div> <div className="feedback_response__container"> <textarea placeholder="Please type your feedback here" className="au-text-input au-text-input--block au-text-input--dark helpful__no__textarea"/> </div> <span className="helpful__buttons"> <button className="au-btn au-btn--dark helpful__yes__suggestion__submit">Submit</button> <button className="au-btn au-btn--dark helpful__no__suggestion__submit">Submit</button> </span> </div> </div> </div> </div> ); }; Feedback.propTypes = { /** * buttonUrl: /feedback */ buttonUrl: PropTypes.string.isRequired, /** * buttonText: Send us feedback */ buttonText: PropTypes.string.isRequired, }; Feedback.defaultProps = {}; export default Feedback;
import React from 'react' import ReactDOM from 'react-dom' import { Link } from 'react-router' import { Navbar } from 'react-bootstrap' export default class NavBar extends React.Component { render() { return ( <Navbar> <Navbar.Header> <Navbar.Brand> <Link to='/'>Pilgrim</Link> </Navbar.Brand> <Navbar.Toggle /> </Navbar.Header> </Navbar> ); } }
(function() { 'use strict'; angular.module('gulpangular') .run(runBlock); /** @ngInject */ function runBlock($log) { $log.debug('runBlock end'); } })();
const { transformCompanyToBusinessDetails } = require('../transformers') const companyMock = require('../../../../../../test/unit/data/companies/company-v4') describe('Company business details transformers', () => { describe('#transformCompanyToBusinessDetails', () => { context('when called with a fully populated company', () => { it('should return transformed values', () => { const company = { ...companyMock, headquarter_type: { name: 'ghq', }, } const actual = transformCompanyToBusinessDetails(company) const expected = { id: 'a73efeba-8499-11e6-ae22-56b6b6499611', address: { line_1: '82 Ramsgate Rd', line_2: '', town: 'Willington', county: '', postcode: 'NE28 5JB', country: { name: 'United Kingdom', id: '80756b9a-5d95-e211-a939-e4115bead28a', }, }, description: 'This is a dummy company for testing', registered_address: { line_1: '82 Ramsgate Rd', line_2: '', town: 'Willington', county: '', postcode: 'NE28 5JB', country: { name: 'United Kingdom', id: '80756b9a-5d95-e211-a939-e4115bead28a', }, }, name: 'Mercury Ltd', trading_names: [], company_number: '99919', created_on: '2016-06-05T12:00:00Z', modified_on: '2016-07-05T12:00:00Z', uk_based: true, headquarter_type: { name: 'ghq', }, business_type: 'Private limited company', turnover_range: '£33.5M+', employee_range: '500+', sector: 'Retail', uk_region: 'North West', one_list_group_tier: 'Tier A - Strategic Account', one_list_group_global_account_manager: [ 'Travis Greene', 'IST - Sector Advisory Services', 'London', ], headquarter_type_label: 'Global HQ', export_segment: 'hep', export_sub_segment: 'sustain_nurture_and_grow', } expect(actual).to.deep.equal(expected) }) it('should not error when the "One list account owner" is not set', () => { const company = { one_list_group_tier: { name: 'Tier A - Strategic Account' }, one_list_group_global_account_manager: null, } const actual = transformCompanyToBusinessDetails(company) expect(actual).to.deep.equal({ one_list_group_tier: 'Tier A - Strategic Account', }) }) }) context('when called without any fields', () => { const actual = transformCompanyToBusinessDetails({}) it('should return empty object', () => { expect(actual).to.deep.equal({}) }) }) }) })
export default (channelName) => ({ type: 'REMOVE_CHANNEL', channelName })
'use strict'; var gulp = require('gulp'); var browserSync = require('browser-sync'); var browserSyncSpa = require('browser-sync-spa'); var util = require('util'); var middleware = require('./proxy'); module.exports = function(options) { function browserSyncInit(baseDir, browser) { browser = browser === undefined ? 'default' : browser; var routes = null; if (baseDir === options.src || (util.isArray(baseDir) && baseDir.indexOf(options.src) !== -1)) { routes = { '/bower_components': 'bower_components' }; } var server = { baseDir: baseDir, routes: routes }; if (middleware.length > 0) { server.middleware = middleware; } browserSync.instance = browserSync.init({ startPath: '/', server: server, browser: browser }); } browserSync.use(browserSyncSpa({ selector: '[ng-app]' // Only needed for angular apps })); gulp.task('serve', ['watch'], function() { browserSyncInit([options.tmp + '/serve', options.src]); }); gulp.task('serve:dist', ['build'], function() { browserSyncInit(options.dist); }); gulp.task('serve:e2e', ['inject'], function() { browserSyncInit([options.tmp + '/serve', options.src], []); }); gulp.task('serve:e2e-dist', ['build'], function() { browserSyncInit(options.dist, []); }); };
'use strict'; //Make sure jQuery has been loaded before app.js if (typeof jQuery === "undefined") { throw new Error("Admin requires jQuery"); } /* Admin * * @type Object * @description $.Admin is the main object for the template's app. * It's used for implementing functions and options related * to the template. Keeping everything wrapped in an object * prevents conflict with other plugins and is a better * way to organize our code. */ $.Admin = {}; /* -------------------- * - Admin Options - * -------------------- * Modify these options to suit your implementation */ $.Admin.options = { //Add slimscroll to navbar menus //This requires you to load the slimscroll plugin //in every page before app.js navbarMenuSlimscroll: true, navbarMenuSlimscrollWidth: "3px", //The width of the scroll bar navbarMenuHeight: "200px", //The height of the inner menu //Sidebar push menu toggle button selector sidebarToggleSelector: "[data-toggle='offcanvas']", //Activate sidebar push menu sidebarPushMenu: true, //Activate sidebar slimscroll if the fixed layout is set (requires SlimScroll Plugin) sidebarSlimScroll: true, //Enable sidebar expand on hover effect for sidebar mini //This option is forced to true if both the fixed layout and sidebar mini //are used together sidebarExpandOnHover: false, //BoxRefresh Plugin enableBoxRefresh: true, //Bootstrap.js tooltip enableBSToppltip: true, BSTooltipSelector: "[data-toggle='tooltip']", //Enable Fast Click. Fastclick.js creates a more //native touch experience with touch devices. If you //choose to enable the plugin, make sure you load the script //before Admin's app.js enableFastclick: true, //Control Sidebar Options enableControlSidebar: true, controlSidebarOptions: { //Which button should trigger the open/close event toggleBtnSelector: "[data-toggle='control-sidebar']", //The sidebar selector selector: ".control-sidebar", //Enable slide over content slide: true }, //Box Widget Plugin. Enable this plugin //to allow boxes to be collapsed and/or removed enableBoxWidget: true, //Box Widget plugin options boxWidgetOptions: { boxWidgetIcons: { //Collapse icon collapse: 'fa-minus', //Open icon open: 'fa-plus', //Remove icon remove: 'fa-times' }, boxWidgetSelectors: { //Remove button selector remove: '[data-widget="remove"]', //Collapse button selector collapse: '[data-widget="collapse"]' } }, //Direct Chat plugin options directChat: { //Enable direct chat by default enable: true, //The button to open and close the chat contacts pane contactToggleSelector: '[data-widget="chat-pane-toggle"]' }, //Define the set of colors to use globally around the website colors: { lightBlue: "#3c8dbc", red: "#f56954", green: "#00a65a", aqua: "#00c0ef", yellow: "#f39c12", blue: "#0073b7", navy: "#001F3F", teal: "#39CCCC", olive: "#3D9970", lime: "#01FF70", orange: "#FF851B", fuchsia: "#F012BE", purple: "#8E24AA", maroon: "#D81B60", black: "#222222", gray: "#d2d6de" }, //The standard screen sizes that bootstrap uses. //If you change these in the variables.less file, change //them here too. screenSizes: { xs: 480, sm: 768, md: 992, lg: 1200 } }; /* ------------------ * - Implementation - * ------------------ * The next block of code implements Admin's * functions and plugins as specified by the * options above. */ $(function () { //Extend options if external options exist if (typeof AdminLTEOptions !== "undefined") { $.extend(true, $.Admin.options, AdminLTEOptions); } //Easy access to options var o = $.Admin.options; //Set up the object _init(); //Activate the layout maker $.Admin.layout.activate(); //Enable sidebar tree view controls $.Admin.tree('.sidebar'); //Enable control sidebar if (o.enableControlSidebar) { $.Admin.controlSidebar.activate(); } //Add slimscroll to navbar dropdown if (o.navbarMenuSlimscroll && typeof $.fn.slimscroll != 'undefined') { $(".navbar .menu").slimscroll({ height: o.navbarMenuHeight, alwaysVisible: false, size: o.navbarMenuSlimscrollWidth }).css("width", "100%"); } //Activate sidebar push menu if (o.sidebarPushMenu) { $.Admin.pushMenu.activate(o.sidebarToggleSelector); } //Activate Bootstrap tooltip if (o.enableBSToppltip) { $('body').tooltip({ selector: o.BSTooltipSelector }); } //Activate box widget if (o.enableBoxWidget) { $.Admin.boxWidget.activate(); } //Activate fast click if (o.enableFastclick && typeof FastClick != 'undefined') { FastClick.attach(document.body); } //Activate direct chat widget if (o.directChat.enable) { $(o.directChat.contactToggleSelector).on('click', function () { var box = $(this).parents('.direct-chat').first(); box.toggleClass('direct-chat-contacts-open'); }); } /* * INITIALIZE BUTTON TOGGLE * ------------------------ */ $('.btn-group[data-toggle="btn-toggle"]').each(function () { var group = $(this); $(this).find(".btn").on('click', function (e) { group.find(".btn.active").removeClass("active"); $(this).addClass("active"); e.preventDefault(); }); }); }); /* ---------------------------------- * - Initialize the Admin Object - * ---------------------------------- * All Admin functions are implemented below. */ function _init() { /* Layout * ====== * Fixes the layout height in case min-height fails. * * @type Object * @usage $.Admin.layout.activate() * $.Admin.layout.fix() * $.Admin.layout.fixSidebar() */ $.Admin.layout = { activate: function () { var _this = this; _this.fix(); _this.fixSidebar(); $(window, ".wrapper").resize(function () { _this.fix(); _this.fixSidebar(); }); }, fix: function () { //Get window height and the wrapper height var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight(); var window_height = $(window).height(); var sidebar_height = $(".sidebar").height(); //Set the min-height of the content and sidebar based on the //the height of the document. if ($("body").hasClass("fixed")) { $(".content-wrapper, .right-side").css('min-height', window_height - $('.main-footer').outerHeight()); } else { var postSetWidth; if (window_height >= sidebar_height) { $(".content-wrapper, .right-side").css('min-height', window_height - neg); postSetWidth = window_height - neg; } else { $(".content-wrapper, .right-side").css('min-height', sidebar_height); postSetWidth = sidebar_height; } //Fix for the control sidebar height var controlSidebar = $($.Admin.options.controlSidebarOptions.selector); if (typeof controlSidebar !== "undefined") { if (controlSidebar.height() > postSetWidth) $(".content-wrapper, .right-side").css('min-height', controlSidebar.height()); } } }, fixSidebar: function () { //Make sure the body tag has the .fixed class if (!$("body").hasClass("fixed")) { if (typeof $.fn.slimScroll != 'undefined') { $(".sidebar").slimScroll({destroy: true}).height("auto"); } return; } else if (typeof $.fn.slimScroll == 'undefined' && console) { console.error("Error: the fixed layout requires the slimscroll plugin!"); } //Enable slimscroll for fixed layout if ($.Admin.options.sidebarSlimScroll) { if (typeof $.fn.slimScroll != 'undefined') { //Destroy if it exists $(".sidebar").slimScroll({destroy: true}).height("auto"); //Add slimscroll $(".sidebar").slimscroll({ height: ($(window).height() - $(".main-header").height()) + "px", color: "rgba(0,0,0,0.2)", size: "3px" }); } } } }; /* PushMenu() * ========== * Adds the push menu functionality to the sidebar. * * @type Function * @usage: $.Admin.pushMenu("[data-toggle='offcanvas']") */ $.Admin.pushMenu = { activate: function (toggleBtn) { //Get the screen sizes var screenSizes = $.Admin.options.screenSizes; //Enable sidebar toggle $(toggleBtn).on('click', function (e) { e.preventDefault(); //Enable sidebar push menu if ($(window).width() > (screenSizes.sm - 1)) { $("body").toggleClass('sidebar-collapse'); } //Handle sidebar push menu for small screens else { if ($("body").hasClass('sidebar-open')) { $("body").removeClass('sidebar-open'); $("body").removeClass('sidebar-collapse') } else { $("body").addClass('sidebar-open'); } } }); $(".content-wrapper").click(function () { //Enable hide menu when clicking on the content-wrapper on small screens if ($(window).width() <= (screenSizes.sm - 1) && $("body").hasClass("sidebar-open")) { $("body").removeClass('sidebar-open'); } }); //Enable expand on hover for sidebar mini if ($.Admin.options.sidebarExpandOnHover || ($('body').hasClass('fixed') && $('body').hasClass('sidebar-mini'))) { this.expandOnHover(); } }, expandOnHover: function () { var _this = this; var screenWidth = $.Admin.options.screenSizes.sm - 1; //Expand sidebar on hover $('.main-sidebar').hover(function () { if ($('body').hasClass('sidebar-mini') && $("body").hasClass('sidebar-collapse') && $(window).width() > screenWidth) { _this.expand(); } }, function () { if ($('body').hasClass('sidebar-mini') && $('body').hasClass('sidebar-expanded-on-hover') && $(window).width() > screenWidth) { _this.collapse(); } }); }, expand: function () { $("body").removeClass('sidebar-collapse').addClass('sidebar-expanded-on-hover'); }, collapse: function () { if ($('body').hasClass('sidebar-expanded-on-hover')) { $('body').removeClass('sidebar-expanded-on-hover').addClass('sidebar-collapse'); } } }; /* Tree() * ====== * Converts the sidebar into a multilevel * tree view menu. * * @type Function * @Usage: $.Admin.tree('.sidebar') */ $.Admin.tree = function (menu) { var _this = this; $("li a", $(menu)).on('click', function (e) { //Get the clicked link and the next element var $this = $(this); var checkElement = $this.next(); //Check if the next element is a menu and is visible if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible'))) { //Close the menu checkElement.slideUp('normal', function () { checkElement.removeClass('menu-open'); //Fix the layout in case the sidebar stretches over the height of the window //_this.layout.fix(); }); checkElement.parent("li").removeClass("active"); } //If the menu is not visible else if ((checkElement.is('.treeview-menu')) && (!checkElement.is(':visible'))) { //Get the parent menu var parent = $this.parents('ul').first(); //Close all open menus within the parent var ul = parent.find('ul:visible').slideUp('normal'); //Remove the menu-open class from the parent ul.removeClass('menu-open'); //Get the parent li var parent_li = $this.parent("li"); //Open the target menu and add the menu-open class checkElement.slideDown('normal', function () { //Add the class active to the parent li checkElement.addClass('menu-open'); parent.find('li.active').removeClass('active'); parent_li.addClass('active'); //Fix the layout in case the sidebar stretches over the height of the window _this.layout.fix(); }); } //if this isn't a link, prevent the page from being redirected if (checkElement.is('.treeview-menu')) { e.preventDefault(); } }); }; /* ControlSidebar * ============== * Adds functionality to the right sidebar * * @type Object * @usage $.Admin.controlSidebar.activate(options) */ $.Admin.controlSidebar = { //instantiate the object activate: function () { //Get the object var _this = this; //Update options var o = $.Admin.options.controlSidebarOptions; //Get the sidebar var sidebar = $(o.selector); //The toggle button var btn = $(o.toggleBtnSelector); //Listen to the click event btn.on('click', function (e) { e.preventDefault(); //If the sidebar is not open if (!sidebar.hasClass('control-sidebar-open') && !$('body').hasClass('control-sidebar-open')) { //Open the sidebar _this.open(sidebar, o.slide); } else { _this.close(sidebar, o.slide); } }); //If the body has a boxed layout, fix the sidebar bg position var bg = $(".control-sidebar-bg"); _this._fix(bg); //If the body has a fixed layout, make the control sidebar fixed if ($('body').hasClass('fixed')) { _this._fixForFixed(sidebar); } else { //If the content height is less than the sidebar's height, force max height if ($('.content-wrapper, .right-side').height() < sidebar.height()) { _this._fixForContent(sidebar); } } }, //Open the control sidebar open: function (sidebar, slide) { var _this = this; //Slide over content if (slide) { sidebar.addClass('control-sidebar-open'); } else { //Push the content by adding the open class to the body instead //of the sidebar itself $('body').addClass('control-sidebar-open'); } }, //Close the control sidebar close: function (sidebar, slide) { if (slide) { sidebar.removeClass('control-sidebar-open'); } else { $('body').removeClass('control-sidebar-open'); } }, _fix: function (sidebar) { var _this = this; if ($("body").hasClass('layout-boxed')) { sidebar.css('position', 'absolute'); sidebar.height($(".wrapper").height()); $(window).resize(function () { _this._fix(sidebar); }); } else { sidebar.css({ 'position': 'fixed', 'height': 'auto' }); } }, _fixForFixed: function (sidebar) { sidebar.css({ 'position': 'fixed', 'max-height': '100%', 'overflow': 'auto', 'padding-bottom': '50px' }); }, _fixForContent: function (sidebar) { $(".content-wrapper, .right-side").css('min-height', sidebar.height()); } }; /* BoxWidget * ========= * BoxWidget is a plugin to handle collapsing and * removing boxes from the screen. * * @type Object * @usage $.Admin.boxWidget.activate() * Set all your options in the main $.Admin.options object */ $.Admin.boxWidget = { selectors: $.Admin.options.boxWidgetOptions.boxWidgetSelectors, icons: $.Admin.options.boxWidgetOptions.boxWidgetIcons, activate: function () { var _this = this; //Listen for collapse event triggers $(_this.selectors.collapse).on('click', function (e) { e.preventDefault(); _this.collapse($(this)); }); //Listen for remove event triggers $(_this.selectors.remove).on('click', function (e) { e.preventDefault(); _this.remove($(this)); }); }, collapse: function (element) { var _this = this; //Find the box parent var box = element.parents(".box").first(); //Find the body and the footer var box_content = box.find("> .box-body, > .box-footer"); if (!box.hasClass("collapsed-box")) { //Convert minus into plus element.children(":first") .removeClass(_this.icons.collapse) .addClass(_this.icons.open); //Hide the content box_content.slideUp(300, function () { box.addClass("collapsed-box"); }); } else { //Convert plus into minus element.children(":first") .removeClass(_this.icons.open) .addClass(_this.icons.collapse); //Show the content box_content.slideDown(300, function () { box.removeClass("collapsed-box"); }); } }, remove: function (element) { //Find the box parent var box = element.parents(".box").first(); box.slideUp(); } }; } /* ------------------ * - Custom Plugins - * ------------------ * All custom plugins are defined below. */ /* * BOX REFRESH BUTTON * ------------------ * This is a custom plugin to use with the component BOX. It allows you to add * a refresh button to the box. It converts the box's state to a loading state. * * @type plugin * @usage $("#box-widget").boxRefresh( options ); */ (function ($) { $.fn.boxRefresh = function (options) { // Render options var settings = $.extend({ //Refresh button selector trigger: ".refresh-btn", //File source to be loaded (e.g: ajax/src.php) source: "", //Callbacks onLoadStart: function (box) { }, //Right after the button has been clicked onLoadDone: function (box) { } //When the source has been loaded }, options); //The overlay var overlay = $('<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>'); return this.each(function () { //if a source is specified if (settings.source === "") { if (console) { console.log("Please specify a source first - boxRefresh()"); } return; } //the box var box = $(this); //the button var rBtn = box.find(settings.trigger).first(); //On trigger click rBtn.on('click', function (e) { e.preventDefault(); //Add loading overlay start(box); //Perform ajax call box.find(".box-body").load(settings.source, function () { done(box); }); }); }); function start(box) { //Add overlay and loading img box.append(overlay); settings.onLoadStart.call(box); } function done(box) { //Remove overlay and loading img box.find(overlay).remove(); settings.onLoadDone.call(box); } }; })(jQuery); /* * TODO LIST CUSTOM PLUGIN * ----------------------- * This plugin depends on iCheck plugin for checkbox and radio inputs * * @type plugin * @usage $("#todo-widget").todolist( options ); */ (function ($) { $.fn.todolist = function (options) { // Render options var settings = $.extend({ //When the user checks the input onCheck: function (ele) { }, //When the user unchecks the input onUncheck: function (ele) { } }, options); return this.each(function () { if (typeof $.fn.iCheck != 'undefined') { $('input', this).on('ifChecked', function (event) { var ele = $(this).parents("li").first(); ele.toggleClass("done"); settings.onCheck.call(ele); }); $('input', this).on('ifUnchecked', function (event) { var ele = $(this).parents("li").first(); ele.toggleClass("done"); settings.onUncheck.call(ele); }); } else { $('input', this).on('change', function (event) { var ele = $(this).parents("li").first(); ele.toggleClass("done"); settings.onCheck.call(ele); }); } }); }; }(jQuery));
import React from 'react'; import i18next from 'i18next'; module.exports = React.createClass({ componentDidMount: function componentDidMount() { document.title = `${i18next.t('about')} | ${i18next.t('freqAsia')}`; }, render: function render() { return ( <div className="o-content-block"> <section className="c-content"> <div className="row"> <div className="col"> <h1>FREQUENCY ASIA. NO PREJUDICE.</h1> <p>Frequency Asia is a podcast, label and radio frequency. We’re a platform-community focused on artists sculpting sound in the largest, most populous continent in the world.</p> <p>We love to connect musical dots, but we thrive on contributions too. We want to get closer to the music in your head – your influences, first loves and lifesavers – we want to help you share the knowledge and passion you have for the music in Asia.</p> <p>Frequency Asia’s main goal is to showcase emerging music across the continent, but also provide a context for its evolution. Expect the unexpected with us past, present, and future.</p> <p>From Indonesian tropical punk, to the great walls of Beijing’s future bass clubs, grabbing some Japan blues along the way and stretching over to Iran for some Farsi funk and Bosphorus beats from Turkey.</p> <p>We are 100% funded by our content creators, who are mostly local experts and scene makers themselves, meaning you get an honest opinion on what we and they believe is the best music flowing out of Asia today.</p> <br /> <h2>CONTRIBUTE:</h2> <p>We're always looking for new people to collaborate with. Have an idea for a show or just want to guest host an episode? Send us an email at <a href="mailto:[email protected]?Subject=Contribute" target="_top">[email protected]</a>.</p> <br /> <h2>WE ARE:</h2> <p>Luke Hansford</p> <p>Jonny Brown</p> <br /> <h2>MUCH LOVE TO:</h2> <p><a target="_blank" href="http://haikalaziz.com/">Haikal Aziz</a> - Website and logo design</p> <p><a target="_blank" href="https://www.instagram.com/isvbelleee/">Isabelle Ee</a> - Show illustrations</p> </div> </div> </section> </div> ); }, });
function handleClick(event) { const player = +event.target.id; const computer = throwHand(); const winner = determineWinner(player, computer); updateDOM(player, computer, winner); } function throwHand() { return Math.floor(Math.random() * 3); } function determineWinner(p1, p2) { return p1 === p2 ? 'tie' : p1 + 2 === p2 ? 'player' : p2 + 2 === p1 ? 'computer' : p1 > p2 ? 'player' : 'computer'; } function updateDOM(player, computer, winner) { document.getElementById(player).style.border = '2px solid red'; document.getElementById('c' + computer).style.border = '2px solid red'; const loser = winner === 'player' ? 'computer' : 'player'; if (winner !== 'tie') { document.getElementById(winner).textContent = 'Winner Winner Winner'; document.getElementById(loser).textContent = 'Loser Loser Loser'; } else { document.getElementById('player').textContent = 'Tie Tie Tie'; document.getElementById('computer').textContent = 'Tie Tie Tie'; } }
({ fireCloseEvent : function(component, confirmResult, inputResult, context) { var evt = component.getEvent("onClose"); evt.setParams({ dialogType: component.get('v.type'), confirmResult: confirmResult || false, context: component.get('v.context') || {}, }); evt.fire(); }, fireSaveEvent : function(component, confirmResult, inputResult, context) { var evt = component.getEvent("onSave"); evt.setParams({ dialogType: component.get('v.type'), confirmResult: confirmResult || false, context: component.get('v.context') || {}, }); evt.fire(); } })
import Ember from 'ember'; var SubmissionsController = Ember.Controller.extend({ breadCrumb: 'Submissions' }); export default SubmissionsController;
/* * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ WebInspector.SourceCodeTimeline = function (sourceCode, sourceCodeLocation, recordType, recordEventType) { WebInspector.Timeline.call(this); console.assert(sourceCode); console.assert(!sourceCodeLocation || sourceCodeLocation.sourceCode === sourceCode); console.assert(recordType); this._sourceCode = sourceCode; this._sourceCodeLocation = sourceCodeLocation || null; this._recordType = recordType; this._recordEventType = recordEventType || null; }; WebInspector.SourceCodeTimeline.TypeIdentifier = "source-code-timeline"; WebInspector.SourceCodeTimeline.SourceCodeURLCookieKey = "source-code-timeline-source-code-url"; WebInspector.SourceCodeTimeline.SourceCodeLocationLineCookieKey = "source-code-timeline-source-code-location-line"; WebInspector.SourceCodeTimeline.SourceCodeLocationColumnCookieKey = "source-code-timeline-source-code-location-column"; WebInspector.SourceCodeTimeline.SourceCodeURLCookieKey = "source-code-timeline-source-code-url"; WebInspector.SourceCodeTimeline.RecordTypeCookieKey = "source-code-timeline-record-type"; WebInspector.SourceCodeTimeline.RecordEventTypeCookieKey = "source-code-timeline-record-event-type"; WebInspector.SourceCodeTimeline.prototype = Object.defineProperties({ constructor: WebInspector.SourceCodeTimeline, __proto__: WebInspector.Timeline.prototype, saveIdentityToCookie: function saveIdentityToCookie(cookie) { cookie[WebInspector.SourceCodeTimeline.SourceCodeURLCookieKey] = this._sourceCode.url ? this._sourceCode.url.hash : null; cookie[WebInspector.SourceCodeTimeline.SourceCodeLocationLineCookieKey] = this._sourceCodeLocation ? this._sourceCodeLocation.lineNumber : null; cookie[WebInspector.SourceCodeTimeline.SourceCodeLocationColumnCookieKey] = this._sourceCodeLocation ? this._sourceCodeLocation.columnNumber : null; cookie[WebInspector.SourceCodeTimeline.RecordTypeCookieKey] = this._recordType || null; cookie[WebInspector.SourceCodeTimeline.RecordEventTypeCookieKey] = this._recordEventType || null; } }, { sourceCode: { // Public get: function get() { return this._sourceCode; }, configurable: true, enumerable: true }, sourceCodeLocation: { get: function get() { return this._sourceCodeLocation; }, configurable: true, enumerable: true }, recordType: { get: function get() { return this._recordType; }, configurable: true, enumerable: true }, recordEventType: { get: function get() { return this._recordEventType; }, configurable: true, enumerable: true } });
(function() { 'use strict'; angular.module('sslv2App') .controller('ProgramAddCtrl', ProgramAddCtrl); ProgramAddCtrl.$inject = ['$state', 'ProgramService','$timeout']; function ProgramAddCtrl($state, ProgramService,$timeout) { var vm = this; vm.message = ""; vm.program = { name:'' } vm.submit = submit; function submit(data){ if(data.name === ""){ vm.message = "Program name is required"; closeMessage(false); }else { ProgramService.addProgram(data) .then(function(response){ if(response.data.success === true){ vm.message = response.data.message; closeMessage(true); } },function(error){ }); } } function closeMessage(status){ $timeout(function(){ vm.message = ""; if(status === true){ $state.go('dashboard.program',{},{reload:true}); } },2000); } } })();
import external from './../externalModules.js'; import requestPoolManager from '../requestPool/requestPoolManager.js'; import loadHandlerManager from '../stateManagement/loadHandlerManager.js'; import { addToolState, getToolState } from '../stateManagement/toolState.js'; import { setMaxSimultaneousRequests } from '../util/getMaxSimultaneousRequests.js'; import { getLogger } from '../util/logger.js'; import triggerEvent from '../util/triggerEvent'; import EVENTS from '../events.js'; const logger = getLogger('stackTools:stackPrefetch'); const toolName = 'stackPrefetch'; const requestType = 'prefetch'; let configuration = { maxImagesToPrefetch: Infinity, preserveExistingPool: false, }; let resetPrefetchTimeout; const resetPrefetchDelay = 10; function range(lowEnd, highEnd) { // Javascript version of Python's range function // http://stackoverflow.com/questions/3895478/does-javascript-have-a-method-like-range-to-generate-an-array-based-on-suppl lowEnd = Math.round(lowEnd) || 0; highEnd = Math.round(highEnd) || 0; const arr = []; let c = highEnd - lowEnd + 1; if (c <= 0) { return arr; } while (c--) { arr[c] = highEnd--; } return arr; } const max = function(arr) { return Math.max.apply(null, arr); }; const min = function(arr) { return Math.min.apply(null, arr); }; function nearestIndex(arr, x) { // Return index of nearest values in array // http://stackoverflow.com/questions/25854212/return-index-of-nearest-values-in-an-array const l = []; const h = []; arr.forEach(function(v) { if (v < x) { l.push(v); } else if (v > x) { h.push(v); } }); return { low: arr.indexOf(max(l)), high: arr.indexOf(min(h)), }; } function prefetch(element) { // Check to make sure stack data exists const stackData = getToolState(element, 'stack'); if (!stackData || !stackData.data || !stackData.data.length) { return; } const stack = stackData.data[0]; // Get the stackPrefetch tool data const stackPrefetchData = getToolState(element, toolName); if (!stackPrefetchData) { return; } const stackPrefetch = stackPrefetchData.data[0] || {}; // If all the requests are complete, disable the stackPrefetch tool if ( !stackPrefetch.indicesToRequest || !stackPrefetch.indicesToRequest.length ) { stackPrefetch.enabled = false; } // Make sure the tool is still enabled if (stackPrefetch.enabled === false) { return; } // Remove an imageIdIndex from the list of indices to request // This fires when the individual image loading deferred is resolved function removeFromList(imageIdIndex) { const index = stackPrefetch.indicesToRequest.indexOf(imageIdIndex); if (index > -1) { // Don't remove last element if imageIdIndex not found stackPrefetch.indicesToRequest.splice(index, 1); } } // Remove all already cached images from the // IndicesToRequest array stackPrefetchData.data[0].indicesToRequest.sort((a, b) => a - b); const indicesToRequestCopy = stackPrefetch.indicesToRequest.slice(); indicesToRequestCopy.forEach(function(imageIdIndex) { const imageId = stack.imageIds[imageIdIndex]; if (!imageId) { return; } const imageLoadObject = external.cornerstone.imageCache.getImageLoadObject( imageId ); if (imageLoadObject) { removeFromList(imageIdIndex); } }); // Stop here if there are no images left to request // After those in the cache have been removed if (!stackPrefetch.indicesToRequest.length) { return; } // Clear the requestPool of prefetch requests, if needed. if (!configuration.preserveExistingPool) { requestPoolManager.clearRequestStack(requestType); } // Identify the nearest imageIdIndex to the currentImageIdIndex const nearest = nearestIndex( stackPrefetch.indicesToRequest, stack.currentImageIdIndex ); let imageId; let nextImageIdIndex; const preventCache = false; function doneCallback(image) { logger.log('prefetch done: %s', image.imageId); const imageIdIndex = stack.imageIds.indexOf(image.imageId); removeFromList(imageIdIndex); triggerEvent(element, EVENTS.STACK_PREFETCH_IMAGE_LOADED, { element, imageId: image.imageId, imageIndex: imageIdIndex, stackPrefetch, stack, }); // If there are no more images to fetch if ( !( stackPrefetch.indicesToRequest && stackPrefetch.indicesToRequest.length > 0 ) ) { triggerEvent(element, EVENTS.STACK_PREFETCH_DONE, { element, stackPrefetch, stack, }); } } // Retrieve the errorLoadingHandler if one exists const errorLoadingHandler = loadHandlerManager.getErrorLoadingHandler( element ); function failCallback(error) { logger.log('prefetch errored: %o', error); if (errorLoadingHandler) { errorLoadingHandler(element, imageId, error, 'stackPrefetch'); } } // Prefetch images around the current image (before and after) let lowerIndex = nearest.low; let higherIndex = nearest.high; const imageIdsToPrefetch = []; while ( lowerIndex >= 0 || higherIndex < stackPrefetch.indicesToRequest.length ) { const currentIndex = stack.currentImageIdIndex; const shouldSkipLower = currentIndex - stackPrefetch.indicesToRequest[lowerIndex] > configuration.maxImagesToPrefetch; const shouldSkipHigher = stackPrefetch.indicesToRequest[higherIndex] - currentIndex > configuration.maxImagesToPrefetch; const shouldLoadLower = !shouldSkipLower && lowerIndex >= 0; const shouldLoadHigher = !shouldSkipHigher && higherIndex < stackPrefetch.indicesToRequest.length; if (!shouldLoadHigher && !shouldLoadLower) { break; } if (shouldLoadLower) { nextImageIdIndex = stackPrefetch.indicesToRequest[lowerIndex--]; imageId = stack.imageIds[nextImageIdIndex]; imageIdsToPrefetch.push(imageId); } if (shouldLoadHigher) { nextImageIdIndex = stackPrefetch.indicesToRequest[higherIndex++]; imageId = stack.imageIds[nextImageIdIndex]; imageIdsToPrefetch.push(imageId); } } // Load images in reverse order, by adding them at the beginning of the pool. for (const imageToLoad of imageIdsToPrefetch.reverse()) { requestPoolManager.addRequest( element, imageToLoad, requestType, preventCache, doneCallback, failCallback, true ); } // Try to start the requestPool's grabbing procedure // In case it isn't already running requestPoolManager.startGrabbing(); } function getPromiseRemovedHandler(element) { return function(e) { const eventData = e.detail; // When an imagePromise has been pushed out of the cache, re-add its index // It to the indicesToRequest list so that it will be retrieved later if the // CurrentImageIdIndex is changed to an image nearby let stackData; try { // It will throw an exception in some cases (eg: thumbnails) stackData = getToolState(element, 'stack'); } catch (error) { return; } if (!stackData || !stackData.data || !stackData.data.length) { return; } const stack = stackData.data[0]; const imageIdIndex = stack.imageIds.indexOf(eventData.imageId); // Make sure the image that was removed is actually in this stack // Before adding it to the indicesToRequest array if (imageIdIndex < 0) { return; } const stackPrefetchData = getToolState(element, toolName); if ( !stackPrefetchData || !stackPrefetchData.data || !stackPrefetchData.data.length ) { return; } stackPrefetchData.data[0].indicesToRequest.push(imageIdIndex); }; } function onImageUpdated(e) { // Start prefetching again (after a delay) // When the user has scrolled to a new image clearTimeout(resetPrefetchTimeout); resetPrefetchTimeout = setTimeout(function() { const element = e.target; // If playClip is enabled and the user loads a different series in the viewport // An exception will be thrown because the element will not be enabled anymore try { prefetch(element); } catch (error) { return; } }, resetPrefetchDelay); } function enable(element) { // Clear old prefetch data. Skipping this can cause problems when changing the series inside an element const stackPrefetchDataArray = getToolState(element, toolName); stackPrefetchDataArray.data = []; // First check that there is stack data available const stackData = getToolState(element, 'stack'); if (!stackData || !stackData.data || !stackData.data.length) { return; } const stack = stackData.data[0]; // Check if we are allowed to cache images in this stack if (stack.preventCache === true) { logger.warn( 'A stack that should not be cached was given the stackPrefetch' ); return; } // Use the currentImageIdIndex from the stack as the initalImageIdIndex const stackPrefetchData = { indicesToRequest: range(0, stack.imageIds.length - 1), enabled: true, direction: 1, }; // Remove the currentImageIdIndex from the list to request const indexOfCurrentImage = stackPrefetchData.indicesToRequest.indexOf( stack.currentImageIdIndex ); stackPrefetchData.indicesToRequest.splice(indexOfCurrentImage, 1); addToolState(element, toolName, stackPrefetchData); prefetch(element); element.removeEventListener( external.cornerstone.EVENTS.NEW_IMAGE, onImageUpdated ); element.addEventListener( external.cornerstone.EVENTS.NEW_IMAGE, onImageUpdated ); const promiseRemovedHandler = getPromiseRemovedHandler(element); external.cornerstone.events.removeEventListener( external.cornerstone.EVENTS.IMAGE_CACHE_PROMISE_REMOVED, promiseRemovedHandler ); external.cornerstone.events.addEventListener( external.cornerstone.EVENTS.IMAGE_CACHE_PROMISE_REMOVED, promiseRemovedHandler ); } function disable(element) { clearTimeout(resetPrefetchTimeout); element.removeEventListener( external.cornerstone.EVENTS.NEW_IMAGE, onImageUpdated ); const promiseRemovedHandler = getPromiseRemovedHandler(element); external.cornerstone.events.removeEventListener( external.cornerstone.EVENTS.IMAGE_CACHE_PROMISE_REMOVED, promiseRemovedHandler ); const stackPrefetchData = getToolState(element, toolName); // If there is actually something to disable, disable it if (stackPrefetchData && stackPrefetchData.data.length) { stackPrefetchData.data[0].enabled = false; // Clear current prefetch requests from the requestPool requestPoolManager.clearRequestStack(requestType); } } function getConfiguration() { return configuration; } function setConfiguration(config) { configuration = config; if (config.maxSimultaneousRequests) { setMaxSimultaneousRequests(config.maxSimultaneousRequests); } } // Module/private exports const stackPrefetch = { enable, disable, getConfiguration, setConfiguration, }; export default stackPrefetch;
export default function(cards, code) { function doCards() { let ret = '' for (let name in cards) { const card = cards[name] const cost = card.cost ? `<manacost>${card.cost}</manacost>` : '' const pt = card.pt ? `<pt>${card.pt}</pt>` : '' const text = card.text ? `<text>${card.text}</text>` : '' const {type} = card const tablerow = type.includes('Creature') ? 2 : type.includes('Land') ? 0 : /Instant|Sorcery/.test(type) ? 3 : 1 const colors = card.colors.map(color => `\ <color>${color}</color>`).join('\n') ret += ` <card> <name>${card.name}</name> <set picURL="${card.url}">${code}</set> ${colors} ${cost} ${pt} <type>${card.type}</type> <tablerow>${tablerow}</tablerow> ${text} </card>` } return ret } return ['xml', `\ <cockatrice_carddatabase version="3"> <cards>${doCards()} </cards> </cockatrice_carddatabase>`] }
'use strict' var npm = require('../npm.js') var util = require('util') var nameValidator = require('validate-npm-package-name') module.exports = errorMessage function errorMessage (er) { var short = [] var detail = [] switch (er.code) { case 'ECONNREFUSED': short.push(['', er]) detail.push([ '', [ '\nIf you are behind a proxy, please make sure that the', "'proxy' config is set properly. See: 'npm help config'" ].join('\n') ]) break case 'EACCES': case 'EPERM': short.push(['', er]) detail.push(['', ['\nPlease try running this command again as root/Administrator.' ].join('\n')]) break case 'ELIFECYCLE': short.push(['', er.message]) detail.push([ '', [ '', 'Failed at the ' + er.pkgid + ' ' + er.stage + " script '" + er.script + "'.", 'Make sure you have the latest version of node.js and npm installed.', 'If you do, this is most likely a problem with the ' + er.pkgname + ' package,', 'not with npm itself.', 'Tell the author that this fails on your system:', ' ' + er.script, 'You can get information on how to open an issue for this project with:', ' npm bugs ' + er.pkgname, 'Or if that isn\'t available, you can get their info via:', ' npm owner ls ' + er.pkgname, 'There is likely additional logging output above.' ].join('\n')] ) break case 'ENOGIT': short.push(['', er.message]) detail.push([ '', [ '', 'Failed using git.', 'This is most likely not a problem with npm itself.', 'Please check if you have git installed and in your PATH.' ].join('\n') ]) break case 'EJSONPARSE': short.push(['', er.message]) short.push(['', 'File: ' + er.file]) detail.push([ '', [ 'Failed to parse package.json data.', 'package.json must be actual JSON, not just JavaScript.', '', 'This is not a bug in npm.', 'Tell the package author to fix their package.json file.' ].join('\n'), 'JSON.parse' ]) break // TODO(isaacs) // Add a special case here for E401 and E403 explaining auth issues? case 'E404': // There's no need to have 404 in the message as well. var msg = er.message.replace(/^404\s+/, '') short.push(['404', msg]) if (er.pkgid && er.pkgid !== '-') { detail.push(['404', '']) detail.push(['404', '', "'" + er.pkgid + "' is not in the npm registry."]) var valResult = nameValidator(er.pkgid) if (valResult.validForNewPackages) { detail.push(['404', 'You should bug the author to publish it (or use the name yourself!)']) } else { detail.push(['404', 'Your package name is not valid, because', '']) var errorsArray = (valResult.errors || []).concat(valResult.warnings || []) errorsArray.forEach(function (item, idx) { detail.push(['404', ' ' + (idx + 1) + '. ' + item]) }) } if (er.parent) { detail.push(['404', "It was specified as a dependency of '" + er.parent + "'"]) } detail.push(['404', '\nNote that you can also install from a']) detail.push(['404', 'tarball, folder, http url, or git url.']) } break case 'EPUBLISHCONFLICT': short.push(['publish fail', 'Cannot publish over existing version.']) detail.push(['publish fail', "Update the 'version' field in package.json and try again."]) detail.push(['publish fail', '']) detail.push(['publish fail', 'To automatically increment version numbers, see:']) detail.push(['publish fail', ' npm help version']) break case 'EISGIT': short.push(['git', er.message]) short.push(['git', ' ' + er.path]) detail.push([ 'git', [ 'Refusing to remove it. Update manually,', 'or move it out of the way first.' ].join('\n') ]) break case 'ECYCLE': short.push([ 'cycle', [ er.message, 'While installing: ' + er.pkgid ].join('\n') ]) detail.push([ 'cycle', [ 'Found a pathological dependency case that npm cannot solve.', 'Please report this to the package author.' ].join('\n') ]) break case 'EBADPLATFORM': var validOs = er.os.join ? er.os.join(',') : er.os var validArch = er.cpu.join ? er.cpu.join(',') : er.cpu var expected = {os: validOs, arch: validArch} var actual = {os: process.platform, arch: process.arch} short.push([ 'notsup', [ util.format('Unsupported platform for %s: wanted %j (current: %j)', er.pkgid, expected, actual) ].join('\n') ]) detail.push([ 'notsup', [ 'Valid OS: ' + validOs, 'Valid Arch: ' + validArch, 'Actual OS: ' + process.platform, 'Actual Arch: ' + process.arch ].join('\n') ]) break case 'EEXIST': short.push(['', er.message]) short.push(['', 'File exists: ' + er.path]) detail.push(['', 'Move it away, and try again.']) break case 'ENEEDAUTH': short.push(['need auth', er.message]) detail.push(['need auth', 'You need to authorize this machine using `npm adduser`']) break case 'ECONNRESET': case 'ENOTFOUND': case 'ETIMEDOUT': case 'EAI_FAIL': short.push(['network', er.message]) detail.push([ 'network', [ 'This is most likely not a problem with npm itself', 'and is related to network connectivity.', 'In most cases you are behind a proxy or have bad network settings.', '\nIf you are behind a proxy, please make sure that the', "'proxy' config is set properly. See: 'npm help config'" ].join('\n') ]) break case 'ENOPACKAGEJSON': short.push(['package.json', er.message]) detail.push([ 'package.json', [ 'This is most likely not a problem with npm itself.', "npm can't find a package.json file in your current directory." ].join('\n') ]) break case 'ETARGET': short.push(['notarget', er.message]) msg = [ 'This is most likely not a problem with npm itself.', 'In most cases you or one of your dependencies are requesting', "a package version that doesn't exist." ] if (er.parent) { msg.push("\nIt was specified as a dependency of '" + er.parent + "'\n") } detail.push(['notarget', msg.join('\n')]) break case 'ENOTSUP': if (er.required) { short.push(['notsup', er.message]) short.push(['notsup', 'Not compatible with your version of node/npm: ' + er.pkgid]) detail.push([ 'notsup', [ 'Not compatible with your version of node/npm: ' + er.pkgid, 'Required: ' + JSON.stringify(er.required), 'Actual: ' + JSON.stringify({ npm: npm.version, node: npm.config.get('node-version') }) ].join('\n') ]) break } // else passthrough /*eslint no-fallthrough:0*/ case 'ENOSPC': short.push(['nospc', er.message]) detail.push([ 'nospc', [ 'This is most likely not a problem with npm itself', 'and is related to insufficient space on your system.' ].join('\n') ]) break case 'EROFS': short.push(['rofs', er.message]) detail.push([ 'rofs', [ 'This is most likely not a problem with npm itself', 'and is related to the file system being read-only.', '\nOften virtualized file systems, or other file systems', "that don't support symlinks, give this error." ].join('\n') ]) break case 'ENOENT': short.push(['enoent', er.message]) detail.push([ 'enoent', [ 'This is most likely not a problem with npm itself', 'and is related to npm not being able to find a file.', er.file ? "\nCheck if the file '" + er.file + "' is present." : '' ].join('\n') ]) break case 'EMISSINGARG': case 'EUNKNOWNTYPE': case 'EINVALIDTYPE': case 'ETOOMANYARGS': short.push(['typeerror', er.stack]) detail.push([ 'typeerror', [ 'This is an error with npm itself. Please report this error at:', ' <https://github.com/npm/npm/issues>' ].join('\n') ]) break case 'EISDIR': short.push(['eisdir', er.message]) detail.push([ 'eisdir', [ 'This is most likely not a problem with npm itself', 'and is related to npm not being able to find a package.json in', 'a package you are trying to install.' ].join('\n') ]) break default: short.push(['', er.message || er]) break } if (er.optional) { short.unshift(['optional', er.optional + ' (' + er.location + '):']) short.concat(detail).forEach(function (msg) { if (!msg[0]) msg[0] = 'optional' if (msg[1]) msg[1] = msg[1].toString().replace(/(^|\n)/g, '$1SKIPPING OPTIONAL DEPENDENCY: ') }) } return {summary: short, detail: detail} }
/* Demo for redirecting output to something else */ var BufferedOutputStream = Java.type('java.io.BufferedOutputStream'), FileOutputStream = Java.type('java.io.FileOutputStream'); sqlcl.setOut(new BufferedOutputStream(new FileOutputStream('D:/f100.sql'))); sqlcl.setStmt("apex export 100"); sqlcl.run();
'use strict'; /** * Controller for each tab */ define([ 'objects/song', 'pipeline/pipeline', 'services/lastfm', 'pageAction', 'timer', 'notifications', 'services/background-ga' ], function(Song, Pipeline, LastFM, PageAction, Timer, Notifications, GA) { /** * Constructor * * @param {Number} tabId * @param {Object} connector */ return function(tabId, connector) { /** * Number of seconds of playback that is considered to be beginning of the track. * Used for re-play detection. */ var DEFAULT_START_TIME = 10; var pageAction = new PageAction(tabId), playbackTimer = new Timer(), currentSong = null; /** * React on state change * @param {Object} newState */ this.onStateChanged = function(newState) { // empty state has same semantics as reset; even if isPlaying, we have no data to use var isEmptyState = (!newState.artist && !newState.track && !newState.uniqueID && !newState.duration); if (isEmptyState) { // throw away last song and reset state if (currentSong !== null) { console.log('Tab ' + tabId + ': received empty state - resetting'); resetState(); } // warning for connector developer if (newState.isPlaying) { console.log('Tab ' + tabId + ': state from connector is missing any information about the playing track: ' + JSON.stringify(newState)); } return; } // // from here on there is at least some song data // var hasSongChanged = (currentSong === null || newState.artist !== currentSong.parsed.artist || newState.track !== currentSong.parsed.track || newState.album !== currentSong.parsed.album || newState.uniqueID !== currentSong.parsed.uniqueID); // flag for current time of song being on its start; // uses 5% of song duration if available or fixed interval var isNewStateNearStart = (newState.duration !== null && newState.currentTime <= (newState.duration * 0.05)) || (newState.duration === null && newState.currentTime <= DEFAULT_START_TIME); // seeking from song's end to its start is treated as a new play; // this also covers automatic replaying of the same song over and over var isReplayingSong = (!hasSongChanged && currentSong.isNearEnd() && isNewStateNearStart); // propagate values that can change without changing the song if (!hasSongChanged && !isReplayingSong) { // logging same message over and over saves space in console if (newState.isPlaying == currentSong.parsed.isPlaying) { console.log('Tab ' + tabId + ': state update: only currentTime has changed'); } else { console.log('Tab ' + tabId + ': state update: ' + JSON.stringify(newState)); } currentSong.parsed.attr({ currentTime: newState.currentTime, isPlaying: newState.isPlaying }); } // we've hit a new song (or replaying the previous one) - clear old data and run processing else { console.log('Tab ' + tabId + ': new track state: ' + JSON.stringify(newState)); // clear any previous song and its bindings resetState(); currentSong = new Song(newState); bindSongListeners(currentSong); console.log('Tab ' + tabId + ': new ' + (isReplayingSong ? '(replaying) ' : '') + 'song detected: ' + JSON.stringify(currentSong.attr())); // start the timer, actual time will be set after processing is done; // we can call doScrobble directly, because the timer will be allowed to trigger only after the song is validated playbackTimer.start(function() { doScrobble(currentSong); }); // if we just detected the track and it's not playing yet, pause the timer right away; // this is important, because isPlaying flag binding only calls pause/resume which assumes the timer is started if (!newState.isPlaying) { playbackTimer.pause(); } // start processing - result will trigger the listener pageAction.setSongLoading(currentSong); Pipeline.processSong(currentSong); } }; /** * Setup listeners for new song object * @param {Song} song */ function bindSongListeners(song) { /** * Respond to changes of not/playing and pause timer accordingly to get real elapsed time */ song.bind('parsed.isPlaying', function(ev, newVal) { console.log('Tab ' + tabId + ': isPlaying state changed to ' + newVal); if (newVal) { playbackTimer.resume(); // maybe the song was not marked as playing yet if (!song.flags.isMarkedAsPlaying && (song.flags.isLastfmValid === true || song.flags.isCorrectedByUser === true)) { setSongNowPlaying(song); } } else { playbackTimer.pause(); } }); /** * Song has gone through processing pipeline * This event may occur repeatedly, e.g. when triggered on page load and then corrected by user input */ song.bind('flags.isProcessed', function(ev, newVal) { if (newVal) { console.log('Tab ' + tabId + ': song finished processing ', JSON.stringify(song.attr())); onProcessed(song); } else { console.log('Tab ' + tabId + ': song un-processed ', JSON.stringify(song.attr())); onUnProcessed(song); } }); } /** * Unbind all song listener. The song will no longer be used in Controller, but may * remain in async calls and we don't want it to trigger any more listeners. * @param {Song} song */ function unbindSongListeners(song) { song.unbind('parsed.isPlaying'); song.unbind('flags.isProcessed'); } /** * Resets controller state */ function resetState() { pageAction.setSiteSupported(); playbackTimer.reset(); if (currentSong !== null) { unbindSongListeners(currentSong); // remove notification if song was not scrobbled if (!currentSong.flags.isScrobbled) { Notifications.remove(currentSong.metadata.notificationId); } } currentSong = null; } /** * Called when song finishes processing in pipeline. It may not have passed the pipeline * successfully, so checks for various flags are needed. * @param {Song} song */ function onProcessed(song) { // song is considered valid if either L.FM or the user validated it if (song.flags.isLastfmValid === true || song.flags.isCorrectedByUser === true) { // processing cleans this flag song.flags.attr('isMarkedAsPlaying', false); // set time-to-scrobble playbackTimer.update(song.getSecondsToScrobble()); console.log('Tab ' + tabId + ': the song will be scrobbled after ' + playbackTimer.getRemainingSeconds() + ' more seconds of playback'); // if the song is playing, mark it immediately; otherwise will be flagged in isPlaying binding if (song.parsed.isPlaying) { setSongNowPlaying(song); } else { pageAction.setSiteSupported(); } } else { pageAction.setSongNotRecognized(); } } /** * Called when song was already flagged as processed, but now is entering the pipeline again * @param {Song} song */ function onUnProcessed(song) { /* jshint unused: false */ console.log('Tab ' + tabId + ': clearing playback timer destination time'); playbackTimer.update(null); } /** * Contains all actions to be done when song is ready to be marked as now playing * @param {Song} song */ function setSongNowPlaying(song) { pageAction.setSongRecognized(song); Notifications.showPlaying(song); // send to L.FM var nowPlayingCB = function(success) { console.log('Tab ' + tabId + ': song set as now playing: ' + success); }; LastFM.sendNowPlaying(song, nowPlayingCB); song.flags.attr('isMarkedAsPlaying', true); } /** * Called when scrobble timer triggers. * The time should be set only after the song is validated and ready to be scrobbled. */ function doScrobble(song) { console.log('Tab ' + tabId + ': scrobbling song ' + song.getArtist() + ' - ' + song.getTrack()); var scrobbleCB = function(result) { if (result.isOk()) { console.info('Tab ' + tabId + ': scrobbled successfully'); song.flags.attr('isScrobbled', true); pageAction.setSongScrobbled(song); GA.event('core', 'scrobble', connector.label); } else { console.error('Tab ' + tabId + ': scrobbling failed'); } }; LastFM.scrobble(song, scrobbleCB); } /** * Forward event to PageAction */ this.onPageActionClicked = function() { pageAction.onClicked(); }; /** * Returns current song as plain object (not can.Map) * @return {{}} */ this.getCurrentSong = function() { return currentSong === null ? {} : currentSong.attr(); }; /** * Sets data for current song from user input * TODO: check if all is ok for case when song is already valid */ this.setUserSongData = function(data) { if (currentSong !== null) { if (currentSong.flags.isScrobbled) { // should not happen console.error('Tab ' + tabId + ': attempted to enter user data for already scrobbled song'); return; } if (data.artist) { currentSong.metadata.attr('userArtist', data.artist); } if (data.track) { currentSong.metadata.attr('userTrack', data.track); } // re-send song to pipeline if (data.artist || data.track) { pageAction.setSongLoading(currentSong); Pipeline.processSong(currentSong); } } }; this.toggleLove = function(data, cb) { if (currentSong !== null) { LastFM.toggleLove(currentSong, data.shouldBeLoved, function() { currentSong.metadata.attr('userloved', data.shouldBeLoved); cb(); }); } }; // // // Active calls // // // setup initial page action; the controller means the page was recognized pageAction.setSiteSupported(); console.log('Tab ' + tabId + ': created controller for connector: ' + JSON.stringify(connector)); }; });
var http = require('http'); var util = require('util'); var lob = require("lob-enc"); var stream = require('stream'); var ChannelStream = require("./stream.class"); var THTP = { Request : { //fromHTTP : THTP_Request_fromHTTP, toHTTP : THTP_Request_toHTTP }, Response : { fromHTTP : THTP_Response_fromHTTP //toHTTP : THTP_Response_toHTTP } }; module.exports = THTP; var RequestSuper = (http.IncomingMessage) || stream.Readable; var ResponseSuper = (http.ServerResponse) || stream.Writable; util.inherits(THTP_Request_toHTTP, RequestSuper); util.inherits(THTP_Response_fromHTTP, ResponseSuper); function THTP_Request_toHTTP(packet,link, stream){ // mimic http://nodejs.org/api/http.html#http_http_incomingmessage http.IncomingMessage.call(this); this.method = packet.json[':method']; this.url = packet.json[':path'] || "/"; this.headers = packet.json; this.headers['x-hashname'] = link.hashname; // for any http handler visibility this.hashname = link.hashname; this.connection = { remoteAddress : link.hashname , cork : function(){ //noop } }; this.on = stream.on.bind(stream); this.read = stream.read.bind(stream); this.pipe = stream.pipe.bind(stream); } function THTP_Response_fromHTTP(req, link, stream){ // mimic http://nodejs.org/api/http.html#http_http_incomingmessage http.ServerResponse.call(this, req); this.connection = { remoteAddress : link.hashname, _httpMessage : this, cork : function(){ //console.log('res cork') }, uncork : function(){ //console.log("uncork") } }; var head = false; //this.on = stream.on.bind(stream) this._writeRaw = stream._write.bind(stream); this._write = stream._write.bind(stream); this.on('pipe',function(from){ from.on('end',stream.end.bind(stream)); }); this.end = function THTP_RES_End(data, enc, callback){ if (!head) this.writeHead(200); stream.end(data); }; this.writeHead = function THTP_writeHead(statusCode, reasonPhrase, headers) { // don't double! if(head){ //console.log('double call to thtp writeHead',this.statusCode,(new Error()).stack) return this; }; head = true; // be friendly if(!headers && typeof reasonPhrase == 'object') { headers = reasonPhrase; reasonPhrase = false; } else if (!headers ){ headers = this._headers; } this.statusCode = parseInt(statusCode) || 500; var json = {}; json[':status'] = this.statusCode; if(reasonPhrase) json[':reason'] = reasonPhrase; if(headers) Object.keys(headers).forEach(function ForEachHeader(header){ json[header.toLowerCase()] = headers[header]; }); stream.write(lob.encode(json, false)); return this; }; }
'use strict'; /* eslint-env mocha */ /* eslint no-unused-expressions: 0 */ /* eslint new-cap: 0 */ // TODO: add tests for normalized flags const chai = require( 'chai' ); const expect = chai.expect; const chaiaspromised = require( 'chai-as-promised' ); const sinon = require( 'sinon' ); const sinonchai = require( 'sinon-chai' ); chai.use( sinonchai ); chai.use( chaiaspromised ); const permissions = require( 'fs-brinkbit-permissions' ); let index; let dataStore; before(( done ) => { require( 'fs-s3-mongo' )({ s3: { bucket: process.env.AWS_TEST_BUCKET, region: process.env.AWS_TEST_REGION, }, }) .then( dataStore2 => { dataStore = dataStore2; index = require( '../src/index.js' )({ dataStore, permissions }); }) .then(() => { done(); }); }); const userId = '12345'; // Declare spies here to prevent rewrapping them let readSpy; let aliasSpy; let searchSpy; let inspectSpy; let downloadSpy; let createSpy; let bulkSpy; let copySpy; let updateSpy; let moveSpy; let renameSpy; let destroySpy; beforeEach(() => { readSpy = sinon.spy( dataStore, 'read' ); aliasSpy = sinon.spy( dataStore, 'alias' ); searchSpy = sinon.spy( dataStore, 'search' ); inspectSpy = sinon.spy( dataStore, 'inspect' ); downloadSpy = sinon.spy( dataStore, 'download' ); createSpy = sinon.spy( dataStore, 'create' ); copySpy = sinon.spy( dataStore, 'copy' ); updateSpy = sinon.spy( dataStore, 'update' ); moveSpy = sinon.spy( dataStore, 'move' ); renameSpy = sinon.spy( dataStore, 'rename' ); destroySpy = sinon.spy( dataStore, 'destroy' ); }); const actions = [ 'read', 'alias', 'search', 'inspect', 'download', 'create', 'copy', 'update', 'move', 'rename', 'destroy' ]; afterEach(() => { actions.forEach( action => { dataStore[action].restore(); }); }); /* testing folder structure id: 1, path: /top/ id: 2, path: /top/a.txt id: 3, path: /top/e.txt id: 4, path: /top/i.txt id: 5, path: /top/o.txt id: 6, path: /top/u.txt id: 7, path: /top/mid/ id: 8, path: /top/mid/b.txt id: 9, path: /top/mid/c.txt id: 10, path: /top/mid/d.txt id: 11, path: /top/mid/f.txt id: 12, path: /top/mid/bottom/ id: 13: path: /top/mid/bottom/z.txt */ describe( 'Top level routing', () => { it( 'should reject with a 404/resource not found error, with an empty path', () => { const GUID = ''; return expect( index.GET( GUID, userId, null )).to.be.rejected .and.eventually.deep.equal({ status: 404, message: 'Resource does not exist.', }); }); it( 'should reject with a 501/invalid action object when given an invalid action', () => { const GUID = '1'; const data = { action: 'invalidAction', }; return expect( index.GET( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid action.', }); }); }); describe( 'GET API', () => { describe( 'read:', () => { it( 'should route to dataStore.read() with a GUID by default', () => { const GUID = '2'; return index.GET( GUID, userId, null ) .then(( ) => { expect( readSpy ).to.have.been.calledOnce; expect( readSpy ).to.have.been.calledWithExactly( GUID, [ ]); }); }); }); describe( 'alias:', () => { it( 'should route to dataStore.alias() with a fullPath', () => { const fullPath = '/valid/path/here/test.txt'; const data = { action: 'alias', rootId: '1234567', }; return index.GET( fullPath, userId, data ) .then(( ) => { expect( aliasSpy ).to.have.been.calledOnce; expect( aliasSpy ).to.have.been.calledWithExactly( fullPath, data ); }); }); }); describe( 'search:', () => { it( 'should reject with 501/invalid parameters when parameters.query is missing', () => { const GUID = '1'; const data = { action: 'search', parameters: { noQuery: '*', }, }; return expect( index.GET( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid parameters.', }); }); it( 'should route to dataStore.search() with a GUID, a non-empty query, and no flags', () => { const GUID = '1'; const data = { action: 'search', parameters: { query: '*', }, }; return index.GET( GUID, userId, data ) .then(( ) => { expect( searchSpy ).to.have.been.calledOnce; expect( searchSpy ).to.have.been.calledWithExactly( GUID, data.parameters.query, null, [ ]); }); }); it( 'should route to dataStore.search() with a GUID, a non-empty query and pass the -r flag', () => { const GUID = '1'; const data = { action: 'search', parameters: { query: '*', flags: ['r'], }, }; return index.GET( GUID, userId, data ) .then(( ) => { expect( searchSpy ).to.have.been.calledOnce; expect( searchSpy ).to.have.been.calledWithExactly( GUID, data.parameters.query, null, data.parameters.flags ); }); }); it( 'should route to dataStore.search() with a GUID, a non-empty query, sorting, and the -r flag', () => { const GUID = '1'; const data = { action: 'search', parameters: { query: '*', sort: 'name-ascending', flags: ['r'], }, }; return index.GET( GUID, userId, data ) .then(( ) => { expect( searchSpy ).to.have.been.calledOnce; expect( searchSpy ).to.have.been.calledWithExactly( GUID, data.parameters.query, data.parameters.sort, data.parameters.flags ); }); }); }); describe( 'inspect:', () => { it( 'should route to dataStore.inspect() with a GUID', () => { const GUID = '2'; const data = { action: 'inspect', }; return index.GET( GUID, userId, data ) .then(( ) => { expect( inspectSpy ).to.have.been.calledOnce; expect( inspectSpy ).to.have.been.calledWithExactly( GUID, null ); }); }); it( 'should route to dataStore.inspect() with a GUID, including any specified fields', () => { const GUID = '1'; const data = { action: 'inspect', parameters: { fields: [ 'name', 'parent' ], }, }; return index.GET( GUID, userId, data ) .then(( ) => { expect( inspectSpy ).to.have.been.calledOnce; expect( inspectSpy ).to.have.been.calledWithExactly( GUID, data.parameters.fields ); }); }); }); describe( 'download:', () => { it( 'should route to dataStore.download() with a GUID', () => { const GUID = '1'; const data = { action: 'download', }; return index.GET( GUID, userId, data ) .then(( ) => { expect( downloadSpy ).to.have.been.calledOnce; expect( downloadSpy ).to.have.been.calledWithExactly( GUID, 'zip' ); }); }); }); }); describe( 'POST API', () => { describe( 'create:', () => { it( 'should reject with 501/invalid parameters when parameters.type is missing', () => { const GUID = '1'; const data = { parameters: { content: 'This is a testing file', name: 'test.txt', }, }; return expect( index.POST( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid parameters.', }); }); it( 'should reject with 501/invalid parameters when parameters.type is anything other than file or folder', () => { const GUID = '1'; const data = { parameters: { content: 'This is a testing file', name: 'test.txt', type: 'notAFileOrFolder', }, }; return expect( index.POST( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid parameters.', }); }); it( 'should reject with 501/invalid parameters when parameters.name is missing', () => { const GUID = '1'; const data = { parameters: { type: 'file', content: 'This is a testing file.', }, }; return expect( index.POST( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid parameters.', }); }); it( 'should reject with 501/invalid parameters when parameters.content is set and type is folder', () => { const GUID = '1'; const data = { parameters: { type: 'folder', name: 'test.txt', content: 'This is invalid content for a folder.', }, }; return expect( index.POST( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid parameters.', }); }); it( 'should route to dataStore.create() with a GUID, file type, name and content', () => { const GUID = '1'; const data = { parameters: { content: 'this content string', name: 'test.txt', type: 'file', }, }; const params = data.parameters; return index.POST( GUID, userId, data ) .then(( ) => { expect( createSpy ).to.have.been.calledOnce; expect( createSpy ).to.have.been.calledWithExactly( GUID, params.type, params.name, params.content, [ ]); }); }); it( 'should route to dataStore.create() with a GUID, file type, name, content, and pass the -f flag', () => { const GUID = '1'; const data = { parameters: { content: 'this content string', name: 'test.txt', type: 'file', flags: ['f'], }, }; const params = data.parameters; return index.POST( GUID, userId, data ) .then(( ) => { expect( createSpy ).to.have.been.calledOnce; expect( createSpy ).to.have.been.calledWithExactly( GUID, params.type, params.name, params.content, data.parameters.flags ); }); }); it( 'should route to dataStore.create() with a GUID, folder type, and name', () => { const GUID = '1'; const data = { parameters: { name: 'test.txt', type: 'folder', }, }; const params = data.parameters; return index.POST( GUID, userId, data ) .then(( ) => { expect( createSpy ).to.have.been.calledOnce; expect( createSpy ).to.have.been.calledWithExactly( GUID, params.type, params.name, undefined, [ ]); }); }); }); // TODO: Add additional validation tests for bulk() describe.skip( 'bulk:', () => { it( 'should reject with 501/invalid parameters when parameters.resources is missing', () => { const GUID = '1'; const data = { action: 'bulk', parameters: { noResources: [], }, }; return expect( index.POST( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid parameters.', }); }); it( 'should route to dataStore.bulk() with a GUID, and an array of resources', () => { const GUID = '1'; const data = { action: 'bulk', parameters: { resources: { 'another_cat_picture': 'raw image data', 'the_best_cats/': null, }, }, }; return index.POST( GUID, userId, data ) .then(( ) => { expect( bulkSpy ).to.have.been.calledOnce; expect( bulkSpy ).to.have.been.calledWithExactly( GUID, data.parameters.resources, [ ]); }); }); it( 'should route to dataStore.bulk() with a GUID, an array of resources, and pass the -f flag', () => { const GUID = '1'; const data = { action: 'bulk', parameters: { resources: { 'another_cat_picture': 'raw image data', 'the_best_cats/': null, }, flags: ['f'], }, }; return index.POST( GUID, userId, data ) .then(( ) => { expect( bulkSpy ).to.have.been.calledOnce; expect( bulkSpy ).to.have.been.calledWithExactly( GUID, data.parameters.resources, data.parameters.flags ); }); }); }); // TODO: Add tests for the different flag combinations describe( 'copy:', () => { it( 'should reject with 501/invalid parameters when parameters.destination is missing', () => { const GUID = '2'; const data = { action: 'copy', parameters: { noDestination: '3', }, }; return expect( index.POST( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid parameters.', }); }); it( 'should route to dataStore.copy() with a resource GUID and destination GUID', () => { const GUID = '2'; const data = { action: 'copy', parameters: { destination: '3', }, }; return index.POST( GUID, userId, data ) .then(( ) => { expect( copySpy ).to.have.been.calledOnce; expect( copySpy ).to.have.been.calledWithExactly( GUID, data.parameters.destination, [ ]); }); }); it( 'should route to dataStore.copy() with a GUID, a destination GUID, and pass the -u, and -f flags', () => { const GUID = '2'; const data = { action: 'copy', parameters: { destination: '3', flags: [ 'u', 'f' ], }, }; return index.POST( GUID, userId, data ) .then(( ) => { expect( copySpy ).to.have.been.calledOnce; expect( copySpy ).to.have.been.calledWithExactly( GUID, data.parameters.destination, data.parameters.flags ); }); }); }); }); describe( 'PUT API', () => { describe( 'update:', () => { it( 'should reject with 501/invalid parameters when parameters.content is missing', () => { const GUID = '2'; const data = { parameters: { noContent: '', }, }; return expect( index.PUT( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid parameters.', }); }); it( 'should route to dataStore.update() with a GUID and content', () => { const GUID = '2'; const data = { parameters: { content: 'this new content string', }, }; return index.PUT( GUID, userId, data ) .then(( ) => { expect( updateSpy ).to.have.been.calledOnce; expect( updateSpy ).to.have.been.calledWithExactly( GUID, data.parameters.content, [ ]); }); }); it( 'should route to dataStore.update() with a GUID, content, and pass the -f flag', () => { const GUID = '2'; const data = { parameters: { content: 'this content string', flags: ['f'], }, }; return index.PUT( GUID, userId, data ) .then(( ) => { expect( updateSpy ).to.have.been.calledOnce; expect( updateSpy ).to.have.been.calledWithExactly( GUID, data.parameters.content, data.parameters.flags ); }); }); }); describe( 'move:', () => { it( 'should reject with 501/invalid parameters when parameters.destination is missing', () => { const GUID = '2'; const data = { action: 'move', parameters: { noDestination: '3', }, }; return expect( index.PUT( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid parameters.', }); }); it( 'should route to dataStore.move() with a GUID and destination', () => { const GUID = '2'; const data = { action: 'move', parameters: { destination: '3', }, }; return index.PUT( GUID, userId, data ) .then(( ) => { expect( moveSpy ).to.have.been.calledOnce; expect( moveSpy ).to.have.been.calledWithExactly( GUID, data.parameters.destination, [ ]); }); }); it( 'should route to dataStore.move() with a GUID, a destination, and the -f flag', () => { const GUID = '2'; const data = { action: 'move', parameters: { destination: '3', flags: ['f'], }, }; return index.PUT( GUID, userId, data ) .then(( ) => { expect( moveSpy.calledOnce ).to.be.true; expect( moveSpy.calledWithExactly( GUID, data.parameters.destination, data.parameters.flags )).to.be.true; }); }); }); describe( 'rename:', () => { it( 'should reject with 501/invalid parameters when parameters.name is missing', () => { const GUID = '2'; const data = { action: 'rename', parameters: { noName: 'noName', }, }; return expect( index.PUT( GUID, userId, data )).to.be.rejected .and.eventually.deep.equal({ status: 501, message: 'Invalid parameters.', }); }); it( 'should route to dataStore.rename() with a GUID and name', () => { const GUID = '2'; const data = { action: 'rename', parameters: { name: 'billyGoat.jpg', }, }; return index.PUT( GUID, userId, data ) .then(( ) => { expect( renameSpy ).to.have.been.calledOnce; expect( renameSpy ).to.have.been.calledWithExactly( GUID, data.parameters.name, [ ]); }); }); it( 'should route to dataStore.rename() with a GUID, a name, and the -f flag', () => { const GUID = '2'; const data = { action: 'rename', parameters: { name: 'test.txt', flags: ['f'], }, }; return index.PUT( GUID, userId, data ) .then(( ) => { expect( renameSpy ).to.have.been.calledOnce; expect( renameSpy ).to.have.been.calledWithExactly( GUID, data.parameters.name, data.parameters.flags ); }); }); }); }); describe( 'DELETE API', () => { describe( 'destroy:', () => { it( 'should route to dataStore.destroy() with a GUID', () => { const GUID = '2'; return index.DELETE( GUID, null, null ) .then(( ) => { expect( destroySpy ).to.have.been.calledOnce; expect( destroySpy ).to.have.been.calledWithExactly( GUID ); }); }); }); });
var app = angular.module("myApp", []); app.controller("navCtrl", function($scope) { $scope.name = "Navigation"; }); app.controller("rulesCtrl", function($scope) { $scope.name = "Rules"; }); app.controller("businessCtrl", function($scope, $interval) { $scope.name = "Business"; var cnt = 0; $interval(function() { $scope.name = "Business - " + cnt++; }, 3000); }); app.controller("sessionsCtrl", function($scope) { $scope.name = "Sessions"; $scope.content = "Sessions"; }); app.controller("logsCtrl", function($scope, $interval) { $scope.name = "Logs"; $scope.content = "Logs"; var cnt = 0; $interval(function() { $scope.name = "Logs - " + cnt++; }, 5000); }); app.directive('viewTree', function() { return { restrict: 'E', link: function(scope, element, attrs) { }, templateUrl: function(elem, attrs) { return 'tree-view.html'; } }; }); app.directive('viewTable', function() { return { restrict: 'E', link: function(scope, element, attrs) { }, templateUrl: function(elem, attrs) { return 'table-view.html'; } }; }); // Add this as a utility function to the perspective function nextActiveTab(tab) { var active = $(tab).prev('li:not(.dropdown-tabs)'); if (active.length == 0) { active = $(tab).next('li'); } if (active) { active.find('a').tab('show'); } } function registerEventHandler(view) { $(view).on('view-close', function( event, container ) { if (confirm('Are you sure?')) { if (container.type === 'tab') { nextActiveTab(container); } $(view).remove(); container.remove(); } }); $(view).on('view-detach', function( event, container, x, y ) { if (container.type === 'tab') { nextActiveTab(container); container.remove(); } $(view).asDialog(x, y); }); $(view).on('view-attach', function( event, slotContent ) { console.log('View Attach Event: ' + this.id); console.log(slotContent); }); $(view).on('view-active', function( event, container ) { console.log('View Active Event: ' + this.id); console.log(container); }); $(view).on('view-resize', function( event, height, width ) { console.log('View Resize Event: ' + this.id + " Height=" + height + " Width=" + width); }); // deprecated --- // $(view).on('dialog-close', function( event, dialog ) { // $(dialog).remove(); // }); // --- deprecated } window.onload = function() { $('.perspective').on('layout-change', function(event, json) { console.log(json); }); $('.slot-tab').find('.view').each(function() { registerEventHandler($(this)); }); } function showAbout() { var view = $('<div class="view" id="about" name="About..."><h4>Bootstrap Perspective</h4><i>A small Bootstrap plugin that brings perspectives to your web application.</i></div>'); registerEventHandler(view); view.asDialog(); return false; }
const AWS = require('aws-sdk'); const Sharp = require('sharp'); const HttpError = require('./httpError'); const SignatureVerify = require('./signature'); const mime = require('mime/lite'); const supportedTypes = [ "image/jpeg", "image/png", "image/webp", "image/gif", "image/tiff", "image/svg+xml" ]; module.exports = function(options) { const S3 = new AWS.S3({region: options.region}); const signVerify = new SignatureVerify(options.signatureSecret); function download(bucket, key) { return new Promise(function (fulfill, reject) { S3.getObject({Bucket: bucket, Key: key}, function(err, data) { if (err) return reject(new HttpError('Not found', 404)); fulfill(data) }) }) } function transform(data, width, height, format) { if (format === 'gif') { format = 'jpeg'; } return new Promise(function (fulfill, reject) { Sharp(data.Body) .resize(width, height, { withoutEnlargement: true }) .toFormat(format) .toBuffer(function(err, outputBuffer) { if (err) reject(err) fulfill(outputBuffer) }) }) } function upload(bucket, key, buffer, mimeType) { return S3.putObject({ Body: buffer, Bucket: bucket, Key: key, ACL:'public-read', CacheControl: 'public, max-age=31536000', ContentType: mimeType }).promise() } return function(event) { return new Promise(function (fulfill, reject) { if (options.logging) { console.log(event.path) } let signature = event.queryStringParameters ? event.queryStringParameters.s : null; let key = event.path; let splitted_key = key ? key.split(options.cachePrefix) : []; let destKey = event.path.replace(/^\/(.*)/, '$1'); key = splitted_key[1]; if (!key) { return reject(new HttpError('Unsupported image location', 421)) } let match = key.match(/(\d+|auto)x(\d+|auto)\/(.*)/); if(!match) { return reject(new HttpError('Malformed route', 406)); } let width = parseInt(match[1], 10); let height = parseInt(match[2], 10); let originalKey = match[3]; if (options.signatureVerification && (!signature || !signVerify(signature, match[1], match[2], match[3]))) { return reject(new HttpError('Invalid signature', 403)); } if(isNaN(width) && isNaN(height)) { reject(new HttpError('Invalid dimensions', 400)); } if(isNaN(width)) width = null; if(isNaN(height)) height = null; if (width > options.maxWidth || height > options.maxHeight) { return reject(new HttpError('Dimensions maximum constraint violation', 403)); } let mimeType = mime.getType(originalKey) if (supportedTypes.indexOf(mimeType) === -1) { return reject(new HttpError('Unsupported format', 415)); } return download(options.bucket, originalKey) .then((data) => { return transform(data, width, height, mime.getExtension(mimeType)); }) .then((buffer) => { fulfill({ isBase64Encoded: true, statusCode: 200, body: buffer.toString('base64'), headers: { 'Content-Type': mimeType } }); return buffer; }) .then((buffer) => { return upload(options.bucket, destKey, buffer, mimeType); }) .catch(err => reject(err)) }) } }
// If you use a custom jqbuild.json file, it will have this exact same structure // except that it will need to be valid JSON (ie. no comments, no string concat) // and should only contain the keys you wish to override. // // If you only have one plugin, or want per-plugin settings, you may specify // these settings in a "config" key under the "jqbuild" key in that plugin's // JSON data. // // Per-plugin configuration options will override options set in jqbuild.json. module.exports = { // Options that have a non-falsy default value: "banner": "// {{.label}} - v{{.versions[0].version}} - {{dateFormat(now, 'm/d/yyyy')}}\n" + "// {{.homeurl}}\n" + "// {{.copyright}}; Licensed {{.license.join(', ')}}", "pluginjson": "plugin.json", "prelint": true, "write": true, // Non-string/boolean options, like the following, can only be overridden in // jqbuild.json or plugin.json: // // These are the default JSHint options I recommend. See jshint.com for more // information. "jshint": { // Force curly braces. "curly": true, // Allow == null "eqnull": true, // Allow for in without hasOwnProperty check (jQuery assumes that nothing // has been added to Object.prototype anyways, so it"s a moot point). "forin": true, // Require IIFEs to be wrapped in (). "immed": true, // Constructor functions must be capitalized. "newcap": true, // No arguments.caller and arguments.callee. Use NFEs instead. "noarg": true, // All non-global vars must be defined before they are used. "undef": true, // Allow browser globals, such as window, document, etc. "browser": true, // Only the jQuery global var is allowed, as $ will causes issues in // noConflict scenarios. Use an IIFE instead of JSHint"s 'jquery' option! "predef": ["jQuery"] }, // These are the default Uglify-JS options I recommend. See the docs at // https://github.com/mishoo/UglifyJS/ for more information. "uglify": { // Options passed to ast_mangle(). "mangle": { // Don"t mangle $, because it looks cool. "except": ["$"] }, // Options passed to ast_squeeze(). "squeeze": {}, // Options passed to gen_code(). "codegen": {} } };
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // compiled file. // // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details // about supported directives. // //= require jquery //= require jquery_ujs // Angular need load first //= require angular //= require angular-route //= require ng-rails-csrf //= require ./angular/angular_main //= require_tree ./angular/ //= require_tree .
'use strict'; import Backbone from 'backbone'; import $ from 'jquery'; import _ from 'underscore'; import utils from '../../../scripts/helpers/utils'; export default class AbstractPopup extends Backbone.View { constructor(map, lat, lng, zoom, date, options) { super(); this.map = map; this.lat = lat; this.lng = lng; this.date = date; this.zoom = zoom; this.options = options || {}; this.fetchData() .done(data => { if(!data || _.isEmpty(data)) { /* We don't want the map in an incoherent state */ if(this.options.closeCallback && typeof this.options.closeCallback === 'function') { this.options.closeCallback(); } return; } this.data = data; this.open(); }) .fail(err => { throw new Error(`Unable to fetch the popup data: ${err}`); }); } /** * Fetch the data, to be overriden * @return {Object} jQuery deferred */ fetchData() { const deferred = $.Deferred(); deferred.resolve(); return deferred; } /** * Return the content of the popup, to be overriden * @return {String} HTML string */ getPopupContent() { return ''; } /** * Set event listeners inside the popup * @param {Object} popup popup DOM element */ setListeners(popup) { return; } /** * Open the popup */ open() { const popupContent = ` <div class=m-popup> <button class="btn-close"> <svg class="icon icon-close"><use xlink:href="#icon-close"></use></svg> </button> <div class="wrapper"> ${this.getPopupContent()} </div> </div> `; const isMobile = utils.checkDevice().mobile; if(isMobile) { this.popup = $('body').append(popupContent); } else { this.map.setView([ this.lat, this.lng ]); /* If the popup is attached to a marker, we want it to open the marker */ if(this.options.marker) { this.popup = L.popup({ closeButton: false, className: this.options && this.options.className || '' }) .setContent(popupContent); this.options.marker .bindPopup(this.popup) .openPopup(); } else { this.popup = L.popup({ closeButton: false, className: this.options && this.options.className || '' }) .setLatLng([ this.lat, this.lng ]) .setContent(popupContent) .openOn(this.map); } } (this.popup._contentNode || document.querySelector('.m-popup')) .querySelector('.btn-close') .addEventListener('click', () => this.close()); this.setListeners(this.popup._contentNode || document.querySelector('.m-popup')); } /** * Close the popup */ close() { const isMobile = utils.checkDevice().mobile; if(isMobile) { if(document.querySelector('.m-popup')) { document.querySelector('.m-popup').remove(); } } else { if(this.options.marker) { this.options.marker .closePopup() .unbindPopup(); } else { this.map.closePopup(); } } if(this.options.closeCallback && typeof this.options.closeCallback === 'function') { this.options.closeCallback(); } } }
/* * Copyright (c) 2016 Paysafe * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, publish, distribute, * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or * substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT * NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** * author: Anup W. */ var cardServiceHandler = require("./CardServiceHandler"); var CustomerServiceHandler = require("./CustomerServiceHandler"); var HostedApiServiceHandler = require("./HostedApiServiceHandler"); var DirectDebitServiceHandler = require("./DirectDebitServiceHandler"); var ThreeDsecureServiceHandler = require("./ThreeDsecureServiceHandler"); var Environment = require("../bin/Environment"); var errorClass = require("./common/error"); var request = require('request'); var OptimalApiClient = function(apiKey, apiPassword, environment, accountNumber) { try { var env = Environment[environment]; if (apiKey && apiPassword && environment && accountNumber && env) { this._apiKey = apiKey; this._apiPassword = apiPassword; this._environment = Environment[environment]; this._accountNumber = accountNumber; this.Card = require("./cardpayments/card"); this.AccordD = require("./cardpayments/accordD"); this.Authentication = require("./cardpayments/authentication"); this.Authorization = require("./cardpayments/authorization"); this.AuthorizationReversal = require("./cardpayments/authorizationreversal"); this.BillingDetails = require("./cardpayments/billingDetails"); this.CardExpiry = require("./cardpayments/cardExpiry"); this.MasterPass = require("./cardpayments/masterPass"); this.MerchantDescriptor = require("./cardpayments/merchantDescriptor"); this.Pagination = require("./cardpayments/pagination"); this.RecipientDateOfBirth = require("./cardpayments/recipientDateOfBirth"); this.Refund = require("./cardpayments/refund"); this.Settlements = require("./cardpayments/settlements"); this.ShippingDetails = require("./cardpayments/shippingDetails"); this.Verification = require("./cardpayments/verification"); this.VisaAdditionalAuthData = require("./cardpayments/visaAdditionalAuthData"); this.Address = require("./customervault/addresses"); this.Dateofbirth = require("./customervault/dateofbirth"); this.Profiles = require("./customervault/profiles"); this.ACHBankAccounts = require("./customervault/ACHBankAccounts"); this.BACSBankAccounts = require("./customervault/BACSBankAccounts"); this.EFTBankAccounts = require("./customervault/EFTBankAccounts"); this.SEPABankAccounts = require("./customervault/SEPABankAccounts"); this.Mandates = require("./customervault/mandates"); this.AddendumData = require("./hostedpayment/addendumData"); this.AssociatedTransactions = require("./hostedpayment/associatedTransactions"); this.ExtendedOptions = require("./hostedpayment/extendedOptions"); this.Order = require("./hostedpayment/order"); this.Transaction = require("./hostedpayment/transaction"); this.Redirect = require("./hostedpayment/redirect"); this.ShoppingCart = require("./hostedpayment/shoppingCart"); this.Navigation = require("./hostedpayment/navigation"); this.Purchases = require("./directdebit/purchases"); this.Standalonecredits = require("./directdebit/standalonecredits"); this.Enrollmentchecks = require("./threedsecure/enrollmentchecks"); this.authentication = require("./threedsecure/authentications"); this.error = function(code, message) { return (new errorClass({ "code" : code, "message" : message, })); }; } else if (!apiKey) { throw "Please provide API key!"; } else if (!apiPassword) { throw "Please provide API password!"; } else if (!environment) { throw "Please provide Environment string i.e 'TEST' or 'LIVE'!"; } else if (!Environment[environment]) { throw "Environment string must be 'TEST' or 'LIVE'!"; } else if (!accountNumber) { throw "Please provide Merchant Account Number!"; } } catch (error) { console.error(error); } }; var serializeObject = function(obj) { if (obj === null) { return ""; } else { return JSON.stringify(obj); } }; var deSerializeObject = function(obj) { if (obj === null) { return ""; } else { return JSON.parse(obj); } }; var prepareApiCredential = function(apiKey, apiPassword) { var apiCredential = apiKey + ":" + apiPassword; var apiCredBuffer = new Buffer(apiCredential); return apiCredBuffer.toString("Base64"); }; var prepareRequestParameter = function(requestObject) { if (requestObject !== null) { return serializeObject(requestObject); } else { return ''; } }; var cardService; OptimalApiClient.prototype.cardServiceHandler = function(optimalApiClient) { if (!cardService) { cardService = new cardServiceHandler(optimalApiClient); } return cardService; }; var customerService; OptimalApiClient.prototype.CustomerServiceHandler = function(optimalApiClient) { if (!customerService) { customerService = new CustomerServiceHandler(optimalApiClient); } return customerService; }; var hostedPaymentService; OptimalApiClient.prototype.HostedApiServiceHandler = function(optimalApiClient) { if (!hostedPaymentService) { hostedPaymentService = new HostedApiServiceHandler(optimalApiClient); } return hostedPaymentService; }; var directDebitService; OptimalApiClient.prototype.DirectDebitServiceHandler = function(optimalApiClient) { if (!directDebitService) { directDebitService = new DirectDebitServiceHandler(optimalApiClient); } return directDebitService; }; var threeDsecureService; OptimalApiClient.prototype.ThreeDsecureServiceHandler = function(optimalApiClient) { if (!threeDsecureService) { threeDsecureService = new ThreeDsecureServiceHandler(optimalApiClient); } return threeDsecureService; }; OptimalApiClient.prototype.processRequest = function(optPayRequest, requestObject, responseCallBack) { var self = this; var requestJson = prepareRequestParameter(requestObject); var reqHeaders = { 'Content-Type' : 'application/json; charset=utf-8', // 'Content-Length': requestJson.length, 'Authorization' : 'Basic ' + prepareApiCredential(self._apiKey, self._apiPassword) }; var strRegObject = serializeObject(requestObject); var options = { headers : reqHeaders, uri : optPayRequest.buildUrl(self._environment._host), method : optPayRequest._method, body : strRegObject, pool : { maxSockets : self._environment.maxSockets }, timeout : self._environment.timeout }; //console.log(options); request(options, function(error, response, body) { //console.log(error); //console.log("body request"+body); if (!error && response.statusCode !== 503) { // in case of delete method the response is empty string if (body) { body = typeof (body) === "string" ? deSerializeObject(body) : body; responseCallBack(null, body); } else { var delResp = { "status" : response.statusCode }; responseCallBack(null, delResp); } } else { if (error) { responseCallBack(self.error(error.code, "Connection error : No internet Connection available : " + error.syscall), null); } else { responseCallBack(self.error(response.statusCode, body), null); } } }); }; OptimalApiClient.prototype.updateConfig = function(host, maxSockets, timeout) { var self = this; self._environment = Environment.createEnv(host, maxSockets, timeout); }; module.exports = OptimalApiClient;
module.exports = { "href" : "https://api.spotify.com/v1/albums/6akEvsycLGftJxYudPjmqK/tracks?offset=0&limit=2", "items" : [ { "artists" : [ { "external_urls" : { "spotify" : "https://open.spotify.com/artist/08td7MxkoHQkXnWAYD8d6Q" }, "href" : "https://api.spotify.com/v1/artists/08td7MxkoHQkXnWAYD8d6Q", "id" : "08td7MxkoHQkXnWAYD8d6Q", "name" : "Tania Bowra", "type" : "artist", "uri" : "spotify:artist:08td7MxkoHQkXnWAYD8d6Q" } ], "available_markets" : [ "AD", "AR", "AT", "AU", "BE", "BG", "BO", "BR", "CA", "CH", "CL", "CO", "CR", "CY", "CZ", "DE", "DK", "DO", "EC", "EE", "ES", "FI", "FR", "GB", "GR", "GT", "HK", "HN", "HU", "ID", "IE", "IS", "IT", "JP", "LI", "LT", "LU", "LV", "MC", "MT", "MX", "MY", "NI", "NL", "NO", "NZ", "PA", "PE", "PH", "PL", "PT", "PY", "SE", "SG", "SK", "SV", "TR", "TW", "US", "UY" ], "disc_number" : 1, "duration_ms" : 276773, "explicit" : false, "external_urls" : { "spotify" : "https://open.spotify.com/track/2TpxZ7JUBn3uw46aR7qd6V" }, "href" : "https://api.spotify.com/v1/tracks/2TpxZ7JUBn3uw46aR7qd6V", "id" : "2TpxZ7JUBn3uw46aR7qd6V", "name" : "All I Want", "preview_url" : "https://p.scdn.co/mp3-preview/12b8cee72118f995f5494e1b34251e4ac997445e?cid=null", "track_number" : 1, "type" : "track", "uri" : "spotify:track:2TpxZ7JUBn3uw46aR7qd6V" }, { "artists" : [ { "external_urls" : { "spotify" : "https://open.spotify.com/artist/08td7MxkoHQkXnWAYD8d6Q" }, "href" : "https://api.spotify.com/v1/artists/08td7MxkoHQkXnWAYD8d6Q", "id" : "08td7MxkoHQkXnWAYD8d6Q", "name" : "Tania Bowra", "type" : "artist", "uri" : "spotify:artist:08td7MxkoHQkXnWAYD8d6Q" } ], "available_markets" : [ "AD", "AR", "AT", "AU", "BE", "BG", "BO", "BR", "CA", "CH", "CL", "CO", "CR", "CY", "CZ", "DE", "DK", "DO", "EC", "EE", "ES", "FI", "FR", "GB", "GR", "GT", "HK", "HN", "HU", "ID", "IE", "IS", "IT", "JP", "LI", "LT", "LU", "LV", "MC", "MT", "MX", "MY", "NI", "NL", "NO", "NZ", "PA", "PE", "PH", "PL", "PT", "PY", "SE", "SG", "SK", "SV", "TR", "TW", "US", "UY" ], "disc_number" : 1, "duration_ms" : 247680, "explicit" : false, "external_urls" : { "spotify" : "https://open.spotify.com/track/4PjcfyZZVE10TFd9EKA72r" }, "href" : "https://api.spotify.com/v1/tracks/4PjcfyZZVE10TFd9EKA72r", "id" : "4PjcfyZZVE10TFd9EKA72r", "name" : "Someday", "preview_url" : "https://p.scdn.co/mp3-preview/4a54d83c195d0bc17b1b23fc931d37fb363224d8?cid=null", "track_number" : 2, "type" : "track", "uri" : "spotify:track:4PjcfyZZVE10TFd9EKA72r" } ], "limit" : 2, "next" : "https://api.spotify.com/v1/albums/6akEvsycLGftJxYudPjmqK/tracks?offset=2&limit=2", "offset" : 0, "previous" : null, "total" : 11 };
// underscore.catenate // ------------------- // v0.1.1 // // Copyright (c) 2013-2014 Mateus Maso // Distributed under MIT license // // http://github.com/mateusmaso/underscore.catenate !function(a,b){if("undefined"!=typeof exports){var c=require("underscore");"undefined"!=typeof module&&module.exports&&(module.exports=b(c)),exports=b(c)}else a._.mixin(b(a._))}(this,function(a){return{catenate:function(){var b=arguments;return function(){var c,d=this,e=arguments;return a.each(b,function(a){a&&(c=a.apply(d,e))}),c}}}});
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * openAUSIAS: The stunning micro-library that helps you to develop easily * AJAX web applications by using Java and jQuery * openAUSIAS is distributed under the MIT License (MIT) * Sources at https://github.com/rafaelaznar/ * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * */ 'use strict'; moduloEditorial.controller('EditorialPListController', ['$scope', '$routeParams', 'serverService', '$location', '$rootScope', function ($scope, $routeParams, serverService, $location, $rootScope) { $scope.visibles = {}; $scope.visibles.id = true; $scope.visibles.nombre = true; $scope.visibles.fechaNac = true; $scope.visibles.bio = true; $scope.visibles.website = true; $scope.visibles.imagen = true; $scope.searchText = ""; $scope.ob = "editorial"; $scope.op = "plist"; $scope.title = "Listado de Editoriales"; $scope.icon = "/images/E.png"; $scope.neighbourhood = 2; if (!$routeParams.page) { $routeParams.page = 1; } if (!$routeParams.rpp) { $routeParams.rpp = 10; } $scope.numpage = $routeParams.page; $scope.rpp = $routeParams.rpp; $scope.order = ""; $scope.ordervalue = ""; $scope.filter = "id"; $scope.filteroperator = "like"; $scope.filtervalue = ""; $scope.systemfilter = ""; $scope.systemfilteroperator = ""; $scope.systemfiltervalue = ""; $scope.params = ""; $scope.paramsWithoutOrder = ""; $scope.paramsWithoutFilter = ""; $scope.paramsWithoutSystemFilter = ""; if ($routeParams.order && $routeParams.ordervalue) { $scope.order = $routeParams.order; $scope.ordervalue = $routeParams.ordervalue; $scope.orderParams = "&order=" + $routeParams.order + "&ordervalue=" + $routeParams.ordervalue; $scope.paramsWithoutFilter += $scope.orderParams; $scope.paramsWithoutSystemFilter += $scope.orderParams; } else { $scope.orderParams = ""; } if ($routeParams.filter && $routeParams.filteroperator && $routeParams.filtervalue) { $scope.filter = $routeParams.filter; $scope.filteroperator = $routeParams.filteroperator; $scope.filtervalue = $routeParams.filtervalue; $scope.filterParams = "&filter=" + $routeParams.filter + "&filteroperator=" + $routeParams.filteroperator + "&filtervalue=" + $routeParams.filtervalue; $scope.paramsWithoutOrder += $scope.filterParams; $scope.paramsWithoutSystemFilter += $scope.filterParams; } else { $scope.filterParams = ""; } if ($routeParams.systemfilter && $routeParams.systemfilteroperator && $routeParams.systemfiltervalue) { $scope.systemFilterParams = "&systemfilter=" + $routeParams.systemfilter + "&systemfilteroperator=" + $routeParams.systemfilteroperator + "&systemfiltervalue=" + $routeParams.systemfiltervalue; $scope.paramsWithoutOrder += $scope.systemFilterParams; $scope.paramsWithoutFilter += $scope.systemFilterParams; } else { $scope.systemFilterParams = ""; } $scope.params = ($scope.orderParams + $scope.filterParams + $scope.systemFilterParams); $scope.params = $scope.params.replace('&', '?'); serverService.getDataFromPromise(serverService.promise_getSome($scope.ob, $scope.rpp, $scope.numpage, $scope.filterParams, $scope.orderParams, $scope.systemFilterParams)).then(function (data) { if (data.status != 200) { $scope.status = "Error en la recepción de datos del servidor"; } else { $scope.pages = data.message.pages.message; if (parseInt($scope.numpage) > parseInt($scope.pages)) $scope.numpage = $scope.pages; $scope.page = data.message.page.message; $scope.registers = data.message.registers.message; $scope.status = ""; } }); $scope.getRangeArray = function (lowEnd, highEnd) { var rangeArray = []; for (var i = lowEnd; i <= highEnd; i++) { rangeArray.push(i); } return rangeArray; }; $scope.evaluateMin = function (lowEnd, highEnd) { return Math.min(lowEnd, highEnd); }; $scope.evaluateMax = function (lowEnd, highEnd) { return Math.max(lowEnd, highEnd); }; $scope.dofilter = function () { if ($scope.filter != "" && $scope.filteroperator != "" && $scope.filtervalue != "") { if ($routeParams.order && $routeParams.ordervalue) { if ($routeParams.systemfilter && $routeParams.systemfilteroperator) { $location.path($scope.ob + '/' + $scope.op + '/' + $scope.numpage + '/' + $scope.rpp).search('filter', $scope.filter).search('filteroperator', $scope.filteroperator).search('filtervalue', $scope.filtervalue).search('order', $routeParams.order).search('ordervalue', $routeParams.ordervalue).search('systemfilter', $routeParams.systemfilter).search('systemfilteroperator', $routeParams.systemfilteroperator).search('systemfiltervalue', $routeParams.systemfiltervalue); } else { $location.path($scope.ob + '/' + $scope.op + '/' + $scope.numpage + '/' + $scope.rpp).search('filter', $scope.filter).search('filteroperator', $scope.filteroperator).search('filtervalue', $scope.filtervalue).search('order', $routeParams.order).search('ordervalue', $routeParams.ordervalue); } } else { $location.path($scope.ob + '/' + $scope.op + '/' + $scope.numpage + '/' + $scope.rpp).search('filter', $scope.filter).search('filteroperator', $scope.filteroperator).search('filtervalue', $scope.filtervalue); } } return false; }; serverService.getDataFromPromise(serverService.promise_getUserSession("usuario")).then(function (data) { $scope.bean2 = data.message; }); }]);
/* * This file is part of the nivo project. * * Copyright 2016-present, Raphaël Benitte. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { memo } from 'react' import PropTypes from 'prop-types' import { BasicTooltip } from '@nivo/tooltip' const LinePointTooltip = ({ point }) => { return ( <BasicTooltip id={ <span> x: <strong>{point.data.xFormatted}</strong>, y:{' '} <strong>{point.data.yFormatted}</strong> </span> } enableChip={true} color={point.serieColor} /> ) } LinePointTooltip.propTypes = { point: PropTypes.object.isRequired, } export default memo(LinePointTooltip)
module.exports = { // disbable logging for testing logging: false, db: { url: 'mongodb://localhost/manager-test' } };
/* */ require("./_fix-re-wks")('match', 1, function(defined, MATCH, $match) { return [function match(regexp) { 'use strict'; var O = defined(this), fn = regexp == undefined ? undefined : regexp[MATCH]; return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); }, $match]; });
export { default as SettersBlock } from './PresetsBlock' export { default as PresetsBlock } from './PresetsBlock' export { default as Connector } from './Connector' export { default as Input } from './Input' export { default as Radio } from './Radio' export { default as Check } from './Check' export * from './helpers'
var Hapi = require('hapi'); var N = Hapi.types.number; var createSchema = function(validation, options) { return Hapi.types.object(validation).options(options); }; var validation = { ping: { a: N().required() } }; var options = { ping: { abortEarly: false } }; var schema = { ping: createSchema(validation.ping, options.ping) }; exports.schema = schema;
var rDate = (function () { function _setDate(date) { return new Date(_checkIfValid(date)); } function _rDateException(message) { this.toString = function() { return 'DateDiffException : ' + message; }; } function _checkIfValid(date) { //sample valid date format "12-19-2010" or "07/19/2010" ~ mm/dd/yyyy var regEx = /^(?:(0[1-9]|1[012])[\- \/.](0[1-9]|[12][0-9]|3[01])[\- \/.](19|20)[0-9]{2})$/; if (date.match(regEx)) { return date; } else { console.log('Invalid date format.'); throw new _rDateException('Invalid date format.'); } } function _humanise(diff) { // The string we're working with to create the representation var str = ''; // Map lengths of `diff` to different time periods var values = [[' year', 365], [' month', 30], [' day', 1]]; // Iterate over the values... var vLen = values.length; for (var i = 0; i < vLen; i++) { var amount = Math.floor(diff / values[i][1]); // ... and find the largest time value that fits into the diff if (amount >= 1) { // If we match, add to the string ('s' is for pluralization) str += amount + values[i][0] + (amount > 1 ? 's' : '') + ' '; // and subtract from the diff diff -= amount * values[i][1]; } } return str; } function _getDateDiff(from, to) { var MSD, date1, date2, timeDiff, diffDays; //milliseconds per day. MSD = 1000 * 3600 * 24; date1 = _setDate(from); date2 = _setDate(to); timeDiff = Math.abs(date1.getTime() - date2.getTime()); diffDays = Math.ceil(timeDiff / (MSD)); return diffDays; } function _getDateDiffHumanize (from, to) { var diffDays; diffDays = _getDateDiff(from, to); return _humanise(diffDays); } return { getDiffDays: _getDateDiff, getDiff: _getDateDiffHumanize }; })(); // console.log(rDate.getDiff("02/13/2015", "12/23/2015")); // console.log(rDate.getDiffDays("02/13/2015", "12/23/2015")); //For NPM Usage if (typeof module !== "undefined") { module.exports = rDate; }
// Generated by CoffeeScript 1.7.1 beforeEach(function() { window.$ = window.jQuery; return jasmine.addMatchers({ toBeTypeOf: function(expectedType) { var actualType; actualType = this.actual; this.message = function() { return "Expected '" + typeof actualType + "' to be type of '" + expectedType + "'"; }; return typeof actualType === expectedType; }, toHaveOwnProperty: function(propertyName) { return this.actual.hasOwnProperty(propertyName); }, toContainHtml: function(html) { var actualHtml, expectedHtml; actualHtml = this.actual.html(); expectedHtml = jasmine.JQuery.browserTagCaseIndependentHtml(html); return actualHtml.indexOf(expectedHtml) >= 0; }, toBeInstanceOf: function(object) { return this.actual instanceof object; } }); });
(function () { /* Imports */ var Meteor = Package.meteor.Meteor; var global = Package.meteor.global; var meteorEnv = Package.meteor.meteorEnv; var URL = Package.url.URL; var meteorInstall = Package.modules.meteorInstall; /* Package-scope variables */ var HTTP, HTTPInternals; var require = meteorInstall({"node_modules":{"meteor":{"http":{"httpcall_server.js":function(require,exports,module){ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // // packages/http/httpcall_server.js // // // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // var path = require('path'); var request = require('request'); var url_util = require('url'); var URL = require("meteor/url").URL; var common = require("./httpcall_common.js"); var HTTP = exports.HTTP = common.HTTP; var hasOwn = Object.prototype.hasOwnProperty; exports.HTTPInternals = { NpmModules: { request: { version: Npm.require('request/package.json').version, module: request } } }; // _call always runs asynchronously; HTTP.call, defined below, // wraps _call and runs synchronously when no callback is provided. function _call(method, url, options, callback) { ////////// Process arguments ////////// if (! callback && typeof options === "function") { // support (method, url, callback) argument list callback = options; options = null; } options = options || {}; if (hasOwn.call(options, 'beforeSend')) { throw new Error("Option beforeSend not supported on server."); } method = (method || "").toUpperCase(); if (! /^https?:\/\//.test(url)) throw new Error("url must be absolute and start with http:// or https://"); var headers = {}; var content = options.content; if (options.data) { content = JSON.stringify(options.data); headers['Content-Type'] = 'application/json'; } var paramsForUrl, paramsForBody; if (content || method === "GET" || method === "HEAD") paramsForUrl = options.params; else paramsForBody = options.params; var newUrl = URL._constructUrl(url, options.query, paramsForUrl); if (options.auth) { if (options.auth.indexOf(':') < 0) throw new Error('auth option should be of the form "username:password"'); headers['Authorization'] = "Basic "+ Buffer.from(options.auth, "ascii").toString("base64"); } if (paramsForBody) { content = URL._encodeParams(paramsForBody); headers['Content-Type'] = "application/x-www-form-urlencoded"; } if (options.headers) { Object.keys(options.headers).forEach(function (key) { headers[key] = options.headers[key]; }); } // wrap callback to add a 'response' property on an error, in case // we have both (http 4xx/5xx error, which has a response payload) callback = (function(callback) { var called = false; return function(error, response) { if (! called) { called = true; if (error && response) { error.response = response; } callback(error, response); } }; })(callback); ////////// Kickoff! ////////// // Allow users to override any request option with the npmRequestOptions // option. var reqOptions = Object.assign({ url: newUrl, method: method, encoding: "utf8", jar: false, timeout: options.timeout, body: content, followRedirect: options.followRedirects, // Follow redirects on non-GET requests // also. (https://github.com/meteor/meteor/issues/2808) followAllRedirects: options.followRedirects, headers: headers }, options.npmRequestOptions || null); request(reqOptions, function(error, res, body) { var response = null; if (! error) { response = {}; response.statusCode = res.statusCode; response.content = body; response.headers = res.headers; common.populateData(response); if (response.statusCode >= 400) { error = common.makeErrorByStatus( response.statusCode, response.content ); } } callback(error, response); }); } HTTP.call = Meteor.wrapAsync(_call); ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// },"httpcall_common.js":function(require,exports){ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // // packages/http/httpcall_common.js // // // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // var MAX_LENGTH = 500; // if you change this, also change the appropriate test var slice = Array.prototype.slice; exports.makeErrorByStatus = function(statusCode, content) { var message = "failed [" + statusCode + "]"; if (content) { var stringContent = typeof content == "string" ? content : content.toString(); message += ' ' + truncate(stringContent.replace(/\n/g, ' '), MAX_LENGTH); } return new Error(message); }; function truncate(str, length) { return str.length > length ? str.slice(0, length) + '...' : str; } // Fill in `response.data` if the content-type is JSON. exports.populateData = function(response) { // Read Content-Type header, up to a ';' if there is one. // A typical header might be "application/json; charset=utf-8" // or just "application/json". var contentType = (response.headers['content-type'] || ';').split(';')[0]; // Only try to parse data as JSON if server sets correct content type. if (['application/json', 'text/javascript', 'application/javascript', 'application/x-javascript', ].indexOf(contentType) >= 0) { try { response.data = JSON.parse(response.content); } catch (err) { response.data = null; } } else { response.data = null; } }; var HTTP = exports.HTTP = {}; /** * @summary Send an HTTP `GET` request. Equivalent to calling [`HTTP.call`](#http_call) with "GET" as the first argument. * @param {String} url The URL to which the request should be sent. * @param {Object} [callOptions] Options passed on to [`HTTP.call`](#http_call). * @param {Function} [asyncCallback] Callback that is called when the request is completed. Required on the client. * @locus Anywhere */ HTTP.get = function (/* varargs */) { return HTTP.call.apply(this, ["GET"].concat(slice.call(arguments))); }; /** * @summary Send an HTTP `POST` request. Equivalent to calling [`HTTP.call`](#http_call) with "POST" as the first argument. * @param {String} url The URL to which the request should be sent. * @param {Object} [callOptions] Options passed on to [`HTTP.call`](#http_call). * @param {Function} [asyncCallback] Callback that is called when the request is completed. Required on the client. * @locus Anywhere */ HTTP.post = function (/* varargs */) { return HTTP.call.apply(this, ["POST"].concat(slice.call(arguments))); }; /** * @summary Send an HTTP `PUT` request. Equivalent to calling [`HTTP.call`](#http_call) with "PUT" as the first argument. * @param {String} url The URL to which the request should be sent. * @param {Object} [callOptions] Options passed on to [`HTTP.call`](#http_call). * @param {Function} [asyncCallback] Callback that is called when the request is completed. Required on the client. * @locus Anywhere */ HTTP.put = function (/* varargs */) { return HTTP.call.apply(this, ["PUT"].concat(slice.call(arguments))); }; /** * @summary Send an HTTP `DELETE` request. Equivalent to calling [`HTTP.call`](#http_call) with "DELETE" as the first argument. (Named `del` to avoid conflict with the Javascript keyword `delete`) * @param {String} url The URL to which the request should be sent. * @param {Object} [callOptions] Options passed on to [`HTTP.call`](#http_call). * @param {Function} [asyncCallback] Callback that is called when the request is completed. Required on the client. * @locus Anywhere */ HTTP.del = function (/* varargs */) { return HTTP.call.apply(this, ["DELETE"].concat(slice.call(arguments))); }; /** * @summary Send an HTTP `PATCH` request. Equivalent to calling [`HTTP.call`](#http_call) with "PATCH" as the first argument. * @param {String} url The URL to which the request should be sent. * @param {Object} [callOptions] Options passed on to [`HTTP.call`](#http_call). * @param {Function} [asyncCallback] Callback that is called when the request is completed. Required on the client. * @locus Anywhere */ HTTP.patch = function (/* varargs */) { return HTTP.call.apply(this, ["PATCH"].concat(slice.call(arguments))); }; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// },"node_modules":{"request":{"package.json":function(require,exports){ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // // node_modules/meteor/http/node_modules/request/package.json // // // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // exports.name = "request"; exports.version = "2.83.0"; exports.main = "index.js"; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// },"index.js":function(require,exports,module){ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // // node_modules/meteor/http/node_modules/request/index.js // // // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Copyright 2010-2012 Mikeal Rogers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. 'use strict' var extend = require('extend') var cookies = require('./lib/cookies') var helpers = require('./lib/helpers') var paramsHaveRequestBody = helpers.paramsHaveRequestBody // organize params for patch, post, put, head, del function initParams (uri, options, callback) { if (typeof options === 'function') { callback = options } var params = {} if (typeof options === 'object') { extend(params, options, {uri: uri}) } else if (typeof uri === 'string') { extend(params, {uri: uri}) } else { extend(params, uri) } params.callback = callback || params.callback return params } function request (uri, options, callback) { if (typeof uri === 'undefined') { throw new Error('undefined is not a valid uri or options object.') } var params = initParams(uri, options, callback) if (params.method === 'HEAD' && paramsHaveRequestBody(params)) { throw new Error('HTTP HEAD requests MUST NOT include a request body.') } return new request.Request(params) } function verbFunc (verb) { var method = verb.toUpperCase() return function (uri, options, callback) { var params = initParams(uri, options, callback) params.method = method return request(params, params.callback) } } // define like this to please codeintel/intellisense IDEs request.get = verbFunc('get') request.head = verbFunc('head') request.options = verbFunc('options') request.post = verbFunc('post') request.put = verbFunc('put') request.patch = verbFunc('patch') request.del = verbFunc('delete') request['delete'] = verbFunc('delete') request.jar = function (store) { return cookies.jar(store) } request.cookie = function (str) { return cookies.parse(str) } function wrapRequestMethod (method, options, requester, verb) { return function (uri, opts, callback) { var params = initParams(uri, opts, callback) var target = {} extend(true, target, options, params) target.pool = params.pool || options.pool if (verb) { target.method = verb.toUpperCase() } if (typeof requester === 'function') { method = requester } return method(target, target.callback) } } request.defaults = function (options, requester) { var self = this options = options || {} if (typeof options === 'function') { requester = options options = {} } var defaults = wrapRequestMethod(self, options, requester) var verbs = ['get', 'head', 'post', 'put', 'patch', 'del', 'delete'] verbs.forEach(function (verb) { defaults[verb] = wrapRequestMethod(self[verb], options, requester, verb) }) defaults.cookie = wrapRequestMethod(self.cookie, options, requester) defaults.jar = self.jar defaults.defaults = self.defaults return defaults } request.forever = function (agentOptions, optionsArg) { var options = {} if (optionsArg) { extend(options, optionsArg) } if (agentOptions) { options.agentOptions = agentOptions } options.forever = true return request.defaults(options) } // Exports module.exports = request request.Request = require('./request') request.initParams = initParams // Backwards compatibility for request.debug Object.defineProperty(request, 'debug', { enumerable: true, get: function () { return request.Request.debug }, set: function (debug) { request.Request.debug = debug } }) ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// }}}}}}},{ "extensions": [ ".js", ".json" ] }); var exports = require("/node_modules/meteor/http/httpcall_server.js"); /* Exports */ Package._define("http", exports, { HTTP: HTTP, HTTPInternals: HTTPInternals }); })();
'use strict'; var userName = document.getElementById('name'); var workoutSelection = document.getElementById('workoutSelection'); Workouts.allWorkouts = []; if (localStorage.workout) { if (JSON.parse(localStorage.workout)[0]) { userName.value = JSON.parse(localStorage.workout)[0].userName; } else { userName.value = JSON.parse(localStorage.workout).userName; } } // +++++++++++++++++++++++++++++++++++++++++ // +++++++ Constructor // +++++++++++++++++++++++++++++++++++++++++ function Workouts(name, commitment, intensity, style, html){ this.name = name; this.commitment = commitment; this.intensity = intensity; this.style = style; this.textImgForRendering = html; this.score = 0; Workouts.allWorkouts.push(this); } // COMPARATORATOR Workouts.prototype.compare = function(){ for (var i = 0; i < (Workouts.allWorkouts.length - 1); i++) { if (Workouts.allWorkouts[i].commitment.includes(parseInt(Workouts.allWorkouts[(Workouts.allWorkouts.length - 1)].commitment))){ Workouts.allWorkouts[i].score++; }; if (Workouts.allWorkouts[i].intensity.includes(parseInt(Workouts.allWorkouts[(Workouts.allWorkouts.length - 1)].intensity))){ Workouts.allWorkouts[i].score += 2; }; if (Workouts.allWorkouts[i].style.includes(Workouts.allWorkouts[(Workouts.allWorkouts.length - 1)].style)){ Workouts.allWorkouts[i].score += 5; }; } }; //Create the objects; turn user input into last object in allWorkouts array in order to compare it Workouts.prototype.userInput = function(event){ event.preventDefault(); var cleanWeek = new Workouts('Clean Week', [2], [1], ['low-impact'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/cleanweek.jpg" alt="BeachBody logo"></img><p id="workoutText">Clean Week is a 7-day fitness and nutrition program designed to help you kick-start healthy habits that get real results and can lead to a lifestyle change that sticks!</p>'); var shiftShop = new Workouts('Shift Shop', [1, 2], [2], ['cardio', 'express'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/shiftshop.jpg" alt="BeachBody logo"></img><p id="workoutText">The SHIFT SHOP uses a "ramp-up" method that starts you off slow—then gradually increases the intensity week by week—all while refining your nutrition. The results? Stunning.</p>'); var youVTwo = new Workouts('YOUv2', [2], [1], ['dance', 'tone', 'low-impact'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/beginner-workout-youv2.jpg" alt="BeachBody logo"></img><p id="workoutText">Leandro and his ladies encourage you to start moving for 30 minutes each weekday with low-impact, easy-to-follow moves set to feel-good party tunes. Learn mini-dance combos with 4 moves in the cardio-dance routines and tone your whole body using just your body weight in the body-sculpting workouts. Create new healthy habits to eat better, feel better, and shed weight with the flexible K.I.S.S. (Keep It Super Simple) & Just Eat! Meal Guide and discover your motivators and setbacks in the Oh Hello YOUv2 Journal.</p>'); var yogaRetreat = new Workouts('3 Week Yoga Retreat', [1], [1], ['yoga', 'low-impact'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/yogaretreat.jpg" alt="BeachBody logo"></img><p id="workoutText">Have you always wanted to learn yoga but didn\'t know where to start? Master the fundamentals of yoga right at home in just 21 days. With 3 Week Yoga Retreat you\'ll get step-by-step instructions with 21 unique classes (each 30 minutes or less). Get ready to roll out your mat and finish flexible and strong.</p>'); var coreDeForce = new Workouts('Core De Force', [2], [3], ['extreme', 'cardio'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/coredeforce.jpg" alt="BeachBody logo"></img><p id="workoutText">Packed with MMA-style punch-kick combos and explosive cardio-conditioning, Core De Force gives your core a 360-degree muscle-toning workout to help you slash inches from your waist, attack belly fat, and carve sculpted arms, legs, and glutes.</p>'); var countryHeat = new Workouts('Country Heat', [2], [2], ['dance'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/countryheat.jpg" alt="BeachBody logo"></img><p id="workoutText"> Created by trainer Autumn Calabrese, Country Heat is a high-energy, low-impact, country dance-inspired workout that\'s so simple and so much fun you\'ll barely notice you\'re getting a great total-body workout. For just 30 minutes a day, you\'ll move nonstop to today\'s hottest country music while you burn major calories. The program also includes a strength-building Dance Conditioning workout to help sculpt and tone your body, and a foolproof Eating Plan and portion-control containers to maximize your results. With Country Heat, you\'ll have a blast as you melt away the pounds and reshape your entire body!</p>'); var twentyTwoMinute = new Workouts('22 Minute Hard Corps', [1], [4], ['extreme', 'express'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/22minutehardcorp.jpg" alt="BeachBody logo"></img><p id="workoutText">Twelve routines that keep introducing new moves and challenging your muscles to get you absolutely ripped in 90 days.</p>'); var hammerAndChisel = new Workouts('The Master\'s Hammer and Chisel', [2], [2], ['cardio', 'extreme'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/hammernadchisel.jpg" alt="BeachBody logo"></img><p id="workoutText">How It Works: Created by seasoned trainers Sagi Kalev and Autumn Calabrese, The Master\'s Hammer and Chisel is an expert resistance-training system that incorporates the three phases of SSP Training—Strength, Stability, and Power—to help rapidly build, chisel, and refine your body for a "masterpiece" physique.</p>'); var cize = new Workouts('CIZE', [2], [2], ['dance'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/cize.jpg" alt="BeachBody logo"></img><p id="workoutText">CIZE™ breaks down the hottest professionally choreographed dance courses, step-by-step, so that anyone can dance. You\'ll be so focused on learning the moves that you won\'t even realize you\'re burning calories and losing weight!</p>'); var dayFixExtreme = new Workouts('21 Day Fix EXTREME', [2], [3], ['extreme'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/21dayfixextreme.jpg" alt="BeachBody logo"></img><p id="workoutText">Celebrity trainer Autumn Calabrese has combined simple portion control, clean eating, and extreme 30-minute workouts to help you get the hardbody you’ve always wanted.</p>'); var insanityMax = new Workouts('INSANITY MAX: 30', [2], [3], ['extreme'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/insanitymax30.jpg" alt="BeachBody logo"></img><p id="workoutText">Every day you\'ll push a little harder, go a little longer, and dig a little deeper. It\'s not about finishing all 30 minutes—it\'s about seeing how far you\'ll go before you MAX OUT. There\'s no equipment needed; all you have to do is work to your MAX and get insane results in 30 minutes a day.</p>'); var pNinetyOriginal = new Workouts('P90', [1, 2], [2], ['express', 'cardio'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/p90.jpg" alt="BeachBody logo"></img><p id="workoutText">Now you don\'t have to go to the extreme to get dramatic, visible results! Tony Horton\'s all-new P90® workouts are simple, doable, and made to change your body right away—regardless of your age or fitness level.</p>'); var piYo = new Workouts('PiYo', [1, 2], [2], ['yoga', 'cardio', 'tone'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/piyo.jpg" alt="BeachBody logo"></img><p id="workoutText">PiYo combines the muscle-sculpting, core-firming benefits of Pilates with the strength and flexibility advantages of yoga. It cranks up the speed to deliver a true fat-burning, low-impact workout that leaves your body looking long, lean, and incredibly defined.</p>'); var insanityOriginal = new Workouts('INSANITY', [2, 3], [3], ['extreme', 'cardio'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/insanity.jpg" alt="BeachBody logo"></img><p id="workoutText">MAX Interval Training—you perform long bursts of maximum-intensity exercise with short periods of rest.</p>'); var pNinetyX = new Workouts('P90X', [3], [3], ['extreme', 'tone'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/p90x.jpg" alt="BeachBody logo"></img><p id="workoutText">Twelve routines that keep introducing new moves and challenging your muscles to get you absolutely ripped in 90 days.</p>'); var pNinetyXThree = new Workouts('P90X3', [2], [3], ['extreme', 'tone'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/p90x3.jpg" alt="BeachBody logo"></img><p id="workoutText">Study after study shows that the most dramatic body transformations happen . . . in the first 30 minutes of exercise. Tony Horton\'s breakthrough Muscle Acceleration system combines a highly structured, plateau-busting schedule with an unprecedented variety of moves that keep every muscle challenged every day for 30 minutes of full-throttle intensity. P90X3 is a whole workout in half the time.</p>'); var focusT = new Workouts('FOCUS T25', [1], [3], ['extreme', 'cardio'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/focust25.jpg" alt="BeachBody logo"></img><p id="workoutText">High-intensity, non-stop, 25-minute workouts that give you everything you need, nothing you don\'t. 25 minutes. 5 days a week. 100% results.</p>'); var twentyOneFix = new Workouts('21 Day Fix', [2], [2], ['tone'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/21dayfix.jpg" alt="BeachBody logo"></img><p id="workoutText">Easy-to-follow portion control and 30-minute workouts take the guesswork out of losing weight. No more counting, weighing, or measuring—just quick results.</p>'); var turboFire = new Workouts('Turbo Fire', [1, 2, 3], [3], ['express', 'cardio'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/turbofire.jpg" alt="BeachBody logo"></img><p id="workoutText">High Intensity Interval Training (HIIT) ignites your metabolism and helps your body burn calories for up to 48 hours after your workout.</p>'); var brazilButt = new Workouts('Brazil Butt Lift', [1, 2, 3], [2], ['express', 'tone', 'Brazilian'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/brazilbuttlift.jpg" alt="BeachBody logo"></img><p id="workoutText"> The TriAngle Training method targets all three major muscles of the buttocks from multiple angles to shape and transform.</p>'); var bodyBeast = new Workouts('Body Beast', [1, 2, 3], [3], ['tone', 'express', 'low-impact'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/bodybeast.jpg" alt="BeachBody logo"></img><p id="workoutText">Get the head-turning physique you\'ve always wanted. Body Beast fuses basic resistance training with breakthrough sports science in 12 extreme muscle-building and fat-shredding workouts. Plus, the Body Beast Eating Plan takes all the guesswork out of getting built!</p>'); var tenMinutesTrainer = new Workouts('10-Minute Trainer', [1], [2], ['express', 'cardio'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/10minutetrainer.jpg" alt="BeachBody logo"></img><p id="workoutText">Combines fat-burning cardio, total-body sculpting, and ab moves all at the same time for maximum efficiency!</p>'); var pNinetyXTwo = new Workouts('P90X2', [3], [3], ['cardio', 'tone'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/p90x2.jpg" alt="BeachBody logo"></img><p id="workoutText">Features a breakthrough in sports science called Muscle Integration, a training technique focused on instability. By doing resistance moves on one foot, a ball, or some other unstable platform, your body is forced to engage more muscles with each movement of the 12 workouts, burning more calories and delivering the kind of results pro athletes pay thousands of dollars for.</p>'); var insanityAsylum = new Workouts('INSANITY: THE ASYLUM', [3], [4], ['extreme', 'cardio', 'tone'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/insanityasylum.jpg" alt="BeachBody logo"></img><p id="workoutText">Unleash your inner world-class athlete through plyometrics, speed, agility, strength, and core workouts in a jaw-dropping series of progressions. In just 30 days, you\'ll push yourself to the next level of game-day readiness with dramatic, measurable improvements in your athletic performance.</p>'); var BrazilMaster = new Workouts('Brazil Butt Lift Master Series', [2], [2], ['tone', 'Brazilian'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/brazilbuttliftmaster.jpg" alt="BeachBody logo"></img><p id="workoutText">Leandro takes his TriAngle Training method to the next level with 3 innovative workouts that incorporate heavier weights and the stability ball to engage your core with every move, for your ultimate bikini body.</p>'); var taiCheng = new Workouts('Tai Cheng', [2, 3], [1], ['low-impact'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/taicheng.jpg" alt="BeachBody logo"></img><p id="workoutText">Learn 18 healing Tai Chi movements, and combine them into a health-boosting routine. Incorporate gentle stretching, breathing exercises, and foam roller techniques to help awaken your natural energy; increase flexibility and mobility; and reduce joint and muscle pain.</p>'); var slimSix = new Workouts('Slim in 6', [1, 2, 3], [2], ['tone', 'cardio'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/slimin6.jpg" alt="BeachBody logo"></img><p id="workoutText">Combines cardio with light resistance moves to burn fat and reshape your body in 6 weeks.</p>'); var turboJam = new Workouts('Turbo Jam', [1, 2, 3], [3], ['dance', 'tone'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/turbojam.jpg" alt="BeachBody logo"></img><p id="workoutText">Kickboxing and body sculpting to the hottest tunes to burn more calories than almost any other exercise.</p>'); var hipHopAbs = new Workouts('Hip Hop Abs', [1, 2], [2], ['dance', 'tone', 'express'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/hiphopabs.jpg" alt="BeachBody logo"></img><p id="workoutText">Fun hip hop dance moves set to hot music to burn fat and sculpt lean sexy abs.</p>'); var chaLean = new Workouts('ChaLEAN Extreme', [2], [3], ['tone', 'extreme'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/chaleanextreme.jpg" alt="BeachBody logo"></img><p id="workoutText">The proven 3-phase circuit training technique is guaranteed to give you results every 30 days—the more muscle you build, the more fat your burn because Muscle Burns Fat®!</p>'); var rockinBody = new Workouts('Rockin\' Body', [1, 2], [2], ['dance', 'tone'], '<section class="displayedWorkout"><img class="left" id="workoutLogo" src="img/rockinbody.jpg" alt="BeachBody logo"></img><p id="workoutText">Calorie-burning cardio and full-body sculpting moves. Party off the pounds as you dance and sweat to the hottest hits of all time!</p>'); var userWorkout = new Workouts('null', event.target.time.value, event.target.intensity.value, event.target.style.value); // Compare the objects against the user input; sort objects according to 'score', place highest scoring object into localStorage. Workouts.prototype.compare(); Workouts.allWorkouts.sort(function (a, b) { return a.score - b.score; }); var selectedWorkout = Workouts.allWorkouts.slice(-3); for (var i = 0; i < selectedWorkout.length; i++) { selectedWorkout[i].userName = event.target.userName.value; selectedWorkout[i].textImgForRendering = selectedWorkout[i].textImgForRendering.concat('<button id="submit' + [i] + '" name="sendSelection" type="submit">Select this workout!</button></section>'); } localStorage.workout = JSON.stringify(selectedWorkout); window.location = 'outputForm.html'; }; workoutSelection.addEventListener('submit', Workouts.prototype.userInput);
import React from "react" import { Link, graphql, useStaticQuery } from "gatsby" import { QueryDataCachesView } from "../../../components/query-data-caches/view" export default function StaticQueryNoTrailingSlashAtoBtoALinkPageA({ path }) { const data = useStaticQuery(graphql` { queryDataCachesJson( selector: { eq: "static-query-no-trailing-slash-A-to-B-to-A-link" } ) { ...QueryDataCachesFragmentInitialPage } } `) return ( <> <QueryDataCachesView data={data} pageType="A" dataType="static-query" path={path} /> <Link to="../page-B" data-testid="page-b-link"> Go to page B </Link> </> ) }
if (typeof Object.assign != 'function') { Object.assign = function(target) { if (target == null) { throw new TypeError('Cannot convert undefined or null to object') } target = Object(target) for (let index = 1; index < arguments.length; index++) { let source = arguments[index] if (source != null) { for (let key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key] } } } } return target } } if (typeof Object.map != 'function') { Object.map = function(source, fn) { if (typeof fn != 'function') { throw new TypeError('fn is not a function') } let rv = {} for (let key in source) { let [new_key, new_value] = fn(key, source[key]) rv[new_key] = new_value } return rv } } if (typeof Object.filter != 'function') { Object.filter = function(source, fn) { if (typeof fn != 'function') { throw new TypeError('fn is not a function') } let rv = {} for (let key in source) { if (fn(key, source[key])) { rv[key] = source[key] } } return rv } }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _check = require("./commands/check"); var _check2 = _interopRequireDefault(_check); var _export = require("./commands/export"); var _export2 = _interopRequireDefault(_export); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* global process */ var error = process.stderr.write.bind(process.stderr); function capitalize(string) { return typeof string === "string" && string ? string.slice(0, 1).toUpperCase() + string.slice(1) : string; } var Commands = { run: function run(name, options) { options = options || {}; var Command = this[capitalize(name)]; if (Command) { try { return new Command(options).run(); } catch (e) { error(e.message + "\n"); } } else { error("unknown command " + name + "\n"); } return false; }, Check: _check2.default, Export: _export2.default }; exports.default = Commands;
var app; (function (app) { var shared; (function (shared) { var UrlService = (function () { function UrlService($http, $rootScope) { this.$http = $http; this.$rootScope = $rootScope; } UrlService.prototype.checkProfileUrlAvaliablity = function (url) { return this.$http.get('/api/Url/UrlAvaliablity?url=' + url).then(function (res) { return res.data; }); }; UrlService.$inject = ['$http', '$rootScope']; return UrlService; })(); shared.UrlService = UrlService; })(shared = app.shared || (app.shared = {})); })(app || (app = {})); angular.module('app.shared').service("urlService", app.shared.UrlService); //# sourceMappingURL=url-service.js.map
// All available abilities // Default functions var greet = require('./responses/greet'); var askName = require('./responses/ask-name'); // A list of responses module.exports = [ { "name": "greet", "response": greet, "commands": [ /^(.*?(\bhey\b)[^$]*)$/i, /^(.*?(\byo\b)[^$]*)$/i, /^(.*?(\bsup\b)[^$]*)$/i, /^(.*?(\what\b)[^$]*)$/i, /^(.*?(\bup\b)[^$]*)$/i ], "highlightCommands": [ "What's up?", "Hey you" ] }, { "name": "askName", "response": askName, "commands": [ /^(.*?(\byour name\b)[^$]*)$/i, ], "highlightCommands": [ "What's your name?", "You are?" ] } ];
(function() { var app = angular.module('logoutService', []); app.service('LogoutService', [function() { }]); })();
'use strict'; module.exports = function (num, precision) { var power = Math.pow(10, precision); return (Math.round(num * power) / power).toFixed(precision); };
'use strict'; const fork = require('child_process').fork; const path = require('path'); class EnableCheckPlugin { constructor({ cwd = '', hookName = '', hookParams = {} } = {}) { this[Symbol.for('hookParams')] = hookParams; this[Symbol.for('hookName')] = hookName; this[Symbol.for('initProcess')](); } getProcess() { return this[Symbol.for('process')]; } getHookName() { return this[Symbol.for('hookName')]; } getHookParams() { return this[Symbol.for('hookParams')]; } [Symbol.for('initProcess')]() { const modulePath = path.join(__dirname, 'lib','enable-check.js'); const hookParams = JSON.stringify(this.getHookParams()); const hookName = this.getHookName(); const process = this.getProcess(); this[Symbol.for('process')] = fork(modulePath, [hookName, hookParams], {silent: true}); } }; module.exports = EnableCheckPlugin;
(function() { 'use strict'; describe('Directive: manageParticipants', function() { var $scope, $compile, element, showAddParticipantsSpy; beforeEach(function() { showAddParticipantsSpy = jasmine.createSpy('ManageParticipantsCtrlSpy'); module('PDRClient', function($controllerProvider) { $controllerProvider.register('ManageParticipantsCtrl', function() { this.showAddParticipants = showAddParticipantsSpy; }); }); inject(function(_$compile_, _$rootScope_) { $compile = _$compile_; $scope = _$rootScope_.$new(true); }); }); describe('when autoShow is true', function() { beforeEach(function() { element = angular.element('<manage-participants auto-show="true"></manage-participants>'); $compile(element)($scope); $scope.$digest(); }); it('calls #showAddParticipants on the ManageParticipantsCtrl', function() { expect(showAddParticipantsSpy).toHaveBeenCalled(); }); }); describe('when autoShow is false', function() { beforeEach(function() { element = angular.element('<manage-participants auto-show="false"></manage-participants>'); $compile(element)($scope); $scope.$digest(); }); it('calls #showAddParticipants on the ManageParticipantsCtrl', function() { expect(showAddParticipantsSpy).not.toHaveBeenCalled(); }); }); describe('when autoShow is undefined', function() { beforeEach(function() { element = angular.element('<manage-participants></manage-participants>'); $compile(element)($scope); $scope.$digest(); }); it('calls #showAddParticipants on the ManageParticipantsCtrl', function() { expect(showAddParticipantsSpy).not.toHaveBeenCalled(); }); }); }); })();