Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Refactor license constants and utils #1393

Merged
merged 12 commits into from
May 15, 2022
Merged

Refactor license constants and utils #1393

merged 12 commits into from
May 15, 2022

Conversation

dhruvkb
Copy link
Member

@dhruvkb dhruvkb commented May 5, 2022

Description

This PR refactors and cleans up in the implementation of license constants and utils and their usage in the code.

This PR increases the code's parity with the frontend. A similar effort on the frontend is happening in WordPress/openverse-api#685.

Testing Instructions

Since this is a refactor, there are no changes to test but rather the test is that there should be no changes.

  1. Check out the PR and run the dev server.
  2. Visit the single result page and see that all 3 of the attribution tabs show the same content as before.
  3. Try to copy the attribution using the copy button, it should be copied correctly to the clipboard.
  4. Verify by pasting in a rich text editor like WordPad on Windows or TextEdit in RTF mode on macOS.
  5. Try pasting HTML in an HTML viewer. You should see the hyperlinks and icons.

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the default branch of the repository (main) or a parent feature branch.
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added or updated tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@dhruvkb dhruvkb added 🟩 priority: low Low priority and doesn't need to be rushed ✨ goal: improvement Improvement to an existing user-facing feature 💻 aspect: code Concerns the software code in the repository labels May 5, 2022
@github-actions
Copy link

github-actions bot commented May 5, 2022

Storybook and Tailwind configuration previews: Ready

Storybook: https://wordpress.github.io/openverse-frontend/1393
Tailwind: https://wordpress.github.io/openverse-frontend/1393/tailwind

Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again.

You can check the GitHub pages deployment action list to see the current status of the deployments.

@dhruvkb dhruvkb changed the title Invert implementation to remove double negatives Refactor license constants and utils May 5, 2022
@github-actions
Copy link

github-actions bot commented May 5, 2022

Size Change: +23.7 kB (+2%)

Total Size: 1.43 MB

