ft/assets/js/local-test.js.map
2017-06-09 09:09:06 +01:00

1 line
5.0 KiB
Plaintext

{"version":3,"sources":["components/test/index.js","components/test/docs/ft-docs.js","components/test/docs/main.js","components/test/elements/ft-full-width-page-no-panel.js","components/test/elements/ft-full-width-page.js","components/test/elements/ft-header.js"],"names":["configure","config","globalResources","FtDocs","Element","element","dataService","docs","Map","index","getBeanFromUrl","then","Object","keys","pages","forEach","set","key","selectedPage","get","onPageSelected","name","selectedPageName","scrollIntoView","getPageTitle","pageid","matches","match","Promise","longStackTraces","warnings","wForgottenReturn","aurelia","use","basicConfiguration","feature","developmentLogging","start","setRoot","FtFullWidthPageNoPanel","cssRoot","FtFullWidthPage","FtHeader"],"mappings":";;;;;;UAAgBA,YAAAA;AAAT,WAASA,SAAT,CAAmBC,MAAnB,EAA2B;AAChCA,WAAOC,eAAP,CAAuB,CACrB,+BADqB,EAErB,wCAFqB,EAGrB,sBAHqB,EAIrB,2BAJqB,EAKrB,gCALqB,EAMrB,+BANqB,EAOrB,+BAPqB,EAQrB,8BARqB,EASrB,gBATqB,CAAvB;AAWD;;;;;;;;;;;;;;;;;;MCRYC,iBAAAA,iBADZ,8BAAOC,OAAP;AAOC,oBAAYC,OAAZ,EAAqBC,WAArB,EAAkC;AAAA;;AAAA;;AAAA,WALlCC,IAKkC,GAL3B,IAAIC,GAAJ,EAK2B;AAAA,WAJlCC,KAIkC,GAJ1B,EAI0B;;AAChC,WAAKJ,OAAL,GAAeA,OAAf;AACA,WAAKC,WAAL,GAAmBA,WAAnB;AACAA,kBAAYI,cAAZ,CAA2B,MAA3B,EAAmC,kBAAnC,EACGC,IADH,CACQ,gBAAQ;AACZ,cAAKF,KAAL,GAAaF,KAAKE,KAAlB;AACAG,eAAOC,IAAP,CAAYN,KAAKO,KAAjB,EAAwBC,OAAxB,CAAgC,eAAO;AACrC,gBAAKR,IAAL,CAAUS,GAAV,CAAcC,GAAd,EAAmBV,KAAKO,KAAL,CAAWG,GAAX,CAAnB;AACA,gBA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SAAKA,OAAL,GAAe,sBAAYA,OAA3B;AACD","file":"local-test.js","sourcesContent":["export function configure(config) {\n config.globalResources([\n './elements/ft-full-width-page',\n './elements/ft-full-width-page-no-panel',\n './elements/ft-header',\n './elements/ft-footer.html',\n './elements/ft-breadcrumbs.html',\n './elements/ft-fund-alert.html',\n './elements/ft-fund-title.html',\n './elements/ft-fund-tabs.html',\n './docs/ft-docs'\n ]);\n}\n","import {inject} from 'aurelia-framework';\nimport {DataService} from '../../../lib/data-service';\n\n@inject(Element, DataService)\nexport class FtDocs {\n docs = new Map();\n index = [];\n selectedPage;\n selectedPageName;\n\n constructor(element, dataService) {\n this.element = element;\n this.dataService = dataService;\n dataService.getBeanFromUrl('docs', 'assets/docs.json')\n .then(docs => {\n this.index = docs.index;\n Object.keys(docs.pages).forEach(key => {\n this.docs.set(key, docs.pages[key]);\n this.selectedPage = this.docs.get('README.md');\n });\n });\n }\n\n onPageSelected(name) {\n this.selectedPage = this.docs.get(name);\n this.selectedPageName = name;\n this.element.scrollIntoView();\n }\n\n getPageTitle(pageid) {\n let matches = this.docs.get(pageid).match(/<h1[^>]*>([^<]+)/);\n if (matches !== null) {\n return matches[1];\n }\n return pageid;\n }\n}\n","//Configure Bluebird Promises.\nPromise.config({\n longStackTraces: true,\n warnings: {\n wForgottenReturn: false\n }\n});\n\nexport function configure(aurelia) {\n aurelia.use\n .basicConfiguration()\n .feature('components/test');\n\n aurelia.use.developmentLogging();\n\n aurelia.start().then(() => aurelia.setRoot('components/test/docs/ft-docs'));\n}\n","/**\r\n * Created by bstjohn on 24/03/2017.\r\n */\r\n\r\nimport environment from '../../../environment';\r\n\r\nexport class FtFullWidthPageNoPanel {\r\n cssRoot = '';\r\n constructor() {\r\n this.cssRoot = environment.cssRoot;\r\n }\r\n}\r\n","/**\r\n * Created by bstjohn on 24/03/2017.\r\n */\r\n\r\nimport environment from '../../../environment';\r\n\r\nexport class FtFullWidthPage {\r\n cssRoot = '';\r\n constructor() {\r\n this.cssRoot = environment.cssRoot;\r\n }\r\n}\r\n","/**\r\n * Created by bstjohn on 24/03/2017.\r\n */\r\n\r\nimport environment from '../../../environment';\r\n\r\nexport class FtHeader {\r\n cssRoot = '';\r\n constructor() {\r\n this.cssRoot = environment.cssRoot;\r\n }\r\n}\r\n"],"sourceRoot":"../.."}