Skip to content

Commit

Permalink
style: fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklin committed Sep 10, 2024
1 parent a01a6c8 commit ad0b47e
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 57 deletions.
1 change: 0 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<div align='center'>
<h1>Celeris Web</h1>
<img src='docs/README.assets/logo.webp' alt='celeris-web - free and open-source front-end development framework' width='344'/>
Expand Down
45 changes: 6 additions & 39 deletions apps/admin/src/component/SearchDialog/src/SearchDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,26 +282,15 @@ onMounted(() => {
margin-bottom: 5px;
padding: 20px 10px 5px;
}
.search-dialog
.search-dialog-action-bar
.content-wrap
.group
.group-list
.item {
.search-dialog .search-dialog-action-bar .content-wrap .group .group-list .item {
padding: 7px 10px;
gap: 10px;
cursor: pointer;
border-radius: 10px;
width: 100%;
text-align: left;
}
.search-dialog
.search-dialog-action-bar
.content-wrap
.group
.group-list
.item
.icon {
.search-dialog .search-dialog-action-bar .content-wrap .group .group-list .item .icon {
width: 28px;
height: 28px;
border-radius: 50%;
Expand All @@ -310,39 +299,17 @@ onMounted(() => {
justify-content: center;
align-items: center;
}
.search-dialog
.search-dialog-action-bar
.content-wrap
.group
.group-list
.item
.title {
.search-dialog .search-dialog-action-bar .content-wrap .group .group-list .item .title {
font-weight: bold;
}
.search-dialog
.search-dialog-action-bar
.content-wrap
.group
.group-list
.item
.label {
.search-dialog .search-dialog-action-bar .content-wrap .group .group-list .item .label {
opacity: 0.8;
font-size: 0.9em;
}
.search-dialog
.search-dialog-action-bar
.content-wrap
.group
.group-list
.item.active {
.search-dialog .search-dialog-action-bar .content-wrap .group .group-list .item.active {
background-color: var(--hover-color);
}
.search-dialog
.search-dialog-action-bar
.content-wrap
.group
.group-list
.item:hover {
.search-dialog .search-dialog-action-bar .content-wrap .group .group-list .item:hover {
box-shadow: 0 0 0 1px var(--primary-color-hover) inset;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ const { selectedAssistantRef } = inject<ChatContextInjectionKey>(chatContextInje
.chat-history-action :deep(.ca-card) > .ca-card__content,
:deep(.ca-card) > .ca-card__footer {
box-sizing: border-box;
padding: 0 calc(var(--n-padding-left) / 2) calc(var(--n-padding-bottom) / 2)
calc(var(--n-padding-left) / 2);
padding: 0 calc(var(--n-padding-left) / 2) calc(var(--n-padding-bottom) / 2) calc(var(--n-padding-left) / 2);
}
.chat-history-action :deep(.ca-card) > .ca-card__content:first-child,
:deep(.ca-card) > .ca-card__footer:first-child {
Expand Down
4 changes: 2 additions & 2 deletions apps/admin/src/pages/dashboard/components/DataOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function tooltipItemsHtmlString(items: ToolTipFormatterParams[]) {
el => `<div class="content-panel">
<p>
<span style="background-color: ${
el.color
}" class="tooltip-item-icon"></span><span>${el.seriesName}</span>
el.color
}" class="tooltip-item-icon"></span><span>${el.seriesName}</span>
</p>
<span class="tooltip-value">${el.value?.toLocaleString()}</span>
</div>`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const rules: FormRules = {
message: t("page.login.form.forgotPassword.requiredError"),
},
{
pattern: /^1[3456789]\d{9}$/,
pattern: /^1[3-9]\d{9}$/,
message: t("page.login.form.forgotPassword.invalidFormatError"),
},
],
Expand Down
3 changes: 1 addition & 2 deletions apps/admin/src/pages/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ defineOptions({

<style scoped>
.total-income-indicator-img {
animation: total-income-indicator-img-anim 10s linear 0ms infinite normal
backwards;
animation: total-income-indicator-img-anim 10s linear 0ms infinite normal backwards;
}
.earnings-indicator-img {
Expand Down
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import kirklin from "@kirklin/eslint-config";
export default kirklin({
rules: {
"new-cap": "warn",
"unused-imports/no-unused-vars": "warn",
"ts/no-unused-expressions": "warn",
},
formatters: {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/web/constants/src/utils/defineConstants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line ts/no-require-imports,ts/no-var-requires
// eslint-disable-next-line ts/no-require-imports
const pick = require("lodash/pick.js");

/**
Expand Down
6 changes: 1 addition & 5 deletions packages/web/styles/src/echarts-tooltip-custom.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
.echarts-tooltip-custom {
background: linear-gradient(
304.17deg,
rgba(253, 254, 255, 0.6) -6.04%,
rgba(244, 247, 252, 0.6) 85.2%
) !important;
background: linear-gradient(304.17deg, rgba(253, 254, 255, 0.6) -6.04%, rgba(244, 247, 252, 0.6) 85.2%) !important;
border: none !important;
backdrop-filter: blur(20px) !important;
/* Note: backdrop-filter has minimal browser support */
Expand Down
2 changes: 1 addition & 1 deletion packages/web/utils/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function getAppGlobalConfig(env: GlobEnvConfig): GlobConfig {
const { VITE_GLOB_APP_TITLE, VITE_GLOB_API_URL, VITE_GLOB_APP_SHORT_NAME, VITE_GLOB_API_URL_SSR, VITE_GLOB_API_URL_PREFIX }
= getAppGlobalEnvConfig(env);

if (!/^[a-zA-Z_]*$/.test(VITE_GLOB_APP_SHORT_NAME)) {
if (!/^[a-z_]*$/i.test(VITE_GLOB_APP_SHORT_NAME)) {
console.warn(
"VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.",
);
Expand Down
6 changes: 3 additions & 3 deletions packages/web/utils/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ export function memo<TDeps extends readonly any[], TResult>(
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(
0,
Math.min(120 - 120 * computationFpsPercentage, 120),
)}deg 100% 31%);`,
0,
Math.min(120 - 120 * computationFpsPercentage, 120),
)}deg 100% 31%);`,
options?.key,
);
}
Expand Down

0 comments on commit ad0b47e

Please sign in to comment.