mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-16 18:23:43 +00:00
Allow blurring content in development
This commit is contained in:
parent
70331bfb81
commit
9b14b4a3d1
3
.env
3
.env
@ -26,5 +26,4 @@ VITE_BUGSNAG_API_KEY=
|
|||||||
VITE_BUILD_HASH=
|
VITE_BUILD_HASH=
|
||||||
VITE_LOG_LEVEL=error
|
VITE_LOG_LEVEL=error
|
||||||
VITE_ENABLE_MARKET=true
|
VITE_ENABLE_MARKET=true
|
||||||
|
VITE_BLUR_CONTENT=false
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# 0.4.9
|
# 0.4.9
|
||||||
|
|
||||||
- [x] Add person zaps
|
- [x] Add person zaps
|
||||||
|
- [x] Bring back delete
|
||||||
|
|
||||||
# 0.4.8
|
# 0.4.8
|
||||||
|
|
||||||
|
@ -297,7 +297,9 @@
|
|||||||
}}>Show</Anchor>
|
}}>Show</Anchor>
|
||||||
</p>
|
</p>
|
||||||
{:else}
|
{:else}
|
||||||
<NoteContent note={event} {showEntire} {showMedia} />
|
<div class:blur-sm={$env.BLUR_CONTENT}>
|
||||||
|
<NoteContent note={event} {showEntire} {showMedia} />
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="cy-note-click-target h-[2px]" />
|
<div class="cy-note-click-target h-[2px]" />
|
||||||
<NoteActions
|
<NoteActions
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import Anchor from "src/partials/Anchor.svelte"
|
import Anchor from "src/partials/Anchor.svelte"
|
||||||
import FlexColumn from "src/partials/FlexColumn.svelte"
|
import FlexColumn from "src/partials/FlexColumn.svelte"
|
||||||
import {router} from "src/app/util/router"
|
import {router} from "src/app/util/router"
|
||||||
import {deleteEventById} from "src/engine"
|
import {deleteEvent} from "src/engine"
|
||||||
|
|
||||||
export let eid
|
export let eid
|
||||||
export let kind
|
export let kind
|
||||||
@ -10,7 +10,7 @@
|
|||||||
const onCancel = () => router.pop()
|
const onCancel = () => router.pop()
|
||||||
|
|
||||||
const onConfirm = () => {
|
const onConfirm = () => {
|
||||||
deleteEventById({kind, id: eid})
|
deleteEvent({kind, id: eid})
|
||||||
router.pop()
|
router.pop()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -669,12 +669,6 @@ export const publishDeletion = ({kind, address = null, id = null}) => {
|
|||||||
export const deleteEvent = event =>
|
export const deleteEvent = event =>
|
||||||
publishDeletion({id: event.id, address: getAddress(event), kind: event.kind})
|
publishDeletion({id: event.id, address: getAddress(event), kind: event.kind})
|
||||||
|
|
||||||
export const deleteEventById = ({kind, id}) =>
|
|
||||||
publishDeletion({
|
|
||||||
kind,
|
|
||||||
id,
|
|
||||||
})
|
|
||||||
|
|
||||||
export const deleteEventByAddress = address =>
|
export const deleteEventByAddress = address =>
|
||||||
publishDeletion({address, kind: Address.from(address).kind})
|
publishDeletion({address, kind: Address.from(address).kind})
|
||||||
|
|
||||||
|
@ -172,6 +172,7 @@ export const env = new Writable({
|
|||||||
DVM_RELAYS: fromCsv(import.meta.env.VITE_DVM_RELAYS).map(normalizeRelayUrl) as string[],
|
DVM_RELAYS: fromCsv(import.meta.env.VITE_DVM_RELAYS).map(normalizeRelayUrl) as string[],
|
||||||
ENABLE_MARKET: JSON.parse(import.meta.env.VITE_ENABLE_MARKET) as boolean,
|
ENABLE_MARKET: JSON.parse(import.meta.env.VITE_ENABLE_MARKET) as boolean,
|
||||||
ENABLE_ZAPS: JSON.parse(import.meta.env.VITE_ENABLE_ZAPS) as boolean,
|
ENABLE_ZAPS: JSON.parse(import.meta.env.VITE_ENABLE_ZAPS) as boolean,
|
||||||
|
BLUR_CONTENT: JSON.parse(import.meta.env.VITE_BLUR_CONTENT) as boolean,
|
||||||
FORCE_GROUP: import.meta.env.VITE_FORCE_GROUP as string,
|
FORCE_GROUP: import.meta.env.VITE_FORCE_GROUP as string,
|
||||||
IMGPROXY_URL: import.meta.env.VITE_IMGPROXY_URL as string,
|
IMGPROXY_URL: import.meta.env.VITE_IMGPROXY_URL as string,
|
||||||
MULTIPLEXTR_URL: import.meta.env.VITE_MULTIPLEXTR_URL as string,
|
MULTIPLEXTR_URL: import.meta.env.VITE_MULTIPLEXTR_URL as string,
|
||||||
|
Loading…
Reference in New Issue
Block a user