-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
69 changed files
with
910 additions
and
71 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/editorTable/CSVeditor.ts → src/editorTable/CSV/CSVeditor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { env } from '../../env'; | ||
export class EXCELimporter{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export abstract class ImportRule { | ||
|
||
/** | ||
* 物编数据所属的种类,总共可以填入以下几种类型: | ||
* 单位 装饰物 物品 技能 魔法效果 投射物 科技 可破坏物 声音 | ||
*/ | ||
public abstract editorTableType: string; | ||
|
||
/** | ||
* 要导入的表格的相对于当前vscode工作区的路径 | ||
*/ | ||
public abstract inputRelativePath: string; | ||
|
||
/** | ||
* 所属的工作表名 | ||
*/ | ||
public abstract sheet: string; | ||
|
||
/** | ||
* 属性与Json字段的对应关系 | ||
*/ | ||
public abstract attrDef: { [key: string]: string }; | ||
|
||
/** | ||
* 请重写此方法以实现自定义转换规则 | ||
* 返回值的对象需要包含'uid'字段,以确定物编项目的uid,以便本插件导入 | ||
* @param row 表格中的一行 | ||
* @returns 此行被解析得到的Json对象 本插件会把它的属性覆盖到物编项目的Json 物编项目Json中的 | ||
*/ | ||
public abstract rowImport(row:any): any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export * from './editorTableUtility'; | ||
export * from './types'; | ||
export * from './editorTableProvider'; | ||
export * from './CSVimporter'; | ||
export * from './CSVeditor'; | ||
export * from './CSV/CSVimporter'; | ||
export * from './CSV/CSVeditor'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.