Line | |
---|
1 | <template>
|
---|
2 | <div class="root">
|
---|
3 | <!-- <div class="app-bar theme-primary">
|
---|
4 | <div class="app-bar-content">
|
---|
5 | <span class="heading1">{{ translations.get("Title") }}</span>
|
---|
6 | </div>
|
---|
7 | </div> -->
|
---|
8 |
|
---|
9 | <main-page class="content" />
|
---|
10 | </div>
|
---|
11 |
|
---|
12 | <modal-dialog ref="modalDialog" />
|
---|
13 | </template>
|
---|
14 |
|
---|
15 | <style lang="scss">
|
---|
16 | html, body, #app {
|
---|
17 | height: 100%;
|
---|
18 | width: 100%;
|
---|
19 | }
|
---|
20 |
|
---|
21 | .root {
|
---|
22 | display: flex;
|
---|
23 | flex-direction: column;
|
---|
24 | height: 100%;
|
---|
25 | }
|
---|
26 |
|
---|
27 | .app-bar {
|
---|
28 | display: flex;
|
---|
29 | flex-direction: column;
|
---|
30 | gap: 1em;
|
---|
31 |
|
---|
32 | background-color: var(--bg-color);
|
---|
33 | color: var(--fg-color);
|
---|
34 | box-shadow: 0px 0px 4px 3px #6d6d6d;
|
---|
35 |
|
---|
36 | padding: 1em;
|
---|
37 | margin-bottom: 1em;
|
---|
38 | }
|
---|
39 |
|
---|
40 | .app-bar-content {
|
---|
41 | display: flex;
|
---|
42 | align-items: center;
|
---|
43 | gap: 1em;
|
---|
44 |
|
---|
45 | width: 100%;
|
---|
46 |
|
---|
47 | & :first-child {
|
---|
48 | flex-grow: 1;
|
---|
49 | }
|
---|
50 | }
|
---|
51 |
|
---|
52 | .content {
|
---|
53 | padding: 1em;
|
---|
54 | flex-grow: 1;
|
---|
55 | }
|
---|
56 | </style>
|
---|
57 |
|
---|
58 | <script>
|
---|
59 | import { mapState } from "vuex";
|
---|
60 | import MainPage from "./components/MainPage.vue"
|
---|
61 | import ModalDialog, { ModalController } from "./components/ModalDialog.vue"
|
---|
62 |
|
---|
63 | export default {
|
---|
64 | name: "App",
|
---|
65 | components: {
|
---|
66 | MainPage,
|
---|
67 | ModalDialog
|
---|
68 | },
|
---|
69 | computed: {
|
---|
70 | ...mapState({
|
---|
71 | translations: state => state.translations
|
---|
72 | })
|
---|
73 | },
|
---|
74 | mounted() {
|
---|
75 | ModalController.setModal(this.$refs.modalDialog);
|
---|
76 | }
|
---|
77 | }
|
---|
78 | </script>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.