Skip to content

Commit 0bf1973

Browse files
committed
fix: update asset paths in HTML files and improve configuration structure
1 parent cc70b6a commit 0bf1973

11 files changed

Lines changed: 158 additions & 150 deletions

File tree

CoCreate.config.js

Lines changed: 48 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,49 @@
11
module.exports = {
2-
host: {
3-
$branch: {
4-
master: "wss://cocreate.app",
5-
dev: "wss://dev.cocreate.app",
6-
test: "wss://test.cocreate.app"
7-
}
8-
},
9-
directories: [
10-
{
11-
entry: "./src",
12-
array: "files",
13-
object: {
14-
name: "{{name}}",
15-
src: "{{source}}",
16-
host: ["*"],
17-
directory: "/",
18-
path: "{{path}}",
19-
pathname: "{{pathname}}",
20-
"content-type": "{{content-type}}",
21-
public: "true"
22-
}
23-
}
24-
],
25-
sources: [
26-
{
27-
array: "demos",
28-
object: {
29-
_id: "619d495ca8b6b4001a9e6127",
30-
"collaboration-demo": "{{./src/demos/collaboration.html}}"
31-
}
32-
},
33-
{
34-
array: "demos",
35-
object: {
36-
_id: "639b325f6f44f0f162f0bcbf",
37-
"demo-code": "{{./src/demos/demo.html}}"
38-
}
39-
}
40-
]
41-
};
2+
"host": {
3+
"$branch": {
4+
"master": "wss://cocreate.app",
5+
"dev": "wss://dev.cocreate.app",
6+
"test": "wss://test.cocreate.app"
7+
}
8+
},
9+
"directories": [
10+
{
11+
"entry": "./src",
12+
"array": "files",
13+
"exclude": [
14+
"assets"
15+
],
16+
"object": {
17+
"name": "{{name}}",
18+
"src": "{{source}}",
19+
"host": [
20+
"*"
21+
],
22+
"directory": "/",
23+
"path": "{{path}}",
24+
"pathname": "{{pathname}}",
25+
"content-type": "{{content-type}}",
26+
"public": "true"
27+
}
28+
}
29+
],
30+
"sources": [
31+
{
32+
"array": "demos",
33+
"object": {
34+
"_id": "619d495ca8b6b4001a9e6127",
35+
"collaboration-demo": "{{./src/demos/collaboration.html}}"
36+
}
37+
},
38+
{
39+
"array": "demos",
40+
"object": {
41+
"_id": "639b325f6f44f0f162f0bcbf",
42+
"demo-code": "{{./src/demos/demo.html}}"
43+
}
44+
}
45+
],
46+
"configPath": "/home/cocreate/CoCreate/CoCreate-website/CoCreate.config.js",
47+
"filePath": "/home/cocreate/CoCreate/CoCreate-website/src/dist/CoCreate.config.js",
48+
"hideMessage": false
49+
};

src/account/organization/update.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,12 @@
275275
<a id="deleteStorage" actions="save"></a>
276276
</form>
277277
<form>
278-
<input type="text" array="organizations" state_id="accountOrg" object key="_id">
279-
<input type="text" array="users" object="$user_id" key="_id">
278+
<!-- <input type="text" array="organizations" state_id="accountOrg" object key="_id">
279+
<input type="text" array="users" object="$user_id" key="_id"> -->
280280
<!-- <input type="text" array="users" object="$user_id" key="lastname">
281281
<input type="email" array="users" object="$user_id" key="email">
282282
<input type="password" array="users" object="$user_id" key="password"> -->
283-
<button actions="createOrganization">Create</button>
283+
<!-- <button actions="createOrganization">Create</button> -->
284284
</form>
285285
<form>
286286
<input type="text" array="organizations" object key="_id" state_id="accountOrg">

src/admin/databases/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<div
6969
class="display:flex align-items:center gap:10px position:absolute top:10px right:10px">
7070
<a>
71-
<i src="$relativePathassets/svg/clone.svg"></i>
71+
<i src="$relativePath/assets/svg/clone.svg"></i>
7272
</a>
7373
<a
7474
toggle-query="$next"
@@ -77,7 +77,7 @@
7777
click-query="$closest .card textarea"
7878
click-attribute="readonly"
7979
click-value="">
80-
<i src="$relativePathassets/svg/edit.svg"></i>
80+
<i src="$relativePath/assets/svg/edit.svg"></i>
8181
</a>
8282
<span hidden>
8383
<a
@@ -86,7 +86,7 @@
8686
toggle-value=""
8787
click-query="$closest .card textarea"
8888
click-attribute="$save">
89-
<i src="$relativePathassets/svg/save.svg"></i>
89+
<i src="$relativePath/assets/svg/save.svg"></i>
9090
</a>
9191
<a
9292
toggle-query="$closest .card textarea"
@@ -95,7 +95,7 @@
9595
click-query="$parent"
9696
click-attribute="hidden"
9797
click-value="">
98-
<i src="$relativePathassets/svg/ban.svg"></i>
98+
<i src="$relativePath/assets/svg/ban.svg"></i>
9999
</a>
100100
</span>
101101
</div>

0 commit comments

Comments
 (0)