Export array from setup sections

pull/255/head
MattIPv4 2021-04-21 21:27:34 +01:00
parent a9de531ec9
commit 9eda0c0ea8
2 changed files with 10 additions and 10 deletions

View File

@ -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: {

View File

@ -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 ];