Skip to content

Commit

Permalink
feat: add package of opentiny/tiny-engine-theme-base (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
James-9696 authored Jul 3, 2024
1 parent 0c71520 commit 0c6a248
Show file tree
Hide file tree
Showing 13 changed files with 421 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const devAlias = {
),
'@opentiny/tiny-engine-theme-dark': path.resolve(process.cwd(), '../packages/theme/dark/index.less'),
'@opentiny/tiny-engine-theme-light': path.resolve(process.cwd(), '../packages/theme/light/index.less'),
'@opentiny/tiny-engine-theme-base': path.resolve(process.cwd(), '../packages/theme/base/src/index.js'),
'@opentiny/tiny-engine-svgs': path.resolve(process.cwd(), '../packages/svgs/index.js'),
'@opentiny/tiny-engine-http': path.resolve(process.cwd(), '../packages/http/src/index.js'),
'@opentiny/tiny-engine-canvas': path.resolve(process.cwd(), '../packages/canvas/index.js'),
Expand Down
1 change: 1 addition & 0 deletions packages/design-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"@opentiny/tiny-engine-svgs": "workspace:*",
"@opentiny/tiny-engine-theme-dark": "workspace:*",
"@opentiny/tiny-engine-theme-light": "workspace:*",
"@opentiny/tiny-engine-theme-base": "workspace:*",
"@opentiny/tiny-engine-toolbar-breadcrumb": "workspace:*",
"@opentiny/tiny-engine-toolbar-checkinout": "workspace:*",
"@opentiny/tiny-engine-toolbar-clean": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/design-core/src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { initMonitor } from '@opentiny/tiny-engine-common/js/monitor'
import { injectGlobalComponents, setGlobalMonacoEditorTheme, Modal, Notify } from '@opentiny/tiny-engine-common'
import { initHttp } from '@opentiny/tiny-engine-http'
import TinyThemeTool from '@opentiny/vue-theme/theme-tool'
import { tinySmbTheme } from '@opentiny/vue-theme/theme' // SMB 主题
import { tinyEngineThemeLight } from '@opentiny/tiny-engine-theme-base'
import {
defineEntry,
mergeRegistry,
Expand Down Expand Up @@ -52,7 +52,7 @@ const defaultLifeCycles = {
initHttp({ env: import.meta.env })

// eslint-disable-next-line no-new
new TinyThemeTool(tinySmbTheme, 'smbtheme') // 初始化主题
new TinyThemeTool(tinyEngineThemeLight, 'tinyEngineTheme') // 初始化主题

if (import.meta.env.VITE_ERROR_MONITOR === 'true' && import.meta.env.VITE_ERROR_MONITOR_URL) {
initMonitor(import.meta.env.VITE_ERROR_MONITOR_URL)
Expand Down
2 changes: 1 addition & 1 deletion packages/layout/src/DesignSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default {
flex: 1;
overflow-y: scroll;
padding: 0;
margin-top: 0;
margin: 0;
}
.tiny-tabs__item {
color: var(--ti-lowcode-setting-panel-tabs-item-title-color);
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/bridge/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export default {
:deep(.tiny-tabs__content) {
height: calc(100% - 45px);
padding: 0;
margin: 0;
& > div {
height: 100%;
}
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/materials/src/meta/layout/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export default {
flex: 1;
overflow-y: scroll;
padding: 0;
margin: 0px;
& > div {
height: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/settings/panel/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default {
flex: 1;
overflow-y: scroll;
padding: 0;
margin-top: 0;
margin: 0;
}
.tiny-tabs__item {
color: var(--ti-lowcode-setting-panel-tabs-item-title-color);
Expand Down
30 changes: 30 additions & 0 deletions packages/theme/base/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "@opentiny/tiny-engine-theme-base",
"version": "1.0.0",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "vite build"
},
"main": "dist/index.js",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/opentiny/tiny-engine",
"directory": "packages/theme/base"
},
"bugs": {
"url": "https://github.com/opentiny/tiny-engine/issues"
},
"author": "OpenTiny Team",
"license": "MIT",
"homepage": "https://opentiny.design/tiny-engine",
"dependencies": {},
"devDependencies": {
"rimraf": "^3.0.2",
"vite": "^4.3.7"
}
}
Loading

0 comments on commit 0c6a248

Please sign in to comment.