File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { AspectRatioMode } from '@nodegui/nodegui';
99 #app {
1010 background-color: gray;
1111 }
12- #image {
12+ #button {
1313 }
1414 `
1515 ] ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import * as path from 'path';
22import * as fs from 'fs' ;
33import { ResourceLoader } from '@angular/compiler' ;
44
5+ // Do not use
56export class FileSystemResourceLoader extends ResourceLoader {
67 resolve ( url : string , baseUrl : string ) : string {
78 // Angular assembles absolute URL's and prefixes them with //
@@ -13,8 +14,9 @@ export class FileSystemResourceLoader extends ResourceLoader {
1314 }
1415 }
1516
16- get ( url : string ) : Promise < string > {
17+ get ( url : string , aa ?: any ) : Promise < string > {
1718 // TODO: Load real app dir
19+
1820 const appDir = path . join ( __dirname , '../../../src/app' ) ;
1921 const templatePath = this . resolve ( url , appDir ) ;
2022
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ export const platformNodeguiDynamic = createPlatformFactory(
2525 provide : ElementSchemaRegistry ,
2626 useClass : NodeguiElementSchemaRegistry ,
2727 deps : [ ]
28- } ,
29- {
30- provide : ResourceLoader ,
31- useClass : FileSystemResourceLoader ,
32- deps : [ ]
3328 }
29+ // {
30+ // provide: ResourceLoader,
31+ // useClass: FileSystemResourceLoader,
32+ // deps: []
33+ // }
3434 ]
3535 } ,
3636 multi : true
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export class NodeguiRenderer implements Renderer2 {
5252 if ( Component ) {
5353 return new Component ( ) ;
5454 } else {
55- // TODO create widget with name, may be customm component
55+ // TODO create widget with name, may be custom component
5656 console . warn ( `${ name } component is not find in components map` ) ;
5757 }
5858 }
Original file line number Diff line number Diff line change 1010
1111 "angularCompilerOptions" : {
1212 "skipMetadataEmit" : false ,
13- "skipTemplateCodegen" : true
13+ "skipTemplateCodegen" : true ,
14+ "enableResourceInlining" : true
1415 }
1516}
You can’t perform that action at this time.
0 commit comments