Skip to content

Commit 96cf39a

Browse files
committed
updated js assets location path
1 parent 47b4454 commit 96cf39a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Diff for: adding-profile-fields.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ This `@include` directive will load a new Blade template which contains our cust
7575
<a name="defining-the-javascript-component"></a>
7676
## Defining The JavaScript Component
7777

78-
Next, we will define the new `update-profile-details` Vue component which will manage our new panel and form. We can define this component at `/resources/assets/js/components/settings/profile/update-profile-details.js`:
78+
Next, we will define the new `update-profile-details` Vue component which will manage our new panel and form. We can define this component at `/resources/js/components/settings/profile/update-profile-details.js`:
7979

8080
Vue.component('update-profile-details', {
8181
props: ['user'],
@@ -104,7 +104,7 @@ Next, we will define the new `update-profile-details` Vue component which will m
104104

105105
Note that this component uses the `Spark.put` helper, which adds some convenient features on top of the `axios` library. The `Spark` HTTP helpers accept a form object and will automatically set the form's `busy` attribute to `true` when the form is submitted.
106106

107-
When you define a new Vue component, you also need to instruct Spark to compile the component into your main `app.js` file. You can do this by adding a line to your `/resources/assets/js/components/bootstrap.js` file:
107+
When you define a new Vue component, you also need to instruct Spark to compile the component into your main `app.js` file. You can do this by adding a line to your `/resources/js/components/bootstrap.js` file:
108108

109109
require('./home');
110110

Diff for: adding-registration-fields.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Remember, you're free to edit any of the views in `/resources/views/vendor/spark
3535
<a name="extending-the-javascript"></a>
3636
## Extending The JavaScript
3737

38-
Since extending the registration form is a common use case, Spark makes it easy to add a field to the JavaScript object that models the registration form. In your `/resources/assets/js/app.js` file, adding the following lines of code just before the call to `new Vue`:
38+
Since extending the registration form is a common use case, Spark makes it easy to add a field to the JavaScript object that models the registration form. In your `/resources/js/app.js` file, adding the following lines of code just before the call to `new Vue`:
3939

4040
Spark.forms.register = {
4141
age: ''

Diff for: client-customization.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ When you upgrade your application using `php artisan spark:update`, any views th
2121
<a name="adding-your-own-vue-components"></a>
2222
## Adding Your Own Vue Components
2323

24-
When you install Spark, a `resources/assets/js/components` directory is created to hold all of your own Vue components. To learn more about writing Vue components, be sure to check out the [Vue documentation](http://vuejs.org/guide/components.html). A sample `home` component is included with Spark and can serve as the main "dashboard" for your application. The corresponding view for this component is located at `resources/views/home.blade.php`.
24+
When you install Spark, a `resources/js/components` directory is created to hold all of your own Vue components. To learn more about writing Vue components, be sure to check out the [Vue documentation](http://vuejs.org/guide/components.html). A sample `home` component is included with Spark and can serve as the main "dashboard" for your application. The corresponding view for this component is located at `resources/views/home.blade.php`.
2525

2626
For an example of an application with custom Vue components, check out the Spark [demo application](/docs/7.0/quickstart#demo-application).
2727

28-
> **Note:** When you add additional components to your application, don't forget to `require` them in your `resources/assets/js/app.js` file.
28+
> **Note:** When you add additional components to your application, don't forget to `require` them in your `resources/js/app.js` file.
2929
3030
<a name="customizing-existing-vue-components"></a>
3131
## Customizing Existing Vue Components
3232

33-
When Spark is installed, a `resources/assets/js/spark-components` directory will be created which contains stubs for every Vue JavaScript component included with Spark. If you open one of these components, you will notice that each of them is an empty component definition except for the `base` mixin of the component which provides the Spark core functionality.
33+
When Spark is installed, a `resources/js/spark-components` directory will be created which contains stubs for every Vue JavaScript component included with Spark. If you open one of these components, you will notice that each of them is an empty component definition except for the `base` mixin of the component which provides the Spark core functionality.
3434

3535
Every component in this directory leverages Vue's [mixin](http://vuejs.org/guide/mixins.html) feature, meaning you can override any of the methods defined in the base Spark component.
3636

37-
For example, if you wish to override the `update-contact-information` component's `update` method, you would define the following method in the `resources/assets/js/spark-components/settings/profile/update-contact-information.js` file:
37+
For example, if you wish to override the `update-contact-information` component's `update` method, you would define the following method in the `resources/js/spark-components/settings/profile/update-contact-information.js` file:
3838

3939
var base = require('settings/profile/update-contact-information');
4040

@@ -57,13 +57,13 @@ Using Vue is required for the registration and settings views; however, you may
5757

5858
> **Note:** Vue is required for the following features: notifications, support requests, and automatic handling of [shared API back-ends](/docs/7.0/api#sharing-your-api).
5959
60-
To use something other than Vue, modify your `resources/views/home.blade.php` view to extend the `spark::layouts.blade.app` template. This layout does not contain any JavaScript framework initialization and the Vue application will not be attached to the page, leaving you free to build your JavaScript client however you wish in your `resources/assets/js/app.js` file. However, a few utility libraries such as Underscore, Moment, and jQuery are still loaded even when Vue is disabled for your application.
60+
To use something other than Vue, modify your `resources/views/home.blade.php` view to extend the `spark::layouts.blade.app` template. This layout does not contain any JavaScript framework initialization and the Vue application will not be attached to the page, leaving you free to build your JavaScript client however you wish in your `resources/js/app.js` file. However, a few utility libraries such as Underscore, Moment, and jQuery are still loaded even when Vue is disabled for your application.
6161

62-
Next, remove the following line from your `resources/assets/js/components/bootstrap.js` file:
62+
Next, remove the following line from your `resources/js/components/bootstrap.js` file:
6363

6464
require('./../spark-components/bootstrap');
6565

66-
Finally, you may remove the Vue app instantiation from the `resources/assets/js/app.js` file:
66+
Finally, you may remove the Vue app instantiation from the `resources/js/app.js` file:
6767

6868
var app = new Vue({
6969
mixins: [require('spark')]

0 commit comments

Comments
 (0)