@things-factory/dashboard 7.0.1-alpha.9 → 7.0.1-alpha.90

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.
Files changed (50) hide show
  1. package/client/actions/{board-settings.js → board-settings.ts} +3 -2
  2. package/client/{bootstrap.js → bootstrap.ts} +2 -2
  3. package/client/{const.js → const.ts} +1 -1
  4. package/client/index.ts +1 -0
  5. package/client/pages/{dashboard.js → dashboard.ts} +25 -22
  6. package/client/tsconfig.json +11 -0
  7. package/client/viewparts/{dashboard-setting-let.js → dashboard-setting-let.ts} +104 -115
  8. package/dist-client/actions/board-settings.d.ts +3 -0
  9. package/dist-client/actions/board-settings.js +29 -0
  10. package/dist-client/actions/board-settings.js.map +1 -0
  11. package/dist-client/actions/index.d.ts +1 -0
  12. package/dist-client/actions/index.js +2 -0
  13. package/dist-client/actions/index.js.map +1 -0
  14. package/dist-client/bootstrap.d.ts +2 -0
  15. package/dist-client/bootstrap.js +31 -0
  16. package/dist-client/bootstrap.js.map +1 -0
  17. package/dist-client/const.d.ts +5 -0
  18. package/dist-client/const.js +6 -0
  19. package/dist-client/const.js.map +1 -0
  20. package/dist-client/index.d.ts +1 -0
  21. package/dist-client/index.js +2 -0
  22. package/dist-client/index.js.map +1 -0
  23. package/dist-client/pages/dashboard.d.ts +21 -0
  24. package/dist-client/pages/dashboard.js +97 -0
  25. package/dist-client/pages/dashboard.js.map +1 -0
  26. package/dist-client/reducers/board-settings.d.ts +2 -0
  27. package/dist-client/reducers/board-settings.js +14 -0
  28. package/dist-client/reducers/board-settings.js.map +1 -0
  29. package/dist-client/route.d.ts +1 -0
  30. package/dist-client/route.js +10 -0
  31. package/dist-client/route.js.map +1 -0
  32. package/dist-client/tsconfig.tsbuildinfo +1 -0
  33. package/dist-client/viewparts/dashboard-setting-let.d.ts +26 -0
  34. package/dist-client/viewparts/dashboard-setting-let.js +219 -0
  35. package/dist-client/viewparts/dashboard-setting-let.js.map +1 -0
  36. package/dist-server/index.js +0 -1
  37. package/dist-server/index.js.map +1 -1
  38. package/dist-server/tsconfig.tsbuildinfo +1 -1
  39. package/package.json +14 -12
  40. package/server/index.ts +0 -1
  41. package/server/tsconfig.json +10 -0
  42. package/things-factory.config.js +2 -2
  43. package/client/index.js +0 -1
  44. package/dist-server/migrations/index.js +0 -12
  45. package/dist-server/migrations/index.js.map +0 -1
  46. package/server/migrations/index.ts +0 -9
  47. package/tsconfig.json +0 -9
  48. /package/client/actions/{index.js → index.ts} +0 -0
  49. /package/client/reducers/{board-settings.js → board-settings.ts} +0 -0
  50. /package/client/{route.js → route.ts} +0 -0
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@things-factory/dashboard",
3
- "version": "7.0.1-alpha.9",
3
+ "version": "7.0.1-alpha.90",
4
4
  "main": "dist-server/index.js",
5
- "browser": "client/index.js",
5
+ "browser": "dist-client/index.js",
6
6
  "things-factory": true,
7
7
  "author": "heartyoh <heartyoh@hatiolab.com>",
8
8
  "description": "module for dashboard management",
@@ -17,17 +17,19 @@
17
17
  "directory": "packages/dashboard"
18
18
  },
