harperdb 4.5.9 → 4.5.11

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 (84) hide show
  1. package/README.md +1 -1
  2. package/application-template/README.md +26 -8
  3. package/application-template/config.yaml +18 -15
  4. package/application-template/web/index.html +29 -0
  5. package/application-template/web/index.js +18 -0
  6. package/application-template/web/styles.css +57 -0
  7. package/bin/harperdb.js +66 -66
  8. package/bin/lite.js +61 -61
  9. package/launchServiceScripts/launchNatsIngestService.js +63 -63
  10. package/launchServiceScripts/launchNatsReplyService.js +61 -61
  11. package/launchServiceScripts/launchUpdateNodes4-0-0.js +61 -61
  12. package/npm-shrinkwrap.json +286 -285
  13. package/package.json +1 -1
  14. package/resources/Resources.d.ts +3 -1
  15. package/server/Server.d.ts +2 -0
  16. package/server/jobs/jobProcess.js +63 -63
  17. package/server/threads/threadServer.js +61 -61
  18. package/studio/build-local/asset-manifest.json +33 -33
  19. package/studio/build-local/index.html +1 -1
  20. package/studio/build-local/static/js/833.fbb1857f.chunk.js +1 -0
  21. package/studio/build-local/static/js/{504.6e6ee908.chunk.js → 845.79392583.chunk.js} +2 -2
  22. package/studio/build-local/static/js/browse-csvupload.2a02693a.chunk.js +1 -0
  23. package/studio/build-local/static/js/browse-datatable.dc2a41ee.chunk.js +1 -0
  24. package/studio/build-local/static/js/browse-entitymanager.78d9f3cf.chunk.js +1 -0
  25. package/studio/build-local/static/js/browse-jsonviewer.b9b13d1d.chunk.js +1 -0
  26. package/studio/build-local/static/js/custom-functions.5e20728d.chunk.js +1 -0
  27. package/studio/build-local/static/js/instance-cluster.7fa04087.chunk.js +1 -0
  28. package/studio/build-local/static/js/instance-config.cab20f8e.chunk.js +1 -0
  29. package/studio/build-local/static/js/instance-logs.c590cea3.chunk.js +1 -0
  30. package/studio/build-local/static/js/instance-roles.02c01413.chunk.js +1 -0
  31. package/studio/build-local/static/js/{instance-status.192a5e2f.chunk.js → instance-status.872064e6.chunk.js} +1 -1
  32. package/studio/build-local/static/js/instance-users-datatable.eaa7f9f0.chunk.js +1 -0
  33. package/studio/build-local/static/js/instance-users-edit.b3009a22.chunk.js +1 -0
  34. package/studio/build-local/static/js/instance-users.d4c9a21b.chunk.js +1 -0
  35. package/studio/build-local/static/js/instance.77a6105d.chunk.js +1 -0
  36. package/studio/build-local/static/js/instances.803ec44d.chunk.js +1 -0
  37. package/studio/build-local/static/js/main.0b2d36d7.js +2 -0
  38. package/studio/build-local/static/js/offline-app.e75335f8.chunk.js +1 -0
  39. package/studio/build-local/static/js/online-app.161383cc.chunk.js +1 -0
  40. package/studio/build-local/static/js/organization-billing.8a6543c9.chunk.js +1 -0
  41. package/studio/build-local/static/js/organization-users.28a7fddd.chunk.js +1 -0
  42. package/studio/build-local/static/js/organization.7e6de94f.chunk.js +1 -0
  43. package/studio/build-local/static/js/organizations.a35fef39.chunk.js +1 -0
  44. package/studio/build-local/static/js/profile.ec638faf.chunk.js +1 -0
  45. package/studio/build-local/static/js/resetPassword.c64684e3.chunk.js +1 -0
  46. package/studio/build-local/static/js/roles-jsonviewer.28347efe.chunk.js +1 -0
  47. package/studio/build-local/static/js/signIn.95abea6a.chunk.js +1 -0
  48. package/studio/build-local/static/js/signUp.a095114b.chunk.js +1 -0
  49. package/studio/build-local/static/js/structure-reloader.89712250.chunk.js +1 -0
  50. package/studio/build-local/static/js/topnav.6ac108a6.chunk.js +1 -0
  51. package/studio/build-local/static/js/updatePassword.839328e6.chunk.js +1 -0
  52. package/utility/scripts/restartHdb.js +63 -63
  53. package/studio/build-local/static/js/833.e460eaf4.chunk.js +0 -1
  54. package/studio/build-local/static/js/browse-csvupload.84fd1ae9.chunk.js +0 -1
  55. package/studio/build-local/static/js/browse-datatable.21e650e1.chunk.js +0 -1
  56. package/studio/build-local/static/js/browse-entitymanager.4547c0d8.chunk.js +0 -1
  57. package/studio/build-local/static/js/browse-jsonviewer.71355c20.chunk.js +0 -1
  58. package/studio/build-local/static/js/custom-functions.31d65bca.chunk.js +0 -1
  59. package/studio/build-local/static/js/instance-cluster.031dcced.chunk.js +0 -1
  60. package/studio/build-local/static/js/instance-config.9a23d6ae.chunk.js +0 -1
  61. package/studio/build-local/static/js/instance-logs.fdaf96ec.chunk.js +0 -1
  62. package/studio/build-local/static/js/instance-roles.984ced56.chunk.js +0 -1
  63. package/studio/build-local/static/js/instance-users-datatable.40846e47.chunk.js +0 -1
  64. package/studio/build-local/static/js/instance-users-edit.f10344c8.chunk.js +0 -1
  65. package/studio/build-local/static/js/instance-users.adc43a74.chunk.js +0 -1
  66. package/studio/build-local/static/js/instance.9689d62b.chunk.js +0 -1
  67. package/studio/build-local/static/js/instances.f28e5ce7.chunk.js +0 -1
  68. package/studio/build-local/static/js/main.491129ee.js +0 -2
  69. package/studio/build-local/static/js/offline-app.5bc1159b.chunk.js +0 -1
  70. package/studio/build-local/static/js/online-app.22102869.chunk.js +0 -1
  71. package/studio/build-local/static/js/organization-billing.56e7e051.chunk.js +0 -1
  72. package/studio/build-local/static/js/organization-users.b46b9e8f.chunk.js +0 -1
  73. package/studio/build-local/static/js/organization.eab64d57.chunk.js +0 -1
  74. package/studio/build-local/static/js/organizations.4567ae59.chunk.js +0 -1
  75. package/studio/build-local/static/js/profile.d45cd6b3.chunk.js +0 -1
  76. package/studio/build-local/static/js/resetPassword.812fc880.chunk.js +0 -1
  77. package/studio/build-local/static/js/roles-jsonviewer.73c8bb9d.chunk.js +0 -1
  78. package/studio/build-local/static/js/signIn.32766fa9.chunk.js +0 -1
  79. package/studio/build-local/static/js/signUp.07fd6662.chunk.js +0 -1
  80. package/studio/build-local/static/js/structure-reloader.ce2b39d2.chunk.js +0 -1
  81. package/studio/build-local/static/js/topnav.e661156c.chunk.js +0 -1
  82. package/studio/build-local/static/js/updatePassword.dcac970c.chunk.js +0 -1
  83. /package/studio/build-local/static/js/{504.6e6ee908.chunk.js.LICENSE.txt → 845.79392583.chunk.js.LICENSE.txt} +0 -0
  84. /package/studio/build-local/static/js/{main.491129ee.js.LICENSE.txt → main.0b2d36d7.js.LICENSE.txt} +0 -0
