diff --git a/config.js b/config.js index 59121e9ae..d62bb3f38 100644 --- a/config.js +++ b/config.js @@ -2,6 +2,8 @@ // On Desktop App, this will find .env.defaults and optional .env in root dir require('dotenv-defaults').config({ silent: false }); +console.log('process.env.SIMPLE_SITE', process.env.SIMPLE_SITE); + const config = { MATOMO_URL: process.env.MATOMO_URL, MATOMO_ID: process.env.MATOMO_ID, diff --git a/ui/component/claimListDiscover/view.jsx b/ui/component/claimListDiscover/view.jsx index 9cdcd0b0f..7db5bad78 100644 --- a/ui/component/claimListDiscover/view.jsx +++ b/ui/component/claimListDiscover/view.jsx @@ -279,7 +279,7 @@ function ClaimListDiscover(props: Props) { if (durationParam) { if (durationParam === CS.DURATION_SHORT) { - options.duration = '<=1800'; + options.duration = '<=240'; } else if (durationParam === CS.DURATION_LONG) { options.duration = '>=1800'; } @@ -472,7 +472,7 @@ function ClaimListDiscover(props: Props) { {!repostedClaimId && (
{headerToUse} - {meta &&
{meta}
} + {meta &&
{meta}
}
)}
{headerToUse} - {meta &&
{meta}
} + {meta &&
{meta}
}
, - tags: string, freshness?: string, defaultFreshness?: string, claimType?: Array, @@ -40,8 +38,6 @@ type Props = { function ClaimListHeader(props: Props) { const { defaultTags, - followedTags, - tags, freshness, defaultFreshness, claimType, @@ -66,12 +62,7 @@ function ClaimListHeader(props: Props) { const [expanded, setExpanded] = usePersistedState(`expanded-${location.pathname}`, false); const [orderParamEntry, setOrderParamEntry] = usePersistedState(`entry-${location.pathname}`, CS.ORDER_BY_TRENDING); const [orderParamUser, setOrderParamUser] = usePersistedState(`orderUser-${location.pathname}`, CS.ORDER_BY_TRENDING); - const followed = (followedTags && followedTags.map(t => t.name)) || []; const urlParams = new URLSearchParams(search); - const tagsParam = // can be 'x,y,z' or 'x' or ['x','y'] or CS.CONSTANT - (tags && getParamFromTags(tags)) || - (urlParams.get(CS.TAGS_KEY) !== null && urlParams.get(CS.TAGS_KEY)) || - (defaultTags && getParamFromTags(defaultTags)); const freshnessParam = freshness || urlParams.get(CS.FRESH_KEY) || defaultFreshness; const contentTypeParam = urlParams.get(CS.CONTENT_KEY); const streamTypeParam = @@ -148,14 +139,6 @@ function ClaimListHeader(props: Props) { push(newSearch); } - function getParamFromTags(t) { - if (t === CS.TAGS_ALL || t === CS.TAGS_FOLLOWED) { - return t; - } else if (Array.isArray(t)) { - return t.join(','); - } - } - function buildUrl(delta) { const newUrlParams = new URLSearchParams(location.search); CS.KEYS.forEach(k => { @@ -226,7 +209,7 @@ function ClaimListHeader(props: Props) { <>
-
+
{!hideFilters && CS.ORDER_BY_TYPES.map(type => (
{expanded && !SIMPLE_SITE && ( <> -
+
{/* FRESHNESS FIELD */} {orderParam === CS.ORDER_BY_TOP && (
@@ -421,8 +405,8 @@ function ClaimListHeader(props: Props) { {CS.DURATION_TYPES.map(dur => ( ))} @@ -430,51 +414,6 @@ function ClaimListHeader(props: Props) {
)} - {/* TAGS FIELD */} - {!tags && ( -
- - handleChange({ - key: CS.TAGS_KEY, - value: e.target.value, - }) - } - > - {[ - CS.TAGS_ALL, - CS.TAGS_FOLLOWED, - ...followed, - ...(followed.includes(tagsParam) || tagsParam === CS.TAGS_ALL || tagsParam === CS.TAGS_FOLLOWED - ? [] - : [tagsParam]), // if they unfollow while filtered, add Other - ].map(tag => ( - - ))} - -
- )} - {/* PAID FIELD */}
-
)}
diff --git a/ui/page/top/view.jsx b/ui/page/top/view.jsx index 77eb572fa..497cbadc0 100644 --- a/ui/page/top/view.jsx +++ b/ui/page/top/view.jsx @@ -31,7 +31,7 @@ function TopPage(props: Props) { )} header={ -
+