├── .gitignore
├── Images
├── android-add-ref-demo.gif
├── angularjs_add_new_project.png
├── angularjs_hello_app.png
├── angularjs_main_project.png
├── angularjs_my_services.png
├── angularjs_other_projects.png
├── angularjs_service_model.png
├── angularjs_solution.png
├── angularjs_unit_test.png
├── angularjs_unit_test_setup.png
├── empty_project_run.png
├── empty_project_solution.png
├── hello_app_screenshot.png
├── hello_app_screenshot2.png
├── new_project_aspnet_empty.png
├── nuget_update.png
├── search_download.png
├── tools_extensions.png
└── tools_update_nuget.png
├── README.md
├── build.cmd
├── build_ssutil.cmd
├── dist
├── 2018
│ └── ServiceStackVS.vsix
├── 2021
│ └── ServiceStackVS.vsix
├── ServiceStackVS.Archive.vsix
└── ssutil.exe
├── docs
├── angular-spa.md
├── angular2.md
├── aurelia.md
├── empty-aspnet.md
├── fsharp.md
├── react-desktop-apps-ts.md
├── ssutil-readme.md
└── ts-react.md
├── enable_package_restore.png
├── servicestackvs-templates.gif
└── src
├── IntegrationTests.testsettings
├── ServiceStackVS.Archive
├── Key.snk
├── ProjectTemplates
│ ├── AppReactDesktop
│ │ ├── Host
│ │ │ ├── AppHost.cs
│ │ │ ├── Global.asax
│ │ │ ├── Global.asax.cs
│ │ │ ├── Host.csproj
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ ├── AssemblyInfo.cs
│ │ │ │ └── PublishProfiles
│ │ │ │ │ └── PublishToIIS.pubxml
│ │ │ ├── Web.Release.config
│ │ │ ├── Web.config
│ │ │ ├── _preprocess.xml
│ │ │ ├── gulpfile.js
│ │ │ ├── index.template.ejs
│ │ │ ├── npm-shrinkwrap.json
│ │ │ ├── package-lock.json
│ │ │ ├── package.json
│ │ │ ├── packages.config
│ │ │ ├── src
│ │ │ │ ├── app.scss
│ │ │ │ ├── app.tsx
│ │ │ │ ├── assets
│ │ │ │ │ └── img
│ │ │ │ │ │ └── logo.png
│ │ │ │ ├── dtos.ts
│ │ │ │ ├── home
│ │ │ │ │ ├── Hello.test.tsx
│ │ │ │ │ ├── Hello.tsx
│ │ │ │ │ ├── Home.tsx
│ │ │ │ │ └── hello.scss
│ │ │ │ ├── shared.tsx
│ │ │ │ ├── sum.test.ts
│ │ │ │ ├── sum.ts
│ │ │ │ ├── test.fileMock.js
│ │ │ │ ├── test.setup.js
│ │ │ │ ├── test.shim.js
│ │ │ │ ├── view1
│ │ │ │ │ ├── View.tsx
│ │ │ │ │ └── view.css
│ │ │ │ └── view2
│ │ │ │ │ └── View.tsx
│ │ │ ├── tsconfig.json
│ │ │ ├── webpack.config.js
│ │ │ ├── webpack.config.vendor.js
│ │ │ └── wwwroot
│ │ │ │ ├── index.html
│ │ │ │ ├── platform.css
│ │ │ │ └── platform.js
│ │ ├── ReactJSConsole
│ │ │ ├── App.config
│ │ │ ├── AppConsole.csproj
│ │ │ ├── AppHost.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Program.cs
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── logo.ico
│ │ │ ├── packages.config
│ │ │ ├── platform.css
│ │ │ └── platform.js
│ │ ├── ReactJSMac
│ │ │ ├── AppDelegate.cs
│ │ │ ├── AppDelegate.designer.cs
│ │ │ ├── AppHost.cs
│ │ │ ├── Info.plist
│ │ │ ├── MainMenu.xib
│ │ │ ├── MainWindow.cs
│ │ │ ├── MainWindow.designer.cs
│ │ │ ├── MainWindow.xib
│ │ │ ├── MainWindowController.cs
│ │ │ ├── Program.cs
│ │ │ ├── ReactJSMac.csproj
│ │ │ ├── ReactJSMac.sln
│ │ │ ├── logo.icns
│ │ │ ├── packages.config
│ │ │ ├── platform.css
│ │ │ ├── platform.js
│ │ │ └── platform.ts
│ │ ├── ReactJSResources
│ │ │ ├── App.config
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── ReactJSResources.csproj
│ │ │ ├── SharedEmbeddedResources.cs
│ │ │ ├── dist
│ │ │ │ ├── 674f50d287a8c48dc19ba404d20fe713.eot
│ │ │ │ ├── 912ec66d7572ff821749319396470bde.svg
│ │ │ │ ├── app.bundle.js
│ │ │ │ ├── app.css
│ │ │ │ ├── b06871f281fee6b241d60582ae9369b9.ttf
│ │ │ │ ├── img
│ │ │ │ │ └── logo.png
│ │ │ │ ├── vendor-manifest.json
│ │ │ │ ├── vendor.dll.css
│ │ │ │ └── vendor.dll.js
│ │ │ ├── index.html
│ │ │ └── packages.config
│ │ ├── ReactJSWinForms
│ │ │ ├── App.config
│ │ │ ├── AppHost.cs
│ │ │ ├── AppUpdater.cs
│ │ │ ├── FormMain.Designer.cs
│ │ │ ├── FormMain.cs
│ │ │ ├── FormMain.resx
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── NativeHost.cs
│ │ │ ├── Program.cs
│ │ │ ├── Properties
│ │ │ │ ├── AssemblyInfo.cs
│ │ │ │ ├── Resources.Designer.cs
│ │ │ │ ├── Resources.resx
│ │ │ │ ├── Settings.Designer.cs
│ │ │ │ └── Settings.settings
│ │ │ ├── ReactJSWinForms.csproj
│ │ │ ├── logo.ico
│ │ │ ├── packages.config
│ │ │ ├── platform.css
│ │ │ └── platform.js
│ │ ├── ServiceInterface
│ │ │ ├── MyServices.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── ProjectName.ServiceInterface.csproj
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── _preprocess.xml
│ │ │ └── packages.config
│ │ ├── ServiceModel
│ │ │ ├── Hello.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── ProjectName.ServiceModel.csproj
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── _preprocess.xml
│ │ │ └── packages.config
│ │ ├── Test
│ │ │ ├── IntegrationTest.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── ProjectName.Test.csproj
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── UnitTest.cs
│ │ │ ├── _preprocess.xml
│ │ │ └── packages.config
│ │ ├── _Definitions
│ │ │ └── CSharp.vstemplate
│ │ ├── _preprocess.xml
│ │ └── logo.png
│ ├── ReactJS
│ │ ├── Definitions
│ │ │ └── CSharp.vstemplate
│ │ ├── ReactJS
│ │ │ ├── AppHost.cs
│ │ │ ├── Global.asax
│ │ │ ├── Global.asax.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── ReactJS.csproj
│ │ │ ├── Scripts
│ │ │ │ └── _references.js
│ │ │ ├── Web.Debug.config
│ │ │ ├── Web.Release.config
│ │ │ ├── Web.config
│ │ │ ├── _preprocess.xml
│ │ │ ├── bower.json
│ │ │ ├── css
│ │ │ │ └── app.css
│ │ │ ├── default.cshtml
│ │ │ ├── gruntfile.js
│ │ │ ├── js
│ │ │ │ ├── app.jsx
│ │ │ │ └── components
│ │ │ │ │ └── hello.jsx
│ │ │ ├── package.json
│ │ │ ├── packages.config
│ │ │ ├── tests
│ │ │ │ ├── README.txt
│ │ │ │ ├── preprocessor.js
│ │ │ │ └── unit
│ │ │ │ │ └── hello-test.js
│ │ │ └── wwwroot_build
│ │ │ │ ├── 00-install-dependencies.bat
│ │ │ │ ├── README.txt
│ │ │ │ ├── deploy
│ │ │ │ └── appsettings.txt
│ │ │ │ ├── package-and-deploy.bat
│ │ │ │ └── publish
│ │ │ │ └── config.json
│ │ ├── ServiceInterface
│ │ │ ├── MyServices.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── ServiceStackAngularJS.ServiceInterface.csproj
│ │ │ ├── _preprocess.xml
│ │ │ └── packages.config
│ │ ├── ServiceModel
│ │ │ ├── Hello.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── ServiceStackAngularJS.ServiceModel.csproj
│ │ │ ├── _preprocess.xml
│ │ │ └── packages.config
│ │ ├── Test
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── ServiceStackAngularJS.Test.csproj
│ │ │ ├── UnitTests.cs
│ │ │ ├── _preprocess.xml
│ │ │ └── packages.config
│ │ ├── _preprocess.xml
│ │ └── logo.png
│ ├── ReactJSGap
│ │ ├── Definitions
│ │ │ └── CSharp.vstemplate
│ │ ├── ReactJS
│ │ │ ├── AppHost.cs
│ │ │ ├── Global.asax
│ │ │ ├── Global.asax.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── ReactJS.csproj
│ │ │ ├── Scripts
│ │ │ │ └── _references.js
│ │ │ ├── Web.Debug.config
│ │ │ ├── Web.Release.config
│ │ │ ├── Web.config
│ │ │ ├── _preprocess.xml
│ │ │ ├── bower.json
│ │ │ ├── css
│ │ │ │ └── app.css
│ │ │ ├── default.html
│ │ │ ├── gruntfile.js
│ │ │ ├── img
│ │ │ │ └── react-logo.png
│ │ │ ├── js
│ │ │ │ ├── app.jsx
│ │ │ │ ├── components
│ │ │ │ │ └── hello.jsx
│ │ │ │ └── utils.js
│ │ │ ├── package.json
│ │ │ ├── packages.config
│ │ │ ├── platform.css
│ │ │ ├── platform.js
│ │ │ ├── tests
│ │ │ │ ├── README.txt
│ │ │ │ ├── preprocessor.js
│ │ │ │ └── unit
│ │ │ │ │ └── hello-test.js
│ │ │ └── wwwroot_build
│ │ │ │ ├── 00-install-dependencies.bat
│ │ │ │ ├── config-winforms.txt
│ │ │ │ ├── deploy
│ │ │ │ └── appsettings.txt
│ │ │ │ ├── package-deploy-console.bat
│ │ │ │ ├── package-deploy-winforms.bat
│ │ │ │ ├── publish
│ │ │ │ └── config.json
│ │ │ │ └── tools
│ │ │ │ ├── 7za.exe
│ │ │ │ ├── 7zsd_All.sfx
│ │ │ │ ├── 7zsd_All_original.sfx
│ │ │ │ ├── ILMerge.exe
│ │ │ │ └── Licenses.txt
│ │ ├── ReactJSConsole
│ │ │ ├── App.config
│ │ │ ├── AppConsole.csproj
│ │ │ ├── AppHost.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Program.cs
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── logo.ico
│ │ │ ├── packages.config
│ │ │ ├── platform.css
│ │ │ └── platform.js
│ │ ├── ReactJSMac
│ │ │ ├── AppDelegate.cs
│ │ │ ├── AppDelegate.designer.cs
│ │ │ ├── AppHost.cs
│ │ │ ├── Info.plist
│ │ │ ├── MainMenu.xib
│ │ │ ├── MainWindow.cs
│ │ │ ├── MainWindow.designer.cs
│ │ │ ├── MainWindow.xib
│ │ │ ├── MainWindowController.cs
│ │ │ ├── Program.cs
│ │ │ ├── ReactJSMac.csproj
│ │ │ ├── ReactJSMac.sln
│ │ │ ├── logo.icns
│ │ │ ├── packages.config
│ │ │ ├── platform.css
│ │ │ └── platform.js
│ │ ├── ReactJSResources
│ │ │ ├── App.config
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── ReactJSResources.csproj
│ │ │ ├── SharedEmbeddedResources.cs
│ │ │ ├── css
│ │ │ │ └── app.min.css
│ │ │ ├── default.html
│ │ │ ├── img
│ │ │ │ └── react-logo.png
│ │ │ ├── js
│ │ │ │ ├── app.jsx.js
│ │ │ │ └── app.min.js
│ │ │ ├── lib
│ │ │ │ ├── css
│ │ │ │ │ └── lib.min.css
│ │ │ │ ├── fonts
│ │ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ │ ├── glyphicons-halflings-regular.svg
│ │ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ │ │ └── glyphicons-halflings-regular.woff2
│ │ │ │ └── js
│ │ │ │ │ └── lib.min.js
│ │ │ └── packages.config
│ │ ├── ReactJSWinForms
│ │ │ ├── App.config
│ │ │ ├── AppHost.cs
│ │ │ ├── FormMain.Designer.cs
│ │ │ ├── FormMain.cs
│ │ │ ├── FormMain.resx
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── NativeHost.cs
│ │ │ ├── Program.cs
│ │ │ ├── Properties
│ │ │ │ ├── AssemblyInfo.cs
│ │ │ │ ├── Resources.Designer.cs
│ │ │ │ ├── Resources.resx
│ │ │ │ ├── Settings.Designer.cs
│ │ │ │ └── Settings.settings
│ │ │ ├── ReactJSWinForms.csproj
│ │ │ ├── logo.ico
│ │ │ ├── packages.config
│ │ │ ├── platform.css
│ │ │ └── platform.js
│ │ ├── ServiceInterface
│ │ │ ├── MyServices.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── ServiceStack.ServiceInterface.csproj
│ │ │ ├── _preprocess.xml
│ │ │ └── packages.config
│ │ ├── ServiceModel
│ │ │ ├── Hello.cs
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── ServiceStack.ServiceModel.csproj
│ │ │ ├── _preprocess.xml
│ │ │ └── packages.config
│ │ ├── Test
│ │ │ ├── MyTemplate.vstemplate
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── ServiceStack.Test.csproj
│ │ │ ├── UnitTests.cs
│ │ │ ├── _preprocess.xml
│ │ │ └── packages.config
│ │ ├── _preprocess.xml
│ │ └── logo.png
│ └── ReactJS_Gulp
│ │ ├── Definitions
│ │ └── CSharp.vstemplate
│ │ ├── ReactJS
│ │ ├── AppHost.cs
│ │ ├── Global.asax
│ │ ├── Global.asax.cs
│ │ ├── MyTemplate.vstemplate
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── ReactJS.csproj
│ │ ├── Scripts
│ │ │ └── _references.js
│ │ ├── Web.Debug.config
│ │ ├── Web.Release.config
│ │ ├── Web.config
│ │ ├── _preprocess.xml
│ │ ├── css
│ │ │ └── app.css
│ │ ├── default.cshtml
│ │ ├── gulpfile.js
│ │ ├── js
│ │ │ ├── app.jsx
│ │ │ └── components
│ │ │ │ └── hello.jsx
│ │ ├── package.json
│ │ ├── packages.config
│ │ ├── tests
│ │ │ ├── README.txt
│ │ │ ├── preprocessor.js
│ │ │ └── unit
│ │ │ │ └── hello-test.js
│ │ └── wwwroot_build
│ │ │ ├── 00-install-dependencies.bat
│ │ │ ├── README.txt
│ │ │ ├── deploy
│ │ │ └── appsettings.txt
│ │ │ ├── package-and-deploy.bat
│ │ │ └── publish
│ │ │ └── config.json
│ │ ├── ServiceInterface
│ │ ├── MyServices.cs
│ │ ├── MyTemplate.vstemplate
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── ServiceStackAngularJS.ServiceInterface.csproj
│ │ ├── _preprocess.xml
│ │ └── packages.config
│ │ ├── ServiceModel
│ │ ├── Hello.cs
│ │ ├── MyTemplate.vstemplate
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── ServiceStackAngularJS.ServiceModel.csproj
│ │ ├── _preprocess.xml
│ │ └── packages.config
│ │ ├── Test
│ │ ├── MyTemplate.vstemplate
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── ServiceStackAngularJS.Test.csproj
│ │ ├── UnitTests.cs
│ │ ├── _preprocess.xml
│ │ └── packages.config
│ │ ├── _preprocess.xml
│ │ └── logo.png
├── Properties
│ ├── AssemblyInfo.cs
│ └── template-builder.props
├── Resources
│ └── ServiceStackVSArchive.ico
├── ServiceStack.Text.dll
├── ServiceStackVS.Archive.csproj
├── ServiceStackVS.Archive.sln
├── ServiceStackVS.BuildConfigWizard.dll
├── ServiceStackVS.Common.dll
├── ServiceStackVS.ExternalTemplateWizard.dll
├── ServiceStackVS.NPMInstallerWizard.dll
├── ServiceStackVS.NativeTypes.dll
├── ServiceStackVS.NativeTypesWizard.dll
├── ServiceStackVS.NuGetInstallerWizard.dll
├── ServiceStackVSArchive.cs
├── VSPackage.resx
├── icon.png
├── index.html
├── license.txt
├── logo-280.png
├── packages.config
├── source.extension.vsixmanifest
├── stylesheet.css
└── template-report.xml
├── ServiceStackVS.BuildConfigWizard
├── BuildConfigWizard.cs
├── Key.snk
├── Properties
│ └── AssemblyInfo.cs
└── ServiceStackVS.BuildConfigWizard.csproj
├── ServiceStackVS.Common
├── Analytics.cs
├── Extensions.cs
├── Key.snk
├── OutputWindowWriter.cs
├── Properties
│ └── AssemblyInfo.cs
└── ServiceStackVS.Common.csproj
├── ServiceStackVS.ExternalTemplateWizard
├── ExternalTemplateWizard.cs
├── IISExpressAddressWizard.cs
├── Key.snk
├── Properties
│ └── AssemblyInfo.cs
├── README.md
├── ServiceStackVS.ExternalTemplateWizard.csproj
└── app.config
├── ServiceStackVS.NPMInstallerWizard
├── GitBashInstallationPrompt.Designer.cs
├── GitBashInstallationPrompt.cs
├── GitBashInstallationPrompt.resx
├── GitRequiredWizard.cs
├── Key.snk
├── NodeJSInstallationPrompt.Designer.cs
├── NodeJSInstallationPrompt.cs
├── NodeJSInstallationPrompt.resx
├── NodeJSRequiredWizard.cs
├── NodeJsPackageWizard.cs
├── NodePackageUtils.cs
├── Properties
│ ├── Annotations.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── ServiceStackVS.NPMInstallerWizard.csproj
└── favicon.ico
├── ServiceStackVS.NativeTypes
├── CommentParsingUtils.cs
├── Handlers
│ ├── BaseNativeTypesHandler.cs
│ ├── CSharpNativeTypesHandler.cs
│ ├── EsModuleNativeTypesHandler.cs
│ ├── FSharpNativeTypesHandler.cs
│ ├── JavaNativeTypesHandler.cs
│ ├── KotlinNativeTypesHandler.cs
│ ├── SwitfNativeTypesHandler.cs
│ ├── TypeScriptNativeTypesHandler.cs
│ └── VbNetNativeTypesHandler.cs
├── INativeTypesHandler.cs
├── Key.snk
├── NativeTypeHandler.cs
├── Properties
│ └── AssemblyInfo.cs
├── ServiceStackVS.NativeTypes.csproj
└── Types
│ └── MetadataTypes.cs
├── ServiceStackVS.NativeTypesWizard
├── AddServiceStackReference.xaml
├── AddServiceStackReference.xaml.cs
├── Key.snk
├── NativeTypesWizard.cs
├── Properties
│ └── AssemblyInfo.cs
├── Resources
│ ├── Images.png
│ ├── Package.ico
│ ├── ServiceModelTemplate.txt
│ ├── favicon.ico
│ ├── logo-280.png
│ ├── logoAddReference.bmp
│ └── servicestacklogo.ico
└── ServiceStackVS.NativeTypesWizard.csproj
├── ServiceStackVS.NuGetInstallerWizard
├── Key.snk
├── NuGetPackageInstallerMultiProjectWizard.cs
├── NuGetPackageInstallerWizard.cs
├── NuGetWizardDataPackage.cs
├── Properties
│ └── AssemblyInfo.cs
├── README.md
├── ServiceStackVS.NuGetInstallerWizard.csproj
└── WizardDataExtensions.cs
├── ServiceStackVS.TemplateTests
├── DocumentExtensionTests.cs
├── NativeTypeUrlTests.cs
├── Properties
│ └── AssemblyInfo.cs
└── ServiceStackVS.Tests.csproj
├── ServiceStackVS.TestUtility
├── Capture.cs
├── Mocks
│ ├── EventMemoryStream.cs
│ ├── MockFileSystem.cs
│ ├── MockPackageCacheRepository.cs
│ ├── MockPackageRepository.cs
│ ├── MockProjectSystem.cs
│ ├── MockServiceBasePackageRepository.cs
│ └── MockSharedPackageRepository.cs
├── PackageUtility.cs
├── PathFixUtility.cs
├── Properties
│ └── AssemblyInfo.cs
├── ServiceStackVS.TestUtility.csproj
└── packages.config
├── ServiceStackVS.sln
├── ServiceStackVS
├── FileHandlers
│ └── DocumentSavedHandlers.cs
├── GlobalSuppressions.cs
├── Guids.cs
├── ItemTemplates
│ ├── NativeTypes
│ │ ├── CSharpTypeScriptRef
│ │ │ ├── Definitions
│ │ │ │ └── CSharp.vstemplate
│ │ │ ├── _preprocess.xml
│ │ │ ├── logo.png
│ │ │ └── template.ts
│ │ ├── FSharpTypeScriptRef
│ │ │ ├── Definitions
│ │ │ │ └── FSharp.vstemplate
│ │ │ ├── _preprocess.xml
│ │ │ ├── logo.png
│ │ │ └── template.ts
│ │ └── VbNetTypeScriptRef
│ │ │ ├── Definitions
│ │ │ └── VB.vstemplate
│ │ │ ├── _preprocess.xml
│ │ │ ├── logo.png
│ │ │ └── template.ts
│ └── Razor
│ │ └── CSharpRazor
│ │ ├── Definitions
│ │ └── CSharp.vstemplate
│ │ ├── _preprocess.xml
│ │ ├── logo.png
│ │ └── razor.cshtml
├── Key.snk
├── NativeTypeExtensions.cs
├── PkgCmdID.cs
├── Properties
│ ├── AssemblyInfo.cs
│ └── template-builder.props
├── Resources.Designer.cs
├── Resources.resx
├── Resources
│ ├── Images.png
│ ├── Package.ico
│ ├── ServiceModelTemplate.txt
│ ├── favicon.ico
│ ├── logo-280.png
│ ├── logo-48.png
│ ├── logoAddReference.bmp
│ └── servicestacklogo.ico
├── ServiceStackVS.csproj
├── ServiceStackVSPackage.cs
├── Settings
│ └── ServiceStackOptionsDialogGrid.cs
├── SolutionEvents.cs
├── TemplateBuilder.dll
├── Thumbs.db
├── VSIXUtils.cs
├── VSPackage.resx
├── VSServiceStack.vsct
├── VSServiceStack_IntegrationTests
│ ├── IntegrationTest Library
│ │ ├── DialogboxPurger.cs
│ │ ├── NativeMethods.cs
│ │ └── Utils.cs
│ ├── Key.snk
│ ├── MenuItemTest.cs
│ ├── PackageTest.cs
│ ├── ServiceStackVS_IntegrationTests.csproj
│ └── SignOff-Tests
│ │ ├── CPPProjectTests.cs
│ │ ├── CSharpProjectTests.cs
│ │ ├── SolutionTests.cs
│ │ └── VBProjectTests.cs
├── VSServiceStack_UnitTests
│ ├── Key.snk
│ ├── PackageTest.cs
│ ├── ServiceStackVS_UnitTests.csproj
│ └── packages.config
├── VsixDocumentExtensions.cs
├── icon.png
├── license.txt
├── logo-200.png
├── logo-280.png
├── logo-32.png
├── logo.png
├── logoAddReference.png
├── preview-image.png
├── source.extension.vsixmanifest
└── template-report.xml
├── ServiceStackXS.sln
├── ServiceStackXS
├── Commands
│ ├── AddReferenceHandler.cs
│ └── UpdateReferenceHandler.cs
├── Conditions
│ └── ServiceReferenceDtoCondition.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Manifest.addin.xml
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── README.MD
├── ReleaseNotes.txt
├── ServiceStackXS.ServiceStack.ServiceStackXS_0.3.mpack
├── ServiceStackXS.ServiceStackXS_0.1.mpack
├── ServiceStackXS.ServiceStackXS_0.2.mpack
├── ServiceStackXS.csproj
├── UI
│ ├── AddReferenceDialog.cs
│ ├── SettingOptionsPanel.cs
│ └── SettingsWidget.cs
├── Utils
│ └── Analytics.cs
├── add-ref-item.png
├── favicon.ico
├── gtk-gui
│ ├── ServiceStackXS.AddReferenceDialog.cs
│ ├── ServiceStackXS.SettingsWidget.cs
│ ├── generated.cs
│ └── gui.stetic
├── lib
│ ├── Microsoft.Web.XmlTransform.dll
│ ├── MonoDevelop.PackageManagement.dll
│ ├── NuGet-LICENSE.txt
│ └── NuGet.Core.dll
├── logo_32x32.png
├── package.bat
├── packages.config
└── servicestack-project-icon.png
├── UnitTests.testsettings
├── addin-project.xml
├── lib
├── VSSDK
│ ├── Microsoft.VsSDK.Build.Tasks.dll
│ ├── Microsoft.VsSDK.Common.props
│ ├── Microsoft.VsSDK.Common.targets
│ ├── Microsoft.VsSDK.Cpp.Overrides.targets
│ ├── Microsoft.VsSDK.Cpp.targets
│ ├── Microsoft.VsSDK.targets
│ └── ProjectItemsSchema.xml
└── vssdk_tools
│ ├── ConvertCTCToVSCT.pl
│ ├── CreateExpInstance.exe
│ ├── CreateExpInstance.exe.config
│ ├── CreatePkgDef.exe
│ ├── CreatePkgDef.exe.config
│ ├── ImageLibraryViewer.exe
│ ├── ImageLibraryViewer.exe.config
│ ├── ManifestFromResources.exe
│ ├── ManifestToCode.exe
│ ├── Microsoft.VSDebugger.Native.targets
│ ├── Microsoft.VSDebugger.targets
│ ├── Microsoft.VisualStudio.Pkgdef.dll
│ ├── Microsoft.VisualStudio.Shell.Framework.dll
│ ├── Microsoft.VisualStudio.Shell.Immutable.10.0.dll
│ ├── PackageWizard.dll
│ ├── RegPkg.exe
│ ├── RegPkg.exe.config
│ ├── RegRiched20.exe
│ ├── SetEngineLogMode.cmd
│ ├── VSCTCompress.dll
│ ├── VSCTLibrary.dll
│ ├── VsixColorCompiler.exe
│ ├── VsixColorCompiler.exe.config
│ ├── VsixColorEditor.exe
│ ├── VsixColorEditor.exe.config
│ ├── vsct.exe
│ └── vsdconfigtool.exe
├── ssutil-cli.Tests
├── CliTests.cs
├── ProcessHandlerTests.cs
├── Properties
│ └── AssemblyInfo.cs
├── TestDtos
│ ├── ServiceStackRef.dtos.cs
│ ├── ServiceStackRefInvalidUrl.dtos.cs
│ ├── ServiceStackRef_Update.dtos.cs
│ ├── ServiceStackRef_Update.dtos.d.ts
│ ├── ServiceStackRef_Update.dtos.fs
│ ├── ServiceStackRef_Update.dtos.swift
│ ├── ServiceStackRef_Update.dtos.ts
│ ├── ServiceStackRef_Update.dtos.vb
│ ├── ServiceStackRef_Update.java
│ └── ServiceStackRef_Update.kt
├── packages.config
└── ssutil-cli.Tests.csproj
├── ssutil-cli.sln
└── ssutil-cli
├── App.config
├── Mono.Options-PCL.cs
├── ProcessModeHandler.cs
├── Program.cs
├── Properties
└── AssemblyInfo.cs
├── README.MD
├── UtilCliOptions.cs
├── lib
├── ServiceStack.Text.dll
└── ServiceStackVS.NativeTypes.dll
├── package
├── generate-update-tests.bat
├── merge.bat
└── ssutil.exe
├── packages.config
├── ssutil-cli.csproj
└── tools
├── ILMerge License.rtf
└── ILMerge.exe
/Images/android-add-ref-demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/android-add-ref-demo.gif
--------------------------------------------------------------------------------
/Images/angularjs_add_new_project.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/angularjs_add_new_project.png
--------------------------------------------------------------------------------
/Images/angularjs_hello_app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/angularjs_hello_app.png
--------------------------------------------------------------------------------
/Images/angularjs_main_project.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/angularjs_main_project.png
--------------------------------------------------------------------------------
/Images/angularjs_my_services.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/angularjs_my_services.png
--------------------------------------------------------------------------------
/Images/angularjs_other_projects.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/angularjs_other_projects.png
--------------------------------------------------------------------------------
/Images/angularjs_service_model.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/angularjs_service_model.png
--------------------------------------------------------------------------------
/Images/angularjs_solution.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/angularjs_solution.png
--------------------------------------------------------------------------------
/Images/angularjs_unit_test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/angularjs_unit_test.png
--------------------------------------------------------------------------------
/Images/angularjs_unit_test_setup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/angularjs_unit_test_setup.png
--------------------------------------------------------------------------------
/Images/empty_project_run.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/empty_project_run.png
--------------------------------------------------------------------------------
/Images/empty_project_solution.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/empty_project_solution.png
--------------------------------------------------------------------------------
/Images/hello_app_screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/hello_app_screenshot.png
--------------------------------------------------------------------------------
/Images/hello_app_screenshot2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/hello_app_screenshot2.png
--------------------------------------------------------------------------------
/Images/new_project_aspnet_empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/new_project_aspnet_empty.png
--------------------------------------------------------------------------------
/Images/nuget_update.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/nuget_update.png
--------------------------------------------------------------------------------
/Images/search_download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/search_download.png
--------------------------------------------------------------------------------
/Images/tools_extensions.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/tools_extensions.png
--------------------------------------------------------------------------------
/Images/tools_update_nuget.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/Images/tools_update_nuget.png
--------------------------------------------------------------------------------
/build.cmd:
--------------------------------------------------------------------------------
1 | set VSToolsPath=C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0
2 |
3 | %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild .\src\ServiceStackVS\ServiceStackVS.csproj /t:Build /p:Configuration=Release /p:TargetFramework=v4.5 /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
4 |
5 | xcopy "src\ServiceStackVS\\bin\Release\ServiceStackVS.vsix" "dist" /b/v/y
--------------------------------------------------------------------------------
/build_ssutil.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild .\src\ssutil-cli\ssutil-cli.csproj /t:Build /p:Configuration=Release /p:TargetFramework=v4.5 /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
4 |
5 | start /D "src\ssutil-cli\package\" /wait merge.bat
6 |
7 | xcopy "src\ssutil-cli\package\ssutil.exe" "dist" /b/v/y
--------------------------------------------------------------------------------
/dist/2018/ServiceStackVS.vsix:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/dist/2018/ServiceStackVS.vsix
--------------------------------------------------------------------------------
/dist/2021/ServiceStackVS.vsix:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/dist/2021/ServiceStackVS.vsix
--------------------------------------------------------------------------------
/dist/ServiceStackVS.Archive.vsix:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/dist/ServiceStackVS.Archive.vsix
--------------------------------------------------------------------------------
/dist/ssutil.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/dist/ssutil.exe
--------------------------------------------------------------------------------
/enable_package_restore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/enable_package_restore.png
--------------------------------------------------------------------------------
/servicestackvs-templates.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/servicestackvs-templates.gif
--------------------------------------------------------------------------------
/src/IntegrationTests.testsettings:
--------------------------------------------------------------------------------
1 |
2 |
7 | This test run configuration uses the VS IDE host type in the test run.
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/AppHost.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Funq;
3 | using $safeprojectname$.ServiceInterface;
4 | using ServiceStack;
5 | using ServiceStack.Configuration;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public class AppHost : AppHostBase
10 | {
11 | ///
12 | /// Base constructor requires a Name and Assembly where web service implementation is located
13 | ///
14 | public AppHost()
15 | : base("$safeprojectname$", typeof(MyServices).Assembly) {}
16 |
17 | ///
18 | /// Application specific configuration
19 | /// This method should initialize any Plugins or IOC dependencies used by your web services
20 | ///
21 | public override void Configure(Container container)
22 | {
23 | SetConfig(new HostConfig
24 | {
25 | DebugMode = AppSettings.Get("DebugMode", false),
26 | WebHostPhysicalPath = MapProjectPath("~/wwwroot"),
27 | DefaultContentType = MimeTypes.Json,
28 | AddRedirectParamsToQueryString = true,
29 | UseCamelCase = true,
30 | });
31 |
32 | Plugins.Add(new SharpPagesFeature());
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="$safeprojectname$.Global" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Security;
6 | using System.Web.SessionState;
7 |
8 | namespace $safeprojectname$
9 | {
10 | public class Global : System.Web.HttpApplication
11 | {
12 | protected void Application_Start(object sender, EventArgs e)
13 | {
14 | new AppHost().Init();
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("$safeprojectname$")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("$safeprojectname$")]
13 | [assembly: AssemblyCopyright("Copyright (c) 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Revision and Build Numbers
30 | // by using the '*' as shown below:
31 | [assembly: AssemblyVersion("1.0.0")]
32 | [assembly: AssemblyFileVersion("1.0.0")]
33 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/index.template.ejs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | $safeprojectname$
8 | {{ ifDebug | select: }}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/app.scss:
--------------------------------------------------------------------------------
1 | $navbar-background: darken(#00d8ff, 20%);
2 | $emphasis-text-color: lighten($navbar-background, 5%);
3 |
4 | body {
5 | }
6 | .platform, ul > li.platform {
7 | display: none;
8 | }
9 | a {
10 | cursor: pointer;
11 | color: $emphasis-text-color;
12 | }
13 | .navbar {
14 | border-radius: 0;
15 | background: $navbar-background !important;
16 | }
17 | .navbar-brand {
18 | line-height: 24px;
19 | }
20 | .navbar-brand img {
21 | float: left;
22 | }
23 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/assets/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/assets/img/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/dtos.ts:
--------------------------------------------------------------------------------
1 | /* Options:
2 | Date: 2017-11-08 04:44:10
3 | Version: 5.00
4 | Tip: To override a DTO option, remove "//" prefix before updating
5 | BaseUrl: http://localhost:$iisexpressport$
6 |
7 | //GlobalNamespace:
8 | //MakePropertiesOptional: True
9 | //AddServiceStackTypes: True
10 | //AddResponseStatus: False
11 | //AddImplicitVersion:
12 | //AddDescriptionAsComments: True
13 | //IncludeTypes:
14 | //ExcludeTypes:
15 | //DefaultImports:
16 | */
17 |
18 |
19 | export interface IReturn
20 | {
21 | createResponse() : T;
22 | }
23 |
24 | export interface IReturnVoid
25 | {
26 | createResponse() : void;
27 | }
28 |
29 | export class HelloResponse
30 | {
31 | result: string;
32 | }
33 |
34 | // @Route("/hello")
35 | // @Route("/hello/{Name}")
36 | export class Hello implements IReturn
37 | {
38 | name: string;
39 | createResponse() { return new HelloResponse(); }
40 | getTypeName() { return "Hello"; }
41 | }
42 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/home/Hello.test.tsx:
--------------------------------------------------------------------------------
1 | import * as React from 'react';
2 | import * as ReactDOM from 'react-dom';
3 | import { shallow, mount, render } from 'enzyme';
4 |
5 | import Hello from './Hello';
6 |
7 | describe('', () => {
8 |
9 | it ('Updates heading on setState', done => {
10 | const el = shallow();
11 |
12 | expect(el.find('h3').text()).toBe("");
13 |
14 | el.setState({ result: 'A' }, () => {
15 | expect(el.update().find('h3.result').text()).toBe("A");
16 | done();
17 | });
18 | });
19 |
20 | it ('Updates heading on update', async () => {
21 | const el = shallow();
22 |
23 | expect(el.find('h3').text()).toBe("");
24 |
25 | await (el.instance() as Hello).nameChanged('A');
26 |
27 | expect(el.update().find('h3').text()).toBe("Hello, A!");
28 | });
29 |
30 | it ('Updates heading on keyDown', done => {
31 | const el = shallow();
32 |
33 | expect(el.find('h3').text()).toBe("");
34 |
35 | el.find('input').simulate('change', { target: { value: 'A' } });
36 |
37 | setTimeout(() => {
38 | expect(el.update().find('h3').text()).toBe("Hello, A!");
39 | done();
40 | }, 100);
41 | });
42 |
43 | });
44 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/home/Hello.tsx:
--------------------------------------------------------------------------------
1 | import './hello.scss';
2 |
3 | import * as React from 'react';
4 | import * as ReactDOM from 'react-dom';
5 | import { client } from '../shared';
6 | import { Hello } from '../dtos';
7 |
8 | export default class HelloComponent extends React.Component {
9 | constructor(props, context) {
10 | super(props, context);
11 | this.state = { result: '' };
12 | }
13 |
14 | componentDidMount() {
15 | this.nameChanged(this.props.name);
16 | }
17 |
18 | async nameChanged(name:string) {
19 | if (name) {
20 | let request = new Hello();
21 | request.name = name;
22 | let r = await client.get(request);
23 | this.setState({ result: r.result });
24 | } else {
25 | this.setState({ result: '' });
26 | }
27 | }
28 |
29 | render() {
30 | return (
31 |
32 | this.nameChanged((e.target as HTMLInputElement).value)} />
35 |
{this.state.result}
36 | );
37 | }
38 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/home/Home.tsx:
--------------------------------------------------------------------------------
1 | import * as React from 'react';
2 | import Hello from './Hello';
3 |
4 | export default class Home extends React.Component {
5 | constructor(props, context) {
6 | super(props, context);
7 | }
8 |
9 | render() {
10 | return ();
11 | }
12 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/home/hello.scss:
--------------------------------------------------------------------------------
1 | /* sass example */
2 | @import '../app.scss';
3 |
4 | .result {
5 | margin: 10px;
6 | color: $emphasis-text-color;
7 | }
8 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/shared.tsx:
--------------------------------------------------------------------------------
1 | import * as React from 'react';
2 | import * as cls from 'classnames';
3 | import { Route, Link, withRouter } from 'react-router-dom';
4 | import { JsonServiceClient } from '@servicestack/client';
5 |
6 | declare var global; //populated from package.json/jest
7 |
8 | export var client = new JsonServiceClient(global.BaseUrl || '/');
9 |
10 | @withRouter
11 | export class NavItem extends React.Component {
12 |
13 | render () {
14 | const { to, location, children, ...props } = this.props;
15 | const active = location.pathname === to;
16 |
17 | return (
18 |
19 | {children}
20 |
21 | )
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/sum.test.ts:
--------------------------------------------------------------------------------
1 | import { sum } from './sum';
2 |
3 | it ('adds 1 + 2 to equal 3 in TypeScript', () => {
4 | expect(sum(1, 2)).toBe(3);
5 | });
6 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/sum.ts:
--------------------------------------------------------------------------------
1 | export function sum(a:number, b:number) {
2 | return a + b;
3 | }
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/test.fileMock.js:
--------------------------------------------------------------------------------
1 | module.exports = 'test-file-stub';
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/test.setup.js:
--------------------------------------------------------------------------------
1 | var enzyme = require('enzyme');
2 | var Adapter = require('enzyme-adapter-react-16');
3 |
4 | enzyme.configure({ adapter: new Adapter() });
5 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/test.shim.js:
--------------------------------------------------------------------------------
1 | global.requestAnimationFrame = function(callback) {
2 | setTimeout(callback, 0);
3 | };
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/view1/View.tsx:
--------------------------------------------------------------------------------
1 | import './view.css';
2 |
3 | import * as React from 'react';
4 |
5 | const View = (props) => (
6 |
7 |
{props.message}
8 |
9 | );
10 |
11 | export default () => ;
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/view1/view.css:
--------------------------------------------------------------------------------
1 | /* css example */
2 | #view1 h3 {
3 | color: #008299;
4 | text-shadow: 2px 2px 3px rgba(0,0,0,0.2);
5 | }
6 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/src/view2/View.tsx:
--------------------------------------------------------------------------------
1 | import * as React from 'react';
2 |
3 | const View = (props) => (
4 |
5 |
{props.message}
6 |
7 | );
8 |
9 | export default () => ;
10 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "noImplicitAny": false,
4 | "noEmitOnError": true,
5 | "removeComments": false,
6 | "sourceMap": true,
7 | "target": "es5",
8 | "module": "commonjs",
9 | "jsx": "react",
10 | "experimentalDecorators": true,
11 | "lib": [ "es2015", "dom" ]
12 | },
13 | "exclude": [
14 | "dist",
15 | "node_modules",
16 | "wwwroot"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/wwwroot/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | $safeprojectname$
8 | {{ ifDebug | select: }}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/wwwroot/platform.css:
--------------------------------------------------------------------------------
1 | /* web */
2 | .web, ul > li.web {
3 | display: block;
4 | }
5 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Host/wwwroot/platform.js:
--------------------------------------------------------------------------------
1 | document.documentElement.className += ' web';
2 | window.nativeHost = {
3 | quit: function () {
4 | window.close();
5 | },
6 | showAbout: function () {
7 | alert("$safeprojectname$ - ServiceStack + React");
8 | },
9 | ready: function () { },
10 | toggleFormBorder: function () { }
11 | };
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSConsole/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSConsole/Program.cs:
--------------------------------------------------------------------------------
1 | using ServiceStack;
2 | using ServiceStack.Text;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Diagnostics;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading;
9 | using System.Threading.Tasks;
10 |
11 | namespace $safeprojectname$
12 | {
13 | static class Program
14 | {
15 | public static string HostUrl = "http://localhost:2337/";
16 |
17 | ///
18 | /// The main entry point for the application
19 | ///
20 | [STAThread]
21 | static void Main(string[] args)
22 | {
23 | new AppHost().Init().Start("http://*:2337/");
24 | "ServiceStack SelfHost listening at {0}".Fmt(HostUrl).Print();
25 | Process.Start(HostUrl);
26 |
27 | Thread.Sleep(Timeout.Infinite);
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSConsole/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("$safeprojectname$")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("$safeprojectname$")]
13 | [assembly: AssemblyCopyright("Copyright (c) 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Revision and Build Numbers
30 | // by using the '*' as shown below:
31 | [assembly: AssemblyVersion("1.0.0.0")]
32 | [assembly: AssemblyFileVersion("1.0.0.0")]
33 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSConsole/logo.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSConsole/logo.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSConsole/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSConsole/platform.css:
--------------------------------------------------------------------------------
1 | /* console */
2 | .console, ul > li.console {
3 | display: block;
4 | }
5 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSConsole/platform.js:
--------------------------------------------------------------------------------
1 | /* console */
2 | document.documentElement.className += ' console';
3 | window.nativeHost = {
4 | quit: function () {
5 | var r = new XMLHttpRequest();
6 | r.open("POST", "/nativehost/quit", true);
7 | r.onreadystatechange = function () {
8 | if (r.readyState != 4 || r.status != 200)
9 | return;
10 | window.close();
11 | };
12 | r.send("");
13 | },
14 | showAbout: function () {
15 | alert('ServiceStack SelfHost Console + React');
16 | },
17 | ready: function () {
18 | //
19 | },
20 | platform: 'console'
21 | };
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using CoreGraphics;
3 | using Foundation;
4 | using AppKit;
5 | using ObjCRuntime;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public partial class AppDelegate : NSApplicationDelegate
10 | {
11 | public static MainWindowController MainWindowController;
12 |
13 | public AppDelegate(){}
14 |
15 | public override void DidFinishLaunching (NSNotification notification)
16 | {
17 | #if DEBUG
18 | //Enable WebInspector in WebView
19 | var defaults = NSUserDefaults.StandardUserDefaults;
20 | defaults.SetBool(true, "WebKitDeveloperExtras");
21 | defaults.Synchronize();
22 | #endif
23 | MainWindowController = new MainWindowController();
24 | MainWindowController.Window.MakeKeyAndOrderFront(this);
25 | }
26 | }
27 | }
28 |
29 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/AppDelegate.designer.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace $safeprojectname$
3 | {
4 | // Should subclass MonoMac.AppKit.NSResponder
5 | [Foundation.Register ("AppDelegate")]
6 | public partial class AppDelegate
7 | {
8 | }
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/MainWindow.cs:
--------------------------------------------------------------------------------
1 |
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using Foundation;
6 | using AppKit;
7 |
8 | namespace $safeprojectname$
9 | {
10 | public partial class MainWindow : AppKit.NSWindow
11 | {
12 | #region Constructors
13 |
14 | // Called when created from unmanaged code
15 | public MainWindow (IntPtr handle) : base (handle)
16 | {
17 | Initialize ();
18 | }
19 |
20 | // Called when created directly from a XIB file
21 | [Export ("initWithCoder:")]
22 | public MainWindow (NSCoder coder) : base (coder)
23 | {
24 | Initialize ();
25 | }
26 |
27 | // Shared initialization code
28 | void Initialize ()
29 | {
30 | }
31 |
32 | #endregion
33 |
34 | public override void AwakeFromNib()
35 | {
36 | base.AwakeFromNib ();
37 | Program.MainMenu = NSApplication.SharedApplication.MainMenu;
38 | webView.MainFrameUrl = Program.HostUrl;
39 | webView.Frame = new CoreGraphics.CGRect(0,0,this.Frame.Width,this.Frame.Height);
40 | this.DidResize += (sender, e) => {
41 | webView.Frame = new CoreGraphics.CGRect(0,0,this.Frame.Width,this.Frame.Height);
42 | };
43 | }
44 | }
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/MainWindow.designer.cs:
--------------------------------------------------------------------------------
1 | // WARNING
2 | //
3 | // This file has been generated automatically by Xamarin Studio to store outlets and
4 | // actions made in the UI designer. If it is removed, they will be lost.
5 | // Manual changes to this file may not be handled correctly.
6 | //
7 | using Foundation;
8 | using System.CodeDom.Compiler;
9 |
10 | namespace $safeprojectname$
11 | {
12 | [Register ("MainWindow")]
13 | partial class MainWindow
14 | {
15 | [Outlet]
16 | WebKit.WebView webView { get; set; }
17 |
18 | void ReleaseDesignerOutlets ()
19 | {
20 | if (webView != null) {
21 | webView.Dispose ();
22 | webView = null;
23 | }
24 | }
25 | }
26 |
27 | [Register ("MainWindowController")]
28 | partial class MainWindowController
29 | {
30 |
31 | void ReleaseDesignerOutlets ()
32 | {
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using CoreGraphics;
3 | using Foundation;
4 | using AppKit;
5 | using ObjCRuntime;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public static class Program
10 | {
11 | public static string HostUrl = "http://localhost:2337/";
12 |
13 | public static AppHost App;
14 | public static NSMenu MainMenu;
15 |
16 | static void Main (string[] args)
17 | {
18 | System.Web.Util.HttpEncoder.Current = System.Web.Util.HttpEncoder.Default;
19 |
20 | App = new AppHost();
21 | App.Init().Start("http://*:2337/");
22 |
23 | NSApplication.Init();
24 | NSApplication.Main(args);
25 | }
26 | }
27 | }
28 |
29 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/logo.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/logo.icns
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/platform.css:
--------------------------------------------------------------------------------
1 | /* mac */
2 | .mac, ul > li.mac {
3 | display: block;
4 | }
5 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/platform.js:
--------------------------------------------------------------------------------
1 | /* mac */
2 | document.documentElement.className += ' mac';
3 | window.nativeHost = {
4 | quit: function () {
5 | post('/nativehost/quit');
6 | },
7 | showAbout: function () {
8 | post('/nativehost/showAbout');
9 | },
10 | ready: function () {
11 | //
12 | },
13 | platform: 'mac'
14 | };
15 |
16 | function post(url, data, callback) {
17 | var r = new XMLHttpRequest();
18 | r.open("POST", url, true);
19 | r.onreadystatechange = function () {
20 | if (r.readyState != 4 || r.status != 200)
21 | return;
22 | callback(r.responseText);
23 | };
24 | r.send(data);
25 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSMac/platform.ts:
--------------------------------------------------------------------------------
1 | class MacNativeHost {
2 | showAbout() {
3 | alert("ReactDesktopTest - ServiceStack + ReactJS");
4 | }
5 |
6 | toggleFormBorder() {}
7 |
8 | quit() {
9 | window.close();
10 | }
11 |
12 | ready() {}
13 | }
14 |
15 | window['nativeHost'] = window['nativeHost'] || new MacNativeHost();
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("$safeprojectname$")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("$safeprojectname$")]
13 | [assembly: AssemblyCopyright("Copyright (c) 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Revision and Build Numbers
30 | // by using the '*' as shown below:
31 | [assembly: AssemblyVersion("1.0.0.0")]
32 | [assembly: AssemblyFileVersion("1.0.0.0")]
33 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/SharedEmbeddedResources.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public class SharedEmbeddedResources { }
10 | }
11 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/674f50d287a8c48dc19ba404d20fe713.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/674f50d287a8c48dc19ba404d20fe713.eot
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/912ec66d7572ff821749319396470bde.svg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/912ec66d7572ff821749319396470bde.svg
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/app.bundle.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/app.bundle.js
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/app.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/app.css
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/b06871f281fee6b241d60582ae9369b9.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/b06871f281fee6b241d60582ae9369b9.ttf
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/img/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/vendor-manifest.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/vendor-manifest.json
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/vendor.dll.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/vendor.dll.css
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/vendor.dll.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/dist/vendor.dll.js
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/index.html
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSResources/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSWinForms/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSWinForms/AppHost.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading.Tasks;
3 | using System.IO;
4 | using Funq;
5 | using ServiceStack;
6 | using Squirrel;
7 | using $saferootprojectname$.Resources;
8 | using $saferootprojectname$.ServiceInterface;
9 |
10 | namespace $safeprojectname$
11 | {
12 | public class AppHost : AppSelfHostBase
13 | {
14 | public AppHost()
15 | : base("$safeprojectname$", typeof(MyServices).Assembly) {}
16 |
17 | public override void Configure(Container container)
18 | {
19 | SetConfig(new HostConfig {
20 | DebugMode = true,
21 | EmbeddedResourceBaseTypes = { typeof(AppHost), typeof(SharedEmbeddedResources) },
22 | UseCamelCase = true,
23 | });
24 |
25 | Plugins.Add(new TemplatePagesFeature());
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSWinForms/FormMain.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 | using CefSharp;
4 | using CefSharp.WinForms;
5 | using CefSharp.WinForms.Internals;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public partial class FormMain : Form
10 | {
11 | public ChromiumWebBrowser ChromiumBrowser { get; private set; }
12 | public FormMain()
13 | {
14 | InitializeComponent();
15 | VerticalScroll.Visible = false;
16 |
17 | ChromiumBrowser = new ChromiumWebBrowser(Program.HostUrl)
18 | {
19 | Dock = DockStyle.Fill
20 | };
21 |
22 | Controls.Add(ChromiumBrowser);
23 |
24 | Load += (sender, args) =>
25 | {
26 | FormBorderStyle = FormBorderStyle.None;
27 | Left = Top = 0;
28 | Width = Screen.PrimaryScreen.WorkingArea.Width;
29 | Height = Screen.PrimaryScreen.WorkingArea.Height;
30 | };
31 |
32 | ChromiumBrowser.RegisterJsObject("nativeHost", new NativeHost(this));
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSWinForms/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.0
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSWinForms/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSWinForms/logo.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSWinForms/logo.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSWinForms/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSWinForms/platform.css:
--------------------------------------------------------------------------------
1 | /* winforms */
2 | winforms, ul > li.winforms {
3 | display: block;
4 | }
5 | body {
6 | -webkit-touch-callout: none;
7 | -webkit-user-select: none;
8 | user-select: none;
9 | }
10 |
11 | .alert-hide {
12 | display: none;
13 | }
14 |
15 | #alertUpdate {
16 | position: absolute;
17 | width: 100%;
18 | top: 0;
19 | border-radius: 0;
20 | box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.3);
21 | }
22 | #closeUpdate {
23 | position: absolute;
24 | right: 45px;
25 | top: 10px;
26 | font-size: 24px;
27 | cursor: pointer;
28 | }
29 | #alertUpdate button {
30 | position: absolute;
31 | right: 70px;
32 | padding: 5px 20px;
33 | top: 8px;
34 | font-size: 14px;
35 | }
36 |
37 | #footer-spacer {
38 | min-height: 40px;
39 | width: 100%;
40 | }
41 |
42 | #footer {
43 | position: absolute;
44 | bottom: 0;
45 | width: 100%;
46 | }
47 |
48 | .winforms #console {
49 | height: 300px;
50 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ReactJSWinForms/platform.js:
--------------------------------------------------------------------------------
1 | /* winforms */
2 | document.documentElement.className += ' winforms';
3 |
4 | document.write('Update available! ' +
5 | '×' +
6 | '' +
7 | '
');
8 |
9 | window.updateAvailable = function () {
10 | setTimeout(function () {
11 | document.getElementById("alertUpdate").style.display = 'block';
12 | }, 500);
13 | };
14 | window.updateNow = function () {
15 | setTimeout(function () {
16 | document.getElementById("alertUpdate").innerHTML = 'Applying update.. Please wait, application will restart..';
17 | }, 500);
18 | window.nativeHost.performUpdate();
19 | };
20 | window.closeUpdate = function (e) {
21 | document.getElementById("alertUpdate").style.display = 'none';
22 | };
23 |
24 | window.onresize = function () {
25 | console.log('onresize');
26 | document.getElementById("content").style.height = '85%';
27 | setTimeout(function () {
28 | document.getElementById("content").style.height = '100%';
29 | }, 0);
30 | };
31 |
32 | window.nativeHost.ready();
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ServiceInterface/MyServices.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using ServiceStack;
5 | using ServiceStack.Script;
6 | using ServiceStack.DataAnnotations;
7 | using $saferootprojectname$.ServiceModel;
8 |
9 | namespace $safeprojectname$
10 | {
11 | [Exclude(Feature.Metadata)]
12 | [FallbackRoute("/{PathInfo*}", Matches="AcceptsHtml")]
13 | public class FallbackForClientRoutes
14 | {
15 | public string PathInfo { get; set; }
16 | }
17 |
18 | public class MyServices : Service
19 | {
20 | //Return index.html for unmatched requests so routing is handled on client
21 | public object Any(FallbackForClientRoutes request) =>
22 | new PageResult(Request.GetPage("/"));
23 |
24 | public object Any(Hello request)
25 | {
26 | return new HelloResponse { Result = $"Hello, {request.Name}!" };
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ServiceInterface/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("$safeprojectname$")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("$safeprojectname$")]
13 | [assembly: AssemblyCopyright("Copyright (c) 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Revision and Build Numbers
30 | // by using the '*' as shown below:
31 | [assembly: AssemblyVersion("1.0.0.0")]
32 | [assembly: AssemblyFileVersion("1.0.0.0")]
33 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ServiceInterface/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ServiceInterface/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ServiceModel/Hello.cs:
--------------------------------------------------------------------------------
1 | using ServiceStack;
2 |
3 | namespace $safeprojectname$
4 | {
5 | [Route("/hello")]
6 | [Route("/hello/{Name}")]
7 | public class Hello : IReturn
8 | {
9 | public string Name { get; set; }
10 | }
11 |
12 | public class HelloResponse
13 | {
14 | public string Result { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ServiceModel/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/ServiceModel/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Test/IntegrationTest.cs:
--------------------------------------------------------------------------------
1 | using Funq;
2 | using ServiceStack;
3 | using NUnit.Framework;
4 | using $saferootprojectname$.ServiceInterface;
5 | using $saferootprojectname$.ServiceModel;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public class IntegrationTest
10 | {
11 | const string BaseUri = "http://localhost:2000/";
12 | private readonly ServiceStackHost appHost;
13 |
14 | class AppHost : AppSelfHostBase
15 | {
16 | public AppHost() : base(nameof(IntegrationTest), typeof(MyServices).Assembly) { }
17 |
18 | public override void Configure(Container container)
19 | {
20 | }
21 | }
22 |
23 | public IntegrationTest()
24 | {
25 | appHost = new AppHost()
26 | .Init()
27 | .Start(BaseUri);
28 | }
29 |
30 | [OneTimeTearDown]
31 | public void OneTimeTearDown() => appHost.Dispose();
32 |
33 | public IServiceClient CreateClient() => new JsonServiceClient(BaseUri);
34 |
35 | [Test]
36 | public void Can_call_Hello_Service()
37 | {
38 | var client = CreateClient();
39 |
40 | var response = client.Get(new Hello { Name = "World" });
41 |
42 | Assert.That(response.Result, Is.EqualTo("Hello, World!"));
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Test/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("$safeprojectname$")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("$safeprojectname$")]
13 | [assembly: AssemblyCopyright("Copyright (c) 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Revision and Build Numbers
30 | // by using the '*' as shown below:
31 | [assembly: AssemblyVersion("1.0.0.0")]
32 | [assembly: AssemblyFileVersion("1.0.0.0")]
33 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Test/UnitTest.cs:
--------------------------------------------------------------------------------
1 | using NUnit.Framework;
2 | using ServiceStack;
3 | using ServiceStack.Testing;
4 | using $saferootprojectname$.ServiceInterface;
5 | using $saferootprojectname$.ServiceModel;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public class UnitTest
10 | {
11 | private readonly ServiceStackHost appHost;
12 |
13 | public UnitTest()
14 | {
15 | appHost = new BasicAppHost().Init();
16 | appHost.Container.AddTransient();
17 | }
18 |
19 | [OneTimeTearDown]
20 | public void OneTimeTearDown() => appHost.Dispose();
21 |
22 | [Test]
23 | public void Can_call_MyServices()
24 | {
25 | var service = appHost.Container.Resolve();
26 |
27 | var response = (HelloResponse)service.Any(new Hello { Name = "World" });
28 |
29 | Assert.That(response.Result, Is.EqualTo("Hello, World!"));
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Test/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/Test/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/AppReactDesktop/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="$safeprojectname$.Global" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Security;
6 | using System.Web.SessionState;
7 |
8 | namespace $safeprojectname$
9 | {
10 | public class Global : System.Web.HttpApplication
11 | {
12 | protected void Application_Start(object sender, EventArgs e)
13 | {
14 | new AppHost().Init();
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/Scripts/_references.js:
--------------------------------------------------------------------------------
1 | //Add JS/CSS references here to enable intellisense from external packages.
2 | ///
3 | ///
4 | ///
5 | ///
6 | ///
7 | ///
8 | ///
9 | ///
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "$safeprojectname$",
3 | "version": "0.0.1",
4 | "authors": [
5 | ""
6 | ],
7 | "license": "MIT",
8 | "private": true,
9 | "dependencies": {
10 | "react": "~0.13.3",
11 | "bootstrap": "~3.3.1",
12 | "modernizr": "~2.8.3",
13 | "jquery": "~1.11.3"
14 | },
15 | "ignore": [
16 | "**/.*",
17 | "node_modules",
18 | "bower_components",
19 | "test",
20 | "tests"
21 | ]
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/css/app.css:
--------------------------------------------------------------------------------
1 | body {
2 | }
3 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/js/app.jsx:
--------------------------------------------------------------------------------
1 | /** @jsx React.DOM */
2 | React.render(
3 | ,
4 | document.getElementById('demo')
5 | );
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/js/components/hello.jsx:
--------------------------------------------------------------------------------
1 | /** @jsx React.DOM */
2 |
3 | var React = React || require('react');
4 | var module = module || {};
5 |
6 | var HelloWorld = React.createClass({
7 | handleHello: function(e) {
8 | e.preventDefault();
9 | var yourName = this.refs.yourName.getDOMNode().value.trim();
10 | var self = this;
11 | $.ajax({
12 | url: 'hello/' + yourName,
13 | dataType: 'json',
14 | type: 'GET',
15 | success: function(response) {
16 | self.setState({ yourName: response.Result });
17 | }
18 | });
19 | },
20 | getInitialState: function () {
21 | return {yourName: ''};
22 | },
23 | render: function() {
24 | return (
25 |
26 |
28 |
{this.state.yourName}
29 |
30 | );
31 | }
32 | });
33 | module.exports = HelloWorld
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "$safeprojectname$",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "author": "= <=>",
7 | "license": "ISC",
8 | "private": true,
9 | "dependencies": {
10 | "react": "*",
11 | "react-tools": "*"
12 | },
13 | "jest": {
14 | "rootDir": "",
15 | "scriptPreprocessor": "tests/preprocessor.js",
16 | "testFileExtensions": [ "js" ],
17 | "unmockedModulePathPatterns": [ "react" ],
18 | "testDirectoryName": "tests/unit"
19 | },
20 | "devDependencies": {
21 | "grunt-exec": "~0.4.6",
22 | "grunt-gulp": "~0.1.0",
23 | "grunt": "~0.4.5",
24 | "ssvs-utils": "~0.1.1",
25 | "grunt-msbuild": "~0.2.2",
26 | "grunt-nuget": "0.1.3",
27 | "gulp": "~3.8.7",
28 | "gulp-replace": "~0.4.0",
29 | "gulp-htmlbuild": "~0.4.1",
30 | "event-stream": "~3.3.1",
31 | "del": "~1.1.1",
32 | "gulp-uglify": "~1.0.1",
33 | "gulp-if": "~1.2.4",
34 | "gulp-grunt": "~0.5.2",
35 | "gulp-minify-css": "~0.3.8",
36 | "gulp-useref": "~1.0.1",
37 | "gulp-newer": "~0.3.0",
38 | "gulp-react": "~2.0.0"
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/tests/README.txt:
--------------------------------------------------------------------------------
1 | Testing for the ReactJS template is setup to use Jest test framework. https://facebook.github.io/jest/
2 |
3 | To run these tests, the `jest-cli` npm package is required. Dependencies of this package require Python 2.7 for installation.
4 | See `contextify`s GitHub page for more on this issue and step by step instructions https://github.com/brianmcd/contextify/wiki/Windows-Installation-Guide
5 |
6 | Once `jest-cli` is istalled globally, running "jest" from a command line in your project will discover and run the example unit test.
7 | See package.json for jest configuration.
8 |
9 | To run the tests from grunt use "grunt exec:jest".
10 |
11 | For more information on Jest, see its GitHub page here https://github.com/facebook/jest.
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/tests/preprocessor.js:
--------------------------------------------------------------------------------
1 | var ReactTools = require('react-tools');
2 |
3 | module.exports = {
4 | process: function (src) {
5 | return ReactTools.transform(src);
6 | }
7 | };
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/tests/unit/hello-test.js:
--------------------------------------------------------------------------------
1 | /** @jsx React.DOM */
2 |
3 | // __tests__/CheckboxWithLabel-test.js
4 | jest.dontMock('../../js/components/hello.jsx');
5 | describe('HelloWorld component test', function() {
6 | it('renders to the DOM', function () {
7 |
8 | var React = require('react/addons');
9 | var HelloWorld = require('../../js/components/hello.jsx');
10 | var TestUtils = React.addons.TestUtils;
11 |
12 | // Render a hello world input in the document
13 | var helloWorldElement = TestUtils.renderIntoDocument(
14 |
15 | );
16 | //// Verify itar contains input
17 | var input = TestUtils.findRenderedDOMComponentWithTag(
18 | helloWorldElement, 'input');
19 | expect(input != null).toEqual(true);
20 | });
21 | });
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/wwwroot_build/00-install-dependencies.bat:
--------------------------------------------------------------------------------
1 | REM pre-requisite that only needs to run once for installing npm and bower dependencies
2 |
3 | cd ..
4 | npm install
5 | bower install
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/wwwroot_build/README.txt:
--------------------------------------------------------------------------------
1 | Fill out publish\config.json with your IIS app settings to enable the grunt task 04-deploy-app
2 |
3 | For more information on using grunt-msdeploy, see https://www.npmjs.org/package/grunt-msdeploy
4 |
5 | Also see 'WebDeploy with AWS' article on the ServiceStack wiki. https://github.com/ServiceStack/ServiceStack/wiki/WebDeploy-with-AWS
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/wwwroot_build/deploy/appsettings.txt:
--------------------------------------------------------------------------------
1 | # Release App Settings
2 |
3 | DebugMode false
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/wwwroot_build/package-and-deploy.bat:
--------------------------------------------------------------------------------
1 | REM grunt 02-package-server
2 | REM grunt 03-package-client
3 | REM grunt 04-deploy-app
4 |
5 | grunt package-and-deploy
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ReactJS/wwwroot_build/publish/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisApp": "$safeprojectname$",
3 | "serverAddress": "deploy-server.example.com",
4 | "userName": "{WebDeployUserName}",
5 | "password" : "{WebDeployPassword}"
6 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ServiceInterface/MyServices.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using ServiceStack;
6 | using $saferootprojectname$.ServiceModel;
7 |
8 | namespace $safeprojectname$
9 | {
10 | public class MyServices : Service
11 | {
12 | public object Any(Hello request)
13 | {
14 | return new HelloResponse { Result = "Hello, {0}!".Fmt(request.Name) };
15 | }
16 |
17 | public object Any(FallbackForClientRoutes request)
18 | {
19 | //Return default.cshtml for unmatched requests so routing is handled on the client
20 | return new HttpResult
21 | {
22 | View = "/default.cshtml"
23 | };
24 | }
25 | }
26 |
27 | [FallbackRoute("/{PathInfo*}")]
28 | public class FallbackForClientRoutes
29 | {
30 | public string PathInfo { get; set; }
31 | }
32 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ServiceInterface/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ServiceInterface/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ServiceModel/Hello.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using ServiceStack;
6 |
7 | namespace $safeprojectname$
8 | {
9 | [Route("/hello/{Name}")]
10 | public class Hello : IReturn
11 | {
12 | public string Name { get; set; }
13 | }
14 |
15 | public class HelloResponse
16 | {
17 | public string Result { get; set; }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ServiceModel/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/ServiceModel/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/Test/UnitTests.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using NUnit.Framework;
3 | using ServiceStack;
4 | using ServiceStack.Testing;
5 | using $saferootprojectname$.ServiceModel;
6 | using $saferootprojectname$.ServiceInterface;
7 |
8 | namespace $safeprojectname$
9 | {
10 | [TestFixture]
11 | public class UnitTests
12 | {
13 | private readonly ServiceStackHost appHost;
14 |
15 | public UnitTests()
16 | {
17 | appHost = new BasicAppHost(typeof(MyServices).Assembly)
18 | {
19 | ConfigureContainer = container =>
20 | {
21 | //Add your IoC dependencies here
22 | }
23 | }
24 | .Init();
25 | }
26 |
27 | [TestFixtureTearDown]
28 | public void TestFixtureTearDown()
29 | {
30 | appHost.Dispose();
31 | }
32 |
33 | [Test]
34 | public void TestMethod1()
35 | {
36 | var service = appHost.Container.Resolve();
37 |
38 | var response = (HelloResponse)service.Any(new Hello { Name = "World" });
39 |
40 | Assert.That(response.Result, Is.EqualTo("Hello, World!"));
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/Test/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/Test/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="$safeprojectname$.Global" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Security;
6 | using System.Web.SessionState;
7 |
8 | namespace $safeprojectname$
9 | {
10 | public class Global : System.Web.HttpApplication
11 | {
12 | protected void Application_Start(object sender, EventArgs e)
13 | {
14 | new AppHost().Init();
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/Scripts/_references.js:
--------------------------------------------------------------------------------
1 | //Add JS/CSS references here to enable intellisense from external packages.
2 | ///
3 | ///
4 | ///
5 | ///
6 | ///
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "$safeprojectname$",
3 | "version": "0.0.1",
4 | "authors": [
5 | ""
6 | ],
7 | "license": "MIT",
8 | "private": true,
9 | "dependencies": {
10 | "react": "~0.13.3",
11 | "bootstrap": "~3.3.1",
12 | "modernizr": "~2.8.3"
13 | },
14 | "ignore": [
15 | "**/.*",
16 | "node_modules",
17 | "bower_components",
18 | "test",
19 | "tests"
20 | ]
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/css/app.css:
--------------------------------------------------------------------------------
1 | body {
2 | }
3 | .platform, ul > li.platform {
4 | display: none;
5 | }
6 | a {
7 | cursor: pointer;
8 | }
9 | .navbar {
10 | border-radius: 0;
11 | }
12 | .navbar-brand {
13 | line-height: 24px;
14 | }
15 | .navbar-brand img {
16 | float: left;
17 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/img/react-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/img/react-logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/js/components/hello.jsx:
--------------------------------------------------------------------------------
1 | var HelloWorld = React.createClass({
2 | getInitialState: function () {
3 | return { greeting: '' };
4 | },
5 | handleNameChange: function (e) {
6 | e.preventDefault();
7 | var $this = this;
8 | var yourName = e.target.value.trim();
9 | $.getJSON('hello/' + yourName)
10 | .then(function(response) {
11 | $this.setState({ greeting: response.Result });
12 | });
13 | },
14 | render: function() {
15 | return (
16 |
17 |
19 |
{this.state.greeting}
20 |
21 | );
22 | }
23 | });
24 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/js/utils.js:
--------------------------------------------------------------------------------
1 | //non-UI App js
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "$safeprojectname$",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "author": "= <=>",
7 | "license": "ISC",
8 | "private": true,
9 | "dependencies": {
10 | "react": "*",
11 | "react-tools": "*"
12 | },
13 | "jest": {
14 | "rootDir": "",
15 | "scriptPreprocessor": "tests/preprocessor.js",
16 | "testFileExtensions": [ "js" ],
17 | "unmockedModulePathPatterns": [ "react" ],
18 | "testDirectoryName": "tests/unit"
19 | },
20 | "devDependencies": {
21 | "grunt-exec": "~0.4.6",
22 | "grunt-gulp": "~0.1.0",
23 | "grunt": "~0.4.5",
24 | "ssvs-utils": "~0.1.1",
25 | "grunt-msbuild": "~0.2.2",
26 | "grunt-nuget": "0.1.3",
27 | "gulp": "~3.8.7",
28 | "gulp-replace": "~0.4.0",
29 | "gulp-htmlbuild": "~0.4.1",
30 | "gulp-header": "~1.7.1",
31 | "event-stream": "~3.3.1",
32 | "del": "~1.1.1",
33 | "gulp-uglify": "~1.0.1",
34 | "gulp-if": "~1.2.4",
35 | "gulp-grunt": "~0.5.2",
36 | "gulp-minify-css": "~0.3.8",
37 | "gulp-useref": "~1.0.1",
38 | "gulp-newer": "~0.3.0",
39 | "gulp-react": "~2.0.0"
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/platform.css:
--------------------------------------------------------------------------------
1 | /* web */
2 | .web, ul > li.web {
3 | display: block;
4 | }
5 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/platform.js:
--------------------------------------------------------------------------------
1 | /* web */
2 | document.documentElement.className += ' web';
3 | window.nativeHost = {
4 | quit: function() {
5 | window.close();
6 | },
7 | showAbout: function() {
8 | alert('$safeprojectname$ - ServiceStack + ReactJS');
9 | },
10 | ready: function() {
11 | //
12 | },
13 | platform: 'web'
14 | };
15 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/tests/README.txt:
--------------------------------------------------------------------------------
1 | Testing for the ReactJS template is setup to use Jest test framework. https://facebook.github.io/jest/
2 |
3 | To run these tests, the `jest-cli` npm package is required. Dependencies of this package require Python 2.7 for installation.
4 | See `contextify`s GitHub page for more on this issue and step by step instructions https://github.com/brianmcd/contextify/wiki/Windows-Installation-Guide
5 |
6 | Once `jest-cli` is istalled globally, running "jest" from a command line in your project will discover and run the example unit test.
7 | See package.json for jest configuration.
8 |
9 | To run the tests from grunt use "grunt exec:jest".
10 |
11 | For more information on Jest, see its GitHub page here https://github.com/facebook/jest.
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/tests/preprocessor.js:
--------------------------------------------------------------------------------
1 | var ReactTools = require('react-tools');
2 |
3 | module.exports = {
4 | process: function (src) {
5 | return ReactTools.transform(src);
6 | }
7 | };
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/tests/unit/hello-test.js:
--------------------------------------------------------------------------------
1 | /** @jsx React.DOM */
2 |
3 | // __tests__/CheckboxWithLabel-test.js
4 | jest.dontMock('../../js/components/hello.jsx');
5 | describe('HelloWorld component test', function() {
6 | it('renders to the DOM', function () {
7 |
8 | var React = require('react/addons');
9 | var HelloWorld = require('../../js/components/hello.jsx');
10 | var TestUtils = React.addons.TestUtils;
11 |
12 | // Render a hello world input in the document
13 | var helloWorldElement = TestUtils.renderIntoDocument(
14 |
15 | );
16 | //// Verify itar contains input
17 | var input = TestUtils.findRenderedDOMComponentWithTag(
18 | helloWorldElement, 'input');
19 | expect(input != null).toEqual(true);
20 | });
21 | });
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/00-install-dependencies.bat:
--------------------------------------------------------------------------------
1 | REM pre-requisite that only needs to run once for installing npm and bower dependencies
2 |
3 | cd ..
4 | npm install
5 | bower install
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/config-winforms.txt:
--------------------------------------------------------------------------------
1 | ;!@Install@!UTF-8!
2 | ExecuteFile="$safeprojectname$.AppWinForms.exe"
3 | GUIMode="2"
4 | ;!@InstallEnd@!
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/deploy/appsettings.txt:
--------------------------------------------------------------------------------
1 | # Release App Settings
2 |
3 | DebugMode false
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/package-deploy-winforms.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | SET STAGING=staging-winforms
3 |
4 | IF EXIST %STAGING%\ (
5 | RMDIR /S /Q .\%STAGING%
6 | ) ELSE IF EXIST %STAGING% (
7 | DEL /s %STAGING%
8 | )
9 |
10 | MD %STAGING%
11 |
12 | SET TOOLS=.\tools
13 | SET STAGINGZIP=$safeprojectname$-winforms.7z
14 | SET OUTPUTNAME=$safeprojectname$-winforms.exe
15 | SET RELEASE=..\..\$safeprojectname$.AppWinForms\bin\x86\Release
16 | COPY %RELEASE%\$safeprojectname$.AppWinForms.exe .\%STAGING%
17 | COPY %RELEASE%\$safeprojectname$.AppWinForms.exe.config .\%STAGING%
18 | COPY %RELEASE%\CefSharp.BrowserSubprocess.exe .\%STAGING%
19 | ROBOCOPY "%RELEASE%" ".\%STAGING%" *.dll *.pak *.dat *.bin /E
20 |
21 | IF NOT EXIST apps (
22 | MD apps
23 | )
24 |
25 | IF EXIST %STAGINGZIP% (
26 | DEL %STAGINGZIP%
27 | )
28 |
29 | IF EXIST %OUTPUTNAME% (
30 | DEL %OUTPUTNAME%
31 | )
32 |
33 | cd tools && 7za a ..\%STAGINGZIP% ..\%STAGING%\* && cd..
34 | COPY /b .\tools\7zsd_All.sfx + config-winforms.txt + %STAGINGZIP% .\apps\%OUTPUTNAME%
35 |
36 | IF EXIST %STAGINGZIP% (
37 | DEL %STAGINGZIP%
38 | )
39 |
40 | echo ------------- && echo deployed to: .\wwwroot_build\apps\%OUTPUTNAME% && echo -------------
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/publish/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisApp": "$safeprojectname$",
3 | "serverAddress": "deploy-server.example.com",
4 | "userName": "{WebDeployUserName}",
5 | "password" : "{WebDeployPassword}"
6 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/tools/7za.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/tools/7za.exe
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/tools/7zsd_All.sfx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/tools/7zsd_All.sfx
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/tools/7zsd_All_original.sfx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/tools/7zsd_All_original.sfx
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/tools/ILMerge.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/tools/ILMerge.exe
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJS/wwwroot_build/tools/Licenses.txt:
--------------------------------------------------------------------------------
1 | 7-Zip Command line version
2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~
3 | License for use and distribution
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 |
6 | 7-Zip Copyright (C) 1999-2010 Igor Pavlov.
7 |
8 | 7za.exe is distributed under the GNU LGPL license
9 |
10 | Notes:
11 | You can use 7-Zip on any computer, including a computer in a commercial
12 | organization. You don't need to register or pay for 7-Zip.
13 |
14 |
15 | GNU LGPL information
16 | --------------------
17 |
18 | This library is free software; you can redistribute it and/or
19 | modify it under the terms of the GNU Lesser General Public
20 | License as published by the Free Software Foundation; either
21 | version 2.1 of the License, or (at your option) any later version.
22 |
23 | This library is distributed in the hope that it will be useful,
24 | but WITHOUT ANY WARRANTY; without even the implied warranty of
25 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 | Lesser General Public License for more details.
27 |
28 | You can receive a copy of the GNU Lesser General Public License from
29 | http://www.gnu.org/
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSConsole/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSConsole/Program.cs:
--------------------------------------------------------------------------------
1 | using ServiceStack;
2 | using ServiceStack.Text;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Diagnostics;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading;
9 | using System.Threading.Tasks;
10 |
11 | namespace $safeprojectname$
12 | {
13 | static class Program
14 | {
15 | public static string HostUrl = "http://localhost:2337/";
16 |
17 | ///
18 | /// The main entry point for the application
19 | ///
20 | [STAThread]
21 | static void Main(string[] args)
22 | {
23 | new AppHost().Init().Start("http://*:2337/");
24 | "ServiceStack SelfHost listening at {0}".Fmt(HostUrl).Print();
25 | Process.Start(HostUrl);
26 |
27 | Thread.Sleep(Timeout.Infinite);
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSConsole/logo.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSConsole/logo.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSConsole/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSConsole/platform.css:
--------------------------------------------------------------------------------
1 | /* console */
2 | .console, ul > li.console {
3 | display: block;
4 | }
5 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSConsole/platform.js:
--------------------------------------------------------------------------------
1 | /* console */
2 | document.documentElement.className += ' console';
3 | window.nativeHost = {
4 | quit: function() {
5 | $.post('/nativehost/quit')
6 | .then(function() {
7 | window.close();
8 | });
9 | },
10 | showAbout: function() {
11 | alert('ReactChat - ServiceStack + ReactJS');
12 | },
13 | ready: function() {
14 | //
15 | },
16 | platform: 'console'
17 | };
18 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSMac/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using MonoMac.Foundation;
4 | using MonoMac.AppKit;
5 | using MonoMac.ObjCRuntime;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public partial class AppDelegate : NSApplicationDelegate
10 | {
11 | public static MainWindowController MainWindowController;
12 |
13 | public AppDelegate(){}
14 |
15 | public override void FinishedLaunching (NSObject notification)
16 | {
17 | #if DEBUG
18 | //Enable WebInspector in WebView
19 | var defaults = NSUserDefaults.StandardUserDefaults;
20 | defaults.SetBool(true, "WebKitDeveloperExtras");
21 | defaults.Synchronize();
22 | #endif
23 | MainWindowController = new MainWindowController();
24 | MainWindowController.Window.MakeKeyAndOrderFront(this);
25 | }
26 | }
27 | }
28 |
29 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSMac/AppDelegate.designer.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace $safeprojectname$
3 | {
4 | // Should subclass MonoMac.AppKit.NSResponder
5 | [MonoMac.Foundation.Register ("AppDelegate")]
6 | public partial class AppDelegate
7 | {
8 | }
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSMac/MainWindow.cs:
--------------------------------------------------------------------------------
1 |
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using MonoMac.Foundation;
6 | using MonoMac.AppKit;
7 |
8 | namespace $safeprojectname$
9 | {
10 | public partial class MainWindow : MonoMac.AppKit.NSWindow
11 | {
12 | #region Constructors
13 |
14 | // Called when created from unmanaged code
15 | public MainWindow (IntPtr handle) : base (handle)
16 | {
17 | Initialize ();
18 | }
19 |
20 | // Called when created directly from a XIB file
21 | [Export ("initWithCoder:")]
22 | public MainWindow (NSCoder coder) : base (coder)
23 | {
24 | Initialize ();
25 | }
26 |
27 | // Shared initialization code
28 | void Initialize ()
29 | {
30 | }
31 |
32 | #endregion
33 |
34 | public override void AwakeFromNib()
35 | {
36 | base.AwakeFromNib ();
37 | Program.MainMenu = NSApplication.SharedApplication.MainMenu;
38 | webView.MainFrameUrl = Program.HostUrl;
39 | webView.Frame = new System.Drawing.RectangleF(0,0,this.Frame.Width,this.Frame.Height);
40 | this.DidResize += (sender, e) => {
41 | webView.Frame = new System.Drawing.RectangleF(0,0,this.Frame.Width,this.Frame.Height);
42 | };
43 | }
44 | }
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSMac/MainWindow.designer.cs:
--------------------------------------------------------------------------------
1 | // WARNING
2 | //
3 | // This file has been generated automatically by Xamarin Studio to store outlets and
4 | // actions made in the UI designer. If it is removed, they will be lost.
5 | // Manual changes to this file may not be handled correctly.
6 | //
7 | using MonoMac.Foundation;
8 | using System.CodeDom.Compiler;
9 |
10 | namespace $safeprojectname$
11 | {
12 | [Register ("MainWindow")]
13 | partial class MainWindow
14 | {
15 | [Outlet]
16 | MonoMac.WebKit.WebView webView { get; set; }
17 |
18 | void ReleaseDesignerOutlets ()
19 | {
20 | if (webView != null) {
21 | webView.Dispose ();
22 | webView = null;
23 | }
24 | }
25 | }
26 |
27 | [Register ("MainWindowController")]
28 | partial class MainWindowController
29 | {
30 |
31 | void ReleaseDesignerOutlets ()
32 | {
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSMac/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using MonoMac.Foundation;
4 | using MonoMac.AppKit;
5 | using MonoMac.ObjCRuntime;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public static class Program
10 | {
11 | public static string HostUrl = "http://localhost:2337/";
12 |
13 | public static AppHost App;
14 | public static NSMenu MainMenu;
15 |
16 | static void Main (string[] args)
17 | {
18 | App = new AppHost();
19 | App.Init().Start("http://*:2337/");
20 |
21 | NSApplication.Init();
22 | NSApplication.Main(args);
23 | }
24 | }
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSMac/logo.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSMac/logo.icns
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSMac/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSMac/platform.css:
--------------------------------------------------------------------------------
1 | /* mac */
2 | .mac, ul > li.mac {
3 | display: block;
4 | }
5 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSMac/platform.js:
--------------------------------------------------------------------------------
1 | /* mac */
2 | document.documentElement.className += ' mac';
3 | window.nativeHost = {
4 | quit: function () {
5 | $.post('/nativehost/quit');
6 | },
7 | showAbout: function () {
8 | $.post('/nativehost/showAbout');
9 | },
10 | ready: function () {
11 | //
12 | },
13 | platform: 'mac'
14 | };
15 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/SharedEmbeddedResources.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public class SharedEmbeddedResources { }
10 | }
11 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/css/app.min.css:
--------------------------------------------------------------------------------
1 | .platform,ul>li.platform{display:none}a{cursor:pointer}.navbar{border-radius:0}.navbar-brand{line-height:24px}.navbar-brand img{float:left}
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | $saferootprojectname$
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/img/react-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/img/react-logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/js/app.min.js:
--------------------------------------------------------------------------------
1 | //non-UI App js
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/lib/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/lib/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/lib/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/lib/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/lib/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/lib/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/lib/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/lib/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSResources/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSWinForms/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSWinForms/FormMain.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 | using CefSharp;
4 | using CefSharp.WinForms;
5 | using CefSharp.WinForms.Internals;
6 |
7 | namespace $safeprojectname$
8 | {
9 | public partial class FormMain : Form
10 | {
11 | public ChromiumWebBrowser ChromiumBrowser { get; private set; }
12 | public FormMain()
13 | {
14 | InitializeComponent();
15 | VerticalScroll.Visible = false;
16 |
17 | ChromiumBrowser = new ChromiumWebBrowser(Program.HostUrl)
18 | {
19 | Dock = DockStyle.Fill
20 | };
21 |
22 | Controls.Add(ChromiumBrowser);
23 |
24 | Load += (sender, args) =>
25 | {
26 | FormBorderStyle = FormBorderStyle.None;
27 | Left = Top = 0;
28 | Width = Screen.PrimaryScreen.WorkingArea.Width;
29 | Height = Screen.PrimaryScreen.WorkingArea.Height;
30 | };
31 |
32 | ChromiumBrowser.RegisterJsObject("nativeHost", new NativeHost(this));
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSWinForms/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 | using CefSharp;
7 | using ServiceStack;
8 | using ServiceStack.Text;
9 |
10 | namespace $safeprojectname$
11 | {
12 | static class Program
13 | {
14 | public static string HostUrl = "http://localhost:2337/";
15 | public static AppHost AppHost;
16 | public static FormMain Form;
17 |
18 | ///
19 | /// The main entry point for the application.
20 | ///
21 | [STAThread]
22 | static void Main()
23 | {
24 | Cef.Initialize(new CefSettings());
25 |
26 | Application.EnableVisualStyles();
27 | Application.SetCompatibleTextRenderingDefault(false);
28 |
29 | AppHost = new AppHost();
30 | AppHost.Init().Start("http://*:2337/");
31 | "ServiceStack SelfHost listening at {0} ".Fmt(HostUrl).Print();
32 | Form = new FormMain();
33 | Application.Run(Form);
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSWinForms/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.0
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSWinForms/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSWinForms/logo.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSWinForms/logo.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSWinForms/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSWinForms/platform.css:
--------------------------------------------------------------------------------
1 | /* winforms */
2 | winforms, ul > li.winforms {
3 | display: block;
4 | }
5 | body {
6 | -webkit-touch-callout: none;
7 | -webkit-user-select: none;
8 | user-select: none;
9 | }
10 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ReactJSWinForms/platform.js:
--------------------------------------------------------------------------------
1 | /* winforms */
2 | document.documentElement.className += ' winforms';
3 |
4 | $(document).ready(function () {
5 | window.nativeHost.ready();
6 |
7 | $(document).on('keydown', function(e) {
8 | if (e.altKey && e.which == Keys.LEFT) {
9 | history.back();
10 | } else if (e.altKey && e.which == Keys.RIGHT) {
11 | history.forward();
12 | }
13 | });
14 | });
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ServiceInterface/MyServices.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using ServiceStack;
6 | using $saferootprojectname$.ServiceModel;
7 |
8 | namespace $safeprojectname$
9 | {
10 | public class MyServices : Service
11 | {
12 | public object Any(Hello request)
13 | {
14 | return new HelloResponse { Result = "Hello, {0}!".Fmt(request.Name) };
15 | }
16 |
17 | private static string defaultHtml = null;
18 |
19 | public object Any(FallbackForClientRoutes request)
20 | {
21 | return defaultHtml ??
22 | (defaultHtml = HostContext.ResolveVirtualFile("/default.html", Request).ReadAllText());
23 | }
24 | }
25 |
26 | [FallbackRoute("/{PathInfo*}")]
27 | public class FallbackForClientRoutes
28 | {
29 | public string PathInfo { get; set; }
30 | }
31 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ServiceInterface/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ServiceInterface/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ServiceModel/Hello.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using ServiceStack;
6 |
7 | namespace $safeprojectname$
8 | {
9 | [Route("/hello/{Name}")]
10 | public class Hello : IReturn
11 | {
12 | public string Name { get; set; }
13 | }
14 |
15 | public class HelloResponse
16 | {
17 | public string Result { get; set; }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ServiceModel/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/ServiceModel/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/Test/UnitTests.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using NUnit.Framework;
3 | using ServiceStack;
4 | using ServiceStack.Testing;
5 | using $saferootprojectname$.ServiceModel;
6 | using $saferootprojectname$.ServiceInterface;
7 |
8 | namespace $safeprojectname$
9 | {
10 | [TestFixture]
11 | public class UnitTests
12 | {
13 | private readonly ServiceStackHost appHost;
14 |
15 | public UnitTests()
16 | {
17 | appHost = new BasicAppHost(typeof(MyServices).Assembly)
18 | {
19 | ConfigureContainer = container =>
20 | {
21 | //Add your IoC dependencies here
22 | }
23 | }
24 | .Init();
25 | }
26 |
27 | [TestFixtureTearDown]
28 | public void TestFixtureTearDown()
29 | {
30 | appHost.Dispose();
31 | }
32 |
33 | [Test]
34 | public void TestMethod1()
35 | {
36 | var service = appHost.Container.Resolve();
37 |
38 | var response = (HelloResponse)service.Any(new Hello { Name = "World" });
39 |
40 | Assert.That(response.Result, Is.EqualTo("Hello, World!"));
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/Test/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/Test/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJSGap/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="$safeprojectname$.Global" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Security;
6 | using System.Web.SessionState;
7 |
8 | namespace $safeprojectname$
9 | {
10 | public class Global : System.Web.HttpApplication
11 | {
12 | protected void Application_Start(object sender, EventArgs e)
13 | {
14 | new AppHost().Init();
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/Scripts/_references.js:
--------------------------------------------------------------------------------
1 | //Add JS/CSS references here to enable intellisense from external packages.
2 | ///
3 | ///
4 | ///
5 | ///
6 | ///
7 | ///
8 | ///
9 | ///
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/css/app.css:
--------------------------------------------------------------------------------
1 | body {
2 | }
3 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/js/app.jsx:
--------------------------------------------------------------------------------
1 | /** @jsx React.DOM */
2 | React.render(
3 | ,
4 | document.getElementById('demo')
5 | );
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/js/components/hello.jsx:
--------------------------------------------------------------------------------
1 | /** @jsx React.DOM */
2 |
3 | var React = React || require('react');
4 | var module = module || {};
5 |
6 | var HelloWorld = React.createClass({
7 | handleHello: function(e) {
8 | e.preventDefault();
9 | var yourName = this.refs.yourName.getDOMNode().value.trim();
10 | var self = this;
11 | $.ajax({
12 | url: 'hello/' + yourName,
13 | dataType: 'json',
14 | type: 'GET',
15 | success: function(response) {
16 | self.setState({ yourName: response.Result });
17 | }
18 | });
19 | },
20 | getInitialState: function () {
21 | return {yourName: ''};
22 | },
23 | render: function() {
24 | return (
25 |
26 |
28 |
{this.state.yourName}
29 |
30 | );
31 | }
32 | });
33 | module.exports = HelloWorld
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "$safeprojectname$",
3 | "version": "1.0.0",
4 | "description": "",
5 | "author": "= <=>",
6 | "license": "ISC",
7 | "private": true,
8 | "dependencies": {
9 | "react": "~0.13.3",
10 | "react-tools": "~0.13.3",
11 | "bootstrap": "~3.3.1",
12 | "jquery": "~2.2.1"
13 | },
14 | "jest": {
15 | "rootDir": "",
16 | "scriptPreprocessor": "tests/preprocessor.js",
17 | "testFileExtensions": [ "js" ],
18 | "unmockedModulePathPatterns": [ "react" ],
19 | "testDirectoryName": "tests/unit"
20 | },
21 | "devDependencies": {
22 | "del": "~1.1.1",
23 | "event-stream": "~3.3.1",
24 | "gulp": "~3.9.1",
25 | "gulp-htmlbuild": "~0.4.1",
26 | "gulp-if": "~1.2.4",
27 | "gulp-jspm": "^0.5.7",
28 | "gulp-clean-css": "~2.0.6",
29 | "gulp-msbuild": "^0.2.21",
30 | "gulp-msdeploy": "^0.0.4",
31 | "gulp-newer": "~1.1.0",
32 | "gulp-nuget-restore": "^0.3.1",
33 | "gulp-rename": "^1.2.2",
34 | "gulp-replace": "~0.4.0",
35 | "gulp-react": "~2.0.0",
36 | "gulp-uglify": "~1.5.3",
37 | "gulp-useref": "~3.0.7",
38 | "gulp-util": "^3.0.7",
39 | "requirejs": "~2.1.15",
40 | "run-sequence": "^1.1.5",
41 | "yargs": "^4.2.0"
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/tests/README.txt:
--------------------------------------------------------------------------------
1 | Testing for the ReactJS template is setup to use Jest test framework. https://facebook.github.io/jest/
2 |
3 | To run these tests, the `jest-cli` npm package is required. Dependencies of this package require Python 2.7 for installation.
4 | See `contextify`s GitHub page for more on this issue and step by step instructions https://github.com/brianmcd/contextify/wiki/Windows-Installation-Guide
5 |
6 | Once `jest-cli` is istalled globally, running "jest" from a command line in your project will discover and run the example unit test.
7 | See package.json for jest configuration.
8 |
9 | To run the tests from grunt use "grunt exec:jest".
10 |
11 | For more information on Jest, see its GitHub page here https://github.com/facebook/jest.
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/tests/preprocessor.js:
--------------------------------------------------------------------------------
1 | var ReactTools = require('react-tools');
2 |
3 | module.exports = {
4 | process: function (src) {
5 | return ReactTools.transform(src);
6 | }
7 | };
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/tests/unit/hello-test.js:
--------------------------------------------------------------------------------
1 | /** @jsx React.DOM */
2 |
3 | // __tests__/CheckboxWithLabel-test.js
4 | jest.dontMock('../../js/components/hello.jsx');
5 | describe('HelloWorld component test', function() {
6 | it('renders to the DOM', function () {
7 |
8 | var React = require('react/addons');
9 | var HelloWorld = require('../../js/components/hello.jsx');
10 | var TestUtils = React.addons.TestUtils;
11 |
12 | // Render a hello world input in the document
13 | var helloWorldElement = TestUtils.renderIntoDocument(
14 |
15 | );
16 | //// Verify itar contains input
17 | var input = TestUtils.findRenderedDOMComponentWithTag(
18 | helloWorldElement, 'input');
19 | expect(input != null).toEqual(true);
20 | });
21 | });
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/wwwroot_build/00-install-dependencies.bat:
--------------------------------------------------------------------------------
1 | REM pre-requisite that only needs to run once for installing npm and bower dependencies
2 |
3 | cd ..
4 | npm install
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/wwwroot_build/README.txt:
--------------------------------------------------------------------------------
1 | Fill out publish\config.json with your IIS app settings to enable the grunt task 04-deploy-app
2 |
3 | For more information on using gulp-msdeploy, see https://www.npmjs.org/package/gulp-msdeploy, based on grunt-msdeploy.
4 |
5 | Also see 'WebDeploy with AWS' article on the ServiceStack wiki. https://github.com/ServiceStack/ServiceStack/wiki/WebDeploy-with-AWS
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/wwwroot_build/deploy/appsettings.txt:
--------------------------------------------------------------------------------
1 | # Release App Settings
2 |
3 | DebugMode false
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/wwwroot_build/package-and-deploy.bat:
--------------------------------------------------------------------------------
1 | REM gulp 02-package-server
2 | REM gulp 03-package-client
3 | REM gulp 04-deploy-app
4 |
5 | gulp package-and-deploy
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ReactJS/wwwroot_build/publish/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisApp": "$safeprojectname$",
3 | "serverAddress": "deploy-server.example.com",
4 | "userName": "{WebDeployUserName}",
5 | "password" : "{WebDeployPassword}"
6 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ServiceInterface/MyServices.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using ServiceStack;
6 | using $saferootprojectname$.ServiceModel;
7 |
8 | namespace $safeprojectname$
9 | {
10 | public class MyServices : Service
11 | {
12 | public object Any(Hello request)
13 | {
14 | return new HelloResponse { Result = "Hello, {0}!".Fmt(request.Name) };
15 | }
16 |
17 | public object Any(FallbackForClientRoutes request)
18 | {
19 | //Return default.cshtml for unmatched requests so routing is handled on the client
20 | return new HttpResult
21 | {
22 | View = "/default.cshtml"
23 | };
24 | }
25 | }
26 |
27 | [FallbackRoute("/{PathInfo*}")]
28 | public class FallbackForClientRoutes
29 | {
30 | public string PathInfo { get; set; }
31 | }
32 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ServiceInterface/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ServiceInterface/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ServiceModel/Hello.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using ServiceStack;
6 |
7 | namespace $safeprojectname$
8 | {
9 | [Route("/hello/{Name}")]
10 | public class Hello : IReturn
11 | {
12 | public string Name { get; set; }
13 | }
14 |
15 | public class HelloResponse
16 | {
17 | public string Result { get; set; }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ServiceModel/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/ServiceModel/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/Test/UnitTests.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using NUnit.Framework;
3 | using ServiceStack;
4 | using ServiceStack.Testing;
5 | using $saferootprojectname$.ServiceModel;
6 | using $saferootprojectname$.ServiceInterface;
7 |
8 | namespace $safeprojectname$
9 | {
10 | [TestFixture]
11 | public class UnitTests
12 | {
13 | private readonly ServiceStackHost appHost;
14 |
15 | public UnitTests()
16 | {
17 | appHost = new BasicAppHost(typeof(MyServices).Assembly)
18 | {
19 | ConfigureContainer = container =>
20 | {
21 | //Add your IoC dependencies here
22 | }
23 | }
24 | .Init();
25 | }
26 |
27 | [TestFixtureTearDown]
28 | public void TestFixtureTearDown()
29 | {
30 | appHost.Dispose();
31 | }
32 |
33 | [Test]
34 | public void TestMethod1()
35 | {
36 | var service = appHost.Container.Resolve();
37 |
38 | var response = (HelloResponse)service.Any(new Hello { Name = "World" });
39 |
40 | Assert.That(response.Result, Is.EqualTo("Hello, World!"));
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/Test/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/Test/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ProjectTemplates/ReactJS_Gulp/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ServiceStackVS.Archive")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ServiceStackVS.Archive")]
13 | [assembly: AssemblyCopyright("")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Build and Revision Numbers
30 | // by using the '*' as shown below:
31 | // [assembly: AssemblyVersion("1.0.*")]
32 | [assembly: AssemblyVersion("1.0.0.0")]
33 | [assembly: AssemblyFileVersion("1.0.0.0")]
34 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/Properties/template-builder.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
13 |
14 |
15 | My Custom Templates
16 |
17 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/Resources/ServiceStackVSArchive.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/Resources/ServiceStackVSArchive.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ServiceStack.Text.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ServiceStack.Text.dll
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ServiceStackVS.Archive.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.24720.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceStackVS.Archive", "ServiceStackVS.Archive.csproj", "{E3C4B409-5036-46C4-A2F3-C762E464D4E2}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {E3C4B409-5036-46C4-A2F3-C762E464D4E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {E3C4B409-5036-46C4-A2F3-C762E464D4E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {E3C4B409-5036-46C4-A2F3-C762E464D4E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {E3C4B409-5036-46C4-A2F3-C762E464D4E2}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ServiceStackVS.BuildConfigWizard.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ServiceStackVS.BuildConfigWizard.dll
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ServiceStackVS.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ServiceStackVS.Common.dll
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ServiceStackVS.ExternalTemplateWizard.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ServiceStackVS.ExternalTemplateWizard.dll
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ServiceStackVS.NPMInstallerWizard.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ServiceStackVS.NPMInstallerWizard.dll
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ServiceStackVS.NativeTypes.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ServiceStackVS.NativeTypes.dll
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ServiceStackVS.NativeTypesWizard.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ServiceStackVS.NativeTypesWizard.dll
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/ServiceStackVS.NuGetInstallerWizard.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/ServiceStackVS.NuGetInstallerWizard.dll
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/icon.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/license.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/license.txt
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/logo-280.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Archive/logo-280.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.Archive/template-report.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.BuildConfigWizard/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.BuildConfigWizard/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS.Common/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.Common/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS.ExternalTemplateWizard/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.ExternalTemplateWizard/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS.ExternalTemplateWizard/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.NPMInstallerWizard/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NPMInstallerWizard/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS.NPMInstallerWizard/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NPMInstallerWizard/favicon.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypes/Handlers/CSharpNativeTypesHandler.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ServiceStackVS.NativeTypes.Handlers
4 | {
5 | public class CSharpNativeTypesHandler : BaseNativeTypesHandler, INativeTypesHandler
6 | {
7 | public override NativeTypesLanguage TypesLanguage => NativeTypesLanguage.CSharp;
8 | public override string CodeFileExtension => ".dtos.cs";
9 | public override string RelativeTypesUrl => "types/csharp";
10 |
11 | public override List RequiredNuGetPackages { get; } = new List { "ServiceStack.Text", "ServiceStack.Client" };
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypes/Handlers/EsModuleNativeTypesHandler.cs:
--------------------------------------------------------------------------------
1 | using ServiceStack;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 |
8 | namespace ServiceStackVS.NativeTypes.Handlers
9 | {
10 | public class EsModuleNativeTypesHandler : BaseNativeTypesHandler, INativeTypesHandler
11 | {
12 | public override NativeTypesLanguage TypesLanguage => NativeTypesLanguage.Mjs;
13 | public override string CodeFileExtension => ".dtos.mjs";
14 | public override string RelativeTypesUrl => "types/mjs";
15 |
16 | public override bool IsHandledFileType(string fileName)
17 | {
18 | if (string.IsNullOrEmpty(fileName))
19 | return false;
20 | return fileName.EndsWithIgnoreCase(CodeFileExtension) || fileName.EqualsIgnoreCase("dtos.mjs");
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypes/Handlers/FSharpNativeTypesHandler.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using ServiceStack;
3 |
4 | namespace ServiceStackVS.NativeTypes.Handlers
5 | {
6 | public class FSharpNativeTypesHandler : BaseNativeTypesHandler, INativeTypesHandler
7 | {
8 | public override NativeTypesLanguage TypesLanguage => NativeTypesLanguage.FSharp;
9 | public override string CodeFileExtension => ".dtos.fs";
10 | public override string RelativeTypesUrl => "types/fsharp";
11 |
12 | public override bool IsHandledFileType(string fileName)
13 | {
14 | if (string.IsNullOrEmpty(fileName))
15 | {
16 | return false;
17 | }
18 | return fileName.EndsWithIgnoreCase(CodeFileExtension) || fileName.EndsWith(".dto.fs");
19 | }
20 |
21 | public override List RequiredNuGetPackages { get; } = new List { "ServiceStack.Text", "ServiceStack.Client" };
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypes/Handlers/JavaNativeTypesHandler.cs:
--------------------------------------------------------------------------------
1 | namespace ServiceStackVS.NativeTypes.Handlers
2 | {
3 | public class JavaNativeTypesHandler : BaseNativeTypesHandler, INativeTypesHandler
4 | {
5 | public override NativeTypesLanguage TypesLanguage => NativeTypesLanguage.Java;
6 | public override string CodeFileExtension => ".java";
7 | public override string RelativeTypesUrl => "types/java";
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypes/Handlers/KotlinNativeTypesHandler.cs:
--------------------------------------------------------------------------------
1 | namespace ServiceStackVS.NativeTypes.Handlers
2 | {
3 | public class KotlinNativeTypesHandler : BaseNativeTypesHandler, INativeTypesHandler
4 | {
5 | public override NativeTypesLanguage TypesLanguage => NativeTypesLanguage.Kotlin;
6 | public override string CodeFileExtension => ".kt";
7 | public override string RelativeTypesUrl => "types/kotlin";
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypes/Handlers/SwitfNativeTypesHandler.cs:
--------------------------------------------------------------------------------
1 | namespace ServiceStackVS.NativeTypes.Handlers
2 | {
3 | public class SwitfNativeTypesHandler : BaseNativeTypesHandler, INativeTypesHandler
4 | {
5 | public override NativeTypesLanguage TypesLanguage => NativeTypesLanguage.Swift;
6 | public override string CodeFileExtension => ".dtos.swift";
7 | public override string RelativeTypesUrl => "types/swift";
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypes/INativeTypesHandler.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ServiceStackVS.NativeTypes
4 | {
5 | public interface INativeTypesHandler
6 | {
7 | Dictionary ParseComments(string codeOutput);
8 | string GenerateUrl(string baseUrl, Dictionary options);
9 | string GetUpdatedCode(string baseUrl, Dictionary options);
10 | NativeTypesLanguage TypesLanguage { get; }
11 | string CodeFileExtension { get; }
12 | string RelativeTypesUrl { get; }
13 | bool IsHandledFileType(string fileName);
14 | List RequiredNuGetPackages { get; }
15 | }
16 |
17 | public enum NativeTypesLanguage
18 | {
19 | CSharp,
20 | FSharp,
21 | VbNet,
22 | TypeScript,
23 | TypeScriptConcrete,
24 | Java,
25 | Swift,
26 | Kotlin,
27 | Mjs
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypes/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NativeTypes/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypesWizard/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NativeTypesWizard/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypesWizard/Resources/Images.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NativeTypesWizard/Resources/Images.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypesWizard/Resources/Package.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NativeTypesWizard/Resources/Package.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypesWizard/Resources/ServiceModelTemplate.txt:
--------------------------------------------------------------------------------
1 | <#@ template debug="false" hostspecific="false" language="C#" #>
2 | <#@ output extension=".cs" #>
3 | <#= DownloadCSharpDtos("$serviceurl$") #>
4 | <#+
5 | public class CodegenOptions
6 | {
7 | bool? MakePartial;
8 | bool? MakeVirtual;
9 | bool? MakeDataContractsExtensible;
10 | bool? InitializeCollections;
11 | bool? AddReturnMarker;
12 | bool? AddDescriptionAsComments;
13 | bool? AddDataContractAttributes;
14 | bool? AddIndexesToDataMembers;
15 | bool? AddResponseStatus;
16 | int? AddImplicitVersion;
17 | string AddDefaultXmlNamespace;
18 | }
19 | #>
20 |
21 | <#+
22 | public static string DownloadCSharpDtos(string baseUrl) {
23 | var sb = new System.Text.StringBuilder();
24 | var fields = typeof(CodegenOptions).GetFields(
25 | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
26 | var config = new CodegenOptions();
27 | foreach (var f in fields) {
28 | var value = f.GetValue(config);
29 | if (value == null) continue;
30 | if (sb.Length > 0) sb.Append("&");
31 | sb.AppendFormat("{0}={1}", f.Name, value);
32 | }
33 | var qs = sb.ToString();
34 | if (qs.Length > 0) baseUrl += "?" + qs;
35 | return new System.Net.WebClient().DownloadString(baseUrl);
36 | }
37 | #>
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypesWizard/Resources/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NativeTypesWizard/Resources/favicon.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypesWizard/Resources/logo-280.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NativeTypesWizard/Resources/logo-280.png
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypesWizard/Resources/logoAddReference.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NativeTypesWizard/Resources/logoAddReference.bmp
--------------------------------------------------------------------------------
/src/ServiceStackVS.NativeTypesWizard/Resources/servicestacklogo.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NativeTypesWizard/Resources/servicestacklogo.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS.NuGetInstallerWizard/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS.NuGetInstallerWizard/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS.NuGetInstallerWizard/NuGetWizardDataPackage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace ServiceStackVS.NuGetInstallerWizard
8 | {
9 | public class NuGetWizardDataPackage
10 | {
11 | public string Id { get; set; }
12 | public string Version { get; set; }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.TestUtility/Capture.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ServiceStackVS.TestUtility
4 | {
5 | public static class Capture
6 | {
7 | public static Exception Exception(Action act)
8 | {
9 | Exception ex = null;
10 | try
11 | {
12 | act();
13 | }
14 | catch (Exception exc)
15 | {
16 | ex = exc;
17 | }
18 |
19 | return ex;
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.TestUtility/Mocks/EventMemoryStream.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Diagnostics;
3 | using System.IO;
4 |
5 | namespace ServiceStackVS.TestUtility.Mocks
6 | {
7 | internal class EventMemoryStream : MemoryStream
8 | {
9 | private static Action _closeAction;
10 |
11 | public EventMemoryStream(Action closeAction)
12 | {
13 | Debug.Assert(closeAction != null);
14 | _closeAction = closeAction;
15 | }
16 |
17 | public override void Close()
18 | {
19 | _closeAction(this);
20 | base.Close();
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.TestUtility/Mocks/MockPackageCacheRepository.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using NuGet;
4 |
5 | namespace ServiceStackVS.TestUtility.Mocks
6 | {
7 | public class MockPackageCacheRepository : MockPackageRepository, IPackageCacheRepository
8 | {
9 | private readonly bool _doDownload;
10 |
11 | public MockPackageCacheRepository(bool doDownload)
12 | {
13 | _doDownload = doDownload;
14 | }
15 |
16 | public bool InvokeOnPackage(string packageId, SemanticVersion version, Action action)
17 | {
18 | if (_doDownload)
19 | {
20 | action(Stream.Null);
21 | return true;
22 | }
23 | return false;
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.TestUtility/Mocks/MockServiceBasePackageRepository.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using NuGet;
5 |
6 | namespace ServiceStackVS.TestUtility.Mocks
7 | {
8 | public class MockServiceBasePackageRepository : MockPackageRepository, IServiceBasedRepository
9 | {
10 | public IQueryable Search(string searchTerm, IEnumerable targetFrameworks, bool allowPrereleaseVersions)
11 | {
12 | throw new NotImplementedException();
13 | }
14 |
15 | public IEnumerable GetUpdates(IEnumerable packages, bool includePrerelease, bool includeAllVersions, IEnumerable targetFrameworks, IEnumerable versionConstraints)
16 | {
17 | // only keep the latest version of each package Id to mimic the behavior of nuget.org GetUpdates() service method
18 | packages = packages.OrderByDescending(p => p.Version).Distinct(PackageEqualityComparer.Id);
19 |
20 | return this.GetUpdatesCore(packages, includePrerelease, includeAllVersions, targetFrameworks, versionConstraints);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS.TestUtility/PathFixUtility.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 |
4 | namespace ServiceStackVS.TestUtility
5 | {
6 | public class PathFixUtility
7 | {
8 | ///
9 | /// Converts '\' to Path.DirectorySerparatorChar.
10 | ///
11 | ///
12 | /// By convention, all paths in unit tests use a backslash when they are defined.
13 | /// However, on non-windows, forward-slash is used.
14 | /// This method is a shorthand to fix this when using the tests.
15 | ///
16 | ///
17 | ///
18 | public static string FixPath(string path)
19 | {
20 | return String.IsNullOrWhiteSpace(path) ? path : path.Replace('\\', Path.DirectorySeparatorChar);
21 | }
22 |
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/ServiceStackVS.TestUtility/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/GlobalSuppressions.cs:
--------------------------------------------------------------------------------
1 | // This file is used by Code Analysis to maintain SuppressMessage
2 | // attributes that are applied to this project. Project-level
3 | // suppressions either have no target or are given a specific target
4 | // and scoped to a namespace, type, member, etc.
5 | //
6 | // To add a suppression to this file, right-click the message in the
7 | // Error List, point to "Suppress Message(s)", and click "In Project
8 | // Suppression File". You do not need to add suppressions to this
9 | // file manually.
10 |
11 | [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1017:MarkAssembliesWithComVisible")]
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/Guids.cs:
--------------------------------------------------------------------------------
1 | // Guids.cs
2 | // MUST match guids.h
3 | using System;
4 |
5 | namespace ServiceStackVS
6 | {
7 | static class GuidList
8 | {
9 | public const string guidVSServiceStackPkgString = "97413fa1-bad9-4cfb-a91c-c8d7b2c3c844";
10 | public const string guidVSServiceStackCmdSetString = "a5be67cb-5ac4-4a73-bc8b-7b8dc4556aee";
11 | public const string guidServiceStackVSOutputWindowPane = "5e5ab647-6a69-44a8-a2db-6a324b7b7e6d";
12 | public const string guidOptionsDialog = "9472fd90-2b49-42ac-bdb4-505afe0a7717";
13 |
14 | public static readonly Guid guidVSServiceStackCmdSet = new Guid(guidVSServiceStackCmdSetString);
15 | };
16 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/CSharpTypeScriptRef/Definitions/CSharp.vstemplate:
--------------------------------------------------------------------------------
1 |
2 |
3 | CSharp
4 |
5 | TypeScriptReference
6 | TypeScript Reference
7 | TypeScript reference from a ServiceStack server.
8 | logo.png
9 |
10 |
11 |
12 |
13 |
14 | template.ts
15 |
16 |
17 |
18 |
19 | ServiceStackVS.NativeTypesWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b5de165d076e49f5
20 | ServiceStackVS.NativeTypesWizard.NativeTypesWizard
21 |
22 |
23 | typescript
24 |
25 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/CSharpTypeScriptRef/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/CSharpTypeScriptRef/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/ItemTemplates/NativeTypes/CSharpTypeScriptRef/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/CSharpTypeScriptRef/template.ts:
--------------------------------------------------------------------------------
1 | /* Options:
2 | Date: 2014-11-27 04:04:39
3 | Version: 1
4 | BaseUrl: $basereferenceurl$
5 |
6 | //GlobalNamespace:
7 | AddServiceStackTypes: False
8 | //AddResponseStatus: False
9 | //AddImplicitVersion:
10 | */
11 |
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/FSharpTypeScriptRef/Definitions/FSharp.vstemplate:
--------------------------------------------------------------------------------
1 |
2 |
3 | FSharp
4 |
5 | TypeScriptReference
6 | TypeScript Reference
7 | TypeScript reference from a ServiceStack server.
8 | logo.png
9 |
10 |
11 |
12 |
13 | template.ts
14 |
15 |
16 |
17 | ServiceStackVS.NativeTypesWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b5de165d076e49f5
18 | ServiceStackVS.NativeTypesWizard.NativeTypesWizard
19 |
20 |
21 | typescript
22 |
23 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/FSharpTypeScriptRef/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/FSharpTypeScriptRef/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/ItemTemplates/NativeTypes/FSharpTypeScriptRef/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/FSharpTypeScriptRef/template.ts:
--------------------------------------------------------------------------------
1 | /* Options:
2 | Date: 2014-11-27 04:04:39
3 | Version: 1
4 | BaseUrl: $basereferenceurl$
5 |
6 | //GlobalNamespace:
7 | AddServiceStackTypes: False
8 | //AddResponseStatus: False
9 | //AddImplicitVersion:
10 | */
11 |
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/VbNetTypeScriptRef/Definitions/VB.vstemplate:
--------------------------------------------------------------------------------
1 |
2 |
3 | VisualBasic
4 |
5 | TypeScriptReference
6 | TypeScript Reference
7 | TypeScript reference from a ServiceStack server.
8 | logo.png
9 |
10 |
11 |
12 |
13 | template.ts
14 |
15 |
16 |
17 | ServiceStackVS.NativeTypesWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b5de165d076e49f5
18 | ServiceStackVS.NativeTypesWizard.NativeTypesWizard
19 |
20 |
21 | typescript
22 |
23 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/VbNetTypeScriptRef/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/VbNetTypeScriptRef/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/ItemTemplates/NativeTypes/VbNetTypeScriptRef/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/NativeTypes/VbNetTypeScriptRef/template.ts:
--------------------------------------------------------------------------------
1 | /* Options:
2 | Date: 2014-11-27 04:04:39
3 | Version: 1
4 | BaseUrl: $basereferenceurl$
5 |
6 | //GlobalNamespace:
7 | AddServiceStackTypes: False
8 | //AddResponseStatus: False
9 | //AddImplicitVersion:
10 | */
11 |
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/Razor/CSharpRazor/Definitions/CSharp.vstemplate:
--------------------------------------------------------------------------------
1 |
2 |
3 | CSharp
4 |
5 | CSharpRazorItem
6 | Web Page (Razor v3)
7 | Add a cshtml file to your project
8 | logo.png
9 | 1
10 |
11 |
12 |
13 |
14 | razor.cshtml
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/Razor/CSharpRazor/_preprocess.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/Razor/CSharpRazor/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/ItemTemplates/Razor/CSharpRazor/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/ItemTemplates/Razor/CSharpRazor/razor.cshtml:
--------------------------------------------------------------------------------
1 | @inherits ViewPage
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS/PkgCmdID.cs:
--------------------------------------------------------------------------------
1 | // PkgCmdID.cs
2 | // MUST match PkgCmdID.h
3 | using System;
4 |
5 | namespace ServiceStackVS
6 | {
7 | static class PkgCmdIDList
8 | {
9 | public const uint cmdidCSharpAddServiceStackReference = 0x0100;
10 | public const uint cmdidUpdateServiceStackReference = 0x0104;
11 | public const uint cmdidFSharpAddServiceStackReference = 0x0101;
12 | //public const uint cmdidFSharpUpdateServiceStackReference = 0x0201;
13 | public const uint cmdidVbNetAddServiceStackReference = 0x0102;
14 | //public const uint cmdidVbNetUpdateServiceStackReference = 0x0202;
15 | public const uint cmdidTypeScriptAddServiceStackReference = 0x0103;
16 | //public const uint cmdidTypeScriptUpdateServiceStackReference = 0x0203;
17 |
18 | };
19 | }
--------------------------------------------------------------------------------
/src/ServiceStackVS/Properties/template-builder.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
13 |
14 |
15 | ServiceStack
16 |
17 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/Resources/Images.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/Resources/Images.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/Resources/Package.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/Resources/Package.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS/Resources/ServiceModelTemplate.txt:
--------------------------------------------------------------------------------
1 | <#@ template debug="false" hostspecific="false" language="C#" #>
2 | <#@ output extension=".cs" #>
3 | <#= DownloadCSharpDtos("$serviceurl$") #>
4 | <#+
5 | public class CodegenOptions
6 | {
7 | bool? MakePartial;
8 | bool? MakeVirtual;
9 | bool? MakeDataContractsExtensible;
10 | bool? InitializeCollections;
11 | bool? AddReturnMarker;
12 | bool? AddDescriptionAsComments;
13 | bool? AddDataContractAttributes;
14 | bool? AddIndexesToDataMembers;
15 | bool? AddResponseStatus;
16 | int? AddImplicitVersion;
17 | string AddDefaultXmlNamespace;
18 | }
19 | #>
20 |
21 | <#+
22 | public static string DownloadCSharpDtos(string baseUrl) {
23 | var sb = new System.Text.StringBuilder();
24 | var fields = typeof(CodegenOptions).GetFields(
25 | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
26 | var config = new CodegenOptions();
27 | foreach (var f in fields) {
28 | var value = f.GetValue(config);
29 | if (value == null) continue;
30 | if (sb.Length > 0) sb.Append("&");
31 | sb.AppendFormat("{0}={1}", f.Name, value);
32 | }
33 | var qs = sb.ToString();
34 | if (qs.Length > 0) baseUrl += "?" + qs;
35 | return new System.Net.WebClient().DownloadString(baseUrl);
36 | }
37 | #>
--------------------------------------------------------------------------------
/src/ServiceStackVS/Resources/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/Resources/favicon.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS/Resources/logo-280.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/Resources/logo-280.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/Resources/logo-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/Resources/logo-48.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/Resources/logoAddReference.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/Resources/logoAddReference.bmp
--------------------------------------------------------------------------------
/src/ServiceStackVS/Resources/servicestacklogo.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/Resources/servicestacklogo.ico
--------------------------------------------------------------------------------
/src/ServiceStackVS/Settings/ServiceStackOptionsDialogGrid.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.Runtime.InteropServices;
4 | using Microsoft.VisualStudio.Shell;
5 |
6 | namespace ServiceStackVS.Settings
7 | {
8 | [ClassInterface(ClassInterfaceType.AutoDual)]
9 | [CLSCompliant(false), ComVisible(true)]
10 | public class ServiceStackOptionsDialogGrid : DialogPage
11 | {
12 | [Category("General")]
13 | [DisplayName(@"Opt out of anonymous usage statistics")]
14 | [Description("Anonymous usage statistics are collected regarding use of templates to help ServiceStack focus on what provides you with the most value.")]
15 | public bool OptOutStats { get; set; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/TemplateBuilder.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/TemplateBuilder.dll
--------------------------------------------------------------------------------
/src/ServiceStackVS/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/Thumbs.db
--------------------------------------------------------------------------------
/src/ServiceStackVS/VSServiceStack_IntegrationTests/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/VSServiceStack_IntegrationTests/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS/VSServiceStack_UnitTests/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/VSServiceStack_UnitTests/Key.snk
--------------------------------------------------------------------------------
/src/ServiceStackVS/VSServiceStack_UnitTests/PackageTest.cs:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 |
3 | Copyright (c) Microsoft Corporation. All rights reserved.
4 | This code is licensed under the Visual Studio SDK license terms.
5 | THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
6 | ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
7 | IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
8 | PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
9 |
10 | ***************************************************************************/
11 |
12 | using System;
13 | using System.Collections;
14 | using System.Text;
15 | using System.Reflection;
16 | using Microsoft.VisualStudio.Shell;
17 | using Microsoft.VisualStudio.Shell.Interop;
18 | using Microsoft.VisualStudio.TestTools.UnitTesting;
19 | using ServiceStackVS;
20 |
21 | namespace ServiceStackVS_UnitTests
22 | {
23 | [TestClass()]
24 | public class PackageTest
25 | {
26 | [TestMethod()]
27 | public void CreateInstance()
28 | {
29 | ServiceStackVSPackage package = new ServiceStackVSPackage();
30 | }
31 |
32 | [TestMethod()]
33 | public void IsIVsPackage()
34 | {
35 | ServiceStackVSPackage package = new ServiceStackVSPackage();
36 | Assert.IsNotNull(package as Package, "The object does not implement IVsPackage");
37 | }
38 |
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/VSServiceStack_UnitTests/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/ServiceStackVS/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/icon.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/license.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/license.txt
--------------------------------------------------------------------------------
/src/ServiceStackVS/logo-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/logo-200.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/logo-280.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/logo-280.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/logo-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/logo-32.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/logo.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/logoAddReference.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/logoAddReference.png
--------------------------------------------------------------------------------
/src/ServiceStackVS/preview-image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackVS/preview-image.png
--------------------------------------------------------------------------------
/src/ServiceStackXS.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2012
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceStackXS", "ServiceStackXS\ServiceStackXS.csproj", "{555B5243-E50E-4C60-AAB4-D789D44039C9}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Any CPU = Debug|Any CPU
9 | Release|Any CPU = Release|Any CPU
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {555B5243-E50E-4C60-AAB4-D789D44039C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13 | {555B5243-E50E-4C60-AAB4-D789D44039C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
14 | {555B5243-E50E-4C60-AAB4-D789D44039C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
15 | {555B5243-E50E-4C60-AAB4-D789D44039C9}.Release|Any CPU.Build.0 = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(MonoDevelopProperties) = preSolution
18 | Policies = $0
19 | $0.DotNetNamingPolicy = $1
20 | $1.DirectoryNamespaceAssociation = None
21 | $1.ResourceNamePolicy = FileFormatDefault
22 | $0.VersionControlPolicy = $2
23 | $2.inheritsSet = Mono
24 | version = 0.3
25 | EndGlobalSection
26 | EndGlobal
27 |
--------------------------------------------------------------------------------
/src/ServiceStackXS/Conditions/ServiceReferenceDtoCondition.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Mono.Addins;
3 | using MonoDevelop.Ide;
4 | using MonoDevelop.Projects;
5 | using System.Collections.Generic;
6 | using System.Linq;
7 | using ServiceStackVS.NativeTypes;
8 |
9 | namespace ServiceStackXS
10 | {
11 | public class ServiceReferenceDtoCondition : ConditionType
12 | {
13 | public override bool Evaluate (NodeElement conditionNode)
14 | {
15 | var selectedFile = IdeApp.ProjectOperations.CurrentSelectedItem as ProjectFile;
16 | if(selectedFile == null || selectedFile.Name == null) {
17 | return false;
18 | }
19 |
20 | bool visible = NativeTypeHandlers.All.FirstOrDefault(handler => handler.IsHandledFileType(selectedFile.Name.ToLowerInvariant())) != null;
21 | return visible;
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/src/ServiceStackXS/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 |
4 | // Information about this assembly is defined by the following attributes.
5 | // Change them to the values specific to your project.
6 |
7 | [assembly: AssemblyTitle ("ServiceStackXS")]
8 | [assembly: AssemblyDescription ("")]
9 | [assembly: AssemblyConfiguration ("")]
10 | [assembly: AssemblyCompany ("")]
11 | [assembly: AssemblyProduct ("")]
12 | [assembly: AssemblyCopyright ("ServiceStack")]
13 | [assembly: AssemblyTrademark ("")]
14 | [assembly: AssemblyCulture ("")]
15 |
16 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
17 | // The form "{Major}.{Minor}.*" will automatically update the build and revision,
18 | // and "{Major}.{Minor}.{Build}.*" will update just the revision.
19 |
20 | [assembly: AssemblyVersion ("1.0.*")]
21 |
22 | // The following attributes are used to specify the signing key for the assembly,
23 | // if desired. See the Mono documentation for more information about signing.
24 |
25 | //[assembly: AssemblyDelaySign(false)]
26 | //[assembly: AssemblyKeyFile("")]
27 |
28 |
--------------------------------------------------------------------------------
/src/ServiceStackXS/README.MD:
--------------------------------------------------------------------------------
1 | # ServiceStackXS - An Addin for Xamarin Studio
2 | This addin provides functionality around Add/Update ServiceStack Reference to match that of ServiceStackVS and other IDE integration.
3 |
4 | ## Build process
5 | The build process for this Addin is provided by MonoDevelop/Xamarin teams accessible via the [Addins Management site](http://addins.monodevelop.com/).
6 |
7 | These build servers can be a bit flaky and rules around which libs the build server provides and which are referenced by the addin seems to change as versions of MD/XS update.
8 |
9 | Once it is building successfully the addin can be published to the Alpha, Beta or Stable channels which developers can opt in from the IDE when looking for Addins.
10 |
11 | ## Running locally
12 | Testing locally can be done by running `package.bat`. This uses the `vstool` CLI to package the addin from the Debug folder to install locally and test. Alternatively, building and running the package from Visual Studio for Mac should launch a new instance of the IDE and allow debugging, this requres the `Addin Maker` addin to be installed (from the IDE).
13 |
--------------------------------------------------------------------------------
/src/ServiceStackXS/ReleaseNotes.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/ServiceStackXS/ServiceStackXS.ServiceStack.ServiceStackXS_0.3.mpack:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackXS/ServiceStackXS.ServiceStack.ServiceStackXS_0.3.mpack
--------------------------------------------------------------------------------
/src/ServiceStackXS/ServiceStackXS.ServiceStackXS_0.1.mpack:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackXS/ServiceStackXS.ServiceStackXS_0.1.mpack
--------------------------------------------------------------------------------
/src/ServiceStackXS/ServiceStackXS.ServiceStackXS_0.2.mpack:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackXS/ServiceStackXS.ServiceStackXS_0.2.mpack
--------------------------------------------------------------------------------
/src/ServiceStackXS/UI/SettingOptionsPanel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using MonoDevelop.Components;
3 | using MonoDevelop.Ide.Gui.Dialogs;
4 |
5 | namespace ServiceStackXS
6 | {
7 | public class SettingOptionsPanel : OptionsPanel
8 | {
9 | SettingsWidget widget;
10 |
11 | public override void ApplyChanges()
12 | {
13 | widget.Store();
14 | }
15 |
16 | public override Control CreatePanelWidget()
17 | {
18 | return widget = new SettingsWidget();
19 | }
20 | }
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/src/ServiceStackXS/UI/SettingsWidget.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using MonoDevelop.Core;
3 |
4 | namespace ServiceStackXS
5 | {
6 | [System.ComponentModel.ToolboxItem(true)]
7 | public partial class SettingsWidget : Gtk.Bin
8 | {
9 | const string optOutKey = "ServiceStackXS.OptOut";
10 |
11 | public SettingsWidget()
12 | {
13 | this.Build();
14 | this.optOutCheckbox.Active = OptOut;
15 | }
16 |
17 | public void Store()
18 | {
19 | PropertyService.Set(optOutKey, this.optOutCheckbox.Active);
20 | }
21 |
22 | public static bool OptOut
23 | {
24 | get
25 | {
26 | return PropertyService.Get(optOutKey);
27 | }
28 | }
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/src/ServiceStackXS/Utils/Analytics.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Threading.Tasks;
4 | using ServiceStack;
5 |
6 | namespace ServiceStackXS
7 | {
8 | public static class Analytics
9 | {
10 | const string serviceStackStatsAddRefUrl = "https://servicestack.net/stats/addref/record?Name={0}";
11 | const string serviceStackStatsUpdateRefUrl = "https://servicestack.net/stats/updateref/record?Name={0}";
12 |
13 | public static void SubmitAnonymousAddReferenceUsage(string languageName)
14 | {
15 | if (languageName == null)
16 | {
17 | return;
18 | }
19 | Task.Run(() =>
20 | {
21 | try
22 | {
23 | serviceStackStatsAddRefUrl.Fmt(languageName.ToLower()).GetStringFromUrl();
24 | }
25 | catch (Exception)
26 | {
27 | //do nothing
28 | }
29 | });
30 | }
31 |
32 | public static void SubmitAnonymousUpdateReferenceUsage(string languageName)
33 | {
34 | if (languageName == null)
35 | {
36 | return;
37 | }
38 | Task.Run(() =>
39 | {
40 | try
41 | {
42 | serviceStackStatsUpdateRefUrl.Fmt(languageName.ToLower()).GetStringFromUrl();
43 | }
44 | catch (Exception)
45 | {
46 | //do nothing
47 | }
48 | });
49 | }
50 | }
51 | }
52 |
53 |
--------------------------------------------------------------------------------
/src/ServiceStackXS/add-ref-item.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackXS/add-ref-item.png
--------------------------------------------------------------------------------
/src/ServiceStackXS/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackXS/favicon.ico
--------------------------------------------------------------------------------
/src/ServiceStackXS/lib/Microsoft.Web.XmlTransform.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackXS/lib/Microsoft.Web.XmlTransform.dll
--------------------------------------------------------------------------------
/src/ServiceStackXS/lib/MonoDevelop.PackageManagement.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackXS/lib/MonoDevelop.PackageManagement.dll
--------------------------------------------------------------------------------
/src/ServiceStackXS/lib/NuGet.Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackXS/lib/NuGet.Core.dll
--------------------------------------------------------------------------------
/src/ServiceStackXS/logo_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackXS/logo_32x32.png
--------------------------------------------------------------------------------
/src/ServiceStackXS/package.bat:
--------------------------------------------------------------------------------
1 | :: MDTool comes with MonoDevelop and can be used to pack addins
2 | vstool setup pack .\bin\Release\ServiceStackXS.dll
--------------------------------------------------------------------------------
/src/ServiceStackXS/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/ServiceStackXS/servicestack-project-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ServiceStackXS/servicestack-project-icon.png
--------------------------------------------------------------------------------
/src/UnitTests.testsettings:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | This test run configuration is used for running the unit tests
9 |
10 |
--------------------------------------------------------------------------------
/src/addin-project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ServiceStackXS/bin/Release/ServiceStackXS.dll
4 | ServiceStackXS.sln
5 | Release
6 |
7 |
--------------------------------------------------------------------------------
/src/lib/VSSDK/Microsoft.VsSDK.Build.Tasks.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/VSSDK/Microsoft.VsSDK.Build.Tasks.dll
--------------------------------------------------------------------------------
/src/lib/VSSDK/ProjectItemsSchema.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/CreateExpInstance.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/CreateExpInstance.exe
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/CreateExpInstance.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/CreatePkgDef.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/CreatePkgDef.exe
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/CreatePkgDef.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/ImageLibraryViewer.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/ImageLibraryViewer.exe
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/ImageLibraryViewer.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/ManifestFromResources.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/ManifestFromResources.exe
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/ManifestToCode.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/ManifestToCode.exe
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/Microsoft.VisualStudio.Pkgdef.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/Microsoft.VisualStudio.Pkgdef.dll
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/Microsoft.VisualStudio.Shell.Framework.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/Microsoft.VisualStudio.Shell.Framework.dll
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/Microsoft.VisualStudio.Shell.Immutable.10.0.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/Microsoft.VisualStudio.Shell.Immutable.10.0.dll
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/PackageWizard.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/PackageWizard.dll
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/RegPkg.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/RegPkg.exe
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/RegPkg.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/RegRiched20.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/RegRiched20.exe
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/VSCTCompress.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/VSCTCompress.dll
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/VSCTLibrary.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/VSCTLibrary.dll
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/VsixColorCompiler.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/VsixColorCompiler.exe
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/VsixColorCompiler.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/VsixColorEditor.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/VsixColorEditor.exe
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/vsct.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/vsct.exe
--------------------------------------------------------------------------------
/src/lib/vssdk_tools/vsdconfigtool.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/lib/vssdk_tools/vsdconfigtool.exe
--------------------------------------------------------------------------------
/src/ssutil-cli.Tests/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ssutil-cli/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/ssutil-cli/lib/ServiceStack.Text.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ssutil-cli/lib/ServiceStack.Text.dll
--------------------------------------------------------------------------------
/src/ssutil-cli/lib/ServiceStackVS.NativeTypes.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ssutil-cli/lib/ServiceStackVS.NativeTypes.dll
--------------------------------------------------------------------------------
/src/ssutil-cli/package/generate-update-tests.bat:
--------------------------------------------------------------------------------
1 | ssutil "http://techstacks.io/" --file ..\..\ssutil-cli.Tests\TestDtos\ServiceStackRef_Update --lang CSharp
2 | ssutil "http://techstacks.io/" --file ..\..\ssutil-cli.Tests\TestDtos\ServiceStackRef_Update --lang FSharp
3 | ssutil "http://techstacks.io/" --file ..\..\ssutil-cli.Tests\TestDtos\ServiceStackRef_Update --lang Typescript.d
4 | ssutil "http://techstacks.io/" --file ..\..\ssutil-cli.Tests\TestDtos\ServiceStackRef_Update --lang Typescript
5 | ssutil "http://techstacks.io/" --file ..\..\ssutil-cli.Tests\TestDtos\ServiceStackRef_Update --lang VBNet
6 | ssutil "http://techstacks.io/" --file ..\..\ssutil-cli.Tests\TestDtos\ServiceStackRef_Update --lang Java
7 | ssutil "http://techstacks.io/" --file ..\..\ssutil-cli.Tests\TestDtos\ServiceStackRef_Update --lang Swift
8 | ssutil "http://techstacks.io/" --file ..\..\ssutil-cli.Tests\TestDtos\ServiceStackRef_Update --lang Kotlin
--------------------------------------------------------------------------------
/src/ssutil-cli/package/merge.bat:
--------------------------------------------------------------------------------
1 | SET TOOLS=..\tools
2 | SET ILMERGE=%TOOLS%\ILMerge.exe
3 | SET RELEASE=..\bin\Release
4 | SET INPUT=%RELEASE%\ssutil.exe
5 | SET INPUT=%INPUT% %RELEASE%\ServiceStack.Text.dll
6 | SET INPUT=%INPUT% %RELEASE%\ServiceStackVS.NativeTypes.dll
7 |
8 | %ILMERGE% /target:exe /targetplatform:v4,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5" /out:ssutil.exe /ndebug %INPUT%
--------------------------------------------------------------------------------
/src/ssutil-cli/package/ssutil.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ssutil-cli/package/ssutil.exe
--------------------------------------------------------------------------------
/src/ssutil-cli/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/ssutil-cli/tools/ILMerge.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ServiceStack/ServiceStackVS/1da5c4fc577b436263562ede30946d15c6c3ac00/src/ssutil-cli/tools/ILMerge.exe
--------------------------------------------------------------------------------