Skip to content

Commit

Permalink
fix: fixed some UI bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuangs committed Dec 18, 2024
1 parent 0f75cd7 commit c3d4cb5
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 11 deletions.
21 changes: 21 additions & 0 deletions packages/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"eslint-plugin-vue": "^9.0.0",
"node-polyfill": "^1.0.0",
"node-polyfill-webpack-plugin": "^1.1.4",
"preload-webpack-plugin": "^3.0.0-beta.4",
"prettier": "^2.5.1",
"sass": "^1.77.6",
"terser-webpack-plugin": "^5.3.10",
Expand Down
21 changes: 15 additions & 6 deletions packages/frontend/quasar.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { configure } = require('quasar/wrappers');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const PreloadWebpackPlugin = require('preload-webpack-plugin');

module.exports = configure(function (ctx) {
return {
Expand All @@ -15,13 +16,9 @@ module.exports = configure(function (ctx) {

preFetch: true,
boot: ['i18n', 'axios', 'smartEnginEntrance'],
css: [
'app.scss',
'fonts.scss',
ctx.dev ? 'font.dev.scss' : 'font.pro.scss'
],
css: ['app.scss', ctx.dev ? 'font.dev.scss' : 'font.pro.scss'],

extras: ['material-icons'],
extras: ['material-icons', 'roboto-font'],

vendor: {
remove: ['@bytetrade/ui']
Expand All @@ -46,6 +43,18 @@ module.exports = configure(function (ctx) {
extractCSS: true,
sourceMap: true,

extendWebpack(cfg) {
!ctx.dev &&
cfg.plugins.push(
new PreloadWebpackPlugin({
rel: 'preload',
include: 'allAssets',
fileWhitelist: [/.+MaterialSymbolsRounded.+/],
as: 'font'
})
);
},

chainWebpack(chain, { isClient, isServer }) {
if (isClient) {
chain.plugin('css-minimizer-webpack-plugin').use(CssMinimizerPlugin, [
Expand Down
Binary file not shown.
4 changes: 0 additions & 4 deletions packages/frontend/src/css/fonts.scss

This file was deleted.

3 changes: 2 additions & 1 deletion packages/frontend/src/pages/FirstLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,12 @@ input[type='password']::placeholder {
</style> -->
<style lang="scss" scoped>
input[type='password'] {
font-size: 28px !important;
font-size: 38px !important;
caret-color: #ffffff;
letter-spacing: 1px;
line-height: 16px;
height: 16px;
font-family: 'Arial', sans-serif;
}
input[type='password']::placeholder {
font-size: 12px;
Expand Down

0 comments on commit c3d4cb5

Please sign in to comment.