-
Notifications
You must be signed in to change notification settings - Fork 8
feat: adapt to the drill site and optimize the SaaS mode #49
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 |
|---|---|---|
|
|
@@ -49,33 +49,28 @@ function generateVue2NormalPackageJson() { | |
| main: 'index.js', | ||
| module: 'index.js', | ||
| types: 'types/index.d.ts', | ||
| typings: 'types/index.d.ts', // 向后兼容 | ||
| sideEffects: ['*.css'], | ||
| exports: { | ||
| '.': { | ||
| types: './types/index.d.ts', | ||
| import: './index.js', | ||
| require: './index.js' | ||
| }, | ||
| './index.css': './index.css', | ||
| './package.json': './package.json' | ||
| }, | ||
| publishConfig: { | ||
| access: 'public' | ||
| }, | ||
| peerDependencies: { | ||
| vue: '^2.6.14' | ||
| }, | ||
| dependencies: { | ||
| '@opentiny/vue-button': '^2.26.0', | ||
| '@opentiny/vue-checkbox': '^2.26.0', | ||
| '@opentiny/vue-checkbox-group': '^2.26.0', | ||
| '@opentiny/vue-date-picker': '^2.26.0', | ||
| '@opentiny/vue-dropdown': '^2.26.0', | ||
| '@opentiny/vue-dropdown-item': '^2.26.0', | ||
| '@opentiny/vue-dropdown-menu': '^2.26.0', | ||
| '@opentiny/vue-form': '^2.26.0', | ||
| '@opentiny/vue-form-item': '^2.26.0', | ||
| '@opentiny/vue-icon': '^2.26.0', | ||
| '@opentiny/vue-input': '^2.26.0', | ||
| '@opentiny/vue-loading': '^2.26.0', | ||
| '@opentiny/vue-option': '^2.26.0', | ||
| '@opentiny/vue-popover': '^2.26.0', | ||
| '@opentiny/vue-select': '^2.26.0', | ||
| '@opentiny/vue-tag': '^2.26.0', | ||
| '@opentiny/vue-tooltip': '^2.26.0', | ||
| '@opentiny/vue-common': '^2.26.0', | ||
| '@opentiny/vue-theme': '^3.26.0' | ||
| '@opentiny/vue': '^2.28.0', | ||
| '@opentiny/vue-common': '^2.28.0', | ||
| '@opentiny/vue-icon': '^2.28.0', | ||
| '@opentiny/vue-theme': '^3.28.0' | ||
|
Comment on lines
+70
to
+73
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: cat -n packages/search-box/scripts/post-build.jsRepository: opentiny/tiny-search-box Length of output: 8034 🏁 Script executed: npm view `@opentiny/vue` versions --json | tail -20
npm view `@opentiny/vue-common` versions --json | tail -20
npm view `@opentiny/vue-icon` versions --json | tail -20
npm view `@opentiny/vue-theme` versions --json | tail -20Repository: opentiny/tiny-search-box Length of output: 1005 🏁 Script executed: npm view `@opentiny/vue` versions --json | grep -E '"2\.' | tail -20
npm view `@opentiny/vue-common` versions --json | grep -E '"2\.' | tail -20
npm view `@opentiny/vue-icon` versions --json | grep -E '"2\.' | tail -20Repository: opentiny/tiny-search-box Length of output: 787 Fix Vue2 dependency version inconsistency: In the Vue2 builds (lines 70-73 and 110-113), All referenced package versions are available on npm. 🤖 Prompt for AI Agents |
||
| }, | ||
| keywords: packageJson.keywords || [], | ||
| license: packageJson.license, | ||
|
|
@@ -94,33 +89,28 @@ function generateVue2SaasPackageJson() { | |
| main: 'index.js', | ||
| module: 'index.js', | ||
| types: 'types/index.d.ts', | ||
| typings: 'types/index.d.ts', // 向后兼容 | ||
| sideEffects: ['*.css'], | ||
| exports: { | ||
| '.': { | ||
| types: './types/index.d.ts', | ||
| import: './index.js', | ||
| require: './index.js' | ||
| }, | ||
| './index.css': './index.css', | ||
| './package.json': './package.json' | ||
| }, | ||
| publishConfig: { | ||
| access: 'public' | ||
| }, | ||
| peerDependencies: { | ||
| vue: '^2.6.14' | ||
| }, | ||
| dependencies: { | ||
| '@opentiny/vue-button': '^2.26.0', | ||
| '@opentiny/vue-checkbox': '^2.26.0', | ||
| '@opentiny/vue-checkbox-group': '^2.26.0', | ||
| '@opentiny/vue-date-picker': '^2.26.0', | ||
| '@opentiny/vue-dropdown': '^2.26.0', | ||
| '@opentiny/vue-dropdown-item': '^2.26.0', | ||
| '@opentiny/vue-dropdown-menu': '^2.26.0', | ||
| '@opentiny/vue-form': '^2.26.0', | ||
| '@opentiny/vue-form-item': '^2.26.0', | ||
| '@opentiny/vue-icon': '^2.26.0', | ||
| '@opentiny/vue-input': '^2.26.0', | ||
| '@opentiny/vue-loading': '^2.26.0', | ||
| '@opentiny/vue-option': '^2.26.0', | ||
| '@opentiny/vue-popover': '^2.26.0', | ||
| '@opentiny/vue-select': '^2.26.0', | ||
| '@opentiny/vue-tag': '^2.26.0', | ||
| '@opentiny/vue-tooltip': '^2.26.0', | ||
| '@opentiny/vue-common': '^2.26.0', | ||
| '@opentiny/vue-theme': '^3.26.0' | ||
| '@opentiny/vue': '^2.28.0', | ||
| '@opentiny/vue-common': '^2.28.0', | ||
| '@opentiny/vue-icon': '^2.28.0', | ||
| '@opentiny/vue-theme': '^3.28.0' | ||
| }, | ||
| keywords: packageJson.keywords || [], | ||
| license: packageJson.license, | ||
|
|
@@ -139,33 +129,28 @@ function generateVue3NormalPackageJson() { | |
| main: 'index.js', | ||
| module: 'index.js', | ||
| types: 'types/index.d.ts', | ||
| typings: 'types/index.d.ts', // 向后兼容 | ||
| sideEffects: ['*.css'], | ||
| exports: { | ||
| '.': { | ||
| types: './types/index.d.ts', | ||
| import: './index.js', | ||
| require: './index.js' | ||
| }, | ||
| './index.css': './index.css', | ||
| './package.json': './package.json' | ||
| }, | ||
| publishConfig: { | ||
| access: 'public' | ||
| }, | ||
| peerDependencies: { | ||
| vue: '^3.0.0' | ||
| }, | ||
| dependencies: { | ||
| '@opentiny/vue-button': '^3.26.0', | ||
| '@opentiny/vue-checkbox': '^3.26.0', | ||
| '@opentiny/vue-checkbox-group': '^3.26.0', | ||
| '@opentiny/vue-date-picker': '^3.26.0', | ||
| '@opentiny/vue-dropdown': '^3.26.0', | ||
| '@opentiny/vue-dropdown-item': '^3.26.0', | ||
| '@opentiny/vue-dropdown-menu': '^3.26.0', | ||
| '@opentiny/vue-form': '^3.26.0', | ||
| '@opentiny/vue-form-item': '^3.26.0', | ||
| '@opentiny/vue-icon': '^3.26.0', | ||
| '@opentiny/vue-input': '^3.26.0', | ||
| '@opentiny/vue-loading': '^3.26.0', | ||
| '@opentiny/vue-option': '^3.26.0', | ||
| '@opentiny/vue-popover': '^3.26.0', | ||
| '@opentiny/vue-select': '^3.26.0', | ||
| '@opentiny/vue-tag': '^3.26.0', | ||
| '@opentiny/vue-tooltip': '^3.26.0', | ||
| '@opentiny/vue-common': '^3.26.0', | ||
| '@opentiny/vue-theme': '^3.26.0' | ||
| '@opentiny/vue': '^3.28.0', | ||
| '@opentiny/vue-common': '^3.28.0', | ||
| '@opentiny/vue-icon': '^3.28.0', | ||
| '@opentiny/vue-theme': '^3.28.0' | ||
| }, | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| keywords: packageJson.keywords || [], | ||
| license: packageJson.license, | ||
|
|
@@ -184,33 +169,28 @@ function generateVue3SaasPackageJson() { | |
| main: 'index.js', | ||
| module: 'index.js', | ||
| types: 'types/index.d.ts', | ||
| typings: 'types/index.d.ts', // 向后兼容 | ||
| sideEffects: ['*.css'], | ||
| exports: { | ||
| '.': { | ||
| types: './types/index.d.ts', | ||
| import: './index.js', | ||
| require: './index.js' | ||
| }, | ||
| './index.css': './index.css', | ||
| './package.json': './package.json' | ||
| }, | ||
| publishConfig: { | ||
| access: 'public' | ||
| }, | ||
| peerDependencies: { | ||
| vue: '^3.0.0' | ||
| }, | ||
| dependencies: { | ||
| '@opentiny/vue-button': '^3.26.0', | ||
| '@opentiny/vue-checkbox': '^3.26.0', | ||
| '@opentiny/vue-checkbox-group': '^3.26.0', | ||
| '@opentiny/vue-date-picker': '^3.26.0', | ||
| '@opentiny/vue-dropdown': '^3.26.0', | ||
| '@opentiny/vue-dropdown-item': '^3.26.0', | ||
| '@opentiny/vue-dropdown-menu': '^3.26.0', | ||
| '@opentiny/vue-form': '^3.26.0', | ||
| '@opentiny/vue-form-item': '^3.26.0', | ||
| '@opentiny/vue-icon': '^3.26.0', | ||
| '@opentiny/vue-input': '^3.26.0', | ||
| '@opentiny/vue-loading': '^3.26.0', | ||
| '@opentiny/vue-option': '^3.26.0', | ||
| '@opentiny/vue-popover': '^3.26.0', | ||
| '@opentiny/vue-select': '^3.26.0', | ||
| '@opentiny/vue-tag': '^3.26.0', | ||
| '@opentiny/vue-tooltip': '^3.26.0', | ||
| '@opentiny/vue-common': '^3.26.0', | ||
| '@opentiny/vue-theme': '^3.26.0' | ||
| '@opentiny/vue': '^3.28.0', | ||
| '@opentiny/vue-common': '^3.28.0', | ||
| '@opentiny/vue-icon': '^3.28.0', | ||
| '@opentiny/vue-theme': '^3.28.0' | ||
| }, | ||
| keywords: packageJson.keywords || [], | ||
| license: packageJson.license, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,7 +116,7 @@ | |
| <script> | ||
| // Vue2 版本,使用 tiny-vue 的 renderless 架构 | ||
| import { defineComponent, setup, $props, $prefix } from '@opentiny/vue-common' | ||
| import TinyDropdownItem from '@opentiny/vue-dropdown-item' | ||
| import { TinyDropdownItem } from '@opentiny/vue' | ||
| import { t } from '../utils/i18n.ts' | ||
|
|
||
| // 简单的 renderless 函数 | ||
|
|
@@ -175,7 +175,7 @@ export default defineComponent({ | |
| default: null | ||
| } | ||
| }, | ||
| emits: ['events'], | ||
| emits: ['events', 'click'], | ||
|
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
# Search for emit('click') patterns in search-box package
rg -n "emit\(['\"]click['\"]" packages/search-box/src/Repository: opentiny/tiny-search-box Length of output: 50 🏁 Script executed: cat -n packages/search-box/src/components/first-level-panel.vueRepository: opentiny/tiny-search-box Length of output: 6950 🏁 Script executed: rg -n "first-level-panel|FirstLevelPanel" packages/search-box/src/ --type vue --type ts --type jsRepository: opentiny/tiny-search-box Length of output: 95 🏁 Script executed: rg -n "first-level-panel|FirstLevelPanel" packages/search-box/src/Repository: opentiny/tiny-search-box Length of output: 516 🏁 Script executed: sed -n '121,130p' packages/search-box/src/pc.vueRepository: opentiny/tiny-search-box Length of output: 420 🏁 Script executed: sed -n '115,135p' packages/search-box/src/pc.vueRepository: opentiny/tiny-search-box Length of output: 724 🏁 Script executed: sed -n '119,130p' packages/search-box/src/pc.vueRepository: opentiny/tiny-search-box Length of output: 471 🏁 Script executed: rg -n "@click" packages/search-box/src/pc.vue | head -20Repository: opentiny/tiny-search-box Length of output: 811 Remove unused The 🤖 Prompt for AI Agents |
||
| setup(props, context) { | ||
| return setup({ props, context, renderless, api }) | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.