-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
monsieurbiz/sylius-master-theme-plugin/1.0/assets/bootstrap.js
This file contains 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,2 @@ | ||
// register any custom, 3rd party controllers here | ||
// app.register('some_controller_name', SomeImportedController); |
4 changes: 4 additions & 0 deletions
4
monsieurbiz/sylius-master-theme-plugin/1.0/assets/controllers.json
This file contains 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,4 @@ | ||
{ | ||
"controllers": [], | ||
"entrypoints": [] | ||
} |
16 changes: 16 additions & 0 deletions
16
monsieurbiz/sylius-master-theme-plugin/1.0/assets/controllers/hello_controller.js
This file contains 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,16 @@ | ||
import { Controller } from '@hotwired/stimulus'; | ||
|
||
/* | ||
* This is an example Stimulus controller! | ||
* | ||
* Any element with a data-controller="hello" attribute will cause | ||
* this controller to be executed. The name "hello" comes from the filename: | ||
* hello_controller.js -> "hello" | ||
* | ||
* Delete this file or adapt it for your use! | ||
*/ | ||
export default class extends Controller { | ||
connect() { | ||
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js'; | ||
} | ||
} |
This file contains 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,16 @@ | ||
{ | ||
"bundles": { | ||
"MonsieurBiz\\SyliusMasterThemePlugin\\MonsieurBizSyliusMasterThemePlugin": ["all"] | ||
}, | ||
"copy-from-recipe": { | ||
"assets/": "assets/" | ||
}, | ||
"add-lines": [ | ||
{ | ||
"file": "composer.json", | ||
"content": "\n \"vendor/monsieurbiz/sylius-master-theme-plugin/scripts/replace_intl_extension.php\": \"php-script\",\n", | ||
"position": "after_target", | ||
"target": "\"auto-scripts\": {" | ||
} | ||
] | ||
} |