Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ In this Privacy Notice, we explain what data may be accessible to Mozilla or oth
- Microsoft Bing Video & Image Search: https://privacy.microsoft.com/en-us/privacystatement
- Tenor: https://tenor.com/legal-privacy
- Sketchfab: https://sketchfab.com/privacy
- Google Poly & YouTube: https://policies.google.com/privacy
- YouTube: https://policies.google.com/privacy
- Twitch: https://www.twitch.tv/p/legal/privacy-policy/

<details open>
Expand Down
2 changes: 1 addition & 1 deletion admin/src/react-components/system-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class SystemEditorComponent extends Component {
<ListItemText
primary={
<span>
Add your API keys for Google Analytics, Sketchfab, Google Poly, Discord, etc. - &nbsp;
Add your API keys for Google Analytics, Sketchfab, Discord, etc. - &nbsp;
<i>Server Settings menu &nbsp;&gt;&nbsp;API Keys tab</i>
</span>
}
Expand Down
18 changes: 0 additions & 18 deletions src/react-components/media-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const PRIVACY_POLICY_LINKS = {
images: "https://privacy.microsoft.com/en-us/privacystatement",
gifs: "https://tenor.com/legal-privacy",
sketchfab: "https://sketchfab.com/privacy",
poly: "https://policies.google.com/privacy",
youtube: "https://policies.google.com/privacy",
twitch: "https://www.twitch.tv/p/legal/privacy-policy/"
};
Expand All @@ -52,18 +51,6 @@ const DEFAULT_FACETS = {
{ text: "Sports", params: { filter: "sports-fitness" } },
{ text: "Weapons", params: { filter: "weapons-military" } }
],
poly: [
{ text: "Featured", params: { filter: "" } },
{ text: "Animals", params: { filter: "animals" } },
{ text: "Architecture", params: { filter: "architecture" } },
{ text: "Art", params: { filter: "art" } },
{ text: "Food", params: { filter: "food" } },
{ text: "Nature", params: { filter: "nature" } },
{ text: "Objects", params: { filter: "objects" } },
{ text: "People", params: { filter: "people" } },
{ text: "Scenes", params: { filter: "scenes" } },
{ text: "Transport", params: { filter: "transport" } }
],
avatars: [
{ text: "Featured", params: { filter: "featured" } },
{ text: "My Avatars", params: { filter: "my-avatars" } },
Expand Down Expand Up @@ -94,10 +81,6 @@ const poweredByMessages = defineMessages({
id: "media-browser.powered_by.sketchfab",
defaultMessage: "Search by Sketchfab"
},
poly: {
id: "media-browser.powered_by.poly",
defaultMessage: "Search by Google"
},
twitch: {
id: "media-browser.powered_by.twitch",
defaultMessage: "Search by Twitch"
Expand Down Expand Up @@ -132,7 +115,6 @@ const searchPlaceholderMessages = defineMessages({
gifs: { id: "media-browser.search-placeholder.gifs", defaultMessage: "Search for GIFs..." },
twitch: { id: "media-browser.search-placeholder.twitch", defaultMessage: "Search for Twitch streams..." },
sketchfab: { id: "media-browser.search-placeholder.sketchfab", defaultMessage: "Search Sketchfab Models..." },
poly: { id: "media-browser.search-placeholder.poly", defaultMessage: "Search Google Poly Models..." },
default: { id: "media-browser.search-placeholder.default", defaultMessage: "Search..." }
});

Expand Down
1 change: 0 additions & 1 deletion src/react-components/room/MediaBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const navTitleMessages = defineMessages({
scenes: { id: "media-browser.nav_title.scenes", defaultMessage: "Scenes" },
avatars: { id: "media-browser.nav_title.avatars", defaultMessage: "Avatars" },
sketchfab: { id: "media-browser.nav_title.sketchfab", defaultMessage: "Sketchfab" },
poly: { id: "media-browser.nav_title.poly", defaultMessage: "Google Poly" },
twitch: { id: "media-browser.nav_title.twitch", defaultMessage: "Twitch" }
});

Expand Down
1 change: 0 additions & 1 deletion src/react-components/room/MediaTiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { ReactComponent as ExternalLinkIcon } from "../icons/ExternalLink.svg";

const PUBLISHER_FOR_ENTRY_TYPE = {
sketchfab_model: "Sketchfab",
poly_model: "Google Poly",
twitch_stream: "Twitch"
};

Expand Down
16 changes: 2 additions & 14 deletions src/react-components/room/ObjectUrlModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function ObjectUrlModal({ showModelCollectionLink, modelCollectionUrl, on
{showModelCollectionLink ? (
<FormattedMessage
id="object-url-modal.message-with-collection"
defaultMessage="Upload or paste a URL to an image, video, model, or scene. Models can be found on <sketchfablink>Sketchfab</sketchfablink> and <polylink>Google Poly</polylink>, or our <collectionlink>collection</collectionlink>."
defaultMessage="Upload or paste a URL to an image, video, model, or scene. Models can be found on <sketchfablink>Sketchfab</sketchfablink> or our <collectionlink>collection</collectionlink>."
values={{
// eslint-disable-next-line react/display-name
sketchfablink: chunks => (
Expand All @@ -75,12 +75,6 @@ export function ObjectUrlModal({ showModelCollectionLink, modelCollectionUrl, on
</a>
),
// eslint-disable-next-line react/display-name
polylink: chunks => (
<a href="http://poly.google.com/" target="_blank" rel="noopener noreferrer">
{chunks}
</a>
),
// eslint-disable-next-line react/display-name
collectionlink: chunks => (
<a href={modelCollectionUrl} target="_blank" rel="noopener noreferrer">
{chunks}
Expand All @@ -91,7 +85,7 @@ export function ObjectUrlModal({ showModelCollectionLink, modelCollectionUrl, on
) : (
<FormattedMessage
id="object-url-modal.message"
defaultMessage="Upload or paste a URL to an image, video, model, or scene. Models can be found on <sketchfablink>Sketchfab</sketchfablink> and <polylink>Google Poly</polylink>."
defaultMessage="Upload or paste a URL to an image, video, model, or scene. Models can be found on <sketchfablink>Sketchfab</sketchfablink>."
values={{
// eslint-disable-next-line react/display-name
sketchfablink: chunks => (
Expand All @@ -102,12 +96,6 @@ export function ObjectUrlModal({ showModelCollectionLink, modelCollectionUrl, on
>
{chunks}
</a>
),
// eslint-disable-next-line react/display-name
polylink: chunks => (
<a href="http://poly.google.com/" target="_blank" rel="noopener noreferrer">
{chunks}
</a>
)
}}
/>
Expand Down
4 changes: 1 addition & 3 deletions src/react-components/room/RoomSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ function SceneAttribution({ attribution }) {
if (attribution.url) {
const source = attribution.url.includes("sketchfab.com")
? "Sketchfab"
: attribution.url.includes("poly.google.com")
? "Google Poly"
: null;
: null;

return (
<li className={styles.attribution}>
Expand Down
4 changes: 1 addition & 3 deletions src/react-components/room/useObjectList.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ function getDisplayString(el) {
}

const firstPart =
url.indexOf("poly.google") !== -1
? "Google Poly"
: url.indexOf("sketchfab.com") !== -1
url.indexOf("sketchfab.com") !== -1
? "Sketchfab"
: url.indexOf("youtube.com") !== -1
? "YouTube"
Expand Down
11 changes: 2 additions & 9 deletions src/react-components/scene-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,7 @@ class SceneUI extends Component {
const _name = name || title || unknown;
const _author = author || unknown;

if (url) {
if (url.includes("sketchfab.com")) {
source = "Sketchfab";
} else if (url.includes("poly.google.com")) {
source = "Google Poly";
}
}
source = url && url.includes("sketchfab.com") ? "Sketchfab" : "";

if (remix) {
<span className="remix">
Expand All @@ -117,8 +111,7 @@ class SceneUI extends Component {
author: _author,
a: chunks =>
url ? (
<a href={url} target="_blank" rel="noopener noreferrer">
{chunks}
<a href={url} target="_blank" rel="noopener noreferrer"> {chunks}
</a>
) : (
<>{chunks}</>
Expand Down