Skip to content

Commit

Permalink
Merge pull request #27 from kingscode/update-scaffold
Browse files Browse the repository at this point in the history
update scaffold with our latest standards
  • Loading branch information
ricardovanlaarhoven authored Oct 23, 2020
2 parents 11c04ed + 43b0f3c commit 51f53ca
Show file tree
Hide file tree
Showing 78 changed files with 1,717 additions and 1,039 deletions.
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ vue add kingscode-scaffold
npm run serve
```

Mind that some of the choices you make in the `vue create my-app` and
later in the `vue add vuetify` will be overwritten by vuetify or the kings code scaffold.
Mind that some choices you make in the `vue create my-app` and
later in the `vue add vuetify` will be overwritten by vuetify, or the kings code scaffold.


## Configuration

```
Notice: it does not matter which choice you make with options that are not documented.
```
> Notice: it does not matter which choice you make with options that are not documented.

### Vue:
We'd recommend you to choose
Expand All @@ -36,12 +35,7 @@ And then:
The rest doesn't matter.

### Vuetify
Configure:
- Pre made templates will be overwritten, so keep it default
- Custom properties
- Font awesome 5 (this will be overwritten with font awesome pro)
- Use a-la-carte components
- Locale will be overwritten to dutch as default
Choose recommended

### Kingscode scaffold
This is our own scaffold, which you can use with our laravel API you can answer the questions
Expand Down
25 changes: 13 additions & 12 deletions generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ module.exports = (api, options) => {
api.extendPackage({
dependencies: {
'axios': '^0.19.2',
'dayjs': '^1.8.19',
'vuex': '^3.1.2',
'dayjs': '^1.8.34',
'vuex': '^3.4.0',
'vuex-persistedstate': '^2.5.4',
'lodash.clonedeep': '^4.5.0',
'css-vars-ponyfill': '^2.1.2',
'qs': '^6.9.4',
'vue-router': '3.3.4',
'vue-i18n': '^8.21.0',

},
});
if (options.plugins.includes('fontawesomepro')) {
Expand All @@ -28,15 +29,6 @@ module.exports = (api, options) => {
});
}

if (options.useCrud) {
api.extendPackage({
dependencies: {
'@kingscode/vuetify-resource': '^2.0.3',
},
});
api.render('./templates/Crud', options);
}

if (options.useGithubDeployments) {
api.render('./templates/Deployment', options);
}
Expand All @@ -51,6 +43,15 @@ module.exports = (api, options) => {
api.render('./templates/Authorisation', options);
}

if (options.useCrud) {
api.extendPackage({
dependencies: {
'@kingscode/vuetify-resource': '^2.0.3',
},
});
api.render('./templates/Crud', options);
}

if (options.plugins.includes('sentry')) {
api.extendPackage({
dependencies: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { post } from '../../implementation/app';

export default function (email, password) {
return post('auth/login', {
email: email,
password: password,
email,
password,
});
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { post } from '@/api/implementation/app';

export default function (email) {
return post('password/forgotten', {
email,
});
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { post } from '@/api/implementation/app';

export default async function (email, token, password, passwordConfirmation) {
return post('password/reset', {
email,
token,
password,
passwordConfirmation,
});
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import { post } from '../../implementation/app';

function register(email, name) {
return post('registration', {
function verify(token, email, password, passwordConfirmation) {
return post('registration/verify', {
token,
email,
name,
password,
passwordConfirmation,
});
}

function verify(token, email, password, passwordConfirmation) {
return post('registration/verify', {
token: token,
email: email,
password: password,
password_confirmation: passwordConfirmation,
function acceptInvitation(email, token, password, passwordConfirmation) {
return post('invitation/accept', {
email,
password,
passwordConfirmation,
token,
});
}

export {
register,
verify,
acceptInvitation,
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { post } from '../../implementation/app';

export default async function (email, token, password, passwordConfirmation) {
return post('registration', {
email: email,
token: token,
password: password,
password_confirmation: passwordConfirmation,
email,
token,
password,
passwordConfirmation,
});
}
41 changes: 0 additions & 41 deletions generator/templates/Authorisation/src/api/endpoints/user.js

This file was deleted.

This file was deleted.

Loading

0 comments on commit 51f53ca

Please sign in to comment.