Skip to content

Commit b0f5db5

Browse files
Update assets/
1 parent cfeb771 commit b0f5db5

Some content is hidden

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

67 files changed

+1825
-2102
lines changed

assets/js/admin.js renamed to assets/admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '../scss/admin.scss';
1+
import './styles/admin.scss';
22
import 'eonasdan-bootstrap-datetimepicker';
33
import 'typeahead.js';
44
import Bloodhound from "bloodhound-js";
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '../scss/app.scss';
1+
import './styles/app.scss';
22

33
// loads the Bootstrap jQuery plugins
44
import 'bootstrap-sass/assets/javascripts/bootstrap/transition.js';
@@ -9,7 +9,10 @@ import 'bootstrap-sass/assets/javascripts/bootstrap/modal.js';
99
import 'jquery'
1010

1111
// loads the code syntax highlighting library
12-
import './highlight.js';
12+
import './js/highlight.js';
1313

1414
// Creates links to the Symfony documentation
15-
import './doclinks.js';
15+
import './js/doclinks.js';
16+
17+
// start the Stimulus application
18+
import './bootstrap';

assets/bootstrap.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { startStimulusApp } from '@symfony/stimulus-bridge';
2+
3+
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
4+
export const app = startStimulusApp(require.context(
5+
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
6+
true,
7+
/\.(j|t)sx?$/
8+
));
9+
10+
// register any custom, 3rd party controllers here
11+
// app.register('some_controller_name', SomeImportedController);

assets/controllers.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"controllers": [],
3+
"entrypoints": []
4+
}

assets/controllers/.gitignore

Whitespace-only changes.
File renamed without changes.

assets/js/search.js renamed to assets/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import './jquery.instantSearch.js';
1+
import './js/jquery.instantSearch.js';
22

33
$(function() {
44
$('.search-field')
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)