From 20cce1f6c3a49c33a0b498ec93b7066cb9c72cd1 Mon Sep 17 00:00:00 2001
From: kaubu <29447633+kaubu@users.noreply.github.com>
Date: Fri, 1 Dec 2023 08:23:05 +0000
Subject: [PATCH] v1.1.1 - Minor update
---
src/views/Generator.vue | 19 ++++++++++++++-----
vite.config.ts | 2 +-
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/src/views/Generator.vue b/src/views/Generator.vue
index bac0828..6466189 100644
--- a/src/views/Generator.vue
+++ b/src/views/Generator.vue
@@ -42,8 +42,9 @@
-
+
+ Any
Unisex
Male
Female
@@ -77,14 +78,20 @@
{{ index + 1 }} |
-
+ |
+ {{ namePair[1].english_name }}
+ |
+
{{ namePair[0].english_name }} {{ namePair[1].english_name }}
|
{{ namePair[0].english_name }}
|
-
+ |
+ {{ namePair[1].anglish_name }}
+ |
+
{{ namePair[0].anglish_name }} {{ namePair[1].anglish_name }}
|
@@ -178,9 +185,11 @@ function generateFirstName(num: number) {
namesPool = namesPool.filter((name) => {
if (sex.value == 0) {
return name;
- } else if ((name.kind == "Male" || name.kind == "Unisex") && sex.value == 1) {
+ } else if (name.kind == "Unisex" && sex.value == 1) {
+ return name;
+ } else if ((name.kind == "Male" || name.kind == "Unisex") && sex.value == 2) { // Male
return name;
- } else if ((name.kind == "Female" || name.kind == "Unisex") && sex.value == 2) {
+ } else if ((name.kind == "Female" || name.kind == "Unisex") && sex.value == 3) { // Female
return name;
}
// else {
diff --git a/vite.config.ts b/vite.config.ts
index 31f40ba..fba95e5 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -13,5 +13,5 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
- base: "https://pure-english.github.io/name-generator/",
+ base: "/name-generator/",
})
|