Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Five-菜鸟级
NodeJS_590106
提交
1e7696d4
N
NodeJS_590106
项目概览
Five-菜鸟级
/
NodeJS_590106
与 Fork 源项目一致
Fork自
inscode / NodeJS
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NodeJS_590106
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
1e7696d4
编写于
9月 18, 2025
作者:
Q
qq_41923622
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[fix]up
上级
d38ed907
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
90 addition
and
131 deletion
+90
-131
packages/core/vitest.config.ts
packages/core/vitest.config.ts
+0
-3
packages/data-validation/package.json
packages/data-validation/package.json
+0
-76
packages/data-validation/tsconfig.json
packages/data-validation/tsconfig.json
+0
-9
packages/sheets-ui/tailwind.config.ts
packages/sheets-ui/tailwind.config.ts
+0
-27
packages/sheets-ui/tsconfig.json
packages/sheets-ui/tsconfig.json
+0
-9
packages/sheets-ui/tsconfig.node.json
packages/sheets-ui/tsconfig.node.json
+0
-4
packages/sheets-ui/vitest.config.ts
packages/sheets-ui/vitest.config.ts
+0
-3
src/main.ts
src/main.ts
+81
-0
vite.config.ts
vite.config.ts
+9
-0
未找到文件。
packages/core/vitest.config.ts
已删除
100644 → 0
浏览文件 @
d38ed907
import
createConfig
from
'
@univerjs-infra/shared/vitest
'
;
export
default
createConfig
();
packages/data-validation/package.json
已删除
100644 → 0
浏览文件 @
d38ed907
{
"name"
:
"@univerjs/data-validation"
,
"version"
:
"0.10.8"
,
"private"
:
false
,
"description"
:
"Data validation library for Univer"
,
"author"
:
"DreamNum <developer@univer.ai>"
,
"license"
:
"Apache-2.0"
,
"funding"
:
{
"type"
:
"opencollective"
,
"url"
:
"https://opencollective.com/univer"
},
"homepage"
:
"https://univer.ai"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"https://github.com/dream-num/univer"
},
"bugs"
:
{
"url"
:
"https://github.com/dream-num/univer/issues"
},
"keywords"
:
[
"univer"
],
"exports"
:
{
"."
:
"./src/index.ts"
,
"./*"
:
"./src/*"
},
"main"
:
"./src/index.ts"
,
"types"
:
"./lib/types/index.d.ts"
,
"publishConfig"
:
{
"access"
:
"public"
,
"main"
:
"./lib/es/index.js"
,
"module"
:
"./lib/es/index.js"
,
"exports"
:
{
"."
:
{
"import"
:
"./lib/es/index.js"
,
"require"
:
"./lib/cjs/index.js"
,
"types"
:
"./lib/types/index.d.ts"
},
"./*"
:
{
"import"
:
"./lib/es/*"
,
"require"
:
"./lib/cjs/*"
,
"types"
:
"./lib/types/index.d.ts"
},
"./lib/*"
:
"./lib/*"
}
},
"directories"
:
{
"lib"
:
"lib"
},
"files"
:
[
"lib"
],
"scripts"
:
{
"dev"
:
"vite"
,
"test"
:
"vitest run"
,
"test:watch"
:
"vitest"
,
"coverage"
:
"vitest run --coverage"
,
"build"
:
"univer-cli build"
},
"peerDependencies"
:
{
"rxjs"
:
">=7.0.0"
},
"dependencies"
:
{
"@univerjs/core"
:
"workspace:*"
},
"devDependencies"
:
{
"@univerjs-infra/shared"
:
"workspace:*"
,
"@univerjs/core"
:
"workspace:*"
,
"@univerjs/protocol"
:
"0.1.46"
,
"@univerjs/sheets"
:
"workspace:*"
,
"rxjs"
:
"^7.8.2"
,
"typescript"
:
"^5.9.2"
,
"vite"
:
"^7.1.4"
,
"vitest"
:
"^3.2.4"
}
}
packages/data-validation/tsconfig.json
已删除
100644 → 0
浏览文件 @
d38ed907
{
"extends"
:
"@univerjs-infra/shared/tsconfigs/base"
,
"compilerOptions"
:
{
"rootDir"
:
"src"
,
"outDir"
:
"lib/types"
},
"references"
:
[{
"path"
:
"./tsconfig.node.json"
}],
"include"
:
[
"src"
]
}
packages/sheets-ui/tailwind.config.ts
已删除
100644 → 0
浏览文件 @
d38ed907
/**
* Copyright 2023-present DreamNum Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
type
{
Config
}
from
'
tailwindcss
'
;
import
preset
from
'
@univerjs-infra/shared/tailwind
'
;
const
config
:
Config
=
{
presets
:
[
preset
],
content
:
[
'
./src/**/*.{js,ts,jsx,tsx}
'
,
],
};
export
default
config
;
packages/sheets-ui/tsconfig.json
已删除
100644 → 0
浏览文件 @
d38ed907
{
"extends"
:
"@univerjs-infra/shared/tsconfigs/base"
,
"compilerOptions"
:
{
"rootDir"
:
"src"
,
"outDir"
:
"lib/types"
},
"references"
:
[{
"path"
:
"./tsconfig.node.json"
}],
"include"
:
[
"src"
]
}
packages/sheets-ui/tsconfig.node.json
已删除
100644 → 0
浏览文件 @
d38ed907
{
"extends"
:
"@univerjs-infra/shared/tsconfigs/node"
,
"include"
:
[
"vitest.config.ts"
]
}
packages/sheets-ui/vitest.config.ts
已删除
100644 → 0
浏览文件 @
d38ed907
import
createConfig
from
'
@univerjs-infra/shared/vitest
'
;
export
default
createConfig
();
src/main.ts
浏览文件 @
1e7696d4
...
@@ -24,3 +24,84 @@ console.log('ddd')
...
@@ -24,3 +24,84 @@ console.log('ddd')
// setupCounter(document.querySelector<HTMLButtonElement>('#counter')!)
// setupCounter(document.querySelector<HTMLButtonElement>('#counter')!)
import
{
LocaleType
,
mergeLocales
,
Univer
,
UniverInstanceType
}
from
'
../packages/core/src
'
import
{
FUniver
}
from
'
../packages/core/src/facade
'
import
DesignZhCN
from
'
../packages/design/src/locale/zh-CN
'
import
{
UniverDocsPlugin
}
from
'
../packages/docs/src
'
import
{
UniverDocsUIPlugin
}
from
'
../packages/docs-ui/src
'
import
DocsUIZhCN
from
'
../packages/docs-ui/src/locale/zh-CN
'
import
{
UniverFormulaEnginePlugin
}
from
'
../packages/engine-formula/src
'
import
{
UniverRenderEnginePlugin
}
from
'
../packages/engine-render/src
'
import
{
UniverSheetsPlugin
}
from
'
../packages/sheets/src
'
import
{
UniverSheetsFormulaPlugin
}
from
'
../packages/sheets-formula/src
'
import
{
UniverSheetsFormulaUIPlugin
}
from
'
../packages/sheets-formula-ui/src
'
import
SheetsFormulaUIZhCN
from
'
../packages/sheets-formula-ui/src/locale/zh-CN
'
import
{
UniverSheetsNumfmtPlugin
}
from
'
../packages/sheets-numfmt/src
'
import
{
UniverSheetsNumfmtUIPlugin
}
from
'
../packages/sheets-numfmt-ui/src
'
import
SheetsNumfmtUIZhCN
from
'
../packages/sheets-numfmt-ui/src/locale/zh-CN
'
import
{
UniverSheetsUIPlugin
}
from
'
../packages/sheets-ui/src
'
import
SheetsUIZhCN
from
'
../packages/sheets-ui/src/locale/zh-CN
'
import
SheetsZhCN
from
'
../packages/sheets/src/locale/zh-CN
'
import
{
UniverUIPlugin
}
from
'
../packages/ui/src
'
import
UIZhCN
from
'
../packages/ui/src/locale/zh-CN
'
// import '../packages/design/src/globals.css'
// import '../packages/ui/src/globals.css'
// import '../packages/docs-ui/src/globals.css'
// import '../packages/sheets-ui/src/src/globals.css'
// import '../packages/sheets-formula-ui/src/globals.css'
// import '../packages/sheets-numfmt-ui/src/globals.css'
import
'
../packages/engine-formula/src/facade
'
import
'
../packages/ui/src/facade
'
import
'
../packages/docs-ui/src/facade
'
import
'
../packages/sheets/src/facade
'
import
'
../packages/sheets-ui/src/facade
'
import
'
../packages/sheets-formula/src/facade
'
import
'
../packages/sheets-numfmt/src/facade
'
const
univer
=
new
Univer
({
locale
:
LocaleType
.
ZH_CN
,
locales
:
{
[
LocaleType
.
ZH_CN
]:
mergeLocales
(
DesignZhCN
,
UIZhCN
,
DocsUIZhCN
,
SheetsZhCN
,
SheetsUIZhCN
,
SheetsFormulaUIZhCN
,
SheetsNumfmtUIZhCN
,
),
},
})
univer
.
registerPlugin
([
UniverRenderEnginePlugin
,
UniverFormulaEnginePlugin
,
[
UniverUIPlugin
,
{
container
:
'
app
'
,
}],
UniverDocsPlugin
,
UniverDocsUIPlugin
,
UniverSheetsPlugin
,
UniverSheetsUIPlugin
,
UniverSheetsFormulaPlugin
,
UniverSheetsFormulaUIPlugin
,
UniverSheetsNumfmtPlugin
,
UniverSheetsNumfmtUIPlugin
,
])
univer
.
registerPlugin
(
UniverRenderEnginePlugin
)
univer
.
registerPlugin
(
UniverFormulaEnginePlugin
)
univer
.
registerPlugin
(
UniverUIPlugin
,
{
container
:
'
app
'
,
})
// univer.registerPlugin(UniverDocsPlugin)
// univer.registerPlugin(UniverDocsUIPlugin)
// univer.registerPlugin(UniverSheetsPlugin)
// univer.registerPlugin(UniverSheetsUIPlugin)
// univer.registerPlugin(UniverSheetsFormulaPlugin)
// univer.registerPlugin(UniverSheetsFormulaUIPlugin)
// univer.registerPlugin(UniverSheetsNumfmtPlugin)
// univer.registerPlugin(UniverSheetsNumfmtUIPlugin)
univer
.
createUnit
(
UniverInstanceType
.
UNIVER_SHEET
,
{})
const
univerAPI
=
FUniver
.
newAPI
(
univer
)
vite.config.ts
浏览文件 @
1e7696d4
import
{
defineConfig
}
from
'
vite
'
import
{
defineConfig
}
from
'
vite
'
import
{
resolve
}
from
'
path
'
// import { viteStaticCopy } from 'vite-plugin-static-copy'
// import { viteStaticCopy } from 'vite-plugin-static-copy'
...
@@ -7,6 +8,14 @@ export default defineConfig({
...
@@ -7,6 +8,14 @@ export default defineConfig({
host
:
true
,
host
:
true
,
allowedHosts
:
true
allowedHosts
:
true
},
},
resolve
:{
alias
:[
{
find
:
'
@univerjs/
'
,
replacement
:
`
${
resolve
(
__dirname
,
'
./packages
'
)}
/`
,
}
]
}
// plugins: [
// plugins: [
// viteStaticCopy({
// viteStaticCopy({
// targets: [
// targets: [
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录