Skip to content
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

[CoreBundle] Add option to link assets from current theme through controller #203

Merged

Conversation

ahilles107
Copy link
Contributor

(without knowing current organization or tenant codes)

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Changelog update required yes
Fixed tickets SWP-327
License AGPLv3

@ahilles107 ahilles107 force-pushed the SWP-327_theme_assets_heler_controller branch from 4a9624b to cf5da4a Compare December 19, 2016 13:10
@ahilles107 ahilles107 requested a review from takeit December 19, 2016 13:10
@codecov-io
Copy link

codecov-io commented Dec 19, 2016

Current coverage is 46.08% (diff: 100%)

Merging #203 into master will not change coverage

@@             master       #203   diff @@
==========================================
  Files           505        505          
  Lines         12698      12698          
  Methods        2348       2348          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           5852       5852          
  Misses         6846       6846          
  Partials          0          0          

Powered by Codecov. Last update 31a614c...cf5da4a

Copy link
Contributor

@takeit takeit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but tests are missing. I also suggested some small improvements in the docs.


.. code-block:: twig

/public/{fileName}.{fileExtension}
Copy link
Contributor

@takeit takeit Dec 19, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this example be /{fileName}.{fileExtension} according to its description?

use Symfony\Component\HttpFoundation\ResponseHeaderBag;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

class StaticThemeAssetsController extends Controller
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are missing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are added

Load Service Worker files (from domain root level)
``````````````````````````````````````````````````

If You want to use service worker or manifest file (it must be placed in root level) then you can use this url:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would link to service worker definition here

…troller (without knowing current organization or tenant codes)
@ahilles107 ahilles107 force-pushed the SWP-327_theme_assets_heler_controller branch from cf5da4a to 023c1b7 Compare December 20, 2016 09:25
@ahilles107 ahilles107 merged commit 3b6773d into superdesk:master Dec 20, 2016
@ahilles107 ahilles107 deleted the SWP-327_theme_assets_heler_controller branch May 23, 2019 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants