This repository has been archived by the owner on May 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from fabnumdef/feature/site
Site : add user site.
- Loading branch information
Showing
28 changed files
with
1,008 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const ENTITY_PLURAL = 'campuses'; | ||
|
||
export default axios => ({ | ||
async getCampuses(mask, { search = null } = {}) { | ||
const response = await axios.get( | ||
`/${ENTITY_PLURAL}`, | ||
{ | ||
params: { mask, search }, | ||
}, | ||
); | ||
|
||
return response; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const ENTITY_PLURAL = 'forms'; | ||
|
||
export default axios => ({ | ||
async postFormContact(fields) { | ||
return axios.post( | ||
`/${ENTITY_PLURAL}/contact`, | ||
fields, | ||
); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<template> | ||
<footer> | ||
<div class="container"> | ||
<div class="columns"> | ||
<div class="column is-3 has-text-centered-mobile"> | ||
<img | ||
src="logo_ec_blue.svg" | ||
alt="E-chauffeur" | ||
> | ||
</div> | ||
<div class="column has-text-centered-mobile"> | ||
<img | ||
src="logo_dirisi.png" | ||
alt="DIRISI" | ||
> | ||
<img | ||
src="logo_ma.png" | ||
alt="Ministère des Armées" | ||
> | ||
<img | ||
src="start_up_etat.png" | ||
alt="Une Startup d'Etat" | ||
> | ||
<img | ||
src="logo_fab_num.png" | ||
alt="Fabrique Numérique" | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
@import "~assets/css/head"; | ||
.container { | ||
margin-top: 100px; | ||
padding-top: 50px; | ||
padding-bottom: 50px; | ||
border-top: 1px solid $grey-lighter; | ||
.columns { | ||
.column { | ||
&:last-child { | ||
text-align: right; | ||
img { | ||
vertical-align: middle; | ||
&:first-child { | ||
margin-right: 75px; | ||
} | ||
&:nth-child(3) { | ||
margin-right: 50px; | ||
} | ||
} | ||
} | ||
&:first-child { | ||
margin-top: auto; | ||
margin-bottom: auto; | ||
} | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,35 @@ | ||
<template> | ||
<div | ||
:class="{'is-horizontal': isHorizontal}" | ||
class="field" | ||
> | ||
<div | ||
<div class="field"> | ||
<label | ||
v-if="label" | ||
class="field-label is-normal" | ||
:for="id" | ||
class="label" | ||
> | ||
<label | ||
:for="fieldId" | ||
class="label" | ||
> | ||
{{ label }} | ||
</label> | ||
</div> | ||
<div class="field-body"> | ||
<div class="field"> | ||
<p class="control"> | ||
<float-label> | ||
<slot /> | ||
</float-label> | ||
</p> | ||
</div> | ||
{{ label }} | ||
</label> | ||
<div class="control"> | ||
<slot /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import floatLabel from 'vue-float-label/components/FloatLabel'; | ||
export default { | ||
components: { | ||
floatLabel, | ||
}, | ||
props: { | ||
isHorizontal: { | ||
type: Boolean, | ||
default: true, | ||
}, | ||
label: { | ||
type: String, | ||
default: null, | ||
}, | ||
fieldId: { | ||
id: { | ||
type: String, | ||
default: null, | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
@import "~assets/css/head"; | ||
.control { | ||
margin-top: 1.3em; | ||
} | ||
<style lang="scss" scoped> | ||
.label::first-letter { | ||
text-transform: capitalize; | ||
} | ||
</style> |
Oops, something went wrong.