Skip to content

Commit 9181313

Browse files
committed
Add baseStaticUrl and replace images with PNG format
1 parent 09a8939 commit 9181313

17 files changed

+10
-863
lines changed

client/video-watch-client-plugin.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,46 @@
11
function register ({ registerHook, peertubeHelpers }) {
2+
3+
const baseStaticUrl = peertubeHelpers.getBaseStaticRoute()
24

35
const CC_VIDEO_LICENCES = {
46
1: {
57
label: "CC BY 4.0",
6-
image: "https://licensebuttons.net/l/by/4.0/80x15.png",
8+
image: baseStaticUrl + "/images/by.png",
79
href: "https://creativecommons.org/licenses/by/4.0/"
810
},
911
2: {
1012
label: "CC BY-SA 4.0",
11-
image: "https://licensebuttons.net/l/by-sa/4.0/80x15.png",
13+
image: baseStaticUrl + "/images/by-sa.png",
1214
href: "https://creativecommons.org/licenses/by-sa/4.0/"
1315
},
1416
3: {
1517
label: "CC BY-ND 4.0",
16-
image: "https://licensebuttons.net/l/by-nd/4.0/80x15.png",
18+
image: baseStaticUrl + "/images/by-nd.png",
1719
href: "https://creativecommons.org/licenses/by-nd/4.0/"
1820
},
1921
4: {
2022
label: "CC BY-NC 4.0",
21-
image: "https://licensebuttons.net/l/by-nc/4.0/80x15.png",
23+
image: baseStaticUrl + "/images/by-nc.png",
2224
href: "https://creativecommons.org/licenses/by-nc/4.0/"
2325
},
2426
5: {
2527
label: "CC BY-NC-SA 4.0",
26-
image: "https://licensebuttons.net/l/by-nc-sa/4.0/80x15.png",
28+
image: baseStaticUrl + "/images/by-nc-sa.png",
2729
href: "https://creativecommons.org/licenses/by-nc-sa/4.0/"
2830
},
2931
6: {
3032
label: "CC BY-NC-ND 4.0",
31-
image: "https://licensebuttons.net/l/by-nc-nd/4.0/80x15.png",
33+
image: baseStaticUrl + "/images/by-nc-nd.png",
3234
href: "https://creativecommons.org/licenses/by-nc-nd/4.0/"
3335
},
3436
7: {
3537
label: "CC0 1.0",
36-
image: "https://licensebuttons.net/l/zero/1.0/80x15.png",
38+
image: baseStaticUrl + "/images/cc-zero.png",
3739
href: "https://creativecommons.org/publicdomain/zero/1.0/"
3840
},
3941
8: {
4042
label: "Public Domain Mark 1.0",
41-
image: "https://licensebuttons.net/l/publicdomain/80x15.png",
43+
image: baseStaticUrl + "/images/publicdomain.png",
4244
href: "https://creativecommons.org/publicdomain/mark/1.0/"
4345
}
4446
}

public/images/by-nc-nd.png

461 Bytes
Loading

public/images/by-nc-nd.svg

Lines changed: 0 additions & 121 deletions
This file was deleted.

public/images/by-nc-sa.png

467 Bytes
Loading

0 commit comments

Comments
 (0)