Split project data into it's own file
This commit is contained in:
parent
3b646faddd
commit
c47fea47b0
27
src/App.vue
27
src/App.vue
|
@ -16,34 +16,13 @@
|
||||||
<style src="./assets/css/tailwind.css"></style>
|
<style src="./assets/css/tailwind.css"></style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import projects from './data/projects.json'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
title: 'Rebuilding Platform.sh',
|
title: 'Rebuilding Platform.sh',
|
||||||
|
projects
|
||||||
projects: [
|
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
name: 'Inviqa',
|
|
||||||
owner: 'inviqa',
|
|
||||||
region: 'Europe (West 1)',
|
|
||||||
image: 'inviqa.jpeg'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 2,
|
|
||||||
name: 'oliverdavies.uk',
|
|
||||||
owner: 'Oliver Davies',
|
|
||||||
region: 'Europe (West 1)',
|
|
||||||
image: 'oliver-davies.png'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
name: 'PHP South Wales',
|
|
||||||
owner: 'PHP South Wales organisers',
|
|
||||||
region: 'Europe (West 1)',
|
|
||||||
image: 'php-south-wales.png'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
23
src/data/projects.json
Normal file
23
src/data/projects.json
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "1",
|
||||||
|
"name": "Inviqa",
|
||||||
|
"owner": "inviqa",
|
||||||
|
"region": "Europe (West 1)",
|
||||||
|
"image": "inviqa.jpeg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "2",
|
||||||
|
"name": "oliverdavies.uk",
|
||||||
|
"owner": "Oliver Davies",
|
||||||
|
"region": "Europe (West 1)",
|
||||||
|
"image": "oliver-davies.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "3",
|
||||||
|
"name": "PHP South Wales",
|
||||||
|
"owner": "PHP South Wales organisers",
|
||||||
|
"region": "Europe (West 1)",
|
||||||
|
"image": "php-south-wales.png"
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in a new issue