Skip to content

Commit f3768a6

Browse files
committedMay 12, 2022
Simplified boilerplate
1 parent 7f0ba39 commit f3768a6

File tree

6 files changed

+24
-26
lines changed

6 files changed

+24
-26
lines changed
 

‎client/main.js

-9
This file was deleted.

‎package.json

-7
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,5 @@
1111
"@babel/runtime": "^7.15.4",
1212
"jquery": "^3.6.0",
1313
"meteor-node-stubs": "^1.2.1"
14-
},
15-
"meteor": {
16-
"mainModule": {
17-
"client": "client/main.js",
18-
"server": "server/main.js"
19-
},
20-
"testModule": "tests/main.js"
2114
}
2215
}

‎server/main.js

-5
This file was deleted.

‎client/main.css ‎src/main.css

File renamed without changes.

‎client/main.html ‎src/main.html

+10-5
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99
<template name="appBlock">
1010
<x3d id="x3d">
1111
<scene>
12-
<!-- Camera -->
13-
<viewpoint position="8.19 12.33 19.5" orientation="-0.834 0.55 0 0.65"></viewpoint>
14-
<navigationinfo type="turntable" headlight="true"></navigationinfo>
15-
1612
<!-- Floor -->
17-
<transform rotation="-1.5707963267948966 0 0 1.5707963267948966">
13+
<transform>
1814
<shape>
1915
<appearance>
2016
<material diffuseColor="#4A9"></material>
@@ -23,6 +19,15 @@
2319
</shape>
2420
</transform>
2521

22+
<!-- Cube -->
23+
<transform translation="0 0 0">
24+
<shape>
25+
<appearance>
26+
<material diffuseColor="1 0 0"></material>
27+
</appearance>
28+
<box size="1 1 1"></box>
29+
</shape>
30+
</transform>
2631
</scene>
2732
</x3d>
2833
</template>

‎src/main.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Meteor } from 'meteor/meteor';
2+
import { Template } from 'meteor/templating';
3+
4+
if (Meteor.isClient) {
5+
Template.appBlock.onCreated(function() { });
6+
7+
Template.appBlock.helpers({ });
8+
9+
Template.appBlock.events({ });
10+
}
11+
12+
if (Meteor.isServer) {
13+
14+
}

0 commit comments

Comments
 (0)
Please sign in to comment.