Skip to content

Commit 541c660

Browse files
committed
Proof of concept Vue 2.7 composition API bridge
1 parent e433e33 commit 541c660

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"sinon": "^11.1.1",
110110
"ts-node": "^8.10.2",
111111
"typescript": "^4.5.5",
112+
"vue": "2.7.16",
112113
"vue-jest": "^3.0.0",
113114
"wallaby-vue-compiler": "^1.0.3"
114115
},

src/components/v2/Hero.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<template>
2+
<section :class="['hero', heroType]" ref="section">
3+
<div class="hero-body non-selectable">
4+
<div class="container">
5+
<h1 class="title" ref="title">
6+
{{title}}
7+
</h1>
8+
<h2 class="subtitle" ref="subtitle">
9+
{{subtitle}}
10+
</h2>
11+
</div>
12+
</div>
13+
</section>
14+
</template>
15+
16+
<script lang="ts" setup>
17+
export interface HeroProps {
18+
title: string;
19+
subtitle: string;
20+
heroType?: string;
21+
}
22+
23+
const heroProps = defineProps<HeroProps>();
24+
</script>

src/pages/GameSelectionScreen.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
import { Component, Vue } from 'vue-property-decorator';
165165
import Game from '../model/game/Game';
166166
import GameManager from '../model/game/GameManager';
167-
import Hero from '../components/Hero.vue';
167+
import Hero from '../components/v2/Hero.vue';
168168
import * as ManagerUtils from '../utils/ManagerUtils';
169169
import ManagerSettings from '../r2mm/manager/ManagerSettings';
170170
import { StorePlatform } from '../model/game/StorePlatform';

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13910,7 +13910,7 @@ vue-template-es2015-compiler@^1.6.0, vue-template-es2015-compiler@^1.9.0:
1391013910
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
1391113911
integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==
1391213912

13913-
vue@^2.7.1:
13913+
vue@2.7.16, vue@^2.7.1:
1391413914
version "2.7.16"
1391513915
resolved "https://registry.yarnpkg.com/vue/-/vue-2.7.16.tgz#98c60de9def99c0e3da8dae59b304ead43b967c9"
1391613916
integrity sha512-4gCtFXaAA3zYZdTp5s4Hl2sozuySsgz4jy1EnpBHNfpMa9dK1ZCG7viqBPCwXtmgc8nHqUsAu3G4gtmXkkY3Sw==

0 commit comments

Comments
 (0)