switched to meteor.js for cloud solution
This commit is contained in:
25
app/client/app.html
Normal file
25
app/client/app.html
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>TFM</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="Amir Smajevic, Adnan Strojil, Senad Uka">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li role="presentation" class="active"><a href="#">Početak</a></li>
|
||||
<li role="presentation"><a href="#">Novosti</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="hello">
|
||||
{{> display}}
|
||||
</div>
|
||||
</div> <!-- /container -->
|
||||
|
||||
</body>
|
||||
17
app/client/app.js
Normal file
17
app/client/app.js
Normal file
@@ -0,0 +1,17 @@
|
||||
if (Meteor.isClient) {
|
||||
|
||||
Template.display.helpers({
|
||||
temperatures: function () {
|
||||
return Temperatures.find({}, {sort: {created_at: -1}})
|
||||
}
|
||||
});
|
||||
|
||||
Template.display.events({
|
||||
});
|
||||
|
||||
Template.temperature.helpers({
|
||||
created_at_formatted: function() {
|
||||
return moment(this.created_at).format("DD.MM.YYYY, HH:MM")
|
||||
}
|
||||
});
|
||||
}
|
||||
4
app/client/app.less
Normal file
4
app/client/app.less
Normal file
@@ -0,0 +1,4 @@
|
||||
.hello {
|
||||
padding: 40px 15px;
|
||||
text-align: center;
|
||||
}
|
||||
68
app/client/bootstrap-settings.json
Normal file
68
app/client/bootstrap-settings.json
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"less": {
|
||||
"customVariables": false,
|
||||
|
||||
"exposeMixins": false,
|
||||
|
||||
"compile": true,
|
||||
|
||||
"modules": {
|
||||
"alerts": true,
|
||||
"badges": true,
|
||||
"breadcrumbs": true,
|
||||
"button-groups": true,
|
||||
"buttons": true,
|
||||
"carousel": true,
|
||||
"close": true,
|
||||
"code": true,
|
||||
"component-animations": true,
|
||||
"dropdowns": true,
|
||||
"forms": true,
|
||||
"glyphicons": true,
|
||||
"grid": true,
|
||||
"input-groups": true,
|
||||
"jumbotron": true,
|
||||
"labels": true,
|
||||
"list-group": true,
|
||||
"media": true,
|
||||
"modals": true,
|
||||
"navbar": true,
|
||||
"navs": true,
|
||||
"normalize": true,
|
||||
"pager": true,
|
||||
"pagination": true,
|
||||
"panels": true,
|
||||
"popovers": true,
|
||||
"print": true,
|
||||
"progress-bars": true,
|
||||
"responsive-embed": true,
|
||||
"responsive-utilities": true,
|
||||
"scaffolding": true,
|
||||
"tables": true,
|
||||
"thumbnails": true,
|
||||
"tooltip": true,
|
||||
"type": true,
|
||||
"utilities": true,
|
||||
"wells": true
|
||||
}
|
||||
},
|
||||
|
||||
"javascript": {
|
||||
"expose": false,
|
||||
|
||||
"modules": {
|
||||
"affix": true,
|
||||
"alert": true,
|
||||
"button": true,
|
||||
"carousel": true,
|
||||
"collapse": true,
|
||||
"dropdown": true,
|
||||
"modal": true,
|
||||
"popover": true,
|
||||
"scrollspy": true,
|
||||
"tab": true,
|
||||
"tooltip": true,
|
||||
"transition": true
|
||||
}
|
||||
}
|
||||
}
|
||||
7
app/client/display.html
Normal file
7
app/client/display.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<template name="display">
|
||||
<ul>
|
||||
{{#each temperatures}}
|
||||
{{> temperature}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</template>
|
||||
3
app/client/temperature.html
Normal file
3
app/client/temperature.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<template name="temperature">
|
||||
<li>{{owner}} / <strong>{{value}}°C</strong> / {{created_at_formatted}}</li>
|
||||
</template>
|
||||
Reference in New Issue
Block a user