-
Notifications
You must be signed in to change notification settings - Fork 21
feat:desinger support upload to OBS #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,18 @@ | |
| ], | ||
| "repository": "https://github.com/opentiny/tiny-pro", | ||
| "homepage": "https://opentiny.design/pro/", | ||
| "pnpm": { | ||
| "overrides": { | ||
| "@opentiny/tiny-engine-common>@opentiny/vue-renderless": "~3.20.0", | ||
| "@opentiny/tiny-engine-plugin-datasource>@opentiny/vue-renderless": "~3.20.0", | ||
| "@opentiny/tiny-engine-plugin-block>@opentiny/vue-renderless": "~3.20.0", | ||
| "@opentiny/tiny-engine-plugin-canvas>@opentiny/vue-renderless": "~3.20.0", | ||
| "@opentiny/tiny-engine-plugin-tree>@opentiny/vue-renderless": "~3.20.0", | ||
| "@opentiny/tiny-engine-setting-styles>@opentiny/vue-renderless": "~3.20.0", | ||
| "@opentiny/tiny-engine-plugin-materials>@opentiny/vue-renderless": "~3.20.0", | ||
| "@opentiny/tiny-engine-plugin-page>@opentiny/vue-renderless": "~3.20.0" | ||
| } | ||
| }, | ||
|
Comment on lines
+34
to
+45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check for resolutions field in template/tinyvue/package.json
if [ -f "template/tinyvue/package.json" ]; then
echo "=== Checking for resolutions field ==="
if grep -q '"resolutions"' template/tinyvue/package.json; then
echo "Found resolutions field in template/tinyvue/package.json"
echo "=== Content ==="
cat template/tinyvue/package.json | jq '.resolutions // empty'
else
echo "No resolutions field found in template/tinyvue/package.json"
fi
else
echo "template/tinyvue/package.json not found"
fi
# Also check the root package.json structure for comparison
echo -e "\n=== Root package.json pnpm section (first 50 lines) ==="
cat package.json | jq '.pnpm // empty' | head -50Repository: opentiny/tiny-pro Length of output: 949 Remove the ineffective The The resolutions currently in
If these overrides are still needed, they must be migrated to 🤖 Prompt for AI Agents |
||
| "scripts": { | ||
| "dev": "pnpm -F tiny-pro-vue start", | ||
| "dev:backend": "pnpm -F tinyui-nestjs-server start", | ||
|
|
@@ -153,4 +165,4 @@ | |
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,14 +40,24 @@ const config = { | |
| }, | ||
| { | ||
| find: '@opentiny/vue-icon', | ||
| replacement: resolve('node_modules/@opentiny/vue-icon'), // compile template | ||
| replacement: resolve(__dirname, '../node_modules/@opentiny/vue-icon'), // compile template | ||
| }, | ||
| { | ||
| find: '@opentiny/vue-theme', | ||
| replacement: resolve(__dirname, '../node_modules/@opentiny/vue-theme'), | ||
| }, | ||
|
Comment on lines
42
to
48
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's check the repository root structure and workspace configuration
ls -la | head -20Repository: opentiny/tiny-pro Length of output: 1276 🏁 Script executed: # Check for workspace/monorepo configuration files
echo "=== Checking for workspace files ==="
ls -la pnpm-workspace.yaml lerna.json package-lock.json yarn.lock package.json 2>/dev/null | grep -v "cannot access"
echo "=== Checking package.json workspaces ==="
if [ -f "package.json" ]; then
cat package.json | jq -r '.workspaces // "No workspaces field"' 2>/dev/null || cat package.json | grep -A 5 '"workspaces"' || echo "No workspaces"
fiRepository: opentiny/tiny-pro Length of output: 289 🏁 Script executed: # Examine the actual vite.config.base.ts file
if [ -f "template/tinyvue/config/vite.config.base.ts" ]; then
echo "=== File exists, reading content ==="
wc -l template/tinyvue/config/vite.config.base.ts
echo ""
echo "=== Full file content ==="
cat -n template/tinyvue/config/vite.config.base.ts
else
echo "File not found at template/tinyvue/config/vite.config.base.ts"
find . -name "vite.config.base.ts" -type f 2>/dev/null
fiRepository: opentiny/tiny-pro Length of output: 2556 🏁 Script executed: # Check if @opentiny packages are installed
echo "=== Searching for @opentiny packages ==="
find . -type d -name "@opentiny" 2>/dev/null | head -10
echo "=== Checking package.json for @opentiny dependencies ==="
if [ -f "template/tinyvue/package.json" ]; then
cat template/tinyvue/package.json | jq '.dependencies, .devDependencies' | grep -i "@opentiny" || echo "Not found in template/tinyvue"
fi
if [ -f "package.json" ]; then
cat package.json | jq '.dependencies, .devDependencies' | grep -i "@opentiny" || echo "Not found in root"
fiRepository: opentiny/tiny-pro Length of output: 443 🏁 Script executed: # Check the directory structure relative to vite.config.base.ts
echo "=== Directory structure from template/tinyvue/config/ ==="
ls -la template/tinyvue/config/ 2>/dev/null || echo "Directory not accessible"
echo "=== Checking relative paths from template/tinyvue/config/ ==="
cd template/tinyvue/config && pwd
echo "=== From config dir, checking ../node_modules ==="
ls -la ../node_modules/@opentiny 2>/dev/null | head -20 || echo "Path ../node_modules/@opentiny not found"
cd - > /dev/null 2>&1Repository: opentiny/tiny-pro Length of output: 932 🏁 Script executed: # Check if @opentiny packages are in root node_modules
echo "=== Checking root node_modules for @opentiny ==="
ls -la node_modules/@opentiny 2>/dev/null | head -20 || echo "Not found in root node_modules"
# Check pnpm-workspace.yaml content
echo "=== pnpm-workspace.yaml content ==="
cat pnpm-workspace.yaml
# Check template/tinyvue package.json
echo "=== template/tinyvue/package.json ==="
if [ -f "template/tinyvue/package.json" ]; then
head -50 template/tinyvue/package.json
else
echo "File not found"
fi
# Verify the vite.config structure more carefully
echo "=== Checking if template/tinyvue is a standalone project or workspace package ==="
ls -la template/tinyvue/ | grep -E "package.json|node_modules"Repository: opentiny/tiny-pro Length of output: 1807 🏁 Script executed: # Check if template/tinyvue has its own node_modules with @opentiny packages
echo "=== Checking template/tinyvue/node_modules ==="
ls -la template/tinyvue/node_modules/@opentiny 2>/dev/null | head -20 || echo "Not found in template/tinyvue/node_modules"
# Verify the actual structure
echo "=== Checking if template/tinyvue/node_modules exists ==="
if [ -d "template/tinyvue/node_modules" ]; then
echo "Directory exists"
ls -la template/tinyvue/node_modules/ | head -20
else
echo "No node_modules directory in template/tinyvue"
fi
# Check .pnpm structure
echo "=== Checking for .pnpm directory ==="
if [ -d ".pnpm" ]; then
echo "Found .pnpm directory"
ls .pnpm | grep -i "@opentiny" | head -10
fiRepository: opentiny/tiny-pro Length of output: 247 Hard-coded node_modules paths are fragile in this pnpm workspace setup. The alias entries for Consider using {
find: '@opentiny/vue-icon',
replacement: require.resolve('@opentiny/vue-icon'),
},
{
find: '@opentiny/vue-theme',
replacement: require.resolve('@opentiny/vue-theme'),
},Or remove the aliases entirely and let Node/Vite resolve them naturally if the packages are properly installed. 🤖 Prompt for AI Agents |
||
| ], | ||
| extensions: ['.ts', '.js'], | ||
| extensions: ['.ts', '.js', '.css'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's examine the vite.config.base.ts file to see the full context
cat -n template/tinyvue/config/vite.config.base.ts | head -80Repository: opentiny/tiny-pro Length of output: 2445 🏁 Script executed: # Search for CSS imports that might require this configuration
echo "=== Checking for explicit .css imports ==="
rg -n "import.*\.css" --type ts --type vue -C 2
# Search for dynamic CSS imports
echo "=== Checking for dynamic CSS imports ==="
rg -n "import\(['\"].*\.css" --type ts --type vue -C 2Repository: opentiny/tiny-pro Length of output: 217 🏁 Script executed: # Also check if there are designer-related files or CSS modules that might require this
echo "=== Checking for designer-related files ==="
fd -type f -name "*designer*" -o -name "*theme*" | head -20
echo "=== Checking for CSS modules or style imports ==="
rg -n "\.module\.css|\.css\?" --type ts --type vue | head -20Repository: opentiny/tiny-pro Length of output: 370 🏁 Script executed: # Search for CSS imports without explicit .css extension (normal Vite way)
echo "=== CSS imports without explicit .css extension ==="
rg -n "\.css['\"]" -A 2 -B 2 | head -50
# Search for any imports from @opentiny/vue-theme
echo "=== Checking @opentiny/vue-theme imports ==="
rg -n "@opentiny/vue-theme" -C 2 | head -50
# Check for CSS-related configuration or comments in the config file
echo "=== Checking for CSS-related comments or patterns in vite.config ==="
rg -n "css|CSS" template/tinyvue/config/vite.config.base.ts -C 2
# Look for any similar projects or documentation files
echo "=== Checking for README or docs about vite config ==="
fd -name "*.md" | xargs grep -l "vite\|CSS" | head -10Repository: opentiny/tiny-pro Length of output: 7036 🏁 Script executed: # Check node_modules/@opentiny/vue-theme to understand if it exports CSS
echo "=== Checking @opentiny/vue-theme package contents ==="
if [ -d "node_modules/@opentiny/vue-theme" ]; then
ls -la node_modules/@opentiny/vue-theme/ | head -20
cat node_modules/@opentiny/vue-theme/package.json 2>/dev/null | grep -A 10 '"main"\|"exports"' | head -20
else
echo "Package not found in node_modules (expected in sandbox)"
fiRepository: opentiny/tiny-pro Length of output: 170 🏁 Script executed: # Check if there are any build errors or warnings logs that mention CSS resolution
echo "=== Looking for any error handling or CSS import handling ==="
rg -n "resolveExtensions|resolve.extensions" -C 3 | head -50Repository: opentiny/tiny-pro Length of output: 566 🏁 Script executed: # Check if other vite configs in the project have similar patterns
echo "=== Other vite configs in the project ==="
fd -name "vite.config.*" -type f
# Check each vite config for CSS in extensions
for config in $(fd -name "vite.config.*" -type f); do
echo "=== Checking $config ==="
grep -n "extensions\|resolveExtensions" "$config" || echo "No match found"
done
# Check git history or comments to see when/why this was added
echo "=== Checking for comments in vite config about CSS ==="
cat template/tinyvue/config/vite.config.base.ts | grep -i "css\|theme\|designer" -B 2 -A 2Repository: opentiny/tiny-pro Length of output: 1258 🏁 Script executed: # Let's check if @opentiny/vue-theme has any unusual export patterns
echo "=== Checking imports from @opentiny/vue-theme in the codebase ==="
rg "@opentiny/vue-theme" --no-heading | sort -u
# Check env.d.ts to see module declarations
echo "=== Module declarations for vue-theme ==="
grep "@opentiny/vue-theme" template/tinyvue/src/env.d.ts -A 1 -B 1Repository: opentiny/tiny-pro Length of output: 9930 🏁 Script executed: # Research Vite's standard CSS handling
echo "=== Checking Vite documentation patterns in comments ==="
rg -i "vite.*css|css.*vite" --type ts --max-count 20Repository: opentiny/tiny-pro Length of output: 195 🏁 Script executed: # Check for dynamic imports or require statements that might import CSS
echo "=== Checking for dynamic imports of CSS files ==="
rg "import\s*\(\s*['\"].*\.css" -C 2
rg "require\s*\(\s*['\"].*\.css" -C 2
# Check for any build error logs or issue comments
echo "=== Looking for issue/bug-related comments ==="
rg -i "bug|issue|fix|todo|hack|workaround" template/tinyvue/config/ -B 2 -A 2
# Check if @opentiny/vue-theme is being imported with .css in any way
echo "=== Checking theme imports more carefully ==="
rg "@opentiny/vue-theme" -C 3 | grep -i "\.css\|style\|theme" -B 2 -A 2Repository: opentiny/tiny-pro Length of output: 50374 🏁 Script executed: # Check if this could be related to CommonJS or bundler compatibility
echo "=== Checking for CommonJS usage ==="
rg "require\(" template/tinyvue/config/ -C 2
# Look for any optimizeDeps includes/excludes that might hint at the reason
echo "=== Full optimizeDeps configuration ==="
cat template/tinyvue/config/vite.config.base.ts | sed -n '56,65p'Repository: opentiny/tiny-pro Length of output: 364 Remove Adding 🤖 Prompt for AI Agents |
||
| preserveSymlinks: false, | ||
| }, | ||
| define: { | ||
| 'BUILD_TOOLS': "'VITE'", | ||
| }, | ||
| optimizeDeps: { | ||
| esbuildOptions: { | ||
| resolveExtensions: ['.ts', '.js', '.css'], | ||
| }, | ||
| }, | ||
| css: { | ||
| preprocessorOptions: { | ||
| less: { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,34 @@ | ||
| import { mergeConfig, loadEnv } from 'vite'; | ||
| import eslint from 'vite-plugin-eslint'; | ||
| import baseConfig from './vite.config.base'; | ||
| import { resolve } from 'path'; | ||
| import { configDotenv } from 'dotenv'; | ||
|
|
||
| // 加载 dev.env 文件 | ||
| configDotenv({ | ||
| path: resolve(__dirname, '../dev.env'), | ||
| }); | ||
|
|
||
| // 加载环境变量(development 模式会读取 .env.development 和 .env) | ||
| const env = loadEnv('development', process.cwd()); | ||
|
|
||
| const proxyConfig = { | ||
| [loadEnv('', process.cwd()).VITE_BASE_API]: { | ||
| target: loadEnv('', process.cwd()).VITE_SERVER_HOST, | ||
| [env.VITE_BASE_API]: { | ||
| target: env.VITE_SERVER_HOST, | ||
| changeOrigin: true, | ||
| logLevel: 'debug', | ||
| rewrite: (path: string) => | ||
| path.replace( | ||
| new RegExp(`${loadEnv('', process.cwd()).VITE_BASE_API}`), | ||
| new RegExp(`${env.VITE_BASE_API}`), | ||
| '', | ||
| ), | ||
| }, | ||
| [loadEnv('', process.cwd()).VITE_MOCK_SERVER_HOST]: { | ||
| target: loadEnv('', process.cwd()).VITE_SERVER_HOST, | ||
| [env.VITE_MOCK_SERVER_HOST]: { | ||
| target: env.VITE_SERVER_HOST, | ||
| changeOrigin: true, | ||
| rewrite: (path: string) => { | ||
|
|
||
| return path.replace(new RegExp(`${loadEnv('', process.cwd()).VITE_MOCK_SERVER_HOST}`), '/mock') | ||
| return path.replace(new RegExp(`${env.VITE_MOCK_SERVER_HOST}`), '/mock') | ||
| }, | ||
| }, | ||
| }; | ||
|
Comment on lines
15
to
34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: find . -name "vite.config.dev.ts" -o -name "vite.config.ts" | head -20Repository: opentiny/tiny-pro Length of output: 105 🏁 Script executed: # Find the exact file and read it
fd -t f "vite.config" | grep -E "dev|vite" | head -10Repository: opentiny/tiny-pro Length of output: 387 🏁 Script executed: # List files in template/tinyvue/config directory
ls -la template/tinyvue/config/ 2>/dev/null || find . -path "*/template/tinyvue/config*" -type dRepository: opentiny/tiny-pro Length of output: 719 🏁 Script executed: cat -n template/tinyvue/config/vite.config.dev.tsRepository: opentiny/tiny-pro Length of output: 2138 🏁 Script executed: # Also check the base config to understand env setup
cat -n template/tinyvue/config/vite.config.base.tsRepository: opentiny/tiny-pro Length of output: 2445 🏁 Script executed: # Check for env files to see what patterns are used
find . -name ".env*" -o -name "dev.env" | head -20Repository: opentiny/tiny-pro Length of output: 392 🏁 Script executed: # Look for the dev.env file mentioned in the code
cat template/tinyvue/dev.env 2>/dev/null || echo "File not found"Repository: opentiny/tiny-pro Length of output: 478 🏁 Script executed: # Check if there's a .env.development file
cat template/tinyvue/.env.development 2>/dev/null || echo "File not found"Repository: opentiny/tiny-pro Length of output: 75 🏁 Script executed: # Search for any .env files in template/tinyvue
find template/tinyvue -name ".env*" -o -name "*env*" | grep -E "\.(env|example)" | head -10Repository: opentiny/tiny-pro Length of output: 135 🏁 Script executed: # Check for other usages of similar RegExp patterns in the codebase
rg "new RegExp" template/tinyvue/config/ -A 2 -B 2Repository: opentiny/tiny-pro Length of output: 734 🏁 Script executed: # Verify that the env values are only in configuration files and not loaded from user input
rg "VITE_BASE_API|VITE_MOCK_SERVER_HOST" template/tinyvue/ --type ts --type js | head -20Repository: opentiny/tiny-pro Length of output: 2104 🏁 Script executed: # Check if env variables can be overridden at runtime
git log --oneline -5 -- template/tinyvue/dev.env template/tinyvue/.env 2>/dev/null | head -10Repository: opentiny/tiny-pro Length of output: 86 🏁 Script executed: # Double-check if there are any dynamic sources that could feed into these env values
rg "VITE_BASE_API|VITE_MOCK_SERVER_HOST" template/tinyvue -B 3 -A 1 --type ts | grep -E "(process\.env|process\.argv|require\(|import)" | head -20Repository: opentiny/tiny-pro Length of output: 2186 🏁 Script executed: # Check if loadEnv can load from user input or just from .env files
rg "loadEnv" template/tinyvue --type ts -A 2 -B 2Repository: opentiny/tiny-pro Length of output: 2295 Simplify path replacement to improve code clarity. The proxy configuration uses Consider using direct string replacement instead of RegExp on lines 21-24 and 31: Suggested improvements// Line 21-24: Instead of
rewrite: (path: string) =>
path.replace(
new RegExp(`${env.VITE_BASE_API}`),
'',
),
// Use
rewrite: (path: string) => path.replace(env.VITE_BASE_API, ''),// Line 31: Instead of
return path.replace(new RegExp(`${env.VITE_MOCK_SERVER_HOST}`), '/mock')
// Use
return path.replace(env.VITE_MOCK_SERVER_HOST, '/mock')Both approaches replace only the first occurrence, so they're functionally equivalent. 🧰 Tools🪛 ast-grep (0.40.3)[warning] 21-21: Regular expression constructed from variable input detected. This can lead to Regular Expression Denial of Service (ReDoS) attacks if the variable contains malicious patterns. Use libraries like 'recheck' to validate regex safety or use static patterns. (regexp-from-variable) [warning] 30-30: Regular expression constructed from variable input detected. This can lead to Regular Expression Denial of Service (ReDoS) attacks if the variable contains malicious patterns. Use libraries like 'recheck' to validate regex safety or use static patterns. (regexp-from-variable) 🤖 Prompt for AI Agents |
||
|
|
@@ -34,6 +44,16 @@ export default mergeConfig( | |
| ...proxyConfig, | ||
| }, | ||
| }, | ||
| define: { | ||
| // 确保 VITE_LOWCODE_DESIGNER_ENABLED 被注入到客户端代码 | ||
| 'import.meta.env.VITE_LOWCODE_DESIGNER_ENABLED': JSON.stringify( | ||
| process.env.VITE_LOWCODE_DESIGNER_ENABLED || 'false' | ||
| ), | ||
| // 确保 VITE_LOWCODE_DESIGNER_URL 被注入到客户端代码 | ||
| 'import.meta.env.VITE_LOWCODE_DESIGNER_URL': JSON.stringify( | ||
| process.env.VITE_LOWCODE_DESIGNER_URL || 'http://localhost:8090' | ||
| ), | ||
| }, | ||
| plugins: [ | ||
| eslint({ | ||
| include: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.vue'], | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,12 +39,12 @@ | |
| "@babel/core": "^7.25.2", | ||
| "@gaonengwww/mock-server": "^1.0.5", | ||
| "@opentiny/icons": "^0.1.3", | ||
| "@opentiny/vue": "^3.27.0", | ||
| "@opentiny/vue-huicharts": "^3.27.0", | ||
| "@opentiny/vue-icon": "^3.27.0", | ||
| "@opentiny/vue-locale": "^3.27.0", | ||
| "@opentiny/vue": "^3.28.0", | ||
| "@opentiny/vue-huicharts": "~3.28.0", | ||
| "@opentiny/vue-icon": "~3.28.0", | ||
| "@opentiny/vue-locale": "~3.28.0", | ||
| "@opentiny/vue-search-box": "^0.1.3", | ||
| "@opentiny/vue-theme": "^3.27.0", | ||
| "@opentiny/vue-theme": "~3.28.0", | ||
|
Comment on lines
+42
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check @opentiny/vue versions in all package.json files
echo "=== template/tinyvue/package.json (lines 40-50) ==="
if [ -f "template/tinyvue/package.json" ]; then
sed -n '40,50p' template/tinyvue/package.json
else
echo "File not found"
fi
echo -e "\n=== template/lowcode-designer/package.json ==="
if [ -f "template/lowcode-designer/package.json" ]; then
cat template/lowcode-designer/package.json | jq '.dependencies | select(.) | to_entries[] | select(.key | startswith("@opentiny/vue")) | "\(.key): \(.value)"' 2>/dev/null || echo "No @opentiny/vue dependencies found or jq not available"
else
echo "File not found"
fi
echo -e "\n=== Root package.json overrides ==="
if [ -f "package.json" ]; then
cat package.json | jq '.pnpm.overrides | select(.)' 2>/dev/null || echo "No overrides found or jq not available"
else
echo "File not found"
fiRepository: opentiny/tiny-pro Length of output: 1400 🏁 Script executed: # Verify if tinyvue and lowcode-designer are separate deployments or shared
echo "=== Checking if templates are separate applications ==="
find template -name "package.json" -type f | while read f; do
echo "File: $f"
head -20 "$f" | grep -E "\"name\"|\"description\"" || echo " (checking structure)"
done
echo -e "\n=== Checking for shared workspace configuration ==="
if [ -f "pnpm-workspace.yaml" ]; then
cat pnpm-workspace.yaml
fiRepository: opentiny/tiny-pro Length of output: 476 🏁 Script executed: # Check if templates share any dependencies or are meant to run together
echo "=== Checking template build/deployment configurations ==="
ls -la template/tinyvue/ | grep -E "\.config\.|tsconfig|vite|webpack|build"
echo ""
ls -la template/lowcode-designer/ | grep -E "\.config\.|tsconfig|vite|webpack|build"
echo -e "\n=== Checking if templates reference each other ==="
echo "tinyvue package.json dependencies:"
cat template/tinyvue/package.json | jq '.dependencies, .devDependencies | keys[]' 2>/dev/null | grep -i designer || echo "(no designer references)"
echo -e "\ndesigner-demo package.json dependencies:"
cat template/lowcode-designer/package.json | jq '.dependencies, .devDependencies | keys[]' 2>/dev/null | grep -i vue || echo "(no vue app references)"
echo -e "\n=== Checking root package.json bundling/deployment config ==="
cat package.json | jq '.scripts | to_entries[] | select(.key | contains("build") or contains("deploy"))' 2>/dev/null | head -20Repository: opentiny/tiny-pro Length of output: 1296 Version inconsistency: @opentiny/vue differs between templates. The tinyvue template uses Note: The root package.json overrides only apply to Recommendation: Align @opentiny/vue versions across templates to use the same version range. 🤖 Prompt for AI Agents |
||
| "@types/mockjs": "^1.0.10", | ||
| "@types/node": "^22.7.4", | ||
| "@vueuse/core": "^10.11.1", | ||
|
|
@@ -136,4 +136,4 @@ | |
| "bin-wrapper": "npm:bin-wrapper-china", | ||
| "gifsicle": "5.2.0" | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: opentiny/tiny-pro
Length of output: 2046
🏁 Script executed:
rg "VITE_LOWCODE_DESIGNER_URL" --type yaml --type javascript --type typescriptRepository: opentiny/tiny-pro
Length of output: 95
🏁 Script executed:
Repository: opentiny/tiny-pro
Length of output: 5076
🏁 Script executed:
rg "VITE_LOWCODE_DESIGNER" -A 2 -B 2Repository: opentiny/tiny-pro
Length of output: 3636
🏁 Script executed:
rg "ai.opentiny.design/designer" -A 2 -B 2Repository: opentiny/tiny-pro
Length of output: 43
🏁 Script executed:
Repository: opentiny/tiny-pro
Length of output: 43
Update
VITE_LOWCODE_DESIGNER_URLto use the locally deployed designer path.Line 67's comment correctly states to use relative path
/designerafter deployment, but line 68 sets an absolute external URL. The production build config invite.config.prod.tsdefaults to/designer, and the workflow explicitly builds and deploys the designer locally (lines 69-81). Change line 68 to:🤖 Prompt for AI Agents