@livinglogic/livingapi 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dist/esm-node/livingapi.js +1 -1
- package/dist/esm-node/livingapi.js.map +1 -1
- package/dist/esm-static/livingapi.js +1 -1
- package/dist/esm-static/livingapi.js.map +1 -1
- package/dist/umd/livingapi.js +1 -1
- package/dist/umd/livingapi.js.map +1 -1
- package/package.json +1 -1
- package/src/livingapi.js +8 -7
package/package.json
CHANGED
package/src/livingapi.js
CHANGED
|
@@ -355,7 +355,7 @@ export class Globals extends Base
|
|
|
355
355
|
|
|
356
356
|
set_current_geo(position)
|
|
357
357
|
{
|
|
358
|
-
this._current_geo = new Geo(position.coords.latitude, position.coords.longitude);
|
|
358
|
+
this._current_geo = new Geo(this, position.coords.latitude, position.coords.longitude);
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
_in_form()
|
|
@@ -5321,7 +5321,7 @@ export class File extends Base
|
|
|
5321
5321
|
|
|
5322
5322
|
get url()
|
|
5323
5323
|
{
|
|
5324
|
-
return "/
|
|
5324
|
+
return "/files/" + this.contextid + "/" + this.id;
|
|
5325
5325
|
}
|
|
5326
5326
|
|
|
5327
5327
|
get archive_url()
|
|
@@ -5332,8 +5332,8 @@ export class File extends Base
|
|
|
5332
5332
|
}
|
|
5333
5333
|
};
|
|
5334
5334
|
|
|
5335
|
-
File.prototype._ul4onattrs = ["filename", "mimetype", "width", "height", "internal_id", "createdat", "size", "duration", "geo", "storagefilename", "archive", "context_id"];
|
|
5336
|
-
File.prototype._ul4attrs = new Set(["id", "internal_id", "url", "archive_url", "filename", "mimetype", "width", "height", "size", "duration", "geo", "archive", "createdat", "context_id"]);
|
|
5335
|
+
File.prototype._ul4onattrs = ["globals", "filename", "mimetype", "width", "height", "internal_id", "createdat", "size", "duration", "geo", "storagefilename", "archive", "context_id"];
|
|
5336
|
+
File.prototype._ul4attrs = new Set(["globals", "id", "internal_id", "url", "archive_url", "filename", "mimetype", "width", "height", "size", "duration", "geo", "archive", "createdat", "context_id"]);
|
|
5337
5337
|
|
|
5338
5338
|
|
|
5339
5339
|
class GeoType extends ul4.Type
|
|
@@ -5349,9 +5349,10 @@ let geotype = new GeoType("la", "Geo", "Geographical coordinates and location in
|
|
|
5349
5349
|
|
|
5350
5350
|
export class Geo extends Base
|
|
5351
5351
|
{
|
|
5352
|
-
constructor(lat, long, info=null)
|
|
5352
|
+
constructor(globals, lat, long, info=null)
|
|
5353
5353
|
{
|
|
5354
5354
|
super(null);
|
|
5355
|
+
this.globals = globals;
|
|
5355
5356
|
this.lat = lat;
|
|
5356
5357
|
this.long = long;
|
|
5357
5358
|
this.info = info;
|
|
@@ -5368,8 +5369,8 @@ export class Geo extends Base
|
|
|
5368
5369
|
}
|
|
5369
5370
|
};
|
|
5370
5371
|
|
|
5371
|
-
Geo.prototype._ul4onattrs = ["lat", "long", "info"];
|
|
5372
|
-
Geo.prototype._ul4attrs = new Set(["lat", "long", "info"]);
|
|
5372
|
+
Geo.prototype._ul4onattrs = ["globals", "lat", "long", "info"];
|
|
5373
|
+
Geo.prototype._ul4attrs = new Set(["globals", "lat", "long", "info"]);
|
|
5373
5374
|
|
|
5374
5375
|
|
|
5375
5376
|
class AttachmentType extends ul4.Type
|