Skip to content

Commit bbf973a

Browse files
committed
Fix init data
1 parent e41ef7f commit bbf973a

7 files changed

Lines changed: 17 additions & 7 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "electerm-web-demo",
3-
"version": "3.3.100",
3+
"version": "3.3.101",
44
"description": "Running electerm in as web app",
55
"main": "src/app/app.js",
66
"type": "module",

src/client/demo/fs-fake.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// A fake nodejs fs module
2-
import data from './init-data.json'
2+
import data from './init-data'
33

44
export const fs = {
55
constants: data.fsConstants,

src/client/demo/init-data.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import data from './init-data.json'
2+
import defaultConfig from '../electerm-react/common/default-setting'
3+
4+
export default {
5+
...data,
6+
config: {
7+
...data.config,
8+
...defaultConfig
9+
}
10+
}

src/client/demo/ls-db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import data from './init-data.json'
1+
import data from './init-data'
22
// A memory db class that mimics the localStorage db class
33
export class Db {
44
static data = data

src/client/demo/run-sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import data from './init-data.json'
1+
import data from './init-data'
22
import iterms from '@electerm/electerm-themes/dist/index.mjs'
33
import { dbAction } from './db'
44

src/client/web-components/web-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// window preload
22
// import { message } from 'antd'
3-
import data from '../demo/init-data.json'
3+
import data from '../demo/init-data'
44
import * as langMap from '@electerm/electerm-locales/esm/index.mjs'
55
import {
66
funcs1,

0 commit comments

Comments
 (0)