Skip to content

Commit d99471f

Browse files
committed
Merge branch 'update-for-d2-2.0.0'
2 parents bdd90ab + 230e8d4 commit d99471f

22 files changed

+787
-236
lines changed

cpanfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ requires 'Dancer2' => '0.158000';
33
requires 'Template' => '0';
44
requires 'LWP::Simple' => '0';
55
requires 'List::Util' => '0';
6-
requires 'WebService::Bluga::Webthumb' => '0';
76

87
test_requires 'Test::More' => '0';
98
test_requires 'Plack::Test' => '0';

dancefloor.yml

Lines changed: 119 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -1,163 +1,120 @@
1-
---
2-
url: "https://www.perldancer.org/"
3-
title: "PerlDancer website"
4-
description: "Unsurprisingly this site is built using Dancer."
5-
source: "https://github.com/PerlDancer/perldancer-website"
6-
dancer: 2
7-
---
8-
url: "https://advent.perldancer.org/"
9-
title: "PerlDancer Advent Calendar"
10-
description: |
11-
The PerlDancer Advent Calendar is written entirely with Dancer, using the
12-
POD format for articles.
13-
source: "https://github.com/PerlDancer/advent-calendar"
14-
---
15-
url: "https://www.uk2.net/"
16-
title: "UK2"
17-
description: |
18-
UK2 use Dancer to power in-house REST API applications, along with
19-
holding pages and webdiversion for hundreds of thousands of customer domains.
20-
---
21-
url: "https://www.thegamecrafter.com/"
22-
title: "The Game Crafter"
23-
description: |
24-
World's first web-to-print company specialising in the table top game
25-
industry. Produce your own card / board games. Created by JT Smith
26-
of Plain Black.
27-
---
28-
url: "https://www.posandro.com/"
29-
title: "POSANDRO (Android Point of Sale application)"
30-
description: |
31-
An Android point of sale application whose back-end is powered by Dancer.
32-
---
33-
url: "https://elibraryusa.state.gov/"
34-
title: "eLibraryUSA"
35-
description: |
36-
Gives members of Information Resource Centers, American Corners,
37-
and other American Spaces around the world access to information
38-
Americans find at their public libraries, with a broad range of
39-
learning resources.
40-
---
41-
url: "https://www.quttera.com/"
42-
title: "Quttera"
43-
description: |
44-
Quttera is a website security provider that scans websites for
45-
malicious and suspicious activity.
46-
---
47-
url: "https://www.trebam.hr/"
48-
title: "Trebam.hr"
49-
description: "A Croatian site to obtain quotes for various trades/services"
50-
---
51-
url: "https://japanesedictionary.org/"
52-
title: "Japanese Dictionary"
53-
description: |
54-
This is a free Japanese-English dictionary site
55-
built on top of Dancer. Site allows users to browse pages by letter or
56-
search in English, Japanese and romanized forms.
57-
---
58-
url: "https://koreandictionary.net/"
59-
title: "Korean Dictionary"
60-
description: |
61-
This is a free English to Korean dictionary site built
62-
on top of Dancer. Site allows users to browse pages by letter or
63-
search by English, Korean or Romanization. It currently ranks #1 in
64-
Google.
65-
---
66-
url: "https://germandictionary.org/"
67-
title: "German Dictionary"
68-
description: |
69-
This is a free German-English dictionary site built
70-
on top of Dancer. Site allows users to browse pages by letter or
71-
search by English and German.
72-
---
73-
url: "https://spanishdictionary.net/"
74-
title: "Spanish Dictionary"
75-
description: |
76-
This is a free Spanish-English dictionary site built
77-
on top of Dancer. Site allows users to browse pages by letter or
78-
search by English and Spanish.
79-
---
80-
url: "https://italiandictionary.org/"
81-
title: "Italian Dictionary"
82-
description: |
83-
This is a free Italian-English dictionary site built
84-
on top of Dancer. Site allows users to browse pages by letter or
85-
search by English and Italian.
86-
---
87-
url: "https://greek-dictionary.org/"
88-
title: "Greek Dictionary"
89-
description: |
90-
Free English to Greek dictionary. Browse by letter. Search by word or phrase.
91-
---
92-
url: "https://www.ijedomestics.co.uk/"
93-
title: "IJE Domestic Appliance Repairs"
94-
description: |
95-
A small business website powered by Dancer and written by David Precious
96-
---
97-
url: "https://perlresume.org/"
98-
title: "Perl Résumé"
99-
description: |
100-
Your Perl Résumé generated automatically based on your CPAN experience,
101-
activity and impact. Website by <a href="https://showmetheco.de/">vti</a>.
102-
source: "https://github.com/vti/perlresume.org"
103-
---
104-
url: "https://www.imaginaryrobots.net/"
105-
title: "Imaginary Robots"
106-
description: "Jesse van Herk's website/blog"
107-
---
108-
url: "https://www.leecarmichael.com/"
109-
title: "Lee Carmichael"
110-
description: |
111-
Blog of a software engineer/programmer/coder working on web applications,
112-
data munging, daemons and other various things
113-
---
114-
url: "https://www.finchleyspiritualistchurch.org.uk/"
115-
title: "Finchley Spiritualist Church, London"
116-
description: |
117-
Website of a church at Woodberry Grove which has served the community
118-
for more than 80 years
119-
---
120-
url: "https://www.lauramccartney.co.uk/"
121-
title: "Laura McCartney's portfolio"
122-
description: |
123-
UK artist's Dancer-powered portfolio site, developed by LoonyPandora
124-
---
125-
url: "https://www.brandweersliedrecht.nl/"
126-
title: "Brandweer Sliedrecht"
127-
description: |
128-
<a href="https://en.wikipedia.org/wiki/Sliedrecht">Sliedrecht</a> (a
129-
mid-sized Netherlands town) fire department website
130-
---
131-
url: "https://ralphschuler.ch/"
132-
title: "Ralph Schuler"
133-
description: "Personal website"
134-
---
135-
url: "https://www.maxi-tip.cz/"
136-
title: "Maxi-Tip"
137-
description: |
138-
Czech sports betting site
139-
---
140-
url: "https://theanarchistlibrary.org/"
141-
title: "The Anarchist Library"
142-
description: |
143-
A wiki using the Dancer-powered <a href="https://gitorious.org/amuse-wiki">
144-
amuse-wiki</a>
145-
---
146-
url: "https://www.usedcarsgroup.com/"
147-
title: "Used Cars Group"
148-
description: "A high traffic used cars for sale website in US"
149-
---
150-
url: "https://geekuni.com/"
151-
title: "Geekuni"
152-
description: "An online programming school with a course on Dancer"
153-
---
154-
url: "https://perlmaven.com/"
155-
title: "Perl Maven"
156-
description: "The biggest source of Perl-related articles and screencasts running on Dancer 2. Offering courses in Perl for Beginners and for web developmers who want to use Dancer."
157-
source: "https://github.com/szabgab/Perl-Maven"
158-
dancer: 2
159-
---
160-
url: "https://www.dicionario-aberto.net/"
161-
title: "Dicionário-Aberto"
162-
description: "A Portuguese open dictionary project"
1+
companies:
2+
-
3+
url: "https://wellsfargo.com"
4+
title: "Wells Fargo"
5+
logo: "wellsfargo-logo.png"
6+
-
7+
url: "https://aflac.com"
8+
title: "Aflac"
9+
logo: "aflac-logo.png"
10+
-
11+
url: "https://bbc.com"
12+
title: "BBC"
13+
logo: "bbc-logo.png"
14+
-
15+
url: "https://cpanel.net"
16+
title: "cPanel"
17+
logo: "cpanel-logo.png"
18+
-
19+
url: "https://hostgator.com"
20+
title: "HostGator"
21+
logo: "hostgator-logo.png"
22+
-
23+
url: "https://knowmad.com"
24+
title: "Knowmad Digital Marketing"
25+
logo: "knowmad-logo.png"
26+
-
27+
url: "https://www.cv-library.co.uk/"
28+
title: "CV-Library"
29+
description: "The UK's largest independent job site"
30+
logo: "cv-library-logo.png"
31+
-
32+
url: "https://elibraryusa.state.gov/"
33+
title: "eLibraryUSA"
34+
description: |
35+
Gives members of Information Resource Centers, American Corners,
36+
and other American Spaces around the world access to information
37+
Americans find at their public libraries, with a broad range of
38+
learning resources.
39+
logo: "eLibraryUSA-logo.png"
40+
-
41+
url: "https://www.uk2.net/"
42+
title: "UK2"
43+
description: |
44+
UK2 uses Dancer to power in-house REST API applications, along with
45+
holding pages and webdiversion for hundreds of thousands of customer domains.
46+
logo: "uk2-logo.png"
47+
-
48+
url: "https://www.thegamecrafter.com/"
49+
title: "The Game Crafter"
50+
description: |
51+
World's first web-to-print company specialising in the table top game
52+
industry. Produce your own card / board games. Created by JT Smith
53+
of Plain Black.
54+
logo: "thegamecrafter-logo.png"
55+
-
56+
url: "https://www.posandro.com/"
57+
title: "POSANDRO (Android Point of Sale application)"
58+
description: |
59+
An Android point of sale application whose back-end is powered by Dancer.
60+
logo: "posandro-logo.png"
61+
-
62+
url: "https://geekuni.com/"
63+
title: "Geekuni"
64+
description: "An online programming school with a course on Dancer"
65+
logo: "geekuni-logo.png"
66+
-
67+
url: "https://www.quttera.com/"
68+
title: "Quttera"
69+
description: |
70+
Quttera is a website security provider that scans websites for
71+
malicious and suspicious activity.
72+
logo: "quttera-logo.png"
73+
74+
other_sites:
75+
-
76+
url: "https://www.perldancer.org/"
77+
title: "PerlDancer website"
78+
description: "Unsurprisingly this site is built using Dancer."
79+
source: "https://github.com/PerlDancer/perldancer-website"
80+
dancer: 2
81+
-
82+
url: "https://advent.perldancer.org/"
83+
title: "PerlDancer Advent Calendar"
84+
description: |
85+
The PerlDancer Advent Calendar is written entirely with Dancer, using the
86+
POD format for articles.
87+
source: "https://github.com/PerlDancer/advent-calendar"
88+
-
89+
url: "https://perlmaven.com/"
90+
title: "Perl Maven"
91+
description: "The biggest source of Perl-related articles and screencasts running on Dancer 2. Offering courses in Perl for Beginners and for web developmers who want to use Dancer."
92+
source: "https://github.com/szabgab/Perl-Maven"
93+
dancer: 2
94+
-
95+
url: "https://www.ijedomestics.co.uk/"
96+
title: "IJE Domestic Appliance Repairs"
97+
description: |
98+
A small business website powered by Dancer and written by David Precious
99+
-
100+
url: "https://www.lauramccartney.co.uk/"
101+
title: "Laura McCartney's portfolio"
102+
description: |
103+
UK artist's Dancer-powered portfolio site, developed by LoonyPandora
104+
-
105+
url: "https://www.brandweersliedrecht.nl/"
106+
title: "Brandweer Sliedrecht"
107+
description: |
108+
<a href="https://en.wikipedia.org/wiki/Sliedrecht">Sliedrecht</a> (a
109+
mid-sized Netherlands town) fire department website
110+
-
111+
url: "https://theanarchistlibrary.org/"
112+
title: "The Anarchist Library"
113+
description: |
114+
A wiki using the Dancer-powered <a href="https://gitorious.org/amuse-wiki">
115+
amuse-wiki</a>
116+
-
117+
url: "https://www.dicionario-aberto.net/"
118+
title: "Dicionário-Aberto"
119+
description: "A Portuguese open dictionary project"
163120

