From 98bf349870f1313fd6bd7fa07bc8fdbc8fa1dbda Mon Sep 17 00:00:00 2001 From: peter_rabbit <pierrejarriges@gmail.com> Date: Mon, 18 Jan 2021 20:24:43 +0100 Subject: [PATCH] fix:download link url --- Makefile | 6 ------ public/education/education.js | 6 +++--- public/games/games.js | 4 ++-- public/main.js | 4 ++-- public/software-development/software-development.js | 4 ++-- src/pages/education/components/game-studio-club.js | 2 +- 6 files changed, 10 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 5e5af06..b61fb93 100644 --- a/Makefile +++ b/Makefile @@ -17,11 +17,5 @@ stop: bash: docker exec -it kuadrado bash -web: - docker exec -it kuadrado bash -c "npm run build" - -stylesheet: - docker exec -it kuadrado bash -c "npm run style" - open: firefox http://localhost/ diff --git a/public/education/education.js b/public/education/education.js index 6b5614b..b3e75ec 100644 --- a/public/education/education.js +++ b/public/education/education.js @@ -1,5 +1,5 @@ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ -const ENV = "dev"; +const ENV = "prod"; let server_url; @@ -8,7 +8,7 @@ switch (ENV) { server_url = "http://localhost"; break; case "prod": - server_url = "http://your_production_server_url:port"; + server_url = "http://kuadrado-software.fr"; } module.exports = { server_url }; @@ -437,7 +437,7 @@ class GameStudioClub { tag: "a", class: "download-link", download: "fiche-inscription", - href: "/fiche-inscription.pdf", + href: "/assets/documents/fiche-inscription.pdf", contents: "Télécharger la fiche d'inscription", }, ], diff --git a/public/games/games.js b/public/games/games.js index ad0584d..eb60201 100644 --- a/public/games/games.js +++ b/public/games/games.js @@ -1,5 +1,5 @@ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ -const ENV = "dev"; +const ENV = "prod"; let server_url; @@ -8,7 +8,7 @@ switch (ENV) { server_url = "http://localhost"; break; case "prod": - server_url = "http://your_production_server_url:port"; + server_url = "http://kuadrado-software.fr"; } module.exports = { server_url }; diff --git a/public/main.js b/public/main.js index a1e60d0..cd74186 100644 --- a/public/main.js +++ b/public/main.js @@ -1,5 +1,5 @@ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ -const ENV = "dev"; +const ENV = "prod"; let server_url; @@ -8,7 +8,7 @@ switch (ENV) { server_url = "http://localhost"; break; case "prod": - server_url = "http://your_production_server_url:port"; + server_url = "http://kuadrado-software.fr"; } module.exports = { server_url }; diff --git a/public/software-development/software-development.js b/public/software-development/software-development.js index 41ac956..3c15ef8 100644 --- a/public/software-development/software-development.js +++ b/public/software-development/software-development.js @@ -1,5 +1,5 @@ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ -const ENV = "dev"; +const ENV = "prod"; let server_url; @@ -8,7 +8,7 @@ switch (ENV) { server_url = "http://localhost"; break; case "prod": - server_url = "http://your_production_server_url:port"; + server_url = "http://kuadrado-software.fr"; } module.exports = { server_url }; diff --git a/src/pages/education/components/game-studio-club.js b/src/pages/education/components/game-studio-club.js index a7bdda3..b9d3c32 100644 --- a/src/pages/education/components/game-studio-club.js +++ b/src/pages/education/components/game-studio-club.js @@ -328,7 +328,7 @@ class GameStudioClub { tag: "a", class: "download-link", download: "fiche-inscription", - href: "/fiche-inscription.pdf", + href: "/assets/documents/fiche-inscription.pdf", contents: "Télécharger la fiche d'inscription", }, ], -- GitLab