This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onGotBaseHTML: function(view) | |
{ | |
var cmp=this.getParentComponent(); | |
$JSKK.when(cmp.isConfigured.bind(cmp)).isTrue | |
( | |
function() | |
{ | |
view.insertBaseHTML | |
( | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bindContainerEvent: function(event,handler,method,data) | |
{ | |
return this.bindDOMEvent(event,null,handler,method,data); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$JSKK.Class.create | |
( | |
{ | |
$namespace: 'helper', | |
$name: 'InstanceTracker' | |
} | |
) | |
( | |
// Static Block | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requirejs.config | |
( | |
{ | |
baseUrl: '/node_modules', | |
paths: | |
{ | |
week5: '/src/week5', | |
JSKK: 'jskk/bin/jskk.1.3.0.min', | |
bootstrap: 'bootstrap/dist/js/bootstrap.min', | |
jquery: 'jquery/dist/jquery.min' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$JSKK.Class.create | |
( | |
{ | |
$namespace: 'app', | |
$name: 'DD', | |
$uses: | |
[ | |
'$JSKK.trait.Configurable', | |
'$JSKK.trait.Observable' | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApolloClient, createHttpLink, InMemoryCache, ApolloProvider } from '@apollo/client'; | |
import { setContext } from '@apollo/client/link/context'; | |
const HTTPLink = createHttpLink({ | |
uri: process.env.REACT_APP_GAPHQL_SERVER, | |
}); | |
const authLink = setContext((_, { headers }) => { | |
// get the authentication token from local storage if it exists | |
const token = localStorage.getItem('jwtToken'); |