Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ js_dist
/composer.phar
/data
/assets/vendor/
/app/public
1 change: 1 addition & 0 deletions app/config/packages/asset_mapper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ framework:
- '%kernel.project_dir%/../assets/'
importmap_path: '%kernel.project_dir%/../importmap.php'
missing_import_mode: strict
vendor_dir: '%kernel.project_dir%/../assets/vendor'

when@prod:
framework:
Expand Down
2 changes: 1 addition & 1 deletion htdocs/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ RewriteRule ^ask/forum/? https://event.afup.org [R=301,L]
RewriteRule ^ask/? / [R=301,L]

## This url are handled by symfony
RewriteRule (event|connect|_|association|talks|meetups|blog|admin|p|home|news|techno_watch|member|rss.xml)/? /index.php [END]
RewriteRule (event|connect|_|association|talks|meetups|blog|admin|p|home|news|techno_watch|member|rss.xml|dist)/? /index.php [END]
7 changes: 7 additions & 0 deletions importmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@
'path' => './assets/app.js',
'entrypoint' => true,
],
'semantic-ui/dist/semantic.min.css' => [
'version' => '2.5.0',
'type' => 'css'
],
'semantic-ui/dist/semantic.min.js' => [
'version' => '2.5.0'
],
];
4 changes: 2 additions & 2 deletions templates/admin/base_with_header.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Administration AFUP</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
<link rel="stylesheet" href="{{ asset('vendor/semantic-ui/dist/semantic.min.css') }}">
<link rel="icon" type="image/png" href="/templates/administration/images/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/templates/administration/images/favicon.svg" />
<link rel="shortcut icon" href="/templates/administration/images/favicon.ico" />
Expand Down Expand Up @@ -133,7 +133,7 @@

{% block javascript %}
<script src="https://code.jquery.com/jquery-3.1.1.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script src="{{ asset('vendor/semantic-ui/dist/semantic.min.js') }}"></script>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
Expand Down
Loading