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 03c42aa commit affcc26
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
21 changes: 20 additions & 1 deletion package.json
Expand Up @@ -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 @@ -82,5 +100,6 @@
},
"lint-staged": {
"*": "eslint --fix"
}
},
"website": "https://admin.soybeanjs.cn"
}
6 changes: 5 additions & 1 deletion src/layouts/modules/global-footer/index.vue
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
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
@@ -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

1 comment on commit affcc26

@vercel
Copy link

@vercel vercel bot commented on affcc26 Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

soybean-admin – ./

soybean-admin-soybeanjs.vercel.app
soybean-admin-eta.vercel.app
soybean-admin-git-main-soybeanjs.vercel.app

Please sign in to comment.