Skip to content

Commit

Permalink
chore(toolbox): 调整部分 UI 文案、增加替换规则
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9804 committed May 3, 2024
1 parent 69a7393 commit 2f8a7d1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const staffName = computed({
},
});
function handleStaffChange(event: Event) {
function handleStaffChange(event: string) {
if (config.isProofread) {
mainStore.setProofreader(event);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@input="inputHandle"
style="width: 95%; height: 120px"
clearable
ref="textInputRef"
></n-input>
<n-space
v-if="translateStruct.translateType === TranslateType.select"
Expand Down Expand Up @@ -103,7 +104,7 @@
</div>
</template>
<script setup lang="ts">
import { ComputedRef, Directive, computed } from 'vue';
import { ComputedRef, Directive, computed, ref, onMounted } from 'vue';
import { useGlobalConfig } from '../store/configStore';
import { useScenarioStore } from '../store/scenarioEditorStore';
import { ContentLine } from '../types/content';
Expand All @@ -121,6 +122,12 @@ const props = defineProps({
handleGotoPrevLineRequest: Function,
});
const textInputRef = ref<HTMLInputElement | null>(null);
onMounted(() => {
textInputRef.value?.focus();
});
const config = useGlobalConfig();
const mainStore = useScenarioStore();
// eslint-disable-next-line
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@ const replaceStrings = [
from: " ",
to: "",
},
{
from: "·",
to: "",
},
{
from: "...",
to: "",
},
];
function handleFormalizePunctuation() {
Expand Down
14 changes: 10 additions & 4 deletions apps/blue-archive-story-viewer/src/components/AboutPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,19 @@ const contributorList: any = h(
<p>
本站与ブルーアーカイブ、Yostar、Nexon 以及 Nexon Games
没有任何形式关联。<br />
本网站中使用的所有游戏作品、信息和素材均为各自作者的财产和版权。
本网站中使用的所有游戏作品、信息和素材均为各自作者的财产和版权。<br />
本网站使用 Microsoft Clarity
收集匿名用户行为数据,以优化用户体验。我们不会收集任何可以用于识别用户的个人信息。
</p>
<p>
This site is not affiliated in any forms with Blue Archive, Yostar,
Nexon and Nexon Games.<br />All game artwork, information and assets
used in this site are the property and copyright of the respective
authors.
Nexon and Nexon Games.<br />
All game artwork, information and assets used in this site are the
property and copyright of the respective authors.
<br />
This site uses Microsoft Clarity to collect anonymous user behavior
data for user experience optimization. We do not collect any personal
information that can be used to identify users.
</p>
</section>
<section class="contributor flex-vertical">
Expand Down

0 comments on commit 2f8a7d1

Please sign in to comment.