Skip to content

Commit

Permalink
Merge pull request #11 from gzuuus/update-d
Browse files Browse the repository at this point in the history
update dependencies
  • Loading branch information
gzuuus committed Nov 24, 2023
2 parents 986c5bd + 9e2bffc commit 3a52d5d
Show file tree
Hide file tree
Showing 33 changed files with 1,737 additions and 2,627 deletions.
59 changes: 33 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
# Nostree

![nostree-banner](https://image.nostr.build/cf78fa7b9a80ee8845d967324da64736d12704590fcbe3c9f7142444ddce4cf9.jpg)

> Nostree is a link tree style nostr client, it allows you to create and manage lists of links that you can share with anyone. You can create as many lists as you like and they will be displayed in your profile. You can also edit or delete the lists.
## Motivation

[nostr](https://github.com/nostr-protocol/) its an open protocol under a public domain licence, which ensures its openness, the protocol aims to be decentralised, uncensorable, sovereign and very portable, these values resonate in the mind of every person seeking freedom in this world that its becoming more and more unfree. Nostree porsuis these values as well, and its the main focus and motivation behind this project, its free to use, data its owned by you and the relays of the network, and signed by yourself, you can use it with whatever nostr key and no more, no emails, phone numbers, personal data, etc.

## Filosophy

Nostree is an open source client, the actual licence is GPL-3 which ensures the project will remain open source, but the intention is to make it as open as possible without compromising it's open source esence, the project is open to a licence change if the community requires it.

As this project was founded by [openSats](https://opensats.org/), PRs and collaboration is encouraged and they will be eligible to receive bounties, please feel free to open PRs or issues.

## Roadmap

This roadmap is only a draft of the direction of the project, it can be changed, modified and expanded, if you have more ideas, please consider adding an issue or PR presenting them.

- [x] List creation
- [x] List output
- [x] Delete list
- [x] List forking
- [x] List unique identifiers
- [x] List slugs (for shorter and more memorable urls)
- [x] Hashtags
- [x] Simple share button
- [x] Migration to TailwindCSS
- [x] Theming system with ability to set themes for users
- [ ] Theme generator
- [ ] Docs
- [ ] Edit profile
- [ ] Follow button
- [ ] On boarding
- [ ] Calendar events
- [ ] Live streaming events
- [ ] Cache system
- [ ] Offline lists
- [ ] Nip-15 market/stall integration
- [ ] Autoplay music/media lists
- [ ] Expanded personal pages, with more stuff (articles, notes, etc)
- [x] List creation
- [x] List output
- [x] Delete list
- [x] List forking
- [x] List unique identifiers
- [x] List slugs (for shorter and more memorable urls)
- [x] Hashtags
- [x] Simple share button
- [x] Migration to TailwindCSS
- [x] Theming system with ability to set themes for users
- [x] Cache system
- [ ] Theme generator
- [ ] Docs
- [ ] Edit profile
- [ ] Follow button
- [ ] On boarding
- [ ] Calendar events
- [ ] Live streaming events
- [ ] Offline lists
- [ ] Nip-15 market/stall integration
- [ ] Autoplay music/media lists
- [ ] Expanded personal pages, with more stuff (articles, notes, etc)

### Case study

Expand All @@ -45,12 +49,13 @@ This roadmap is only a draft of the direction of the project, it can be changed,

{
...
"kind": 30001,
"kind": 30003,
"content": "",
"tags": [
["d", "nostree-{uuidv4}"],
["title", "Link Title"],
["summary", "List summary"]
["description", "List description"],
["L", "me.nostree.ontology"]
["image", "https://nostr.build/i/518262ea28232ace1eee250038d7657d70a0a186bb05f73c7a715e948c499a3a.jpg"],
["r", "https://link1.com", "link1"],
["r", "mailto:email@example.com", "link2"],
Expand All @@ -64,7 +69,9 @@ This roadmap is only a draft of the direction of the project, it can be changed,
...
}
```
### List of valid prefixes

### List of valid prefixes

```json
"http://",
"https://",
Expand All @@ -77,4 +84,4 @@ This roadmap is only a draft of the direction of the project, it can be changed,
"ssh://",
"irc://",
"magnet:",
```
```
201 changes: 100 additions & 101 deletions nostree-theme.ts
Original file line number Diff line number Diff line change
@@ -1,102 +1,101 @@
import type { CustomThemeConfig } from "@skeletonlabs/tw-plugin";
import type { CustomThemeConfig } from "@skeletonlabs/tw-plugin";

export const nostreeTheme: CustomThemeConfig = {
name: "nostree-theme",
properties: {
// =~= Theme Properties =~=
"--theme-font-family-base": `Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,
"--theme-font-family-heading": `Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,
"--theme-font-color-base": "0 0 0",
"--theme-font-color-dark": "255 255 255",
"--theme-rounded-base": "9999px",
"--theme-rounded-container": "16px",
"--theme-border-base": "1px",
// =~= Theme On-X Colors =~=
"--on-primary": "0 0 0",
"--on-secondary": "0 0 0",
"--on-tertiary": "0 0 0",
"--on-success": "0 0 0",
"--on-warning": "0 0 0",
"--on-error": "0 0 0",
"--on-surface": "255 255 255",
// =~= Theme Colors =~=
// primary | #ffa348
"--color-primary-50": "255 241 228", // #fff1e4
"--color-primary-100": "255 237 218", // #ffedda
"--color-primary-200": "255 232 209", // #ffe8d1
"--color-primary-300": "255 218 182", // #ffdab6
"--color-primary-400": "255 191 127", // #ffbf7f
"--color-primary-500": "255 163 72", // #ffa348
"--color-primary-600": "230 147 65", // #e69341
"--color-primary-700": "191 122 54", // #bf7a36
"--color-primary-800": "153 98 43", // #99622b
"--color-primary-900": "125 80 35", // #7d5023
// secondary | #6bc187
"--color-secondary-50": "233 246 237", // #e9f6ed
"--color-secondary-100": "225 243 231", // #e1f3e7
"--color-secondary-200": "218 240 225", // #daf0e1
"--color-secondary-300": "196 230 207", // #c4e6cf
"--color-secondary-400": "151 212 171", // #97d4ab
"--color-secondary-500": "107 193 135", // #6bc187
"--color-secondary-600": "96 174 122", // #60ae7a
"--color-secondary-700": "80 145 101", // #509165
"--color-secondary-800": "64 116 81", // #407451
"--color-secondary-900": "52 95 66", // #345f42
// tertiary | #3584e4
"--color-tertiary-50": "225 237 251", // #e1edfb
"--color-tertiary-100": "215 230 250", // #d7e6fa
"--color-tertiary-200": "205 224 248", // #cde0f8
"--color-tertiary-300": "174 206 244", // #aecef4
"--color-tertiary-400": "114 169 236", // #72a9ec
"--color-tertiary-500": "53 132 228", // #3584e4
"--color-tertiary-600": "48 119 205", // #3077cd
"--color-tertiary-700": "40 99 171", // #2863ab
"--color-tertiary-800": "32 79 137", // #204f89
"--color-tertiary-900": "26 65 112", // #1a4170
// success | #6bc187
"--color-success-50": "233 246 237", // #e9f6ed
"--color-success-100": "225 243 231", // #e1f3e7
"--color-success-200": "218 240 225", // #daf0e1
"--color-success-300": "196 230 207", // #c4e6cf
"--color-success-400": "151 212 171", // #97d4ab
"--color-success-500": "107 193 135", // #6bc187
"--color-success-600": "96 174 122", // #60ae7a
"--color-success-700": "80 145 101", // #509165
"--color-success-800": "64 116 81", // #407451
"--color-success-900": "52 95 66", // #345f42
// warning | #f8e45c
"--color-warning-50": "254 251 231", // #fefbe7
"--color-warning-100": "254 250 222", // #fefade
"--color-warning-200": "253 248 214", // #fdf8d6
"--color-warning-300": "252 244 190", // #fcf4be
"--color-warning-400": "250 236 141", // #faec8d
"--color-warning-500": "248 228 92", // #f8e45c
"--color-warning-600": "223 205 83", // #dfcd53
"--color-warning-700": "186 171 69", // #baab45
"--color-warning-800": "149 137 55", // #958937
"--color-warning-900": "122 112 45", // #7a702d
// error | #f66151
"--color-error-50": "254 231 229", // #fee7e5
"--color-error-100": "253 223 220", // #fddfdc
"--color-error-200": "253 216 212", // #fdd8d4
"--color-error-300": "251 192 185", // #fbc0b9
"--color-error-400": "249 144 133", // #f99085
"--color-error-500": "246 97 81", // #f66151
"--color-error-600": "221 87 73", // #dd5749
"--color-error-700": "185 73 61", // #b9493d
"--color-error-800": "148 58 49", // #943a31
"--color-error-900": "121 48 40", // #793028
// surface | #8743db
"--color-surface-50": "237 227 250", // #ede3fa
"--color-surface-100": "231 217 248", // #e7d9f8
"--color-surface-200": "225 208 246", // #e1d0f6
"--color-surface-300": "207 180 241", // #cfb4f1
"--color-surface-400": "171 123 230", // #ab7be6
"--color-surface-500": "135 67 219", // #8743db
"--color-surface-600": "122 60 197", // #7a3cc5
"--color-surface-700": "101 50 164", // #6532a4
"--color-surface-800": "81 40 131", // #512883
"--color-surface-900": "66 33 107", // #42216b

}
}
export const nostreeTheme: CustomThemeConfig = {
name: "nostree-theme",
properties: {
// =~= Theme Properties =~=
"--theme-font-family-base": `Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,
"--theme-font-family-heading": `Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,
"--theme-font-color-base": "0 0 0",
"--theme-font-color-dark": "255 255 255",
"--theme-rounded-base": "9999px",
"--theme-rounded-container": "16px",
"--theme-border-base": "1px",
// =~= Theme On-X Colors =~=
"--on-primary": "0 0 0",
"--on-secondary": "0 0 0",
"--on-tertiary": "0 0 0",
"--on-success": "0 0 0",
"--on-warning": "0 0 0",
"--on-error": "0 0 0",
"--on-surface": "255 255 255",
// =~= Theme Colors =~=
// primary | #ffa348
"--color-primary-50": "255 241 228", // #fff1e4
"--color-primary-100": "255 237 218", // #ffedda
"--color-primary-200": "255 232 209", // #ffe8d1
"--color-primary-300": "255 218 182", // #ffdab6
"--color-primary-400": "255 191 127", // #ffbf7f
"--color-primary-500": "255 163 72", // #ffa348
"--color-primary-600": "230 147 65", // #e69341
"--color-primary-700": "191 122 54", // #bf7a36
"--color-primary-800": "153 98 43", // #99622b
"--color-primary-900": "125 80 35", // #7d5023
// secondary | #6bc187
"--color-secondary-50": "233 246 237", // #e9f6ed
"--color-secondary-100": "225 243 231", // #e1f3e7
"--color-secondary-200": "218 240 225", // #daf0e1
"--color-secondary-300": "196 230 207", // #c4e6cf
"--color-secondary-400": "151 212 171", // #97d4ab
"--color-secondary-500": "107 193 135", // #6bc187
"--color-secondary-600": "96 174 122", // #60ae7a
"--color-secondary-700": "80 145 101", // #509165
"--color-secondary-800": "64 116 81", // #407451
"--color-secondary-900": "52 95 66", // #345f42
// tertiary | #3584e4
"--color-tertiary-50": "225 237 251", // #e1edfb
"--color-tertiary-100": "215 230 250", // #d7e6fa
"--color-tertiary-200": "205 224 248", // #cde0f8
"--color-tertiary-300": "174 206 244", // #aecef4
"--color-tertiary-400": "114 169 236", // #72a9ec
"--color-tertiary-500": "53 132 228", // #3584e4
"--color-tertiary-600": "48 119 205", // #3077cd
"--color-tertiary-700": "40 99 171", // #2863ab
"--color-tertiary-800": "32 79 137", // #204f89
"--color-tertiary-900": "26 65 112", // #1a4170
// success | #6bc187
"--color-success-50": "233 246 237", // #e9f6ed
"--color-success-100": "225 243 231", // #e1f3e7
"--color-success-200": "218 240 225", // #daf0e1
"--color-success-300": "196 230 207", // #c4e6cf
"--color-success-400": "151 212 171", // #97d4ab
"--color-success-500": "107 193 135", // #6bc187
"--color-success-600": "96 174 122", // #60ae7a
"--color-success-700": "80 145 101", // #509165
"--color-success-800": "64 116 81", // #407451
"--color-success-900": "52 95 66", // #345f42
// warning | #f8e45c
"--color-warning-50": "254 251 231", // #fefbe7
"--color-warning-100": "254 250 222", // #fefade
"--color-warning-200": "253 248 214", // #fdf8d6
"--color-warning-300": "252 244 190", // #fcf4be
"--color-warning-400": "250 236 141", // #faec8d
"--color-warning-500": "248 228 92", // #f8e45c
"--color-warning-600": "223 205 83", // #dfcd53
"--color-warning-700": "186 171 69", // #baab45
"--color-warning-800": "149 137 55", // #958937
"--color-warning-900": "122 112 45", // #7a702d
// error | #f66151
"--color-error-50": "254 231 229", // #fee7e5
"--color-error-100": "253 223 220", // #fddfdc
"--color-error-200": "253 216 212", // #fdd8d4
"--color-error-300": "251 192 185", // #fbc0b9
"--color-error-400": "249 144 133", // #f99085
"--color-error-500": "246 97 81", // #f66151
"--color-error-600": "221 87 73", // #dd5749
"--color-error-700": "185 73 61", // #b9493d
"--color-error-800": "148 58 49", // #943a31
"--color-error-900": "121 48 40", // #793028
// surface | #8743db
"--color-surface-50": "237 227 250", // #ede3fa
"--color-surface-100": "231 217 248", // #e7d9f8
"--color-surface-200": "225 208 246", // #e1d0f6
"--color-surface-300": "207 180 241", // #cfb4f1
"--color-surface-400": "171 123 230", // #ab7be6
"--color-surface-500": "135 67 219", // #8743db
"--color-surface-600": "122 60 197", // #7a3cc5
"--color-surface-700": "101 50 164", // #6532a4
"--color-surface-800": "81 40 131", // #512883
"--color-surface-900": "66 33 107", // #42216b
},
};
61 changes: 32 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nostree",
"version": "0.1.5",
"version": "0.1.5.3",
"private": true,
"homepage": "https://nostree.me",
"scripts": {
Expand All @@ -14,46 +14,49 @@
"format": "prettier --ignore-path .prettierignore -w ."
},
"devDependencies": {
"@playwright/test": "^1.28.1",
"@skeletonlabs/skeleton": "^2.3.0",
"@skeletonlabs/tw-plugin": "^0.2.2",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-cloudflare": "^2.3.1",
"@sveltejs/kit": "^1.20.4",
"@playwright/test": "^1.39.0",
"@skeletonlabs/skeleton": "^2.5.0",
"@skeletonlabs/tw-plugin": "^0.2.4",
"@sveltejs/adapter-auto": "^2.1.1",
"@sveltejs/adapter-cloudflare": "^2.3.3",
"@sveltejs/kit": "^1.27.4",
"@tailwindcss/forms": "^0.5.6",
"@types/linkify-it": "^3.0.2",
"@types/debounce": "^1.2.4",
"@types/linkify-it": "^3.0.5",
"@types/markdown-it": "^12.2.3",
"@types/node": "^20.8.4",
"@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.30.0",
"postcss": "^8.4.24",
"@types/node": "^20.9.0",
"@types/uuid": "^9.0.7",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"autoprefixer": "^10.4.16",
"eslint": "^8.53.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-svelte": "^2.35.0",
"postcss": "^8.4.31",
"postcss-load-config": "^4.0.1",
"prettier": "^2.8.0",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"svelte": "^4.0.0",
"svelte-check": "^3.4.3",
"tailwindcss": "^3.3.2",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.3.6"
"svelte": "^4.2.3",
"svelte-check": "^3.5.2",
"tailwindcss": "^3.3.5",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"type": "module",
"dependencies": {
"@floating-ui/dom": "^1.5.3",
"@nostr-dev-kit/ndk": "^0.8.23",
"@nostr-dev-kit/ndk-cache-dexie": "0.8.21-1",
"@nostr-dev-kit/ndk": "^2.0.6",
"@nostr-dev-kit/ndk-cache-dexie": "2.0.6",
"@nostr-dev-kit/ndk-svelte": "^2.0.6",
"debounce": "^1.2.1",
"dexie": "^3.2.4",
"linkify-it": "^4.0.1",
"markdown-it": "^13.0.1",
"markdown-it": "^13.0.2",
"nanoid": "^4.0.2",
"nostr-tools": "^1.12.1",
"nostr-tools": "^1.17.0",
"qrcode-generator": "^1.4.4",
"svelte-a11y-dialog": "^0.2.0",
"uuid": "^9.0.0"
"uuid": "^9.0.1"
}
}
Loading

0 comments on commit 3a52d5d

Please sign in to comment.