@cocreate/socket-server 1.1.3 → 1.1.7

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/CHANGELOG.md CHANGED
@@ -0,0 +1,27 @@
1
+ ## [1.1.7](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.1.6...v1.1.7) (2021-11-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update .gitignore ([2783c9a](https://github.com/CoCreate-app/CoCreate-socket-server/commit/2783c9a464bf0c930099d9ac0ca65a8a5f7ab41c))
7
+
8
+ ## [1.1.6](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.1.5...v1.1.6) (2021-11-01)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add apikey.js ([9d73042](https://github.com/CoCreate-app/CoCreate-socket-server/commit/9d73042e5e0e274b990d1a76a0de0e5fed7bea74))
14
+
15
+ ## [1.1.5](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.1.4...v1.1.5) (2021-08-13)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * filetodb consolelog and data- removed ([2a5e351](https://github.com/CoCreate-app/CoCreate-socket-server/commit/2a5e351967eb48a7437a00a85f7a3f88d08b8f07))
21
+
22
+ ## [1.1.4](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.1.3...v1.1.4) (2021-07-28)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * removed data- from crud, fetch, filter and pass attributes ([54d593a](https://github.com/CoCreate-app/CoCreate-socket-server/commit/54d593ab4fc2d71e04ca52e154260808e45194c8))
package/docs/index.html CHANGED
@@ -24,17 +24,17 @@
24
24
  </head>
25
25
 
26
26
  <body>
27
- <div data-collection="" data-document_id="" name="" id="cocreate-socket-server">
27
+ <div collection="" document_id="" name="" id="cocreate-socket-server">
28
28
  <div class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
29
29
  <div class="display:flex align-items:center">
30
30
  <h2>CoCreate-socket-server</h2>
31
31
  </div>
32
- <div class="display:flex align-items:center font-size:20px social_share" data-height="600" data-width="500" data-media="https://via.placeholder.com/300/09f/fff.png">
32
+ <div class="display:flex align-items:center font-size:20px" share-height="600" share-width="500" share-media="https://via.placeholder.com/300/09f/fff.png">
33
33
  <a href="https://github.com/CoCreate-app/CoCreate-socket-server" target="_blank" class="margin-right:15px"><i class="fab fa-github"></i></a>
34
- <a class="margin-right:15px share" data-network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
35
- <a class="margin-right:15px share" data-network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
36
- <a class="margin-right:15px share" data-network='instagram' title="Share on instagram"><i class="fab fa-instagram"></i></a>
37
- <a class="margin-right:15px share" data-network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
34
+ <a class="margin-right:15px share" share-network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
35
+ <a class="margin-right:15px share" share-network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
36
+ <a class="margin-right:15px share" share-network='instagram' title="Share on instagram"><i class="fab fa-instagram"></i></a>
37
+ <a class="margin-right:15px share" share-network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
38
38
  </div>
39
39
  </div>
40
40
  <p class="max-width:500px margin:20px_10px">A simple HTML5, CSS and pure javascript component. Easy configuration using data-attributes and highly styleable.</h1>
@@ -57,11 +57,11 @@
57
57
  <h2 class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">Attributes</h2>
58
58
  <ul class="list-style-type:none ">
59
59
  <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
60
- <h4><span>data-socket-server</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
60
+ <h4><span>socket-server</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
61
61
  <p>socket-server-attribute</p>
62
62
  </li>
63
63
  <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
64
- <h4><span>data-socket-server</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
64
+ <h4><span>socket-server</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
65
65
  <p>socket-server-attribute</p>
66
66
  </li>
67
67
  </ul>
@@ -73,23 +73,23 @@
73
73
  <div class="position:sticky top:0 padding:10px_0px height:100vh">
74
74
  <div class="container svColumn overflow:hidden card border-radius:2px width:auto height:100%" id="sandbox">
75
75
  <div class="font-size:20px position:absolute top:10px right:10px opacity:0.6 z-index:7">
76
- <a class="margin-right:10px" id="preview" data-show="preview" data-hide="code"><i class="far fa-eye"></i></a>
77
- <a class="margin-right:10px hidden" id="code" data-show="code" data-hide="preview"><i class="fas fa-code"></i></a>
76
+ <a class="margin-right:10px" id="preview" show="preview" hide="code"><i class="far fa-eye"></i></a>
77
+ <a class="margin-right:10px hidden" id="code" show="code" hide="preview"><i class="fas fa-code"></i></a>
78
78
  <!--<a class="margin-right:10px"><i class="far fa-window-maximize"></i></a>-->