package/README.md CHANGED
@@ -66,4 +66,4 @@ harperdb
66
66
  Harper will prompt you for configuration options during install, and then automatically start after install.
67
67
 
68
68
  ---
69
- 0cb5dbf3500f59efb0c7c7e2ecb27c9103a89031
69
+ c0dd17d17c7a49f9c398b3b55a0cc73e652e7fa4
@@ -1,15 +1,33 @@
1
- # HarperDB Application Template
1
+ # Harper Application Template
2
2
 
3
- This is a template for building [HarperDB](https://www.harperdb.io/) applications. You can download this repository as a starting point for building applications with HarperDB. To get started, make sure you have [installed HarperDB](https://docs.harperdb.io/docs/install-harperdb), which can be quickly done with `npm install -g harperdb`. You can run your application from the directory where you downloaded the contents of this repository with:
3
+ This is a template for building [Harper](https://www.harpersystems.dev/) applications. You can download this repository as a starting point for building applications with Harper.
4
4
 
5
- `harperdb run /path/to/your-app`
5
+ To get started, make sure you have [installed Harper](https://docs.harperdb.io/docs/deployments/install-harper), which can be quickly done with `npm install -g harperdb`.
6
6
 
7
- (or if you enter that directory, you can run the current directory as `harperdb run .`).
7
+ You can run your application from the directory where you downloaded the contents of this repository with: `harperdb run /path/to/your-app`.
8
8
 
9
- For more information about getting started with HarperDB and building applications, see our getting started guide.
9
+ Or if you set your current working directory to that directory, you can run it as `harperdb run .`.
10
10
 
11
- This template includes the [default configuration](./config.yaml), which specifies how files are handled in your application.
11
+ Once running, test your application works by querying the `/Greeting` endpoint:
12
12
 
13
- The [schema.graphql](./schema.graphql) is the schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
13
+ ```sh
14
+ curl http://localhost:9926/Greeting
15
+ ```
14
16
 
15
- The [resources.js](./resources.js) provides a template for defining JavaScript resource classes, for customized application logic in your endpoints.
17
+ Should result in:
18
+
19
+ ```json
20
+ {"greeting":"Hello, world!"}
21
+ ```
22
+
23
+ Or navigate to [http://localhost:9926](http://localhost:9926) in a browser and view the functional web application.
24
+
25
+ For more information about getting started with HarperDB and building applications, see our [getting started guide](https://docs.harperdb.io/docs/getting-started).
26
+
27
+ For more information on Harper Components, see the [Components documentation](https://docs.harperdb.io/docs/developers/components).
28
+
29
+ This template includes a [default configuration](./config.yaml), which specifies how files are handled in your application.
30
+
31
+ The [schema.graphql](./schema.graphql) is the table schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
32
+
33
+ The [resources.js](./resources.js) provides a template for defining JavaScript resource classes, for customized application logic in your endpoints.
@@ -1,15 +1,18 @@
1
- # This defines the configuration of this application. Each defines a (sub) component that is loaded and
2
- # used for this application. These components can provide specific functionality and define how different
3
- # files in your app are loaded.
4
- rest: true # This provides the HTTP REST interface for all exported resources
5
- graphqlSchema: # These reads GraphQL schemas to define the schema of database/tables/attributes.
6
- files: '*.graphql' # looks for these files
7
- # path: / # exported queries are on the root path by default
8
- jsResource: # Loads JavaScript modules such that their exports are exported as resources
9
- files: resources.js # the entry module for resources
10
- # path: / # exported resources are on the root path by default, like http://server/resource-name
11
- static: # This allows static files to be directly accessible
12
- root: web
13
- files: web/**
14
- roles: # This can define the roles that are used in the application
15
- files: roles.yaml
1
+ # This is the configuration file for the application.
2
+ # It specifies built-in Harper components that will load the specified feature and files.
3
+ # For more information, see https://docs.harperdb.io/docs/developers/components/built-in
4
+
5
+ # This provides the HTTP REST interface for all exported resources
6
+ rest: true
7
+
8
+ # These reads GraphQL schemas to define the schema of database/tables/attributes.
9
+ graphqlSchema:
10
+ files: 'schema.graphql'
11
+
12
+ # Loads JavaScript modules such that their exports are exported as resources
13
+ jsResource:
14
+ files: 'resources.js'
15
+
16
+ # Serve the static files from the web directory as a web application
17
+ static:
18
+ files: 'web/*'
@@ -0,0 +1,29 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Harper Application Template</title>
7
+ <link rel="stylesheet" href="styles.css" />
8
+ </head>
9
+ <body>
10
+ <main>
11
+ <h1>Harper Application Template</h1>
12
+ <p>
13
+ This is an example of serving static assets using the built-in
14
+ <a
15
+ href="https://docs.harperdb.io/docs/developers/components/built-in#static"
16
+ >static component</a
17
+ >. <br />
18
+ You can use this component to serve web applications!
19
+ </p>
20
+ <div>
21
+ <p class="count" id="count">0</p>
22
+ <button class="decrement" id="decrement">-</button>
23
+ <button class="increment" id="increment">+</button>
24
+ </div>
25
+ </main>
26
+
27
+ <script src="index.js"></script>
28
+ </body>
29
+ </html>
@@ -0,0 +1,18 @@
1
+ let count = 0;
2
+ const counterDisplay = document.getElementById('count');
3
+ const decrementButton = document.getElementById('decrement');
4
+ const incrementButton = document.getElementById('increment');
5
+
6
+ function updateDisplay() {
7
+ counterDisplay.textContent = count;
8
+ }
9
+
10
+ decrementButton.addEventListener('click', () => {
11
+ count--;
12
+ updateDisplay();
13
+ });
14
+
15
+ incrementButton.addEventListener('click', () => {
16
+ count++;
17
+ updateDisplay();
18
+ });
@@ -0,0 +1,57 @@
1
+ body {
2
+ font-family: Arial, sans-serif;
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ height: 100vh;
7
+ margin: 0;
8
+ background-color: #f5f5f5;
9
+ }
10
+
11
+ main {
12
+ text-align: center;
13
+ background-color: white;
14
+ padding: 2rem;
15
+ border-radius: 8px;
16
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
17
+ }
18
+
19
+ .count {
20
+ font-size: 4rem;
21
+ margin: 1rem 0;
22
+ color: #333;
23
+ }
24
+
25
+ .counter-controls {
26
+ display: flex;
27
+ justify-content: center;
28
+ gap: 1rem;
29
+ }
30
+
31
+ button {
32
+ font-size: 1.5rem;
33
+ width: 3rem;
34
+ height: 3rem;
35
+ border: none;
36
+ border-radius: 50%;
37
+ cursor: pointer;
38
+ transition: background-color 0.2s;
39
+ }
40
+
41
+ .decrement {
42
+ background-color: #ff6b6b;
43
+ color: white;
44
+ }
45
+
46
+ .decrement:hover {
47
+ background-color: #ff5252;
48
+ }
49
+
50
+ .increment {
51
+ background-color: #4ecdc4;
52
+ color: white;
53
+ }
54
+
55
+ .increment:hover {
56
+ background-color: #39b2a9;
57
+ }