File size: 2,669 Bytes
b1cc7ae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<script setup lang="ts">

import router from "@/router.ts";
import { useSettingsStore } from "@/stores/config.ts";
import {onMounted, ref} from "vue";
import {SettingTwoTone} from "@ant-design/icons-vue";

const settingsStore = useSettingsStore()

onMounted(() => {
  console.log('config', settingsStore.$state)
})
const backAction = () => {
  router.replace('/')
}

// const inputType = ref<string>(settingsStore.$state.file_type);
// const role = ref<string>(settingsStore.$state.role_name);
// const onTypeChange = (e: any) => {
//   console.log('onTypeChange', e.target.value)
//   settingsStore.$state.file_type = e.target.value
// }

// const onRoleChange = (e: any) => {
//   console.log('onRoleChange', e.target.value)
//   settingsStore.$state.role_name = e.target.value
//   stateStore.changeRole(e.target.value)
//   console.log('role_name', settingsStore.$state.role_name)
// }


</script>

<template>
  <div class="content-wrapper">
    <a-result style="width: 100%;" title="Settings">
      <!-- <template #icon>
        <img
            alt="logo"
            src="/logo.webp"
            style="width: 128px; border-radius: 24px;"
        />
      </template>
      <template #extra>
        <div class="content-box">
          <a-form layout="vertical">
            <a-form-item
                         label="Choose your input type:"
                         name="inputType"
            >
              <a-radio-group v-model:value="inputType" @change="onTypeChange">
                <a-radio :value="'file'">Audio File</a-radio>
                <a-radio :value="'audio'">Speak</a-radio>
              </a-radio-group>
            </a-form-item>

            <a-form-item
                         label="Choose your desire role:"
                         name="role"
            >
              <a-radio-group  v-model:value="role" @change="onRoleChange">
                <a-radio :value="'trump'">Trump</a-radio>
                <a-radio :value="'ellen'">Ellen</a-radio>
              </a-radio-group>
            </a-form-item>
          </a-form>
        </div>

        <a-button @click="backAction" type="primary">Back</a-button>
      </template> -->

    </a-result>
  </div>
</template>

<style lang="scss" scoped>

.content-wrapper {
  text-align: left;
  max-width: 800px;
  min-width: 320px;
  margin-bottom: 64px;
  min-height: calc(100vh - 438px);

  .content-box {
    padding: 24px;
    height: 240px;
    background-color: #e8e8e8;
    border-radius: 16px;
    width: 50%;
    margin: 48px auto;
    min-width: 300px;
  }

  .video-box {
    max-width: 800px;
    min-width: 320px;
    width: 90vw;
    height: auto;
  }
}

</style>