annotate client/src/staging/Staging.vue @ 1208:8df4ebbc5c3f

staging area
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 19 Nov 2018 13:22:19 +0100
parents
children 9d93968db2cd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1208
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2 <div v-if="showStagingArea" class="card staging-card">
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
3 <div class="card-body staging-card-body">
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
4 <div
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
5 @click="$store.commit('application/showStagingArea', !showStagingArea);"
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
6 class="ui-element close-showStagingArea"
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
7 >
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
8 <i class="fa fa-close"></i>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
9 </div>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
10 <div class="card-title mb-4 headline">
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
11 <h4>Staging area</h4>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
12 <hr>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
13 </div>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
14 <div class="d-flex flex-row input-group mb-4"></div>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
15 </div>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
16 </div>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
17 </template>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
18
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 <script>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20 import { mapState } from "vuex";
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
21 export default {
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
22 computed: {
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
23 ...mapState("application", ["showStagingArea"])
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
24 }
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25 };
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26 </script>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
28 <style lang="sass" scoped>
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
29 .close-showStagingArea
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
30 position: absolute
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
31 z-index: 2
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
32 right: 0
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
33 top: 7px
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
34 border-radius: $border-radius
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
35 height: $icon-width
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
36 width: $icon-height
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
37
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
38 .staging-card
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
39 position: relative
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
40 background-color: white
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
41 width: 30rem
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
42 height: 28rem
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
43 margin-left: auto
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
44 margin-right: auto
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
45 border-radius: $border-radius
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
46 opacity: $slight-transparent
8df4ebbc5c3f staging area
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
47 </style>