verteilen-core 1.2.15 → 1.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,8 @@
1
- import { Node, Database, Project, Task } from './base';
1
+ import { Node, Database, Project, Task, Job } from './base';
2
2
  import { Plugin, SystemLoad } from './struct';
3
+ export interface JobTable extends Job {
4
+ s?: boolean;
5
+ }
3
6
  export interface DatabaseTable extends Database {
4
7
  s?: boolean;
5
8
  }
@@ -7,8 +7,8 @@ const GetCurrentPlugin = async (loader) => {
7
7
  plugins: [],
8
8
  templates: []
9
9
  };
10
- const root = loader.join(loader.root, 'template');
11
- const root2 = loader.join(loader.root, 'plugin');
10
+ const root = loader.join(loader.root, 'plugin');
11
+ const root2 = loader.join(loader.root, 'template');
12
12
  if (!loader.exists(root))
13
13
  await loader.mkdir(root);
14
14
  if (!loader.exists(root2))
@@ -37,7 +37,7 @@ const GetCurrentPlugin = async (loader) => {
37
37
  url: config.url
38
38
  });
39
39
  }
40
- const files2 = (await loader.read_dir_dir(root2)).filter(x => x.endsWith('.json'));
40
+ const files2 = (await loader.read_dir_file(root2)).filter(x => x.endsWith('.json'));
41
41
  const p_config2 = files2.map(file => {
42
42
  return loader.read_string(loader.join(root2, file), { encoding: 'utf-8' });
43
43
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verteilen-core",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "license": "MIT",
5
5
  "homepage": "https://verteilen.github.io/wiki/",
6
6
  "author": "Elly",
@@ -7,9 +7,19 @@
7
7
  * Value override for some base value\
8
8
  * The data structure that use in Vue
9
9
  */
10
- import { Node, Database, Project, Task } from './base'
10
+ import { Node, Database, Project, Task, Job } from './base'
11
11
  import { Plugin, SystemLoad } from './struct'
12
12
 
13
+ /**
14
+ * **UI Database Table Data Structure**\
15
+ * For display the data on the database page
16
+ */
17
+ export interface JobTable extends Job {
18
+ /**
19
+ * **Select State**
20
+ */
21
+ s?: boolean
22
+ }
13
23
  /**
14
24
  * **UI Database Table Data Structure**\
15
25
  * For display the data on the database page
@@ -43,8 +43,8 @@ export const GetCurrentPlugin = async (loader:RecordIOBase):Promise<PluginPageDa
43
43
  plugins: [],
44
44
  templates: []
45
45
  }
46
- const root = loader.join(loader.root, 'template')
47
- const root2 = loader.join(loader.root, 'plugin')
46
+ const root = loader.join(loader.root, 'plugin')
47
+ const root2 = loader.join(loader.root, 'template')
48
48
  if(!loader.exists(root)) await loader.mkdir(root)
49
49
  if(!loader.exists(root2)) await loader.mkdir(root2)
50
50
 
@@ -73,7 +73,7 @@ export const GetCurrentPlugin = async (loader:RecordIOBase):Promise<PluginPageDa
73
73
  })
74
74
  }
75
75
 
76
- const files2 = (await loader.read_dir_dir(root2)).filter(x => x.endsWith('.json'));
76
+ const files2 = (await loader.read_dir_file(root2)).filter(x => x.endsWith('.json'));
77
77
 
78
78
  const p_config2 = files2.map(file => {
79
79
  return loader.read_string(loader.join(root2, file), { encoding: 'utf-8' })