79
79
  <a target="modal" href="module_activity_datatable.html"
80
- data-pass_collection="modules"
81
- data-pass_document_id=""
82
- data-pass_fetch_value=""
83
- data-pass_prefix=""
84
- data-pass_to="render"
85
- data-modal_width="600px"
86
- data-modal_height="400px"
87
- data-modal_color="#229954"
88
- data-modal_header="false"
80
+ pass-collection="modules"
81
+ pass-document_id=""
82
+ pass-fetch_value=""
83
+ pass-prefix=""
84
+ pass-to="render"
85
+ modal-width="600px"
86
+ modal-height="400px"
87
+ modal-color="#229954"
88
+ modal-header="false"
89
89
  class="margin-right:10px">
90
90
  <i class="fas fa-external-link-alt"></i>
91
91
  </a>
92
- <a class="fs-toggle margin-right:5px" data-fullscreen target="#sandbox"><i class="fas fa-expand"></i></a>
92
+ <a class="fs-toggle margin-right:5px" fullscreen target="#sandbox"><i class="fas fa-expand"></i></a>
93
93
  </div>
94
94
 
95
95
  <div class="svRow">
@@ -97,9 +97,9 @@
97
97
  <div class="svColumn">
98
98
 
99
99
  <div class="svPanel">
100
- <div data-realtime="false"
101
- data-collection="modules"
102
- data-document_id="5eefe30952c6e94c75fb5e3f"
100
+ <div realtime="false"
101
+ collection="modules"
102
+ document_id="5eefe30952c6e94c75fb5e3f"
103
103
  name="html"
104
104
  id="7"
105
105
  class="codemirror height:100% min-width:300px">
@@ -108,7 +108,7 @@
108
108
  <div class="svSplitter svHorizontal"> </div>
109
109
 
110
110
  <div class="svPanel">
111
- <iframe data-get_value="7" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
111
+ <iframe get-value="7" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
112
112
  </div>
113
113
 
114
114
  </div>
@@ -120,21 +120,7 @@
120
120
 
121
121
  </div>
122
122
  </div>
123
- <script>
124
- var config = {
125
- apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
126
- securityKey: 'f26baf68-e3a9-45fc-effe-502e47116265',
127
- organization_Id: '5de0387b12e200ea63204d6c'
128
- }
129
- </script>
130
-
131
- <!--CoCreateJS-->
132
- <script src="https://server.cocreate.app/js/CoCreate.min.js"></script>
133
-
134
- <!-- CoCreate CodeMiirror -->
135
- <script type="text/javascript" src="https://server.cocreate.app/CoCreate-plugins/CoCreate-codemirror/dist/CoCreate-codemirror.js" async></script>
136
-
137
- <!-- Prism -->
138
- <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.21.0/prism.min.js"></script>
123
+ <script src="/apikey.js"></script>
124
+ <script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
139
125
  </body>
140
126
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/socket-server",
3
- "version": "1.1.3",
3
+ "version": "1.1.7",
4
4
  "description": "CoCreate-socket-server",
5
5
  "keywords": [
6
6
  "cocreate-socket",
@@ -0,0 +1,22 @@
1
+ module.exports = {
2
+ dryRun: false,
3
+ branches: ["master"],
4
+ plugins: [
5
+ "@semantic-release/commit-analyzer",
6
+ "@semantic-release/release-notes-generator",
7
+ [
8
+ "@semantic-release/changelog",
9
+ {
10
+ changelogFile: "CHANGELOG.md",
11
+ },
12
+ ],
13
+ "@semantic-release/npm",
14
+ "@semantic-release/github",
15
+ [
16
+ "@semantic-release/git",
17
+ {
18
+ assets: ["CHANGELOG.md", "package.json"],
19
+ },
20
+ ],
21
+ ],
22
+ };
package/src/index.js CHANGED
@@ -134,9 +134,11 @@ class SocketServer extends EventEmitter{
134
134
  async onMessage(req, ws, message, roomInfo) {
135
135
  try {
136
136
  this.recordTransfer('in', message, roomInfo.orgId)
137
-
137
+
138
+ // ToDo remove
138
139
  if (message instanceof Buffer) {
139
- this.emit('importFile2DB', ws, message, roomInfo)
140
+ this.emit('importFile2DB', ws, message, roomInfo);
141
+ console.log('importFile2DB', ws, message, roomInfo);
140
142
  return;
141
143
  }
142
144