Skip to content

Commit

Permalink
updated to use minified css, js, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
FraserChapman committed Aug 22, 2024
1 parent b939519 commit 62f7b6c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 79 deletions.
2 changes: 1 addition & 1 deletion assets/geojson/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"gs100": {
"type": "geojson",
"data": "assets/geojson/gs100.geojson",
"data": "assets/geojson/gs100.min.geojson",
"tolerance": 3,
"buffer": 0
}
Expand Down
65 changes: 0 additions & 65 deletions assets/js/os-api-branding.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/js/os-api-branding.min.js

This file was deleted.

14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
]
},
"scripts": {
"build": "php minify.php",
"xc": "rm -rf tmp/*",
"lint": "php -l controllers"
"clean": "rm -rf tmp/*",
"lint": "php -l controllers",
"serve": "php -S localhost:8080"
},
"authors": [
{
"name": "Your Name",
"email": "your-email@example.com"
"name": "Fraser Chapman",
"email": "gritstone100@gmail.co.uk"
}
],
"homepage": "http://example.com",
"homepage": "https://gritstone100.co.uk/",
"keywords": [
"fatfree",
"framework",
"your-package"
"gritstone100"
]
}
4 changes: 2 additions & 2 deletions templates/content/map.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@
</div>
</section>

<script src="/assets/js/elevation-chart.js"></script>
<script src="/assets/js/map.js"></script>
<script src="/assets/js/elevation-chart.min.js"></script>
<script src="/assets/js/map.min.js"></script>
2 changes: 1 addition & 1 deletion templates/partial/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link
href="https://fonts.googleapis.com/css?family=Lato%3A300%2C300italic%2C400%2C400italic%2C700%2C700italic&amp;display=swap"
rel="stylesheet">
<link rel="stylesheet" href="/assets/css/styles.css">
<link rel="stylesheet" href="/assets/css/styles.min.css">
<include if="{{ @@head }}" href="{{ @head }}" />
</head>

Expand Down
4 changes: 2 additions & 2 deletions templates/partial/map-head.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="stylesheet" href="https://labs.os.uk/public/os-api-branding/v0.3.0/os-api-branding.css" />
<link rel="stylesheet" href="/assets/css/os-api-branding.min.css" />
<link rel="stylesheet" href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.13.1/mapbox-gl.css" />
<link rel="stylesheet" href="/assets/css/map.css" />
<link rel="stylesheet" href="/assets/css/map.min.css" />
<script src="https://labs.os.uk/public/os-api-branding/v0.2.0/os-api-branding.js"
data-suffix="Map data &copy; {{ @APP_NAME }} {{ date('Y') }}"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v1.13.1/mapbox-gl.js"></script>
Expand Down

0 comments on commit 62f7b6c

Please sign in to comment.