React/Redux - publish component #323
|
@ -1,22 +0,0 @@
|
|||
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
module.exports = {
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
replaceChannelSelectionInNavBar (loggedInChannel) {
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
// remove the old channel option
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
const oldChannel = document.getElementById('nav-bar-channel-select-channel-option');
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
if (oldChannel) {
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
oldChannel.parentNode.removeChild(oldChannel);
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
}
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
// create new channel option & select it
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
const newChannelOption = document.createElement('option');
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
newChannelOption.setAttribute('value', loggedInChannel);
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
newChannelOption.setAttribute('id', 'nav-bar-channel-select-channel-option');
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
newChannelOption.setAttribute('selected', '');
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
newChannelOption.innerText = loggedInChannel;
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
// add the new option
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
const channelSelect = document.getElementById('nav-bar-channel-select');
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
channelSelect.style.display = 'inline-block';
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
channelSelect.insertBefore(newChannelOption, channelSelect.firstChild);
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
// hide login
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
const navBarLoginLink = document.getElementById('nav-bar-login-link');
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
navBarLoginLink.style.display = 'none';
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
},
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
||||
}
|
||||
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change
The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store. The reason for this was that html outside of the react publish component (the top nav bar) needed to be updated. To solve this, I added a nav bar component that can draw from the store.
|
Shouldn't this design be obviated by addition of React/Redux? The component should be able to refresh based on external state change