Skip to content

Commit

Permalink
Finish v16-scorpion
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceFox committed Feb 17, 2016
2 parents b3a388e + a6d3f2b commit c866c3b
Show file tree
Hide file tree
Showing 260 changed files with 2,920 additions and 23,834 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
- secure: "azmDZZQZzf88zpbkYpLpxI66vpEVyv+kniW0QdWAt4qlys8P5OcO3VJBR5YT85vlvnjN9b6raWQAL1ymee0WmVdTmzXed8XjZv7t9QXVw7pfezxMKlEftVp/4Cu4wtvbew0ViZXNWV2hNXHzEqlhgnoIOq94i0UzZ7grMrI0xm0="
matrix:
- TEST_APP="-e back_mysql -- zds.member zds.mp zds.utils zds.forum zds.gallery zds.pages zds.search zds.featured"
- TEST_APP="-e back_mysql -- zds.article zds.tutorial zds.tutorialv2"
- TEST_APP="-e back_mysql -- zds.tutorialv2"
- TEST_APP="-e front"


Expand Down
51 changes: 51 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Code de Conduite Contributeurs

En tant que contributeurs et responsables de ce projet, et dans l'intérêt
de favoriser une communauté ouverte et accueillante, nous nous engageons à
respecter toutes les personnes qui contribuent en rapportant des erreurs,
en postant des demandes de fonctionnalités nouvelles, en mettant à jour la
documentation, en soumettant des pull requests ou des correctifs, ainsi que
toutes autres activités.

Nous sommes déterminés à rendre toute participation à ce projet une
expérience exempte de harcèlement pour tout le monde, quel que soit le niveau
d'expérience, le sexe, l'identité ou l'expression de genre, l'orientation
sexuelle, le handicap, l'apparence personnelle, la taille physique, la race,
l'origine ethnique, l'âge, la religion ou la nationalité.

De tels comportements ne sont pas acceptables, par exemple :

* l'utilisation de langage ou d'imagerie sexualisé ;
* les attaques personnelles ;
* les trolls ou commentaires insultants ou désobligeants ;
* le harcèlement en public ou en privé ;
* la publication d'autres informations privées, telles que les adresses
physiques ou électroniques, sans permission explicite ;
* toute autre conduite contraire à l'éthique ou non professionnelle.

Les mainteneurs du projet ont le droit et la responsabilité de supprimer,
modifier ou rejeter les commentaires, commits, code, modifications du wiki,
questions et autres contributions qui ne respectent pas ce Code de Conduite,
ou de bannir temporairement ou définitivement tout contributeur à la suite
d'autres comportements qu'ils jugent inappropriés, menaçants, injurieux,
ou nuisibles.

En adoptant ce Code de Conduite, les mainteneurs du projet s'engagent à
appliquer équitablement et uniformément ces principes à tous les aspects de
la gestion de ce projet. Les mainteneurs de projets qui ne suivent pas ou ne
font pas respecter le Code de Conduite peuvent être retirés de façon permanente
de l'équipe de projet.

Ce Code de Conduite s'applique à la fois au sein des espaces de projet
ainsi que dans les espaces publics quand un individu représente le projet
ou sa communauté.

Les instances de comportement abusif, harcelant ou autrement inacceptable
peuvent être signalés en contactant un responsable de projet à
zestedesavoir at gmail.com. Toutes les plaintes seront examinées et étudiées
et se traduiront par une réponse jugée nécessaire et appropriée aux
circonstances. Les mainteneurs s'obligent à garder confidentielles les
informations de la personne qui remonte un incident.

