Skip to content

Commit 1e18d4c

Browse files
committed
initial commit
0 parents  commit 1e18d4c

File tree

174 files changed

+27240
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+27240
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules/
2+
dist/
3+
doc/
4+
serve/js
5+
serve/img
6+
serve/css
7+
css/
8+
deploy/
9+
.grunt/
10+
bower_components/

.jshintrc

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"es3": true,
3+
"laxcomma": true,
4+
"quotmark": true,
5+
"undef": true,
6+
"unused": true,
7+
"trailing": true,
8+
"browser": true,
9+
"nonew": true,
10+
"latedef": true,
11+
"smarttabs": true,
12+
"newcap": true,
13+
"predef": ["Mapmaker","jQuery","require", "Famous", "$", "_", "Backbone", "Hogan", "embedly", "Countable"],
14+
"maxlen": 120
15+
}

.lvimrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set noet
2+
set tabstop=2
3+
set shiftwidth=2
4+
let g:ctrlp_custom_ignore = 'node_modules\|.git'

Gruntfile.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*global module:false*/
2+
module.exports = function(grunt) {
3+
4+
grunt.initConfig({});
5+
require('load-grunt-config')(grunt, {
6+
pkg: grunt.file.readJSON('package.json'),
7+
banner: '/* metamaps 2014 */\n'
8+
});
9+
};

LICENSE

+661
Large diffs are not rendered by default.

ModulesToPort.txt

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
2+
3+
things to figure out
4+
-----------------
5+
selection --> drawing the box , highlighting selected things
6+
7+
zooming
8+
9+
the carousel, double clicking to bring it up
10+
11+
drawing a line for synapse creation from one node to another
12+
13+
14+
15+
Metamaps.Realtime
16+
17+
Metamaps.Listeners
18+
19+
Metamaps.Synapse
20+
21+
Metamaps.Topic
22+
23+
Metamaps.Map
24+
25+
Metamaps.Filter
26+
27+
Metamaps.Control
28+
29+
Metamaps.Selected
30+
31+
Metamaps.Visualize
32+
33+
Metamaps.JIT
34+
35+
Metamaps.Settings -> defaultConfig
36+
37+
Metamaps.Create
38+
39+
40+
map
41+
topicMappings []
42+
synapseMappings []
43+
topics []
44+
synapses []
45+
46+
mapView
47+
infoBox (mapInfoBoxView)
48+
topicCards
49+
[] topicCardView (needs template?)
50+
synapseCards
51+
[] synapseCardView (needs template?)
52+
filter (filterView)
53+
junto (juntoView)
54+
newTopic (newTopicView)
55+
metacodeSetSwitch (metacodeSetSwitchView)
56+
newSynapse (newSynapseView)
57+
58+
topics
59+
[] topicMappingView
60+
synapses
61+
[] synapseMappingView
62+
63+
64+
65+
mainContext
66+
translateModNode
67+
originModNode
68+
[] modNode (topicMappingView)
69+
imageSurface
70+
nameSurface
71+
[] modNode (synapseMappingView)
72+
lineSurface // try using scale instead of setting 'size' of div
73+

_SpecRunner.html

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Jasmine Spec Runner</title>
6+
7+
<link rel="stylesheet" type="text/css" href=".grunt/grunt-contrib-jasmine/jasmine.css">
8+
9+
10+
11+
<script src=".grunt/grunt-contrib-jasmine/phantom-polyfill.js"></script>
12+
13+
<script src=".grunt/grunt-contrib-jasmine/jasmine.js"></script>
14+
15+
<script src=".grunt/grunt-contrib-jasmine/jasmine-html.js"></script>
16+
17+
<script src="bower_components/jquery/dist/jquery.min.js"></script>
18+
19+
<script src="lib/utility.js"></script>
20+
21+
<script src="lib/renderer.js"></script>
22+
23+
<script src="spec/rendererSpec.js"></script>
24+
25+
<script src=".grunt/grunt-contrib-jasmine/reporter.js"></script>
26+
27+
<script src=".grunt/grunt-contrib-jasmine/jasmine-helper.js"></script>
28+
29+
30+
</head>
31+
<body>
32+
</body>
33+
</html>

bower.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "metamaps",
3+
"version": "0.1.0",
4+
"authors": [
5+
"Connor Turland <[email protected]>"
6+
],
7+
"description": "Map Complexity",
8+
"main": "metamaps_renderer.js",
9+
"moduleType": [
10+
"globals"
11+
],
12+
"license": "AGPL",
13+
"homepage": "http://metamaps.cc",
14+
"private": true,
15+
"ignore": [
16+
"**/.*",
17+
"node_modules",
18+
"bower_components",
19+
"test",
20+
"tests"
21+
],
22+
"dependencies": {
23+
"backbone": "1.0.0",
24+
"underscore": "1.4.4",
25+
"Countable": "~2.1.0",
26+
"typeahead.js": "0.9.3",
27+
"socket.io-client": "0.9.11",
28+
"CloudCarousel": "https://github.com/Connoropolous/CloudCarousel.git",
29+
"embedly": "https://github.com/Connoropolous/embedly.git",
30+
"famous": "~0.3.4",
31+
"hogan": "https://github.com/Connoropolous/Hogan.git"
32+
},
33+
"devDependencies": {
34+
"jquery": "1.9.0"
35+
}
36+
}

