Clean up some env stuff

This commit is contained in:
Jonathan Staab 2023-03-27 09:14:46 -05:00
parent 855fb68f3a
commit a898aa47e7
5 changed files with 13 additions and 63 deletions

2
.env
View File

@ -1,2 +1,4 @@
VITE_THEME_DARK=transparent:transparent,black:#0f0f0e,white:#FFFFFF,accent:#EB5E28,accent-light:#FB652C,gray-1:#FFFFFF,gray-2:#FAF6F1,gray-3:#F2EBE1,gray-4:#E9E0D3,gray-5:#B3AA98,gray-6:#565249,gray-7:#393530,gray-8:#252422,danger:#ff0000,warning:#ebd112,success:#37ab51,input:#FAF6F1,input-hover:#F2EBE1
VITE_THEME_LIGHT=transparent:transparent,black:#0f0f0e,white:#FFFFFF,accent:#EB5E28,accent-light:#FB652C,gray-8:#FFFFFF,gray-7:#FAF6F1,gray-6:#F2EBE1,gray-5:#E9E0D3,gray-4:#B3AA98,gray-3:#565249,gray-2:#393530,gray-1:#252422,danger:#ff0000,warning:#ebd112,success:#37ab51,input:#FAF6F1,input-hover:#F2EBE1
VITE_DUFFLEPUD_URL=https://dufflepud.onrender.com
VITE_SHOW_DEBUG_ROUTE=false

View File

@ -2,11 +2,16 @@
## 0.2.19
Maintenance release - bugfixes, style fixes, and refactoring. High points are AUTH support, and much improved note composition/mention interpolation.
- [x] Add confirmation to zap dialog
- [x] Avoid pruning profiles we know we'll use more often
- [x] Re-write pool to remove dependency on nostr-tools.relay
- [x] Add support for AUTH
- [x] Use COUNT for counting follows
- [x] Re-write nost composition input
- [x] Add since to feeds to improve time relevance
- [x] Fix a few styling things
## 0.2.18

View File

@ -18,6 +18,12 @@
# Custom views
- [ ] Add customize icon and route with editable custom view cards using "lists" nip
- nevent1qqspjcqw2hu5gfcpkrjhs0aqvxuzjgtp50l375mcqjfpmk48cg5hevgpr3mhxue69uhkummnw3ez6un9d3shjtnhd3m8xtnnwpskxegpzamhxue69uhkummnw3ezuendwsh8w6t69e3xj7spramhxue69uhkummnw3ez6un9d3shjtnwdahxxefwv93kzer9d4usz9rhwden5te0wfjkccte9ejxzmt4wvhxjmcpr9mhxue69uhkummnw3ezuer9d3hjuum0ve68wctjv5n8hwfg
- [ ] Custom views should combine pubkeys, relays, event ids, and topics
# More
- [ ] Add suggestion list for topics on compose so people know there are suggestions
- [ ] Badges link to https://badges.page/p/97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322
- [ ] Link/embed good chat/DM micro-apps
@ -25,12 +31,6 @@
- If logged in, open a detail page that shows the relays and people
- If not logged in, pre-populate follows/relays in onboarding flow
- [ ] If someone logs in with their private key, create a notification to install an extension
- [ ] Add customize icon and route with editable custom view cards using "lists" nip
- nevent1qqspjcqw2hu5gfcpkrjhs0aqvxuzjgtp50l375mcqjfpmk48cg5hevgpr3mhxue69uhkummnw3ez6un9d3shjtnhd3m8xtnnwpskxegpzamhxue69uhkummnw3ezuendwsh8w6t69e3xj7spramhxue69uhkummnw3ez6un9d3shjtnwdahxxefwv93kzer9d4usz9rhwden5te0wfjkccte9ejxzmt4wvhxjmcpr9mhxue69uhkummnw3ezuer9d3hjuum0ve68wctjv5n8hwfg
- [ ] Custom views should combine pubkeys, relays, event ids, and topics
# More
- [ ] Copy/share note id button
- [ ] Reposts
- [ ] Add delete button to notes. This will require tracking what relays a note was published to

View File

@ -1,2 +0,0 @@
VITE_DUFFLEPUD_URL=https://dufflepud.onrender.com
VITE_SHOW_DEBUG_ROUTE=false

View File

@ -162,58 +162,3 @@ export const parseHex = hex => {
return [parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)]
}
export const getTextOffset = (root, element, elementOffset) => {
let textOffset = 0
for (const child of root.childNodes) {
if (child === element) {
return textOffset + elementOffset
}
if (child instanceof Text) {
textOffset += child.textContent.length
}
if (child instanceof Element) {
textOffset += getTextOffset(child, element, elementOffset)
if (child.contains(element)) {
return textOffset
}
}
}
return textOffset
}
export const getElementOffset = (root, offset) => {
if (offset === 0) {
return [root, offset]
}
for (const child of root.childNodes) {
let newOffset = offset
if (child instanceof Text) {
newOffset = offset - child.textContent.length
}
if (child instanceof Element) {
const [match, childOffset] = getElementOffset(child, offset)
if (match) {
return [match, childOffset]
}
newOffset = childOffset
}
if (newOffset <= 0) {
return [child, offset]
}
offset = newOffset
}
return [null, offset]
}