19
19
  "scripts": {
20
- "build": "tsc --p tsconfig.json",
21
- "build:server": "npm run clean:server && tsc",
22
- "clean:server": "rm -rf dist-server",
23
- "clean": "npm run clean:server",
24
- "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
20
+ "build": "npm run build:server && npm run build:client",
21
+ "copy:files": "copyfiles -e \"./client/**/*.{ts,js,json}\" -u 1 \"./client/**/*\" dist-client",
22
+ "build:client": "npm run copy:files && npx tsc --p ./client/tsconfig.json",
23
+ "build:server": "npx tsc --p ./server/tsconfig.json",
24
+ "clean:client": "npx rimraf dist-client",
25
+ "clean:server": "npx rimraf dist-server",
26
+ "clean": "npm run clean:server && npm run clean:client"
25
27
  },
26
28
  "dependencies": {
27
- "@things-factory/auth-base": "^7.0.1-alpha.9",
28
- "@things-factory/board-service": "^7.0.1-alpha.9",
29
- "@things-factory/board-ui": "^7.0.1-alpha.9",
30
- "@things-factory/setting-base": "^7.0.1-alpha.9"
29
+ "@things-factory/auth-base": "^7.0.1-alpha.90",
30
+ "@things-factory/board-service": "^7.0.1-alpha.90",
31
+ "@things-factory/board-ui": "^7.0.1-alpha.90",
32
+ "@things-factory/setting-base": "^7.0.1-alpha.90"
31
33
  },
32
- "gitHead": "e77082517f5483704f1e884cbc81b7f94c0eec15"
34
+ "gitHead": "79086a82c81dadca6c105a37fa91a2cd34a74183"
33
35
  }
package/server/index.ts CHANGED
@@ -1,2 +1 @@
1
1
  export * from './service'
2
- export * from './migrations'
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "../../tsconfig-base.json",
3
+ "compilerOptions": {
4
+ "strict": false,
5
+ "module": "commonjs",
6
+ "outDir": "../dist-server",
7
+ "baseUrl": "./"
8
+ },
9
+ "include": ["./**/*"]
10
+ }
@@ -1,5 +1,5 @@
1
- import route from './client/route'
2
- import bootstrap from './client/bootstrap'
1
+ import route from './dist-client/route'
2
+ import bootstrap from './dist-client/bootstrap'
3
3
 
4
4
  export default {
5
5
  route,
package/client/index.js DELETED
@@ -1 +0,0 @@
1
- export * from './actions'
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.migrations = void 0;
4
- const glob = require('glob');
5
- const path = require('path');
6
- exports.migrations = [];
7
- glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function (file) {
8
- if (file.indexOf('index.js') !== -1)
9
- return;
10
- exports.migrations = exports.migrations.concat(Object.values(require(path.resolve(file))) || []);
11
- });
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/migrations/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAEjB,QAAA,UAAU,GAAG,EAAE,CAAA;AAE1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,UAAS,IAAI;IACzE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAAE,OAAM;IAC3C,kBAAU,GAAG,kBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;AAClF,CAAC,CAAC,CAAA","sourcesContent":["const glob = require('glob')\nconst path = require('path')\n\nexport var migrations = []\n\nglob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function(file) {\n if (file.indexOf('index.js') !== -1) return\n migrations = migrations.concat(Object.values(require(path.resolve(file))) || [])\n})\n"]}
@@ -1,9 +0,0 @@
1
- const glob = require('glob')
2
- const path = require('path')
3
-
4
- export var migrations = []
5
-
6
- glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function(file) {
7
- if (file.indexOf('index.js') !== -1) return
8
- migrations = migrations.concat(Object.values(require(path.resolve(file))) || [])
9
- })
package/tsconfig.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "../tsconfig-base.json",
3
- "compilerOptions": {
4
- "outDir": "./dist-server",
5
- "baseUrl": "./"
6
- },
7
- "include": ["./server/**/*"],
8
- "exclude": ["**/*.spec.ts"]
9
- }
File without changes
File without changes