lib/PerlDancer.pm

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use Dancer2;
44
use Template;
55
use LWP::Simple ();
66
use List::Util;
7-
use WebService::Bluga::Webthumb;
87
use YAML;
98
use File::Basename qw(dirname);
109

@@ -29,9 +28,10 @@ get '/testimonials' => sub {
2928
};
3029

3130
get '/dancefloor' => sub {
31+
# other_sites, companies
3232
template 'dancefloor-display' => {
3333
sites => _get_dancefloor_sites(),
34-
title => 'The Dancefloor - web site and web applications built on top of Perl Dancer',
34+
title => 'The Dancefloor - web sites and web applications built on top of Perl Dancer',
3535
};
3636
};
3737

@@ -84,22 +84,10 @@ sub _get_dancefloor_sites {
8484
my $dancefloor_sites_yaml = Dancer2::FileUtils::read_file_content(
8585
path( setting('appdir'), 'dancefloor.yml' )
8686
) or die "Failed to read sites from config";
87-
my @dancefloor_sites = YAML::Load($dancefloor_sites_yaml)
87+
my $dancefloor_sites = YAML::Load($dancefloor_sites_yaml)
8888
or die "Failed to parse sites YAML";
8989

90-
my $webthumb_api = from_yaml(
91-
scalar Dancer2::FileUtils::read_file_content(
92-
path( setting('appdir'), 'webthumb-api.yml')
93-
)
94-
) or die "Failed to read webthumb API details from config";
95-
96-
my $wt = WebService::Bluga::Webthumb->new(%$webthumb_api);
97-
for my $site (@dancefloor_sites) {
98-
# Work out the URL to a thumbnail
99-
$site->{thumb_url} = $wt->thumb_url($site->{url})
100-
if $site->{url};
101-
}
102-
return [ sort { rand } @dancefloor_sites ];
90+
return $dancefloor_sites;
10391
}
10492

10593
true;

public/css/style.css

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -387,17 +387,9 @@ ul.spacy li {
387387
box-shadow:#000 0px 0px 5px;
388388
}
389389

390-
.dancefloor-site {
391-
float: left;
392-
width: 250px;
393-
height: 300px;
394-
border: 1px solid #008;
395-
padding: 10px;
396-
margin: 10px;
397-
overflow: auto;
398-
}
399-
.dancefloor-site IMG { margin: auto }
400-
.dancefloor-site P>B { margin: auto }
390+
.dancefloor P { margin: auto; padding-bottom: 10px; }
391+
.dancefloor IMG { margin: auto; padding-bottom: 10px; }
392+
.dancefloor-site P>B { margin: auto; padding-top: 10px;}
401393

402394
.dancefloor-button {
403395
margin: 20px;

public/images/logos/.DS_Store

6 KB
Binary file not shown.

public/images/logos/aflac-logo.png

15.5 KB
Loading

public/images/logos/bbc-logo.png

6.21 KB
Loading
9.41 KB
Loading
8.71 KB
Loading
20.4 KB
Loading

0 commit comments

Comments
 (0)