bajo-common-db 0.3.0 → 1.0.2

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.
package/README.md CHANGED
@@ -1 +1,23 @@
1
- # bajo-common-db
1
+ # bajo-common-db
2
+
3
+ Plugin name: **bajoCommonDb**, alias: **cdb**
4
+
5
+ ![GitHub package.json version](https://img.shields.io/github/package-json/v/ardhi/bajo-common-db) ![NPM Version](https://img.shields.io/npm/v/bajo-common-db)
6
+
7
+ > <br />**Attention**: I do NOT accept any pull request at the moment, thanks!<br /><br />
8
+
9
+ Common database for [Bajo](https://github.com/ardhi/bajo)
10
+
11
+ ## Installation
12
+
13
+ Goto your ```<bajo-base-dir>``` and type:
14
+
15
+ ```bash
16
+ $ npm install bajo-common-db
17
+ ```
18
+
19
+ Now open your ```<bajo-data-dir>/config/.plugins``` and put ```bajo-common-db``` in it
20
+
21
+ ## License
22
+
23
+ [MIT](LICENSE)
package/bajo/.alias ADDED
@@ -0,0 +1 @@
1
+ cdb
package/bajo/config.json CHANGED
@@ -1,5 +1,3 @@
1
1
  {
2
- "alias": "cdb",
3
- "title": "Common Database",
4
- "dependencies": []
2
+ "title": "Common Database"
5
3
  }
@@ -0,0 +1,11 @@
1
+ {
2
+ "field": {
3
+ "iso3": "ISO 3",
4
+ "phoneCode": "Phone Code",
5
+ "capital": "Capital",
6
+ "currency": "Currency",
7
+ "mmsi": "MMSI",
8
+ "ioc": "IOC",
9
+ "bbox": "Bounding Box"
10
+ }
11
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "field": {
3
+ "iso3": "ISO 3",
4
+ "phoneCode": "Kode Telpon",
5
+ "capital": "Ibukota",
6
+ "currency": "Mata Uang",
7
+ "mmsi": "MMSI",
8
+ "mids": "MIDS",
9
+ "ioc": "IOC",
10
+ "bbox": "Kotak Batas"
11
+ }
12
+ }
@@ -1,7 +1,12 @@
1
1
  {
2
- "collName": "country",
3
2
  "connection": "memory",
4
3
  "properties": [{
4
+ "name": "id",
5
+ "type": "string",
6
+ "length": 2,
7
+ "required": true,
8
+ "index": "primary"
9
+ }, {
5
10
  "name": "name",
6
11
  "type": "string",
7
12
  "length": 255,
@@ -26,18 +31,18 @@
26
31
  "type": "string",
27
32
  "length": 20,
28
33
  "index": true
29
- }, {
30
- "name": "mmsi",
31
- "type": "array"
32
34
  }, {
33
35
  "name": "ioc",
34
36
  "type": "string",
35
37
  "length": 20,
36
38
  "index": true
39
+ }, {
40
+ "name": "mids",
41
+ "type": "array"
37
42
  }, {
38
43
  "name": "bbox",
39
44
  "type": "array"
40
45
  }],
41
- "readonly": true,
46
+ "disabled": "readonly",
42
47
  "attachment": false
43
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo-common-db",
3
- "version": "0.3.0",
3
+ "version": "1.0.2",
4
4
  "description": "Common Database for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,8 +23,5 @@
23
23
  "bugs": {
24
24
  "url": "https://github.com/ardhi/bajo-common-db/issues"
25
25
  },
26
- "homepage": "https://github.com/ardhi/bajo-common-db#readme",
27
- "dependencies": {
28
- "kea-nmea": "^0.1.1"
29
- }
26
+ "homepage": "https://github.com/ardhi/bajo-common-db#readme"
30
27
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "coll": "CdbCountry",
2
+ "model": "CdbCountry",
3
3
  "disabled": ["create", "update", "remove"]
4
4
  }
@@ -1,8 +0,0 @@
1
- {
2
- "view": {
3
- "list": {
4
- "hidden": ["level", "bookId", "meta"],
5
- "defSort": "id:1"
6
- }
7
- }
8
- }
File without changes
File without changes
File without changes