Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 27 08:52
    amark commented #1217
  • May 27 02:44
    Jack-Works commented #1217
  • May 27 02:40
    Jack-Works commented #1217
  • May 27 00:32
    amark commented #1217
  • May 26 22:03
    amark commented #1217
  • May 25 22:00
    bmatusiak commented #1239
  • May 25 17:25

    amark on master

    fix(npm): change glob preventin… (compare)

  • May 25 17:25
    amark closed #1241
  • May 25 17:25
    amark commented #1241
  • May 25 17:21
    amark commented #1239
  • May 25 13:30
    bmatusiak commented #1240
  • May 25 13:13
    bmatusiak commented #1240
  • May 25 13:13
    bmatusiak commented #1240
  • May 25 13:11
    bmatusiak commented #1240
  • May 25 13:10
    bmatusiak commented #1240
  • May 25 13:08
    bmatusiak commented #1240
  • May 25 13:05
    bmatusiak commented #1240
  • May 25 13:03
    bmatusiak commented #1240
  • May 25 12:42
    mmalmi updated the wiki
  • May 24 21:08

    amark on master

    webpack example (#1240) (compare)

Jachen Duschletta
@Dletta
[D]anoxy: I think this is an odd behavior, I should at least be able to use the regular put(someData) in a
nulled node.

[D]anoxy: @anoxy if you had other data on your key it will be back

<@612728945313316904> you wrote like this, can you please provide an example of this after using null on the node ?

[D]Dletta: So category only contains a reference to a sub node, so putting null there only removes the reference to the subnode, but subnode isn’t deleted. To delete a subnode you start at the lowest node you want delete and slowly work up nulling each property
Jachen Duschletta
@Dletta

[D]anoxy: How is that done in a smooth way ?
And yeah null only deletes the references I got that part, but why cannot I add new references to the nulled node ? This can be seen here
https://jsbin.com/rorezebaho/edit?html,js,console,output

Create a user and login, add some categories, and then delete the node. And try to add new categories. It just doesn't work. <@280426612900757504> sent some code to make it works but I think it should still be possible to give new references to a nulled node with put

[D]bmatusiak: i see, setting it as null i think stops it from adding props/more paths/nodes so setting a object with some data re-enables paths, so it a possible bug
[D]bmatusiak: like in js if you have var testing = null and do testing.something = "hello" it fails
Jachen Duschletta
@Dletta
[D]bmatusiak: but gun does reference it to root
[D]Dletta: testing = {}
[D]Dletta: You should first turn it back into an object , no?
[D]bmatusiak: yea exactly
[D]bmatusiak: thats what im thinking
[D]Dletta: Because null is not an object
[D]Dletta: <@366349503265112074> put {}
[D]Dletta: See if that works
[D]bmatusiak: yea he tried
[D]bmatusiak: <@!366349503265112074> https://pastebin.com/MDtwdHt5 this is what i have @ line 49
Jachen Duschletta
@Dletta
[D]bmatusiak: does anybody where use requirejs?
Jachen Duschletta
@Dletta
[D]anoxy: <@612728945313316904> I am mobile now but yeah it seems that put({}) works , didn't know that null in GUN acted exactly as in JS . Thanks .
Jachen Duschletta
@Dletta

[D]anoxy: <@280426612900757504> thanks for giving me a solution as well.

But now to my question if I want to delete all data and keys belonging to a node .
In my case it is :
user.get('notes').get('category')
Where it's "data" has the structure:

{Gun.time.is(): 
 {name: 'some text', prop2: 'some other text'},
Gun.time.is(): 
 {name: 'some text', prop2: 'some other text'}
}
Jachen Duschletta
@Dletta

[D]keymaker91: <@!178314946201780224> Thank you for the elaborate response. I understand your thought process, your ideas and the way you are pushing gun forward. Kudos to you for building such an amazing community and having such wonderful rhetorics.

GitHub counts comments/feedback as contributions. For the sake of great ideas behind gun, I hope you are counting them as well.

I have nothing else to contribute

Jachen Duschletta
@Dletta
[D]bmatusiak: <@!366349503265112074> <@!612728945313316904> amark/gun#865 its a start to use requirejs
Jachen Duschletta
@Dletta
[D]mhelander: I'm likely asking this again, but here it goes: what's lightweight, nice and good alternative CMS for Wordpress, which is (web-) programmer friendly?
Need to start lean & easy, but tinkering that in near future it'll get plenty of easy to use functionality and maybe Gun based chat or other features...
It must be great for both (desktop/tablet) browser and mobiles too. Some admin features are fine, but more complex issues via source editing etc will be my troubles thus likely not problem...
[D]mhelander: Ah, and I'm targeting to bargain hosting costs, like Hetzner sub-2€ monthly subscription or like. That seems to like PHP (not my favorite), so if any better global alternatives with great traffic capacity (for the future) with low cost is also nice... if managing videos etc fat media in future
Jachen Duschletta
@Dletta
[D]mhelander: In my past setup dedicated server in Hetzner and that was both cheap and extremely well working deal. No traffic cap or costs. Now trying to do leaner, but so that not blocking future expansion if it happens
[D]mhelander: PageKit https://pagekit.com/ looks promising, free, PHP+MySQL and Vue.js...
Jachen Duschletta
@Dletta
[D]RobChristian: <@!621036850697601053> wordpress is a nightmare. Some good alternatives: Expression Engine, OctoberCMS
[D]mhelander: I know, had professional integration experience with it, some customers were using custom themes/plugins with WP and we had nightmares to get our SaaS Chat service to work in those...
[D]RobChristian: Looking for a good CMS is originally what brought me to look at Gun. I've decided to instead to use Gatsby and Firebase to make an interactive React-based page, which can then be rendered out to static HTML for publishing.
Jachen Duschletta
@Dletta
[D]vegardkrogh: <@!621036850697601053> Try https://www.sanity.io for a generic CMS that delivers your content through and API and fits any type of client/build step
Jachen Duschletta
@Dletta
[D]bmatusiak: iven been working on a cms for a few years, called welder, and peersocial is going to replace it
[D]bmatusiak: the first use-case of welder became a point of sale, https://github.com/bmatusiak/welder-pos
Jachen Duschletta
@Dletta

[D]anoxy: Can someone please tell me how I can hard delete a whole node and its related data?

RIght now I can only do "softDelete", I need to know how I can "hardDelete" or make the references nulled/empty without the keys being left somewhere, is this even possible?

result = user.get('notes').get('category').get(nodeKey).once(async function(data, key){ console.log('data', data); console.log('key', key); this.put({}, async function(ack){ console.log('ack ', ack); if (ack.ok !== 1) throw "nodeKey could not be softDeleted! Reason: " + ack.err; return ack; }); });

[D]Dletta: I am not sure, Object.delete?
Jachen Duschletta
@Dletta
[D]anoxy: I do understand that it is only possible to soft delete in public nodes because of other peers, but I am thinking of that might be possible to delete data in users graph or is that also a limitation because of one could have a session from another peer for that user graph ?
According to the API only soft deletes is possible: https://gun.eco/docs/FAQ#delete
Jachen Duschletta
@Dletta
[D]mimiza: <@621036850697601053> I'm using gatsbyjs. It is a static site generator. I also integrated it with Gun and it works very well. Can you try
[D]bmatusiak: well i may have some form of "password-less" or "2fa" for SEA using yubikey
[D]mimiza: @<@621036850697601053> For css i use Bulma , which is a no-js and css-only CSS framework. I'm not a coding guru, but a very experienced web developer/designer. So you can trust my opinions 😉
Jachen Duschletta
@Dletta
[D]holyMacaroni:
[D]Dyno: Welcome <@639386319251832832>!!! GUN (https://github.com/amark/gun) is a P2P protocol for syncing data used by 8M+ people monthly across Internet Archive, HackerNoon, DTube (decentralized youtube), Notabug (p2p reddit), & more. Please try the 5min tutorial (https://gun.eco/docs/Todo-Dapp) to get started!
Kamil Przeorski
@PrzeoR_twitter
hi
Jachen Duschletta
@Dletta
[D]xenister: hi wanted to know if anyone has a good example of GunJs on vueJs
Jachen Duschletta
@Dletta
[D]sirpy: <@!178314946201780224> see PM
Jussi Rytkönen
@jussiry
My first app built on GUN :D https://edide.io/ksp.app
(voting app used in live improv shows)
Jachen Duschletta
@Dletta
[D]xenister: hello i'm been testing gunJs with vueJs for a few days and now i'm testing the user section i can't get to keep the user logged in after refresh,
after the loggin i call User.recall() witch is suposed to Recall saves a users credentials in sessionStorage of the browser. As long as the tab of your app is not closed the user stays logged in, even through page refreshes and reloads. but that don't work,
anyone know why ?
[D]bmatusiak: there is a trick to it
[D]xenister: how ?
[D]bmatusiak: here is how i use it