Skip to content

Commit 8b479bf

Browse files
committed
chore: submodule MuNET-UI
1 parent cb55b88 commit 8b479bf

8 files changed

Lines changed: 1983 additions & 1085 deletions

File tree

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
[submodule "AquaMai"]
1414
path = AquaMai
1515
url = git@github.com:MewoLab/AquaMai.git
16+
[submodule "MuNet-UI"]
17+
path = MuNET-UI
18+
url = git@github.com:MuNET-OSS/MuNET-UI.git

MaiChartManager/Front/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "qwq",
2+
"name": "mcm-frontend",
33
"version": "0.0.0",
44
"type": "module",
55
"scripts": {
@@ -10,13 +10,14 @@
1010
"genClient": "tsx genClient"
1111
},
1212
"devDependencies": {
13+
"@chenfengyuan/vue-qrcode": "^2.0.0",
1314
"@fontsource/nerko-one": "^5.2.7",
1415
"@fontsource/noto-sans-sc": "^5.2.8",
1516
"@fontsource/quicksand": "^5.2.10",
1617
"@iconify/json": "^2.2.443",
1718
"@microsoft/fetch-event-source": "^2.0.1",
1819
"@modyfi/vite-plugin-yaml": "^1.1.1",
19-
"@munet/ui": "^1.0.13",
20+
"@munet/ui": "workspace:*",
2021
"@sentry/vite-plugin": "^5.1.0",
2122
"@sentry/vue": "^10.40.0",
2223
"@types/color": "^4.2.0",
@@ -35,13 +36,13 @@
3536
"change-case": "^5.4.4",
3637
"color": "^5.0.3",
3738
"lodash": "^4.17.23",
39+
"lodash-es": "^4.18.1",
3840
"naive-ui": "^2.43.2",
3941
"path-browserify": "^1.0.1",
4042
"perfect-debounce": "^2.1.0",
4143
"posthog-js": "^1.354.4",
4244
"sass": "^1.97.3",
4345
"swagger-typescript-api": "^13.2.18",
44-
"tinyglobby": "^0.2.15",
4546
"tsx": "^4.21.0",
4647
"typescript": "^5.9.3",
4748
"unity-webgl": "^4.4.3",
@@ -55,7 +56,6 @@
5556
"vue-router": "^5.0.3",
5657
"wavesurfer.js": "^7.12.1"
5758
},
58-
"packageManager": "pnpm@10.20.0+sha512.cf9998222162dd85864d0a8102e7892e7ba4ceadebbf5a31f9c2fce48dfce317a9c53b9f6464d1ef9042cba2e02ae02a9f7c143a2b438cd93c91840f0192b9dd",
5959
"dependencies": {
6060
"@f3ve/vue-markdown-it": "^0.2.3"
6161
}
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
// uno.config.ts
2-
import { defineConfig, presetIcons, presetTypography, presetUno } from 'unocss';
3-
import { globSync } from 'tinyglobby';
4-
import { readFileSync } from 'node:fs';
5-
6-
const munetUiFiles = globSync(['node_modules/@munet/ui/dist/**/*.js'], { expandDirectories: false });
7-
const munetUiCode = munetUiFiles.map(f => readFileSync(f, 'utf-8')).join('\n');
2+
import { defineConfig, presetIcons, presetTypography, presetUno, presetAttributify, transformerDirectives, transformerVariantGroup } from 'unocss';
83

94
export default defineConfig({
105
content: {
11-
inline: [munetUiCode],
6+
filesystem: ['../../MuNET-UI/src/**/*.{ts,tsx}'],
127
},
138
presets: [
149
presetUno(),
1510
presetTypography(),
1611
presetIcons(),
12+
presetAttributify(),
13+
],
14+
transformers: [
15+
transformerDirectives({
16+
applyVariable: ['--at-apply'],
17+
}),
18+
transformerVariantGroup(),
1719
],
18-
});
20+
});

MuNET-UI

Submodule MuNET-UI added at 867d7ce

Packaging/Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ Remove-Item "$PSScriptRoot\*.msix" -ErrorAction SilentlyContinue
7676
# Release 模式下(本地构建)始终构建前端
7777
if ($Mode -ne "Canary" -or -not (Test-Path "$ProjectRoot\MaiChartManager\wwwroot\index.html")) {
7878
Write-Host "Building Frontend..." -ForegroundColor Cyan
79-
Push-Location "$ProjectRoot\MaiChartManager\Front"
79+
Push-Location "$ProjectRoot"
8080
try {
8181
pnpm install
8282
if ($LASTEXITCODE -ne 0) { throw "pnpm install failed with exit code $LASTEXITCODE" }
83-
pnpm build
83+
pnpm --filter mcm-frontend build
8484
if ($LASTEXITCODE -ne 0) { throw "Frontend build failed with exit code $LASTEXITCODE" }
8585
} finally {
8686
Pop-Location

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"private": true,
3+
"packageManager": "pnpm@10.20.0+sha512.cf9998222162dd85864d0a8102e7892e7ba4ceadebbf5a31f9c2fce48dfce317a9c53b9f6464d1ef9042cba2e02ae02a9f7c143a2b438cd93c91840f0192b9dd"
4+
}

0 commit comments

Comments
 (0)