- Moved api folder and added alias to avoid ../../../ memes, also deleted useless files
This commit is contained in:
@@ -73,7 +73,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// API
|
// API
|
||||||
import { RepositoryFactory } from "../../../api/repositories"
|
import { RepositoryFactory } from "~/api/repositories"
|
||||||
|
|
||||||
const Spells = RepositoryFactory.get('spells')
|
const Spells = RepositoryFactory.get('spells')
|
||||||
const Schools = RepositoryFactory.get('schools')
|
const Schools = RepositoryFactory.get('schools')
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// API
|
// API
|
||||||
import { RepositoryFactory } from "../../../api/repositories"
|
import { RepositoryFactory } from "~/api/repositories"
|
||||||
const Spells = RepositoryFactory.get('spells')
|
const Spells = RepositoryFactory.get('spells')
|
||||||
const Schools = RepositoryFactory.get('schools')
|
const Schools = RepositoryFactory.get('schools')
|
||||||
const Variables = RepositoryFactory.get('variables')
|
const Variables = RepositoryFactory.get('variables')
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// API
|
// API
|
||||||
import { RepositoryFactory } from "../../../api/repositories"
|
import { RepositoryFactory } from "~/api/repositories"
|
||||||
const Spells = RepositoryFactory.get('spells')
|
const Spells = RepositoryFactory.get('spells')
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import EditSpellCard from "./edit-spell-card"
|
|||||||
import AddSpellCard from "./add-spell-card"
|
import AddSpellCard from "./add-spell-card"
|
||||||
|
|
||||||
// API
|
// API
|
||||||
import { RepositoryFactory } from "../../../api/repositories"
|
import { RepositoryFactory } from "~/api/repositories"
|
||||||
const Spells = RepositoryFactory.get('spells')
|
const Spells = RepositoryFactory.get('spells')
|
||||||
const Schools = RepositoryFactory.get('schools')
|
const Schools = RepositoryFactory.get('schools')
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import SpellsList from "../../components/spells/spells-list"
|
import SpellsList from "~/components/spells/spells-list"
|
||||||
|
|
||||||
// API
|
// API
|
||||||
import { RepositoryFactory } from "../../../api/repositories"
|
import { RepositoryFactory } from "~/api/repositories"
|
||||||
const Schools = RepositoryFactory.get('schools')
|
const Schools = RepositoryFactory.get('schools')
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
const path = require('path')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
configureWebpack: {
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
"~": path.resolve(__dirname, 'src/')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
USE spellsaurus;
|
|
||||||
|
|
||||||
/* Fetches a specific spell's school(s) */
|
|
||||||
SELECT school.name
|
|
||||||
FROM spells_schools AS sc
|
|
||||||
INNER JOIN school AS school ON sc.id_school = school.id
|
|
||||||
WHERE sc.id_spell = 1;
|
|
||||||
Reference in New Issue
Block a user