-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
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
54 changes: 54 additions & 0 deletions
54
src/components/set/publish/singleplatform/web/FlowusSetting.vue
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,54 @@ | ||
<!-- | ||
- Copyright (c) 2023, Terwer . All rights reserved. | ||
- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
- | ||
- This code is free software; you can redistribute it and/or modify it | ||
- under the terms of the GNU General Public License version 2 only, as | ||
- published by the Free Software Foundation. Terwer designates this | ||
- particular file as subject to the "Classpath" exception as provided | ||
- by Terwer in the LICENSE file that accompanied this code. | ||
- | ||
- This code is distributed in the hope that it will be useful, but WITHOUT | ||
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
- version 2 for more details (a copy is included in the LICENSE file that | ||
- accompanied this code). | ||
- | ||
- You should have received a copy of the GNU General Public License version | ||
- 2 along with this work; if not, write to the Free Software Foundation, | ||
- Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
- | ||
- Please contact Terwer, Shenzhen, Guangdong, China, [email protected] | ||
- or visit www.terwer.space if you need additional information or have any | ||
- questions. | ||
--> | ||
|
||
<script setup lang="ts"> | ||
import CustomWebSetting from "~/src/components/set/publish/singleplatform/base/impl/CustomWebSetting.vue" | ||
import { useVueI18n } from "~/src/composables/useVueI18n.ts" | ||
import { useFlowusWeb } from "~/src/adaptors/web/flowus/useFlowusWeb.ts" | ||
import { FlowusConfig } from "~/src/adaptors/web/flowus/flowusConfig.ts" | ||
import { FlowusPlaceholder } from "~/src/adaptors/web/flowus/flowusPlaceholder.ts" | ||
const props = defineProps({ | ||
apiType: { | ||
type: String, | ||
default: "", | ||
}, | ||
}) | ||
const { t } = useVueI18n() | ||
const { cfg } = await useFlowusWeb(props.apiType) | ||
const flowusCfg = cfg as FlowusConfig | ||
const flowusPlaceholder = new FlowusPlaceholder() | ||
flowusPlaceholder.homePlaceholder = t("setting.flowus.home.tip") | ||
flowusPlaceholder.apiUrlPlaceholder = t("setting.flowus.apiUrl.tip") | ||
flowusPlaceholder.passwordPlaceholder = t("setting.flowus.password.tip") | ||
flowusPlaceholder.previewUrlPlaceholder = t("setting.flowus.previewUrl.tip") | ||
flowusCfg.placeholder = flowusPlaceholder | ||
</script> | ||
|
||
<template> | ||
<custom-web-setting :api-type="props.apiType" :cfg="flowusCfg" /> | ||
</template> |
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