Updates version and removes custom modules
@@ -13,8 +13,8 @@ NAME = Pathfinder
|
||||
; Version is used for CSS/JS cache busting and is part of the URL for static resources:
|
||||
; e.g. public/js/vX.X.X/app.js
|
||||
; Syntax: String (current version)
|
||||
; Default: v2.0.1
|
||||
VERSION = v2.0.1
|
||||
; Default: v2.1.0
|
||||
VERSION = v2.1.0
|
||||
|
||||
; Contact information [optional]
|
||||
; Shown on 'licence', 'contact' page.
|
||||
|
||||
@@ -5,11 +5,11 @@ define([ // dependencies for this module
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* DotlanModule class
|
||||
* EmptyModule class
|
||||
* -> skeleton for custom module plugins
|
||||
* @type {DotlanModule}
|
||||
* @type {EmptyModule}
|
||||
*/
|
||||
let DotlanModule = class DotlanModule extends BaseModule {
|
||||
let EmptyModule = class EmptyModule extends BaseModule {
|
||||
constructor(config = {}) {
|
||||
super(Object.assign({}, new.target.defaultConfig, config));
|
||||
}
|
||||
@@ -29,17 +29,7 @@ define([ // dependencies for this module
|
||||
let bodyEl = Object.assign(document.createElement('div'), {
|
||||
className: this._config.bodyClassName
|
||||
});
|
||||
|
||||
if (this.isWormhole(systemData.name)) {
|
||||
var moduleContent = 'Not available for Jspace'
|
||||
} else {
|
||||
var moduleContent = Object.assign(document.createElement('iframe'), {
|
||||
src: this.dotlanPath(this._systemData),
|
||||
className: 'dotlan-iframe',
|
||||
style: "width: 100%; height: 650px;"
|
||||
})
|
||||
}
|
||||
bodyEl.append(moduleContent)
|
||||
|
||||
this.moduleElement.append(bodyEl);
|
||||
|
||||
return this.moduleElement;
|
||||
@@ -63,36 +53,19 @@ define([ // dependencies for this module
|
||||
onSortableEvent(name, e){
|
||||
super.onSortableEvent(name, e);
|
||||
}
|
||||
|
||||
dotlanPath(sysData){
|
||||
let regionName = this.snakeCase(sysData.region.name);
|
||||
let systemName = this.snakeCase(sysData.name);
|
||||
return ["https://evemaps.dotlan.net/map/", regionName, "/", systemName, "#npc_delta"].join('');
|
||||
}
|
||||
|
||||
snakeCase(str){
|
||||
const regex = /\ /g;
|
||||
return str.replace(regex, "_");
|
||||
}
|
||||
|
||||
isWormhole(systemName){
|
||||
const jspace = /^[jJ][0-9]{4,6}/;
|
||||
return systemName.match(jspace) ? true : false;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
DotlanModule.isPlugin = true; // module is defined as 'plugin'
|
||||
DotlanModule.scope = 'system'; // module scope controls how module gets updated and what type of data is injected
|
||||
DotlanModule.sortArea = 'a'; // default sortable area
|
||||
DotlanModule.position = 15; // default sort/order position within sortable area
|
||||
DotlanModule.label = 'Dotlan'; // static module label (e.g. description)
|
||||
EmptyModule.isPlugin = true; // module is defined as 'plugin'
|
||||
EmptyModule.scope = 'system'; // module scope controls how module gets updated and what type of data is injected
|
||||
EmptyModule.sortArea = 'a'; // default sortable area
|
||||
EmptyModule.position = 15; // default sort/order position within sortable area
|
||||
EmptyModule.label = 'Empty'; // static module label (e.g. description)
|
||||
|
||||
DotlanModule.defaultConfig = {
|
||||
className: 'pf-system-dotlan-module', // class for module
|
||||
sortTargetAreas: ['a'], // sortable areas where module can be dragged into
|
||||
headline: 'Dotlan Module',
|
||||
EmptyModule.defaultConfig = {
|
||||
className: 'pf-system-empty-module', // class for module
|
||||
sortTargetAreas: ['a', 'b', 'c'], // sortable areas where module can be dragged into
|
||||
headline: 'Empty Module',
|
||||
};
|
||||
|
||||
return DotlanModule;
|
||||
});
|
||||
return EmptyModule;
|
||||
});
|
||||
4
node_modules/.gitignore
generated
vendored
@@ -1,4 +0,0 @@
|
||||
#ignore all files in this dir...
|
||||
*
|
||||
#... except for this one.
|
||||
!.gitignore
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pathfinder-eve",
|
||||
"version": "2.0.0",
|
||||
"version": "2.1.0",
|
||||
"engines": {
|
||||
"node": "12.x"
|
||||
},
|
||||
|
||||
BIN
public/css/v2.1.0/pathfinder.css.br
Normal file
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 640 KiB |
|
Before Width: | Height: | Size: 226 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
BIN
public/img/v2.1.0/gallery/admin_1.webp
Normal file
|
After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
BIN
public/img/v2.1.0/gallery/admin_2.webp
Normal file
|
After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 105 KiB |
BIN
public/img/v2.1.0/gallery/connection_1.webp
Normal file
|
After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 917 KiB After Width: | Height: | Size: 917 KiB |
BIN
public/img/v2.1.0/gallery/development_1.webp
Normal file
|
After Width: | Height: | Size: 641 KiB |
|
Before Width: | Height: | Size: 409 KiB After Width: | Height: | Size: 409 KiB |
BIN
public/img/v2.1.0/gallery/development_2.webp
Normal file
|
After Width: | Height: | Size: 226 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
BIN
public/img/v2.1.0/gallery/discord_1.webp
Normal file
|
After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 110 KiB |
BIN
public/img/v2.1.0/gallery/install_db.webp
Normal file
|
After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
BIN
public/img/v2.1.0/gallery/install_settings.webp
Normal file
|
After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
BIN
public/img/v2.1.0/gallery/intel_1.webp
Normal file
|
After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
BIN
public/img/v2.1.0/gallery/kb_1.webp
Normal file
|
After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
BIN
public/img/v2.1.0/gallery/kb_2.webp
Normal file
|
After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
BIN
public/img/v2.1.0/gallery/log_1.webp
Normal file
|
After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
BIN
public/img/v2.1.0/gallery/login_1.webp
Normal file
|
After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
BIN
public/img/v2.1.0/gallery/map_1.webp
Normal file
|
After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
BIN
public/img/v2.1.0/gallery/map_2.webp
Normal file
|
After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
BIN
public/img/v2.1.0/gallery/map_3.webp
Normal file
|
After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
BIN
public/img/v2.1.0/gallery/route_1.webp
Normal file
|
After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |