|
1 | 1 | function register ({ registerHook, peertubeHelpers }) {
|
| 2 | + |
| 3 | + const baseStaticUrl = peertubeHelpers.getBaseStaticRoute() |
2 | 4 |
|
3 | 5 | const CC_VIDEO_LICENCES = {
|
4 | 6 | 1: {
|
5 | 7 | label: "CC BY 4.0",
|
6 |
| - image: "https://licensebuttons.net/l/by/4.0/80x15.png", |
| 8 | + image: baseStaticUrl + "/images/by.png", |
7 | 9 | href: "https://creativecommons.org/licenses/by/4.0/"
|
8 | 10 | },
|
9 | 11 | 2: {
|
10 | 12 | 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", |
12 | 14 | href: "https://creativecommons.org/licenses/by-sa/4.0/"
|
13 | 15 | },
|
14 | 16 | 3: {
|
15 | 17 | 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", |
17 | 19 | href: "https://creativecommons.org/licenses/by-nd/4.0/"
|
18 | 20 | },
|
19 | 21 | 4: {
|
20 | 22 | 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", |
22 | 24 | href: "https://creativecommons.org/licenses/by-nc/4.0/"
|
23 | 25 | },
|
24 | 26 | 5: {
|
25 | 27 | 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", |
27 | 29 | href: "https://creativecommons.org/licenses/by-nc-sa/4.0/"
|
28 | 30 | },
|
29 | 31 | 6: {
|
30 | 32 | 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", |
32 | 34 | href: "https://creativecommons.org/licenses/by-nc-nd/4.0/"
|
33 | 35 | },
|
34 | 36 | 7: {
|
35 | 37 | label: "CC0 1.0",
|
36 |
| - image: "https://licensebuttons.net/l/zero/1.0/80x15.png", |
| 38 | + image: baseStaticUrl + "/images/cc-zero.png", |
37 | 39 | href: "https://creativecommons.org/publicdomain/zero/1.0/"
|
38 | 40 | },
|
39 | 41 | 8: {
|
40 | 42 | label: "Public Domain Mark 1.0",
|
41 |
| - image: "https://licensebuttons.net/l/publicdomain/80x15.png", |
| 43 | + image: baseStaticUrl + "/images/publicdomain.png", |
42 | 44 | href: "https://creativecommons.org/publicdomain/mark/1.0/"
|
43 | 45 | }
|
44 | 46 | }
|
|
0 commit comments