50_make_frontend_part_independent #2

Closed
kadet wants to merge 78 commits from 50_make_frontend_part_independent into master
16 changed files with 1332 additions and 18 deletions
Showing only changes of commit 749fd773b6 - Show all commits

View File

@ -1,5 +1,5 @@
{ {
"name": "kadet/czydojade", "name": "kadet/cojedzie",
"type": "project", "type": "project",
"license": "MIT", "license": "MIT",
"require": { "require": {

View File

@ -1,7 +1,7 @@
nelmio_api_doc: nelmio_api_doc:
documentation: documentation:
info: info:
title: Czy Dojadę? title: Co Jedzie?
version: 0.1.0 version: 0.1.0
parameters: parameters:
provider: provider:

View File

@ -1,5 +1,5 @@
{ {
"name": "czydojade", "name": "co-jedzie",
"version": "1.0.0", "version": "1.0.0",
"author": "Kacper Donat <kadet1090@gmail.com>", "author": "Kacper Donat <kadet1090@gmail.com>",
"license": "MIT", "license": "MIT",

View File

@ -1,6 +1,6 @@
{ {
"name": "Czy Dojadę?", "name": "Co Jedzie?",
"short_name": "Czy Dojadę?", "short_name": "Co Jedzie?",
"orientation": "portrait", "orientation": "portrait",
"lang": "pl_PL", "lang": "pl_PL",
"start_url": ".", "start_url": ".",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

1313
resources/images/logo-cojedzie.ai Executable file

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

BIN
resources/images/logo-superhi.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.7 KiB

BIN
resources/images/logo.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -47,15 +47,15 @@ Component.registerHooks(['removed']);
] as const); ] as const);
// here goes "public" API // here goes "public" API
window['czydojade'] = Object.assign({ window['app'] = Object.assign({
state: {} state: {}
}, window['czydojade'], { }, window['app'], {
components, components,
application: new components.Application({ el: '#app' }) application: new components.Application({ el: '#app' })
}); });
store.dispatch('messages/update'); store.dispatch('messages/update');
store.dispatch('load', window['czydojade'].state); store.dispatch('load', window['app'].state);
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
const wb = new Workbox("/service-worker.js"); const wb = new Workbox("/service-worker.js");

View File

@ -1,6 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<rulset name="Kadet.CzyDojade"> <rulset name="CoJedzie">
<description>Czy Dojadę ruleset</description> <description>Co Jedzie ruleset</description>
<arg name="colors"/> <arg name="colors"/>
<arg name="parallel" value="75"/> <arg name="parallel" value="75"/>

View File

@ -183,7 +183,7 @@
provider: {{ provider.identifier|json_encode|raw }} provider: {{ provider.identifier|json_encode|raw }}
}; };
window.czydojade = {}; window.app = {};
window.czydojade.state = {{ state|json_encode|raw }}; window.app.state = {{ state|json_encode|raw }};
</script> </script>
{% endblock %} {% endblock %}

View File

@ -15,10 +15,10 @@
<link rel="apple-touch-icon" href="images/ios.png" sizes="512x512"> <link rel="apple-touch-icon" href="images/ios.png" sizes="512x512">
<link rel="apple-touch-icon" href="images/ios-80.png" sizes="80x80"> <link rel="apple-touch-icon" href="images/ios-80.png" sizes="80x80">
<link rel="apple-touch-icon" href="images/ios-192.png" sizes="192x192"> <link rel="apple-touch-icon" href="images/ios-192.png" sizes="192x192">
<meta name="apple-mobile-web-app-title" content="Czy Dojadę?"> <meta name="apple-mobile-web-app-title" content="Co Jedzie?">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<title>{% block title %}Czy dojadę?{% endblock %}</title> <title>{% block title %}Co Jedzie?{% endblock %}</title>
{% if ga_tracking %} {% if ga_tracking %}
<!-- Global site tag (gtag.js) - Google Analytics --> <!-- Global site tag (gtag.js) - Google Analytics -->
@ -39,7 +39,7 @@
<footer class="container"> <footer class="container">
{% block footer %} {% block footer %}
<span> <span>
<img src="{{ asset('images/logo.png') }}" alt="czydojade logo"/> <img src="{{ asset('images/logo.png') }}" alt="co jedzie logo"/>
v. {{ version() }} &bullet; v. {{ version() }} &bullet;
<a href="{{ url('app.swagger_ui') }}">API</a> <a href="{{ url('app.swagger_ui') }}">API</a>
</span> </span>

View File

@ -1,6 +1,6 @@
{ {
"name": "Czy Dojadę? - {{ provider.shortName }}", "name": "Co Jedzie? - {{ provider.shortName }}",
"short_name": "Czy Dojadę? - {{ provider.shortName }}", "short_name": "Co Jedzie? - {{ provider.shortName }}",
"orientation": "portrait", "orientation": "portrait",
"lang": "pl_PL", "lang": "pl_PL",
"start_url": "{{ path('app', { provider: provider.identifier }) }}", "start_url": "{{ path('app', { provider: provider.identifier }) }}",