jonnybarnes.uk/app/Http/Controllers/NotesController.php

374 lines
12 KiB
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
<?php
namespace App\Http\Controllers;
2016-12-07 16:55:53 +00:00
use Twitter;
use HTMLPurifier;
2017-03-18 21:18:36 +00:00
use App\{Note, Tag};
use GuzzleHttp\Client;
use HTMLPurifier_Config;
Squashed commit of the following: commit 19ec350ca9c3a2ec9da6ee3823f3b0a09efe3eaa Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:07:42 2016 +0000 Update changelog commit 73428d3d94c659e5e4431b6740ba10dc2a609e44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:03:37 2016 +0000 output of gulp compress commit 4bb8038e787e35b5d38be9d63600b10bb9d75a07 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:03:11 2016 +0000 import Guzzle’s ClientException namespace commit 4bcb676bb95274da2422023fefa88b8d246b7f97 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:02:24 2016 +0000 Update manual testing token commit d902de76f00b4f3bba94ce6528f87e43f6c113f9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:01:52 2016 +0000 output of gulp js-assets commit 0a495956e4f540aae0d1515229dd29c30c76fd64 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:01:27 2016 +0000 Update new note page to use Mapbox GL JS commit bf22004256179c9487c668eb77785a9bc90227bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Nov 21 18:47:59 2016 +0000 output of gulp js-assets commit 22ed61cb853d98a4638754d44f042841e2b4495c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Nov 21 18:47:06 2016 +0000 Attempting to use mapbox gl on the newnote page commit 47fd891f1b3f0da59d10e937f7ed11f3b603c4af Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:21:53 2016 +0000 gulp derived assets commit 19e83f33b1c8c7a90a74d0ad17a6cace8761bcef Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:21:16 2016 +0000 Move .map styles into mapbox.scss commit 3d848d59126032671907a1e354cf121441d9a6e3 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:51 2016 +0000 gulp derived assets commit 9e51e8690ac8b782bc56663e7ec682837b27d4a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:32 2016 +0000 Link to mapbox-gl files commit 296b5fd7770f2a1c5c26ed4efedd99a7a0ad0bed Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:08 2016 +0000 Use mapbox gl to add maps to notes commit bd031df6e969b7af741730acabe41465f68bd3a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:11:27 2016 +0000 Update sass to style mapbox gl maps commit a7cd5e6eaa9510b5c9de672b6d5ed6917dabd7c6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:19:45 2016 +0000 output of gulp compress commit fe63c7ed394d62cd0e47a9ef718d9629d8643e71 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:18:47 2016 +0000 output of gulp sass commit 15ac4012681635753a4b1f52d81f7f9e24830eb4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:18:05 2016 +0000 Add a dividing line between notes and bio on the homepage commit 5ada66b1a01ae57359145eb757cab65769400f1e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:12:01 2016 +0000 output of gulp sass commit 86adf97c3831c3310683a25c2671c7560700de1a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:11:33 2016 +0000 Resize note metadata for spacial flow commit 3f3fc51ea8df8206d5b13512295ac09827bb2ede Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:37:21 2016 +0000 output of gulp sass commit df6f7f827641dc4deca621d099357757f760ece4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:36:51 2016 +0000 Use system UI fonts commit b71950275ddaf274b26195694a07c1b58f746725 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:31:30 2016 +0000 output of gulp compress commit 5ff5d73a803b9bcc4e2f314946c1d757dcabae67 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:30:12 2016 +0000 output of gulp js-assets commit d8ff563569223bddc836ab9f8fc7c43970273b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:29:27 2016 +0000 use containing divs in new place section of form commit 3cbf3083612210cdd7609c930737cf7a698ec024 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 14:39:27 2016 +0000 gulp sass output commit 239b742a355a397f5b84377b26b2d7a4254bd50e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 14:38:52 2016 +0000 Better spacing of form elements on mobile commit a20279e3f4216b87ff59ed4e507b6de9e212db9f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 13:41:31 2016 +0000 Derived assets commit 86ebd05472498814084e86fb0c2d674633f00096 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 13:40:42 2016 +0000 Use containing divs for flex layout commit 00e0e6f3f462ca575e92209a86ada67b7f5ff757 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 14:38:39 2016 +0000 Correct scss according to stylelint commit 6dd8ff4d13c3ab83c6a811501b817c45b89338ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 14:33:46 2016 +0000 Get stylelint working commit 9b9a64defd9335014b46070e2b92a392929f4aa5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 09:48:28 2016 +0000 Add missing new-line to match style commit 2521446f32420047d6d5f7372f4f7afc17200a1c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:16:45 2016 +0000 Add logging during an error, improve the error message commit 095507bec225992aac510a2ca852f65c197f0298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:15:59 2016 +0000 Update test token commit 374ef70fecaedf041f12a57688ed9596e25a2ce6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:15:16 2016 +0000 Remove typekit for now commit f5671ad435732ddb3288a2e02de7631a6acb4183 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 16:06:01 2016 +0000 Better designed new note form commit f38df507b85502e733fa38e970cd584f7d79bca1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 13:28:21 2016 +0000 More styling, use normal pagination, improve bio commit 077076d4f92014d488bca5d4dbbab5af913e6cf0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 00:05:56 2016 +0000 Use an anchor for permalinks, re-word projects page commit 37c6e862b693c2bfd3a39654a533627e0f73fd1a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:58:54 2016 +0000 The resulting CSS files commit 1a3b6d7064b1b67238ffd3909d6d1ae54a4f78e1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:31:53 2016 +0000 Sass for very basic redesign commit e5d9e9d41b50d7f316fcae9bae75863aa09a7d63 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:00:35 2016 +0000 Use app.(s)css commit 231c5292e68220f588e9d300975bb19dfea20b4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 22:59:50 2016 +0000 Restructure homepage to show notes, also show bio when on '/', but note '/notes' commit 11a272b2a3050297dd84105a6c70adc937a0c409 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 17:49:30 2016 +0000 Set my homepage to the stream of notes commit 2e46ccad4038be64b5007f15dabee0321061fe98 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:58:11 2016 +0000 Drop sanitize.css and use normalize.css instead, also fix compress method commit 8082403d7464a873691fabab07ae4f6116993cdf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:48:35 2016 +0000 Sort out yarn dependencies commit 8ef7137d160ae8577e42ab1fd19e957aa37cf08b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:39:49 2016 +0000 Remove the compiled css commit 8284cdf838f5222eff87c942f119d6000a1b6fc6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:16:27 2016 +0000 Remove sass files
2016-11-22 16:08:02 +00:00
use Illuminate\Http\Request;
2016-05-19 15:01:28 +01:00
use Jonnybarnes\IndieWeb\Numbers;
2016-08-03 16:08:30 +01:00
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Cache;
2016-08-03 16:08:30 +01:00
use Jonnybarnes\WebmentionsParser\Authorship;
2016-05-19 15:01:28 +01:00
// Need to sort out Twitter and webmentions!
class NotesController extends Controller
{
/**
* Show all the notes.
*
Squashed commit of the following: commit 19ec350ca9c3a2ec9da6ee3823f3b0a09efe3eaa Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:07:42 2016 +0000 Update changelog commit 73428d3d94c659e5e4431b6740ba10dc2a609e44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:03:37 2016 +0000 output of gulp compress commit 4bb8038e787e35b5d38be9d63600b10bb9d75a07 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:03:11 2016 +0000 import Guzzle’s ClientException namespace commit 4bcb676bb95274da2422023fefa88b8d246b7f97 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:02:24 2016 +0000 Update manual testing token commit d902de76f00b4f3bba94ce6528f87e43f6c113f9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:01:52 2016 +0000 output of gulp js-assets commit 0a495956e4f540aae0d1515229dd29c30c76fd64 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:01:27 2016 +0000 Update new note page to use Mapbox GL JS commit bf22004256179c9487c668eb77785a9bc90227bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Nov 21 18:47:59 2016 +0000 output of gulp js-assets commit 22ed61cb853d98a4638754d44f042841e2b4495c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Nov 21 18:47:06 2016 +0000 Attempting to use mapbox gl on the newnote page commit 47fd891f1b3f0da59d10e937f7ed11f3b603c4af Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:21:53 2016 +0000 gulp derived assets commit 19e83f33b1c8c7a90a74d0ad17a6cace8761bcef Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:21:16 2016 +0000 Move .map styles into mapbox.scss commit 3d848d59126032671907a1e354cf121441d9a6e3 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:51 2016 +0000 gulp derived assets commit 9e51e8690ac8b782bc56663e7ec682837b27d4a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:32 2016 +0000 Link to mapbox-gl files commit 296b5fd7770f2a1c5c26ed4efedd99a7a0ad0bed Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:08 2016 +0000 Use mapbox gl to add maps to notes commit bd031df6e969b7af741730acabe41465f68bd3a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:11:27 2016 +0000 Update sass to style mapbox gl maps commit a7cd5e6eaa9510b5c9de672b6d5ed6917dabd7c6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:19:45 2016 +0000 output of gulp compress commit fe63c7ed394d62cd0e47a9ef718d9629d8643e71 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:18:47 2016 +0000 output of gulp sass commit 15ac4012681635753a4b1f52d81f7f9e24830eb4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:18:05 2016 +0000 Add a dividing line between notes and bio on the homepage commit 5ada66b1a01ae57359145eb757cab65769400f1e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:12:01 2016 +0000 output of gulp sass commit 86adf97c3831c3310683a25c2671c7560700de1a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:11:33 2016 +0000 Resize note metadata for spacial flow commit 3f3fc51ea8df8206d5b13512295ac09827bb2ede Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:37:21 2016 +0000 output of gulp sass commit df6f7f827641dc4deca621d099357757f760ece4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:36:51 2016 +0000 Use system UI fonts commit b71950275ddaf274b26195694a07c1b58f746725 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:31:30 2016 +0000 output of gulp compress commit 5ff5d73a803b9bcc4e2f314946c1d757dcabae67 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:30:12 2016 +0000 output of gulp js-assets commit d8ff563569223bddc836ab9f8fc7c43970273b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:29:27 2016 +0000 use containing divs in new place section of form commit 3cbf3083612210cdd7609c930737cf7a698ec024 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 14:39:27 2016 +0000 gulp sass output commit 239b742a355a397f5b84377b26b2d7a4254bd50e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 14:38:52 2016 +0000 Better spacing of form elements on mobile commit a20279e3f4216b87ff59ed4e507b6de9e212db9f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 13:41:31 2016 +0000 Derived assets commit 86ebd05472498814084e86fb0c2d674633f00096 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 13:40:42 2016 +0000 Use containing divs for flex layout commit 00e0e6f3f462ca575e92209a86ada67b7f5ff757 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 14:38:39 2016 +0000 Correct scss according to stylelint commit 6dd8ff4d13c3ab83c6a811501b817c45b89338ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 14:33:46 2016 +0000 Get stylelint working commit 9b9a64defd9335014b46070e2b92a392929f4aa5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 09:48:28 2016 +0000 Add missing new-line to match style commit 2521446f32420047d6d5f7372f4f7afc17200a1c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:16:45 2016 +0000 Add logging during an error, improve the error message commit 095507bec225992aac510a2ca852f65c197f0298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:15:59 2016 +0000 Update test token commit 374ef70fecaedf041f12a57688ed9596e25a2ce6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:15:16 2016 +0000 Remove typekit for now commit f5671ad435732ddb3288a2e02de7631a6acb4183 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 16:06:01 2016 +0000 Better designed new note form commit f38df507b85502e733fa38e970cd584f7d79bca1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 13:28:21 2016 +0000 More styling, use normal pagination, improve bio commit 077076d4f92014d488bca5d4dbbab5af913e6cf0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 00:05:56 2016 +0000 Use an anchor for permalinks, re-word projects page commit 37c6e862b693c2bfd3a39654a533627e0f73fd1a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:58:54 2016 +0000 The resulting CSS files commit 1a3b6d7064b1b67238ffd3909d6d1ae54a4f78e1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:31:53 2016 +0000 Sass for very basic redesign commit e5d9e9d41b50d7f316fcae9bae75863aa09a7d63 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:00:35 2016 +0000 Use app.(s)css commit 231c5292e68220f588e9d300975bb19dfea20b4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 22:59:50 2016 +0000 Restructure homepage to show notes, also show bio when on '/', but note '/notes' commit 11a272b2a3050297dd84105a6c70adc937a0c409 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 17:49:30 2016 +0000 Set my homepage to the stream of notes commit 2e46ccad4038be64b5007f15dabee0321061fe98 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:58:11 2016 +0000 Drop sanitize.css and use normalize.css instead, also fix compress method commit 8082403d7464a873691fabab07ae4f6116993cdf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:48:35 2016 +0000 Sort out yarn dependencies commit 8ef7137d160ae8577e42ab1fd19e957aa37cf08b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:39:49 2016 +0000 Remove the compiled css commit 8284cdf838f5222eff87c942f119d6000a1b6fc6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:16:27 2016 +0000 Remove sass files
2016-11-22 16:08:02 +00:00
* @param Illuminate\Http\Request request;
2016-05-19 15:01:28 +01:00
* @return \Illuminte\View\Factory view
*/
2017-02-15 18:39:39 +00:00
public function index(Request $request)
2016-05-19 15:01:28 +01:00
{
Squashed commit of the following: commit 19ec350ca9c3a2ec9da6ee3823f3b0a09efe3eaa Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:07:42 2016 +0000 Update changelog commit 73428d3d94c659e5e4431b6740ba10dc2a609e44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:03:37 2016 +0000 output of gulp compress commit 4bb8038e787e35b5d38be9d63600b10bb9d75a07 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:03:11 2016 +0000 import Guzzle’s ClientException namespace commit 4bcb676bb95274da2422023fefa88b8d246b7f97 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:02:24 2016 +0000 Update manual testing token commit d902de76f00b4f3bba94ce6528f87e43f6c113f9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:01:52 2016 +0000 output of gulp js-assets commit 0a495956e4f540aae0d1515229dd29c30c76fd64 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:01:27 2016 +0000 Update new note page to use Mapbox GL JS commit bf22004256179c9487c668eb77785a9bc90227bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Nov 21 18:47:59 2016 +0000 output of gulp js-assets commit 22ed61cb853d98a4638754d44f042841e2b4495c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Nov 21 18:47:06 2016 +0000 Attempting to use mapbox gl on the newnote page commit 47fd891f1b3f0da59d10e937f7ed11f3b603c4af Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:21:53 2016 +0000 gulp derived assets commit 19e83f33b1c8c7a90a74d0ad17a6cace8761bcef Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:21:16 2016 +0000 Move .map styles into mapbox.scss commit 3d848d59126032671907a1e354cf121441d9a6e3 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:51 2016 +0000 gulp derived assets commit 9e51e8690ac8b782bc56663e7ec682837b27d4a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:32 2016 +0000 Link to mapbox-gl files commit 296b5fd7770f2a1c5c26ed4efedd99a7a0ad0bed Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:08 2016 +0000 Use mapbox gl to add maps to notes commit bd031df6e969b7af741730acabe41465f68bd3a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:11:27 2016 +0000 Update sass to style mapbox gl maps commit a7cd5e6eaa9510b5c9de672b6d5ed6917dabd7c6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:19:45 2016 +0000 output of gulp compress commit fe63c7ed394d62cd0e47a9ef718d9629d8643e71 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:18:47 2016 +0000 output of gulp sass commit 15ac4012681635753a4b1f52d81f7f9e24830eb4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:18:05 2016 +0000 Add a dividing line between notes and bio on the homepage commit 5ada66b1a01ae57359145eb757cab65769400f1e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:12:01 2016 +0000 output of gulp sass commit 86adf97c3831c3310683a25c2671c7560700de1a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:11:33 2016 +0000 Resize note metadata for spacial flow commit 3f3fc51ea8df8206d5b13512295ac09827bb2ede Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:37:21 2016 +0000 output of gulp sass commit df6f7f827641dc4deca621d099357757f760ece4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:36:51 2016 +0000 Use system UI fonts commit b71950275ddaf274b26195694a07c1b58f746725 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:31:30 2016 +0000 output of gulp compress commit 5ff5d73a803b9bcc4e2f314946c1d757dcabae67 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:30:12 2016 +0000 output of gulp js-assets commit d8ff563569223bddc836ab9f8fc7c43970273b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:29:27 2016 +0000 use containing divs in new place section of form commit 3cbf3083612210cdd7609c930737cf7a698ec024 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 14:39:27 2016 +0000 gulp sass output commit 239b742a355a397f5b84377b26b2d7a4254bd50e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 14:38:52 2016 +0000 Better spacing of form elements on mobile commit a20279e3f4216b87ff59ed4e507b6de9e212db9f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 13:41:31 2016 +0000 Derived assets commit 86ebd05472498814084e86fb0c2d674633f00096 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 13:40:42 2016 +0000 Use containing divs for flex layout commit 00e0e6f3f462ca575e92209a86ada67b7f5ff757 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 14:38:39 2016 +0000 Correct scss according to stylelint commit 6dd8ff4d13c3ab83c6a811501b817c45b89338ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 14:33:46 2016 +0000 Get stylelint working commit 9b9a64defd9335014b46070e2b92a392929f4aa5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 09:48:28 2016 +0000 Add missing new-line to match style commit 2521446f32420047d6d5f7372f4f7afc17200a1c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:16:45 2016 +0000 Add logging during an error, improve the error message commit 095507bec225992aac510a2ca852f65c197f0298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:15:59 2016 +0000 Update test token commit 374ef70fecaedf041f12a57688ed9596e25a2ce6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:15:16 2016 +0000 Remove typekit for now commit f5671ad435732ddb3288a2e02de7631a6acb4183 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 16:06:01 2016 +0000 Better designed new note form commit f38df507b85502e733fa38e970cd584f7d79bca1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 13:28:21 2016 +0000 More styling, use normal pagination, improve bio commit 077076d4f92014d488bca5d4dbbab5af913e6cf0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 00:05:56 2016 +0000 Use an anchor for permalinks, re-word projects page commit 37c6e862b693c2bfd3a39654a533627e0f73fd1a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:58:54 2016 +0000 The resulting CSS files commit 1a3b6d7064b1b67238ffd3909d6d1ae54a4f78e1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:31:53 2016 +0000 Sass for very basic redesign commit e5d9e9d41b50d7f316fcae9bae75863aa09a7d63 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:00:35 2016 +0000 Use app.(s)css commit 231c5292e68220f588e9d300975bb19dfea20b4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 22:59:50 2016 +0000 Restructure homepage to show notes, also show bio when on '/', but note '/notes' commit 11a272b2a3050297dd84105a6c70adc937a0c409 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 17:49:30 2016 +0000 Set my homepage to the stream of notes commit 2e46ccad4038be64b5007f15dabee0321061fe98 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:58:11 2016 +0000 Drop sanitize.css and use normalize.css instead, also fix compress method commit 8082403d7464a873691fabab07ae4f6116993cdf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:48:35 2016 +0000 Sort out yarn dependencies commit 8ef7137d160ae8577e42ab1fd19e957aa37cf08b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:39:49 2016 +0000 Remove the compiled css commit 8284cdf838f5222eff87c942f119d6000a1b6fc6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:16:27 2016 +0000 Remove sass files
2016-11-22 16:08:02 +00:00
$notes = Note::orderBy('id', 'desc')->with('webmentions', 'place', 'media')->paginate(10);
2016-05-19 15:01:28 +01:00
foreach ($notes as $note) {
$replies = 0;
foreach ($note->webmentions as $webmention) {
2016-08-03 16:08:30 +01:00
if ($webmention->type == 'in-reply-to') {
$replies++;
2016-05-19 15:01:28 +01:00
}
}
$note->replies = $replies;
$note->twitter = $this->checkTwitterReply($note->in_reply_to);
$note->iso8601_time = $note->updated_at->toISO8601String();
$note->human_time = $note->updated_at->diffForHumans();
if ($note->location && ($note->place === null)) {
$pieces = explode(':', $note->location);
$latlng = explode(',', $pieces[0]);
$note->latitude = trim($latlng[0]);
$note->longitude = trim($latlng[1]);
$note->address = $this->reverseGeoCode((float) trim($latlng[0]), (float) trim($latlng[1]));
2016-05-19 15:01:28 +01:00
}
if ($note->place !== null) {
2016-06-27 10:43:47 +01:00
$lnglat = explode(' ', $note->place->location);
2016-05-19 15:01:28 +01:00
$note->latitude = $lnglat[1];
$note->longitude = $lnglat[0];
$note->address = $note->place->name;
$note->placeLink = '/places/' . $note->place->slug;
2017-03-02 16:01:48 +00:00
$note->geoJson = $this->getGeoJson(
$note->longitude,
$note->latitude,
$note->place->name,
$note->place->icon
);
2016-05-19 15:01:28 +01:00
}
/*$mediaLinks = [];
foreach ($note->media()->get() as $media) {
$mediaLinks[] = $media->url;
}*/
2016-05-19 15:01:28 +01:00
}
Squashed commit of the following: commit 19ec350ca9c3a2ec9da6ee3823f3b0a09efe3eaa Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:07:42 2016 +0000 Update changelog commit 73428d3d94c659e5e4431b6740ba10dc2a609e44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:03:37 2016 +0000 output of gulp compress commit 4bb8038e787e35b5d38be9d63600b10bb9d75a07 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:03:11 2016 +0000 import Guzzle’s ClientException namespace commit 4bcb676bb95274da2422023fefa88b8d246b7f97 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:02:24 2016 +0000 Update manual testing token commit d902de76f00b4f3bba94ce6528f87e43f6c113f9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:01:52 2016 +0000 output of gulp js-assets commit 0a495956e4f540aae0d1515229dd29c30c76fd64 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:01:27 2016 +0000 Update new note page to use Mapbox GL JS commit bf22004256179c9487c668eb77785a9bc90227bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Nov 21 18:47:59 2016 +0000 output of gulp js-assets commit 22ed61cb853d98a4638754d44f042841e2b4495c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Nov 21 18:47:06 2016 +0000 Attempting to use mapbox gl on the newnote page commit 47fd891f1b3f0da59d10e937f7ed11f3b603c4af Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:21:53 2016 +0000 gulp derived assets commit 19e83f33b1c8c7a90a74d0ad17a6cace8761bcef Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:21:16 2016 +0000 Move .map styles into mapbox.scss commit 3d848d59126032671907a1e354cf121441d9a6e3 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:51 2016 +0000 gulp derived assets commit 9e51e8690ac8b782bc56663e7ec682837b27d4a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:32 2016 +0000 Link to mapbox-gl files commit 296b5fd7770f2a1c5c26ed4efedd99a7a0ad0bed Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:08 2016 +0000 Use mapbox gl to add maps to notes commit bd031df6e969b7af741730acabe41465f68bd3a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:11:27 2016 +0000 Update sass to style mapbox gl maps commit a7cd5e6eaa9510b5c9de672b6d5ed6917dabd7c6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:19:45 2016 +0000 output of gulp compress commit fe63c7ed394d62cd0e47a9ef718d9629d8643e71 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:18:47 2016 +0000 output of gulp sass commit 15ac4012681635753a4b1f52d81f7f9e24830eb4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:18:05 2016 +0000 Add a dividing line between notes and bio on the homepage commit 5ada66b1a01ae57359145eb757cab65769400f1e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:12:01 2016 +0000 output of gulp sass commit 86adf97c3831c3310683a25c2671c7560700de1a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:11:33 2016 +0000 Resize note metadata for spacial flow commit 3f3fc51ea8df8206d5b13512295ac09827bb2ede Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:37:21 2016 +0000 output of gulp sass commit df6f7f827641dc4deca621d099357757f760ece4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:36:51 2016 +0000 Use system UI fonts commit b71950275ddaf274b26195694a07c1b58f746725 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:31:30 2016 +0000 output of gulp compress commit 5ff5d73a803b9bcc4e2f314946c1d757dcabae67 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:30:12 2016 +0000 output of gulp js-assets commit d8ff563569223bddc836ab9f8fc7c43970273b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:29:27 2016 +0000 use containing divs in new place section of form commit 3cbf3083612210cdd7609c930737cf7a698ec024 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 14:39:27 2016 +0000 gulp sass output commit 239b742a355a397f5b84377b26b2d7a4254bd50e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 14:38:52 2016 +0000 Better spacing of form elements on mobile commit a20279e3f4216b87ff59ed4e507b6de9e212db9f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 13:41:31 2016 +0000 Derived assets commit 86ebd05472498814084e86fb0c2d674633f00096 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 13:40:42 2016 +0000 Use containing divs for flex layout commit 00e0e6f3f462ca575e92209a86ada67b7f5ff757 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 14:38:39 2016 +0000 Correct scss according to stylelint commit 6dd8ff4d13c3ab83c6a811501b817c45b89338ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 14:33:46 2016 +0000 Get stylelint working commit 9b9a64defd9335014b46070e2b92a392929f4aa5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 09:48:28 2016 +0000 Add missing new-line to match style commit 2521446f32420047d6d5f7372f4f7afc17200a1c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:16:45 2016 +0000 Add logging during an error, improve the error message commit 095507bec225992aac510a2ca852f65c197f0298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:15:59 2016 +0000 Update test token commit 374ef70fecaedf041f12a57688ed9596e25a2ce6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:15:16 2016 +0000 Remove typekit for now commit f5671ad435732ddb3288a2e02de7631a6acb4183 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 16:06:01 2016 +0000 Better designed new note form commit f38df507b85502e733fa38e970cd584f7d79bca1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 13:28:21 2016 +0000 More styling, use normal pagination, improve bio commit 077076d4f92014d488bca5d4dbbab5af913e6cf0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 00:05:56 2016 +0000 Use an anchor for permalinks, re-word projects page commit 37c6e862b693c2bfd3a39654a533627e0f73fd1a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:58:54 2016 +0000 The resulting CSS files commit 1a3b6d7064b1b67238ffd3909d6d1ae54a4f78e1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:31:53 2016 +0000 Sass for very basic redesign commit e5d9e9d41b50d7f316fcae9bae75863aa09a7d63 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:00:35 2016 +0000 Use app.(s)css commit 231c5292e68220f588e9d300975bb19dfea20b4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 22:59:50 2016 +0000 Restructure homepage to show notes, also show bio when on '/', but note '/notes' commit 11a272b2a3050297dd84105a6c70adc937a0c409 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 17:49:30 2016 +0000 Set my homepage to the stream of notes commit 2e46ccad4038be64b5007f15dabee0321061fe98 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:58:11 2016 +0000 Drop sanitize.css and use normalize.css instead, also fix compress method commit 8082403d7464a873691fabab07ae4f6116993cdf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:48:35 2016 +0000 Sort out yarn dependencies commit 8ef7137d160ae8577e42ab1fd19e957aa37cf08b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:39:49 2016 +0000 Remove the compiled css commit 8284cdf838f5222eff87c942f119d6000a1b6fc6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:16:27 2016 +0000 Remove sass files
2016-11-22 16:08:02 +00:00
$homepage = ($request->path() == '/');
2017-02-15 18:39:39 +00:00
return view('notes.index', compact('notes', 'homepage'));
2016-05-19 15:01:28 +01:00
}
/**
* Show a single note.
*
* @param string The id of the note
* @return \Illuminate\View\Factory view
*/
2017-02-15 18:39:39 +00:00
public function show($urlId)
2016-05-19 15:01:28 +01:00
{
$numbers = new Numbers();
2016-08-03 16:08:30 +01:00
$authorship = new Authorship();
2016-05-19 15:01:28 +01:00
$realId = $numbers->b60tonum($urlId);
$note = Note::find($realId);
$replies = [];
$reposts = [];
$likes = [];
2016-09-21 20:02:00 +01:00
$carbon = new \Carbon\Carbon();
2016-05-19 15:01:28 +01:00
foreach ($note->webmentions as $webmention) {
2016-08-03 16:08:30 +01:00
/*
reply->url |
reply->photo | Author
reply->name |
reply->source
reply->date
reply->reply
repost->url |
repost->photo | Author
repost->name |
repost->date
repost->source
like->url |
like->photo | Author
like->name |
*/
$microformats = json_decode($webmention->mf2, true);
2016-08-03 16:08:30 +01:00
$authorHCard = $authorship->findAuthor($microformats);
$content['url'] = $authorHCard['properties']['url'][0];
$content['photo'] = $this->createPhotoLink($authorHCard['properties']['photo'][0]);
$content['name'] = $authorHCard['properties']['name'][0];
2016-05-19 15:01:28 +01:00
switch ($webmention->type) {
2016-08-03 16:08:30 +01:00
case 'in-reply-to':
$content['source'] = $webmention->source;
2016-11-07 12:19:37 +00:00
if (isset($microformats['items'][0]['properties']['published'][0])) {
2017-05-21 17:19:38 +01:00
try {
$content['date'] = $carbon->parse(
$microformats['items'][0]['properties']['published'][0]
)->toDayDateTimeString();
} catch (\Exception $exception) {
$content['date'] = $webmention->updated_at->toDayDateTimeString();
}
2016-11-07 12:19:37 +00:00
} else {
$content['date'] = $webmention->updated_at->toDayDateTimeString();
2016-11-07 12:19:37 +00:00
}
2016-12-12 14:03:31 +00:00
$content['reply'] = $this->filterHTML(
$microformats['items'][0]['properties']['content'][0]['html']
);
2016-05-19 15:01:28 +01:00
$replies[] = $content;
break;
2016-08-03 16:08:30 +01:00
case 'repost-of':
2016-12-12 14:03:31 +00:00
$content['date'] = $carbon->parse(
$microformats['items'][0]['properties']['published'][0]
)->toDayDateTimeString();
2016-08-03 16:08:30 +01:00
$content['source'] = $webmention->source;
2016-05-19 15:01:28 +01:00
$reposts[] = $content;
break;
2016-08-03 16:08:30 +01:00
case 'like-of':
2016-05-19 15:01:28 +01:00
$likes[] = $content;
break;
}
}
$note->twitter = $this->checkTwitterReply($note->in_reply_to);
$note->iso8601_time = $note->updated_at->toISO8601String();
$note->human_time = $note->updated_at->diffForHumans();
if ($note->location && ($note->place === null)) {
$pieces = explode(':', $note->location);
$latlng = explode(',', $pieces[0]);
$note->latitude = trim($latlng[0]);
$note->longitude = trim($latlng[1]);
$note->address = $this->reverseGeoCode((float) trim($latlng[0]), (float) trim($latlng[1]));
2016-05-19 15:01:28 +01:00
}
if ($note->place !== null) {
2016-06-27 10:43:47 +01:00
$lnglat = explode(' ', $note->place->location);
2016-05-19 15:01:28 +01:00
$note->latitude = $lnglat[1];
$note->longitude = $lnglat[0];
$note->address = $note->place->name;
$note->placeLink = '/places/' . $note->place->slug;
2017-03-02 16:01:48 +00:00
$note->geoJson = $this->getGeoJson(
$note->longitude,
$note->latitude,
$note->place->name,
$note->place->icon
);
2016-05-19 15:01:28 +01:00
}
2017-02-15 18:39:39 +00:00
return view('notes.show', compact('note', 'replies', 'reposts', 'likes'));
2016-05-19 15:01:28 +01:00
}
/**
* Redirect /note/{decID} to /notes/{nb60id}.
*
* @param string The decimal id of he note
* @return \Illuminate\Routing\RedirectResponse redirect
*/
2017-02-15 18:39:39 +00:00
public function redirect($decId)
2016-05-19 15:01:28 +01:00
{
$numbers = new Numbers();
$realId = $numbers->numto60($decId);
$url = config('app.url') . '/notes/' . $realId;
return redirect($url);
}
/**
* Show all notes tagged with {tag}.
*
* @param string The tag
* @return \Illuminate\View\Factory view
*/
2017-02-15 18:39:39 +00:00
public function tagged($tag)
2016-05-19 15:01:28 +01:00
{
$notes = Note::whereHas('tags', function ($query) use ($tag) {
$query->where('tag', $tag);
})->get();
2016-05-19 15:01:28 +01:00
foreach ($notes as $note) {
$note->iso8601_time = $note->updated_at->toISO8601String();
$note->human_time = $note->updated_at->diffForHumans();
}
2017-02-15 18:39:39 +00:00
return view('notes.tagged', compact('notes', 'tag'));
2016-05-19 15:01:28 +01:00
}
/**
* Create the photo link.
*
2016-08-03 16:08:30 +01:00
* We shall leave twitter.com and twimg.com links as they are. Then we shall
* check for local copies, if that fails leave the link as is.
*
2016-05-19 15:01:28 +01:00
* @param string
* @return string
*/
public function createPhotoLink($url)
{
2016-08-03 16:08:30 +01:00
$host = parse_url($url, PHP_URL_HOST);
if ($host == 'pbs.twimg.com') {
//make sure we use HTTPS, we know twitter supports it
2016-05-19 15:01:28 +01:00
return str_replace('http://', 'https://', $url);
}
2016-08-03 16:08:30 +01:00
if ($host == 'twitter.com') {
if (Cache::has($url)) {
return Cache::get($url);
}
$username = parse_url($url, PHP_URL_PATH);
try {
$info = Twitter::getUsers(['screen_name' => $username]);
$profile_image = $info->profile_image_url_https;
Cache::put($url, $profile_image, 10080); //1 week
} catch (Exception $e) {
return $url; //not sure here
}
return $profile_image;
}
$filesystem = new Filesystem();
if ($filesystem->exists(public_path() . '/assets/profile-images/' . $host . '/image')) {
return '/assets/profile-images/' . $host . '/image';
}
return $url;
2016-05-19 15:01:28 +01:00
}
/**
* Twitter!!!
*
* @param string The reply to URL
* @return string | null
*/
private function checkTwitterReply($url)
{
if ($url == null) {
return;
}
if (mb_substr($url, 0, 20, 'UTF-8') !== 'https://twitter.com/') {
return;
}
$arr = explode('/', $url);
$tweetId = end($arr);
if (Cache::has($tweetId)) {
return Cache::get($tweetId);
}
try {
$oEmbed = Twitter::getOembed([
'id' => $tweetId,
'align' => 'center',
'omit_script' => true,
'maxwidth' => 550,
]);
} catch (\Exception $e) {
return;
}
Cache::put($tweetId, $oEmbed, ($oEmbed->cache_age / 60));
return $oEmbed;
}
/**
* Filter the HTML in a reply webmention.
*
* @param string The reply HTML
* @return string The filtered HTML
*/
private function filterHTML($html)
{
$config = HTMLPurifier_Config::createDefault();
$config->set('Cache.SerializerPath', storage_path() . '/HTMLPurifier');
$config->set('HTML.TargetBlank', true);
$purifier = new HTMLPurifier($config);
return $purifier->purify($html);
}
/**
* Do a reverse geocode lookup of a `lat,lng` value.
*
* @param float The latitude
* @param float The longitude
* @return string The location HTML
*/
public function reverseGeoCode(float $latitude, float $longitude): string
{
$latlng = $latitude . ',' . $longitude;
return Cache::get($latlng, function () use ($latlng, $latitude, $longitude) {
$guzzle = new Client();
$response = $guzzle->request('GET', 'https://nominatim.openstreetmap.org/reverse', [
'query' => [
'format' => 'json',
'lat' => $latitude,
'lon' => $longitude,
'zoom' => 18,
'addressdetails' => 1,
],
2016-10-17 21:00:53 +01:00
'headers' => ['User-Agent' => 'jonnybarnes.uk via Guzzle, email jonny@jonnybarnes.uk'],
]);
$json = json_decode($response->getBody());
if (isset($json->address->town)) {
2016-12-12 14:03:31 +00:00
$address = '<span class="p-locality">'
. $json->address->town
. '</span>, <span class="p-country-name">'
. $json->address->country
. '</span>';
Cache::forever($latlng, $address);
return $address;
}
if (isset($json->address->city)) {
$address = $json->address->city . ', ' . $json->address->country;
Cache::forever($latlng, $address);
return $address;
}
if (isset($json->address->county)) {
2016-12-12 14:03:31 +00:00
$address = '<span class="p-region">'
. $json->address->county
. '</span>, <span class="p-country-name">'
. $json->address->country
. '</span>';
Cache::forever($latlng, $address);
return $address;
}
$adress = '<span class="p-country-name">' . $json->address->country . '</span>';
Cache::forever($latlng, $address);
return $address;
});
}
Updating codebase to use es6/7 Squashed commit of the following: commit 07b27d00f135a521143154a2e77abdc1680b7d5b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Jan 26 14:59:35 2017 +0000 Fix styleci.io issue commit 9e67f0a96484f8047f22d13abb4cd41c2e44b95d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Jan 26 08:28:22 2017 +0000 Remove some unused dependencies commit 3c65070f3ff2aec10d821ae9f12821bc08e37d0a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 18:00:10 2017 +0000 Compressed webpack/babel output commit 694c43d1a9a6c8cb84d4cc789a6643b8d2863cec Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 17:59:27 2017 +0000 Let’s compress the es5 output commit debffc0e41760fcc87e6d3768163e6ed8ea5d98c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 17:45:05 2017 +0000 webpack/babel generated es5 assets commit 1e978d6c5795f230ab320f94ad2fb98871bb6fa5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 17:36:52 2017 +0000 Allow content of micropub form page to be persisted commit 44fb8026962ef574700f07ef93d18bdb38cdedb2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 17:35:58 2017 +0000 Name the micropub form commit 732abaf561bf9d6392fe506d30d320e9c17b8226 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 17:34:39 2017 +0000 Add webStorage dependency commit a4520085dfc673c5c3d940150358b8ecc3cdf022 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Jan 16 12:32:33 2017 +0000 No need for a form id on the micropub form untill form autosave is added commit a182be46a616d8e4085be5e24cbd3623f13cc28d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Jan 14 20:37:31 2017 +0000 Polyfill fetch and promise only in older browsers using unpkg.com commit fdc044150dc8e2b755f93119b196ba0455bbbb83 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Jan 13 15:46:05 2017 +0000 Generated js from webpack/babel commit d24e6aa9fff38823a0c667e6f9e43dcb2ca179c4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Jan 13 15:45:32 2017 +0000 Lots of es6 to generate and add map, particularly the new note form commit e7004a9fe475e07d43de905fb00d51c659878474 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Jan 13 15:44:54 2017 +0000 Don’t link to commons.js, it aint being made at the moment commit d4a2e4e143b644287f9da109eb2850c2361b2f20 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Jan 13 15:43:27 2017 +0000 Temporarily don’t optimize JS commit 05623de122da7d88642af60f85e5320a3ff651fc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 11 14:24:15 2017 +0000 Add places to geojson data commit 3eb1a4f29bb4263b9998a6f3f53abb7d1eeff520 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 11 14:22:53 2017 +0000 Use alertify.js to give relevant feedback to user commit 6f123fa178d6cd19528130ebd78157c37eaab1a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 11 14:21:24 2017 +0000 Add alertify.css back commit 89fca3b3aeb23ef97fb767514e0502298d1b83fd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 11 14:19:56 2017 +0000 Webpack’d javascript commit 94ab60f34079238ed6228bf6e789f14d7a09823b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Jan 9 09:10:17 2017 +0000 Webpack’d javascript commit 1ca3a55a27c20ea08633b589023fe5ad1acb2b68 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Jan 9 09:09:06 2017 +0000 Define const functions in order of usage commit dc5535b32a357611860e0e98fcdc7d9c12c5d383 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Jan 8 18:50:55 2017 +0000 Link to correct js files with defer option commit 42f0e5b85825943ed148736e8e0fe22f5654ae90 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Jan 8 18:50:18 2017 +0000 New webpacked es6 code commit 300443bb0ce7b65bda1cf550fe5c7173a89edaf3 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Jan 8 18:49:44 2017 +0000 Moving towards consolidated es6 map code commit b1001760e03dd358f896feb90dd3acc0bc6728fc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Jan 8 18:44:40 2017 +0000 Don’t mangle the fetch function commit 289e59025634b6d2569b73ae87e3ea4942034e33 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Jan 8 18:43:47 2017 +0000 Updated yarn/npm dependencies commit 3439b008e6bd96d8c45591c2a945c4ac246440ec Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 29 11:58:50 2016 +0000 Link to the correct assets on the new note page commit 81dc83e362266028f8336ae5a27e92c8c8a2b6dc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 29 11:57:46 2016 +0000 Add a map to the new note page commit 5101ecd3dd60cd78e9a4bce81a5e60a2f575bc57 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 29 11:56:54 2016 +0000 Bundle common JS between entry points commit 1f916adcfd1b07df388417b6bd800e109cec543c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 29 11:55:31 2016 +0000 Add geojson to individual notes commit 7a6ae8ca49b4ca49413ddb977f7b534f62b41c20 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Dec 28 19:53:30 2016 +0000 Link to self-hosted mapbox-gl.css commit 8be006ec2b738cbcebd06283e18c292b3efd7d16 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Dec 28 19:52:41 2016 +0000 Use self-hosted mapbox-gl css, and a better default geojson title value commit 5ec480842a2194a071b6a23ae181a8de5b8d47cd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Dec 28 17:09:46 2016 +0000 Access geojson data to markup map correctly commit f2f1d7563f7b0cb7cc62658cc2817e56d2b47c31 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Dec 28 17:09:07 2016 +0000 Generate geojson data for places commit 9f8c9ba02f7ac37b4ab81aad2fb0cd2c077c45cd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Dec 23 11:55:10 2016 +0000 Use geojson to add a default you location point commit 3da499d3ea6a214f8008d1b98f9b0c2f31ecba0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 22 22:29:18 2016 +0000 Some code cleaning commit 39376097eda82491df272cc214d70ff3095d4873 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 22 22:21:29 2016 +0000 Use satellite streets view commit f3db8f43fc403bc180e24d63e21c8311441cb2b0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 22 16:46:03 2016 +0000 Semi working map state, still need to add own css, and add marker commit 5f398a642b9db67f4b0733988c20138b37d2141d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 22 13:17:04 2016 +0000 Reference new maps.js with bundled mapbox commit bad97649a623c5552e6b607a1975aa2de8131191 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 22 13:16:25 2016 +0000 Add mapbox-gl again commit 47484962e7620aa7a9a5153cfc03e2ba4030dd5c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Dec 21 00:03:23 2016 +0000 Early working version of maps.js commit e53e0f39952a65996c09b06fd35918ffabed0de2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Dec 20 17:14:17 2016 +0000 Setup webpack commit f930a1e2bd7d18809bd40d0cc22f9c3af75f1984 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Dec 20 15:00:42 2016 +0000 Add webpack v2 commit b16e8d62db071155a8b5fb216d3d60ebf6fa9468 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Dec 20 14:53:47 2016 +0000 Define default settings for babel commit 97c13cb753e08d25aa48ecff579efa05173a2c81 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Dec 20 14:53:31 2016 +0000 Add babeljs commit dd9efc3b056cf96323d7f11acff0fb1ab137caef Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Dec 20 14:49:23 2016 +0000 Remove old javascript commit ab99c251ad5847b48d347e2c9426077b3ba8e0f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Dec 16 13:26:10 2016 +0000 update readme to reflect changes to how syndication targets need to be set
2017-01-26 15:21:21 +00:00
private function getGeoJson($longitude, $latitude, $title, $icon)
{
$icon = $icon ?? 'marker';
return '{
2017-05-24 14:45:08 +01:00
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [' . $longitude . ', ' . $latitude . ']
},
"properties": {
"title": "' . $title . '",
"icon": "' . $icon . '"
}
}]
Updating codebase to use es6/7 Squashed commit of the following: commit 07b27d00f135a521143154a2e77abdc1680b7d5b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Jan 26 14:59:35 2017 +0000 Fix styleci.io issue commit 9e67f0a96484f8047f22d13abb4cd41c2e44b95d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Jan 26 08:28:22 2017 +0000 Remove some unused dependencies commit 3c65070f3ff2aec10d821ae9f12821bc08e37d0a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 18:00:10 2017 +0000 Compressed webpack/babel output commit 694c43d1a9a6c8cb84d4cc789a6643b8d2863cec Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 17:59:27 2017 +0000 Let’s compress the es5 output commit debffc0e41760fcc87e6d3768163e6ed8ea5d98c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 17:45:05 2017 +0000 webpack/babel generated es5 assets commit 1e978d6c5795f230ab320f94ad2fb98871bb6fa5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 17:36:52 2017 +0000 Allow content of micropub form page to be persisted commit 44fb8026962ef574700f07ef93d18bdb38cdedb2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 17:35:58 2017 +0000 Name the micropub form commit 732abaf561bf9d6392fe506d30d320e9c17b8226 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 25 17:34:39 2017 +0000 Add webStorage dependency commit a4520085dfc673c5c3d940150358b8ecc3cdf022 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Jan 16 12:32:33 2017 +0000 No need for a form id on the micropub form untill form autosave is added commit a182be46a616d8e4085be5e24cbd3623f13cc28d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Jan 14 20:37:31 2017 +0000 Polyfill fetch and promise only in older browsers using unpkg.com commit fdc044150dc8e2b755f93119b196ba0455bbbb83 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Jan 13 15:46:05 2017 +0000 Generated js from webpack/babel commit d24e6aa9fff38823a0c667e6f9e43dcb2ca179c4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Jan 13 15:45:32 2017 +0000 Lots of es6 to generate and add map, particularly the new note form commit e7004a9fe475e07d43de905fb00d51c659878474 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Jan 13 15:44:54 2017 +0000 Don’t link to commons.js, it aint being made at the moment commit d4a2e4e143b644287f9da109eb2850c2361b2f20 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Jan 13 15:43:27 2017 +0000 Temporarily don’t optimize JS commit 05623de122da7d88642af60f85e5320a3ff651fc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 11 14:24:15 2017 +0000 Add places to geojson data commit 3eb1a4f29bb4263b9998a6f3f53abb7d1eeff520 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 11 14:22:53 2017 +0000 Use alertify.js to give relevant feedback to user commit 6f123fa178d6cd19528130ebd78157c37eaab1a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 11 14:21:24 2017 +0000 Add alertify.css back commit 89fca3b3aeb23ef97fb767514e0502298d1b83fd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Jan 11 14:19:56 2017 +0000 Webpack’d javascript commit 94ab60f34079238ed6228bf6e789f14d7a09823b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Jan 9 09:10:17 2017 +0000 Webpack’d javascript commit 1ca3a55a27c20ea08633b589023fe5ad1acb2b68 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Jan 9 09:09:06 2017 +0000 Define const functions in order of usage commit dc5535b32a357611860e0e98fcdc7d9c12c5d383 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Jan 8 18:50:55 2017 +0000 Link to correct js files with defer option commit 42f0e5b85825943ed148736e8e0fe22f5654ae90 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Jan 8 18:50:18 2017 +0000 New webpacked es6 code commit 300443bb0ce7b65bda1cf550fe5c7173a89edaf3 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Jan 8 18:49:44 2017 +0000 Moving towards consolidated es6 map code commit b1001760e03dd358f896feb90dd3acc0bc6728fc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Jan 8 18:44:40 2017 +0000 Don’t mangle the fetch function commit 289e59025634b6d2569b73ae87e3ea4942034e33 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Jan 8 18:43:47 2017 +0000 Updated yarn/npm dependencies commit 3439b008e6bd96d8c45591c2a945c4ac246440ec Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 29 11:58:50 2016 +0000 Link to the correct assets on the new note page commit 81dc83e362266028f8336ae5a27e92c8c8a2b6dc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 29 11:57:46 2016 +0000 Add a map to the new note page commit 5101ecd3dd60cd78e9a4bce81a5e60a2f575bc57 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 29 11:56:54 2016 +0000 Bundle common JS between entry points commit 1f916adcfd1b07df388417b6bd800e109cec543c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 29 11:55:31 2016 +0000 Add geojson to individual notes commit 7a6ae8ca49b4ca49413ddb977f7b534f62b41c20 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Dec 28 19:53:30 2016 +0000 Link to self-hosted mapbox-gl.css commit 8be006ec2b738cbcebd06283e18c292b3efd7d16 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Dec 28 19:52:41 2016 +0000 Use self-hosted mapbox-gl css, and a better default geojson title value commit 5ec480842a2194a071b6a23ae181a8de5b8d47cd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Dec 28 17:09:46 2016 +0000 Access geojson data to markup map correctly commit f2f1d7563f7b0cb7cc62658cc2817e56d2b47c31 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Dec 28 17:09:07 2016 +0000 Generate geojson data for places commit 9f8c9ba02f7ac37b4ab81aad2fb0cd2c077c45cd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Dec 23 11:55:10 2016 +0000 Use geojson to add a default you location point commit 3da499d3ea6a214f8008d1b98f9b0c2f31ecba0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 22 22:29:18 2016 +0000 Some code cleaning commit 39376097eda82491df272cc214d70ff3095d4873 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 22 22:21:29 2016 +0000 Use satellite streets view commit f3db8f43fc403bc180e24d63e21c8311441cb2b0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 22 16:46:03 2016 +0000 Semi working map state, still need to add own css, and add marker commit 5f398a642b9db67f4b0733988c20138b37d2141d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 22 13:17:04 2016 +0000 Reference new maps.js with bundled mapbox commit bad97649a623c5552e6b607a1975aa2de8131191 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Dec 22 13:16:25 2016 +0000 Add mapbox-gl again commit 47484962e7620aa7a9a5153cfc03e2ba4030dd5c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Dec 21 00:03:23 2016 +0000 Early working version of maps.js commit e53e0f39952a65996c09b06fd35918ffabed0de2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Dec 20 17:14:17 2016 +0000 Setup webpack commit f930a1e2bd7d18809bd40d0cc22f9c3af75f1984 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Dec 20 15:00:42 2016 +0000 Add webpack v2 commit b16e8d62db071155a8b5fb216d3d60ebf6fa9468 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Dec 20 14:53:47 2016 +0000 Define default settings for babel commit 97c13cb753e08d25aa48ecff579efa05173a2c81 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Dec 20 14:53:31 2016 +0000 Add babeljs commit dd9efc3b056cf96323d7f11acff0fb1ab137caef Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Dec 20 14:49:23 2016 +0000 Remove old javascript commit ab99c251ad5847b48d347e2c9426077b3ba8e0f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Dec 16 13:26:10 2016 +0000 update readme to reflect changes to how syndication targets need to be set
2017-01-26 15:21:21 +00:00
}';
}
2016-05-19 15:01:28 +01:00
}