Merge branch 'main' of http://18.167.251.121:10003/aidlab/FiDA_Front
This commit is contained in:
@@ -83,4 +83,11 @@
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'MSemiBold';
|
||||||
|
src:url('../fonts/MazzardL-SemiBold.otf') format('opentype');
|
||||||
|
font-weight: 700;
|
||||||
|
font-display: swap;
|
||||||
|
font-style: normal;
|
||||||
}
|
}
|
||||||
BIN
public/fonts/general/fonts/MazzardL-SemiBold.otf
Normal file
BIN
public/fonts/general/fonts/MazzardL-SemiBold.otf
Normal file
Binary file not shown.
@@ -83,7 +83,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
gap: 1.4rem;
|
gap: 1.2rem;
|
||||||
> .line {
|
> .line {
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<svg-icon name="download" size="20" size-unit="px" />
|
<svg-icon name="download" size="20" size-unit="px" />
|
||||||
</span>
|
</span>
|
||||||
<button class="edit">
|
<button class="edit">
|
||||||
<span class="icon"><svg-icon name="edit" size="11" /></span>
|
<span class="icon"><svg-icon name="edit" size="13" /></span>
|
||||||
<span class="text">Edit</span>
|
<span class="text">Edit</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
height: 30px;
|
height: 30px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: none;
|
border: none;
|
||||||
background-color: #ff7a51;
|
background-color: #ED8936;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
modelValue: { type: String },
|
modelValue: { type: String },
|
||||||
list: {
|
list: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => ['1:1', '4:3', '3:4', '16:9']
|
default: () => ['1:1', '4:3']
|
||||||
|
// default: () => ['1:1', '4:3', '3:4', '16:9']
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const data = reactive({})
|
const data = reactive({})
|
||||||
@@ -47,10 +48,10 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #7c7c7c;
|
color: #7c7c7c;
|
||||||
height: 21px;
|
height: 21px;
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
padding: 0 8px;
|
||||||
&.active {
|
&.active {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
@@ -58,7 +59,7 @@
|
|||||||
&::before {
|
&::before {
|
||||||
content: '';
|
content: '';
|
||||||
border-radius: 1px;
|
border-radius: 1px;
|
||||||
border: 1px solid #7c7c7c;
|
border: 1.2px solid #7c7c7c;
|
||||||
width: calc(var(--w) / max(var(--w), var(--h)) * 10px);
|
width: calc(var(--w) / max(var(--w), var(--h)) * 10px);
|
||||||
height: calc(var(--h) / max(var(--w), var(--h)) * 10px);
|
height: calc(var(--h) / max(var(--w), var(--h)) * 10px);
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
|
|||||||
@@ -74,8 +74,11 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
box-shadow: 0px 0.75px 0px 0px rgba(0, 0, 0, 0.02);
|
box-shadow: 0px 0.75px 0px 0px rgba(0, 0, 0, 0.02);
|
||||||
min-width: 39px;
|
min-width: 39px;
|
||||||
height: 13px;
|
// height: 13px;
|
||||||
border-radius: 2.3px;
|
border-radius: 2.3px;
|
||||||
|
width: 56px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 18px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
font-size: 6px;
|
font-size: 6px;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
|||||||
@@ -126,9 +126,9 @@ export default {
|
|||||||
chooseStyle: 'Choose Style',
|
chooseStyle: 'Choose Style',
|
||||||
setting: 'Setting',
|
setting: 'Setting',
|
||||||
settingOptions: {
|
settingOptions: {
|
||||||
creativity: 'Creativity',
|
first: 'Image strength',
|
||||||
diversity: 'Diversity',
|
second: 'Region strength',
|
||||||
relevance: 'Relevance'
|
third: 'Style strength'
|
||||||
},
|
},
|
||||||
confirm: 'Confirm',
|
confirm: 'Confirm',
|
||||||
styleTitle: 'Settings',
|
styleTitle: 'Settings',
|
||||||
|
|||||||
@@ -120,9 +120,9 @@ export default {
|
|||||||
chooseStyle: '选择风格',
|
chooseStyle: '选择风格',
|
||||||
setting: 'Setting',
|
setting: 'Setting',
|
||||||
settingOptions: {
|
settingOptions: {
|
||||||
creativity: '创意度',
|
first: '图像强度',
|
||||||
diversity: '多样性',
|
second: '区域强度',
|
||||||
relevance: '相关度'
|
third: '风格强度'
|
||||||
},
|
},
|
||||||
confirm: '确认',
|
confirm: '确认',
|
||||||
styleTitle: '设置',
|
styleTitle: '设置',
|
||||||
|
|||||||
@@ -490,7 +490,7 @@
|
|||||||
// width: 39%;
|
// width: 39%;
|
||||||
// width: 63.4rem;
|
// width: 63.4rem;
|
||||||
// flex: 1;
|
// flex: 1;
|
||||||
width: 634px;
|
width: 67.4rem;
|
||||||
margin-right: 2.7rem;
|
margin-right: 2.7rem;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
@@ -516,9 +516,9 @@
|
|||||||
row-gap: 2.4rem;
|
row-gap: 2.4rem;
|
||||||
.assist-input-wrapper {
|
.assist-input-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 14.4rem;
|
// height: 14.4rem;
|
||||||
min-height: 14.4rem !important;
|
min-height: 14.4rem !important;
|
||||||
max-height: 14.4rem !important;
|
max-height: 18.1rem !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.input-wrapper {
|
.input-wrapper {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ const {} = toRefs(data)
|
|||||||
:with-header="false"
|
:with-header="false"
|
||||||
>
|
>
|
||||||
<div class="versionTreeTitle">
|
<div class="versionTreeTitle">
|
||||||
<span>Version Tree: Retro Sofa Sketch</span>
|
<span>Version Tree</span>
|
||||||
<div class="closeBtn" @click="versionTreeData.drawer = false">
|
<div class="closeBtn" @click="versionTreeData.drawer = false">
|
||||||
<div class="closeIcon">
|
<div class="closeIcon">
|
||||||
<SvgIcon name="close" />
|
<SvgIcon name="close" />
|
||||||
@@ -219,7 +219,7 @@ const {} = toRefs(data)
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 8px;
|
border-radius: .8rem;
|
||||||
border: 1.5px solid #D9D9D9;
|
border: 1.5px solid #D9D9D9;
|
||||||
color: rgba(0, 0, 0, 0.6);
|
color: rgba(0, 0, 0, 0.6);
|
||||||
> .versionExport{
|
> .versionExport{
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const projectStore = useProjectStore()
|
const projectStore = useProjectStore()
|
||||||
|
|
||||||
const agentTitle = ref('Retro Sofa Sketch')
|
const agentTitle = ref('Conversation')
|
||||||
const previewType = ref<'sketch' | 'report'>('sketch')
|
const previewType = ref<'sketch' | 'report'>('sketch')
|
||||||
const VersionTreeIndexRef = ref()
|
const VersionTreeIndexRef = ref()
|
||||||
const agentRef = ref()
|
const agentRef = ref()
|
||||||
@@ -66,6 +66,9 @@
|
|||||||
if (res) agentRef.value.setChatInfo(res)
|
if (res) agentRef.value.setChatInfo(res)
|
||||||
let data = res?.project || res
|
let data = res?.project || res
|
||||||
if (data?.latestNodeId) data.nodeId = data.latestNodeId
|
if (data?.latestNodeId) data.nodeId = data.latestNodeId
|
||||||
|
if (data) {
|
||||||
|
agentTitle.value = data.name
|
||||||
|
}
|
||||||
projectStore.setProject({
|
projectStore.setProject({
|
||||||
...data
|
...data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -521,9 +521,9 @@
|
|||||||
|
|
||||||
const settingPopupVisible = ref(false)
|
const settingPopupVisible = ref(false)
|
||||||
const settingOptions = ref([
|
const settingOptions = ref([
|
||||||
{ label: 'Input.settingOptions.creativity', value: 50 },
|
{ label: 'Input.settingOptions.first', value: 50 },
|
||||||
{ label: 'Input.settingOptions.diversity', value: 50 },
|
{ label: 'Input.settingOptions.second', value: 50 },
|
||||||
{ label: 'Input.settingOptions.relevance', value: 50 }
|
{ label: 'Input.settingOptions.third', value: 50 }
|
||||||
])
|
])
|
||||||
|
|
||||||
const openStylePopup = () => {
|
const openStylePopup = () => {
|
||||||
@@ -627,6 +627,9 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
.animate-container {
|
||||||
|
overflow-y: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
&:not(.agent) .animate-container {
|
&:not(.agent) .animate-container {
|
||||||
box-shadow: 0px 0.5rem 1.4rem 0px #0000001a;
|
box-shadow: 0px 0.5rem 1.4rem 0px #0000001a;
|
||||||
@@ -661,6 +664,16 @@
|
|||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 0;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
// 占位符
|
// 占位符
|
||||||
&:empty::before {
|
&:empty::before {
|
||||||
@@ -779,7 +792,7 @@
|
|||||||
width: 13rem;
|
width: 13rem;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 4.2rem;
|
border-radius: 4.2rem;
|
||||||
font-family: 'Mazzard';
|
font-family: 'MSemiBold';
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 1.28rem;
|
font-size: 1.28rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
Reference in New Issue
Block a user