diff --git a/src/nginxconfig/templates/setup.vue b/src/nginxconfig/templates/setup.vue index cebaa5e..d98b0b0 100644 --- a/src/nginxconfig/templates/setup.vue +++ b/src/nginxconfig/templates/setup.vue @@ -64,9 +64,7 @@ THE SOFTWARE. import Tar from 'memory-tar-create'; import ClipboardJS from 'clipboard'; import analytics from '../util/analytics'; - import * as Sections from './setup_sections'; - - const tabs = Object.values(Sections); + import Sections from './setup_sections'; export default { name: 'Setup', @@ -75,8 +73,8 @@ THE SOFTWARE. }, data() { return { - active: tabs[0].key, - tabs, + active: Sections[0].key, + tabs: Sections, }; }, computed: { diff --git a/src/nginxconfig/templates/setup_sections/index.js b/src/nginxconfig/templates/setup_sections/index.js index c441075..04bd52b 100644 --- a/src/nginxconfig/templates/setup_sections/index.js +++ b/src/nginxconfig/templates/setup_sections/index.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2021 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -24,7 +24,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -export { default as Download } from './download'; -export { default as SSL } from './ssl'; -export { default as Certbot } from './certbot'; -export { default as GoLive } from './go_live'; +import Download from './download'; +import SSL from './ssl'; +import Certbot from './certbot'; +import GoLive from './go_live'; + +export default [ Download, SSL, Certbot, GoLive ];