Compare commits

...
9 Commits
Author SHA1 Message Date
CAGETTE DEPLOYER 93f3d362a4 fix empty categories 2020-12-09 23:04:20 +04:00
ct9.lxd b646670848 fix Makefile + locked libraries 2020-11-13 07:43:33 +00:00
ct9.lxd 9f43fded15 no more site24 2020-11-12 18:07:36 +00:00
ct9.lxd 1537bcd54b README 2020-11-12 18:02:33 +00:00
ct9.lxd 31caa5e6b3 full compilation + bootstrap 2020-11-12 17:58:16 +00:00
cagette@ct8 407405389d cagette-péi 2020-11-11 18:05:57 +04:00
cagette@ct8 a2b9bf3e54 simplify template master 2020-11-11 17:50:50 +04:00
cagette@ct8 c3eb0a1a80 Makefile 2020-09-28 17:13:53 +00:00
cagette@ct8 4c8941a829 espece et carte bancaire 2020-09-28 17:06:45 +00:00
16 changed files with 2877 additions and 2864 deletions
+1 -1
View File
@@ -2,7 +2,6 @@
*.php
config.xml
www/plugin/*
Makefile
tmp/*
*node_modules*
*.map
@@ -33,5 +32,6 @@ www/js/libs.js
www/css/.sass-cache
www/css/*.css
!www/css/bootstrap.min.css
+7 -4
View File
@@ -15,7 +15,7 @@ install:
#setup dev environnement from source
install_dev:
#set config file to debug=1
@sed -e 's?debug=.*?debug="1"?g' --in-place config.xml
#@sed -e 's?debug=.*?debug="1"?g' --in-place config.xml
#install haxe dependencies in .haxelib
haxelib newrepo
haxelib -always install cagette.hxml
@@ -37,6 +37,7 @@ install_dev:
@make css
@make compile
@make frontend
@make templates
@echo "Well, it looks like everything is fine : librairies are installed, backend and frontend has been compiled !"
@@ -69,13 +70,15 @@ i18n:
#compile templates in each language, required for production env.
templates:
mkdir -p lang/master/tmp
haxe cagette.hxml -D i18n_generation
@make LANG=fr ctemplates
@make LANG=en ctemplates
@make LANG=de ctemplates
msgfmt www/lang/texts_fr.po -o www/lang/texts_fr.mo
chown www-data:www-data -R www
ctemplates:
(cd lang/$(LANG)/tpl; temploc2 -macros macros.mtt -output ../tmp/ *.mtt */*.mtt */*/*.mtt */*/*/*.mtt */*/*/*/*.mtt)
# (cd lang/$(LANG)/tpl; temploc2 -macros macros.mtt -output ../tmp/ *.mtt */*.mtt */*/*.mtt */*/*/*.mtt */*/*/*/*.mtt)
(cd lang/$(LANG)/tpl; temploc2 -macros macros.mtt -output ../tmp/ *.mtt */*.mtt */*/*.mtt)
#Compile and run unit tests
tests:
+2 -15
View File
@@ -1,17 +1,4 @@
# Cagette.net
Le logiciel libre des circuits courts.
# Cagette péi
[![Build Status](https://travis-ci.org/bablukid/cagette.svg?branch=master)](https://travis-ci.org/bablukid/cagette)
Fourche du logiciel Cagette.net à partir de la version 0.9.2 Novembre 2018
http://www.cagette.net
Documentation : http://www.cagette.net/wiki
English :
Cagette.net is an open source web app to help people build a better and sustainable food system.
Some people call it a "foodhub" : A mix between a groupware and a marketplace, helping consumers to order food from local farmers and producers.
## Build & install
Read the Developer page on the wiki to know more about this : http://wiki.cagette.net/dev:index
+21 -4
View File
@@ -1,16 +1,33 @@
-lib templo:3.0.0
-lib hxevents:0.4.0
-lib thx.semver:0.2.2
-lib thx.csv:0.2.0
# LOCKED LIBS
-lib asys:0.3.0
-lib datetime:3.1.1
-lib history:0.0.1
-lib hscript:2.3.0
-lib hxevents:0.4.0
-lib mime:0.1.2
-lib modular:0.10.15
-lib smtpmailer:0.4.0
-lib templo:3.0.0
-lib thx.core:0.43.0
-lib thx.csv:0.2.0
-lib thx.semver:0.2.2
-lib tink_await:0.6.0
-lib tink_chunk:0.3.1
-lib tink_core:1.18.0
-lib tink_io:0.5.0
-lib tink_json:0.9.0
-lib tink_macro:0.21.1
-lib tink_priority:0.1.4
-lib tink_streams:0.2.1
-lib tink_syntaxhub:0.4.3
-lib tink_typecrawler:0.7.0
## GIT
-lib sugoi:git:git@artcode.re:cagetters/sugoi.git
-lib record-macros:git:git@artcode.re:cagetters/record-macros.git
-lib dbadmin:git:git@artcode.re:cagetters/dbadmin.git
## SCRIPT
-cp common
-cp src
-cp lang/master/tpl
+5
View File
@@ -7,6 +7,11 @@
-lib react-router-4:0.2.3
-lib modular:0.10.15
-lib tink_json:0.9.0
-lib tink_core:1.18.0
-lib tink_io:0.5.0
-lib tink_streams:0.2.1
-lib thx.core:0.43.0
-lib asys:0.3.0
-main App
-debug
-js www/js/app.js
+8 -2
View File
@@ -164,7 +164,13 @@ class ShopCart
var groups = new Map<Int,{name:String,products:Array<ProductInfo>}>();
var pinned = new Map<Int,{name:String,products:Array<ProductInfo>}>();
var firstCategGroup = this.categories[0].categs;
trace(this.categories);
var firstCategGroup = null;
if (this.categories.length > 0){
firstCategGroup = this.categories[0].categs;
}
//trace(firstCategGroup);
//trace(pinnedCategories);
@@ -181,7 +187,7 @@ class ShopCart
for ( categ in p.categories){
if (Lambda.find(firstCategGroup, function(c) return c.id == categ) != null){
if (firstCategGroup != null && Lambda.find(firstCategGroup, function(c) return c.id == categ) != null){
//is in this category group
var g = groups.get(categ);
-1
View File
@@ -1 +0,0 @@
This is where the compiled templates are.
-1
View File
@@ -1 +0,0 @@
This is where the compiled templates are.
-1
View File
@@ -1 +0,0 @@
This is where the compiled templates are.
-11
View File
@@ -112,17 +112,6 @@
})
//tracking 24x7
var rumMOKey='1d36c37d438ba069db210c73cb74308d';
(function(){
if(window.performance && window.performance.timing && window.performance.navigation) {
var site24x7_rum_beacon=document.createElement('script');
site24x7_rum_beacon.async=true;
site24x7_rum_beacon.setAttribute('src','//static.site24x7rum.com/beacon/site24x7rum-min.js?appKey='+rumMOKey);
document.getElementsByTagName('head')[0].appendChild(site24x7_rum_beacon);
}
})(window)
</script>
</body>
+1 -1
View File
@@ -201,7 +201,7 @@
<!--
::raw _("Cagette.net is made by <a href='https://www.alilo.fr' target='_blank'><img src='/img/alilo-trans-black.png' /></a>")::<br/>
-->
<span>version ::VERSION::-::getPlatform()::</span>
<span>version ::VERSION::</span>
</div>
<div class="row">
+2 -1
View File
@@ -16,7 +16,8 @@ class App extends sugoi.BaseApp {
* @doc https://github.com/fponticelli/thx.semver
*/
//public static var VERSION = ([0,9,2] : Version).withPre("july");
public static var VERSION = ([0,9,2] : Version).withPre(MyMacros.getGitShortSHA(), MyMacros.getGitCommitDate());
//public static var VERSION = ([0,9,2] : Version).withPre(MyMacros.getGitShortSHA(), MyMacros.getGitCommitDate());
public static var VERSION = "cagette-péi " + MyMacros.getGitCommitDate();
public function new(){
super();
+2 -1
View File
@@ -20,7 +20,8 @@ class MyMacros {
commitDate = StringTools.replace(commitDate, " ", ".");
commitDate = StringTools.replace(commitDate, "-", ".");
commitDate = StringTools.replace(commitDate, ":", ".");
commitDate = commitDate.substr(0,16);
//commitDate = commitDate.substr(0,16);
commitDate = commitDate.substr(0,10);
// Generates a string expression
return macro $v{commitDate};
+6
View File
File diff suppressed because one or more lines are too long
+2838 -2837
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -16,7 +16,7 @@ msgstr ""
#: src/payment/Cash.hx:294
msgid "Cash"
msgstr "Espèces"
msgstr "Espèces / Carte Bancaire"
#: src/payment/Cash.hx:323 src/payment/MoneyPot.hx:349
msgid "Pay by cash at product distribution"
@@ -126,7 +126,7 @@ msgstr ""
#: src/controller/Transaction.hx:8875
msgid "Cash for the order of ::date::"
msgstr "Espèces pour la commande du ::date::"
msgstr "Espèces/CB pour la commande du ::date::"
#: src/controller/Transaction.hx:9203
msgid "Cash payment"
@@ -1414,7 +1414,7 @@ msgid ""
"<li>Confirm the reception of payments (checks, cash, transfers) in order to "
"mark orders as 'paid'</li></ul>"
msgstr ""
"<li>Confirmer la réception des paiements (chèques, espèces, virements) afin "
"<li>Confirmer la réception des paiements (chèques, espèces/CB, virements) afin "
"de classer les commandes comme 'payées'</li></ul>"
#: src/controller/Cron.hx:11190
@@ -2439,7 +2439,7 @@ msgstr "Votre commande a été enregistrée !"
#: lang/master/tpl/transaction/cash.mtt:339
msgid "You chose to pay by cash at the product distribution"
msgstr "Vous avez choisi de payer en espèce lors de la distribution"
msgstr "Vous avez choisi de payer en espèce ou CB lors de la distribution"
#: lang/master/tpl/transaction/cash.mtt:430
msgid "Please prepare the following amount for the distribution :"