These are chat archives for canjs/canjs

29th
Mar 2018
John Gardner
@Sinjhin
Mar 29 2018 02:26
What repo should I put a bug in for title attributes on other elements besides <title> in the <head> of the main index affecting the DoneJS CLI functional smoke test? Font-awesome uses the title attribute for aria purposes (See: https://fontawesome.com/how-to-use/accessibility) and that messes up the normal DoneJS generated app tests by appending those title strings to the title of the site. Ex. If title of site in the head is "Something" and I have some element in stache with title="Else", title of the site will be "SomethingElse" when running the tests (at least in Travis).
John Gardner
@Sinjhin
Mar 29 2018 03:07
Actually stealjs breaks with font-awesome using modern imports in production. Works fine in dev mode. Most likely the @. Try:
import Component from 'can-component';
import DefineMap from 'can-define/map/';
import './social-media-links.less';
import view from './social-media-links.stache';
import fontawesome from '@fortawesome/fontawesome';
// import faSolid from '@fortawesome/fontawesome-free-solid';
import faBrands from '@fortawesome/fontawesome-free-brands';

// fontawesome.library.add(faSolid);
fontawesome.library.add(faBrands);

export const ViewModel = DefineMap.extend({
  toggleFooter: 'any',
  connectedCallback() {
    // fontawesome.dom.css();
    // fontawesome.dom.i2svg();

    const animationTimer = setTimeout(() => {
      this.toggleFooter();
    }, 500);

    return function() {
      clearInterval(animationTimer);
    };
  }
});

export default Component.extend({
  tag: 'social-media-links',
  ViewModel,
  view
});
Julian
@pYr0x
Mar 29 2018 15:26
today meetup?
Gregg Roemhildt
@roemhildtg
Mar 29 2018 16:23
anyone know why can-connect-feathers throws not-authenticated if doneSSR is enabled? https://github.com/canjs/can-connect-feathers/blame/08ef307fcfd52f9504c74423b3f620a727f56df8/session/session.js#L78
Mohamed Cherif Bouchelaghem
@cherifGsoul
Mar 29 2018 16:27
@pYr0x contributors meetup?
Contributors meetup will be held tomorrow!