Skip to content

Commit 7d12fe1

Browse files
authored
fix: some things preventing from the template to run as is (#312)
1 parent d4c2421 commit 7d12fe1

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/generators/VueGenerator.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default class extends BaseGenerator {
4444

4545
// utils
4646
"utils/fetch.js",
47+
"utils/hydra.js",
4748
]);
4849
}
4950

@@ -174,5 +175,11 @@ export const store = new Vuex.Store({
174175
{ hydraPrefix: this.hydraPrefix },
175176
false
176177
);
178+
this.createFile(
179+
"utils/hydra.js",
180+
`${dir}/utils/hydra.js`,
181+
{ hydraPrefix: this.hydraPrefix },
182+
false
183+
);
177184
}
178185
}

templates/vue/components/foo/Form.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343
<script>
4444
import { find, get, isUndefined } from 'lodash';
45-
import { mapFields } from 'vuex-map-fields';
4645
import { mapActions } from 'vuex';
4746
4847
export default {

templates/vue/utils/fetch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { isArray, isObject, isUndefined, forEach } from 'lodash';
22
import { ENTRYPOINT } from '../config/entrypoint';
33
import SubmissionError from '../error/SubmissionError';
4+
import { normalize } from './hydra';
45

56
const MIME_TYPE = 'application/ld+json';
67

0 commit comments

Comments
 (0)