Skip to content

Commit

Permalink
auth improved home page added
Browse files Browse the repository at this point in the history
  • Loading branch information
munkh-altai committed Sep 6, 2024
1 parent a372f57 commit ec310fe
Show file tree
Hide file tree
Showing 16 changed files with 465 additions and 277 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,4 @@ yarn.lock
.env
src/dataform_custom/project_custom
bun.lockb
bundle-report.html
101 changes: 64 additions & 37 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { resolve } from "path";
import { defineNuxtConfig } from "nuxt/config";
// import { viteThemePlugin } from 'vite-plugin-theme';
// import { getThemeColors } from './src/utils/themeUtil'
import { createSvgIconsPlugin }from 'vite-plugin-svg-icons';
// import Components from 'unplugin-vue-components/vite';
// import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
import { visualizer } from 'rollup-plugin-visualizer';


const pathResolve = (pathStr: string) => {
Expand All @@ -19,10 +16,6 @@ let viteAlies = [
{
find: '@',
replacement: pathResolve('src') + '/',
},
{
find: 'vue-i18n',
replacement: 'vue-i18n/dist/vue-i18n.cjs.js',
}
]
if(process.env.LAMBDA_ROOT !== "@lambda-platform/lambda-vue" && process.env.LAMBDA_ROOT != ""){
Expand All @@ -34,9 +27,9 @@ if(process.env.LAMBDA_ROOT !== "@lambda-platform/lambda-vue" && process.env.LAMB
})
}
export default defineNuxtConfig({

alias: nuxtAlies,
srcDir: "src/",

app:{

buildAssetsDir:"lambda_admin/",
Expand All @@ -49,15 +42,19 @@ export default defineNuxtConfig({
{ name: "og:type", content: "article" },
{ name: "og:title", content: process.env.LAMBDA_TITLE },
{ name: "og:description", content: process.env.LAMBDA_DESCRIPTION },
{ name: "og:image", content: process.env.LAMBDA_FAVICON},
{ name: "og:image", content: process.env.LAMBDA_FAVICON}
],
link: [
{ rel: "icon", href: process.env.LAMBDA_FAVICON },
{ rel: 'stylesheet', href: '/assets/lambda/fonts/flaticons/flaticons.css' },
{ rel: 'stylesheet', href: '/assets/lambda/fonts/themify/themify-icons.css' },
],
script:[

]
},
},

dir: {
public: resolve(__dirname, "./public/"),
},
Expand All @@ -66,6 +63,7 @@ export default defineNuxtConfig({
'~/assets/styles/components/loading.css',
'@/assets/styles/tailwind.css',
"leaflet-draw/dist/leaflet.draw.css",
'@lambda-platform/lambda-vue/src/modules/chart/scss/chart.scss',
'@lambda-platform/lambda-vue/src/modules/datagrid/scss/style.scss',
'@lambda-platform/lambda-vue/src/modules/dataform/scss/style.scss',
'@lambda-platform/lambda-vue/src/modules/dataform/scss/_dataform_dark.scss',
Expand All @@ -74,9 +72,8 @@ export default defineNuxtConfig({
'@lambda-platform/lambda-vue/src/modules/datagrid/scss/theme/_balham.scss',
'@lambda-platform/lambda-vue/src/modules/datagrid/scss/theme/_dark.scss',
'@lambda-platform/lambda-vue/src/modules/krud/scss/style.scss',


],

vite:{
envPrefix:"LAMBDA_",
plugins: [
Expand All @@ -85,18 +82,6 @@ export default defineNuxtConfig({
iconDirs: [resolve(process.cwd(), 'src/assets/icons')],
symbolId: 'icon-[dir]-[name]',
}),
//
// viteThemePlugin({
// colorVariables: [...getThemeColors()],
// }),
// Components({
// resolvers: [
// AntDesignVueResolver({
// importStyle: true, // css in js
// }),
// ],
// }),

],
resolve: {
alias: viteAlies,
Expand All @@ -107,18 +92,9 @@ export default defineNuxtConfig({
css: {
preprocessorOptions: {
less: {
// modifyVars: {
// 'primary-color': process.env.LAMBDA_PRIMARY_COLOR,
// 'primary-color-dark-theme': process.env.LAMBDA_PRIMARY_COLOR },
javascriptEnabled: true,
},
// scss: {
// modifyVars: { 'primary-color': process.env.LAMBDA_PRIMARY_COLOR, 'primary-color-dark-theme': process.env.LAMBDA_PRIMARY_COLOR },
// additionalData: `
// $primary-color: ${process.env.LAMBDA_PRIMARY_COLOR};
// $ag-primary-color: ${process.env.LAMBDA_PRIMARY_COLOR};
// `,
// },

},
},
define: {
Expand All @@ -130,25 +106,76 @@ export default defineNuxtConfig({
},
build: {
sourcemap: false,

cssMinify: true,
terserOptions: {
format: {
comments: false
}
},
rollupOptions: {
plugins: [
visualizer({
filename: 'bundle-report.html',
open: true,
}),
],
output: {
manualChunks(id) {
if (id.includes('ag-grid-community')) {
return 'ag-grid-community'
}
if (id.includes('ag-grid-enterprise')) {
return 'ag-grid-enterprise'
}
if (id.includes('@syncfusion')) {
return 'syncfusion'
}
if (id.includes('@clientio/rappid')) {
return '@clientio/rappid'
}
if (id.includes('lodash')) {
return 'lodash'
}
if (id.includes('swiper')) {
return 'swiper'
}
if (id.includes('moment')) {
return 'moment'
}
if (id.includes('echarts')) {
return 'echarts'
}
if (id.includes('ant-design-vue')) {
return 'ant-design-vue'
}
if (id.includes('@lottiefiles/dotlottie-web')) {
return '@lottiefiles/dotlottie-web'
}
// Add other libraries here if needed
},
},
},
},
esbuild: { legalComments: 'none' },
server: {
fs: {

allow: [pathResolve(process.env.LAMBDA_ROOT) + '/'],
},
},
},

postcss: {
plugins:{
tailwindcss: {},
autoprefixer: {},
}
},


generate: {
routes: ["/"],
},

ssr: false,
});
compatibilityDate: '2024-09-05'
});
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@
"@zougt/some-loader-utils": "^1.4.3",
"apite": "^1.4.1",
"color": "^4.2.3",
"nuxt": "3.9.3",
"nuxt": "3.12.4",
"patch-vue-directive-ssr": "0.0.1",
"sass": "1.45.1",
"sass-loader": "12.4.0",
"typescript": "4.5.5",
"unplugin-vue-components": "^0.22.8",
"vite-plugin-legacy": "^2.1.0",
"vite-plugin-svg-icons": "^2.0.1",
"vue-gtag-next": "^1.14.0"
"vue-gtag-next": "^1.14.0",
"rollup-plugin-visualizer": "^5.12.0"
},
"dependencies": {
"@aesoper/normal-utils": "^0.1.5",
Expand All @@ -42,7 +43,7 @@
"@firebase/messaging": "^0.10.0",
"@headlessui/vue": "^1.6.7",
"@heroicons/vue": "^1.0.6",
"@lambda-platform/lambda-vue": "3.2.43",
"@lambda-platform/lambda-vue": "3.2.86",
"@nuxt/postcss8": "^1.1.3",
"@turf/turf": "^6.5.0",
"@vue/apollo-option": "^4.0.0-alpha.17",
Expand All @@ -51,7 +52,7 @@
"ag-grid-community": "29.1.0",
"ag-grid-enterprise": "29.1.0",
"ag-grid-vue3": "29.1.0",
"ant-design-vue": "^4.1.2",
"ant-design-vue": "^4.2.2",
"autoprefixer": "^10.4.7",
"axios": "^0.27.2",
"ckeditor5-build-classic-custom-es": "^22.0.3",
Expand All @@ -70,7 +71,7 @@
"portal-vue": "^3.0.0-beta.0",
"postcss": "^8.4.14",
"printd": "^1.6.0",
"swiper": "^8.1.5",
"swiper": "^8.4.7",
"tailwindcss": "^3.4.1",
"tinycolor2": "^1.6.0",
"vue-awesome-swiper": "^5.0.1",
Expand Down
Loading

0 comments on commit ec310fe

Please sign in to comment.