-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix * Remove * Remove swiper * Update to svelte 4 * Update to 2 * Update to latest * Remove swiper * Add alias * Update * Update stuck list * Update log * Update sentry * Add fly deployment * Add canister_ids json * Add vite config * Use node adapter * Remove splash group * Add build command * Updaye lockfile * Update sentry * Log * Update path * Clean * Optimize * Use server load * Remove * Fix index * Save snapshot * Move hls script to server hook * Cleanup fonts * Create declaration package * Add ignore * Add update script * fix * Update backend to latest * Update to latest * Update declaration path * Add popup * simplify * Update layout * Create components * Update deps * Move vote * Update ref * Fix * Update report usage * Use components for all apps * Move to lib * Update tailwind * Update tailwind * Remove build defualt * Update * Move to root fly deploy * Update ingore * Update build process * Update config * remove * Update config * Add slide * Enable filtering * Do not filter closed bet * Add imgLoaded logic * Update image url * Load profile posts from server * Add store * Add nsfw filter * Add nsfw toggle
- Loading branch information
1 parent
ef3adf1
commit 0527a30
Showing
311 changed files
with
7,370 additions
and
9,385 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
.../components/coming-soon/ComingSoon.svelte → .../components/coming-soon/ComingSoon.svelte
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,11 @@ | ||
<feed | ||
style="height: 100vh;" | ||
class="relative block h-full w-full overflow-hidden text-white"> | ||
<slot name="content" /> | ||
<div class="absolute inset-x-0 top-0 z-[5]"> | ||
<slot name="top" /> | ||
</div> | ||
<div class="pointer-events-none absolute inset-x-0 bottom-0 z-[5] max-h-48"> | ||
<slot name="bottom-navigation" /> | ||
</div> | ||
</feed> |
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,11 @@ | ||
<home | ||
style="height: 100dvh;" | ||
class="relative block h-full w-full overflow-hidden text-white"> | ||
<slot name="content" /> | ||
<div class="absolute inset-x-0 top-4 z-[11]"> | ||
<slot name="top" /> | ||
</div> | ||
<div class="absolute inset-x-0 bottom-0 z-[10] max-h-16"> | ||
<slot name="bottom-navigation" /> | ||
</div> | ||
</home> |
13 changes: 4 additions & 9 deletions
13
...lient/src/components/home/Selector.svelte → packages/components/home/Selector.svelte
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,25 @@ | ||
{ | ||
"name": "@hnn/components", | ||
"version": "1.0.0", | ||
"description": "Svelte Components", | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"private": true, | ||
"scripts": { | ||
"check": "svelte-check --tsconfig ./tsconfig.json --ignore .svelte-kit,build,tests --threshold warning --diagnostic-sources \"js,ts,svelte\"" | ||
}, | ||
"dependencies": { | ||
"@hnn/components": "*", | ||
"clsx": "2.1.0", | ||
"throttle-debounce": "5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@sentry/sveltekit": "7.91.0", | ||
"@tailwindcss/forms": "0.5.7", | ||
"svelte": "4.2.8", | ||
"svelte-check": "3.6.2", | ||
"tailwindcss": "3.4.0", | ||
"typescript": "5.3.3" | ||
} | ||
} |
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,34 @@ | ||
<script lang="ts"> | ||
import Button from '../button/Button.svelte' | ||
import IconButton from '../button/IconButton.svelte' | ||
import { fade } from 'svelte/transition' | ||
export let show = false | ||
</script> | ||
|
||
<div | ||
transition:fade | ||
class="absolute inset-0 z-[98] flex h-full w-full items-center justify-center bg-black/80"> | ||
<div class="flex max-w-sm flex-col space-y-14"> | ||
<IconButton | ||
iconName="close" | ||
iconClass="h-8 w-8 text-white" | ||
on:click={() => (show = false)} | ||
class="absolute right-5 top-5 rounded-full bg-black/50 p-2" /> | ||
<div class="flex flex-col items-center"> | ||
<div class="pb-2 text-center text-3xl font-bold text-white"> | ||
Try the Brand New <span class="text-green-500">Up</span> | ||
- | ||
<span class="text-red-500">Down</span> | ||
Game | ||
</div> | ||
<div class="pb-2 text-center text-lg text-white"> | ||
Brought to you by Hot or Not | ||
</div> | ||
</div> | ||
|
||
<Button href="https://hotornot.lol" target="_blank" type="primary"> | ||
Play Now! | ||
</Button> | ||
</div> | ||
</div> |
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,58 @@ | ||
<script lang="ts"> | ||
import Button from '../button/Button.svelte' | ||
import Popup from './Popup.svelte' | ||
import type { PostReportData, ProfileReportData } from './ReportPopup.types' | ||
import { createEventDispatcher } from 'svelte' | ||
export let show = false | ||
export let type: 'post' | 'profile' | ||
export let reportData: PostReportData | ProfileReportData | ||
let loading = false | ||
let selectedReason = '' | ||
const dispatch = createEventDispatcher<{ | ||
close: void | ||
report: { | ||
type: 'post' | 'profile' | ||
selectedReason: string | ||
data: PostReportData | ProfileReportData | ||
} | ||
}>() | ||
function confirmReport() { | ||
if (selectedReason) { | ||
dispatch('report', { | ||
type, | ||
selectedReason: selectedReason, | ||
data: reportData, | ||
}) | ||
show = false | ||
} | ||
} | ||
</script> | ||
|
||
<Popup on:close showCloseButton bind:show> | ||
<div class="flex flex-col space-y-4"> | ||
<div class="text-md pb-2 text-center text-black">Report {type}</div> | ||
<div class="text-md pb-2 text-center text-black"> | ||
Please select a reason why you are reporting this {type} | ||
</div> | ||
<select | ||
class="rounded-sm border-0 text-black disabled:text-black/50" | ||
bind:value={selectedReason}> | ||
<option value="" disabled selected>Click a reason</option> | ||
<option value="nudity">Nudity/Porn</option> | ||
<option value="violence">Violence/Gore</option> | ||
<option value="offensive">Offensive</option> | ||
<option value="spam">Spam/Ad</option> | ||
<option value="others">Others</option> | ||
</select> | ||
<Button | ||
on:click={confirmReport} | ||
disabled={loading || !selectedReason} | ||
type="primary"> | ||
Report | ||
</Button> | ||
</div> | ||
</Popup> |
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,14 @@ | ||
export type ReportType = 'profile' | 'post' | ||
|
||
export type PostReportData = { | ||
postCanisterId: string | ||
postUploadedByUserId: string | ||
postId: string | ||
reportedByUserId: string | ||
videoUid: string | ||
} | ||
|
||
export type ProfileReportData = { | ||
userId: string | ||
reportedByUserId: string | ||
} |
File renamed without changes.
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,15 @@ | ||
<script lang="ts"> | ||
export let checked = false | ||
export let disabled = false | ||
</script> | ||
|
||
<button | ||
{disabled} | ||
on:click={() => (checked = !checked)} | ||
class="flex h-[1.4rem] w-10 items-center justify-start rounded-full transition-all duration-500 | ||
{checked ? 'bg-white' : 'bg-transparent ring-1 ring-white'} | ||
{disabled ? 'opacity-50' : 'opacity-100'}"> | ||
<div | ||
class="h-4 w-4 rounded-full transition-all duration-500 | ||
{checked ? 'translate-x-5 bg-primary' : 'translate-x-1 bg-white'} " /> | ||
</button> |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...nt/src/components/tabs/ProfileTabs.svelte → packages/components/tabs/ProfileTabs.svelte
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
3 changes: 1 addition & 2 deletions
3
...rc/components/tags-input/TagsInput.svelte → ...es/components/tags-input/TagsInput.svelte
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
Oops, something went wrong.