grunt/aliases.js

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
module.exports = {
2+
'default': [
3+
'jshint',
4+
'jasmine',
5+
'concat',
6+
'uglify'
7+
],
8+
init: [
9+
'copy:init',
10+
],
11+
dist: [
12+
'jshint',
13+
'jasmine',
14+
'concat:dist',
15+
'uglify:dist',
16+
'less:dist'
17+
],
18+
preCommit: [
19+
'jsbeautifier',
20+
'jshint',
21+
'jasmine'
22+
],
23+
serve: [
24+
'clean:serve',
25+
'concat',
26+
'less:default',
27+
'copy:serve',
28+
'connect:serve',
29+
'express:dev'
30+
],
31+
serveReload: [
32+
'clean:serve',
33+
'concat',
34+
'less:default',
35+
'copy:serve',
36+
'connect:serveReload',
37+
'express:devReload',
38+
'watch'
39+
],
40+
deploy: [
41+
'jasmine',
42+
'jshint',
43+
'clean:deploy',
44+
'concat',
45+
'less:dist',
46+
'uglify',
47+
'copy:deploy'
48+
]
49+
};

grunt/clean.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
serve: ['serve/raphael/js/', 'serve/css'],
3+
deploy: [
4+
'deploy/maprenderer/static/js/ds',
5+
'deploy/maprenderer/static/js/dist',
6+
'deploy/maprenderer/static/css/ds',
7+
'deploy/maprenderer/static/img'
8+
]
9+
};

grunt/concat.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
module.exports = {
2+
options: {
3+
banner: '<%= banner %>',
4+
stripBanners: true,
5+
},
6+
dist: {
7+
src: [
8+
'bower_components/snap.svg/dist/snap.svg-min.js',
9+
'bower_components/underscore/underscore.js',
10+
'bower_components/backbone/backbone.js',
11+
'bower_components/Countable/Countable.js',
12+
'bower_components/socket.io-client/dist/socket.io.js',
13+
'bower_components/typeahead.js/dist/typeahead.bundle.min.js',
14+
'bower_components/CloudCarousel/cloudcarousel.js',
15+
'bower_components/embedly/embedly.js',
16+
'bower_components/hogan/hogan-2.0.0.js',
17+
'bower_components/famous/dist/famous-global.min.js',
18+
'lib/JIT.js',
19+
'lib/utility.js',
20+
'lib/views/mixins.js',
21+
'lib/views/juntoView.js',
22+
'lib/views/videoView.js',
23+
'lib/views/roomTopicView.js',
24+
'lib/views/chatView.js',
25+
'lib/models/mapper.js',
26+
'lib/modules/control.js',
27+
'lib/modules/create.js',
28+
'lib/modules/jit.js',
29+
'lib/modules/realtime.js',
30+
'lib/modules/visualize.js',
31+
'lib/maker.js',
32+
'lib/junto.js',
33+
'lib/buildMaker.js',
34+
'lib/models/collections.js',
35+
],
36+
dest: 'dist/metamaps_renderer.js'
37+
}
38+
};

grunt/connect.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
serveReload: {
3+
options: {
4+
'debug': false,
5+
'port': '4000',
6+
'base': 'serve/',
7+
open: false,
8+
keepalive: false,
9+
livereload: true
10+
}
11+
},
12+
serve: {
13+
options: {
14+
debug: true,
15+
port: '4000',
16+
base: 'serve/',
17+
open: false,
18+
keepalive: false
19+
}
20+
},
21+
serveNoOpen: {
22+
options: {
23+
debug: true,
24+
port: '4000',
25+
base: 'serve/',
26+
open: false,
27+
keepalive: true
28+
}
29+
}
30+
};

grunt/copy.js

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
module.exports = {
2+
init: {
3+
files: [{
4+
src: 'bower_components/**/*',
5+
expand: true,
6+
dest: 'serve/js/'
7+
}]
8+
},
9+
serve: {
10+
files: [{
11+
src: 'dist/*',
12+
expand: true,
13+
dest: 'serve/js/',
14+
nonull: true,
15+
flatten: true,
16+
filter: 'isFile'
17+
}, {
18+
src: 'css/*',
19+
expand: true,
20+
dest: 'serve/css/',
21+
nonull: true,
22+
flatten: true,
23+
filter: 'isFile'
24+
}, {
25+
src: 'maps/*',
26+
expand: true,
27+
dest: 'serve/json/'
28+
}, {
29+
src: 'metacodes/*',
30+
expand: true,
31+
dest: 'serve/json/'
32+
}, {
33+
src: 'img/**/*',
34+
expand: true,
35+
dest: 'serve/img',
36+
nonull: true,
37+
flatten: true,
38+
filter: 'isFile'
39+
}]
40+
},
41+
deploy: {
42+
files: [{
43+
src: 'lib/**/*',
44+
expand: true,
45+
dest: 'deploy/maprenderer/static/js/ds/',
46+
flatten: true,
47+
nonull: true,
48+
filter: 'isFile'
49+
}, {
50+
src: 'css/*',
51+
expand: true,
52+
dest: 'deploy/maprenderer/static/css/',
53+
flatten: true,
54+
nonull: true,
55+
filter: 'isFile'
56+
}, {
57+
src: 'img/*',
58+
expand: true,
59+
dest: 'deploy/maprenderer/static/img/',
60+
flatten: true,
61+
nonull: true,
62+
filter: 'isFile'
63+
}, {
64+
src: 'dist/metamaps_renderer.js',
65+
dest: 'deploy/maprenderer/static/js/dist/metamaps_renderer.js'
66+
}]
67+
}
68+
};

0 commit comments

Comments
 (0)