Skip to content

Commit 2cddab6

Browse files
committed
remove old api-overview urls
1 parent f001530 commit 2cddab6

File tree

3 files changed

+7
-34
lines changed

3 files changed

+7
-34
lines changed

docs/common-patterns.md

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -174,42 +174,15 @@ in the above example of component code, the `upcomingAppointments` and `pastAppo
174174

175175
## Organizing the services in your project
176176

177-
You can use the file system to organize each service into its own module. This is especially useful in organizing larger-sized projects. Here's an example `store.js`. It uses Webpack's require.context feature save repetitive imports:
177+
You can use the file system to organize each service into its own module. This is especially useful in organizing larger-sized projects. Here's an example `store.js`. It uses Webpack's require.context feature save repetitive imports.
178178

179-
```js
180-
import Vue from 'vue'
181-
import Vuex from 'vuex'
182-
import { FeathersVuex } from '../feathers-client'
183-
import auth from './store.auth'
184-
185-
Vue.use(Vuex)
186-
Vue.use(FeathersVuex)
187-
188-
const requireModule = require.context(
189-
// The path where the service modules live
190-
'./services',
191-
// Whether to look in subfolders
192-
false,
193-
// Only include .js files (prevents duplicate imports`)
194-
/.js$/
195-
)
196-
const servicePlugins = requireModule
197-
.keys()
198-
.map(modulePath => requireModule(modulePath).default)
199-
200-
export default new Vuex.Store({
201-
state: {},
202-
mutations: {},
203-
actions: {},
204-
plugins: [...servicePlugins, auth]
205-
})
206-
```
179+
See it [here](/getting-started.html#auth-plugin)
207180

208181
With the `store.js` file in place, we can start adding services to the `services` folder.
209182

210-
- [Learn how to setup a Vuex plugin for a Feathers service.](/api-overview.html#service-plugins)
211-
- [Learn how to setup the feathers-client.js file](/api-overview.html)
212-
- [Learn how to setup the auth plugin](/api-overview.html#auth-plugin)
183+
- [Learn how to setup the feathers-client.js file](/getting-started.html#feathers-client-feathers-vuex)
184+
- [Learn how to setup a Vuex plugin for a Feathers service](/getting-started.html#service-plugins)
185+
- [Learn how to setup the auth plugin](/getting-started.html#auth-plugin)
213186

214187
## Actions return reactive store records
215188

docs/model-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Feathers-Vuex 1.0 introduced some lightweight data modeling. Every service had
1010

1111
## Extending the BaseModel Class
1212

13-
While [setting up Feathers-Vuex](/api-overview.html#feathers-client-feathers-vuex), we exported the `BaseModel` class so that we could extend it. The below example shows how to import and extend the `BaseModel`. Each service must now have its own unique Model class.
13+
While [setting up Feathers-Vuex](/getting-started.html#feathers-client-feathers-vuex), we exported the `BaseModel` class so that we could extend it. The below example shows how to import and extend the `BaseModel`. Each service must now have its own unique Model class.
1414

1515
```js
1616
import feathersClient, { makeServicePlugin, BaseModel } from '../feathers-client'

docs/nuxt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The `models` and `$FeathersVuex` variables are the same object.
1616

1717
## Preventing Memory Leaks
1818

19-
The default settings of Feathers-Vuex include having realtime events enabled by default. This will result in increased memory usage over time on the SSR server. It can be turned off when you configure `feathers-vuex`. The example below has been modified from the example of [Setting up the Feathers Client & Feathers-Vuex](./api-overview.md#feathers-client-feathers-vuex). Look specifically at the `enableEvents` option.
19+
The default settings of Feathers-Vuex include having realtime events enabled by default. This will result in increased memory usage over time on the SSR server. It can be turned off when you configure `feathers-vuex`. The example below has been modified from the example of [Setting up the Feathers Client & Feathers-Vuex](./getting-started.html#feathers-client-feathers-vuex). Look specifically at the `enableEvents` option.
2020

2121
```js
2222
const { makeServicePlugin, makeAuthPlugin, BaseModel, models, FeathersVuex } = feathersVuex(

0 commit comments

Comments
 (0)