-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still missing a lot of features, but you can draft with it.
- Loading branch information
Showing
12 changed files
with
385 additions
and
41 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
declare module 'vue-directive-long-press'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { vuexModule } from './vuex/vuexModule'; | ||
import { rootStore } from './store'; | ||
|
||
export const formatStore = vuexModule( | ||
rootStore, | ||
'format', | ||
{ | ||
layout: 'desktop', | ||
} as FormatState, | ||
{ | ||
mutations: { | ||
setLayout(state: FormatState, layout: LayoutFormFactor) { | ||
state.layout = layout; | ||
}, | ||
}, | ||
|
||
getters: {}, | ||
|
||
actions: {}, | ||
} | ||
) | ||
|
||
export interface FormatState { | ||
layout: LayoutFormFactor; | ||
} | ||
|
||
export type LayoutFormFactor = 'mobile' | 'desktop'; | ||
|
||
export type FormatStore = typeof formatStore; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<!-- | ||
|
||
Root component for desktop layout | ||
|
||
--> | ||
|
||
<template> | ||
<div class="_replay-desktop"> | ||
<ControlsRow /> | ||
<div class="main"> | ||
<PlayerSelector class="table" /> | ||
<DraftPicker | ||
v-if="showDraftPicker" | ||
class="picker" | ||
:showDeckBuilder="true" | ||
/> | ||
<CardGrid v-else class="grid" /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from 'vue' | ||
import ControlsRow from './ControlsRow.vue'; | ||
import PlayerSelector from './player_selector/PlayerSelector.vue'; | ||
import CardGrid from './CardGrid.vue'; | ||
import DraftPicker from './DraftPicker.vue'; | ||
|
||
export default Vue.extend({ | ||
components: { | ||
DraftPicker, | ||
CardGrid, | ||
ControlsRow, | ||
PlayerSelector, | ||
}, | ||
|
||
props: { | ||
showDraftPicker: { | ||
type: Boolean, | ||
required: true, | ||
}, | ||
}, | ||
}) | ||
|
||
</script> | ||
|
||
<style scoped> | ||
._replay-desktop { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.main { | ||
display: flex; | ||
flex: 1; | ||
flex-direction: row; | ||
overflow: hidden; | ||
} | ||
|
||
.table { | ||
width: 300px; | ||
flex: 0 0 auto; | ||
} | ||
|
||
.grid, .picker { | ||
flex: 1; | ||
} | ||
</style> | ||
|
Oops, something went wrong.