refactor(test-app): convert secondary view components to Class API
- Convert HistoryView, NotFoundView, NotificationsView to Class API - Convert SettingsView and StatusView to Class API - Add proper @Component decorators and toNative exports - Simplify all views for consistent Class API usage Completes view component conversion to vue-facing-decorator pattern.
This commit is contained in:
@@ -11,10 +11,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue } from 'vue-facing-decorator'
|
||||
import { Vue, Component, toNative } from 'vue-facing-decorator'
|
||||
|
||||
@Component
|
||||
export default class HistoryView extends Vue {}
|
||||
class HistoryView extends Vue {}
|
||||
export default toNative(HistoryView)
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -12,10 +12,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue } from 'vue-facing-decorator'
|
||||
import { Vue, Component, toNative } from 'vue-facing-decorator'
|
||||
|
||||
@Component
|
||||
export default class NotFoundView extends Vue {}
|
||||
class NotFoundView extends Vue {}
|
||||
export default toNative(NotFoundView)
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -11,10 +11,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue } from 'vue-facing-decorator'
|
||||
import { Vue, Component, toNative } from 'vue-facing-decorator'
|
||||
|
||||
@Component
|
||||
export default class NotificationsView extends Vue {}
|
||||
class NotificationsView extends Vue {}
|
||||
export default toNative(NotificationsView)
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -11,10 +11,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue } from 'vue-facing-decorator'
|
||||
import { Vue, Component, toNative } from 'vue-facing-decorator'
|
||||
|
||||
@Component
|
||||
export default class SettingsView extends Vue {}
|
||||
class SettingsView extends Vue {}
|
||||
export default toNative(SettingsView)
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -11,10 +11,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue } from 'vue-facing-decorator'
|
||||
import { Vue, Component, toNative } from 'vue-facing-decorator'
|
||||
|
||||
@Component
|
||||
export default class StatusView extends Vue {}
|
||||
class StatusView extends Vue {}
|
||||
export default toNative(StatusView)
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user