Skip to content

Exported data for mobile router links and Object.freeze router #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 8, 2020

Conversation

indefinities
Copy link
Member

Fixes #66

@indefinities indefinities added the depression something wasn't fixed when it should have been label Jun 29, 2020
@indefinities indefinities requested a review from jennydaman June 29, 2020 01:15
@indefinities indefinities self-assigned this Jun 29, 2020
@@ -1,29 +1,25 @@
<template>
<div class="hacks-nav">
<div class="hacks-nav__container" v-if="!isMobile">
<router-link v-for="r in routes" :key="r.path" :to="r.path">{{ r.name }}</router-link>
<router-link v-for="r in routes" :key="r.path" :to="r.path">{{
r.name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cursed_whitespace

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mustaches on same line please, homies should be together

},
data() {
return {
menuOpen: false,
routes: routes
routes: Object.freeze(routes),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Object.freeze belongs before the export in the module, not here in the client

@indefinities indefinities requested a review from jennydaman June 29, 2020 02:41
@jennydaman jennydaman merged commit b4497a7 into vue Sep 8, 2020
@jennydaman jennydaman deleted the exported-router-links branch September 8, 2020 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depression something wasn't fixed when it should have been
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manual list of router links instead of using exported data
2 participants