Skip to content

Commit 62dc991

Browse files
authored
Merge pull request #929 from exodus4d/develop
v2.0.0
2 parents f443e80 + 560bb23 commit 62dc991

File tree

738 files changed

+26715
-38622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

738 files changed

+26715
-38622
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Temporary Items
4747
# project files
4848
# ========================
4949
.idea
50-
.sass-cache
5150
.usage
5251
*.gz
5352
composer-dev.lock

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"latedef": false,
3636

3737
// Enforce line length to 100 characters
38-
"maxlen": 200,
38+
"maxlen": 220,
3939

4040
// Require capitalized names for constructor functions.
4141
"newcap": true,

README.md

Lines changed: 50 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
# ![Pathfinder logo](favicon/favicon-32x32.png "Logo") *PATHFINDER*
2-
Mapping tool for [*EVE ONLINE*](https://www.eveonline.com)
2+
#### Mapping tool for [*EVE ONLINE*](https://www.eveonline.com)
33

44
- Project URL [https://www.pathfinder-w.space](https://www.pathfinder-w.space)
5-
- Official forum post [https://forums.eveonline.com](https://forums.eveonline.com/default.aspx?g=posts&m=6021776#post6021776)
65
- Screenshots [imgur.com](http://imgur.com/a/k2aVa)
76
- Videos [youtube.com](https://www.youtube.com/channel/UC7HU7XEoMbqRwqxDTbMjSPg)
87
- Licence [MIT](http://opensource.org/licenses/MIT)
98

109
#### Development
11-
- Test server
12-
- URL: http://www.dev.pathfinder-w.space
10+
- Test server: [https://www.dev.pathfinder-w.space](https://www.dev.pathfinder-w.space)
1311
- Running current `develop` branch
1412
- _SISI_ _ESI_ (make sure to use your test-server client)
15-
- Available for public testing (e.g. new feature,.. )
13+
- Available for public testing (e.g. new feature, )
1614
- Database will be cleared from time to time
1715
- Installation guide:
1816
- [wiki](https://github.com/exodus4d/pathfinder/wiki)
@@ -27,52 +25,55 @@ Issues should be reported in the [Issue](https://github.com/exodus4d/pathfinder/
2725
***
2826

2927
### Project structure
28+
<pre>
29+
─╮
30+
├─ app/ [0755] → PHP root
31+
│ ├─ Controller/ → controller classes for app/ajax endpoints (see routes.ini)
32+
│ ├─ Cron/ → controller classes cronjob endpoints (see cron.ini)
33+
│ ├─ Data/ → classes for data handling
34+
│ ├─ Db/ → classes for DB handling
35+
│ ├─ Exception/ → custom exceptions
36+
│ ├─ Lib/ → libs
37+
│ ├─ Model/ → ORM
38+
│ ├─ config.ini → config - F3 core config: <a href="//fatfreeframework.com/3.7/quick-reference#SystemVariables" title="Fat-Free Framework - SystemVariables">SystemVariables</a>
39+
│ ├─ cron.ini → config - cronjobs
40+
│ ├─ environment.ini → config - system environment
41+
│ ├─ pathfinder.ini → config - pathfinder
42+
│ ├─ plugin.ini → config - custom plugins
43+
│ ├─ requirements.ini → config - system requirements
44+
│ └─ routes.ini → config - routes
45+
├─ export/ [0755] → static data
46+
│ ├─ csv/ → *.csv used by /setup page
47+
│ └─ sql/ → DB dump for import (eve_universe.sql.zip)
48+
├─ favicon/ [0755] → favicons
49+
├─ history/ [0777] → log files (map history logs) [optional]
50+
├─ js/ [0755] → JS source files (not used for production)
51+
│ ├─ app/ → "PATHFINDER" core files
52+
│ ├─ lib/ → 3rd party libs
53+
│ └─ app.js → require.js config
54+
├─ logs/ [0777] → log files
55+
│ └─ …
56+
├─ public/ [0755] → static resources
57+
│ ├─ css/ → CSS dist/build folder (minified)
58+
│ ├─ fonts/ → icon-/fonts
59+
│ ├─ img/ → images
60+
│ ├─ js/ → JS dist/build folder and source maps (minified, uglified)
61+
│ └─ templates/ → templates
62+
├─ sass/ → SCSS sources (not used for production)
63+
├─ tmp/ [0777] → cache folder (PHP templates)
64+
│ └─ cache/ [0777] → cache folder (PHP cache)
65+
├─ .htaccess [0755] → reroute/caching rules ("Apache" only!)
66+
└─ index.php [0755]
3067

31-
```
32-
|-- [0755] app/ --> backend [*.php]
33-
|-- app/ --> "Fat Free Framework" extensions
34-
|-- lib/ --> "Fat Free Framework"
35-
|-- main/ --> "PATHFINDER" root
36-
|-- config.ini --> config "f3" framework
37-
|-- cron.ini --> config - cronjobs
38-
|-- environment.ini --> config - system environment
39-
|-- pathfinder.ini --> config - pathfinder
40-
|-- requirements.ini --> config - system requirements
41-
|-- routes.ini --> config - routes
42-
|-- [0755] export/ --> static data
43-
|-- csv/ --> *.csv used by /setup page
44-
|-- sql/ --> DB dump for import (eve_universe.sql.zip)
45-
|-- [0755] favicon/ --> Favicons
46-
|-- [0777] history/ --> log files (map history logs) [optional]
47-
|-- [0755] js/ --> JS source files
48-
|-- app/ --> "PASTHFINDER" core files (not used for production)
49-
|-- lib/ --> 3rd partie extension/library (not used for production)
50-
|-- app.js --> require.js config (!required for production!)
51-
|-- [0777] logs/ --> log files
52-
|-- ...
53-
|-- node_modules/ --> node.js modules (not used for production)
54-
|-- ...
55-
|-- [0755] public/ --> frontend source
56-
|-- css/ --> CSS dist/build folder (minified)
57-
|-- fonts/ --> (icon)-Fonts
58-
|-- img/ --> images
59-
|-- js/ --> JS dist/build folder and source maps (minified, uglified)
60-
|-- templates/ --> templates
61-
|-- sass/ --> SCSS source (not used for production)
62-
|-- [0777] tmp/ --> cache folder
63-
|-- [0755] .htaccess --> reroute/caching rules ("Apache" only!)
64-
|-- [0755] index.php
65-
66-
--------------------------
68+
━━━━━━━━━━━━━━━━━━━━━━━━━━
6769
CI/CD config files:
68-
--------------------------
69-
|-- .jshintrc --> "JSHint" config (not used for production)
70-
|-- composer.json --> Composer package definition
71-
|-- config.rb --> "Compass" config (not used for production)
72-
|-- gulpfile.js --> "Gulp" task config (not used for production )
73-
|-- package.json --> "Node.js" dependency config (not used for production)
74-
|-- README.md --> This file :) (not used for production)
75-
```
70+
71+
├─ .jshintrc → "JSHint" config (not used for production)
72+
├─ composer.json → "Composer" package definition
73+
├─ gulpfile.js → "Gulp" task config (not used for production)
74+
├─ package.json → "Node.js" dependency config (not used for production)
75+
└─ README.md → This file :) (not used for production)
76+
</pre>
7677

7778
***
7879

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
* Time: 23:30
77
*/
88

9-
namespace Controller;
9+
namespace Exodus4D\Pathfinder\Controller;
1010

1111

12-
use Model\Pathfinder;
12+
use Exodus4D\Pathfinder\Model\Pathfinder;
1313

1414
class AccessController extends Controller {
1515

@@ -77,11 +77,11 @@ protected function isLoggedIn(\Base $f3) : string {
7777

7878
/**
7979
* broadcast MapModel to clients
80-
* @see broadcastMapData()
8180
* @param Pathfinder\MapModel $map
81+
* @param bool $noCache
8282
*/
83-
protected function broadcastMap(Pathfinder\MapModel $map) : void {
84-
$this->broadcastMapData($this->getFormattedMapData($map));
83+
protected function broadcastMap(Pathfinder\MapModel $map, bool $noCache = false) : void {
84+
$this->broadcastMapData($this->getFormattedMapData($map, $noCache));
8585
}
8686

8787

@@ -99,18 +99,13 @@ protected function broadcastMapData(?array $mapData) : void {
9999
/**
100100
* get formatted Map Data
101101
* @param Pathfinder\MapModel $map
102-
* @return array
103-
* @throws \Exception
104-
*/
105-
106-
/**
107-
* @param Pathfinder\MapModel $map
102+
* @param bool $noCache
108103
* @return array|null
109104
*/
110-
protected function getFormattedMapData(Pathfinder\MapModel $map) : ?array {
105+
protected function getFormattedMapData(Pathfinder\MapModel $map, bool $noCache = false) : ?array {
111106
$data = null;
112107
try{
113-
$mapData = $map->getData();
108+
$mapData = $map->getData($noCache);
114109
$data = [
115110
'config' => $mapData->mapData,
116111
'data' => [
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
* Time: 20:30
77
*/
88

9-
namespace Controller;
9+
namespace Exodus4D\Pathfinder\Controller;
1010

1111

12-
use Controller\Ccp\Sso;
13-
use lib\Config;
14-
use Model\Pathfinder\CharacterModel;
15-
use Model\Pathfinder\CorporationModel;
16-
use Model\Pathfinder\MapModel;
17-
use Model\Pathfinder\RoleModel;
12+
use Exodus4D\Pathfinder\Controller\Ccp\Sso;
13+
use Exodus4D\Pathfinder\Lib\Config;
14+
use Exodus4D\Pathfinder\Model\Pathfinder\CharacterModel;
15+
use Exodus4D\Pathfinder\Model\Pathfinder\CorporationModel;
16+
use Exodus4D\Pathfinder\Model\Pathfinder\MapModel;
17+
use Exodus4D\Pathfinder\Model\Pathfinder\RoleModel;
1818

1919
class Admin extends Controller{
2020

@@ -203,7 +203,7 @@ protected function saveSettings(CharacterModel $character, int $corporationId, a
203203
// character has access to that corporation -> create/update/delete rights...
204204
if($corporationRightsData = (array)$settings['rights']){
205205
// get existing corp rights
206-
foreach($corporation->getRights(['addInactive' => true]) as $corporationRight){
206+
foreach($corporation->getRights($corporation::RIGHTS, ['addInactive' => true]) as $corporationRight){
207207
$corporationRightData = $corporationRightsData[$corporationRight->rightId->_id];
208208
if(
209209
$corporationRightData &&
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
* Time: 17:42
77
*/
88

9-
namespace Controller\Api;
9+
namespace Exodus4D\Pathfinder\Controller\Api;
1010

11-
use Controller;
12-
use Model\Pathfinder;
11+
use Exodus4D\Pathfinder\Controller;
12+
use Exodus4D\Pathfinder\Model\Pathfinder;
1313

1414
class Access extends Controller\AccessController {
1515

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
* Time: 03:34
88
*/
99

10-
namespace Controller\Api;
10+
namespace Exodus4D\Pathfinder\Controller\Api;
1111

1212

13-
use lib\Config;
14-
use Controller;
15-
13+
use Exodus4D\Pathfinder\Lib\Config;
14+
use Exodus4D\Pathfinder\Controller;
1615

1716
/**
1817
* Github controller
@@ -36,9 +35,7 @@ public function releases(\Base $f3){
3635
$return->version->delta = null;
3736
$return->version->dev = false;
3837

39-
$md = \Markdown::instance();
40-
41-
$releases = $f3->gitHubClient()->getProjectReleases('exodus4d/pathfinder', $releaseCount);
38+
$releases = $f3->gitHubClient()->send('getProjectReleases', 'exodus4d/pathfinder', $releaseCount);
4239

4340
foreach($releases as $key => &$release){
4441
// check version ------------------------------------------------------------------------------------------
@@ -70,12 +67,12 @@ public function releases(\Base $f3){
7067

7168
// convert Markdown to HTML -> use either gitHub API (in oder to create abs, issue links)
7269
// -> or F3´s markdown as fallback
73-
$html = $f3->gitHubClient()->markdownToHtml('exodus4d/pathfinder', $body);
70+
$html = $f3->gitHubClient()->send('markdownToHtml', 'exodus4d/pathfinder', $body);
7471

7572
if(!empty($html)){
7673
$body = $html;
7774
}else{
78-
$body = $md->convert(trim($body));
75+
$body = \Markdown::instance()->convert(trim($body));
7976
}
8077

8178
$release['body'] = $body;

0 commit comments

Comments
 (0)