Filename Size Change
./.nuxt/dist/client/235.js 0 B -273 B (removed) 🏆
./.nuxt/dist/client/235.modern.js 0 B -277 B (removed) 🏆
./.nuxt/dist/client/236.js 0 B -1.85 kB (removed) 🏆
./.nuxt/dist/client/app.js 109 kB -52 B (0%)
./.nuxt/dist/client/app.modern.js 102 kB +1 B (0%)
./.nuxt/dist/client/commons/app.js 83.1 kB -2 B (0%)
./.nuxt/dist/client/components/extension-browsers.js 817 B +1 B (0%)
./.nuxt/dist/client/components/extension-browsers.modern.js 822 B +1 B (0%)
./.nuxt/dist/client/components/loading-icon.js 766 B +1 B (0%)
./.nuxt/dist/client/components/v-all-results-grid.js 4.15 kB -2 B (0%)
./.nuxt/dist/client/components/v-audio-details.js 1.56 kB +1 B (0%)
./.nuxt/dist/client/components/v-audio-details.modern.js 1.56 kB +2 B (0%)
./.nuxt/dist/client/components/v-audio-track.js 4.46 kB +1 B (0%)
./.nuxt/dist/client/components/v-audio-track.modern.js 4.44 kB +5 B (0%)
./.nuxt/dist/client/components/v-bone.js 684 B +3 B (0%)
./.nuxt/dist/client/components/v-box-layout.js 1.2 kB +1 B (0%)
./.nuxt/dist/client/components/v-box-layout.modern.js 1.19 kB -3 B (0%)
./.nuxt/dist/client/components/v-content-link.js 1.06 kB -1 B (0%)
./.nuxt/dist/client/components/v-content-link.modern.js 1.04 kB -1 B (0%)
./.nuxt/dist/client/components/v-content-page.js 459 B -1 B (0%)
./.nuxt/dist/client/components/v-content-page.modern.js 464 B -1 B (0%)
./.nuxt/dist/client/components/v-content-report-button.modern.js 777 B -3 B (0%)
./.nuxt/dist/client/components/v-content-report-form.js 3.77 kB +4 B (0%)
./.nuxt/dist/client/components/v-content-report-form.modern.js 3.58 kB -4 B (0%)
./.nuxt/dist/client/components/v-content-report-popover.js 4.44 kB +2 B (0%)
./.nuxt/dist/client/components/v-content-report-popover.modern.js 4.24 kB -7 B (0%)
./.nuxt/dist/client/components/v-copy-button.js 3.94 kB -1 B (0%)
./.nuxt/dist/client/components/v-copy-button.modern.js 3.95 kB +1 B (0%)
./.nuxt/dist/client/components/v-copy-license.js 2.97 kB -1.13 kB (-28%) 🎉
./.nuxt/dist/client/components/v-copy-license.modern.js 2.94 kB -1.11 kB (-27%) 🎉
./.nuxt/dist/client/components/v-dmca-notice.js 751 B -1 B (0%)
./.nuxt/dist/client/components/v-dmca-notice.modern.js 758 B -1 B (0%)
./.nuxt/dist/client/components/v-error-image.js 1.75 kB -912 B (-34%) 🎉
./.nuxt/dist/client/components/v-error-image.modern.js 1.73 kB -886 B (-34%) 🎉
./.nuxt/dist/client/components/v-error-section.js 387 B +1 B (0%)
./.nuxt/dist/client/components/v-full-layout.js 1.53 kB +5 B (0%)
./.nuxt/dist/client/components/v-full-layout.modern.js 1.52 kB +2 B (0%)
./.nuxt/dist/client/components/v-grid-skeleton.js 1.64 kB +2 B (0%)
./.nuxt/dist/client/components/v-grid-skeleton.modern.js 1.64 kB -2 B (0%)
./.nuxt/dist/client/components/v-image-cell.js 1.48 kB -1 B (0%)
./.nuxt/dist/client/components/v-image-details.modern.js 1.44 kB -1 B (0%)
./.nuxt/dist/client/components/v-image-grid.js 2.62 kB +4 B (0%)
./.nuxt/dist/client/components/v-image-grid.modern.js 2.51 kB +2 B (0%)
./.nuxt/dist/client/components/v-license-tab-panel.modern.js 919 B +2 B (0%)
./.nuxt/dist/client/components/v-load-more.modern.js 662 B +1 B (0%)
./.nuxt/dist/client/components/v-media-license.js 811 B +1 B (0%)
./.nuxt/dist/client/components/v-media-license.modern.js 814 B -4 B (0%)
./.nuxt/dist/client/components/v-media-reuse.js 1.02 kB +1 B (0%)
./.nuxt/dist/client/components/v-media-reuse.modern.js 1.03 kB -1 B (0%)
./.nuxt/dist/client/components/v-meta-search-form.js 3.02 kB -1 B (0%)
./.nuxt/dist/client/components/v-meta-search-form.modern.js 2.99 kB -1 B (0%)
./.nuxt/dist/client/components/v-meta-source-list.js 2.3 kB -1 B (0%)
./.nuxt/dist/client/components/v-meta-source-list.modern.js 2.29 kB -2 B (0%)
./.nuxt/dist/client/components/v-modal.modern.js 880 B -1 B (0%)
./.nuxt/dist/client/components/v-no-results.js 2.5 kB -1 B (0%)
./.nuxt/dist/client/components/v-no-results.modern.js 2.49 kB -1 B (0%)
./.nuxt/dist/client/components/v-radio.modern.js 1.48 kB -2 B (0%)
./.nuxt/dist/client/components/v-related-audio.js 1.25 kB +2 B (0%)
./.nuxt/dist/client/components/v-related-images.js 2.77 kB +5 B (0%)
./.nuxt/dist/client/components/v-related-images.modern.js 2.65 kB +2 B (0%)
./.nuxt/dist/client/components/v-report-desc-form.modern.js 962 B +1 B (0%)
./.nuxt/dist/client/components/v-row-layout.js 1.8 kB -6 B (0%)
./.nuxt/dist/client/components/v-row-layout.modern.js 1.81 kB +1 B (0%)
./.nuxt/dist/client/components/v-search-grid.js 5.36 kB -891 B (-14%) 👏
./.nuxt/dist/client/components/v-search-grid.modern.js 5.32 kB -850 B (-14%) 👏
./.nuxt/dist/client/components/v-search-results-title.modern.js 658 B -1 B (0%)
./.nuxt/dist/client/components/v-search-type-radio.js 832 B +1 B (0%)
./.nuxt/dist/client/components/v-search-type-radio.modern.js 819 B -2 B (0%)
./.nuxt/dist/client/components/v-server-timeout.modern.js 320 B +1 B (0%)
./.nuxt/dist/client/components/v-sketch-fab-viewer.modern.js 895 B +1 B (0%)
./.nuxt/dist/client/components/v-skip-to-content-container.js 903 B +2 B (0%)
./.nuxt/dist/client/components/v-skip-to-content-container.modern.js 906 B +1 B (0%)
./.nuxt/dist/client/components/v-tab-panel.js 688 B -1 B (0%)
./.nuxt/dist/client/components/v-tab-panel.modern.js 684 B -1 B (0%)
./.nuxt/dist/client/components/v-tabs.modern.js 741 B -1 B (0%)
./.nuxt/dist/client/components/v-warning-suppressor.js 300 B -1 B (0%)
./.nuxt/dist/client/lang-cy.json.js 9.4 kB +1 B (0%)
./.nuxt/dist/client/lang-da.json.modern.js 8.72 kB +1 B (0%)
./.nuxt/dist/client/lang-de.json.js 10 kB +1 B (0%)
./.nuxt/dist/client/lang-de.json.modern.js 10 kB +1 B (0%)
./.nuxt/dist/client/lang-el.json.js 11.5 kB -1 B (0%)
./.nuxt/dist/client/lang-en-au.json.js 809 B -1 B (0%)
./.nuxt/dist/client/lang-en-ca.json.modern.js 7.91 kB -1 B (0%)
./.nuxt/dist/client/lang-en-gb.json.modern.js 8.59 kB -1 B (0%)
./.nuxt/dist/client/lang-en.json.modern.js 8.47 kB +1 B (0%)
./.nuxt/dist/client/lang-es-ar.json.modern.js 8.9 kB +1 B (0%)
./.nuxt/dist/client/lang-es-do.json.js 5.01 kB +1 B (0%)
./.nuxt/dist/client/lang-es-do.json.modern.js 5.02 kB +1 B (0%)
./.nuxt/dist/client/lang-es-ec.json.js 9.12 kB +1 B (0%)
./.nuxt/dist/client/lang-es-ve.json.js 9.12 kB +1 B (0%)
./.nuxt/dist/client/lang-es-ve.json.modern.js 9.12 kB +1 B (0%)
./.nuxt/dist/client/lang-fa.json.modern.js 3.76 kB -1 B (0%)
./.nuxt/dist/client/lang-gl.json.modern.js 9.2 kB +1 B (0%)
./.nuxt/dist/client/lang-it.json.modern.js 9.37 kB +1 B (0%)
./.nuxt/dist/client/lang-ja.json.modern.js 4.73 kB +1 B (0%)
./.nuxt/dist/client/lang-kir.json.modern.js 912 B +1 B (0%)
./.nuxt/dist/client/lang-ne.json.js 331 B +1 B (0%)
./.nuxt/dist/client/lang-ne.json.modern.js 336 B +1 B (0%)
./.nuxt/dist/client/lang-pt-ao.json.modern.js 158 B +1 B (+1%)
./.nuxt/dist/client/lang-pt.json.js 434 B +1 B (0%)
./.nuxt/dist/client/lang-ro.json.modern.js 9.56 kB +1 B (0%)
./.nuxt/dist/client/lang-ru.json.js 3.66 kB +1 B (0%)
./.nuxt/dist/client/lang-sq.json.modern.js 9.78 kB +1 B (0%)
./.nuxt/dist/client/lang-ssw.json.modern.js 156 B +1 B (+1%)
./.nuxt/dist/client/lang-sv.json.js 4.96 kB -1 B (0%)
./.nuxt/dist/client/lang-zh-cn.json.js 5.04 kB +1 B (0%)
./.nuxt/dist/client/lang-zh-cn.json.modern.js 5.05 kB +1 B (0%)
./.nuxt/dist/client/lang-zh-tw.json.modern.js 4.11 kB +1 B (0%)
./.nuxt/dist/client/pages/about.modern.js 1.05 kB -1 B (0%)
./.nuxt/dist/client/pages/audio/_id.js 6.29 kB +2.26 kB (+56%) 🆘
./.nuxt/dist/client/pages/audio/_id.modern.js 6.13 kB +2.22 kB (+57%) 🆘
./.nuxt/dist/client/pages/extension.js 2.19 kB +2 B (0%)
./.nuxt/dist/client/pages/extension.modern.js 2.2 kB +1 B (0%)
./.nuxt/dist/client/pages/feedback.js 3.24 kB -5 B (0%)
./.nuxt/dist/client/pages/feedback.modern.js 3.21 kB -7 B (0%)
./.nuxt/dist/client/pages/image/_id.js 6.51 kB +6 B (0%)
./.nuxt/dist/client/pages/image/_id.modern.js 6.29 kB -3 B (0%)
./.nuxt/dist/client/pages/index.js 5.07 kB +3 B (0%)
./.nuxt/dist/client/pages/index.modern.js 4.93 kB -1 B (0%)
./.nuxt/dist/client/pages/meta-search.js 1.67 kB -1 B (0%)
./.nuxt/dist/client/pages/meta-search.modern.js 1.68 kB +3 B (0%)
./.nuxt/dist/client/pages/preferences.js 1.24 kB +1 B (0%)
./.nuxt/dist/client/pages/search.js 2.58 kB +3 B (0%)
./.nuxt/dist/client/pages/search.modern.js 2.45 kB -1 B (0%)
./.nuxt/dist/client/pages/search/audio.js 2.85 kB -1 B (0%)
./.nuxt/dist/client/pages/search/audio.modern.js 2.73 kB +2 B (0%)
./.nuxt/dist/client/pages/search/image.js 3 kB +3 B (0%)
./.nuxt/dist/client/pages/search/image.modern.js 2.87 kB +1 B (0%)
./.nuxt/dist/client/pages/search/index.js 806 B -1 B (0%)
./.nuxt/dist/client/pages/search/index.modern.js 717 B +1 B (0%)
./.nuxt/dist/client/pages/search/search-page.types.modern.js 271 B +1 B (0%)
./.nuxt/dist/client/pages/sources.js 1.42 kB -1 B (0%)
./.nuxt/dist/client/runtime.js 2.74 kB +45 B (+2%)
./.nuxt/dist/client/runtime.modern.js 2.75 kB +44 B (+2%)
./.nuxt/dist/client/vendors/app.js 49 kB -2 B (0%)
./.nuxt/dist/client/vendors/app.modern.js 48.4 kB +1 B (0%)
./.nuxt/dist/client/vendors/sentry.js 41.5 kB +4 B (0%)
./.nuxt/dist/client/vendors/sentry.modern.js 41.5 kB -8 B (0%)
./.nuxt/dist/client/237.js 273 B +273 B (new file) 🆕
./.nuxt/dist/client/237.modern.js 277 B +277 B (new file) 🆕
./.nuxt/dist/client/238.js 1.85 kB +1.85 kB (new file) 🆕
./.nuxt/dist/client/components/v-copy-license/components/v-error-image/components/v-media-reuse/components/v-search-grid/09090664.js 9.54 kB +9.54 kB (new file) 🆕
./.nuxt/dist/client/components/v-copy-license/components/v-error-image/components/v-media-reuse/components/v-search-grid/09090664.modern.js 9.51 kB +9.51 kB (new file) 🆕
./.nuxt/dist/client/components/v-media-reuse/pages/image/_id.js 2.97 kB +2.97 kB (new file) 🆕
./.nuxt/dist/client/components/v-media-reuse/pages/image/_id.modern.js 2.94 kB +2.94 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
./.nuxt/dist/client/commons/app.modern.js 71.9 kB
./.nuxt/dist/client/components/loading-icon.modern.js 771 B
./.nuxt/dist/client/components/table-sort-icon.js 515 B
./.nuxt/dist/client/components/table-sort-icon.modern.js 519 B
./.nuxt/dist/client/components/v-all-results-grid.modern.js 4.01 kB
./.nuxt/dist/client/components/v-audio-cell.js 341 B
./.nuxt/dist/client/components/v-audio-cell.modern.js 346 B
./.nuxt/dist/client/components/v-audio-track-skeleton.js 1 kB
./.nuxt/dist/client/components/v-audio-track-skeleton.modern.js 1 kB
./.nuxt/dist/client/components/v-back-to-search-results-link.js 576 B
./.nuxt/dist/client/components/v-back-to-search-results-link.modern.js 580 B
./.nuxt/dist/client/components/v-bone.modern.js 687 B
./.nuxt/dist/client/components/v-content-report-button.js 778 B
./.nuxt/dist/client/components/v-error-section.modern.js 391 B
./.nuxt/dist/client/components/v-image-cell-square.js 1.01 kB
./.nuxt/dist/client/components/v-image-cell-square.modern.js 1.01 kB
./.nuxt/dist/client/components/v-image-cell.modern.js 1.47 kB
./.nuxt/dist/client/components/v-image-details.js 1.44 kB
./.nuxt/dist/client/components/v-license-tab-panel.js 922 B
./.nuxt/dist/client/components/v-load-more.js 766 B
./.nuxt/dist/client/components/v-media-tag.js 422 B
./.nuxt/dist/client/components/v-media-tag.modern.js 426 B
./.nuxt/dist/client/components/v-modal.js 877 B
./.nuxt/dist/client/components/v-radio.js 1.53 kB
./.nuxt/dist/client/components/v-related-audio.modern.js 1.25 kB
./.nuxt/dist/client/components/v-report-desc-form.js 958 B
./.nuxt/dist/client/components/v-scroll-button.js 800 B
./.nuxt/dist/client/components/v-scroll-button.modern.js 809 B
./.nuxt/dist/client/components/v-search-results-title.js 666 B
./.nuxt/dist/client/components/v-server-timeout.js 315 B
./.nuxt/dist/client/components/v-sidebar-content.js 446 B
./.nuxt/dist/client/components/v-sidebar-content.modern.js 447 B
./.nuxt/dist/client/components/v-sketch-fab-viewer.js 996 B
./.nuxt/dist/client/components/v-sources-table.js 14.3 kB
./.nuxt/dist/client/components/v-sources-table.modern.js 14.3 kB
./.nuxt/dist/client/components/v-tab.js 1.77 kB
./.nuxt/dist/client/components/v-tab.modern.js 1.76 kB
./.nuxt/dist/client/components/v-tabs.js 755 B
./.nuxt/dist/client/components/v-warning-suppressor.modern.js 305 B
./.nuxt/dist/client/lang-af.json.js 147 B
./.nuxt/dist/client/lang-af.json.modern.js 154 B
./.nuxt/dist/client/lang-am.json.js 147 B
./.nuxt/dist/client/lang-am.json.modern.js 154 B
./.nuxt/dist/client/lang-an.json.js 147 B
./.nuxt/dist/client/lang-an.json.modern.js 153 B
./.nuxt/dist/client/lang-ar.json.js 251 B
./.nuxt/dist/client/lang-ar.json.modern.js 255 B
./.nuxt/dist/client/lang-arq.json.js 148 B
./.nuxt/dist/client/lang-arq.json.modern.js 155 B
./.nuxt/dist/client/lang-ary.json.js 148 B
./.nuxt/dist/client/lang-ary.json.modern.js 155 B
./.nuxt/dist/client/lang-as.json.js 147 B
./.nuxt/dist/client/lang-as.json.modern.js 154 B
./.nuxt/dist/client/lang-az-tr.json.js 150 B
./.nuxt/dist/client/lang-az-tr.json.modern.js 157 B
./.nuxt/dist/client/lang-az.json.js 147 B
./.nuxt/dist/client/lang-az.json.modern.js 154 B
./.nuxt/dist/client/lang-azb.json.js 148 B
./.nuxt/dist/client/lang-azb.json.modern.js 155 B
./.nuxt/dist/client/lang-ba.json.js 147 B
./.nuxt/dist/client/lang-ba.json.modern.js 154 B
./.nuxt/dist/client/lang-bel.json.js 148 B
./.nuxt/dist/client/lang-bel.json.modern.js 155 B
./.nuxt/dist/client/lang-bg.json.js 147 B
./.nuxt/dist/client/lang-bg.json.modern.js 154 B
./.nuxt/dist/client/lang-bn-in.json.js 150 B
./.nuxt/dist/client/lang-bn-in.json.modern.js 156 B
./.nuxt/dist/client/lang-bn.json.js 147 B
./.nuxt/dist/client/lang-bn.json.modern.js 153 B
./.nuxt/dist/client/lang-bo.json.js 147 B
./.nuxt/dist/client/lang-bo.json.modern.js 154 B
./.nuxt/dist/client/lang-br.json.js 147 B
./.nuxt/dist/client/lang-br.json.modern.js 154 B
./.nuxt/dist/client/lang-bs.json.js 147 B
./.nuxt/dist/client/lang-bs.json.modern.js 154 B
./.nuxt/dist/client/lang-ca.json.js 9.33 kB
./.nuxt/dist/client/lang-ca.json.modern.js 9.33 kB
./.nuxt/dist/client/lang-ckb.json.js 148 B
./.nuxt/dist/client/lang-ckb.json.modern.js 155 B
./.nuxt/dist/client/lang-co.json.js 147 B
./.nuxt/dist/client/lang-co.json.modern.js 154 B
./.nuxt/dist/client/lang-cor.json.js 148 B
./.nuxt/dist/client/lang-cor.json.modern.js 155 B
./.nuxt/dist/client/lang-cs.json.js 9.71 kB
./.nuxt/dist/client/lang-cs.json.modern.js 9.72 kB
./.nuxt/dist/client/lang-cy.json.modern.js 9.41 kB
./.nuxt/dist/client/lang-da.json.js 8.72 kB
./.nuxt/dist/client/lang-de-at.json.js 150 B
./.nuxt/dist/client/lang-de-at.json.modern.js 157 B
./.nuxt/dist/client/lang-de-ch.json.js 150 B
./.nuxt/dist/client/lang-de-ch.json.modern.js 157 B
./.nuxt/dist/client/lang-dv.json.js 147 B
./.nuxt/dist/client/lang-dv.json.modern.js 154 B
./.nuxt/dist/client/lang-dzo.json.js 148 B
./.nuxt/dist/client/lang-dzo.json.modern.js 155 B
./.nuxt/dist/client/lang-el.json.modern.js 11.5 kB
./.nuxt/dist/client/lang-en-au.json.modern.js 813 B
./.nuxt/dist/client/lang-en-ca.json.js 7.91 kB
./.nuxt/dist/client/lang-en-gb.json.js 8.59 kB
./.nuxt/dist/client/lang-en-nz.json.js 150 B
./.nuxt/dist/client/lang-en-nz.json.modern.js 157 B
./.nuxt/dist/client/lang-en-za.json.js 5.22 kB
./.nuxt/dist/client/lang-en-za.json.modern.js 5.23 kB
./.nuxt/dist/client/lang-en.json.js 8.47 kB
./.nuxt/dist/client/lang-eo.json.js 147 B
./.nuxt/dist/client/lang-eo.json.modern.js 154 B
./.nuxt/dist/client/lang-es-ar.json.js 8.9 kB
./.nuxt/dist/client/lang-es-cl.json.js 150 B
./.nuxt/dist/client/lang-es-cl.json.modern.js 157 B
./.nuxt/dist/client/lang-es-co.json.js 9.11 kB
./.nuxt/dist/client/lang-es-co.json.modern.js 9.12 kB
./.nuxt/dist/client/lang-es-cr.json.js 150 B
./.nuxt/dist/client/lang-es-cr.json.modern.js 157 B
./.nuxt/dist/client/lang-es-ec.json.modern.js 9.12 kB
./.nuxt/dist/client/lang-es-gt.json.js 151 B
./.nuxt/dist/client/lang-es-gt.json.modern.js 158 B
./.nuxt/dist/client/lang-es-hn.json.js 151 B
./.nuxt/dist/client/lang-es-hn.json.modern.js 157 B
./.nuxt/dist/client/lang-es-mx.json.js 9.34 kB
./.nuxt/dist/client/lang-es-mx.json.modern.js 9.35 kB
./.nuxt/dist/client/lang-es-pe.json.js 151 B
./.nuxt/dist/client/lang-es-pe.json.modern.js 158 B
./.nuxt/dist/client/lang-es-pr.json.js 151 B
./.nuxt/dist/client/lang-es-pr.json.modern.js 158 B
./.nuxt/dist/client/lang-es-uy.json.js 151 B
./.nuxt/dist/client/lang-es-uy.json.modern.js 158 B
./.nuxt/dist/client/lang-es.json.js 9.33 kB
./.nuxt/dist/client/lang-es.json.modern.js 9.34 kB
./.nuxt/dist/client/lang-et.json.js 148 B
./.nuxt/dist/client/lang-et.json.modern.js 155 B
./.nuxt/dist/client/lang-eu.json.js 148 B
./.nuxt/dist/client/lang-eu.json.modern.js 155 B
./.nuxt/dist/client/lang-fa-af.json.js 151 B
./.nuxt/dist/client/lang-fa-af.json.modern.js 158 B
./.nuxt/dist/client/lang-fa.json.js 3.76 kB
./.nuxt/dist/client/lang-fi.json.js 148 B
./.nuxt/dist/client/lang-fi.json.modern.js 155 B
./.nuxt/dist/client/lang-fo.json.js 148 B
./.nuxt/dist/client/lang-fo.json.modern.js 155 B
./.nuxt/dist/client/lang-fr-be.json.js 151 B
./.nuxt/dist/client/lang-fr-be.json.modern.js 158 B
./.nuxt/dist/client/lang-fr-ca.json.js 151 B
./.nuxt/dist/client/lang-fr-ca.json.modern.js 158 B
./.nuxt/dist/client/lang-fr.json.js 7.1 kB
./.nuxt/dist/client/lang-fr.json.modern.js 7.1 kB
./.nuxt/dist/client/lang-fuc.json.js 149 B
./.nuxt/dist/client/lang-fuc.json.modern.js 156 B
./.nuxt/dist/client/lang-fy.json.js 148 B
./.nuxt/dist/client/lang-fy.json.modern.js 155 B
./.nuxt/dist/client/lang-ga.json.js 148 B
./.nuxt/dist/client/lang-ga.json.modern.js 155 B
./.nuxt/dist/client/lang-gd.json.js 148 B
./.nuxt/dist/client/lang-gd.json.modern.js 155 B
./.nuxt/dist/client/lang-gl.json.js 9.2 kB
./.nuxt/dist/client/lang-gu.json.js 148 B
./.nuxt/dist/client/lang-gu.json.modern.js 155 B
./.nuxt/dist/client/lang-hat.json.js 149 B
./.nuxt/dist/client/lang-hat.json.modern.js 156 B
./.nuxt/dist/client/lang-hau.json.js 149 B
./.nuxt/dist/client/lang-hau.json.modern.js 156 B
./.nuxt/dist/client/lang-he.json.js 148 B
./.nuxt/dist/client/lang-he.json.modern.js 155 B
./.nuxt/dist/client/lang-hi.json.js 204 B
./.nuxt/dist/client/lang-hi.json.modern.js 210 B
./.nuxt/dist/client/lang-hr.json.js 148 B
./.nuxt/dist/client/lang-hr.json.modern.js 155 B
./.nuxt/dist/client/lang-hu.json.js 148 B
./.nuxt/dist/client/lang-hu.json.modern.js 155 B
./.nuxt/dist/client/lang-hy.json.js 148 B
./.nuxt/dist/client/lang-hy.json.modern.js 155 B
./.nuxt/dist/client/lang-ibo.json.js 149 B
./.nuxt/dist/client/lang-ibo.json.modern.js 156 B
./.nuxt/dist/client/lang-id.json.js 8.45 kB
./.nuxt/dist/client/lang-id.json.modern.js 8.46 kB
./.nuxt/dist/client/lang-ido.json.js 149 B
./.nuxt/dist/client/lang-ido.json.modern.js 156 B
./.nuxt/dist/client/lang-is.json.js 148 B
./.nuxt/dist/client/lang-is.json.modern.js 155 B
./.nuxt/dist/client/lang-it.json.js 9.37 kB
./.nuxt/dist/client/lang-ja.json.js 4.72 kB
./.nuxt/dist/client/lang-jv.json.js 148 B
./.nuxt/dist/client/lang-jv.json.modern.js 155 B
./.nuxt/dist/client/lang-ka.json.js 148 B
./.nuxt/dist/client/lang-ka.json.modern.js 155 B
./.nuxt/dist/client/lang-kal.json.js 149 B
./.nuxt/dist/client/lang-kal.json.modern.js 156 B
./.nuxt/dist/client/lang-kin.json.js 149 B
./.nuxt/dist/client/lang-kin.json.modern.js 155 B
./.nuxt/dist/client/lang-kir.json.js 907 B
./.nuxt/dist/client/lang-kk.json.js 148 B
./.nuxt/dist/client/lang-kk.json.modern.js 155 B
./.nuxt/dist/client/lang-km.json.js 148 B
./.nuxt/dist/client/lang-km.json.modern.js 155 B
./.nuxt/dist/client/lang-kmr.json.js 149 B
./.nuxt/dist/client/lang-kmr.json.modern.js 156 B
./.nuxt/dist/client/lang-kn.json.js 3.28 kB
./.nuxt/dist/client/lang-kn.json.modern.js 3.28 kB
./.nuxt/dist/client/lang-ko.json.js 148 B
./.nuxt/dist/client/lang-ko.json.modern.js 155 B
./.nuxt/dist/client/lang-lb.json.js 148 B
./.nuxt/dist/client/lang-lb.json.modern.js 155 B
./.nuxt/dist/client/lang-li.json.js 148 B
./.nuxt/dist/client/lang-li.json.modern.js 155 B
./.nuxt/dist/client/lang-lin.json.js 149 B
./.nuxt/dist/client/lang-lin.json.modern.js 155 B
./.nuxt/dist/client/lang-lo.json.js 148 B
./.nuxt/dist/client/lang-lo.json.modern.js 155 B
./.nuxt/dist/client/lang-lt.json.js 148 B
./.nuxt/dist/client/lang-lt.json.modern.js 155 B
./.nuxt/dist/client/lang-lug.json.js 149 B
./.nuxt/dist/client/lang-lug.json.modern.js 156 B
./.nuxt/dist/client/lang-lv.json.js 6.73 kB
./.nuxt/dist/client/lang-lv.json.modern.js 6.73 kB
./.nuxt/dist/client/lang-mg.json.js 148 B
./.nuxt/dist/client/lang-mg.json.modern.js 155 B
./.nuxt/dist/client/lang-mk.json.js 148 B
./.nuxt/dist/client/lang-mk.json.modern.js 155 B
./.nuxt/dist/client/lang-ml.json.js 148 B
./.nuxt/dist/client/lang-ml.json.modern.js 155 B
./.nuxt/dist/client/lang-mn.json.js 148 B
./.nuxt/dist/client/lang-mn.json.modern.js 154 B
./.nuxt/dist/client/lang-mr.json.js 148 B
./.nuxt/dist/client/lang-mr.json.modern.js 155 B
./.nuxt/dist/client/lang-mri.json.js 149 B
./.nuxt/dist/client/lang-mri.json.modern.js 156 B
./.nuxt/dist/client/lang-ms.json.js 148 B
./.nuxt/dist/client/lang-ms.json.modern.js 155 B
./.nuxt/dist/client/lang-mya.json.js 149 B
./.nuxt/dist/client/lang-mya.json.modern.js 156 B
./.nuxt/dist/client/lang-nb.json.js 3.36 kB
./.nuxt/dist/client/lang-nb.json.modern.js 3.37 kB
./.nuxt/dist/client/lang-nl-be.json.js 9.42 kB
./.nuxt/dist/client/lang-nl-be.json.modern.js 9.43 kB
./.nuxt/dist/client/lang-nl.json.js 6.47 kB
./.nuxt/dist/client/lang-nl.json.modern.js 6.47 kB
./.nuxt/dist/client/lang-nn.json.js 148 B
./.nuxt/dist/client/lang-nn.json.modern.js 154 B
./.nuxt/dist/client/lang-oci.json.js 149 B
./.nuxt/dist/client/lang-oci.json.modern.js 156 B
./.nuxt/dist/client/lang-ory.json.js 149 B
./.nuxt/dist/client/lang-ory.json.modern.js 156 B
./.nuxt/dist/client/lang-os.json.js 148 B
./.nuxt/dist/client/lang-os.json.modern.js 155 B
./.nuxt/dist/client/lang-pl.json.js 148 B
./.nuxt/dist/client/lang-pl.json.modern.js 155 B
./.nuxt/dist/client/lang-ps.json.js 148 B
./.nuxt/dist/client/lang-ps.json.modern.js 155 B
./.nuxt/dist/client/lang-pt-ao.json.js 151 B
./.nuxt/dist/client/lang-pt-br.json.js 5.59 kB
./.nuxt/dist/client/lang-pt-br.json.modern.js 5.59 kB
./.nuxt/dist/client/lang-pt.json.modern.js 438 B
./.nuxt/dist/client/lang-ro.json.js 9.55 kB
./.nuxt/dist/client/lang-roh.json.js 149 B
./.nuxt/dist/client/lang-roh.json.modern.js 156 B
./.nuxt/dist/client/lang-ru.json.modern.js 3.66 kB
./.nuxt/dist/client/lang-sa-in.json.js 151 B
./.nuxt/dist/client/lang-sa-in.json.modern.js 157 B
./.nuxt/dist/client/lang-si.json.js 148 B
./.nuxt/dist/client/lang-si.json.modern.js 155 B
./.nuxt/dist/client/lang-sk.json.js 268 B
./.nuxt/dist/client/lang-sk.json.modern.js 271 B
./.nuxt/dist/client/lang-sl.json.js 148 B
./.nuxt/dist/client/lang-sl.json.modern.js 155 B
./.nuxt/dist/client/lang-sna.json.js 149 B
./.nuxt/dist/client/lang-sna.json.modern.js 156 B
./.nuxt/dist/client/lang-snd.json.js 149 B
./.nuxt/dist/client/lang-snd.json.modern.js 156 B
./.nuxt/dist/client/lang-so.json.js 148 B
./.nuxt/dist/client/lang-so.json.modern.js 155 B
./.nuxt/dist/client/lang-sq-xk.json.js 151 B
./.nuxt/dist/client/lang-sq-xk.json.modern.js 158 B
./.nuxt/dist/client/lang-sq.json.js 9.77 kB
./.nuxt/dist/client/lang-sr.json.js 148 B
./.nuxt/dist/client/lang-sr.json.modern.js 155 B
./.nuxt/dist/client/lang-srd.json.js 149 B
./.nuxt/dist/client/lang-srd.json.modern.js 156 B
./.nuxt/dist/client/lang-ssw.json.js 149 B
./.nuxt/dist/client/lang-su.json.js 148 B
./.nuxt/dist/client/lang-su.json.modern.js 155 B
./.nuxt/dist/client/lang-sv.json.modern.js 4.96 kB
./.nuxt/dist/client/lang-sw.json.js 148 B
./.nuxt/dist/client/lang-sw.json.modern.js 155 B
./.nuxt/dist/client/lang-ta-lk.json.js 151 B
./.nuxt/dist/client/lang-ta-lk.json.modern.js 158 B
./.nuxt/dist/client/lang-ta.json.js 148 B
./.nuxt/dist/client/lang-ta.json.modern.js 155 B
./.nuxt/dist/client/lang-tah.json.js 149 B
./.nuxt/dist/client/lang-tah.json.modern.js 156 B
./.nuxt/dist/client/lang-te.json.js 3.52 kB
./.nuxt/dist/client/lang-te.json.modern.js 3.53 kB
./.nuxt/dist/client/lang-tg.json.js 148 B
./.nuxt/dist/client/lang-tg.json.modern.js 155 B
./.nuxt/dist/client/lang-th.json.js 148 B
./.nuxt/dist/client/lang-th.json.modern.js 155 B
./.nuxt/dist/client/lang-tir.json.js 149 B
./.nuxt/dist/client/lang-tir.json.modern.js 156 B
./.nuxt/dist/client/lang-tl.json.js 148 B
./.nuxt/dist/client/lang-tl.json.modern.js 155 B
./.nuxt/dist/client/lang-tr.json.js 1.76 kB
./.nuxt/dist/client/lang-tr.json.modern.js 1.76 kB
./.nuxt/dist/client/lang-tt.json.js 148 B
./.nuxt/dist/client/lang-tt.json.modern.js 155 B
./.nuxt/dist/client/lang-tuk.json.js 149 B
./.nuxt/dist/client/lang-tuk.json.modern.js 156 B
./.nuxt/dist/client/lang-ug.json.js 148 B
./.nuxt/dist/client/lang-ug.json.modern.js 155 B
./.nuxt/dist/client/lang-uk.json.js 148 B
./.nuxt/dist/client/lang-uk.json.modern.js 155 B
./.nuxt/dist/client/lang-ur.json.js 148 B
./.nuxt/dist/client/lang-ur.json.modern.js 155 B
./.nuxt/dist/client/lang-uz.json.js 148 B
./.nuxt/dist/client/lang-uz.json.modern.js 155 B
./.nuxt/dist/client/lang-vi.json.js 148 B
./.nuxt/dist/client/lang-vi.json.modern.js 155 B
./.nuxt/dist/client/lang-wol.json.js 149 B
./.nuxt/dist/client/lang-wol.json.modern.js 156 B
./.nuxt/dist/client/lang-xho.json.js 149 B
./.nuxt/dist/client/lang-xho.json.modern.js 156 B
./.nuxt/dist/client/lang-yor.json.js 149 B
./.nuxt/dist/client/lang-yor.json.modern.js 156 B
./.nuxt/dist/client/lang-zh-hk.json.js 151 B
./.nuxt/dist/client/lang-zh-hk.json.modern.js 158 B
./.nuxt/dist/client/lang-zh-sg.json.js 151 B
./.nuxt/dist/client/lang-zh-sg.json.modern.js 158 B
./.nuxt/dist/client/lang-zh-tw.json.js 4.1 kB
./.nuxt/dist/client/lang-zul.json.js 149 B
./.nuxt/dist/client/lang-zul.json.modern.js 156 B
./.nuxt/dist/client/pages/about.js 1.05 kB
./.nuxt/dist/client/pages/preferences.modern.js 1.24 kB
./.nuxt/dist/client/pages/search-help.js 1.53 kB
./.nuxt/dist/client/pages/search-help.modern.js 1.54 kB
./.nuxt/dist/client/pages/search/search-page.types.js 266 B
./.nuxt/dist/client/pages/search/video.js 257 B
./.nuxt/dist/client/pages/search/video.modern.js 261 B
./.nuxt/dist/client/pages/sources.modern.js 1.43 kB

