diff --git a/src/components/app-base.js b/src/components/app-base.js
index 00ac09b..42cc92d 100644
--- a/src/components/app-base.js
+++ b/src/components/app-base.js
@@ -6,6 +6,9 @@ class AppBase extends HTMLElement {
super();
this.attachShadow({ mode: 'open' });
this.text = text;
+ this.properties = {
+ color: '#324BFF',
+ };
this.store = new Store();
}
@@ -14,27 +17,101 @@ class AppBase extends HTMLElement {
this.render();
}
- renderText() {
+ renderOptions() {
const textList = this.store.getRecords();
return textList.map((item) => ``).join('\n');
}
- render(action = 'INITIAL') {
- if (![Store.actions.ADD_LINE, Store.actions.REMOVE_LINE, Store.actions.UNDO, 'INITIAL'].includes(action)) {
+ render(action = 'INIT') {
+ if (![Store.actions.ADD_LINE, Store.actions.REMOVE_LINE, Store.actions.UNDO, 'INIT'].includes(action)) {
return; // Only render if content changed
}
this.shadowRoot.innerHTML = `
-
-