Skip to content

Commit

Permalink
chore: rename dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
justorez committed Mar 31, 2024
1 parent b0d8614 commit 81477ea
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 14 deletions.
5 changes: 2 additions & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"recommendations": [
"Vue.volar",
"Vue.vscode-typescript-vue-plugin",
"bradlc.vscode-tailwindcss",
"github.vscode-github-actions"
"github.vscode-github-actions",
"vue.volar"
]
}
Empty file removed CHANGELOG.md
Empty file.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"sync:gitee": "node scripts/gitee.js",
"lint": "eslint --ignore-path .gitignore .",
"lint:fix": "eslint --fix --ignore-path .gitignore .",
"changelog": "conventional-changelog -p angular -t v -i CHANGELOG.md -s",
"release": "node scripts/release.js",
"commit": "pnpm exec cz"
},
"simple-git-hooks": {
Expand Down
File renamed without changes.
8 changes: 3 additions & 5 deletions src/pages/episode.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { checkSentence } from '@/utils/index'
import { useAudio, usePage, useInput, useSpeech } from '@/hooks/episode'
import { equalSentence } from '@/utils/index'
import { useAudio, usePage, useInput, useSpeech } from '@/composables/episode'
const route = useRoute()
const router = useRouter()
Expand All @@ -20,7 +20,7 @@ function check() {
if (showResult.value && !result.value) return restore()
if (showResult.value && result.value) return next()
result.value = checkSentence(input.value, sentence.value.EN)
result.value = equalSentence(input.value, sentence.value.EN)
showResult.value = true
if (result.value) {
completedList.value[page.index] = true
Expand Down Expand Up @@ -55,7 +55,6 @@ function next() {
<span>{{ completed }}/{{ episode.sentences.length }}</span>
</div>
<div class="mt-5 flex justify-center items-center">
<!-- <i-mdi:chevron-left class="text-2xl" /> -->
<div class="px-2 flex-1">
<h1 class="font-bold text-2xl flex justify-between items-end">
第 {{ ep }} 集:{{ episode.titleCN }}
Expand Down Expand Up @@ -101,7 +100,6 @@ function next() {
@keyup.enter.exact="check"
></textarea>
</div>
<!-- <i-mdi:chevron-right class="text-2xl" /> -->
</div>
<div class="mt-5 flex justify-between items-center">
<div>
Expand Down
1 change: 0 additions & 1 deletion src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function getProgress(i: number) {

<template>
<div class="vapp entrance-list">
<!-- style="flex-basis: calc(16.66% - 0.9rem); min-width: 90px" -->
<RouterLink
v-for="i in 52"
:key="i"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function checkSentence(input: string, answer: string) {
export function equalSentence(input: string, answer: string) {
input = input
.replace(/[.,?!]/g, ' ')
.split(/\s+/)
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export default defineConfig({
// https://npmmirror.com/package/unplugin-vue-router
VueRouter({
routesFolder: [{ src: 'src/pages' }],
dts: 'types/typed-router.d.ts',
extensions: ['.vue']
dts: 'types/typed-router.d.ts'
}),

// Vue must be placed after VueRouter()
Expand Down

0 comments on commit 81477ea

Please sign in to comment.