Changed root alias from ~ to @ in the client
This commit is contained in:
@@ -23,88 +23,88 @@ export default {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.lds-roller {
|
.lds-roller {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
div {
|
div {
|
||||||
animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
||||||
transform-origin: 40px 40px;
|
transform-origin: 40px 40px;
|
||||||
&:after {
|
&:after {
|
||||||
content: "";
|
content: "";
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 7px;
|
width: 7px;
|
||||||
height: 7px;
|
height: 7px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: var(--primary);
|
background: var(--primary);
|
||||||
margin: -4px 0 0 -4px;
|
margin: -4px 0 0 -4px;
|
||||||
}
|
|
||||||
&:nth-child(1) {
|
|
||||||
animation-delay: -0.036s;
|
|
||||||
&:after {
|
|
||||||
top: 63px;
|
|
||||||
left: 63px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&:nth-child(2) {
|
|
||||||
animation-delay: -0.072s;
|
|
||||||
&:after {
|
|
||||||
top: 68px;
|
|
||||||
left: 56px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&:nth-child(3) {
|
|
||||||
animation-delay: -0.108s;
|
|
||||||
&:after {
|
|
||||||
top: 71px;
|
|
||||||
left: 48px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&:nth-child(4) {
|
|
||||||
animation-delay: -0.144s;
|
|
||||||
&:after {
|
|
||||||
top: 72px;
|
|
||||||
left: 40px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&:nth-child(5) {
|
|
||||||
animation-delay: -0.18s;
|
|
||||||
&:after {
|
|
||||||
top: 71px;
|
|
||||||
left: 32px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&:nth-child(6) {
|
|
||||||
animation-delay: -0.216s;
|
|
||||||
&:after {
|
|
||||||
top: 68px;
|
|
||||||
left: 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&:nth-child(7) {
|
|
||||||
animation-delay: -0.252s;
|
|
||||||
&:after {
|
|
||||||
top: 63px;
|
|
||||||
left: 17px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&:nth-child(8) {
|
|
||||||
animation-delay: -0.288s;
|
|
||||||
&:after {
|
|
||||||
top: 56px;
|
|
||||||
left: 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
&:nth-child(1) {
|
||||||
|
animation-delay: -0.036s;
|
||||||
|
&:after {
|
||||||
|
top: 63px;
|
||||||
|
left: 63px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(2) {
|
||||||
|
animation-delay: -0.072s;
|
||||||
|
&:after {
|
||||||
|
top: 68px;
|
||||||
|
left: 56px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(3) {
|
||||||
|
animation-delay: -0.108s;
|
||||||
|
&:after {
|
||||||
|
top: 71px;
|
||||||
|
left: 48px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(4) {
|
||||||
|
animation-delay: -0.144s;
|
||||||
|
&:after {
|
||||||
|
top: 72px;
|
||||||
|
left: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(5) {
|
||||||
|
animation-delay: -0.18s;
|
||||||
|
&:after {
|
||||||
|
top: 71px;
|
||||||
|
left: 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(6) {
|
||||||
|
animation-delay: -0.216s;
|
||||||
|
&:after {
|
||||||
|
top: 68px;
|
||||||
|
left: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(7) {
|
||||||
|
animation-delay: -0.252s;
|
||||||
|
&:after {
|
||||||
|
top: 63px;
|
||||||
|
left: 17px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(8) {
|
||||||
|
animation-delay: -0.288s;
|
||||||
|
&:after {
|
||||||
|
top: 56px;
|
||||||
|
left: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes lds-roller {
|
@keyframes lds-roller {
|
||||||
0% {
|
0% {
|
||||||
transform: rotate(0deg);
|
transform: rotate(0deg);
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
transform: rotate(360deg);
|
transform: rotate(360deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -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')
|
||||||
|
|||||||
@@ -69,7 +69,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')
|
||||||
|
|||||||
@@ -42,11 +42,11 @@
|
|||||||
placement="bottom"
|
placement="bottom"
|
||||||
title="Description copiée !"
|
title="Description copiée !"
|
||||||
class="small text-muted mt-2">
|
class="small text-muted mt-2">
|
||||||
<span style="white-space: pre-wrap;">{{spell.description}}</span>
|
<span class="prewrap">{{spell.description}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<div class="font-weight-bold d-inline-block"><span>Coût </span>{{spell.cost}}</div>
|
<div class="font-weight-bold d-inline-block"><span>Coût : </span>{{spell.cost}}</div>
|
||||||
<div v-if="spell.variables.length>0" class="small d-inline-block">, où :</div>
|
<div v-if="spell.variables.length>0" class="small d-inline-block">, où :</div>
|
||||||
<div class=small>
|
<div class=small>
|
||||||
<span v-for="(variable,index) in spell.variables" :key="index">
|
<span v-for="(variable,index) in spell.variables" :key="index">
|
||||||
@@ -72,7 +72,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 {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// API
|
// API
|
||||||
import { RepositoryFactory } from "~/api/repositories";
|
import { RepositoryFactory } from "@/api/repositories";
|
||||||
const Schools = RepositoryFactory.get('schools');
|
const Schools = RepositoryFactory.get('schools');
|
||||||
|
|
||||||
import SpellsList from "~/components/spells/spells-list";
|
import SpellsList from "~/components/spells/spells-list";
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container-fluid p-4" id="spell-container">
|
<div class="container-fluid p-4" id="spell-container">
|
||||||
<h1 class="display-3 font-display mb-3">{{ spell.name }}</h1>
|
<h1 class="display-3 font-display mb-3">{{ spell.name }}</h1>
|
||||||
<p>{{ spell.description }}</p> </div>
|
<p class="prewrap">{{ spell.description }}</p> </div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<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 {
|
||||||
name: 'single-spell-page',
|
name: 'single-spell-page',
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
return {
|
return {
|
||||||
titleTemplate: `%s - ${this.spell.name}`,
|
titleTemplate: this.spell.name ? `%s - ${this.spell.name}` : '%s',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import SpellsList from "~/components/spells/spells-list"
|
import SpellsList from "@/components/spells/spells-list.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'spells-page',
|
name: 'spells-page',
|
||||||
|
|||||||
@@ -3,19 +3,19 @@ import VueRouter from 'vue-router'
|
|||||||
import store from './store'
|
import store from './store'
|
||||||
|
|
||||||
// Pages
|
// Pages
|
||||||
import Index from "~/pages/index-page"
|
import Index from "@/pages/index-page"
|
||||||
|
|
||||||
import Spells from "~/pages/spells/spells-page"
|
import Spells from "@/pages/spells/spells-page"
|
||||||
import SpellSingle from "~/pages/spells/single-spell-page"
|
import SpellSingle from "@/pages/spells/single-spell-page"
|
||||||
|
|
||||||
import Schools from "./pages/schools/schools-page"
|
import Schools from "./pages/schools/schools-page"
|
||||||
import SchoolSingle from "~/pages/schools/single-school-page"
|
import SchoolSingle from "@/pages/schools/single-school-page"
|
||||||
|
|
||||||
import Timeline from "./pages/timelines/timeline-page"
|
import Timeline from "./pages/timelines/timeline-page"
|
||||||
|
|
||||||
import Profile from "~/pages/user/profile-page"
|
import Profile from "@/pages/user/profile-page"
|
||||||
import Login from "~/pages/user/login-page"
|
import Login from "@/pages/user/login-page"
|
||||||
import Register from "~/pages/user/register-page"
|
import Register from "@/pages/user/register-page"
|
||||||
|
|
||||||
// Routes
|
// Routes
|
||||||
const routes = [
|
const routes = [
|
||||||
|
|||||||
Reference in New Issue
Block a user