Files
tubearchivist/frontend/src/components/SearchExampleQueries.tsx
Merlin 83bb7f678b DRAFT: Add Tubearchivist Frontend React dev docker setup (#768)
* Add development docker-compose file

* Add /new/ path in nginx conf

* Add frontend production setup

* Fix lint

* Refac move prod docker compose into non suffixed file

* Fix run.sh fileendings on windows

* Fix docker file naming consistancies

* Add frontend dev setup

* Add docker compose dev command

* Refac remove docker network

* Fix potential error causes

* Chore update react-router-dom

* Add redirect to login after logout

* Refac allow basic auth for session login in api

* Fix loginresponsetype optional property

* Refac move isAdmin check into page Base

* Refac use node lts for dev container

* Refac remove old setup in readme

* Refac move getisAdmin into loader and rename

* Refac remove manual csrf cookie handing from actions and loader

* Fix post requiring csrf header & cookie

* Fix remove empty files

* Refac revert dockerfile changes

* Refac revert gitatrributes changes

* Refac revert docker changes

* Refac revert nginx changes

* Refac revert docker change

* Refac move frontend into frontend folder

* Add production steps to dockerfile

* Refac implement endpoint renaming

* Refac remove frontend dockerfile

* Add credentials include for dev env

* Fix allow cors with credentials for dev environment

* Fix images in dev mode

* Add credentials for dev mode to all loader and actions, except signin

* Revert cors config

* Revert cors config

* Fix nginx not serving /youtube/

* Fix video url missing api

* Fix media url missing api

* Add application settings page

* Add continue vids

* Add csrf to delete requests

* Refac use api/video endpoint with filter to home, channel, playlist pages

* Add channel nav request

* Add channel playlists

* Fix filterbar for playlist in channel

* Add playlist_nav to video page

* Add downloads aggs

* Refac remove basic auth

* Fix credentials include in signin

* Refac user config to user me config

* Add ApiToken get
2024-08-11 00:53:50 +07:00

117 lines
3.9 KiB
TypeScript

const SearchExampleQueries = () => {
return (
<div id="multi-search-results-placeholder">
<div>
<h2>Example queries</h2>
<ul>
<li>
<span className="value">music video</span> basic search
</li>
<li>
<span>video: active:</span>
<span className="value">no</span> all videos deleted from YouTube
</li>
<li>
<span>video:</span>
<span className="value">learn javascript</span>
<span> channel:</span>
<span className="value">corey schafer</span>
<span> active:</span>
<span className="value">yes</span>
</li>
<li>
<span>channel:</span>
<span className="value">linux</span>
<span> subscribed:</span>
<span className="value">yes</span>
</li>
<li>
<span>playlist:</span>
<span className="value">backend engineering</span>
<span> active:</span>
<span className="value">yes</span>
<span> subscribed:</span>
<span className="value">yes</span>
</li>
</ul>
</div>
<div>
<h2>Keywords cheatsheet</h2>
<p>
For detailed usage check{' '}
<a href="https://docs.tubearchivist.com/search/" target="_blank">
wiki
</a>
.
</p>
<div>
<ul>
<li>
<span>simple:</span> (implied) search in video titles, channel names and playlist
titles
</li>
<li>
<span>video:</span> search in video titles, tags and category field
<ul>
<li>
<span>channel:</span> channel name
</li>
<li>
<span>active:</span>
<span className="value">yes/no</span> whether the video is still active on
YouTube
</li>
</ul>
</li>
<li>
<span>channel:</span> search in channel name and channel description
<ul>
<li>
<span>subscribed:</span>
<span className="value">yes/no</span> whether you are subscribed to the channel
</li>
<li>
<span>active:</span>
<span className="value">yes/no</span> whether the video is still active on
YouTube
</li>
</ul>
</li>
<li>
<span>playlist:</span> search in channel name and channel description
<ul>
<li>
<span>subscribed:</span>
<span className="value">yes/no</span> whether you are subscribed to the channel
</li>
<li>
<span>active:</span>
<span className="value">yes/no</span> whether the video is still active on
YouTube
</li>
</ul>
</li>
<li>
<span>full:</span> search in video subtitles
<ul>
<li>
<span>lang:</span> subtitles language (use two-letter ISO country code, same as
the one from settings page)
</li>
<li>
<span>source:</span>
<span className="value">auto/user</span> <i>auto</i> to search though
auto-generated subtitles only, or <i>user</i> to search through user-uploaded
subtitles only
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
);
};
export default SearchExampleQueries;