Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:47
    cherifGsoul review_requested #5441
  • 16:35
    cherifGsoul synchronize #5441
  • 16:35

    cherifGsoul on update-infrastructure-page

    Fix typos (compare)

  • 10:01
    jkeruzec starred canjs/canjs
  • Dec 09 18:59
    cherifGsoul review_requested #5443
  • Dec 09 18:59
    cherifGsoul opened #5443
  • Dec 09 18:51

    cherifGsoul on document-inserted-removed-can6

    Add inserted/removed events to … (compare)

  • Dec 09 15:38
    greenkeeper[bot] labeled #5442
  • Dec 09 15:38
    greenkeeper[bot] opened #5442
  • Dec 09 15:38

    greenkeeper[bot] on can-view-live-5.0.1

    fix(package): update can-view-l… (compare)

  • Dec 08 21:21
    greenkeeper[bot] commented #5392
  • Dec 08 21:21

    greenkeeper[bot] on core-js-3.4.8

    chore(package): update core-js … (compare)

  • Dec 06 18:40
    cherifGsoul review_requested #5441
  • Dec 06 18:39
    cherifGsoul opened #5441
  • Dec 06 18:22

    cherifGsoul on update-infrastructure-page

    Update infrastructure page with… (compare)

  • Dec 06 18:14
    greenkeeper[bot] commented #5422
  • Dec 06 18:14

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Dec 06 18:11
    greenkeeper[bot] commented #5401
  • Dec 06 18:11

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Dec 04 22:03
    chasenlehara opened #5440
Justin Love
@JustinLove
Thanks. I ended up firing an event; I had trouble with that at first because foundation dialogs get moved to body, which changed the bubbling chain.
Can I make can.view do #id lookup only, without a web request if isn't found?
Justin Love
@JustinLove
Are there complex examples of can.route?
Justin Meyer
@justinbmeyer
@JustinLove https://github.com/bitovi/steal-can-example/blob/master/main.js is a small but complex example
what kind of example are you looking for?
Justin Meyer
@justinbmeyer
If you were using the #minor branch, it had everything in a "lib" folder. That is now gone in master. So if you were using that structure, you will need to change your paths configuration to point to the new location.
Justin Meyer
@justinbmeyer
@alexisabril regarding your pushstate question ...
do you need to return the data?
sorry, the html
Alexis Abril
@alexisabril
nope
just looking to ignore /foo/bar/baz from the node side
Justin Meyer
@justinbmeyer
Ok, so you just need to handle all incoming urls
Alexis Abril
@alexisabril
not really canjs specific
Justin Meyer
@justinbmeyer
oh, but not sure how to do it?
Alexis Abril
@alexisabril
yep, totally lazyweb
app.use('/', serveStatic(__dirname))
.use(function(req, res) {});
Justin Meyer
@justinbmeyer
what framework?
express
Alexis Abril
@alexisabril
connect; that noop needs a res.end(), however calling end will actually overwrite the existing html
Justin Meyer
@justinbmeyer
calling end?
oh, res.end
it actually writes the existing html?
oh, b/c you are serving static
Alexis Abril
@alexisabril
the static section is irrelevant for this case actually; one possible solution is to redirect all incoming requests to a specified index.html or redirect to a #! + request path
Curtis Cummings
@ccummings
There's a third param to a middleware function called next. Call that at the end of handling your route instead end to let the next middleware take over
instead of*
Alexis Abril
@alexisabril
true, however that'll eventually timeout since no response is returned
Matthew Phillips
@matthewp
@justinbmeyer should package.json main point to dist/cjs/can.js?
"browser" doesn't handle the main does it?
Curtis Cummings
@ccummings
Is it possible to get a 2.2.0-pre published to npm? I'm interested in seeing what the npm release will look like in a Browserify environment. Will I still need a ton of browser mappings to require things like can/construct/proxy
Matthew Phillips
@matthewp
:+1: i want the same thing
Justin Meyer
@justinbmeyer
@ccummings you wont
you won't need any browser mappings
if you are using the latest browserify
they are in canjs's package
@daffl can we get a 2.2.0-alpha.11
@ccummings alpha.10 should work alright too
Matthew Phillips
@matthewp
alpha.10 used "canjs" i believe
alpha.10 is can
oh sorry, alpha.9 was canjs
Curtis Cummings
@ccummings
the current package gives me the entire contents of the repo. is that what we will publish to npm? I thought just the dist would be published
Curtis Cummings
@ccummings
also main is ./can so this won't work with Browserify without copying the browser config from the package,json into my own
Justin Meyer
@justinbmeyer
@ccummings the entire contents
so they can be used by stea
l
@ccummings it should work
Curtis Cummings
@ccummings
There is a steal folder inside dist..
Justin Meyer
@justinbmeyer
that's "steal" format
(which happens to be the format the main stuff is written in)
(but might not be in the future)