Skip to content

Commit 8d1cc15

Browse files
Gourav DwivediGourav Dwivedi
authored andcommitted
file renaming
1 parent f801a29 commit 8d1cc15

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

src/Index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<h1>Signal R JavaScript Client</h1>
1414
<!-- <hello-component data-name="James"></hello-component> -->
1515
<div class="container">
16-
<basic-src-view></basic-src-view>
16+
<src-app></src-app>
1717
</div>
1818

1919
<script src="./main.js"></script>
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class HeaderComponent extends HTMLElement {
1+
class AppComponent extends HTMLElement {
22
constructor() {
33
super();
44
}
@@ -17,7 +17,7 @@ class HeaderComponent extends HTMLElement {
1717
}
1818

1919
render() {
20-
this.innerHTML = `
20+
this.innerHTML = `
2121
2222
<div id="tab-header" class="container">
2323
<div class="panel panel-primary">
@@ -40,14 +40,13 @@ class HeaderComponent extends HTMLElement {
4040
<h2>Advance</h2>
4141
<sr-form type="advance"></sr-form>
4242
</div>
43-
4443
</div>
4544
</div>
4645
</div>
4746
`;
4847
}
4948
}
5049

51-
if(!window.customElements.get("basic-src-view")) {
52-
window.customElements.define("basic-src-view", HeaderComponent);
50+
if(!window.customElements.get("src-app")) {
51+
window.customElements.define("src-app", AppComponent);
5352
}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ class SrFormComponent extends HTMLElement {
9191
</fieldset>
9292
</form>
9393
`;
94-
95-
9694
}
9795
}
9896

src/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import 'bootstrap/dist/css/bootstrap.css'
22
import 'bootstrap/dist/js/bootstrap.js'
33
import '../css/main.css';
4-
import './components/SrFormComponent';
5-
import './components/header.component';
4+
import './components/srform.component';
5+
import './components/app.component';
66

77
console.log("Hello Webpack111");
88

0 commit comments

Comments
 (0)