-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create the page for sensitive content explanation #3074
Merged
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4d9879b
Create the page for sensitive content explanation
dhruvkb 85a9e51
Merge branch 'main' of https://github.com/WordPress/openverse into se…
dhruvkb e4be495
Update URL for safe-browsing link
dhruvkb 2a240a9
Populate instructions to enable/disable sensitive content
dhruvkb b9289c8
Merge branch 'main' into sensitive_content_page
dhruvkb 370f63a
Update component name
dhruvkb ffb3947
Update title in `useMeta`
dhruvkb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
<template> | ||
<VContentPage> | ||
<h1> | ||
{{ $t("sensitive.title") }} | ||
</h1> | ||
|
||
<i18n path="sensitive.description.content" tag="p"> | ||
<template #openverse>Openverse</template> | ||
<template #wpCoc | ||
><VLink | ||
href="https://make.wordpress.org/handbook/community-code-of-conduct/" | ||
>{{ $t("sensitive.description.wpCoc") }}</VLink | ||
></template | ||
> | ||
<template #deiStatement | ||
><VLink | ||
href="https://make.wordpress.org/handbook/diversity-equity-and-inclusion-in-wordpress/" | ||
>{{ $t("sensitive.description.deiStatement") }}</VLink | ||
></template | ||
> | ||
</i18n> | ||
|
||
<p>{{ $t("sensitive.sensitivity.what", { openverse: "Openverse" }) }}</p> | ||
<p>{{ $t("sensitive.sensitivity.how", { openverse: "Openverse" }) }}</p> | ||
|
||
<!-- TODO | ||
<h2 id="on-off">{{ $t("sensitive.onOff.title") }}</h2> | ||
<p>{{ $t("sensitive.onOff.description", { openverse: "Openverse" }) }}</p> | ||
--> | ||
|
||
<h2 id="designations"> | ||
{{ $t("sensitive.designations.title") }} | ||
</h2> | ||
|
||
<p> | ||
{{ $t("sensitive.designations.description", { openverse: "Openverse" }) }} | ||
</p> | ||
|
||
<h3 id="user-reported-sensitivity"> | ||
{{ $t("sensitive.designations.userReported.title") }} | ||
</h3> | ||
|
||
<i18n path="sensitive.designations.userReported.description" tag="p"> | ||
<template #openverse>Openverse</template> | ||
<template #gutenbergMediaInserter> | ||
<VLink | ||
href="https://learn.wordpress.org/tutorial/add-media-and-openverse-images-to-your-content-directly-from-the-inserter/" | ||
>{{ | ||
$t("sensitive.designations.userReported.gutenbergMediaInserter", { | ||
openverse: "Openverse", | ||
}) | ||
}}</VLink | ||
> | ||
</template> | ||
</i18n> | ||
|
||
<h3 id="sensitive-textual-content"> | ||
{{ $t("sensitive.designations.sensitiveText.title") }} | ||
</h3> | ||
|
||
<i18n path="sensitive.designations.sensitiveText.description" tag="p"> | ||
<template #openverse>Openverse</template> | ||
<template #sensitiveTermsList> | ||
<VLink href="https://github.com/wordpress/openverse-sensitive-terms">{{ | ||
$t("sensitive.designations.sensitiveText.sensitiveTermsList") | ||
}}</VLink> | ||
</template> | ||
<template #imperfect> | ||
<VLink | ||
href="https://docs.openverse.org/projects/proposals/trust_and_safety/detecting_sensitive_textual_content/20230309-implementation_plan_sensitive_terms_list.html#this-will-not-be-perfect" | ||
>{{ | ||
$t("sensitive.designations.sensitiveText.imperfect", { | ||
sectionName: "This will not be perfect", | ||
}) | ||
}}</VLink | ||
> | ||
</template> | ||
</i18n> | ||
|
||
<i18n path="sensitive.designations.sensitiveText.metadata" tag="p"> | ||
<template #openverse>Openverse</template> | ||
<template #notAvailable> | ||
<VLink href="https://github.com/WordPress/openverse/issues/2594">{{ | ||
$t("sensitive.designations.sensitiveText.notAvailable") | ||
}}</VLink> | ||
</template> | ||
</i18n> | ||
|
||
<h2> | ||
{{ $t("sensitive.faq.title") }} | ||
</h2> | ||
|
||
<p> | ||
<strong>{{ $t("sensitive.faq.one.question") }}</strong | ||
><br /> | ||
{{ $t("sensitive.faq.one.answer", { openverse: "Openverse" }) }} | ||
</p> | ||
|
||
<p> | ||
<strong>{{ $t("sensitive.faq.two.question") }}</strong | ||
><br /> | ||
{{ $t("sensitive.faq.two.answerPt1", { openverse: "Openverse" }) }} | ||
</p> | ||
<p>{{ $t("sensitive.faq.two.answerPt2", { openverse: "Openverse" }) }}</p> | ||
|
||
<p> | ||
<strong>{{ | ||
$t("sensitive.faq.three.question", { openverse: "Openverse" }) | ||
}}</strong | ||
><br /> | ||
{{ $t("sensitive.faq.three.answer", { openverse: "Openverse" }) }} | ||
</p> | ||
</VContentPage> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent, useMeta } from "@nuxtjs/composition-api" | ||
|
||
import { useI18n } from "~/composables/use-i18n" | ||
|
||
import VLink from "~/components/VLink.vue" | ||
import VContentPage from "~/components/VContentPage.vue" | ||
|
||
export default defineComponent({ | ||
name: "AboutPage", | ||
dhruvkb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
components: { VLink, VContentPage }, | ||
layout: "content-layout", | ||
setup() { | ||
const i18n = useI18n() | ||
|
||
useMeta({ | ||
title: `${i18n.t("about.title", { | ||
dhruvkb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
openverse: "Openverse", | ||
})} | Openverse`, | ||
meta: [{ hid: "robots", name: "robots", content: "all" }], | ||
}) | ||
}, | ||
head: {}, | ||
}) | ||
</script> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this still be TODO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this as TODO as this is a TODO in the reference Google doc. Alternatively I can write it directly in the PR and we can iterate on it here?