Split project data into it's own file

This commit is contained in:
Oliver Davies 2020-01-04 22:07:09 +00:00
parent 3b646faddd
commit c47fea47b0
2 changed files with 26 additions and 24 deletions

View file

@ -16,34 +16,13 @@
<style src="./assets/css/tailwind.css"></style>
<script>
import projects from './data/projects.json'
export default {
data () {
return {
title: 'Rebuilding Platform.sh',
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'
}
]
projects
}
}
}

23
src/data/projects.json Normal file
View 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"
}
]