Ce Code de Conduite est adaptée du [Contributor Covenant](http://contributor-covenant.org),
version 1.3.0, [disponible ici](http://contributor-covenant.org/version/1/3/0/fr).
94 changes: 46 additions & 48 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ var gulp = require("gulp"),
path = require("path"),
del = require("del");

var autoprefixer = require("autoprefixer"),
cssnano = require("cssnano");

var postcssProcessors = [
require("autoprefixer")({ browsers: ["last 1 version", "> 1%", "ff >= 20", "ie >= 8", "opera >= 12", "Android >= 2.2"] }),
require("cssnano")()
];

var sourceDir = "assets",
destDir = "dist",
errorsDir = "errors",
Expand All @@ -15,26 +23,25 @@ var sourceDir = "assets",
stylesFiles = ["main.scss"],
vendorsCSS = ["node_modules/normalize.css/normalize.css"],
vendorsJS = ["node_modules/jquery/dist/jquery.js", "node_modules/cookies-eu-banner/dist/cookies-eu-banner.js"],
autoprefixerConfig = ["last 1 version", "> 1%", "ff >= 20", "ie >= 8", "opera >= 12", "Android >= 2.2"],
imageminConfig = { optimizationLevel: 3, progressive: true, interlaced: true };

/**
* Cleans up the workspace, deletes the build
*/
gulp.task("clean", function(cb) {
del([
gulp.task("clean", function() {
return del([
destDir,
path.join(sourceDir, "{" + scriptsDir + "," + sassDir + "}", vendorsDir),
path.join(sourceDir, "bower_components/"),
path.join(sourceDir, sassDir, "_sprite.scss")
], cb);
]);
});

/**
* Clean error-pages files
*/
gulp.task("clean-errors", function(cb) {
del(["errors/css/*"], cb);
gulp.task("clean-errors", function() {
return del(["errors/css/*"]);
});

/**
Expand All @@ -59,15 +66,14 @@ gulp.task("vendors-js", function() {
*/
gulp.task("vendors", ["vendors-js", "vendors-css"], function() {
return gulp.src(path.join(sourceDir, scriptsDir, vendorsDir, "*.js"))
.pipe($.concat("vendors.js"))
.pipe($.sourcemaps.init())
.pipe($.concat("vendors.js"))
.pipe($.uglify().on('error', $.notify.onError({
title: "Javascript error",
message: "<%= error.message %>"
})))
.pipe($.sourcemaps.write(".", { includeContent: true, sourceRoot: path.join("../../", vendorsDir) }))
.pipe($.size({ title: "Scripts (vendors)" }))
.pipe(gulp.dest(path.join(destDir, scriptsDir)))
.pipe($.rename({ suffix: ".min" }))
.pipe($.size({ title: "Scripts (vendors, minified)" }))
.pipe($.uglify().on('error', $.notify.onError({
title: "Javascript error",
message: "<%= error.message %>"
})))
.pipe(gulp.dest(path.join(destDir, scriptsDir)));
});

Expand All @@ -78,19 +84,18 @@ gulp.task("stylesheet", ["sprite", "vendors"], function() {
var files = stylesFiles.map(function(filename) {
return path.join(sourceDir, sassDir, filename);
});

return gulp.src(files)
.pipe($.sass())
.on("error", $.notify.onError({
title: "SASS Error",
message: "<%= error.message %>"
}))
.pipe($.sourcemaps.init())
.pipe($.sass({ sourceMapContents: true }))
.on("error", $.notify.onError({
title: "SASS Error",
message: "<%= error.message %>"
}))
.pipe($.postcss(postcssProcessors))
.pipe($.sourcemaps.write(".", { includeContent: true, sourceRoot: path.join("../../", sourceDir, sassDir) }))
.on("error", function() { this.emit("end"); })
.pipe($.autoprefixer(autoprefixerConfig, { cascade: true }))
.pipe($.size({ title: "Stylesheet" }))
.pipe(gulp.dest(path.join(destDir, "css/")))
.pipe($.rename({ suffix: ".min" }))
.pipe($.minifyCss())
.pipe($.size({ title: "Stylesheet (minified)" }))
.pipe(gulp.dest(path.join(destDir, "css/")));
});

Expand All @@ -99,13 +104,12 @@ gulp.task("stylesheet", ["sprite", "vendors"], function() {
*/
gulp.task("errors", ["clean-errors"], function() {
return gulp.src(path.join(errorsDir, sassDir, "main.scss"))
.pipe($.sass({
includePaths: [path.join(sourceDir, sassDir)]
}))
.pipe($.autoprefixer(autoprefixerConfig, { cascade: true }))
.pipe(gulp.dest(path.join(errorsDir, "css/")))
.pipe($.rename({ suffix: ".min" }))
.pipe($.minifyCss())
.pipe($.sourcemaps.init())
.pipe($.sass({
includePaths: [path.join(sourceDir, sassDir)]
}))
.pipe($.postcss(postcssProcessors))
.pipe($.sourcemaps.write(".", { includeContent: true }))
.pipe(gulp.dest(path.join(errorsDir, "css/")));
});

Expand Down Expand Up @@ -141,15 +145,14 @@ gulp.task("images", ["stylesheet"], function() {
*/
gulp.task("scripts", function() {
return gulp.src(path.join(sourceDir, scriptsDir, "*.js"))
.pipe($.concat("main.js", { newLine: "\r\n\r\n" }))
.pipe($.sourcemaps.init())
.pipe($.concat("main.js", { newLine: "\r\n\r\n" }))
.pipe($.uglify().on('error', $.notify.onError({
title: "Javascript error",
message: "<%= error.message %>"
})))
.pipe($.sourcemaps.write(".", { includeContent: true, sourceRoot: path.join("../../", sourceDir, scriptsDir) }))
.pipe($.size({ title: "Scripts" }))
.pipe(gulp.dest(path.join(destDir, scriptsDir)))
.pipe($.rename({ suffix: ".min" }))
.pipe($.uglify().on('error', $.notify.onError({
title: "Javascript error",
message: "<%= error.message %>"
})))
.pipe($.size({ title: "Scripts (minified)" }))
.pipe(gulp.dest(path.join(destDir, scriptsDir)));
});

Expand All @@ -166,16 +169,11 @@ gulp.task("jshint", function() {
* Merge vendors and app scripts
*/
gulp.task("merge-scripts", ["vendors", "scripts"], function() {
return gulp.src(path.join(destDir, scriptsDir, "{vendors,main}.js"))
.pipe($.concat("all.js"))
return gulp.src([path.join(destDir, scriptsDir, "vendors.js"), path.join(destDir, scriptsDir, "main.js")])
.pipe($.sourcemaps.init({ loadMaps: true }))
.pipe($.concat("all.js"))
.pipe($.sourcemaps.write(".", { includeContent: true, sourceRoot: path.join("../../", sourceDir, scriptsDir) }))
.pipe($.size({ title: "Scripts (all)" }))
.pipe(gulp.dest(path.join(destDir, scriptsDir)))
.pipe($.rename({ suffix: ".min" }))
.pipe($.uglify().on('error', $.notify.onError({
title: "Javascript error",
message: "<%= error.message %>"
})))
.pipe($.size({ title: "Scripts (all, minified)" }))
.pipe(gulp.dest(path.join(destDir, scriptsDir)));
});

Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,15 @@ python manage.py load_factory_data fixtures/advanced/aide_tuto_media.yaml

Cela va créer plusieurs entitées :

* 6 utilisateurs (utilisateur/mot de passe) :
* 7 utilisateurs (utilisateur/mot de passe) :
* user/user : Utilisateur normal
* staff/staff : Utilisateur avec les droits d'un staff
* admin/admin : Utilisateur avec les droits d'un staff et d'un admin
* anonymous/anonymous : Utilisateur qui permet l'anonymisation des messages sur les forums
* Auteur externe/external : Utilisateur qui permet de récupérer les tutoriels d'anciens membres et/ou de publier des tutoriels externes.
* ïtrema/ïtrema : Utilisateur de test supplémentaire sans droit
* decal/decal: le compte qui possède un identifiant ``Profile`` différent de l'identifiant ``user`` pour permettre de tester des cas ou ces id sont différents

* 3 catégories
* 11 forums
* 3 sujets avec une réponse
Expand All @@ -93,6 +95,10 @@ Pour générer la documentation en local, rendez-vous dans le répertoire `zds-s

Vous trouverez tout sur [la page dédiée de la documentation](CONTRIBUTING.md)

### Code de Conduite Contributeurs

En contribuant, vous vous engagez à respecter le [Code de Conduite Contributeurs](CODE_OF_CONDUCT.md).


## En savoir plus

Expand All @@ -101,4 +107,4 @@ Vous trouverez tout sur [la page dédiée de la documentation](CONTRIBUTING.md)
- [Comment contribuer : comprendre comment suivre le workflow (sur zds)](http://zestedesavoir.com/forums/sujet/324/comment-contribuer-comprendre-comment-suivre-le-workflow/)
- [Les détails du workflow utilisé sur Zeste de Savoir](http://zds-site.readthedocs.org/fr/latest/workflow.html)

Zeste de Savoir est basé sur un fork de [Progdupeupl](https://pdp.microjoe.org) ([voir le dépôt Git](http://git.microjoe.org/progdupeupl/)).
Zeste de Savoir est basé sur un fork de [Progdupeupl](https://pdp.microjoe.org) ([voir le dépôt Git](https://github.com/progdupeupl/pdp_website)).
Binary file added assets/images/sprite/zform-abbr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-attention.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-blockcode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-bold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-footnote.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-information.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-italic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-key.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-math.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-ol.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-question.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-quote.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-secret.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-strike.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-sub.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-sup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-title1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-title2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-title3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/zform-title4.png
Binary file added assets/images/sprite/zform-titles.png
Binary file added assets/images/sprite/zform-ul.png
2 changes: 1 addition & 1 deletion assets/js/ajax-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
$(data).insertAfter($form);

/* global MathJax */
if ($(data).find("mathjax").length > 0)
if ($(data).find("$").length > 0)
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
}
});
Expand Down
Loading

0 comments on commit c866c3b

Please sign in to comment.