代码格式修复、小程序功能更新
19
blog-wot-uniapp/components.d.ts
vendored
@@ -16,24 +16,5 @@ declare module 'vue' {
|
||||
ArtSearchBar: typeof import('./src/components/c-end/ArtSearchBar.vue')['default']
|
||||
PostCard: typeof import('./src/components/c-end/PostCard.vue')['default']
|
||||
ProfileHero: typeof import('./src/components/c-end/ProfileHero.vue')['default']
|
||||
WdButton: typeof import('@wot-ui/ui/components/wd-button/wd-button.vue')['default']
|
||||
WdConfigProvider: typeof import('@wot-ui/ui/components/wd-config-provider/wd-config-provider.vue')['default']
|
||||
WdDialog: typeof import('@wot-ui/ui/components/wd-dialog/wd-dialog.vue')['default']
|
||||
WdEmpty: typeof import('@wot-ui/ui/components/wd-empty/wd-empty.vue')['default']
|
||||
WdForm: typeof import('@wot-ui/ui/components/wd-form/wd-form.vue')['default']
|
||||
WdIcon: typeof import('@wot-ui/ui/components/wd-icon/wd-icon.vue')['default']
|
||||
WdInput: typeof import('@wot-ui/ui/components/wd-input/wd-input.vue')['default']
|
||||
WdLoading: typeof import('@wot-ui/ui/components/wd-loading/wd-loading.vue')['default']
|
||||
WdLoadmore: typeof import('@wot-ui/ui/components/wd-loadmore/wd-loadmore.vue')['default']
|
||||
WdNavbar: typeof import('@wot-ui/ui/components/wd-navbar/wd-navbar.vue')['default']
|
||||
WdPicker: typeof import('@wot-ui/ui/components/wd-picker/wd-picker.vue')['default']
|
||||
WdPopup: typeof import('@wot-ui/ui/components/wd-popup/wd-popup.vue')['default']
|
||||
WdSwitch: typeof import('@wot-ui/ui/components/wd-switch/wd-switch.vue')['default']
|
||||
WdTab: typeof import('@wot-ui/ui/components/wd-tab/wd-tab.vue')['default']
|
||||
WdTabbar: typeof import('@wot-ui/ui/components/wd-tabbar/wd-tabbar.vue')['default']
|
||||
WdTabbarItem: typeof import('@wot-ui/ui/components/wd-tabbar-item/wd-tabbar-item.vue')['default']
|
||||
WdTabs: typeof import('@wot-ui/ui/components/wd-tabs/wd-tabs.vue')['default']
|
||||
WdTextarea: typeof import('@wot-ui/ui/components/wd-textarea/wd-textarea.vue')['default']
|
||||
WdToast: typeof import('@wot-ui/ui/components/wd-toast/wd-toast.vue')['default']
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,22 +45,22 @@
|
||||
"lint:fix": "eslint . --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dcloudio/uni-app": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-app-harmony": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-app-plus": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-components": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-h5": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-mp-alipay": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-mp-baidu": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-mp-harmony": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-mp-jd": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-mp-kuaishou": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-mp-lark": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-mp-qq": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-mp-toutiao": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-mp-weixin": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-mp-xhs": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-quickapp-webview": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-app": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-app-harmony": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-app-plus": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-components": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-h5": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-mp-alipay": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-mp-baidu": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-mp-harmony": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-mp-jd": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-mp-kuaishou": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-mp-lark": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-mp-qq": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-mp-toutiao": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-mp-weixin": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-mp-xhs": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-quickapp-webview": "3.0.0-5000720260410001",
|
||||
"@wot-ui/ui": "^2.2.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"marked": "^18.0.7",
|
||||
@@ -72,10 +72,10 @@
|
||||
"devDependencies": {
|
||||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
||||
"@dcloudio/types": "^3.4.21",
|
||||
"@dcloudio/uni-automator": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-cli-shared": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-stacktracey": "3.0.0-4070620250821001",
|
||||
"@dcloudio/vite-plugin-uni": "3.0.0-4070620250821001",
|
||||
"@dcloudio/uni-automator": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-cli-shared": "3.0.0-5000720260410001",
|
||||
"@dcloudio/uni-stacktracey": "3.0.0-5000720260410001",
|
||||
"@dcloudio/vite-plugin-uni": "3.0.0-5000720260410001",
|
||||
"@mini-types/alipay": "^3.0.14",
|
||||
"@types/node": "^24.5.2",
|
||||
"@uni-helper/eslint-config": "^0.5.0",
|
||||
|
||||
1045
blog-wot-uniapp/pnpm-lock.yaml
generated
@@ -1,5 +1,6 @@
|
||||
allowBuilds:
|
||||
'@parcel/watcher': set this to true or false
|
||||
core-js: set this to true or false
|
||||
core-js-pure: set this to true or false
|
||||
esbuild: set this to true or false
|
||||
vue-demi: set this to true or false
|
||||
|
||||
@@ -39,8 +39,50 @@
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
]
|
||||
},
|
||||
"ios" : {},
|
||||
"sdkConfigs" : {}
|
||||
"ios" : {
|
||||
"dSYMs" : false
|
||||
},
|
||||
"sdkConfigs" : {},
|
||||
"icons" : {
|
||||
"android" : {
|
||||
"hdpi" : "unpackage/res/icons/72x72.png",
|
||||
"xhdpi" : "unpackage/res/icons/96x96.png",
|
||||
"xxhdpi" : "unpackage/res/icons/144x144.png",
|
||||
"xxxhdpi" : "unpackage/res/icons/192x192.png"
|
||||
},
|
||||
"ios" : {
|
||||
"appstore" : "unpackage/res/icons/1024x1024.png",
|
||||
"ipad" : {
|
||||
"app" : "unpackage/res/icons/76x76.png",
|
||||
"app@2x" : "unpackage/res/icons/152x152.png",
|
||||
"notification" : "unpackage/res/icons/20x20.png",
|
||||
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||
"proapp@2x" : "unpackage/res/icons/167x167.png",
|
||||
"settings" : "unpackage/res/icons/29x29.png",
|
||||
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||
"spotlight" : "unpackage/res/icons/40x40.png",
|
||||
"spotlight@2x" : "unpackage/res/icons/80x80.png"
|
||||
},
|
||||
"iphone" : {
|
||||
"app@2x" : "unpackage/res/icons/120x120.png",
|
||||
"app@3x" : "unpackage/res/icons/180x180.png",
|
||||
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||
"notification@3x" : "unpackage/res/icons/60x60.png",
|
||||
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||
"settings@3x" : "unpackage/res/icons/87x87.png",
|
||||
"spotlight@2x" : "unpackage/res/icons/80x80.png",
|
||||
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"splashscreen" : {
|
||||
"androidStyle" : "default",
|
||||
"android" : {
|
||||
"hdpi" : "E:/Downloads Edge/网站图标设计 (2).png",
|
||||
"xhdpi" : "E:/Downloads Edge/网站图标设计 (2).png",
|
||||
"xxhdpi" : "E:/Downloads Edge/网站图标设计 (2).png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"h5" : {
|
||||
|
||||
@@ -16,7 +16,19 @@ const loading = ref(true)
|
||||
const featuredPost = ref<Post | null>(null)
|
||||
const latestWork = ref<Work | null>(null)
|
||||
|
||||
const siteTitle = computed(() => getStringSetting('site_title', '年糕崽崽'))
|
||||
/**
|
||||
* 站点标题:site_title 与网页端共用(当前值“年糕博客”)。
|
||||
* 小程序端审核不允许“博客”类内容字样,仅小程序把“博客”显示为“工具”,其余端保持原样。
|
||||
*/
|
||||
const siteTitle = computed(() => {
|
||||
const raw = getStringSetting('site_title', '年糕崽崽')
|
||||
// #ifdef MP
|
||||
return raw.replace(/博客/g, '工具')
|
||||
// #endif
|
||||
// #ifndef MP
|
||||
return raw
|
||||
// #endif
|
||||
})
|
||||
// const DEFAULT_FEATURED_BG = '/static/bg/img.png'
|
||||
const DEFAULT_FEATURED_BG = 'https://blog.nailaoyun.cn/bg/img.png'
|
||||
const featuredBg = computed(() => {
|
||||
|
||||
BIN
blog-wot-uniapp/unpackage/res/icons/1024x1024.png
Normal file
|
After Width: | Height: | Size: 798 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/120x120.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/144x144.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/152x152.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/167x167.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/180x180.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/192x192.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/20x20.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/29x29.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/40x40.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/58x58.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/60x60.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/72x72.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/76x76.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/80x80.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/87x87.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
blog-wot-uniapp/unpackage/res/icons/96x96.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
31
sql/.cursor/rules/Sql-Standards.mdc
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
description: nl-erp SQL 增量规范(药企 ERP 业务表,与 nl-admin 平台库分离)
|
||||
alwaysApply: true
|
||||
---
|
||||
|
||||
# 基础规范
|
||||
|
||||
1. 每个字段、每条 INSERT 写中文注释
|
||||
2. 代码中要有详细的行级中文注释:约束、默认值、枚举取值、可重复执行的原因都要写在该行或紧上一行
|
||||
3. 相邻代码块空行不超过 2 行
|
||||
4. `created_at` / `updated_at` / `deleted_at` 统一 int 时间戳,软删 `deleted_at=0` 表示未删
|
||||
|
||||
# 与 nl-admin 的边界
|
||||
|
||||
- 平台底座表(admin/role/menu/api_endpoint 等)仍在 `D:\myCode\sql\nl-admin`
|
||||
- **药企 ERP 业务表、业务角色种子、业务菜单、业务接口登记**只写本仓库
|
||||
- 增量可 INSERT 平台表(如 `nl_role` / `nl_menu` / `nl_api_endpoint`),不要改 `nl-admin` 的初始化快照
|
||||
|
||||
# 文件组织
|
||||
|
||||
- 路径:`{YYYYMMDD}/{当天第几个sql}_sql名字.sql`,日期 8 位数字
|
||||
- 可重复执行:建表用 `CREATE TABLE IF NOT EXISTS`,种子用 `INSERT IGNORE`
|
||||
- 尚无全量初始化快照;表结构以日期化增量文件为准
|
||||
|
||||
# 建表约定
|
||||
|
||||
- 物理表前缀 `nl_`,引擎 InnoDB,`utf8mb4` / `utf8mb4_0900_ai_ci`,`ROW_FORMAT=DYNAMIC`
|
||||
- 常规表必备:`id` int UNSIGNED AUTO_INCREMENT + 时间三件套
|
||||
- 状态:`status` 0=正常/上架 1=禁用/下架(除非 SRS 另行注明)
|
||||
- 布尔:`is_xxx` tinyint(1) 0否 1是
|
||||
- 类型/枚举用 tinyint,注释写清取值
|
||||