Skip to content

Commit

Permalink
feat(projects): add copyright, unocss shortcut: card-wrapper, update …
Browse files Browse the repository at this point in the history
…package.json
  • Loading branch information
honghuangdc committed Jan 18, 2024
1 parent d71b6ed commit a11b955
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
23 changes: 21 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@sa/antd",
"name": "soybean-admin-antd",
"type": "module",
"version": "1.0.0",
"packageManager": "pnpm@8.14.1",
Expand All @@ -9,6 +9,24 @@
"email": "soybeanjs@outlook.com",
"url": "https://github.com/soybeanjs"
},
"license": "MIT",
"homepage": "https://github.com/honghuangdc/soybean-admin",
"repository": {
"url": "https://github.com/honghuangdc/soybean-admin.git"
},
"bugs": {
"url": "https://github.com/honghuangdc/soybean-admin/issues"
},
"keywords": [
"Vue3 admin ",
"vue-admin-template",
"Vite5",
"TypeScript",
"naive-ui",
"naive-ui-admin",
"ant-design-vue v4",
"UnoCSS"
],
"scripts": {
"build": "run-s typecheck build-only",
"build-only": "vite build",
Expand Down Expand Up @@ -83,5 +101,6 @@
},
"lint-staged": {
"*": "eslint --fix"
}
},
"website": "https://admin.soybeanjs.cn"
}
6 changes: 5 additions & 1 deletion src/layouts/modules/global-footer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ defineOptions({
</script>

<template>
<DarkModeContainer class="h-full"></DarkModeContainer>
<DarkModeContainer class="flex-center h-full">
<a href="https://github.com/honghuangdc/soybean-admin/blob/main/LICENSE" target="_blank" rel="noopener noreferrer">
Copyright MIT © 2021 Soybean
</a>
</DarkModeContainer>
</template>

<style scoped></style>
3 changes: 3 additions & 0 deletions uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default defineConfig<Theme>({
'icon-xl': '2rem'
}
},
shortcuts: {
'card-wrapper': 'rd-8px shadow-sm'
},
transformers: [transformerDirectives(), transformerVariantGroup()],
presets: [presetUno({ dark: 'class' }), presetSoybeanAdmin()]
});
5 changes: 4 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import process from 'node:process';
import { URL, fileURLToPath } from 'node:url';
import { defineConfig, loadEnv } from 'vite';
import dayjs from 'dayjs';
import { setupVitePlugins } from './build/plugins';
import { createViteProxy } from './build/config';

export default defineConfig(configEnv => {
const viteEnv = loadEnv(configEnv.mode, process.cwd()) as unknown as Env.ImportMeta;

const buildTime = dayjs().format('YYYY-MM-DD HH:mm:ss');

return {
base: viteEnv.VITE_BASE_URL,
resolve: {
Expand All @@ -24,7 +27,7 @@ export default defineConfig(configEnv => {
},
plugins: setupVitePlugins(viteEnv),
define: {
BUILD_TIME: JSON.stringify(new Date().toISOString())
BUILD_TIME: JSON.stringify(buildTime)
},
server: {
host: '0.0.0.0',
Expand Down

0 comments on commit a11b955

Please sign in to comment.