Skip to content

Commit

Permalink
feat: scop style update
Browse files Browse the repository at this point in the history
  • Loading branch information
guqiankun.gqk committed Dec 22, 2023
1 parent 34c5e6f commit d77c63f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/api/createApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const getDefaultAppConfig = (): IAppOpts => ({
...FILES_DEFAULTS.filesExclude,
// browserfs OverlayFS 用来记录删除的文件
[`**${deletionLogPath}`]: true,
'**/.cloudide/**': true,
'**/.codeblitz/**': true,
},
},
layoutConfig: getDefaultLayoutConfig(),
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/api/renderEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface IEditorRendererProps extends IConfig, EditorProps {
export const renderEditor = (domElement: HTMLElement, props: IEditorRendererProps) => {
const { onLoad, Landing, ...opts } = props;
const app = createEditor(opts);
const className = `alex-editor ${
const className = `codeblitz-editor ${
opts.runtimeConfig.hideEditorTab ? styles['hide-editor-tab'] : ''
}`;

Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/core/style.module.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
alex-root {
codeblitz-root {
display: block;
width: 100%;
height: 100%;
Expand All @@ -20,12 +20,12 @@ alex-root {
background-color: #FFF;
}

:global(.alex-dark) .landing {
:global(.codeblitz-dark) .landing {
color: #D7DBDE;
background-color: #202224;
}

:global(.alex-dark) {
:global(.codeblitz-dark) {
background-color: #202224;
}

Expand Down Expand Up @@ -88,7 +88,7 @@ alex-root {
object-fit: contain;
width: auto !important;
}
.alex-root {
.codeblitz-root {
.monaco-editor .margin-view-overlays .folding.collapsed,
.monaco-editor .margin-view-overlays .folding.alwaysShowFoldIcons,
.monaco-editor .margin-view-overlays:hover .folding {
Expand All @@ -97,7 +97,7 @@ alex-root {
}
}

:global(.alex-editor) .landing {
:global(.codeblitz-editor) .landing {
color: inherit;
background-color: inherit;
}
7 changes: 7 additions & 0 deletions packages/startup/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

/* 适配全局样式 黑色主题初始化为白色 */
html,
body {
color: var(--foreground);
background-color: var(--editor-background);
}
6 changes: 3 additions & 3 deletions packages/sumi-core/src/common/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export const CODE_ROOT = '/code';
export const IDB_ROOT = '/idb';

// 全局数据存储目录
export const STORAGE_DIR = '.cloudide';
export const STORAGE_DIR = '.codeblitz';

export const HOME_IDB_NAME = 'ALEX_HOME';
export const HOME_IDB_NAME = 'CODEBLITZ_HOME';

export const WORKSPACE_IDB_NAME = 'ALEX_WORKSPACE';
export const WORKSPACE_IDB_NAME = 'CODEBLITZ_WORKSPACE';

0 comments on commit d77c63f

Please sign in to comment.