@ -16160,16 +16160,16 @@ var AddLocationComponent = /*#__PURE__*/function (_Component) {
return m ( "fieldset" , {
return m ( "fieldset" , {
className : "Settings-theme"
className : "Settings-theme"
} , m ( "legend" , null , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'youen-users-map .forum.location' ) ) , m ( ( flarum _common _components _Switch _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) ) , {
} , m ( "legend" , null , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'justoverclock-users-map-location .forum.location' ) ) , m ( ( flarum _common _components _Switch _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) ) , {
state : this . enableLocation ,
state : this . enableLocation ,
onchange : function onchange ( val ) {
onchange : function onchange ( val ) {
return _this . setEnableLocation ( val ) ;
return _this . setEnableLocation ( val ) ;
}
}
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'youen-users-map .forum.enableLocation' ) ) , m ( "div" , {
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'justoverclock-users-map-location .forum.enableLocation' ) ) , m ( "div" , {
className : "fieldset-separator"
className : "fieldset-separator"
} ) , this . enableLocation ? m ( "div" , null , m ( "label" , {
} ) , this . enableLocation ? m ( "div" , null , m ( "label" , {
"for" : "search-country"
"for" : "search-country"
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'youen-users-map .forum.locationCountry' ) ) , m ( "input" , {
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'justoverclock-users-map-location .forum.locationCountry' ) ) , m ( "input" , {
type : "text" ,
type : "text" ,
className : "FormControl search-country" ,
className : "FormControl search-country" ,
id : "search-country" ,
id : "search-country" ,
@ -16180,9 +16180,9 @@ var AddLocationComponent = /*#__PURE__*/function (_Component) {
className : "fieldset-separator"
className : "fieldset-separator"
} ) , m ( "label" , {
} ) , m ( "label" , {
"for" : "search-city"
"for" : "search-city"
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'youen-users-map .forum.locationCity' ) ) , m ( "p" , {
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'justoverclock-users-map-location .forum.locationCity' ) ) , m ( "p" , {
className : "helpText"
className : "helpText"
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'youen-users-map .forum.locationCityDescription' ) ) , m ( "input" , {
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'justoverclock-users-map-location .forum.locationCityDescription' ) ) , m ( "input" , {
type : "text" ,
type : "text" ,
className : "FormControl search-city" ,
className : "FormControl search-city" ,
id : "search-city" ,
id : "search-city" ,
@ -16217,8 +16217,8 @@ var AddLocationComponent = /*#__PURE__*/function (_Component) {
if ( mapElements . length > 0 ) {
if ( mapElements . length > 0 ) {
if ( ! this . map ) {
if ( ! this . map ) {
var mapElement = mapElements [ 0 ] ;
var mapElement = mapElements [ 0 ] ;
var publicToken = flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . forum . attribute ( 'youen-users-map.mapb ox-api-key' ) ;
var publicToken = flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . forum . attribute ( 'justoverclock-users-map-location.mapB ox-api-key' ) ;
var markerIconPath = flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . forum . attribute ( 'baseUrl' ) + '/assets/extensions/youen-users-map /marker-icon.png' ;
var markerIconPath = flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . forum . attribute ( 'baseUrl' ) + '/assets/extensions/justoverclock-users-map-location /marker-icon.png' ;
var markerIcon = L . icon ( {
var markerIcon = L . icon ( {
iconUrl : markerIconPath ,
iconUrl : markerIconPath ,
iconSize : [ 25 , 41 ] ,
iconSize : [ 25 , 41 ] ,
@ -16283,7 +16283,7 @@ var AddLocationComponent = /*#__PURE__*/function (_Component) {
_this2 . location = null ;
_this2 . location = null ;
flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . alerts . show ( {
flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . alerts . show ( {
type : 'success'
type : 'success'
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'youen-users-map .forum.locationCleared' ) ) ;
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'justoverclock-users-map-location .forum.locationCleared' ) ) ;
_this2 . updateMap ( ) ;
_this2 . updateMap ( ) ;
} ) ;
} ) ;
@ -16366,7 +16366,7 @@ var AddLocationComponent = /*#__PURE__*/function (_Component) {
} ;
} ;
flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . alerts . show ( {
flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . alerts . show ( {
type : 'success'
type : 'success'
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'youen-users-map .forum.locationSaved' ) ) ;
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'justoverclock-users-map-location .forum.locationSaved' ) ) ;
_this2 . updateMap ( ) ;
_this2 . updateMap ( ) ;
} ) ;
} ) ;
@ -16380,7 +16380,7 @@ var AddLocationComponent = /*#__PURE__*/function (_Component) {
if ( ! foundResult ) {
if ( ! foundResult ) {
flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . alerts . show ( {
flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . alerts . show ( {
type : 'error'
type : 'error'
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'youen-users-map .forum.locationNotFound' ) ) ;
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . translator . trans ( 'justoverclock-users-map-location .forum.locationNotFound' ) ) ;
}
}
} ) ;
} ) ;
} ;
} ;
@ -16439,7 +16439,7 @@ var GlobalMapPage = /*#__PURE__*/function (_Page) {
_proto . oninit = function oninit ( vnode ) {
_proto . oninit = function oninit ( vnode ) {
_Page . prototype . oninit . call ( this , vnode ) ;
_Page . prototype . oninit . call ( this , vnode ) ;
flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . setTitle ( translate ( 'youen-users-map .forum.global-map.title' ) ) ;
flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . setTitle ( translate ( 'justoverclock-users-map-location .forum.global-map.title' ) ) ;
this . map = null ;
this . map = null ;
} ;
} ;
@ -16448,7 +16448,7 @@ var GlobalMapPage = /*#__PURE__*/function (_Page) {
"class" : "GlobalMapPage"
"class" : "GlobalMapPage"
} , m ( "div" , {
} , m ( "div" , {
className : "container"
className : "container"
} , m ( "h2" , null , translate ( 'youen-users-map .forum.global-map.title2' ) ) , m ( "p" , null , translate ( 'youen-users-map .forum.global-map.description' ) ) , m ( "div" , {
} , m ( "h2" , null , translate ( 'justoverclock-users-map-location .forum.global-map.title2' ) ) , m ( "p" , null , translate ( 'justoverclock-users-map-location .forum.global-map.description' ) ) , m ( "div" , {
className : "global-map"
className : "global-map"
} ) ) ) ;
} ) ) ) ;
} ;
} ;
@ -16464,8 +16464,8 @@ var GlobalMapPage = /*#__PURE__*/function (_Page) {
if ( mapElements . length > 0 ) {
if ( mapElements . length > 0 ) {
if ( ! this . map ) {
if ( ! this . map ) {
var mapElement = mapElements [ 0 ] ;
var mapElement = mapElements [ 0 ] ;
var publicToken = flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . forum . attribute ( 'youen-users-map.mapb ox-api-key' ) ;
var publicToken = flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . forum . attribute ( 'justoverclock-users-map-location.mapB ox-api-key' ) ;
var markerIconPath = flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . forum . attribute ( 'baseUrl' ) + '/assets/extensions/youen-users-map /marker-icon.png' ;
var markerIconPath = flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default ( ) . forum . attribute ( 'baseUrl' ) + '/assets/extensions/justoverclock-users-map-location /marker-icon.png' ;
this . userMarkerIcon = L . icon ( {
this . userMarkerIcon = L . icon ( {
iconUrl : markerIconPath ,
iconUrl : markerIconPath ,
iconSize : [ 25 , 41 ] ,
iconSize : [ 25 , 41 ] ,
@ -16601,7 +16601,7 @@ __webpack_require__.r(__webpack_exports__);
flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default ( ) . initializers . add ( 'youen/users-map ' , function ( app ) {
flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default ( ) . initializers . add ( 'justoverclock/users-map-location ' , function ( app ) {
( flarum _common _models _User _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) . prototype ) . location _country = flarum _common _Model _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default ( ) . attribute ( 'location_country' ) ;
( flarum _common _models _User _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) . prototype ) . location _country = flarum _common _Model _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default ( ) . attribute ( 'location_country' ) ;
( flarum _common _models _User _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) . prototype ) . location _countrycode = flarum _common _Model _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default ( ) . attribute ( 'location_countrycode' ) ;
( flarum _common _models _User _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) . prototype ) . location _countrycode = flarum _common _Model _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default ( ) . attribute ( 'location_countrycode' ) ;
( flarum _common _models _User _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) . prototype ) . location _postcode = flarum _common _Model _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default ( ) . attribute ( 'location_postcode' ) ;
( flarum _common _models _User _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) . prototype ) . location _postcode = flarum _common _Model _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default ( ) . attribute ( 'location_postcode' ) ;
@ -16609,7 +16609,7 @@ flarum_forum_app__WEBPACK_IMPORTED_MODULE_0___default().initializers.add('youen/
( flarum _common _models _User _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) . prototype ) . location _latitude = flarum _common _Model _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default ( ) . attribute ( 'location_latitude' ) ;
( flarum _common _models _User _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) . prototype ) . location _latitude = flarum _common _Model _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default ( ) . attribute ( 'location_latitude' ) ;
( flarum _common _models _User _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) . prototype ) . location _longitude = flarum _common _Model _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default ( ) . attribute ( 'location_longitude' ) ;
( flarum _common _models _User _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default ( ) . prototype ) . location _longitude = flarum _common _Model _ _WEBPACK _IMPORTED _MODULE _4 _ _ _default ( ) . attribute ( 'location_longitude' ) ;
app . store . models . userlocations = _models _UserLocation _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] ;
app . store . models . userlocations = _models _UserLocation _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "default" ] ;
app . routes [ 'youen .global-map' ] = {
app . routes [ 'justoverclock .global-map' ] = {
path : '/global-map' ,
path : '/global-map' ,
component : _components _GlobalMapPage _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "default" ]
component : _components _GlobalMapPage _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "default" ]
} ;
} ;
@ -16625,7 +16625,7 @@ flarum_forum_app__WEBPACK_IMPORTED_MODULE_0___default().initializers.add('youen/
( 0 , flarum _common _extend _ _WEBPACK _IMPORTED _MODULE _1 _ _ . extend ) ( ( flarum _forum _components _UserCard _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default ( ) . prototype ) , 'oncreate' , function ( originalResult , vnode ) {
( 0 , flarum _common _extend _ _WEBPACK _IMPORTED _MODULE _1 _ _ . extend ) ( ( flarum _forum _components _UserCard _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default ( ) . prototype ) , 'oncreate' , function ( originalResult , vnode ) {
var script = document . createElement ( 'script' ) ;
var script = document . createElement ( 'script' ) ;
script . type = 'text/javascript' ;
script . type = 'text/javascript' ;
script . src = app . forum . attribute ( 'baseUrl' ) + '/assets/extensions/youen-users-map /leaflet.edgebuffer.js' ;
script . src = app . forum . attribute ( 'baseUrl' ) + '/assets/extensions/justoverclock-users-map-location /leaflet.edgebuffer.js' ;
document . head . appendChild ( script ) ;
document . head . appendChild ( script ) ;
var user = this . attrs . user ;
var user = this . attrs . user ;
var location = user . location _latitude ( ) ? {
var location = user . location _latitude ( ) ? {
@ -16634,8 +16634,8 @@ flarum_forum_app__WEBPACK_IMPORTED_MODULE_0___default().initializers.add('youen/
} : null ;
} : null ;
if ( ! location ) return ;
if ( ! location ) return ;
var mapElement = vnode . dom . getElementsByClassName ( 'location-map' ) [ 0 ] ;
var mapElement = vnode . dom . getElementsByClassName ( 'location-map' ) [ 0 ] ;
var publicToken = app . forum . attribute ( 'youen-users-map.mapb ox-api-key' ) ;
var publicToken = app . forum . attribute ( 'justoverclock-users-map-location.mapB ox-api-key' ) ;
var markerIconPath = app . forum . attribute ( 'baseUrl' ) + '/assets/extensions/youen-users-map /marker-icon.png' ;
var markerIconPath = app . forum . attribute ( 'baseUrl' ) + '/assets/extensions/justoverclock-users-map-location /marker-icon.png' ;
var markerIcon = L . icon ( {
var markerIcon = L . icon ( {
iconUrl : markerIconPath ,
iconUrl : markerIconPath ,
iconSize : [ 25 , 41 ] ,
iconSize : [ 25 , 41 ] ,
@ -16686,7 +16686,7 @@ flarum_forum_app__WEBPACK_IMPORTED_MODULE_0___default().initializers.add('youen/
href : "/global-map" ,
href : "/global-map" ,
id : "map-link" ,
id : "map-link" ,
"class" : "Button Button--primary"
"class" : "Button Button--primary"
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default ( ) . translator . trans ( 'youen-users-map .forum.global-map.linkToMap' ) ) ) ;
} , flarum _forum _app _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default ( ) . translator . trans ( 'justoverclock-users-map-location .forum.global-map.linkToMap' ) ) ) ;
}
}
}
}
} ) ;
} ) ;