Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 91e769e5
authored
Jul 14, 2024
by
likui628
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: typos
1 parent
3a7b5c29
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
17 deletions
packages/@core/ui-kit/menu-ui/src/components/menu.vue
packages/effects/common-ui/src/authentication/forget-password.vue
packages/effects/common-ui/src/authentication/register.vue
packages/effects/common-ui/src/fallback/fallback.ts
packages/effects/common-ui/src/fallback/fallback.vue
packages/effects/common-ui/src/fallback/icons/icon-comming-soon.vue → packages/effects/common-ui/src/fallback/icons/icon-coming-soon.vue
packages/effects/layouts/src/basic/menu/extra-menu.vue
packages/@core/ui-kit/menu-ui/src/components/menu.vue
View file @
91e769e
...
@@ -175,10 +175,10 @@ function calcSliceIndex() {
...
@@ -175,10 +175,10 @@ function calcSliceIndex() {
}
}
function
debounce
(
fn
:
()
=>
void
,
wait
=
33.34
)
{
function
debounce
(
fn
:
()
=>
void
,
wait
=
33.34
)
{
let
tim
m
er
:
ReturnType
<
typeof
setTimeout
>
|
null
;
let
timer
:
ReturnType
<
typeof
setTimeout
>
|
null
;
return
()
=>
{
return
()
=>
{
tim
mer
&&
clearTimeout
(
tim
mer
);
tim
er
&&
clearTimeout
(
ti
mer
);
tim
m
er
=
setTimeout
(()
=>
{
timer
=
setTimeout
(()
=>
{
fn
();
fn
();
},
wait
);
},
wait
);
};
};
...
...
packages/effects/common-ui/src/authentication/forget-password.vue
View file @
91e769e
...
@@ -42,7 +42,7 @@ const emailStatus = computed(() => {
...
@@ -42,7 +42,7 @@ const emailStatus = computed(() => {
return
formState
.
submitted
&&
!
formState
.
email
?
'error'
:
'default'
;
return
formState
.
submitted
&&
!
formState
.
email
?
'error'
:
'default'
;
});
});
function
handleSubm
u
t
()
{
function
handleSubm
i
t
()
{
formState
.
submitted
=
true
;
formState
.
submitted
=
true
;
if
(
emailStatus
.
value
!==
'default'
)
{
if
(
emailStatus
.
value
!==
'default'
)
{
return
;
return
;
...
@@ -76,7 +76,7 @@ function goToLogin() {
...
@@ -76,7 +76,7 @@ function goToLogin() {
/>
/>
</div>
</div>
<div>
<div>
<VbenButton
class=
"mt-2 w-full"
@
click=
"handleSubm
u
t"
>
<VbenButton
class=
"mt-2 w-full"
@
click=
"handleSubm
i
t"
>
{{ $t('authentication.sendResetLink') }}
{{ $t('authentication.sendResetLink') }}
</VbenButton>
</VbenButton>
<VbenButton
class=
"mt-4 w-full"
variant=
"outline"
@
click=
"goToLogin()"
>
<VbenButton
class=
"mt-4 w-full"
variant=
"outline"
@
click=
"goToLogin()"
>
...
...
packages/effects/common-ui/src/authentication/register.vue
View file @
91e769e
...
@@ -43,7 +43,7 @@ const router = useRouter();
...
@@ -43,7 +43,7 @@ const router = useRouter();
const
formState
=
reactive
({
const
formState
=
reactive
({
agreePolicy
:
false
,
agreePolicy
:
false
,
co
m
firmPassword
:
''
,
co
n
firmPassword
:
''
,
password
:
''
,
password
:
''
,
submitted
:
false
,
submitted
:
false
,
username
:
''
,
username
:
''
,
...
@@ -57,8 +57,8 @@ const passwordStatus = computed(() => {
...
@@ -57,8 +57,8 @@ const passwordStatus = computed(() => {
return
formState
.
submitted
&&
!
formState
.
password
?
'error'
:
'default'
;
return
formState
.
submitted
&&
!
formState
.
password
?
'error'
:
'default'
;
});
});
const
co
m
firmPasswordStatus
=
computed
(()
=>
{
const
co
n
firmPasswordStatus
=
computed
(()
=>
{
return
formState
.
submitted
&&
formState
.
password
!==
formState
.
co
m
firmPassword
return
formState
.
submitted
&&
formState
.
password
!==
formState
.
co
n
firmPassword
?
'error'
?
'error'
:
'default'
;
:
'default'
;
});
});
...
@@ -116,12 +116,12 @@ function goToLogin() {
...
@@ -116,12 +116,12 @@ function goToLogin() {
</VbenInputPassword>
</VbenInputPassword>
<VbenInputPassword
<VbenInputPassword
v-model=
"formState.co
m
firmPassword"
v-model=
"formState.co
n
firmPassword"
:error-tip=
"$t('authentication.confirmPasswordTip')"
:error-tip=
"$t('authentication.confirmPasswordTip')"
:label=
"$t('authentication.confirmPassword')"
:label=
"$t('authentication.confirmPassword')"
:placeholder=
"$t('authentication.confirmPassword')"
:placeholder=
"$t('authentication.confirmPassword')"
:status=
"co
m
firmPasswordStatus"
:status=
"co
n
firmPasswordStatus"
name=
"co
m
firmPassword"
name=
"co
n
firmPassword"
required
required
type=
"password"
type=
"password"
/>
/>
...
...
packages/effects/common-ui/src/fallback/fallback.ts
View file @
91e769e
...
@@ -16,7 +16,7 @@ interface FallbackProps {
...
@@ -16,7 +16,7 @@ interface FallbackProps {
/**
/**
* @zh_CN 内置类型
* @zh_CN 内置类型
*/
*/
status
?:
'403'
|
'404'
|
'500'
|
'com
m
ing-soon'
|
'offline'
;
status
?:
'403'
|
'404'
|
'500'
|
'coming-soon'
|
'offline'
;
/**
/**
* @zh_CN 页面提示语
* @zh_CN 页面提示语
*/
*/
...
...
packages/effects/common-ui/src/fallback/fallback.vue
View file @
91e769e
...
@@ -19,7 +19,7 @@ const props = withDefaults(defineProps<Props>(), {
...
@@ -19,7 +19,7 @@ const props = withDefaults(defineProps<Props>(), {
homePath
:
'/'
,
homePath
:
'/'
,
image
:
''
,
image
:
''
,
showBack
:
true
,
showBack
:
true
,
status
:
'com
m
ing-soon'
,
status
:
'coming-soon'
,
title
:
''
,
title
:
''
,
});
});
...
@@ -27,7 +27,7 @@ const Icon403 = defineAsyncComponent(() => import('./icons/icon-403.vue'));
...
@@ -27,7 +27,7 @@ const Icon403 = defineAsyncComponent(() => import('./icons/icon-403.vue'));
const
Icon404
=
defineAsyncComponent
(()
=>
import
(
'./icons/icon-404.vue'
));
const
Icon404
=
defineAsyncComponent
(()
=>
import
(
'./icons/icon-404.vue'
));
const
Icon500
=
defineAsyncComponent
(()
=>
import
(
'./icons/icon-500.vue'
));
const
Icon500
=
defineAsyncComponent
(()
=>
import
(
'./icons/icon-500.vue'
));
const
IconHello
=
defineAsyncComponent
(
const
IconHello
=
defineAsyncComponent
(
()
=>
import
(
'./icons/icon-com
m
ing-soon.vue'
),
()
=>
import
(
'./icons/icon-coming-soon.vue'
),
);
);
const
IconOffline
=
defineAsyncComponent
(
const
IconOffline
=
defineAsyncComponent
(
()
=>
import
(
'./icons/icon-offline.vue'
),
()
=>
import
(
'./icons/icon-offline.vue'
),
...
@@ -51,7 +51,7 @@ const titleText = computed(() => {
...
@@ -51,7 +51,7 @@ const titleText = computed(() => {
case
'offline'
:
{
case
'offline'
:
{
return
$t
(
'fallback.offlineError'
);
return
$t
(
'fallback.offlineError'
);
}
}
case
'com
m
ing-soon'
:
{
case
'coming-soon'
:
{
return
$t
(
'fallback.comingSoon'
);
return
$t
(
'fallback.comingSoon'
);
}
}
default
:
{
default
:
{
...
@@ -97,7 +97,7 @@ const fallbackIcon = computed(() => {
...
@@ -97,7 +97,7 @@ const fallbackIcon = computed(() => {
case
'offline'
:
{
case
'offline'
:
{
return
IconOffline
;
return
IconOffline
;
}
}
case
'com
m
ing-soon'
:
{
case
'coming-soon'
:
{
return
IconHello
;
return
IconHello
;
}
}
default
:
{
default
:
{
...
...
packages/effects/common-ui/src/fallback/icons/icon-com
m
ing-soon.vue
→
packages/effects/common-ui/src/fallback/icons/icon-coming-soon.vue
View file @
91e769e
File moved
packages/effects/layouts/src/basic/menu/extra-menu.vue
View file @
91e769e
...
@@ -8,7 +8,7 @@ import { Menu, MenuProps } from '@vben-core/menu-ui';
...
@@ -8,7 +8,7 @@ import { Menu, MenuProps } from '@vben-core/menu-ui';
import
{
useNavigation
}
from
'./use-navigation'
;
import
{
useNavigation
}
from
'./use-navigation'
;
interface
Props
extends
MenuProps
{
interface
Props
extends
MenuProps
{
coll
spa
e
?:
boolean
;
coll
aps
e
?:
boolean
;
menus
:
MenuRecordRaw
[];
menus
:
MenuRecordRaw
[];
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment