Граф коммитов

598 Коммитов

Автор SHA1 Сообщение Дата
Taylor Southwick 45911395fe Replace .GetHashCode() usage with IFileNameHasher
This includes an implementation that mimics the 32-bit string
.GetHashCode() implementation so behavior will be the same.
2020-09-21 09:29:17 -07:00
Peter Williams 66d14e2463
Merge pull request #86 from twsouthwick/service-provider
Use dependency injection for RequestProviders
2020-09-17 16:35:28 -04:00
Taylor Southwick e0e2f43cc2 Use dependency injection for RequestProviders 2020-09-17 10:17:34 -07:00
Peter Williams 42378afd29
Merge pull request #85 from twsouthwick/maputil
Include MapDataUtil.csproj for map manipulation
2020-09-01 19:45:52 -04:00
Taylor Southwick 08a4897255 Include MapDataUtil.csproj for map manipulation
The WWT.Imaging.dll contents were already available in the MapDataUtil.
This change removes that binary and just uses the MapDataUtil.

As part of this, the library is now being compiled for .NET Standard 2.0
which will simplify any changes for .NET Core.
2020-09-01 15:44:15 -07:00
Peter Williams 4afc090c06
Merge pull request #84 from twsouthwick/single-code
Convert all WWTWeb endpoints to use RequestProvider
2020-09-01 17:21:24 -04:00
Taylor Southwick d651ad0e3e Convert all WWTWeb endpoints to use RequestProvider
This change moves most code behind to a class library. This will help
isolate out code so that tooling can be used to simplify refactoring
things such as data access. It also simplifies code so that tooling can
show where methods are being used (code behind files such as aspx and
aspx.cs do not work well for that).
2020-09-01 13:07:04 -07:00
Peter Williams db28a354f6
Merge pull request #83 from twsouthwick/request-provider
Add initial RequestProvider infrastructure
2020-08-31 20:24:36 -04:00
Peter Williams bacd4930de
Merge pull request #81 from twsouthwick/new-stuff
Update some of the code behind with what's on the VM
2020-08-31 20:22:28 -04:00
Taylor Southwick b6dbf36113 Update some of the code behind with what's on the VM 2020-08-31 15:08:06 -07:00
Taylor Southwick 128483e1c4 Add initial RequestProvider infrastructure
This will allow us to move code out from the code behind. Once that is done, we can more easily refactor things like file access so we can replace it with Azure access. This PR puts in the basics to enable this kind of workflow while showing an example for the 2MASSOct.aspx endpoint.

The goal is for the aspx pages to essentially contain nothing besides:

RequestProvider.Get<Name>().Run(Request, Response)

The providers are currently just manually new'd up, but can be replaced with a DI (or for now probably ServiceLocator) pattern once that's in. The base class wraps the request and response objects in a context so derived types aren't depending on System.Web (they are indirectly for now, but this helps make it easier to redirect stuff in the future).
2020-08-31 14:17:11 -07:00
Peter Williams e641a6db67
Merge pull request #82 from twsouthwick/wms-new-stuff
Update WMS* files with code from VM
2020-08-31 17:09:35 -04:00
Taylor Southwick f1b33a7912 Update WMS* files with code from VM 2020-08-31 11:43:37 -07:00
Peter Williams e0a9e7222e
Merge pull request #80 from twsouthwick/new-project-file
Compile all code in WWTWebservices directory
2020-08-27 09:23:53 -04:00
Peter Williams e78a701721
Merge pull request #79 from twsouthwick/thumbnails
Prefer thumbnails from assembly vs VM backup
2020-08-27 09:22:47 -04:00
Taylor Southwick 66302fdd5d Compile all code in WWTWebservices directory
As part of this, namespaces are brought more in line with casing
(WWTWebservices vs WWTWebServices), and the DataSet from
AstroObjectsDataset.xsd was regenerated.

