mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-12 00:35:08 +00:00
18 lines
393 B
JavaScript
18 lines
393 B
JavaScript
'use strict';
|
|
|
|
define([
|
|
'underscore', 'react', 'socketio', 'dataio', 'jquery'
|
|
], function(
|
|
_, React, socketio, dataio, $
|
|
) {
|
|
var connect = dataio(socketio.connect());
|
|
|
|
var projects = connect.resource('projects');
|
|
projects.sync('read', function(err, projects) {
|
|
$('#content').html(
|
|
(err && err.message) ||
|
|
('Loaded projects: ' + _(projects).pluck('name').join(', '))
|
|
);
|
|
});
|
|
});
|