Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ca6e89cd5 | ||
|
|
f5d09537b9 | ||
|
|
a5c34cc6a0 | ||
|
|
5c9fe38c4b | ||
|
|
feff65ab36 | ||
|
|
c8a354e868 | ||
|
|
ccd46e79fc | ||
|
|
6c6eec0b78 | ||
|
|
7662ce8771 | ||
|
|
8c8e9352d3 | ||
|
|
6e28c2a5db | ||
|
|
33d97a2f93 | ||
|
|
5f6c97d146 | ||
|
|
e9a7ccad4a | ||
|
|
93f3d362a4 | ||
|
|
1b84212da5 | ||
|
|
b646670848 | ||
|
|
9f43fded15 | ||
|
|
1537bcd54b | ||
|
|
31caa5e6b3 | ||
|
|
407405389d | ||
|
|
a2b9bf3e54 | ||
|
|
c3eb0a1a80 |
+1
-1
@@ -2,7 +2,6 @@
|
|||||||
*.php
|
*.php
|
||||||
config.xml
|
config.xml
|
||||||
www/plugin/*
|
www/plugin/*
|
||||||
Makefile
|
|
||||||
tmp/*
|
tmp/*
|
||||||
*node_modules*
|
*node_modules*
|
||||||
*.map
|
*.map
|
||||||
@@ -33,5 +32,6 @@ www/js/libs.js
|
|||||||
|
|
||||||
www/css/.sass-cache
|
www/css/.sass-cache
|
||||||
www/css/*.css
|
www/css/*.css
|
||||||
|
!www/css/bootstrap.min.css
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,11 @@ ENV?="dev"
|
|||||||
#To compile project with plugins, add PLUGINS=1 or type `export PLUGINS=1`
|
#To compile project with plugins, add PLUGINS=1 or type `export PLUGINS=1`
|
||||||
|
|
||||||
install:
|
install:
|
||||||
#copy config file from template
|
#copy config file from template first time only
|
||||||
cp config.xml.dist config.xml
|
@if [ ! -f config.xml ]; then \
|
||||||
|
cp config.xml.dist config.xml; \
|
||||||
|
fi
|
||||||
|
|
||||||
@if [ $(ENV) = "dev" ]; then \
|
@if [ $(ENV) = "dev" ]; then \
|
||||||
make install_dev; \
|
make install_dev; \
|
||||||
fi
|
fi
|
||||||
@@ -15,7 +18,7 @@ install:
|
|||||||
#setup dev environnement from source
|
#setup dev environnement from source
|
||||||
install_dev:
|
install_dev:
|
||||||
#set config file to debug=1
|
#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
|
#install haxe dependencies in .haxelib
|
||||||
haxelib newrepo
|
haxelib newrepo
|
||||||
haxelib -always install cagette.hxml
|
haxelib -always install cagette.hxml
|
||||||
@@ -37,6 +40,7 @@ install_dev:
|
|||||||
@make css
|
@make css
|
||||||
@make compile
|
@make compile
|
||||||
@make frontend
|
@make frontend
|
||||||
|
@make templates
|
||||||
@echo "Well, it looks like everything is fine : librairies are installed, backend and frontend has been compiled !"
|
@echo "Well, it looks like everything is fine : librairies are installed, backend and frontend has been compiled !"
|
||||||
|
|
||||||
|
|
||||||
@@ -46,7 +50,7 @@ compile:
|
|||||||
echo "compile Cagette.net with plugins"; \
|
echo "compile Cagette.net with plugins"; \
|
||||||
haxe cagetteAllPlugins.hxml; \
|
haxe cagetteAllPlugins.hxml; \
|
||||||
else \
|
else \
|
||||||
echo "compile Cagette.net core"; \
|
echo "compile CagettePéi core"; \
|
||||||
haxe cagette.hxml; \
|
haxe cagette.hxml; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -62,6 +66,8 @@ frontend:
|
|||||||
else \
|
else \
|
||||||
haxe cagetteJs.hxml; \
|
haxe cagetteJs.hxml; \
|
||||||
fi
|
fi
|
||||||
|
mkdir -p tmp
|
||||||
|
chown www-data:www-data tmp
|
||||||
|
|
||||||
#update POT file from source
|
#update POT file from source
|
||||||
i18n:
|
i18n:
|
||||||
@@ -69,13 +75,15 @@ i18n:
|
|||||||
|
|
||||||
#compile templates in each language, required for production env.
|
#compile templates in each language, required for production env.
|
||||||
templates:
|
templates:
|
||||||
|
mkdir -p lang/master/tmp
|
||||||
haxe cagette.hxml -D i18n_generation
|
haxe cagette.hxml -D i18n_generation
|
||||||
@make LANG=fr ctemplates
|
@make LANG=fr ctemplates
|
||||||
@make LANG=en ctemplates
|
msgfmt www/lang/texts_fr.po -o www/lang/texts_fr.mo
|
||||||
@make LANG=de ctemplates
|
chown www-data:www-data -R www
|
||||||
|
|
||||||
ctemplates:
|
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
|
#Compile and run unit tests
|
||||||
tests:
|
tests:
|
||||||
@@ -1,17 +1,8 @@
|
|||||||
# Cagette.net
|
# Cagette péi
|
||||||
Le logiciel libre des circuits courts.
|
|
||||||
|
|
||||||
[](https://travis-ci.org/bablukid/cagette)
|
Fourche du logiciel [Cagette.net](https://github.com/CagetteNet) à partir de la version 0.9.2 Novembre 2018
|
||||||
|
|
||||||
http://www.cagette.net
|
Certaines portions du code source de Cagette.net n'étant plus disponibles en téléchargement,
|
||||||
|
j'ai repris sur la base d'un existant pour adapter au marché local réunionnais et leurs AMAPéi.
|
||||||
|
|
||||||
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
@@ -1,16 +1,33 @@
|
|||||||
-lib templo:3.0.0
|
# LOCKED LIBS
|
||||||
-lib hxevents:0.4.0
|
-lib asys:0.3.0
|
||||||
-lib thx.semver:0.2.2
|
|
||||||
-lib thx.csv:0.2.0
|
|
||||||
-lib datetime:3.1.1
|
-lib datetime:3.1.1
|
||||||
|
-lib history:0.0.1
|
||||||
-lib hscript:2.3.0
|
-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 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_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 sugoi:git:git@artcode.re:cagetters/sugoi.git
|
||||||
-lib record-macros:git:git@artcode.re:cagetters/record-macros.git
|
-lib record-macros:git:git@artcode.re:cagetters/record-macros.git
|
||||||
-lib dbadmin:git:git@artcode.re:cagetters/dbadmin.git
|
-lib dbadmin:git:git@artcode.re:cagetters/dbadmin.git
|
||||||
|
|
||||||
|
## SCRIPT
|
||||||
-cp common
|
-cp common
|
||||||
-cp src
|
-cp src
|
||||||
-cp lang/master/tpl
|
-cp lang/master/tpl
|
||||||
|
|||||||
@@ -7,6 +7,11 @@
|
|||||||
-lib react-router-4:0.2.3
|
-lib react-router-4:0.2.3
|
||||||
-lib modular:0.10.15
|
-lib modular:0.10.15
|
||||||
-lib tink_json:0.9.0
|
-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
|
-main App
|
||||||
-debug
|
-debug
|
||||||
-js www/js/app.js
|
-js www/js/app.js
|
||||||
|
|||||||
+14
-24
@@ -1,29 +1,19 @@
|
|||||||
<config
|
<config
|
||||||
|
|
||||||
|
database="mysql://<USER>:<PASSWORD>@<HOST>/<DBNAME>"
|
||||||
|
host="<URL without http>"
|
||||||
|
name = "<HTML head title>"
|
||||||
|
default_email = "<default email>"
|
||||||
|
|
||||||
|
key="carotteMagique"
|
||||||
|
|
||||||
|
maintain="0"
|
||||||
|
cache="1"
|
||||||
|
cachetpl="0"
|
||||||
|
debug="0"
|
||||||
|
sqllog="0"
|
||||||
|
|
||||||
lang="fr"
|
lang="fr"
|
||||||
langs="fr"
|
langs="fr"
|
||||||
langnames="Français"
|
langnames="Français"
|
||||||
|
|
||||||
host="www.amapeisudreunion.com"
|
|
||||||
name = "AMAPEI Sud Réunion"
|
|
||||||
default_email = "admin@amapeisudreunion.com"
|
|
||||||
webmaster_email = "postmaster@amapeisudreunion.com"
|
|
||||||
|
|
||||||
database="mysql://cagette:cagette@ct1/cagette"
|
|
||||||
sqllog="0"
|
|
||||||
|
|
||||||
debug="0"
|
|
||||||
cache="1"
|
|
||||||
maintain="0"
|
|
||||||
cachetpl="0"
|
|
||||||
key="carotteMagique"
|
|
||||||
|
|
||||||
smtp_host="localhost"
|
|
||||||
smtp_port="25"
|
|
||||||
smtp_user=""
|
|
||||||
smtp_pass=""
|
|
||||||
|
|
||||||
mt.net.form.Form.HTML5 = "1"
|
|
||||||
mt.net.form.Form.USE_TWITTER_BOOTSTRAP = "1"
|
|
||||||
|
|
||||||
google_geocoding_key="googlekey"
|
|
||||||
/>
|
/>
|
||||||
|
|||||||
+8
-2
@@ -164,7 +164,13 @@ class ShopCart
|
|||||||
var groups = new Map<Int,{name:String,products:Array<ProductInfo>}>();
|
var groups = new Map<Int,{name:String,products:Array<ProductInfo>}>();
|
||||||
var pinned = 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(firstCategGroup);
|
||||||
//trace(pinnedCategories);
|
//trace(pinnedCategories);
|
||||||
@@ -181,7 +187,7 @@ class ShopCart
|
|||||||
|
|
||||||
for ( categ in p.categories){
|
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
|
//is in this category group
|
||||||
var g = groups.get(categ);
|
var g = groups.get(categ);
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
This is where the compiled templates are.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
This is where the compiled templates are.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
This is where the compiled templates are.
|
|
||||||
@@ -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>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<h1>::groupName::</h1>
|
<h1>::groupName::</h1>
|
||||||
::else::
|
::else::
|
||||||
<div style="margin-bottom:22px;" >
|
<div style="margin-bottom:22px;" >
|
||||||
<a href="http://www.cagette.net" target="_blank">
|
<a href="https://git.artcode.re/cagetters/cagette" target="_blank">
|
||||||
<img src="/img/logo3.png" alt="::NAME::" />
|
<img src="/img/logo3.png" alt="::NAME::" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
<div class="row" id="footer">
|
<div class="row" id="footer">
|
||||||
|
|
||||||
<div class="col-md-9" >
|
<div class="col-md-9" >
|
||||||
<a href="http://www.cagette.net" target="_blank">
|
<a href="https://git.artcode.re/cagetters/cagette" target="_blank">
|
||||||
<img src="/img/logo.png" alt="::_("Cagette.net")::"/>
|
<img src="/img/logo.png" alt="::_("Cagette.net")::"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -141,10 +141,6 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="http://www.cagette.net/wiki" target="_blank">::_("Documentation")::</a>
|
<a href="http://www.cagette.net/wiki" target="_blank">::_("Documentation")::</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href="https://www.cagette.pro" target="_blank">Formations pour producteurs</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
::if (user!=null && user.isAmapManager()):: <a href="https://cagette.uservoice.com" target="_blank">::_("Propose features")::</a> ::end::
|
::if (user!=null && user.isAmapManager()):: <a href="https://cagette.uservoice.com" target="_blank">::_("Propose features")::</a> ::end::
|
||||||
</li>
|
</li>
|
||||||
@@ -201,7 +197,7 @@
|
|||||||
<!--
|
<!--
|
||||||
::raw _("Cagette.net is made by <a href='https://www.alilo.fr' target='_blank'><img src='/img/alilo-trans-black.png' /></a>")::<br/>
|
::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>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ table.table td{
|
|||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
<div style="color:#666;font-size:12px;">
|
<div style="color:#666;font-size:12px;">
|
||||||
::_("This e-mail was sent from"):: <a href="http://::HOST::">::_("Cagette.net")::</a>.
|
> ::_("This e-mail was sent from"):: <a href="http://::raw HOST::">::_("Cagette.net")::</a>.
|
||||||
|
|
||||||
::if group!=null::
|
::if group!=null::
|
||||||
<br/>
|
<br/>
|
||||||
::_("You receive this message because you are part of"):: <b>::group.name::</b>
|
::_("You receive this message because you are part of"):: <b>::_("Cagette.net")::</b>
|
||||||
::end::
|
::end::
|
||||||
|
|
||||||
::if list!=null::
|
::if list!=null::
|
||||||
@@ -32,7 +32,7 @@ table.table td{
|
|||||||
::if group!=null::
|
::if group!=null::
|
||||||
<div style="width:50%;max-width:300px;margin: 12px auto;padding: 8px;text-decoration: none;background: #070;border-radius: 3px;text-align: center;">
|
<div style="width:50%;max-width:300px;margin: 12px auto;padding: 8px;text-decoration: none;background: #070;border-radius: 3px;text-align: center;">
|
||||||
<a href="http://::HOST::/group/::group.id::" style="color: white;font-weight: bold;text-decoration: none;font-size:1.2em;">
|
<a href="http://::HOST::/group/::group.id::" style="color: white;font-weight: bold;text-decoration: none;font-size:1.2em;">
|
||||||
→ ::group.name::
|
→ ::_("Cagette.net")::
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
::end::
|
::end::
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<div style="max-width:400px;margin:auto;border:solid 1px #AAA;border-radius:8px;padding:12px;text-align:center;font-family:Arial;">
|
<div style="max-width:400px;margin:auto;border:solid 1px #AAA;border-radius:8px;padding:12px;text-align:center;font-family:Arial;">
|
||||||
|
|
||||||
<img src="http://::HOST::/img/logo2.png" title="Cagette.net" />
|
<img src="http://::HOST::/img/logo2.png" title="CagettePéi" />
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
::_("Hello"):: $$nullSafe(::name::),
|
::_("Hello"):: $$nullSafe(::name::),
|
||||||
|
|||||||
+2
-1
@@ -16,7 +16,8 @@ class App extends sugoi.BaseApp {
|
|||||||
* @doc https://github.com/fponticelli/thx.semver
|
* @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("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(){
|
public function new(){
|
||||||
super();
|
super();
|
||||||
|
|||||||
+2
-1
@@ -20,7 +20,8 @@ class MyMacros {
|
|||||||
commitDate = StringTools.replace(commitDate, " ", ".");
|
commitDate = StringTools.replace(commitDate, " ", ".");
|
||||||
commitDate = StringTools.replace(commitDate, "-", ".");
|
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
|
// Generates a string expression
|
||||||
return macro $v{commitDate};
|
return macro $v{commitDate};
|
||||||
|
|||||||
Vendored
+6
File diff suppressed because one or more lines are too long
Executable → Regular
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 26 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 26 KiB |
+19
-1137
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user