-
Notifications
You must be signed in to change notification settings - Fork 4
Kompabilita s Nette 3.0, SkautisNette 3.0 a Skautis 3.0 #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JindrichPilar
wants to merge
9
commits into
skaut:master
Choose a base branch
from
JindrichPilar:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0b4b7f0
Name v composer.json podle specifikace
JindrichPilar 3f66f61
Odstraneni nepouzivanych dev zavislosti
JindrichPilar 22624e7
Update zavislosti pro PHP 7+ a Nette 3+
JindrichPilar 11e37b6
Pridano README
JindrichPilar 75de518
Kompatibilita s Nette 3.0 a Skautis 3.0
JindrichPilar 6c5c19d
$baseUri => $baseUrl
JindrichPilar 73811f3
Review fix
JindrichPilar 38be6da
PHP 7.1 -> 7.3
JindrichPilar e0e862a
PHP 7.1 -> 7.3 pro wrecker
JindrichPilar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # ws.skautis.cz | ||
| Webová aplikace pro vývojáře chtějící pracovat s informačním systémem [SkautIS](https://is.skaut.cz/). | ||
| Aplikace je dostupná na [ws.skautis.cz](https://ws.skautis.cz/) | ||
|
|
||
| Aplikace poskytuje: | ||
| - Základní informace pro vývojáře. | ||
| - Testovací rozhraní pro zkoušení API callů. | ||
| - Formulář pro žádost o povolení aplikace (získání ``ID_Application`` / ``appId``) | ||
|
|
||
| ## Lokální environment | ||
| Pro lokální spuštění je potřeba [docker](https://www.docker.com/) a [docker-compose](https://docs.docker.com/compose/). | ||
|
|
||
| ```bash | ||
| # Spustí container | ||
| docker-compose up -d | ||
| ``` | ||
|
|
||
| Aplikace je poté dostupná na [http://127.0.0.1/](http://127.0.0.1/). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| skautis: | ||
| applicationId: c9f6e8b1-2863-4fa6-9b5f-8b7e6f6aac91 | ||
| testMode: true | ||
| cache: true | ||
|
|
||
| parameters: | ||
| sendEmail: FALSE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,18 +10,25 @@ php: | |
| date.timezone: Europe/Prague | ||
| # zlib.output_compression: yes | ||
|
|
||
| nette: | ||
| session: | ||
| autoStart: smart | ||
| expiration: "+ 3 days" | ||
| application: | ||
| mapping: | ||
| *: App\*Module\*Presenter | ||
| debugger: | ||
| email: [email protected] | ||
| strictMode: TRUE | ||
| maxDepth: 6 | ||
| maxLen: 500 | ||
| session: | ||
| autoStart: smart | ||
| expiration: "+ 3 days" | ||
|
|
||
|
|
||
|
|
||
| application: | ||
| mapping: | ||
| *: App\*Module\*Presenter | ||
| debugger: true | ||
|
|
||
| di: | ||
| debugger: true | ||
|
|
||
| tracy: | ||
| email: [email protected] | ||
| strictMode: true | ||
| maxDepth: 6 | ||
| maxLength: 500 | ||
|
|
||
| extensions: | ||
| skautis: Skautis\Nette\SkautisExtension | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,15 +3,17 @@ | |
| namespace Sinacek; | ||
|
|
||
| use Nette; | ||
| use Nette\Security\IIdentity; | ||
|
|
||
| /** | ||
| * používat pouze pro data ze skautISu, nikdy nenechávat aby uživatel zadal sám svoje ID! | ||
| * @author Hána František <[email protected]> | ||
| */ | ||
| class SkautisAuthenticator extends Nette\Object implements Nette\Security\IAuthenticator | ||
| class SkautisAuthenticator implements Nette\Security\IAuthenticator | ||
| { | ||
| use Nette\SmartObject; | ||
|
|
||
| public function authenticate(array $credentials) | ||
| public function authenticate(array $credentials): IIdentity | ||
| { | ||
| $data = $credentials[0]; | ||
| return new Nette\Security\Identity($data->ID_User); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,16 @@ | ||
| { | ||
| "name": "ws.skautis.cz", | ||
| "name": "skaut/ws.skautis.cz", | ||
| "type": "project", | ||
| "require": { | ||
| "php": ">= 5.6", | ||
| "nette/nette": "2.3.*", | ||
| "skautis/skautis": "2.*@dev", | ||
| "skautis/nette": "2.*@dev", | ||
| "janmarek/webloader": "2.5.*", | ||
| "php": ">= 7.2", | ||
| "nette/nette": "^3.0", | ||
| "skautis/skautis": "3.0.0-alpha", | ||
| "skautis/nette": "3.0.0-alpha", | ||
| "nextras/mail-panel": "^2.3", | ||
| "dibi/dibi": "3.0.*" | ||
| "dibi/dibi": "^3.0" | ||
| }, | ||
| "require-dev": { | ||
| "squizlabs/php_codesniffer": "^2.8", | ||
| "codeception/codeception": "^2.2", | ||
| "codeception/mockery-module": "^0.2.2" | ||
| "squizlabs/php_codesniffer": "^3.4" | ||
| }, | ||
| "minimum-stability": "RC" | ||
| "minimum-stability": "stable" | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proč nahrazovat webloader za include jednotlivých souborů? to je cesta zpět za mě
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Protože WebLoader mel posledni commit před několika lety a neni kompatibilni s Nette 3.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u hospodareni mame webpack nebo pak fmasa jeste doporucoval gulp