compressed-size-action

@dhruvkb dhruvkb marked this pull request as ready for review May 10, 2022 15:15
@dhruvkb dhruvkb requested a review from a team as a code owner May 10, 2022 15:15
@dhruvkb dhruvkb requested review from krysal and obulat May 10, 2022 15:15
@sarayourfriend
Copy link
Contributor

@dhruvkb can you add testing instructions (and fill out the checklist)? Thanks!

@dhruvkb
Copy link
Member Author

dhruvkb commented May 10, 2022

@sarayourfriend done!

Copy link
Contributor

@sarayourfriend sarayourfriend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! The visual regression tests under the "media-reuse" tests also confirm there are no changes to the output 🎉

@@ -21,7 +21,7 @@ export interface Media {

license: License
license_version: LicenseVersion
license_url: string
license_url?: string
Copy link
Member

@krysal krysal May 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does the license_url change to an optional field?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Practically it's never undefined, I added that just to ensure that things work even if it was undefined.

Copy link
Contributor

@obulat obulat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to add a different language to the tests?

@dhruvkb
Copy link
Member Author

dhruvkb commented May 15, 2022

@obulat if you mean like for testing i18n, that'll be difficult because we only have the en.json file tracked in the code. All the other languages are retrieved dynamically.

@obulat
Copy link
Contributor

obulat commented May 15, 2022

Oh, that's true!
It might be nice to mock it.
But it's not a blocker.

@dhruvkb dhruvkb enabled auto-merge (squash) May 15, 2022 10:12
@dhruvkb dhruvkb merged commit 0ef2bba into main May 15, 2022
@dhruvkb dhruvkb deleted the license_improv branch May 15, 2022 10:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💻 aspect: code Concerns the software code in the repository ✨ goal: improvement Improvement to an existing user-facing feature 🟩 priority: low Low priority and doesn't need to be rushed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants