commit
34bbe241ce
@ -0,0 +1,78 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
var fork = require('child_process').fork,
|
||||||
|
env = process.env,
|
||||||
|
worker,
|
||||||
|
incomplete = [];
|
||||||
|
|
||||||
|
|
||||||
|
module.exports = function(grunt) {
|
||||||
|
function update(action, filepath, target) {
|
||||||
|
var args = [],
|
||||||
|
fromFile = '',
|
||||||
|
compiling = '',
|
||||||
|
time = Date.now();
|
||||||
|
|
||||||
|
if (!grunt.option('verbose')) {
|
||||||
|
args.push('--log-level=info');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (target === 'lessUpdated') {
|
||||||
|
fromFile = ['js','tpl'];
|
||||||
|
compiling = 'less';
|
||||||
|
} else if (target === 'clientUpdated') {
|
||||||
|
fromFile = ['less','tpl'];
|
||||||
|
compiling = 'js';
|
||||||
|
} else if (target === 'templatesUpdated') {
|
||||||
|
fromFile = ['js','less'];
|
||||||
|
compiling = 'tpl';
|
||||||
|
} else if (target === 'serverUpdated') {
|
||||||
|
fromFile = ['less','js','tpl'];
|
||||||
|
}
|
||||||
|
|
||||||
|
fromFile = fromFile.filter(function(ext) {
|
||||||
|
return incomplete.indexOf(ext) === -1;
|
||||||
|
});
|
||||||
|
|
||||||
|
args.push('--from-file=' + fromFile.join(','));
|
||||||
|
incomplete.push(compiling);
|
||||||
|
|
||||||
|
worker.kill();
|
||||||
|
worker = fork('app.js', args, { env: env });
|
||||||
|
|
||||||
|
worker.on('message', function() {
|
||||||
|
if (incomplete.length) {
|
||||||
|
incomplete = [];
|
||||||
|
|
||||||
|
if (grunt.option('verbose')) {
|
||||||
|
grunt.log.writeln('NodeBB restarted in ' + (Date.now() - time) + ' ms');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
grunt.initConfig({
|
||||||
|
watch: {
|
||||||
|
lessUpdated: {
|
||||||
|
files: ['public/**/*.less', 'node_modules/nodebb-*/*.less', 'node_modules/nodebb-*/*/*.less', 'node_modules/nodebb-*/*/*/*.less', 'node_modules/nodebb-*/*/*/*/*.less']
|
||||||
|
},
|
||||||
|
clientUpdated: {
|
||||||
|
files: ['public/src/**/*.js', 'node_modules/nodebb-*/*.js', 'node_modules/nodebb-*/*/*.js', 'node_modules/nodebb-*/*/*/*.js', 'node_modules/nodebb-*/*/*/*/*.js']
|
||||||
|
},
|
||||||
|
serverUpdated: {
|
||||||
|
files: ['*.js', 'src/**/*.js']
|
||||||
|
},
|
||||||
|
templatesUpdated: {
|
||||||
|
files: ['src/views/**/*.tpl', 'node_modules/nodebb-*/*.tpl', 'node_modules/nodebb-*/*/*.tpl', 'node_modules/nodebb-*/*/*/*.tpl', 'node_modules/nodebb-*/*/*/*/*.tpl']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
|
grunt.registerTask('default', ['watch']);
|
||||||
|
|
||||||
|
env.NODE_ENV = 'development';
|
||||||
|
|
||||||
|
worker = fork('app.js', [], { env: env });
|
||||||
|
grunt.event.on('watch', update);
|
||||||
|
};
|
@ -1,35 +1,35 @@
|
|||||||
{
|
{
|
||||||
"results_matching": "%1 risultato(i) corrispondente(i) \"%2\", (%3 secondi)",
|
"results_matching": "%1 risultato(i) corrispondente(i) \"%2\", (%3 secondi)",
|
||||||
"no-matches": "No matches found",
|
"no-matches": "Nessuna corrispondenza trovata",
|
||||||
"in": "In",
|
"in": "In",
|
||||||
"by": "By",
|
"by": "Da",
|
||||||
"titles": "Titles",
|
"titles": "Titoli",
|
||||||
"titles-posts": "Titles and Posts",
|
"titles-posts": "Titoli e Messaggi",
|
||||||
"posted-by": "Posted by",
|
"posted-by": "Pubblicato da",
|
||||||
"in-categories": "In Categories",
|
"in-categories": "In Categorie",
|
||||||
"search-child-categories": "Search child categories",
|
"search-child-categories": "Search child categories",
|
||||||
"reply-count": "Reply Count",
|
"reply-count": "Numero Risposte",
|
||||||
"at-least": "At least",
|
"at-least": "At least",
|
||||||
"at-most": "At most",
|
"at-most": "At most",
|
||||||
"post-time": "Post time",
|
"post-time": "Ora invio",
|
||||||
"newer-than": "Newer than",
|
"newer-than": "Più nuovi di",
|
||||||
"older-than": "Older than",
|
"older-than": "Più vecchi di",
|
||||||
"any-date": "Any date",
|
"any-date": "Qualsiasi data",
|
||||||
"yesterday": "Yesterday",
|
"yesterday": "Ieri",
|
||||||
"one-week": "One week",
|
"one-week": "Una settimana",
|
||||||
"two-weeks": "Two weeks",
|
"two-weeks": "Due settimane",
|
||||||
"one-month": "One month",
|
"one-month": "Un mese",
|
||||||
"three-months": "Three months",
|
"three-months": "Tre mesi",
|
||||||
"six-months": "Six months",
|
"six-months": "Sei mesi",
|
||||||
"one-year": "One year",
|
"one-year": "Un anno",
|
||||||
"sort-by": "Sort by",
|
"sort-by": "Ordina per",
|
||||||
"last-reply-time": "Last reply time",
|
"last-reply-time": "Last reply time",
|
||||||
"topic-title": "Topic title",
|
"topic-title": "Titolo argomento",
|
||||||
"number-of-replies": "Number of replies",
|
"number-of-replies": "Numero di risposte",
|
||||||
"number-of-views": "Number of views",
|
"number-of-views": "Numero di visite",
|
||||||
"topic-start-date": "Topic start date",
|
"topic-start-date": "Data inizio argomento",
|
||||||
"username": "Username",
|
"username": "Nome utente",
|
||||||
"category": "Category",
|
"category": "Categoria",
|
||||||
"descending": "In descending order",
|
"descending": "In ordine decrescente",
|
||||||
"ascending": "In ascending order"
|
"ascending": "In ordine crescente"
|
||||||
}
|
}
|
@ -1,23 +1,23 @@
|
|||||||
{
|
{
|
||||||
"groups": "Grupy",
|
"groups": "Grupy",
|
||||||
"view_group": "Obejrzyj grupę",
|
"view_group": "Obejrzyj grupę",
|
||||||
"owner": "Group Owner",
|
"owner": "Właściciel grupy",
|
||||||
"new_group": "Create New Group",
|
"new_group": "Stwórz nową grupę",
|
||||||
"no_groups_found": "There are no groups to see",
|
"no_groups_found": "Brak grup do wyświetlenia",
|
||||||
"cover-instructions": "Drag and Drop a photo, drag to position, and hit <strong>Save</strong>",
|
"cover-instructions": "Przeciągnij i upuść zdjęcie, ustaw w odpowiedniej pozycji i kliknij <strong>Zapisz</strong>",
|
||||||
"cover-change": "Change",
|
"cover-change": "Zmień",
|
||||||
"cover-save": "Save",
|
"cover-save": "Zapisz",
|
||||||
"cover-saving": "Saving",
|
"cover-saving": "Zapisuję",
|
||||||
"details.title": "Szczegóły grupy",
|
"details.title": "Szczegóły grupy",
|
||||||
"details.members": "Lista członków",
|
"details.members": "Lista członków",
|
||||||
"details.pending": "Pending Members",
|
"details.pending": "Członkowie oczekujący",
|
||||||
"details.has_no_posts": "Członkowie tej grupy nie napisali żadnych postów.",
|
"details.has_no_posts": "Członkowie tej grupy nie napisali żadnych postów.",
|
||||||
"details.latest_posts": "Ostatnie posty",
|
"details.latest_posts": "Ostatnie posty",
|
||||||
"details.private": "Private Group",
|
"details.private": "Grupa prywatna",
|
||||||
"details.public": "Public Group",
|
"details.public": "Grupa publiczna",
|
||||||
"details.grant": "Grant/Rescind Ownership",
|
"details.grant": "Nadaj/Cofnij prawa Właściciela",
|
||||||
"details.kick": "Kick",
|
"details.kick": "Wykop",
|
||||||
"details.owner_options": "Group Administration",
|
"details.owner_options": "Administracja grupy",
|
||||||
"event.updated": "Group details have been updated",
|
"event.updated": "Dane grupy zostały zaktualizowane",
|
||||||
"event.deleted": "The group \"%1\" has been deleted"
|
"event.deleted": "Grupa \"%1\" została skasowana"
|
||||||
}
|
}
|
@ -1,35 +1,35 @@
|
|||||||
{
|
{
|
||||||
"results_matching": "%1 wyników pasujących do \"%2\", (%3 sekund)",
|
"results_matching": "%1 wyników pasujących do \"%2\", (%3 sekund)",
|
||||||
"no-matches": "No matches found",
|
"no-matches": "Nie znaleziono pasujących wyników",
|
||||||
"in": "In",
|
"in": "W",
|
||||||
"by": "By",
|
"by": "Przez",
|
||||||
"titles": "Titles",
|
"titles": "Tytuły",
|
||||||
"titles-posts": "Titles and Posts",
|
"titles-posts": "Tytuły i posty",
|
||||||
"posted-by": "Posted by",
|
"posted-by": "Napisane przez",
|
||||||
"in-categories": "In Categories",
|
"in-categories": "W kategoriach",
|
||||||
"search-child-categories": "Search child categories",
|
"search-child-categories": "Przeszukaj podkategorie",
|
||||||
"reply-count": "Reply Count",
|
"reply-count": "Ilość odpowiedzi",
|
||||||
"at-least": "At least",
|
"at-least": "Przynajmniej",
|
||||||
"at-most": "At most",
|
"at-most": "Co najwyżej",
|
||||||
"post-time": "Post time",
|
"post-time": "Napisano",
|
||||||
"newer-than": "Newer than",
|
"newer-than": "Nowsze niż",
|
||||||
"older-than": "Older than",
|
"older-than": "Starsze niż",
|
||||||
"any-date": "Any date",
|
"any-date": "Kiedykolwiek",
|
||||||
"yesterday": "Yesterday",
|
"yesterday": "Wczoraj",
|
||||||
"one-week": "One week",
|
"one-week": "Jeden tydzień",
|
||||||
"two-weeks": "Two weeks",
|
"two-weeks": "Dwa tygodnie",
|
||||||
"one-month": "One month",
|
"one-month": "Jeden miesiąc",
|
||||||
"three-months": "Three months",
|
"three-months": "Trzy miesiące",
|
||||||
"six-months": "Six months",
|
"six-months": "Sześć miesięcy",
|
||||||
"one-year": "One year",
|
"one-year": "Jeden rok",
|
||||||
"sort-by": "Sort by",
|
"sort-by": "Sortuj po",
|
||||||
"last-reply-time": "Last reply time",
|
"last-reply-time": "Odpowiedziano ostatnio",
|
||||||
"topic-title": "Topic title",
|
"topic-title": "Tytuł wątku",
|
||||||
"number-of-replies": "Number of replies",
|
"number-of-replies": "Ilość odpowiedzi",
|
||||||
"number-of-views": "Number of views",
|
"number-of-views": "Ilość wyświetleń",
|
||||||
"topic-start-date": "Topic start date",
|
"topic-start-date": "Data utworzenia wątku",
|
||||||
"username": "Username",
|
"username": "Nazwa użytkownika",
|
||||||
"category": "Category",
|
"category": "Kategoria",
|
||||||
"descending": "In descending order",
|
"descending": "W kolejności malejącej",
|
||||||
"ascending": "In ascending order"
|
"ascending": "W kolejności rosnącej"
|
||||||
}
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue