mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 00:09:16 +08:00
feat: Dealing with Sass version compatibility issues and removing debugger from build (#7669)
This commit is contained in:
parent
6c08a3114a
commit
3650ff27b3
@ -39,5 +39,5 @@ defineProps<{ menuList: RouteRecordRaw[] }>();
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import '../index.scss';
|
@use '../index';
|
||||||
</style>
|
</style>
|
||||||
|
@ -13,16 +13,16 @@
|
|||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
.el-icon {
|
.el-icon {
|
||||||
color: $primary-color;
|
color: var(--el-color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
color: $primary-color;
|
color: var(--el-color-primary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.is-active {
|
&.is-active {
|
||||||
background-color: var(--el-menu-item-bg-color-active);
|
background-color: var(--el-menu-item-bg-color-active);
|
||||||
border: 2px solid $primary-color;
|
border: 2px solid var(--el-color-primary);
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -31,7 +31,7 @@
|
|||||||
width: 4px;
|
width: 4px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
content: '';
|
content: '';
|
||||||
background: $primary-color;
|
background: var(--el-color-primary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -39,26 +39,26 @@
|
|||||||
&.is-active {
|
&.is-active {
|
||||||
.el-sub-menu__title {
|
.el-sub-menu__title {
|
||||||
span {
|
span {
|
||||||
color: $primary-color;
|
color: var(--el-color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-icon {
|
.el-icon {
|
||||||
color: $primary-color;
|
color: var(--el-color-primary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.el-sub-menu__title {
|
.el-sub-menu__title {
|
||||||
background-color: var(--el-menu-item-bg-color);
|
background-color: var(--el-menu-item-bg-color);
|
||||||
box-shadow: 0px 0px 4px rgba(0, 94, 235, 0.1);
|
box-shadow: 0 0 4px rgba(0, 94, 235, 0.1);
|
||||||
height: 46px;
|
height: 46px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
&:hover {
|
&:hover {
|
||||||
.el-icon {
|
.el-icon {
|
||||||
color: $primary-color;
|
color: var(--el-color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
color: $primary-color;
|
color: var(--el-color-primary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed, onMounted, defineEmits } from 'vue';
|
import { ref, computed, onMounted } from 'vue';
|
||||||
import { RouteRecordRaw, useRoute } from 'vue-router';
|
import { RouteRecordRaw, useRoute } from 'vue-router';
|
||||||
import { loadingSvg } from '@/utils/svg';
|
import { loadingSvg } from '@/utils/svg';
|
||||||
import Logo from './components/Logo.vue';
|
import Logo from './components/Logo.vue';
|
||||||
@ -192,7 +192,14 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import './index.scss';
|
@use 'index';
|
||||||
|
|
||||||
|
.custom-menu .el-menu-item {
|
||||||
|
white-space: normal !important;
|
||||||
|
word-break: break-word;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
.custom-menu .el-menu-item {
|
.custom-menu .el-menu-item {
|
||||||
white-space: normal !important;
|
white-space: normal !important;
|
||||||
|
@ -630,7 +630,7 @@ onUnmounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import '../index.scss';
|
@use '../index';
|
||||||
@media only screen and (max-width: 1400px) {
|
@media only screen and (max-width: 1400px) {
|
||||||
.install-card-col-12 {
|
.install-card-col-12 {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
@ -32,6 +32,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
scss: {
|
scss: {
|
||||||
additionalData: `@use "@/styles/var.scss" as *;`,
|
additionalData: `@use "@/styles/var.scss" as *;`,
|
||||||
|
api: 'modern',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -84,6 +85,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||||||
],
|
],
|
||||||
esbuild: {
|
esbuild: {
|
||||||
pure: viteEnv.VITE_DROP_CONSOLE ? ['console.log'] : [],
|
pure: viteEnv.VITE_DROP_CONSOLE ? ['console.log'] : [],
|
||||||
|
drop: viteEnv.VITE_DROP_CONSOLE ? ['debugger'] : [],
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: '../cmd/server/web',
|
outDir: '../cmd/server/web',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user