Skip to content

Commit

Permalink
Merge pull request #29 from Teradata/feature/demo-app
Browse files Browse the repository at this point in the history
chore(): add demo app to test code-editor
  • Loading branch information
jeremysmartt authored Apr 4, 2018
2 parents 2eef386 + 980be0f commit cfa0717
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<td-code-editor></td-code-editor>
6 changes: 6 additions & 0 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:host {
height: 100%;
td-code-editor {
height: 500px;
}
}
10 changes: 10 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'docs-covalent',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class DocsAppComponent {

}
26 changes: 26 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';

import { DocsAppComponent } from './app.component';

import { CovalentCodeEditorModule } from '../platform/code-editor';

@NgModule({
declarations: [
DocsAppComponent,
], // directives, components, and pipes owned by this NgModule
imports: [
CommonModule,
FormsModule,
BrowserModule,

CovalentCodeEditorModule,
], // modules needed to run this module
providers: [
], // additional providers needed for this module
entryComponents: [ ],
bootstrap: [ DocsAppComponent ],
})
export class AppModule {}
1 change: 1 addition & 0 deletions src/app/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './app.module';
5 changes: 5 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<docs-covalent>
<div style="padding: 20%;text-align:center;height:100%;background-color:#546E7A;color:#B0BEC5;">
<h3>Covalent Loading...</h3>
</div>
</docs-covalent>
</body>
</html>
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { environment } from './environments/environment';
import { CovalentCodeEditorModule } from './platform/code-editor';
import { AppModule } from './app/';

if (environment.production) {
enableProdMode();
}

platformBrowserDynamic().bootstrapModule(CovalentCodeEditorModule);
platformBrowserDynamic().bootstrapModule(AppModule);

0 comments on commit cfa0717

Please sign in to comment.