-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial upgrade attempt * Remove old dependencies * Fix a bunch of linter errors and imports * Dynamic column creation for vaadin grid * Partially fix dynamic column creation * Fix columnrenderer, apply material design and add sorting * Add sorting icon and selection column * Fix webcomponents javascript and consumption dropdown * Fix build * Update build.sh for new build process * Clean dependencies and structured root directory * Add last style fixes and hide empty table
- Loading branch information
1 parent
69b1402
commit 6c6b0dc
Showing
29 changed files
with
2,786 additions
and
1,363 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
'use strict'; | ||
|
||
const Analyzer = require('polymer-analyzer').Analyzer; | ||
const FSUrlLoader = require('polymer-analyzer/lib/url-loader/fs-url-loader').FSUrlLoader; | ||
const PackageUrlResolver = require('polymer-analyzer/lib/url-loader/package-url-resolver').PackageUrlResolver; | ||
const HtmlCustomElementReferenceScanner = require('polymer-analyzer/lib/html/html-element-reference-scanner').HtmlCustomElementReferenceScanner; | ||
const dom5 = require('dom5'); | ||
const fragments = require('./polymer.json').fragments; | ||
|
||
const analyzer = new Analyzer({ | ||
urlLoader: new FSUrlLoader('./'), | ||
urlResolver: new PackageUrlResolver(), | ||
scanners: new Map([['html', [new HtmlCustomElementReferenceScanner()]]]) | ||
}); | ||
|
||
module.exports = () => new Promise((resolve, reject) => { | ||
analyzer.analyze('src/lancie-content.html') | ||
.then((document) => { | ||
for (const element of document.getByKind('element-reference')) { | ||
const astNode = element.astNode; | ||
if (astNode.parentNode.tagName === 'iron-lazy-pages') { | ||
const childLocation = dom5.getAttribute(astNode, 'data-path'); | ||
if (!fragments.find(e => e === `src/${childLocation}`)) { | ||
reject(`Could not find fragment "src/${childLocation}" in polymer.json!`); | ||
return; | ||
} | ||
} | ||
} | ||
resolve(); | ||
}); | ||
}); |
This file contains 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
Oops, something went wrong.