This also switches this library to the new csproj format which is much simpler.
2020-08-26 19:26:25 -07:00
Taylor Southwick 53f9f50a5a There are duplicate thumbnails from the VM backup and the assembly. For now, we can get the same behavior by placing the thumbnails in separate directories and prefering the ones from the assembly first. 2020-08-26 14:40:43 -07:00
Peter Williams 6ef0c11c44
Merge pull request #78 from twsouthwick/thumbnails
Do not use assembly resources for thumbnails
2020-08-26 16:34:07 -04:00
Peter Williams c7294f2f3a
Merge pull request #77 from twsouthwick/imaging.dll
Add Imaging library as bin for now
2020-08-26 16:29:56 -04:00
Taylor Southwick 6a706bb813 Do not use assembly resources for thumbnails
This removes the searching for assembly resources that
WWTThumbnail.GetThunbnailStream(...) would use and instead just grab
them from disk. The previous thumbnails that were resource streams will
be moved to a data storage for the service.
2020-08-26 11:51:39 -07:00
Taylor Southwick 1cc19172e6 Add Imaging library as bin for now 2020-08-26 11:37:58 -07:00
Peter Williams 7dd27a6bbe
Merge pull request #75 from twsouthwick/simple-aspx-changes
Add new aspx files
2020-08-26 10:12:49 -04:00
Peter Williams 91e0e271e2 WWTMVC5/WWTWeb/SDSS12Toast.aspx: attempt to fix compile errors
I'm on Linux so I can't test 100%, but this file is extremely similar to SDSSToast.aspx
and the errors seem to be basic import issues.
2020-08-26 10:00:42 -04:00
Peter Williams 9cbdc9e1fb
Merge pull request #76 from twsouthwick/catalog-config
Fix up thumbnail and catalog to use different config path
2020-08-26 09:54:26 -04:00
Taylor Southwick 10aa5b7d18 Add new aspx files 2020-08-25 16:52:17 -07:00
Taylor Southwick bb8132c3d6 Fix up thumbnail and catalog to use different config path
Thumbnails and catalog information is being moved outside of the
deployment directory so we need a different config directory for that.
This change also handles some changes for thumbnails so there's a better
default, and includes some missing images in the web publish output.
2020-08-25 16:48:45 -07:00
Peter Williams f6a3f9fbca
Merge pull request #74 from twsouthwick/settings
Add AppSettings, Server settings, and remove Azure Roles
2020-08-25 17:02:41 -04:00
Taylor Southwick 3a89980feb Respond to comments 2020-08-25 13:33:36 -07:00
Taylor Southwick 3826d6f28f Add AppSettings, Server settings, and remove Azure Roles 2020-08-25 11:13:40 -07:00
Peter Williams 00a9f97182
Merge pull request #73 from WorldWideTelescope/config-builders
Add ConfigurationBuilders to project
2020-08-21 20:49:08 -04:00
Taylor Southwick 358914992a Update README 2020-08-21 12:37:10 -07:00
Peter Williams e6d1c09c7a
Merge pull request #72 from WorldWideTelescope/warnings-precompiled
Fix warnings in precompiled files
2020-08-21 14:05:05 -04:00
Peter Williams 1b630e57bf
Merge pull request #71 from pkgw/more-deps
More work on tidying up the web deps
2020-08-21 14:01:33 -04:00
Taylor Southwick d0e0bc87fb Add ConfigurationBuilders to project 2020-08-21 11:00:07 -07:00
Taylor Southwick 9b1f9fb71a Fix warnings in precompiled files 2020-08-21 10:54:01 -07:00
Peter Williams 849c545225
Merge pull request #70 from WorldWideTelescope/precompile
Precompile web application
2020-08-21 11:52:25 -04:00
Taylor Southwick 5cc95d0e79 Add bingdemtile back 2020-08-21 08:30:41 -07:00
Peter Williams 0ca252288e WWTMVC5/package-lock.json: freshen deps 2020-08-21 11:17:12 -04:00
Peter Williams 797d6bfeea WWTMVC5/WWTMVC5.csproj: try to tidy up Bootstrap(.Less) deps 2020-08-21 11:16:15 -04:00
Taylor Southwick e441378b3e Precompile web application 2020-08-21 08:15:28 -07:00
Peter Williams 8a71739874
Merge pull request #69 from WorldWideTelescope/logic-aspx-1
Add a couple of logic changes from VM
2020-08-21 09:01:18 -04:00
Peter Williams 00e541991c
Merge pull request #67 from WorldWideTelescope/clean-up-warnings
Clean up warnings so important issues aren't missed
2020-08-21 08:47:50 -04:00
Peter Williams e751c7b2ea
Merge pull request #66 from WorldWideTelescope/dependabot/nuget/WWTMVC5/bootstrap-3.4.1
Bump bootstrap from 3.3.7 to 3.4.1 in /WWTMVC5
2020-08-21 08:46:37 -04:00
Taylor Southwick 610ce6a6ec Add a couple of logic changes from VM 2020-08-20 11:35:26 -07:00
Taylor Southwick 144123095e Clean up warnings so important issues aren't missed.
This also sets warnings as error on release builds (ie on publishing)
2020-08-20 11:28:53 -07:00
dependabot[bot] 464557c335
Bump bootstrap from 3.3.7 to 3.4.1 in /WWTMVC5
Bumps bootstrap from 3.3.7 to 3.4.1.

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-20 13:15:50 +00:00
Peter Williams 2f21a3e444
Merge pull request #63 from pkgw/bump-deps
WWTMVC5: update npm dependencies
2020-08-20 09:08:35 -04:00
Peter Williams 78a4239111
Merge pull request #65 from WorldWideTelescope/update-project-file
Update project to .NET 4.8 and use PackageReference
2020-08-20 09:07:52 -04:00
Taylor Southwick 15a0649e1a Remove WURFL 2020-08-19 16:35:46 -07:00
Taylor Southwick 9d5b53a989 Fix whitespace 2020-08-19 14:20:30 -07:00