The WorldWide Telescope web client lets you explore the universe in your browser.
Перейти к файлу
Ron Gilchrist 76bbd1d8c0 Final time scrubber fixes plus issues with place sharing, search data, and misc fixes uncovered during this code pass. 2019-03-05 09:13:25 -08:00
controllers Final time scrubber fixes plus issues with place sharing, search data, and misc fixes uncovered during this code pass. 2019-03-05 09:13:25 -08:00
controls Several fixes to circle annotations, embedded videos, etc. 2019-01-14 21:48:04 -08:00
css Several fixes to circle annotations, embedded videos, etc. 2019-01-14 21:48:04 -08:00
dataproxy Final time scrubber fixes plus issues with place sharing, search data, and misc fixes uncovered during this code pass. 2019-03-05 09:13:25 -08:00
directives Final time scrubber fixes plus issues with place sharing, search data, and misc fixes uncovered during this code pass. 2019-03-05 09:13:25 -08:00
ext find/replace http://->// for protocol-agnostic resource fetching 2018-05-02 21:51:36 -07:00
factories Final time scrubber fixes plus issues with place sharing, search data, and misc fixes uncovered during this code pass. 2019-03-05 09:13:25 -08:00
views wire up time scrubber to spreadsheet layer + pull all pywwt pull requests and merge 2019-02-21 21:01:45 -08:00
.editorconfig Moved grunt to root. Added bower and bower.json to manage external scripts. reconfigured gruntfile, package.json. 2015-01-24 21:04:36 -08:00
.gitattributes Moved grunt to root. Added bower and bower.json to manage external scripts. reconfigured gruntfile, package.json. 2015-01-24 21:04:36 -08:00
.gitignore Timescrubber fixes to work in minified environment 2019-02-22 00:45:42 -08:00
Default.aspx Fixed all issues with time scrubber integration. added scrubber debouncer. Fixed longstanding ui glitch- thumbnails showing up in context panel while compressed. Ready to test. 2019-02-23 02:49:47 -08:00
Gruntfile.js Several fixes to circle annotations, embedded videos, etc. 2019-01-14 21:48:04 -08:00
README.md find/replace http://->// for protocol-agnostic resource fetching 2018-05-02 21:51:36 -07:00
app.js Final time scrubber fixes plus issues with place sharing, search data, and misc fixes uncovered during this code pass. 2019-03-05 09:13:25 -08:00
earth.jpg move webclient to its own directory 2014-11-26 17:49:08 -08:00
favicon.ico move webclient to its own directory 2014-11-26 17:49:08 -08:00
favicon.png move webclient to its own directory 2014-11-26 17:49:08 -08:00
package.json find/replace http://->// for protocol-agnostic resource fetching 2018-05-02 21:51:36 -07:00
packages.config removed dll from git. It only bloats the repo and does nothing. removed wurfl, build new sdk 2018-11-20 14:45:08 -08:00
sunCorona.png move webclient to its own directory 2014-11-26 17:49:08 -08:00
webclient.csproj removed dll from git. It only bloats the repo and does nothing. removed wurfl, build new sdk 2018-11-20 14:45:08 -08:00

README.md

WWT-Web - WorldWide Telescope

This repository contains the HTML5 SDK which is the rendering engine for the web client and the embeddable web control. It also contains the full web client code. This repository does not contain all the server-side endpoints needed to render tiles, constellation lines, etc. Some samples will be included in the future.

Prerequisites

  • Visual Studio 2013 (Free Community Edition)
  • NodeJs - Only needed if you want to compile the sdk into javascript or run the minified web client js code.

Included Projects

There are two solutions in the repository. The standalone webclient sln includes only the webclient implementation of the Html5sdk. The Html5sdk contains a sln which loads both the html5sdk AND the webclient. Opening the html5sdk sln enables you to compile the c# files into javascript, then run the webclient locally using the modified js output.

Getting Started

  • Decide which .sln you want to run (see above) and open in Visual Studio 2013 or higher.
  • Right-click webclient\default.aspx and point to View In Browser

To Enable grunt (LESS compilation, HTML5SDK Compilation, and JS Minification)

  • In a command prompt, navigate to the webclient root and type npm install to install grunt's dependencies. If you encounter any errors (I always do on a clean machine), ensure %USERPROFILE%\AppData\Roaming\npm exists (create it if not) and your system path includes ;%USERPROFILE%\AppData\Roaming\npm. You can run the ensurenpm.cmd to solve this.
  • Once you have installed the node_modules (via npm install above), install the grunt client. type npm install -g grunt-cli from the same command prompt.
  • If you do not have bower installed, run npm install -g bower
  • Run npm install to install dependencies
  • Run grunt watch from the same command prompt.
  • In a new command window run grunt bower:install to get the libraries the web client depends on (jquery, angular, bootstrap, etc.). You should see the watcher window detect the dependent libraries and run the 'vendor' grunt task
  • Disable any LESS compilers you might be using as visual studio extensions. Grunt watch will do everything for you.

Once you have completed the above you are set to make your own modifications to the code and your LESS and JS will be compiled/uglified. You can view the webclient by right-clicking webclient\default.aspx > view in browser.

To make changes to the HTML5 SDK, simply compile the html5sdk project (named wwtlib) while the grunt watch thread is active. Grunt will take the js output and create the wwtsdk.js file. To use this file instead of the production file, add ?debug=local to the query string.

Web client dependencies - further reading

AngularJS

If you are not familiar with Angular JS, I recommend taking some time to learn angularjs as this is a very heavy angular app.

Bootstrap

We also use the bootstrap library and compile our own less with the bootstrap less lib. We use their dropdowns, popovers, and modals quite a bit.

Angular-strap

We use the angular-strap directives library to integrate bootstrap components into angular.

ScriptSharp

We use ScriptSharp to compile the c# classes into javascript. We recently upgraded to ScriptSharp v0.8