Browse Source

Renomme le projet

olivier.massot 7 years ago
parent
commit
3d784be796

+ 1 - 1
MobiParc/App_Start/WebApiConfig.cs

@@ -1,6 +1,6 @@
 using System.Web.Http;
 
-namespace MobiParc
+namespace ModelePWA
 {
     public static class WebApiConfig
     {

+ 7 - 7
MobiParc/Controllers/MobiparcController.cs → MobiParc/Controllers/ModelePwaController.cs

@@ -4,11 +4,11 @@ using System.Linq;
 using System.Web.Http;
 using System.IO;
 
-namespace mobiparc.Controllers
+namespace ModelePWA.Controllers
 {
-    public class MobiparcController : ApiController
+    public class ModelePWAController : ApiController
     {
-        // GET: api/mobiparc
+        // GET: api/modelepwa
         public IEnumerable<string> Get()
         {
             
@@ -17,13 +17,13 @@ namespace mobiparc.Controllers
             return files.ToArray();
         }
 
-        // GET: api/mobiparc/5
+        // GET: api/modelepwa/5
         public string Get(string name)
         {
             return File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath(@"~/data/" + name + ".json"));
         }
 
-        // POST: api/mobiparc
+        // POST: api/modelepwa
         public bool Post([FromBody]string value)
         {
             var data =  System.Web.HttpContext.Current.Request["data"];
@@ -33,12 +33,12 @@ namespace mobiparc.Controllers
             return true;
         }
 
-        // PUT: api/mobiparc/5
+        // PUT: api/modelepwa/5
         public void Put(int id, [FromBody]string value)
         {
         }
 
-        // DELETE: api/mobiparc/5
+        // DELETE: api/modelepwa/5
         public void Delete(int id)
         {
         }

+ 1 - 1
MobiParc/Global.asax

@@ -1 +1 @@
-<%@ Application Codebehind="Global.asax.cs" Inherits="MobiParc.WebApiApplication" Language="C#" %>
+<%@ Application Codebehind="Global.asax.cs" Inherits="ModelePWA.WebApiApplication" Language="C#" %>

+ 1 - 1
MobiParc/Global.asax.cs

@@ -1,6 +1,6 @@
 using System.Web.Http;
 
-namespace MobiParc
+namespace ModelePWA
 {
     public class WebApiApplication : System.Web.HttpApplication
     {

+ 6 - 10
MobiParc/MobiParc.csproj → MobiParc/ModelePWA.csproj

@@ -13,8 +13,8 @@
     <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
     <OutputType>Library</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>MobiParc</RootNamespace>
-    <AssemblyName>MobiParc</AssemblyName>
+    <RootNamespace>ModelePWA</RootNamespace>
+    <AssemblyName>ModelePWA</AssemblyName>
     <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
     <UseIISExpress>true</UseIISExpress>
     <IISExpressSSLPort />
@@ -100,8 +100,6 @@
     <Content Include="bin\fr\System.Web.Http.WebHost.resources.dll" />
     <Content Include="packages.config" />
     <Content Include="obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache" />
-    <Content Include="obj\Debug\MobiParc.csprojResolveAssemblyReference.cache" />
-    <Content Include="bin\MobiParc.dll.config" />
     <Content Include="bin\roslyn\Microsoft.CSharp.Core.targets" />
     <Content Include="bin\roslyn\Microsoft.VisualBasic.Core.targets" />
     <Content Include="bin\roslyn\VBCSCompiler.exe.config" />
@@ -121,8 +119,6 @@
   <ItemGroup>
     <Content Include="bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" />
     <Content Include="bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml" />
-    <Content Include="bin\MobiParc.dll" />
-    <Content Include="bin\MobiParc.pdb" />
     <Content Include="bin\Newtonsoft.Json.dll" />
     <Content Include="bin\roslyn\csc.exe" />
     <Content Include="bin\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll" />
@@ -138,9 +134,9 @@
     <Content Include="bin\System.Web.Http.WebHost.dll" />
     <Content Include="css\mobiparc.css" />
     <Content Include="Global.asax" />
-    <Content Include="img\tools.svg" />
-    <Content Include="img\tools_128.png" />
-    <Content Include="img\tools_512.png" />
+    <Content Include="assets\img\tools.svg" />
+    <Content Include="assets\img\tools_128.png" />
+    <Content Include="assets\img\tools_512.png" />
     <Content Include="index.html" />
     <Content Include="assets\js\handlebars.min.js" />
     <Content Include="assets\js\jquery-3.2.1.min.js" />
@@ -152,7 +148,7 @@
   </ItemGroup>
   <ItemGroup>
     <Compile Include="App_Start\WebApiConfig.cs" />
-    <Compile Include="Controllers\MobiparcController.cs" />
+    <Compile Include="Controllers\ModelePwaController.cs" />
     <Compile Include="Global.asax.cs">
       <DependentUpon>Global.asax</DependentUpon>
     </Compile>

+ 2 - 2
MobiParc/Properties/AssemblyInfo.cs

@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
 // Les informations générales relatives à un assembly dépendent de 
 // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
 // associées à un assembly.
-[assembly: AssemblyTitle("MobiParc")]
+[assembly: AssemblyTitle("ModelePWA")]
 [assembly: AssemblyDescription("")]
 [assembly: AssemblyConfiguration("")]
 [assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("MobiParc")]
+[assembly: AssemblyProduct("ModelePWA")]
 [assembly: AssemblyCopyright("Copyright ©  2018")]
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")]

+ 0 - 0
MobiParc/img/tools.svg → MobiParc/assets/img/tools.svg


+ 0 - 0
MobiParc/img/tools_128.png → MobiParc/assets/img/tools_128.png


+ 0 - 0
MobiParc/img/tools_512.png → MobiParc/assets/img/tools_512.png


+ 2 - 2
MobiParc/assets/js/main.js

@@ -33,7 +33,7 @@ Handlebars.registerHelper('if_eq', function (a, opts) {
 
 //### Initialisation
 
-var db_name = "MobiParc"
+var db_name = "ModelePWA"
 var db_version = "3"
 var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
 var request;
@@ -227,7 +227,7 @@ $(".data-sync").on("click", function () {
         if (cursor) {
             cursor.value.model = "activites";
             var id = cursor.value.guid;
-            var posting = $.post("/api/mobiparc", { data: JSON.stringify(cursor.value) });
+            var posting = $.post("/api/modelepwa", { data: JSON.stringify(cursor.value) });
 
             // Put the results in a div
             posting.done(function (data) {

+ 2 - 2
MobiParc/index.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="fr" dir="ltr">
 <head>
-    <title>MobiParc</title>
+    <title>ModelePWA</title>
 	<meta charset="utf-8" />
     <link rel="manifest" href="manifest.json">
     <meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -23,7 +23,7 @@
 			<a href="#menu"><span>Menu</span></a>
 		</nav>
 
-		<a href="index.html" class="logo">MobiParc</a>
+		<a href="index.html" class="logo">ModelePWA</a>
 		
         <nav class="right">
             <button class="alt toggle-sync-dlg">Sync</button>

+ 16 - 16
MobiParc/manifest.json

@@ -1,22 +1,22 @@
 {
-  "short_name": "MobiParc",
-  "name": "MobiParc",
-  "description": "Suivi mobile d'activite du Parc Departemental d'Erstein",
+  "short_name": "ModelePWA",
+  "name": "ModelePWA",
+  "description": "Modèle d'application Portable Web App",
   "display": "standalone",
   "start_url": "./",
   "theme_color": "#587b8c",
-  "background_color": "#FFF", 
+  "background_color": "#FFF",
   "orientation": "portrait",
-   "icons": [
-        {
-            "src": "img/tools_128.png",
-            "sizes": "128x128",
-            "type": "image/png"
-        },
-        {
-            "src": "img/tools_512.png",
-            "sizes": "512x512",
-            "type": "image/png"
-        }
-    ]
+  "icons": [
+    {
+      "src": "img/tools_128.png",
+      "sizes": "128x128",
+      "type": "image/png"
+    },
+    {
+      "src": "img/tools_512.png",
+      "sizes": "512x512",
+      "type": "image/png"
+    }
+  ]
 }

+ 16 - 12
MobiParc/sw.js

@@ -1,5 +1,3 @@
-// we'll version our cache (and learn how to delete caches in
-// some other post)
 let cacheName = 'v1.1::static';
 
 const pageCached = [
@@ -7,16 +5,23 @@ const pageCached = [
 		  '/index.html',
 		  '/manifest.json',
           '/sw.js',
-          'data/contacts.json',
           '/tools.ico',
-		  '/css/mobiparc.css',
-          '/js/mobiparc.js',
-          '/js/jquery-3.2.1.min.js',
-          '/js/jquery-ui.min.js',
-          '/js/handlebars.min.js',
-          '/img/tools_512.png',
-          '/img/tools_128.png',
-          '/img/tools.svg',
+		  '/assets/css/font-awesome.min.css',
+		  '/assets/css/template.css',
+		  '/assets/css/custom.css',
+		  '/assets/fonts/fontawesome-webfont.eot',
+		  '/assets/fonts/fontawesome-webfont.svg',
+		  '/assets/fonts/fontawesome-webfont.ttf',
+		  '/assets/fonts/fontawesome-webfont.woff',
+		  '/assets/fonts/fontawesome-webfont.woff2',
+		  '/assets/fonts/FontAwesome.otf',
+          '/assets/js/util.js',
+          '/assets/js/main.js',
+          '/assets/js/jquery-3.2.1.min.js',
+          '/assets/js/jquery-ui.min.js',
+          '/assets/js/jquery.scrolly.min.js',
+          '/assets/js/skel.min.js',
+          '/assets/img/tools.svg',
 ];
 
 self.addEventListener('install', e => {
@@ -30,7 +35,6 @@ self.addEventListener('install', e => {
 });
 
 self.addEventListener('activate', function (e) {
-    //console.log('[ServiceWorker] Activate');
     e.waitUntil(
         caches.keys().then(keyList => {
             return Promise.all(keyList.map(key => {

+ 1 - 1
MobiParc.sln → ModelePWA.sln

@@ -8,7 +8,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
 		README.md = README.md
 	EndProjectSection
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MobiParc", "MobiParc\MobiParc.csproj", "{125C6568-4B8E-40E9-A29D-8577AA7C89F2}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModelePWA", "MobiParc\ModelePWA.csproj", "{125C6568-4B8E-40E9-A29D-8577AA7C89F2}"
 EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution