├── .editorconfig
├── .gitignore
├── .jshintrc
├── .project
├── .settings
├── .jsdtscope
├── com.eclipsesource.jshint.ui.prefs
├── org.eclipse.wst.jsdt.core.prefs
├── org.eclipse.wst.jsdt.ui.superType.container
└── org.eclipse.wst.jsdt.ui.superType.name
├── .travis.yml
├── Dockerfile
├── LICENSE
├── README.md
├── client-tests
└── .placeholder
├── client-v2-jsx
├── actionpalettecomponent.js
├── actions
│ └── mapactions.js
├── constants
│ └── mapconstants.js
├── dialogs
│ ├── NodeEditDialog.js
│ └── SharingDialog.js
├── dispatcher
│ └── mapdispatcher.js
├── download.js
├── draggablepalettecomponent.js
├── editableshorttext.js
├── main.js
├── mapcanvas.js
├── mapcomponent.js
├── mapeditor.js
├── mapeditorpage.js
├── mapstatus.js
├── maptitledescription.js
├── palette.js
├── relatedmaps.js
└── store
│ ├── ShareDialogStore.js
│ └── mapstore.js
├── client
├── 3rd
│ ├── bootstrap-checkbox.css
│ ├── bootstrap-checkbox.js
│ ├── dom.jsPlumb-1.7.10.js
│ ├── jqBootstrapValidation.js
│ ├── jquery.form.js
│ ├── raphael.min.js
│ └── wheelnav.js
├── additional licences
├── analysis.jade
├── analytics.js
├── android-icon-192x192.png
├── favicon-16x16.png
├── favicon-32x32.png
├── favicon-96x96.png
├── favicon.ico
├── favicon.svg
├── help
│ ├── assistevolution.jade
│ ├── assistuserneeds.jade
│ └── assistvaluechain.jade
├── img
│ ├── 1x1_transparent.png
│ ├── icons.png
│ └── logo.png
├── index.css
├── index.jade
├── index.js
├── logo.png
├── logout.html
├── mapeditor.css
├── mapeditor.jade
├── mapeditor.js
├── mapeditor
│ ├── 1x1_transparent.png
│ ├── js
│ │ ├── jsPlumb-2.0.6-min.js
│ │ ├── main.js
│ │ ├── specs.js
│ │ └── vendors.js
│ ├── logo.png
│ └── mapeditor.html
├── mapeditor2.jade
├── mapeditor_includes
│ ├── actionmenu.jade
│ ├── mapanalysis.jade
│ ├── mapcreationassist.jade
│ ├── nodedialog.jade
│ └── preferences.jade
├── progresshelper.js
├── related.js
└── views
│ ├── base.jade
│ ├── change-password.jade
│ ├── facebook_login_failed.jade
│ ├── facebook_login_form.jade
│ ├── forgot-password.jade
│ ├── google_login_failed.jade
│ ├── google_login_form.jade
│ ├── id_site_verification_failed.jade
│ ├── linkedin_login_form.jade
│ ├── login.jade
│ ├── register.jade
│ ├── unauthorized.jade
│ ├── verification_complete.jade
│ ├── verification_email_sent.jade
│ ├── verification_failed.jade
│ └── verify.jade
├── gulpfile.js
├── package.json
├── server-tests
├── it_tests_mailchimp.js
└── tests_maps.js
├── server
├── analyzer.js
├── config
│ ├── googleauth.js
│ ├── mailchimpconfig.js
│ ├── mongodbdata.js
│ └── stormpathconfig.js
├── db.js
├── export.js
├── mailchimp.js
├── maps.js
├── router
│ ├── apirouter.js
│ ├── mainrouter.js
│ ├── profilerouter.js
│ └── share.js
├── server.js
├── svgtemplate.html
├── user-provider.js
├── user.js
└── util
│ ├── Access.js
│ └── log.js
├── supervisord.conf
└── ui-sketches
└── componentrepository.ep
/.editorconfig:
--------------------------------------------------------------------------------
1 | # http://EditorConfig.org
2 |
3 | root = true
4 |
5 | [*]
6 | charset = utf-8
7 | indent_style = tab
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 |
12 | [{package.json,.travis.yml,config.json}]
13 | indent_style = space
14 | indent_size = 2
15 |
16 | #[*.{js,py}]
17 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | config.json
3 | *.tgz
4 | npm-debug.log
5 | logs/
6 | *.pem
7 |
--------------------------------------------------------------------------------
/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | // --------------------------------------------------------------------
3 | // JSHint Nodeclipse Configuration v0.15.1
4 | // Strict Edition with some relaxations and switch to Node.js, no `use strict`
5 | // by Ory Band, Michael Haschke, Paul Verest
6 | // https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.ui/templates/common-templates/.jshintrc
7 | // JSHint Documentation is at http://www.jshint.com/docs/options/
8 | // JSHint Integration v0.9.9 comes with JSHInt 2.1.10 , see https://github.com/eclipsesource/jshint-eclipse
9 | // Known issues:
10 | // newer JSHint can't be used https://github.com/eclipsesource/jshint-eclipse/issues/75 that depends on JSHint issues.
11 | // --------------------------------------------------------------------
12 | // from https://gist.github.com/haschek/2595796
13 | //
14 | // @author http://michael.haschke.biz/
15 | // @license http://unlicense.org/
16 | //
17 | // This is a options template for [JSHint][1], using [JSHint example][2]
18 | // and [Ory Band's example][3] as basis and setting config values to
19 | // be most strict:
20 | //
21 | // * set all enforcing options to true
22 | // * set all relaxing options to false
23 | // * set all environment options to false, except the node value
24 | // * set all JSLint legacy options to false
25 | //
26 | // [1]: http://www.jshint.com/
27 | // [2]: https://github.com/jshint/node-jshint/blob/master/example/config.json //404
28 | // [3]: https://github.com/oryband/dotfiles/blob/master/jshintrc //404
29 | // [4]: http://www.jshint.com/options/
30 |
31 | // == Enforcing Options ===============================================
32 | //
33 | // These options tell JSHint to be more strict towards your code. Use
34 | // them if you want to allow only a safe subset of JavaScript, very
35 | // useful when your codebase is shared with a big number of developers
36 | // with different skill levels. Was all true.
37 |
38 | "bitwise" : true, // Prohibit bitwise operators (&, |, ^, etc.).
39 | "curly" : true, // Require {} for every new block or scope.
40 | "eqeqeq" : true, // Require triple equals i.e. `===`.
41 | "forin" : true, // Tolerate `for in` loops without `hasOwnPrototype`.
42 | "immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
43 | "latedef" : true, // Prohibit variable use before definition.
44 | "newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`.
45 | "noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`.
46 | "noempty" : true, // Prohibit use of empty blocks.
47 | "nonew" : true, // Prohibit use of constructors for side-effects.
48 | "plusplus" : false, // Prohibit use of `++` & `--`. //coding style related only
49 | "regexp" : true, // Prohibit `.` and `[^...]` in regular expressions.
50 | "undef" : true, // Require all non-global variables be declared before they are used.
51 | "strict" : false, // Require `use strict` pragma in every file.
52 | "trailing" : true, // Prohibit trailing whitespaces.
53 |
54 | // == Relaxing Options ================================================
55 | //
56 | // These options allow you to suppress certain types of warnings. Use
57 | // them only if you are absolutely positive that you know what you are
58 | // doing. Was all false.
59 | "asi" : false, // Tolerate Automatic Semicolon Insertion (no semicolons).
60 | "boss" : false, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments.
61 | "debug" : false, // Allow debugger statements e.g. browser breakpoints.
62 | "eqnull" : false, // Tolerate use of `== null`.
63 | "esnext" : false, // Allow ES.next (ECMAScript 6) specific features such as `const` and `let`.
64 | "evil" : false, // Tolerate use of `eval`.
65 | "expr" : false, // Tolerate `ExpressionStatement` as Programs.
66 | "funcscope" : false, // Tolerate declarations of variables inside of control structures while accessing them later from the outside.
67 | "globalstrict" : false, // Allow global "use strict" (also enables 'strict').
68 | "iterator" : false, // Allow usage of __iterator__ property.
69 | "lastsemic" : false, // Tolerat missing semicolons when the it is omitted for the last statement in a one-line block.
70 | "laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.
71 | "laxcomma" : true, // Suppress warnings about comma-first coding style.
72 | "loopfunc" : false, // Allow functions to be defined within loops.
73 | "maxerr" : 100, // This options allows you to set the maximum amount of warnings JSHint will produce before giving up. Default is 50.
74 | "moz" : false, // This options tells JSHint that your code uses Mozilla JavaScript extensions. Unless you develop specifically for the Firefox web browser you don't need this option.
75 | "multistr" : false, // Tolerate multi-line strings.
76 | "onecase" : false, // Tolerate switches with just one case.
77 | "proto" : false, // Tolerate __proto__ property. This property is deprecated.
78 | "regexdash" : false, // Tolerate unescaped last dash i.e. `[-...]`.
79 | "scripturl" : false, // Tolerate script-targeted URLs.
80 | "smarttabs" : false, // Tolerate mixed tabs and spaces when the latter are used for alignmnent only.
81 | "shadow" : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`.
82 | "sub" : false, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
83 | "supernew" : false, // Tolerate `new function () { ... };` and `new Object;`.
84 | "validthis" : false, // Tolerate strict violations when the code is running in strict mode and you use this in a non-constructor function.
85 |
86 | // == Environments ====================================================
87 | //
88 | // These options pre-define global variables that are exposed by
89 | // popular JavaScript libraries and runtime environments—such as
90 | // browser or node.js. TODO JSHint Documentation has more, but it is not clear since what JSHint version they appeared
91 | "browser" : false, // Standard browser globals e.g. `window`, `document`.
92 | "couch" : false, // Enable globals exposed by CouchDB.
93 | "devel" : false, // Allow development statements e.g. `console.log();`.
94 | "dojo" : false, // Enable globals exposed by Dojo Toolkit.
95 | "jquery" : false, // Enable globals exposed by jQuery JavaScript library.
96 | "mootools" : false, // Enable globals exposed by MooTools JavaScript framework.
97 | "node" : true, // Enable globals available when code is running inside of the NodeJS runtime environment.
98 | "nonstandard" : false, // Define non-standard but widely adopted globals such as escape and unescape.
99 | "phantom" : false, //?since version? This option defines globals available when your core is running inside of the PhantomJS runtime environment.
100 | "prototypejs" : false, // Enable globals exposed by Prototype JavaScript framework.
101 | "rhino" : false, // Enable globals available when your code is running inside of the Rhino runtime environment.
102 | "worker" : false, //?since version? This option defines globals available when your code is running inside of a Web Worker.
103 | "wsh" : false, // Enable globals available when your code is running as a script for the Windows Script Host.
104 | "yui" : false, //?since version? This option defines globals exposed by the YUI JavaScript framework.
105 |
106 | // == JSLint Legacy ===================================================
107 | //
108 | // These options are legacy from JSLint. Aside from bug fixes they will
109 | // not be improved in any way and might be removed at any point.
110 | "nomen" : false, // Prohibit use of initial or trailing underbars in names.
111 | "onevar" : false, // Allow only one `var` statement per function.
112 | "passfail" : false, // Stop on first error.
113 | "white" : false, // Check against strict whitespace and indentation rules.
114 |
115 | // == Undocumented Options ============================================
116 | //
117 | // While Michael have found these options in [example1][2] and [example2][3] (already gone 404)
118 | // they are not described in the [JSHint Options documentation][4].
119 |
120 | "predef" : [ // Extra globals.
121 | "jsPlumb",
122 | "window",
123 | "document",
124 | "$",
125 | "it", "describe", "before", "after", "afterEach"
126 | "Java", "JavaFX", "$ARG" //no effect
127 | ]
128 | , "indent" : 4 // Specify indentation spacing
129 | }
130 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | wardleymapstool
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.ui.externaltools.ExternalToolBuilder
10 | full,incremental,
11 |
12 |
13 | LaunchConfigHandle
14 | <project>/.externalToolBuilders/com.eclipsesource.jshint.ui.builder.launch
15 |
16 |
17 |
18 |
19 |
20 | org.nodeclipse.ui.NodeNature
21 | org.eclipse.wst.jsdt.core.jsNature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.settings/com.eclipsesource.jshint.ui.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | excluded=//*.json\:bower_components//*\:node_lib//*\:node_modules//*
3 | included=//*.jjs\://*.js\://*.jshintrc\://*.mjs\://*.njs\://*.pjs\://*.vjs
4 | projectSpecificOptions=true
5 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.jsdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | semanticValidation=disabled
3 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.JRE_CONTAINER
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Global
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 | services:
5 | - mongodb
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM ubuntu:vivid
2 |
3 | # Setup NodeSource Official PPA
4 | RUN apt-get update && \
5 | apt-get install -y --force-yes \
6 | curl \
7 | apt-transport-https \
8 | lsb-release \
9 | build-essential \
10 | python-all
11 | RUN curl -sL https://deb.nodesource.com/setup | bash -
12 |
13 | RUN apt-get install nodejs -y --force-yes
14 |
15 | #mongo
16 | RUN apt-get install -y --force-yes mongodb
17 | RUN mkdir -p /data/db
18 |
19 | #supervisor
20 | RUN apt-get install -y --force-yes supervisor
21 | RUN mkdir -p /var/log/supervisor
22 | COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
23 |
24 | #phantomjs
25 | RUN apt-get install -y --force-yes phantomjs
26 |
27 | ADD . /srv
28 | WORKDIR /srv
29 | # install the dependencies
30 | RUN npm install
31 |
32 |
33 | EXPOSE 8080
34 | CMD ["/usr/bin/supervisord"]
35 |
36 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Atlas, the Wardley Mapping Tool
2 | ===============
3 |
4 | [](https://travis-ci.org/cdaniel/wardleymapstool)
5 |
6 |  Important Notice
7 | ----------------
8 |
9 |  **I have no plans to maintain this tool anymore.**
10 |
11 |  **New version is being created at https://github.com/cdaniel/atlas2.**
12 |
13 | Preface
14 | -------------
15 |
16 | There are people who understand the difference between a professional and a "professional" strategy.
17 |
18 | 
19 |
20 | If the table below does not ring a bell with you, go and check [my mapping portal](http://wardleymaps.com/learn.html) in order to gather the
21 | minimal required knowledge (for free).
22 |
23 |
24 |
25 | | Strategy | Professional | "Professional" |
26 | | ------------ | ------------ | ------------------- |
27 | | Reasoning | Visual | Verbal |
28 | | Common tools | maps | SWOT/story telling |
29 | | Prepared by | you | consultants |
30 | | Price | cheap | very expensive |
31 |
32 |
33 |
34 | However, if you know what a Wardley Map is, I have a good news for you - I wrote a tool that makes map creation much easier.
35 | You can now easily create map, share it with someone, download as png, or create variants and evaluate them.
36 |
37 | If you still are not sure whether this tool is for you, check [the Atlas live instance](https://atlas.wardleymaps.com).
38 |
39 | Running your own instance
40 | -------------------------
41 | There is a common bias that novel & business critical tool must have big brands guarding them, because it warrants that those tools will not dissappear over night leaving users in the lurch. That is just plain wrong. If you would like to have your own instance of Atlas, you can get it running in nearly no time. Instructions are available on a [project wiki] (https://github.com/cdaniel/wardleymapstool/wiki/Running-your-own-instance). Do not worry, it is not complicated.
42 |
43 |
44 | Support, questions and similar:
45 | -----------------
46 | Via twitter [@wardleymaps](https://twitter.com/wardleymaps). Don't hesistate to ask, I will do what I can to help you.
47 |
48 | **Logo usage guide:**
49 |
50 | Logos visually identifying Atlas and wardleymaps.com are protected and should not be used if Atlas is used to offer commercial services.
51 |
--------------------------------------------------------------------------------
/client-tests/.placeholder:
--------------------------------------------------------------------------------
1 | /* Copyright 2014 Krzysztof Daniel
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.*/
--------------------------------------------------------------------------------
/client-v2-jsx/actionpalettecomponent.js:
--------------------------------------------------------------------------------
1 | /** @jsx React.DOM */
2 | var React = require('react');
3 | var Button = require('react-bootstrap').Button;
4 | var MapComponent = require('./mapcomponent');
5 | var MapActions = require('./actions/mapactions');
6 | var jquery = require('jquery');
7 |
8 | var outerStyle = {
9 | position: 'relative'
10 | };
11 |
12 | var ActionPaletteComponent = React.createClass({
13 | componentDidMount: function() {
14 | this.props.store.addChangeListener(this._onChange);
15 | },
16 | componentWillUnmount: function() {
17 | this.props.store.removeChangeListener(this._onChange);
18 | },
19 | _onChange: function() {
20 | this.setState(this.props.store.getAll());
21 | },
22 | getInitialState : function() {
23 | return {
24 | mapMode : null
25 | };
26 | },
27 | handleClickMove : function(event){
28 | event.preventDefault();
29 | MapActions.toggleMode(this.props.toggle);
30 | },
31 | render: function() {
32 | var target_function = this.handleClickMove;
33 | var store = this.props.store;
34 | var active = this.state.mapMode === this.props.toggle;
35 | var bsStyle = this.state.mapMode === this.props.toggle ? 'info' : 'default';
36 | return (
37 |
42 | );
43 | }
44 |
45 | });
46 |
47 | module.exports = ActionPaletteComponent;
48 |
--------------------------------------------------------------------------------
/client-v2-jsx/actions/mapactions.js:
--------------------------------------------------------------------------------
1 | var MapDispatcher = require('../dispatcher/mapdispatcher');
2 | var MapConstants = require('../constants/mapconstants');
3 |
4 | var MapActions = {
5 |
6 | createNodeFromDrop: function(drop) {
7 | MapDispatcher.dispatch({
8 | actionType: MapConstants.MAP_CREATE_NODE_FROM_DROP,
9 | drop: drop
10 | });
11 | },
12 |
13 | normalize: function(params){
14 | MapDispatcher.dispatch({
15 | actionType: MapConstants.MAP_NEW_NODE,
16 | params : params
17 | });
18 | },
19 |
20 | toggleMode : function(targetAction) {
21 | MapDispatcher.dispatch({
22 | actionType: MapConstants.MAP_EDITOR_DRAG_MODE,
23 | targetAction : targetAction
24 | });
25 | },
26 |
27 | deleteNode: function(id){
28 | MapDispatcher.dispatch({
29 | actionType: MapConstants.MAP_DELETE_NODE,
30 | id : id
31 | });
32 | },
33 |
34 | recordConnection : function(connection){
35 | MapDispatcher.dispatch({
36 | actionType: MapConstants.MAP_RECORD_CONNECTION,
37 | connection : connection
38 | });
39 | },
40 |
41 | deleteConnection : function(connection){
42 | MapDispatcher.dispatch({
43 | actionType: MapConstants.MAP_DELETE_CONNECTION,
44 | connection : connection
45 | });
46 | },
47 |
48 | nodeDragged : function(drag){
49 | MapDispatcher.dispatch({
50 | actionType: MapConstants.MAP_NODE_DRAGSTOP,
51 | drag : drag
52 | });
53 | },
54 |
55 | mapRetrieved : function(map){
56 | MapDispatcher.dispatch({
57 | actionType: MapConstants.MAP_RETRIEVED,
58 | map : map
59 | });
60 | },
61 |
62 | changeName : function(name){
63 | MapDispatcher.dispatch({
64 | actionType: MapConstants.MAP_CHANGE_NAME,
65 | name : name
66 | });
67 | },
68 |
69 | changeDescription : function(description){
70 | MapDispatcher.dispatch({
71 | actionType: MapConstants.MAP_CHANGE_DESCRIPTION,
72 | description : description
73 | });
74 | },
75 |
76 | toggleSharingDialog : function(){
77 | MapDispatcher.dispatch({
78 | actionType: MapConstants.MAP_SHARING_DIALOG
79 | });
80 | },
81 |
82 | toggleAnonymousSharing : function(url){
83 | MapDispatcher.dispatch({
84 | actionType: MapConstants.MAP_TOGGLE_ANONYMOUS_SHARING,
85 | url : url
86 | });
87 | },
88 |
89 | loadSharingState : function(data){
90 | MapDispatcher.dispatch({
91 | actionType: MapConstants.LOAD_MAP_SHARING_STATE,
92 | data : data
93 | });
94 | },
95 |
96 | editNode : function(nodeId, newState){
97 | MapDispatcher.dispatch({
98 | actionType: MapConstants.MAP_EDIT_NODE,
99 | nodeId : nodeId,
100 | newState : newState
101 | });
102 | },
103 |
104 | errorReported : function(error){
105 | MapDispatcher.dispatch({
106 | actionType: MapConstants.ERROR,
107 | error : error
108 | });
109 | }
110 |
111 | };
112 |
113 | module.exports = MapActions;
114 |
--------------------------------------------------------------------------------
/client-v2-jsx/constants/mapconstants.js:
--------------------------------------------------------------------------------
1 | var keyMirror = require('keymirror');
2 |
3 | module.exports = keyMirror({
4 | MAP_CREATE_NODE_FROM_DROP: null,
5 | MAP_NEW_NODE: null,
6 | MAP_DELETE_NODE: null,
7 |
8 |
9 | MAP_EDITOR_DRAG_MODE : null,
10 | MAP_EDITOR_CONNECT_MODE : null,
11 | MAP_EDITOR_DELETE_MODE : null,
12 | MAP_EDITOR_EDIT_MODE : null,
13 |
14 | MAP_RECORD_CONNECTION : null,
15 | MAP_DELETE_CONNECTION : null,
16 |
17 | MAP_CHANGE_NAME : null,
18 | MAP_CHANGE_DESCRIPTION : null,
19 | MAP_EDIT_NODE : null,
20 |
21 | MAP_NODE_DRAGSTOP : null,
22 |
23 | DROP_EVENT : null,
24 | CHANGE_EVENT : null,
25 |
26 | MAP_RETRIEVED : null,
27 | MAP_SHARING_DIALOG : null,
28 |
29 | MAP_TOGGLE_ANONYMOUS_SHARING : null,
30 | LOAD_MAP_SHARING_STATE : null,
31 |
32 | ERROR : null
33 | });
34 |
--------------------------------------------------------------------------------
/client-v2-jsx/dialogs/NodeEditDialog.js:
--------------------------------------------------------------------------------
1 | /** @jsx React.DOM */
2 | var React = require('react');
3 | var Input = require('react-bootstrap').Input;
4 | var Modal = require('react-bootstrap').Modal;
5 | var Button = require('react-bootstrap').Button;
6 | var Glyphicon = require('react-bootstrap').Glyphicon;
7 | var MapConstants = require('./../constants/mapconstants');
8 | var MapActions = require('./../actions/mapactions.js');
9 | var $ = require('jquery');
10 | var EditableShortText = require('./../editableshorttext');
11 |
12 | var NodeEditDialog = React.createClass({
13 | getInitialState : function(){
14 | return {newName : null, newType : null};
15 | },
16 | componentDidMount: function() {
17 | this.props.store.addChangeListener(this._onChange);
18 | },
19 | componentWillUnmount: function() {
20 | this.props.store.removeChangeListener(this._onChange);
21 | },
22 | close : function(){
23 | MapActions.editNode(null, this.state);
24 | this.setState({newName : null, newType : null});
25 | },
26 | hide : function(){
27 | MapActions.editNode(null, null);
28 | this.setState({newName : null, newType : null});
29 | },
30 | onNameUpdate : function(value){
31 | this.setState({newName:value});
32 | },
33 | onSubmit : function(key){
34 | key.preventDefault();
35 | key.stopPropagation();
36 | return false;
37 | },
38 | render: function() {
39 | var editedNode = this.props.store.getNodeBeingEdited();
40 | var show = editedNode !== null;
41 | var name = editedNode !== null ? editedNode.name : "";
42 | if(this.state.newName){
43 | name = this.state.newName;
44 | }
45 |
46 | var type = null;
47 | if(editedNode){
48 | console.log(editedNode);
49 | if(editedNode.userneed){
50 | type = 'userneed';
51 | } else if (editedNode.external){
52 | type = 'external';
53 | } else {
54 | type = 'internal';
55 | }
56 | }
57 | if(this.state.newType){
58 | type = this.state.newType;
59 | }
60 | return (
61 |
62 |
63 |
64 | Edit node
65 |
66 |
67 |
68 |
95 |
96 |
97 |
98 |
99 |
100 | );
101 | },
102 | _typeEdit : function(i){
103 | this.setState({newType : i.target.value});
104 | },
105 | _onChange : function() {
106 | this.setState({newName : null, newType : null});
107 | }
108 | });
109 |
110 | module.exports = NodeEditDialog;
111 |
--------------------------------------------------------------------------------
/client-v2-jsx/dialogs/SharingDialog.js:
--------------------------------------------------------------------------------
1 | /** @jsx React.DOM */
2 | var React = require('react');
3 | var Input = require('react-bootstrap').Input;
4 | var Modal = require('react-bootstrap').Modal;
5 | var Button = require('react-bootstrap').Button;
6 | var Glyphicon = require('react-bootstrap').Glyphicon;
7 | var MapConstants = require('./../constants/mapconstants');
8 | var MapActions = require('./../actions/mapactions.js');
9 | var $ = require('jquery');
10 |
11 | var MapSharingDialog = React.createClass({
12 |
13 | getInitialState : function(){
14 | return {
15 | sharingDialog:false,
16 | anonymousShare:false,
17 | anonymousShareLink:''
18 | };
19 | },
20 |
21 | componentDidMount: function() {
22 | this.props.store.addChangeListener(this._onChange);
23 | $.ajax({
24 | type : 'GET',
25 | url : '/share/map/' + this.props.mapId,
26 | dataType : 'json',
27 | success : function(data) {
28 | MapActions.loadSharingState(data);
29 | }
30 | });
31 | },
32 |
33 | componentWillUnmount: function() {
34 | this.props.store.removeChangeListener(this._onChange);
35 | },
36 |
37 | close : function(){
38 | MapActions.toggleSharingDialog();
39 | },
40 |
41 | onSubmit : function(key){
42 | key.preventDefault();
43 | key.stopPropagation();
44 | return false;
45 | },
46 |
47 | toggleAnonymousSharing : function(){
48 | if (!this.state.anonymousShare) {
49 | $.ajax({
50 | type : 'PUT',
51 | url : '/share/map/' + this.props.mapId + '/anonymous',
52 | dataType : 'json',
53 | success : function(data) {
54 | MapActions.toggleAnonymousSharing(data.url);
55 | }
56 | });
57 | } else {
58 | $.ajax({
59 | type : 'PUT',
60 | url : '/share/map/' + this.props.mapId + '/unshareanonymous',
61 | dataType : 'json',
62 | success : function(data) {
63 | MapActions.toggleAnonymousSharing(null);
64 | }
65 | });
66 | }
67 | },
68 |
69 | render: function() {
70 | var show = this.state.sharingDialog;
71 |
72 | var isNotSharedAnonymously = ! this.state.anonymousShare;
73 | var anonymousShareLink = this.state.anonymousShareLink;
74 | var glyph = ;
75 | var anonymousShareBlock = function(){
76 | if(isNotSharedAnonymously === true){
77 | return null;
78 | } else {
79 | return ( );
80 | }
81 | };
82 | return (
83 |
84 |
85 |
86 | Share your map
87 |
88 |
89 |
90 |