9 | @Html.ActionLink("Rotate log file...", "LogRotate", new { id = Model.Id })
10 |
11 |
12 | @Html.ActionLink("Download full log from Azure...", "DownloadAzureLog", new { id = Model.Id })
13 |
14 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.Manager/Views/Shared/Error.cshtml:
--------------------------------------------------------------------------------
1 | @model System.Web.Mvc.HandleErrorInfo
2 | @{
3 | ViewBag.Title = "Error";
4 | }
5 |
6 | Error.
7 | An error occurred while processing your request.
8 |
9 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.Manager/Views/Shared/_Flash.cshtml:
--------------------------------------------------------------------------------
1 | @* Show messages set via TempData. *@
2 | @if (TempData.ContainsKey("flashError"))
3 | {
4 |
5 | @if (TempData.ContainsKey("flashErrorTitle"))
6 | {
7 |
@TempData["flashErrorTitle"]
8 | }
9 | @TempData["flashError"]
10 |
11 | }
12 | @if (TempData.ContainsKey("flashSuccess"))
13 | {
14 |
15 | @if (TempData.ContainsKey("flashSuccessTitle"))
16 | {
17 |
@TempData["flashSuccessTitle"]
18 | }
19 | @TempData["flashSuccess"]
20 |
21 | }
22 | @if (TempData.ContainsKey("flashMessage"))
23 | {
24 |
25 | @if (TempData.ContainsKey("flashMessageTitle"))
26 | {
27 |
@TempData["flashMessageTitle"]
28 | }
29 | @TempData["flashMessage"]
30 |
31 | }
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.Manager/Views/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
@ViewBag.Title - MongoDB Manger
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
20 |
21 |
24 |
25 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.Manager/Views/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
39 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.Manager/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.Manager/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.Manager/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.Manager/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.Manager/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/MongoDB.WindowsAzure.Manager/favicon.ico
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.Manager/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.MongoDBRole/DiagnosticsHelper.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2013 10gen Inc.
3 | * file : DiagnosticsHelper.cs
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | namespace MongoDB.WindowsAzure.MongoDBRole
20 | {
21 |
22 | using System;
23 | using System.Diagnostics;
24 |
25 | using Microsoft.WindowsAzure.Diagnostics;
26 | using Microsoft.WindowsAzure.ServiceRuntime;
27 | using System.IO;
28 | using System.Security.Permissions;
29 |
30 | internal static class DiagnosticsHelper
31 | {
32 |
33 | private static TraceSource __traceSource = CreateTraceSource();
34 |
35 | internal static void TraceVerbose(string message)
36 | {
37 | __traceSource.TraceEvent(TraceEventType.Verbose, 0, message);
38 | }
39 |
40 | internal static void TraceVerbose(
41 | string message,
42 | params object[] args)
43 | {
44 | __traceSource.TraceEvent(
45 | TraceEventType.Verbose,
46 | 0,
47 | message,
48 | args);
49 | }
50 |
51 | internal static void TraceInformation(string message)
52 | {
53 | __traceSource.TraceEvent(TraceEventType.Information, 0, message);
54 | }
55 |
56 | internal static void TraceInformation(
57 | string message,
58 | params object[] args)
59 | {
60 | __traceSource.TraceEvent(
61 | TraceEventType.Information,
62 | 0,
63 | message,
64 | args);
65 | }
66 |
67 | internal static void TraceWarning(string message)
68 | {
69 | __traceSource.TraceEvent(TraceEventType.Warning, 0, message);
70 | }
71 |
72 | internal static void TraceWarning(
73 | string message,
74 | params object[] args)
75 | {
76 | __traceSource.TraceEvent(
77 | TraceEventType.Warning,
78 | 0,
79 | message,
80 | args);
81 | }
82 |
83 | internal static void TraceError(string message)
84 | {
85 | __traceSource.TraceEvent(TraceEventType.Error, 0, message);
86 | }
87 |
88 | internal static void TraceError(
89 | string message,
90 | params object[] args)
91 | {
92 | __traceSource.TraceEvent(
93 | TraceEventType.Error,
94 | 0,
95 | message,
96 | args);
97 | }
98 |
99 | internal static void TraceCritical(string message)
100 | {
101 | __traceSource.TraceEvent(TraceEventType.Critical, 0, message);
102 | }
103 |
104 | internal static void TraceCritical(
105 | string message,
106 | params object[] args)
107 | {
108 | __traceSource.TraceEvent(
109 | TraceEventType.Critical,
110 | 0,
111 | message,
112 | args);
113 | }
114 |
115 | private static TraceSource CreateTraceSource()
116 | {
117 | // Clone Trace but with an expanded name to include the current
118 | // role instance id.
119 | string traceSourceName;
120 | var roleInstanceId = RoleEnvironment.CurrentRoleInstance.Id;
121 | try
122 | {
123 | traceSourceName = Path.GetFileName(
124 | Environment.GetCommandLineArgs()[0]) +
125 | ": " + roleInstanceId;
126 | }
127 | catch (NotSupportedException)
128 | {
129 | traceSourceName = "UNSUPPORTED: " + roleInstanceId;
130 | }
131 |
132 | var traceSource = new TraceSource(traceSourceName, SourceLevels.All);
133 |
134 | // Clear the default TraceSource listeners
135 | traceSource.Listeners.Clear();
136 |
137 | // Add the registered Trace listeners
138 | traceSource.Listeners.AddRange(Trace.Listeners);
139 |
140 | return traceSource;
141 | }
142 |
143 | }
144 | }
145 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.MongoDBRole/InstanceMaintainer.cmd:
--------------------------------------------------------------------------------
1 | MongoDB.WindowsAzure.InstanceMaintainer.exe
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.MongoDBRole/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2013 10gen Inc.
3 | * file : AssemblyInfo.cs
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | using System.Reflection;
20 | using System.Runtime.CompilerServices;
21 | using System.Runtime.InteropServices;
22 |
23 | // General Information about an assembly is controlled through the following
24 | // set of attributes. Change these attribute values to modify the information
25 | // associated with an assembly.
26 | [assembly: AssemblyTitle("MongoDB.WindowsAzure.MongoDBRole")]
27 | [assembly: AssemblyDescription("")]
28 | [assembly: AssemblyConfiguration("")]
29 | [assembly: AssemblyProduct("MongoDB.WindowsAzure")]
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.MongoDBRole/Settings.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2013 10gen Inc.
3 | * file : Settings.cs
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | namespace MongoDB.WindowsAzure.MongoDBRole
20 | {
21 |
22 | using System;
23 |
24 | using Microsoft.WindowsAzure.ServiceRuntime;
25 |
26 | internal static class Settings
27 | {
28 | #region DO NOT MODIFY
29 |
30 | // configuration setting names
31 | // TODO move any shared ones to CommonSettings
32 | internal const string LocalCacheDirSetting = "MongoDBLocalDataDir";
33 | internal const string DataDirSizeSetting = "MongoDBDataDirSizeMB";
34 | internal const string LogDirSetting = "MongodLogDir";
35 | internal const string LogVerbositySetting = "MongoDBLogVerbosity";
36 | internal const string RecycleSetting = "RecycleOnExit";
37 |
38 | internal const string MongoDBBinaryFolder = @"approot\MongoDBBinaries\bin";
39 | internal const string MongodLogFileName = "mongod.log";
40 | internal const string MongodCommandLineCloud = "--port {0} --dbpath {1} --logpath {2} --nohttpinterface --logappend --replSet {3} {4}";
41 | internal const string MongodCommandLineEmulated = "--port {0} --dbpath {1} --logpath {2} --replSet {3} {4} --oplogSize 100 --smallfiles --noprealloc";
42 |
43 | internal const string LocalHostString = "localhost:{0}";
44 |
45 | internal static readonly string[] ExemptConfigurationItems =
46 | new[] { LogVerbositySetting, RecycleSetting };
47 |
48 |
49 | // Default values for configurable settings
50 | private const int DefaultEmulatedDBDriveSize = 1024; // in MB
51 | private const int DefaultDeployedDBDriveSize = 100 * 1024; // in MB
52 |
53 | #endregion DO NOT MODIFY
54 |
55 | internal static readonly int MaxDBDriveSizeInMB; // in MB
56 | internal static string MongodLogLevel = null;
57 | internal static bool RecycleRoleOnExit = true;
58 |
59 | static Settings()
60 | {
61 | int dbDriveSize;
62 | if (RoleEnvironment.IsEmulated)
63 | {
64 | dbDriveSize = DefaultEmulatedDBDriveSize;
65 | }
66 | else
67 | {
68 | dbDriveSize = DefaultDeployedDBDriveSize;
69 | }
70 |
71 | string mongoDataDirSize = null;
72 | try
73 | {
74 | mongoDataDirSize = RoleEnvironment.GetConfigurationSettingValue(DataDirSizeSetting);
75 | }
76 | catch (RoleEnvironmentException)
77 | {
78 | // setting does not exist use default
79 | }
80 | catch (Exception)
81 | {
82 | // setting does not exist?
83 | }
84 |
85 | if (!string.IsNullOrEmpty(mongoDataDirSize))
86 | {
87 | int parsedDBDriveSize = 0;
88 | if (int.TryParse(mongoDataDirSize, out parsedDBDriveSize))
89 | {
90 | MaxDBDriveSizeInMB = parsedDBDriveSize;
91 | }
92 | else
93 | {
94 | MaxDBDriveSizeInMB = dbDriveSize;
95 | }
96 | }
97 | else
98 | {
99 | MaxDBDriveSizeInMB = dbDriveSize;
100 | }
101 |
102 | try
103 | {
104 | var configuredLogLevel = RoleEnvironment.GetConfigurationSettingValue(Settings.LogVerbositySetting);
105 | var logLevel = Utilities.GetLogVerbosity(configuredLogLevel);
106 | if (logLevel != null)
107 | {
108 | MongodLogLevel = logLevel;
109 | }
110 |
111 | }
112 | catch (RoleEnvironmentException)
113 | {
114 | // setting does not exist use default
115 | }
116 | catch (Exception)
117 | {
118 | // setting does not exist?
119 | }
120 |
121 | try
122 | {
123 | var recycle = RoleEnvironment.GetConfigurationSettingValue(Settings.RecycleSetting);
124 | RecycleRoleOnExit = Utilities.GetRecycleFlag(recycle);
125 |
126 | }
127 | catch (RoleEnvironmentException)
128 | {
129 | // setting does not exist use default
130 | }
131 | catch (Exception)
132 | {
133 | // setting does not exist?
134 | }
135 | }
136 |
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.MongoDBRole/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/MongoDB.WindowsAzure.MongoDBRole/diagnostics.wadcfg:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
9 |
10 |
12 |
13 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
29 |
31 |
33 |
35 |
37 |
39 |
41 |
43 |
45 |
47 |
49 |
51 |
52 |
55 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/src/README.md:
--------------------------------------------------------------------------------
1 | ## MongoDB Worker Role
2 | Welcome to MongoDB on Azure Worker Roles
3 |
4 | ## COMPONENTS
5 | * MongoDB.WindowsAzure.Common - Helper library (dll) that provides the necessary MongoDB driver wrapper functions.
6 | Primarily used to obtain the connection string
7 | * MongoDB.WindowsAzure.MongoDBRole - The library that launches mongod as a member of a replica set. It is also responsible
8 | for mounting the necessary blobs as cloud drives.
9 | * MongoDB.WindowsAzure.Deploy - The cloud project that provides the necessary configuration to deploy the above
10 | libraries to Azure.
11 | * MongoDB.WindowsAzure.InstanceMaintainer - Executable launched on role startup to maintain the instances
12 | * Currently updates the windows hosts file based on the instance IPs
13 |
14 | ## Maintainers
15 | * Sridhar Nanjundeswaran sridhar@10gen.com
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.Deploy/MongoDB.WindowsAzure.Sample.Deploy.ccproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | 1.7
8 | {a8704158-b410-47ff-a6e2-9207b629522a}
9 | Library
10 | Properties
11 | MongoDBReplicaSet
12 | MongoDBReplicaSet
13 | True
14 | MongoDBReplicaSet
15 | False
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | MongoDB.WindowsAzure.Manager
43 | {aecf4c18-e2fd-4b80-a997-f193d4bb3933}
44 | True
45 | Web
46 | MongoDB.WindowsAzure.Manager
47 | True
48 |
49 |
50 | MongoDB.WindowsAzure.MongoDBRole
51 | {bde28c07-be8d-4c10-bcb3-193c0248c1c6}
52 | True
53 | Worker
54 | MongoDB.WindowsAzure.MongoDBRole
55 | True
56 |
57 |
58 | MongoDB.WindowsAzure.Sample.MvcMovie
59 | {c0a91ac1-1193-49af-8713-6e6f06c02448}
60 | True
61 | Web
62 | MongoDB.WindowsAzure.Sample.MvcMovie
63 | True
64 |
65 |
66 |
67 |
68 | 10.0
69 | $(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\1.7\
70 |
71 |
72 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.Deploy/ServiceConfiguration.Local.cscfg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.Deploy/ServiceDefinition.csdef:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/.gitignore:
--------------------------------------------------------------------------------
1 | # Visual Studio artifacts
2 | bin
3 | obj
4 | *.user
5 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_flat_75_ffffff_40x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_flat_75_ffffff_40x100.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_glass_65_ffffff_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_glass_65_ffffff_1x400.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_glass_75_dadada_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_glass_75_dadada_1x400.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-icons_222222_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-icons_222222_256x240.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-icons_2e83ff_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-icons_2e83ff_256x240.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-icons_454545_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-icons_454545_256x240.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-icons_888888_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-icons_888888_256x240.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-icons_cd0a0a_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mongodb/mongo-azure/81181ef06322932b19b38ce5fbba9598b06e9abf/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/images/ui-icons_cd0a0a_256x240.png
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.accordion.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI Accordion 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | *
13 | * http://docs.jquery.com/UI/Accordion#theming
14 | */
15 | /* IE/Win - Fix animation bug - #4615 */
16 | .ui-accordion { width: 100%; }
17 | .ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
18 | .ui-accordion .ui-accordion-li-fix { display: inline; }
19 | .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
20 | .ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
21 | .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
22 | .ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
23 | .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
24 | .ui-accordion .ui-accordion-content-active { display: block; }
25 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.all.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI CSS Framework 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | *
13 | * http://docs.jquery.com/UI/Theming
14 | */
15 | @import "jquery.ui.base.css";
16 | @import "jquery.ui.theme.css";
17 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.autocomplete.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI Autocomplete 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | * http://docs.jquery.com/UI/Autocomplete#theming
13 | */
14 | .ui-autocomplete { position: absolute; cursor: default; }
15 |
16 | /* workarounds */
17 | * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
18 |
19 | /*
20 | * Note: While Microsoft is not the author of this file, Microsoft is
21 | * offering you a license subject to the terms of the Microsoft Software
22 | * License Terms for Microsoft ASP.NET Model View Controller 3.
23 | * Microsoft reserves all other rights. The notices below are provided
24 | * for informational purposes only and are not the license terms under
25 | * which Microsoft distributed this file.
26 | *
27 | * jQuery UI Menu 1.8.11
28 | *
29 | * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
30 | *
31 | * http://docs.jquery.com/UI/Menu#theming
32 | */
33 | .ui-menu {
34 | list-style:none;
35 | padding: 2px;
36 | margin: 0;
37 | display:block;
38 | float: left;
39 | }
40 | .ui-menu .ui-menu {
41 | margin-top: -3px;
42 | }
43 | .ui-menu .ui-menu-item {
44 | margin:0;
45 | padding: 0;
46 | zoom: 1;
47 | float: left;
48 | clear: left;
49 | width: 100%;
50 | }
51 | .ui-menu .ui-menu-item a {
52 | text-decoration:none;
53 | display:block;
54 | padding:.2em .4em;
55 | line-height:1.5;
56 | zoom:1;
57 | }
58 | .ui-menu .ui-menu-item a.ui-state-hover,
59 | .ui-menu .ui-menu-item a.ui-state-active {
60 | font-weight: normal;
61 | margin: -1px;
62 | }
63 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.base.css:
--------------------------------------------------------------------------------
1 | @import url("jquery.ui.core.css");
2 | @import url("jquery.ui.resizable.css");
3 | @import url("jquery.ui.selectable.css");
4 | @import url("jquery.ui.accordion.css");
5 | @import url("jquery.ui.autocomplete.css");
6 | @import url("jquery.ui.button.css");
7 | @import url("jquery.ui.dialog.css");
8 | @import url("jquery.ui.slider.css");
9 | @import url("jquery.ui.tabs.css");
10 | @import url("jquery.ui.datepicker.css");
11 | @import url("jquery.ui.progressbar.css");
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.button.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI Button 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | *
13 | * http://docs.jquery.com/UI/Button#theming
14 | */
15 | .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
16 | .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
17 | button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
18 | .ui-button-icons-only { width: 3.4em; }
19 | button.ui-button-icons-only { width: 3.7em; }
20 |
21 | /*button text element */
22 | .ui-button .ui-button-text { display: block; line-height: 1.4; }
23 | .ui-button-text-only .ui-button-text { padding: .4em 1em; }
24 | .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
25 | .ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
26 | .ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
27 | .ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
28 | /* no icon support for input elements, provide padding by default */
29 | input.ui-button { padding: .4em 1em; }
30 |
31 | /*button icon element(s) */
32 | .ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
33 | .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
34 | .ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
35 | .ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
36 | .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
37 |
38 | /*button sets*/
39 | .ui-buttonset { margin-right: 7px; }
40 | .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
41 |
42 | /* workarounds */
43 | button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
44 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.core.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI CSS Framework 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | *
13 | * http://docs.jquery.com/UI/Theming/API
14 | */
15 |
16 | /* Layout helpers
17 | ----------------------------------*/
18 | .ui-helper-hidden { display: none; }
19 | .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
20 | .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
21 | .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
22 | .ui-helper-clearfix { display: inline-block; }
23 | /* required comment for clearfix to work in Opera \*/
24 | * html .ui-helper-clearfix { height:1%; }
25 | .ui-helper-clearfix { display:block; }
26 | /* end clearfix */
27 | .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
28 |
29 |
30 | /* Interaction Cues
31 | ----------------------------------*/
32 | .ui-state-disabled { cursor: default !important; }
33 |
34 |
35 | /* Icons
36 | ----------------------------------*/
37 |
38 | /* states and images */
39 | .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
40 |
41 |
42 | /* Misc visuals
43 | ----------------------------------*/
44 |
45 | /* Overlays */
46 | .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
47 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.datepicker.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI Datepicker 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | *
13 | * http://docs.jquery.com/UI/Datepicker#theming
14 | */
15 | .ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
16 | .ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
17 | .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
18 | .ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
19 | .ui-datepicker .ui-datepicker-prev { left:2px; }
20 | .ui-datepicker .ui-datepicker-next { right:2px; }
21 | .ui-datepicker .ui-datepicker-prev-hover { left:1px; }
22 | .ui-datepicker .ui-datepicker-next-hover { right:1px; }
23 | .ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
24 | .ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
25 | .ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
26 | .ui-datepicker select.ui-datepicker-month-year {width: 100%;}
27 | .ui-datepicker select.ui-datepicker-month,
28 | .ui-datepicker select.ui-datepicker-year { width: 49%;}
29 | .ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
30 | .ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
31 | .ui-datepicker td { border: 0; padding: 1px; }
32 | .ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
33 | .ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
34 | .ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
35 | .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
36 |
37 | /* with multiple calendars */
38 | .ui-datepicker.ui-datepicker-multi { width:auto; }
39 | .ui-datepicker-multi .ui-datepicker-group { float:left; }
40 | .ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
41 | .ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
42 | .ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
43 | .ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
44 | .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
45 | .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
46 | .ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
47 | .ui-datepicker-row-break { clear:both; width:100%; }
48 |
49 | /* RTL support */
50 | .ui-datepicker-rtl { direction: rtl; }
51 | .ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
52 | .ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
53 | .ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
54 | .ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
55 | .ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
56 | .ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
57 | .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
58 | .ui-datepicker-rtl .ui-datepicker-group { float:right; }
59 | .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
60 | .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
61 |
62 | /* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
63 | .ui-datepicker-cover {
64 | display: none; /*sorry for IE5*/
65 | display/**/: block; /*sorry for IE5*/
66 | position: absolute; /*must have*/
67 | z-index: -1; /*must have*/
68 | filter: mask(); /*must have*/
69 | top: -4px; /*must have*/
70 | left: -4px; /*must have*/
71 | width: 200px; /*must have*/
72 | height: 200px; /*must have*/
73 | }
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.dialog.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI Dialog 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | *
13 | * http://docs.jquery.com/UI/Dialog#theming
14 | */
15 | .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
16 | .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
17 | .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
18 | .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
19 | .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
20 | .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
21 | .ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
22 | .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
23 | .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
24 | .ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
25 | .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
26 | .ui-draggable .ui-dialog-titlebar { cursor: move; }
27 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.progressbar.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI Progressbar 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | *
13 | * http://docs.jquery.com/UI/Progressbar#theming
14 | */
15 | .ui-progressbar { height:2em; text-align: left; }
16 | .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.resizable.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI Resizable 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)]
12 | *
13 | * http://docs.jquery.com/UI/Resizable#theming
14 | */
15 | .ui-resizable { position: relative;}
16 | .ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;}
17 | .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
18 | .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
19 | .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
20 | .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
21 | .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
22 | .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
23 | .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
24 | .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
25 | .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.selectable.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI Selectable 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | *
13 | * http://docs.jquery.com/UI/Selectable#theming
14 | */
15 | .ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
16 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.slider.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI Slider 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | *
13 | * http://docs.jquery.com/UI/Slider#theming
14 | */
15 | .ui-slider { position: relative; text-align: left; }
16 | .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
17 | .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
18 |
19 | .ui-slider-horizontal { height: .8em; }
20 | .ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
21 | .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
22 | .ui-slider-horizontal .ui-slider-range-min { left: 0; }
23 | .ui-slider-horizontal .ui-slider-range-max { right: 0; }
24 |
25 | .ui-slider-vertical { width: .8em; height: 100px; }
26 | .ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
27 | .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
28 | .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
29 | .ui-slider-vertical .ui-slider-range-max { top: 0; }
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Content/themes/base/jquery.ui.tabs.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Note: While Microsoft is not the author of this file, Microsoft is
3 | * offering you a license subject to the terms of the Microsoft Software
4 | * License Terms for Microsoft ASP.NET Model View Controller 3.
5 | * Microsoft reserves all other rights. The notices below are provided
6 | * for informational purposes only and are not the license terms under
7 | * which Microsoft distributed this file.
8 | *
9 | * jQuery UI Tabs 1.8.11
10 | *
11 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12 | *
13 | * http://docs.jquery.com/UI/Tabs#theming
14 | */
15 | .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
16 | .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
17 | .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
18 | .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
19 | .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
20 | .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
21 | .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
22 | .ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
23 | .ui-tabs .ui-tabs-hide { display: none !important; }
24 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MongoDB.WindowsAzure.Sample.MvcMovie.MvcApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Global.asax.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2013 10gen Inc.
3 | * file : Global.asax.cs
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Web;
23 | using System.Web.Mvc;
24 | using System.Web.Routing;
25 |
26 | namespace MongoDB.WindowsAzure.Sample.MvcMovie
27 | {
28 |
29 | using MongoDB.Bson;
30 |
31 | // Note: For instructions on enabling IIS6 or IIS7 classic mode,
32 | // visit http://go.microsoft.com/?LinkId=9394801
33 |
34 | public class MvcApplication : System.Web.HttpApplication
35 | {
36 | public static void RegisterRoutes(RouteCollection routes)
37 | {
38 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
39 |
40 | routes.MapRoute(
41 | "Default", // Route name
42 | "{controller}/{action}/{id}", // URL with parameters
43 | new { controller = "Movies", action = "About", id = UrlParameter.Optional } // Parameter defaults
44 | );
45 |
46 | }
47 |
48 | protected void Application_Start()
49 | {
50 | ModelBinders.Binders.Add(typeof(ObjectId), new ObjectIdBinder());
51 | RegisterRoutes(RouteTable.Routes);
52 | }
53 |
54 |
55 | public static void RegisterGlobalFilters(GlobalFilterCollection filters)
56 | {
57 | filters.Add(new HandleErrorAttribute
58 | {
59 | ExceptionType = typeof(MongoDB.Driver.MongoConnectionException),
60 | View = "ConnectError",
61 | Order = 2
62 | });
63 | filters.Add(new HandleErrorAttribute
64 | {
65 | ExceptionType = typeof(System.Net.Sockets.SocketException),
66 | View = "ConnectError",
67 | Order = 2
68 | });
69 | filters.Add(new HandleErrorAttribute());
70 | }
71 | }
72 | }
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Models/Movie.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2013 10gen Inc.
3 | * file : Movie.cs
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | using System;
20 |
21 | using MongoDB.Bson;
22 | using MongoDB.Bson.Serialization.Attributes;
23 |
24 | namespace MongoDB.WindowsAzure.Sample.MvcMovie.Models
25 | {
26 | [BsonIgnoreExtraElements]
27 | public class Movie
28 | {
29 | public ObjectId Id { get; set; }
30 | public string Title { get; set; }
31 | public DateTime ReleaseDate { get; set; }
32 | public string Genre { get; set; }
33 | public decimal Price { get; set; }
34 | }
35 |
36 | }
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/ObjectIdBinder.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2013 10gen Inc.
3 | * file : ObjectIdBinder.cs
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 |
20 | namespace MongoDB.WindowsAzure.Sample.MvcMovie
21 | {
22 |
23 | using System;
24 | using System.Web.Mvc;
25 |
26 | using MongoDB.Bson;
27 |
28 | public class ObjectIdBinder : IModelBinder
29 | {
30 | public object BindModel(ControllerContext controllerContext,
31 | ModelBindingContext bindingContext)
32 | {
33 | var result = bindingContext.ValueProvider.GetValue(
34 | bindingContext.ModelName);
35 | return new ObjectId(result.AttemptedValue);
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /* Copyright 2010-2013 10gen Inc.
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | using System.Reflection;
17 | using System.Runtime.CompilerServices;
18 | using System.Runtime.InteropServices;
19 |
20 | // General Information about an assembly is controlled through the following
21 | // set of attributes. Change these attribute values to modify the information
22 | // associated with an assembly.
23 | [assembly: AssemblyTitle("MongoDB.WindowsAzure.Sample.MvcMovie")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyConfiguration("")]
26 | [assembly: AssemblyProduct("MongoDB.WindowsAzure.Sample")]
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Scripts/jquery.unobtrusive-ajax.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | ** Unobtrusive Ajax support library for jQuery
3 | ** Copyright (C) Microsoft Corporation. All rights reserved.
4 | */
5 | (function(a){var b="unobtrusiveAjaxClick",g="unobtrusiveValidation";function c(d,b){var a=window,c=(d||"").split(".");while(a&&c.length)a=a[c.shift()];if(typeof a==="function")return a;b.push(d);return Function.constructor.apply(null,b)}function d(a){return a==="GET"||a==="POST"}function f(b,a){!d(a)&&b.setRequestHeader("X-HTTP-Method-Override",a)}function h(c,b,e){var d;if(e.indexOf("application/x-javascript")!==-1)return;d=(c.getAttribute("data-ajax-mode")||"").toUpperCase();a(c.getAttribute("data-ajax-update")).each(function(f,c){var e;switch(d){case"BEFORE":e=c.firstChild;a("
").html(b).contents().each(function(){c.insertBefore(this,e)});break;case"AFTER":a("
").html(b).contents().each(function(){c.appendChild(this)});break;default:a(c).html(b)}})}function e(b,e){var j,k,g,i;j=b.getAttribute("data-ajax-confirm");if(j&&!window.confirm(j))return;k=a(b.getAttribute("data-ajax-loading"));i=b.getAttribute("data-ajax-loading-duration")||0;a.extend(e,{type:b.getAttribute("data-ajax-method")||undefined,url:b.getAttribute("data-ajax-url")||undefined,beforeSend:function(d){var a;f(d,g);a=c(b.getAttribute("data-ajax-begin"),["xhr"]).apply(this,arguments);a!==false&&k.show(i);return a},complete:function(){k.hide(i);c(b.getAttribute("data-ajax-complete"),["xhr","status"]).apply(this,arguments)},success:function(a,e,d){h(b,a,d.getResponseHeader("Content-Type")||"text/html");c(b.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(this,arguments)},error:c(b.getAttribute("data-ajax-failure"),["xhr","status","error"])});e.data.push({name:"X-Requested-With",value:"XMLHttpRequest"});g=e.type.toUpperCase();if(!d(g)){e.type="POST";e.data.push({name:"X-HTTP-Method-Override",value:g})}a.ajax(e)}function i(c){var b=a(c).data(g);return!b||!b.validate||b.validate()}a("a[data-ajax=true]").live("click",function(a){a.preventDefault();e(this,{url:this.href,type:"GET",data:[]})});a("form[data-ajax=true] input[type=image]").live("click",function(c){var g=c.target.name,d=a(c.target),f=d.parents("form")[0],e=d.offset();a(f).data(b,[{name:g+".x",value:Math.round(c.pageX-e.left)},{name:g+".y",value:Math.round(c.pageY-e.top)}]);setTimeout(function(){a(f).removeData(b)},0)});a("form[data-ajax=true] :submit").live("click",function(c){var e=c.target.name,d=a(c.target).parents("form")[0];a(d).data(b,e?[{name:e,value:c.target.value}]:[]);setTimeout(function(){a(d).removeData(b)},0)});a("form[data-ajax=true]").live("submit",function(d){var c=a(this).data(b)||[];d.preventDefault();if(!i(this))return;e(this,{url:this.action,type:this.method||"GET",data:c.concat(a(this).serializeArray())})})})(jQuery);
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Scripts/jquery.validate.unobtrusive.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | ** Unobtrusive validation support library for jQuery and jQuery Validate
3 | ** Copyright (C) Microsoft Corporation. All rights reserved.
4 | */
5 | (function(a){var d=a.validator,b,f="unobtrusiveValidation";function c(a,b,c){a.rules[b]=c;if(a.message)a.messages[b]=a.message}function i(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function g(a){return a.substr(0,a.lastIndexOf(".")+1)}function e(a,b){if(a.indexOf("*.")===0)a=a.replace("*.",b);return a}function l(c,d){var b=a(this).find("[data-valmsg-for='"+d[0].name+"']"),e=a.parseJSON(b.attr("data-valmsg-replace"))!==false;b.removeClass("field-validation-valid").addClass("field-validation-error");c.data("unobtrusiveContainer",b);if(e){b.empty();c.removeClass("input-validation-error").appendTo(b)}else c.hide()}function k(e,d){var c=a(this).find("[data-valmsg-summary=true]"),b=c.find("ul");if(b&&b.length&&d.errorList.length){b.empty();c.addClass("validation-summary-errors").removeClass("validation-summary-valid");a.each(d.errorList,function(){a("
").html(this.message).appendTo(b)})}}function j(c){var b=c.data("unobtrusiveContainer"),d=a.parseJSON(b.attr("data-valmsg-replace"));if(b){b.addClass("field-validation-valid").removeClass("field-validation-error");c.removeData("unobtrusiveContainer");d&&b.empty()}}function h(d){var b=a(d),c=b.data(f);if(!c){c={options:{errorClass:"input-validation-error",errorElement:"span",errorPlacement:a.proxy(l,d),invalidHandler:a.proxy(k,d),messages:{},rules:{},success:a.proxy(j,d)},attachValidation:function(){b.validate(this.options)},validate:function(){b.validate();return b.valid()}};b.data(f,c)}return c}d.unobtrusive={adapters:[],parseElement:function(b,i){var d=a(b),f=d.parents("form")[0],c,e,g;if(!f)return;c=h(f);c.options.rules[b.name]=e={};c.options.messages[b.name]=g={};a.each(this.adapters,function(){var c="data-val-"+this.name,i=d.attr(c),h={};if(i!==undefined){c+="-";a.each(this.params,function(){h[this]=d.attr(c+this)});this.adapt({element:b,form:f,message:i,params:h,rules:e,messages:g})}});jQuery.extend(e,{__dummy__:true});!i&&c.attachValidation()},parse:function(b){a(b).find(":input[data-val=true]").each(function(){d.unobtrusive.parseElement(this,true)});a("form").each(function(){var a=h(this);a&&a.attachValidation()})}};b=d.unobtrusive.adapters;b.add=function(c,a,b){if(!b){b=a;a=[]}this.push({name:c,params:a,adapt:b});return this};b.addBool=function(a,b){return this.add(a,function(d){c(d,b||a,true)})};b.addMinMax=function(e,g,f,a,d,b){return this.add(e,[d||"min",b||"max"],function(b){var e=b.params.min,d=b.params.max;if(e&&d)c(b,a,[e,d]);else if(e)c(b,g,e);else d&&c(b,f,d)})};b.addSingleVal=function(a,b,d){return this.add(a,[b||"val"],function(e){c(e,d||a,e.params[b])})};d.addMethod("__dummy__",function(){return true});d.addMethod("regex",function(b,c,d){var a;if(this.optional(c))return true;a=(new RegExp(d)).exec(b);return a&&a.index===0&&a[0].length===b.length});b.addSingleVal("accept","exts").addSingleVal("regex","pattern");b.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");b.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");b.add("equalto",["other"],function(b){var h=g(b.element.name),i=b.params.other,d=e(i,h),f=a(b.form).find(":input[name="+d+"]")[0];c(b,"equalTo",f)});b.add("required",function(a){(a.element.tagName.toUpperCase()!=="INPUT"||a.element.type.toUpperCase()!=="CHECKBOX")&&c(a,"required",true)});b.add("remote",["url","type","additionalfields"],function(b){var d={url:b.params.url,type:b.params.type||"GET",data:{}},f=g(b.element.name);a.each(i(b.params.additionalfields||b.element.name),function(h,g){var c=e(g,f);d.data[c]=function(){return a(b.form).find(":input[name='"+c+"']").val()}});c(b,"remote",d)});a(function(){d.unobtrusive.parse(document)})})(jQuery);
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/Movies/About.cshtml:
--------------------------------------------------------------------------------
1 | @model MongoDB.WindowsAzure.Sample.MvcMovie.Models.ReplicaSetStatus
2 |
3 | @{
4 | ViewBag.Title = "MongoDB Status";
5 | }
6 |
7 |
Replica Set Status
8 | @if (Model.servers.Count > 0)
9 | {
10 |
Replica Set : @Html.DisplayFor(modelItem => Model.name)
11 |
12 |
13 |
14 | Id
15 |
16 |
17 | Name
18 |
19 |
20 | Health
21 |
22 |
23 | State id
24 |
25 |
26 | State
27 |
28 |
29 | Last Heart Beat
30 |
31 |
32 | Optime Date
33 |
34 |
35 | round trip ping time (Secondary to Primary)
36 |
37 |
38 |
39 | @foreach (var status in Model.servers)
40 | {
41 |
42 |
43 | @Html.DisplayFor(modelItem => status.id)
44 |
45 |
46 | @Html.DisplayFor(modelItem => status.name)
47 |
48 |
49 | @Html.DisplayFor(modelItem => status.health)
50 |
51 |
52 | @Html.DisplayFor(modelItem => status.state)
53 |
54 |
55 | @Html.DisplayFor(modelItem => status.stateStr)
56 |
57 |
58 | @Html.DisplayFor(modelItem => status.lastHeartbeat)
59 |
60 |
61 | @Html.DisplayFor(modelItem => status.optimeDate)
62 |
63 |
64 | @Html.DisplayFor(modelItem => status.pingMS)
65 |
66 |
67 | }
68 |
69 | }
70 | else
71 | {
72 |
Replica Set Status: @Html.DisplayFor(modelItem => Model.name)
73 | }
74 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/Movies/Create.cshtml:
--------------------------------------------------------------------------------
1 | @model MongoDB.WindowsAzure.Sample.MvcMovie.Models.Movie
2 |
3 | @{
4 | ViewBag.Title = "Create";
5 | }
6 |
7 |
Create
8 |
9 |
10 |
11 |
12 | @using (Html.BeginForm()) {
13 | @Html.ValidationSummary(true)
14 |
15 | Movie
16 |
17 |
18 | @Html.LabelFor(model => model.Title)
19 |
20 |
21 | @Html.EditorFor(model => model.Title)
22 | @Html.ValidationMessageFor(model => model.Title)
23 |
24 |
25 |
26 | @Html.LabelFor(model => model.ReleaseDate)
27 |
28 |
29 | @Html.EditorFor(model => model.ReleaseDate)
30 | @Html.ValidationMessageFor(model => model.ReleaseDate)
31 |
32 |
33 |
34 | @Html.LabelFor(model => model.Genre)
35 |
36 |
37 | @Html.EditorFor(model => model.Genre)
38 | @Html.ValidationMessageFor(model => model.Genre)
39 |
40 |
41 |
42 | @Html.LabelFor(model => model.Price)
43 |
44 |
45 | @Html.EditorFor(model => model.Price)
46 | @Html.ValidationMessageFor(model => model.Price)
47 |
48 |
49 |
50 |
51 |
52 |
53 | }
54 |
55 |
56 | @Html.ActionLink("Back to List", "Index")
57 |
58 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/Movies/Delete.cshtml:
--------------------------------------------------------------------------------
1 | @model MongoDB.WindowsAzure.Sample.MvcMovie.Models.Movie
2 |
3 | @{
4 | ViewBag.Title = "Delete";
5 | }
6 |
7 |
Delete
8 |
9 |
Are you sure you want to delete this?
10 |
11 | Movie
12 |
13 | Title
14 |
15 | @Html.DisplayFor(model => model.Title)
16 |
17 |
18 | ReleaseDate
19 |
20 | @Html.DisplayFor(model => model.ReleaseDate)
21 |
22 |
23 | Genre
24 |
25 | @Html.DisplayFor(model => model.Genre)
26 |
27 |
28 | Price
29 |
30 | @Html.DisplayFor(model => model.Price)
31 |
32 |
33 | @using (Html.BeginForm()) {
34 |
35 | |
36 | @Html.ActionLink("Back to List", "Index")
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/Movies/Details.cshtml:
--------------------------------------------------------------------------------
1 | @model MongoDB.WindowsAzure.Sample.MvcMovie.Models.Movie
2 |
3 | @{
4 | ViewBag.Title = "Details";
5 | }
6 |
7 |
Details
8 |
9 |
10 | Movie
11 |
12 | Title
13 |
14 | @Html.DisplayFor(model => model.Title)
15 |
16 |
17 | ReleaseDate
18 |
19 | @Html.DisplayFor(model => model.ReleaseDate)
20 |
21 |
22 | Genre
23 |
24 | @Html.DisplayFor(model => model.Genre)
25 |
26 |
27 | Price
28 |
29 | @Html.DisplayFor(model => model.Price)
30 |
31 |
32 |
33 | @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
34 | @Html.ActionLink("Back to List", "Index")
35 |
36 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/Movies/Edit.cshtml:
--------------------------------------------------------------------------------
1 | @model MongoDB.WindowsAzure.Sample.MvcMovie.Models.Movie
2 |
3 | @{
4 | ViewBag.Title = "Edit";
5 | }
6 |
7 |
Edit
8 |
9 |
10 |
11 |
12 | @using (Html.BeginForm()) {
13 | @Html.ValidationSummary(true)
14 |
15 | Movie
16 |
17 | @Html.HiddenFor(model => model.Id)
18 |
19 |
20 | @Html.LabelFor(model => model.Title)
21 |
22 |
23 | @Html.EditorFor(model => model.Title)
24 | @Html.ValidationMessageFor(model => model.Title)
25 |
26 |
27 |
28 | @Html.LabelFor(model => model.ReleaseDate)
29 |
30 |
31 | @Html.EditorFor(model => model.ReleaseDate)
32 | @Html.ValidationMessageFor(model => model.ReleaseDate)
33 |
34 |
35 |
36 | @Html.LabelFor(model => model.Genre)
37 |
38 |
39 | @Html.EditorFor(model => model.Genre)
40 | @Html.ValidationMessageFor(model => model.Genre)
41 |
42 |
43 |
44 | @Html.LabelFor(model => model.Price)
45 |
46 |
47 | @Html.EditorFor(model => model.Price)
48 | @Html.ValidationMessageFor(model => model.Price)
49 |
50 |
51 |
52 |
53 |
54 |
55 | }
56 |
57 |
58 | @Html.ActionLink("Back to List", "Index")
59 |
60 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/Movies/Index.cshtml:
--------------------------------------------------------------------------------
1 | @model IEnumerable
2 |
3 | @{
4 | ViewBag.Title = "Index";
5 | }
6 |
7 | Index
8 |
9 |
10 | @Html.ActionLink("Create New", "Create")
11 |
12 |
13 |
14 |
15 | Title
16 |
17 |
18 | ReleaseDate
19 |
20 |
21 | Genre
22 |
23 |
24 | Price
25 |
26 |
27 |
28 |
29 | @foreach (var item in Model) {
30 |
31 |
32 | @Html.DisplayFor(modelItem => item.Title)
33 |
34 |
35 | @Html.DisplayFor(modelItem => item.ReleaseDate)
36 |
37 |
38 | @Html.DisplayFor(modelItem => item.Genre)
39 |
40 |
41 | @Html.DisplayFor(modelItem => item.Price)
42 |
43 |
44 | @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
45 | @Html.ActionLink("Details", "Details", new { id = item.Id }) |
46 | @Html.ActionLink("Delete", "Delete", new { id = item.Id })
47 |
48 |
49 | }
50 |
51 |
52 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/Shared/ConnectError.cshtml:
--------------------------------------------------------------------------------
1 | @model System.Web.Mvc.HandleErrorInfo
2 |
3 | @{
4 | ViewBag.Title = "MongoDB Connection Error";
5 | }
6 |
7 | A Database Connection Error Has Occurred
8 |
9 | @if (Model != null)
10 | {
11 | @Model.Exception.GetType().Name
12 | thrown in @Model.ControllerName @Model.ActionName
13 | }
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/Shared/Error.cshtml:
--------------------------------------------------------------------------------
1 | @model System.Web.Mvc.HandleErrorInfo
2 |
3 | @{
4 | ViewBag.Title = "Error";
5 | }
6 |
7 |
8 | Sorry, an error occurred while processing your request.
9 |
10 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | @ViewBag.Title
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | MongoDB on Azure
14 |
15 |
19 |
20 |
21 |
24 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
39 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/MongoDB.WindowsAzure.Sample.MvcMovie/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/src/SampleApplications/MvcMovieSample/README.md:
--------------------------------------------------------------------------------
1 | ## MongoDB Web Role Sample Application
2 | Welcome to MongoDB on Azure Worker Roles, Sample client application
3 |
4 | ## COMPONENTS
5 | * MongoDB.WindowsAzure.Sample.Deploy - The cloud project that provides the necessary configuration to deploy the MongoDB
6 | worker role and the sample MvcMovie web role
7 | * MongoDB.WindowsAzure.Sample.MvcMovie - A sample web application that also displays replica set status
8 |
9 | ## Maintainers
10 | * Sridhar Nanjundeswaran sridhar@10gen.com
--------------------------------------------------------------------------------
/src/SampleApplications/README.md:
--------------------------------------------------------------------------------
1 | ## Sample Applications for MongoDB on Azure Worker role
2 |
3 | ## APPLICATIONS
4 | * MvcMovieSample - A sample MVC3 web app that demonstrates connecting and working with the mongodb replica set
5 | deployed to Azure Worker Role.
6 |
7 | ## Maintainers
8 | * Sridhar Nanjundeswaran sridhar@10gen.com
9 |
--------------------------------------------------------------------------------