mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Merge branch 'master' of https://github.com/Abijeet/BookStack
Conflicts: .gitignore
This commit is contained in:
commit
b3d4c199ae
4
.gitignore
vendored
4
.gitignore
vendored
@ -16,3 +16,7 @@ _ide_helper.php
|
||||
yarn.lock
|
||||
/bin
|
||||
nbproject
|
||||
.buildpath
|
||||
.project
|
||||
.settings/org.eclipse.wst.common.project.facet.core.xml
|
||||
.settings/org.eclipse.php.core.prefs
|
||||
|
15
.travis.yml
15
.travis.yml
@ -1,5 +1,5 @@
|
||||
dist: trusty
|
||||
sudo: required
|
||||
sudo: false
|
||||
language: php
|
||||
php:
|
||||
- 7.0
|
||||
@ -8,15 +8,11 @@ cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- mysql-server-5.6
|
||||
- mysql-client-core-5.6
|
||||
- mysql-client-5.6
|
||||
|
||||
before_script:
|
||||
- mysql -u root -e 'create database `bookstack-test`;'
|
||||
- mysql -u root -e "CREATE USER 'bookstack-test'@'localhost' IDENTIFIED BY 'bookstack-test';"
|
||||
- mysql -u root -e "GRANT ALL ON \`bookstack-test\`.* TO 'bookstack-test'@'localhost';"
|
||||
- mysql -u root -e "FLUSH PRIVILEGES;"
|
||||
- phpenv config-rm xdebug.ini
|
||||
- composer dump-autoload --no-interaction
|
||||
- composer install --prefer-dist --no-interaction
|
||||
@ -25,5 +21,8 @@ before_script:
|
||||
- php artisan migrate --force -n --database=mysql_testing
|
||||
- php artisan db:seed --force -n --class=DummyContentSeeder --database=mysql_testing
|
||||
|
||||
after_failure:
|
||||
- cat storage/logs/laravel.log
|
||||
|
||||
script:
|
||||
- phpunit
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace BookStack;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class Comment extends Ownable
|
||||
{
|
||||
@ -32,4 +33,19 @@ class Comment extends Ownable
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function getParentCommentsByPage($pageId, $pageNum = 0, $limit = 0) {
|
||||
$data = ['pageId' => $pageId];
|
||||
$query = static::newQuery();
|
||||
$query->join('users AS u', 'comments.created_by', '=', 'u.id');
|
||||
$query->leftJoin('users AS u1', 'comments.updated_by', '=', 'u1.id');
|
||||
$query->leftJoin('images AS i', 'i.id', '=', 'u.image_id');
|
||||
$query->selectRaw('comments.id, text, html, comments.created_by, comments.updated_by, comments.created_at, comments.updated_at, '
|
||||
. 'u.name AS created_by_name, u1.name AS updated_by_name, '
|
||||
. '(SELECT count(c.id) FROM bookstack.comments c WHERE c.parent_id = comments.id AND page_id = ?) AS cnt_sub_comments, i.url AS avatar ',
|
||||
[$pageId]);
|
||||
$query->whereRaw('page_id = ? AND parent_id IS NULL', [$pageId]);
|
||||
$query->orderBy('created_at');
|
||||
return $query;
|
||||
}
|
||||
}
|
||||
|
47
app/Console/Commands/ClearActivity.php
Normal file
47
app/Console/Commands/ClearActivity.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace BookStack\Console\Commands;
|
||||
|
||||
use BookStack\Activity;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class ClearActivity extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'bookstack:clear-activity';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Clear user activity from the system';
|
||||
|
||||
protected $activity;
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @param Activity $activity
|
||||
*/
|
||||
public function __construct(Activity $activity)
|
||||
{
|
||||
$this->activity = $activity;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->activity->newQuery()->truncate();
|
||||
$this->comment('System activity cleared');
|
||||
}
|
||||
}
|
50
app/Console/Commands/ClearRevisions.php
Normal file
50
app/Console/Commands/ClearRevisions.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace BookStack\Console\Commands;
|
||||
|
||||
use BookStack\PageRevision;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class ClearRevisions extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'bookstack:clear-revisions
|
||||
{--a|all : Include active update drafts in deletion}
|
||||
';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Clear page revisions';
|
||||
|
||||
protected $pageRevision;
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @param PageRevision $pageRevision
|
||||
*/
|
||||
public function __construct(PageRevision $pageRevision)
|
||||
{
|
||||
$this->pageRevision = $pageRevision;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$deleteTypes = $this->option('all') ? ['version', 'update_draft'] : ['version'];
|
||||
$this->pageRevision->newQuery()->whereIn('type', $deleteTypes)->delete();
|
||||
$this->comment('Revisions deleted');
|
||||
}
|
||||
}
|
@ -4,21 +4,21 @@ namespace BookStack\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class ResetViews extends Command
|
||||
class ClearViews extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'views:reset';
|
||||
protected $signature = 'bookstack:clear-views';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Reset all view-counts for all entities.';
|
||||
protected $description = 'Clear all view-counts for all entities.';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
@ -37,5 +37,6 @@ class ResetViews extends Command
|
||||
public function handle()
|
||||
{
|
||||
\Views::resetAll();
|
||||
$this->comment('Views cleared');
|
||||
}
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace BookStack\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
|
||||
class Inspire extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'inspire';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Display an inspiring quote';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
|
||||
}
|
||||
}
|
@ -12,7 +12,7 @@ class RegeneratePermissions extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'permissions:regen';
|
||||
protected $signature = 'bookstack:regenerate-permissions';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@ -47,5 +47,6 @@ class RegeneratePermissions extends Command
|
||||
public function handle()
|
||||
{
|
||||
$this->permissionService->buildJointPermissions();
|
||||
$this->comment('Permissions regenerated');
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,9 @@ class Kernel extends ConsoleKernel
|
||||
* @var array
|
||||
*/
|
||||
protected $commands = [
|
||||
\BookStack\Console\Commands\Inspire::class,
|
||||
\BookStack\Console\Commands\ResetViews::class,
|
||||
\BookStack\Console\Commands\ClearViews::class,
|
||||
\BookStack\Console\Commands\ClearActivity::class,
|
||||
\BookStack\Console\Commands\ClearRevisions::class,
|
||||
\BookStack\Console\Commands\RegeneratePermissions::class,
|
||||
];
|
||||
|
||||
@ -26,7 +27,6 @@ class Kernel extends ConsoleKernel
|
||||
*/
|
||||
protected function schedule(Schedule $schedule)
|
||||
{
|
||||
$schedule->command('inspire')
|
||||
->hourly();
|
||||
//
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
use Activity;
|
||||
use BookStack\Repos\EntityRepo;
|
||||
use BookStack\Repos\UserRepo;
|
||||
use BookStack\Services\ExportService;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Views;
|
||||
@ -12,16 +13,19 @@ class BookController extends Controller
|
||||
|
||||
protected $entityRepo;
|
||||
protected $userRepo;
|
||||
protected $exportService;
|
||||
|
||||
/**
|
||||
* BookController constructor.
|
||||
* @param EntityRepo $entityRepo
|
||||
* @param UserRepo $userRepo
|
||||
* @param ExportService $exportService
|
||||
*/
|
||||
public function __construct(EntityRepo $entityRepo, UserRepo $userRepo)
|
||||
public function __construct(EntityRepo $entityRepo, UserRepo $userRepo, ExportService $exportService)
|
||||
{
|
||||
$this->entityRepo = $entityRepo;
|
||||
$this->userRepo = $userRepo;
|
||||
$this->exportService = $exportService;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
@ -258,4 +262,49 @@ class BookController extends Controller
|
||||
session()->flash('success', trans('entities.books_permissions_updated'));
|
||||
return redirect($book->getUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* Export a book as a PDF file.
|
||||
* @param string $bookSlug
|
||||
* @return mixed
|
||||
*/
|
||||
public function exportPdf($bookSlug)
|
||||
{
|
||||
$book = $this->entityRepo->getBySlug('book', $bookSlug);
|
||||
$pdfContent = $this->exportService->bookToPdf($book);
|
||||
return response()->make($pdfContent, 200, [
|
||||
'Content-Type' => 'application/octet-stream',
|
||||
'Content-Disposition' => 'attachment; filename="' . $bookSlug . '.pdf'
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Export a book as a contained HTML file.
|
||||
* @param string $bookSlug
|
||||
* @return mixed
|
||||
*/
|
||||
public function exportHtml($bookSlug)
|
||||
{
|
||||
$book = $this->entityRepo->getBySlug('book', $bookSlug);
|
||||
$htmlContent = $this->exportService->bookToContainedHtml($book);
|
||||
return response()->make($htmlContent, 200, [
|
||||
'Content-Type' => 'application/octet-stream',
|
||||
'Content-Disposition' => 'attachment; filename="' . $bookSlug . '.html'
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Export a book as a plain text file.
|
||||
* @param $bookSlug
|
||||
* @return mixed
|
||||
*/
|
||||
public function exportPlainText($bookSlug)
|
||||
{
|
||||
$book = $this->entityRepo->getBySlug('book', $bookSlug);
|
||||
$htmlContent = $this->exportService->bookToPlainText($book);
|
||||
return response()->make($htmlContent, 200, [
|
||||
'Content-Type' => 'application/octet-stream',
|
||||
'Content-Disposition' => 'attachment; filename="' . $bookSlug . '.txt'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
use Activity;
|
||||
use BookStack\Repos\EntityRepo;
|
||||
use BookStack\Repos\UserRepo;
|
||||
use BookStack\Services\ExportService;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Views;
|
||||
@ -12,16 +13,19 @@ class ChapterController extends Controller
|
||||
|
||||
protected $userRepo;
|
||||
protected $entityRepo;
|
||||
protected $exportService;
|
||||
|
||||
/**
|
||||
* ChapterController constructor.
|
||||
* @param EntityRepo $entityRepo
|
||||
* @param UserRepo $userRepo
|
||||
* @param ExportService $exportService
|
||||
*/
|
||||
public function __construct(EntityRepo $entityRepo, UserRepo $userRepo)
|
||||
public function __construct(EntityRepo $entityRepo, UserRepo $userRepo, ExportService $exportService)
|
||||
{
|
||||
$this->entityRepo = $entityRepo;
|
||||
$this->userRepo = $userRepo;
|
||||
$this->exportService = $exportService;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
@ -236,4 +240,52 @@ class ChapterController extends Controller
|
||||
session()->flash('success', trans('entities.chapters_permissions_success'));
|
||||
return redirect($chapter->getUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* Exports a chapter to pdf .
|
||||
* @param string $bookSlug
|
||||
* @param string $chapterSlug
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function exportPdf($bookSlug, $chapterSlug)
|
||||
{
|
||||
$chapter = $this->entityRepo->getBySlug('chapter', $chapterSlug, $bookSlug);
|
||||
$pdfContent = $this->exportService->chapterToPdf($chapter);
|
||||
return response()->make($pdfContent, 200, [
|
||||
'Content-Type' => 'application/octet-stream',
|
||||
'Content-Disposition' => 'attachment; filename="' . $chapterSlug . '.pdf'
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Export a chapter to a self-contained HTML file.
|
||||
* @param string $bookSlug
|
||||
* @param string $chapterSlug
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function exportHtml($bookSlug, $chapterSlug)
|
||||
{
|
||||
$chapter = $this->entityRepo->getBySlug('chapter', $chapterSlug, $bookSlug);
|
||||
$containedHtml = $this->exportService->chapterToContainedHtml($chapter);
|
||||
return response()->make($containedHtml, 200, [
|
||||
'Content-Type' => 'application/octet-stream',
|
||||
'Content-Disposition' => 'attachment; filename="' . $chapterSlug . '.html'
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Export a chapter to a simple plaintext .txt file.
|
||||
* @param string $bookSlug
|
||||
* @param string $chapterSlug
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function exportPlainText($bookSlug, $chapterSlug)
|
||||
{
|
||||
$chapter = $this->entityRepo->getBySlug('chapter', $chapterSlug, $bookSlug);
|
||||
$containedHtml = $this->exportService->chapterToPlainText($chapter);
|
||||
return response()->make($containedHtml, 200, [
|
||||
'Content-Type' => 'application/octet-stream',
|
||||
'Content-Disposition' => 'attachment; filename="' . $chapterSlug . '.txt'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@ -1,33 +1,91 @@
|
||||
<?php
|
||||
|
||||
namespace BookStack\Http\Controllers;
|
||||
<?php namespace BookStack\Http\Controllers;
|
||||
|
||||
use BookStack\Repos\CommentRepo;
|
||||
use BookStack\Repos\EntityRepo;
|
||||
use Illuminate\Http\Request;
|
||||
use Views;
|
||||
|
||||
use BookStack\Http\Requests;
|
||||
|
||||
// delete -checkOwnablePermission \
|
||||
class CommentController extends Controller
|
||||
{
|
||||
protected $entityRepo;
|
||||
|
||||
public function add(Request $request, $pageId) {
|
||||
// $this->checkOwnablePermission('page-view', $page);
|
||||
public function __construct(EntityRepo $entityRepo, CommentRepo $commentRepo)
|
||||
{
|
||||
$this->entityRepo = $entityRepo;
|
||||
$this->commentRepo = $commentRepo;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function update(Request $request, $id) {
|
||||
// Check whether its an admin or the comment owner.
|
||||
// $this->checkOwnablePermission('page-view', $page);
|
||||
public function save(Request $request, $pageId, $commentId)
|
||||
{
|
||||
$this->validate($request, [
|
||||
'text' => 'required|string',
|
||||
'html' => 'required|string',
|
||||
]);
|
||||
|
||||
try {
|
||||
$page = $this->entityRepo->getById('page', $pageId, true);
|
||||
} catch (ModelNotFoundException $e) {
|
||||
return response('Not found', 404);
|
||||
}
|
||||
|
||||
if($page->draft) {
|
||||
// cannot add comments to drafts.
|
||||
return response()->json([
|
||||
'status' => 'error',
|
||||
'message' => trans('errors.cannot_add_comment_to_draft'),
|
||||
], 400);
|
||||
}
|
||||
|
||||
$this->checkOwnablePermission('page-view', $page);
|
||||
if (empty($commentId)) {
|
||||
// create a new comment.
|
||||
$this->checkPermission('comment-create-all');
|
||||
$comment = $this->commentRepo->create($page, $request->only(['text', 'html', 'parent_id']));
|
||||
$respMsg = trans('entities.comment_created');
|
||||
} else {
|
||||
// update existing comment
|
||||
// get comment by ID and check if this user has permission to update.
|
||||
$comment = $this->comment->findOrFail($commentId);
|
||||
$this->checkOwnablePermission('comment-update', $comment);
|
||||
$this->commentRepo->update($comment, $request->all());
|
||||
$respMsg = trans('entities.comment_updated');
|
||||
}
|
||||
|
||||
return response()->json([
|
||||
'status' => 'success',
|
||||
'message' => $respMsg
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
public function destroy($id) {
|
||||
// Check whether its an admin or the comment owner.
|
||||
// $this->checkOwnablePermission('page-view', $page);
|
||||
$comment = $this->comment->findOrFail($id);
|
||||
$this->checkOwnablePermission('comment-delete', $comment);
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
public function getLastXComments($pageId) {
|
||||
// $this->checkOwnablePermission('page-view', $page);
|
||||
public function getComments($pageId, $commentId = null) {
|
||||
try {
|
||||
$page = $this->entityRepo->getById('page', $pageId, true);
|
||||
} catch (ModelNotFoundException $e) {
|
||||
return response('Not found', 404);
|
||||
}
|
||||
|
||||
public function getChildComments($pageId, $id) {
|
||||
// $this->checkOwnablePermission('page-view', $page);
|
||||
if($page->draft) {
|
||||
// cannot add comments to drafts.
|
||||
return response()->json([
|
||||
'status' => 'error',
|
||||
'message' => trans('errors.no_comments_for_draft'),
|
||||
], 400);
|
||||
}
|
||||
|
||||
$this->checkOwnablePermission('page-view', $page);
|
||||
|
||||
$comments = $this->commentRepo->getCommentsForPage($pageId, $commentId);
|
||||
|
||||
return response()->json(array('success' => true, 'comments'=> $comments));
|
||||
}
|
||||
}
|
||||
|
@ -1,10 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace BookStack\Http\Controllers;
|
||||
<?php namespace BookStack\Http\Controllers;
|
||||
|
||||
use Activity;
|
||||
use BookStack\Repos\EntityRepo;
|
||||
use BookStack\Http\Requests;
|
||||
use Illuminate\Http\Response;
|
||||
use Views;
|
||||
|
||||
@ -63,10 +60,10 @@ class HomeController extends Controller
|
||||
];
|
||||
if ($locale !== 'en') {
|
||||
$enTrans = [
|
||||
'common' => trans('common', [], null, 'en'),
|
||||
'components' => trans('components', [], null, 'en'),
|
||||
'entities' => trans('entities', [], null, 'en'),
|
||||
'errors' => trans('errors', [], null, 'en')
|
||||
'common' => trans('common', [], 'en'),
|
||||
'components' => trans('components', [], 'en'),
|
||||
'entities' => trans('entities', [], 'en'),
|
||||
'errors' => trans('errors', [], 'en')
|
||||
];
|
||||
$translations = array_replace_recursive($enTrans, $translations);
|
||||
}
|
||||
|
@ -369,7 +369,10 @@ class PageController extends Controller
|
||||
public function showRevision($bookSlug, $pageSlug, $revisionId)
|
||||
{
|
||||
$page = $this->entityRepo->getBySlug('page', $pageSlug, $bookSlug);
|
||||
$revision = $this->entityRepo->getById('page_revision', $revisionId, false);
|
||||
$revision = $page->revisions()->where('id', '=', $revisionId)->first();
|
||||
if ($revision === null) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
$page->fill($revision->toArray());
|
||||
$this->setPageTitle(trans('entities.pages_revision_named', ['pageName' => $page->getShortName()]));
|
||||
@ -390,7 +393,10 @@ class PageController extends Controller
|
||||
public function showRevisionChanges($bookSlug, $pageSlug, $revisionId)
|
||||
{
|
||||
$page = $this->entityRepo->getBySlug('page', $pageSlug, $bookSlug);
|
||||
$revision = $this->entityRepo->getById('page_revision', $revisionId);
|
||||
$revision = $page->revisions()->where('id', '=', $revisionId)->first();
|
||||
if ($revision === null) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
$prev = $revision->getPrevious();
|
||||
$prevContent = ($prev === null) ? '' : $prev->html;
|
||||
@ -423,7 +429,7 @@ class PageController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* Exports a page to pdf format using barryvdh/laravel-dompdf wrapper.
|
||||
* Exports a page to a PDF.
|
||||
* https://github.com/barryvdh/laravel-dompdf
|
||||
* @param string $bookSlug
|
||||
* @param string $pageSlug
|
||||
@ -433,7 +439,6 @@ class PageController extends Controller
|
||||
{
|
||||
$page = $this->entityRepo->getBySlug('page', $pageSlug, $bookSlug);
|
||||
$pdfContent = $this->exportService->pageToPdf($page);
|
||||
// return $pdfContent;
|
||||
return response()->make($pdfContent, 200, [
|
||||
'Content-Type' => 'application/octet-stream',
|
||||
'Content-Disposition' => 'attachment; filename="' . $pageSlug . '.pdf'
|
||||
@ -585,4 +590,9 @@ class PageController extends Controller
|
||||
return redirect($page->getUrl());
|
||||
}
|
||||
|
||||
public function getLastXComments($pageId)
|
||||
{
|
||||
// $this->checkOwnablePermission('page-view', $page);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -13,6 +13,8 @@ class Kernel extends HttpKernel
|
||||
*/
|
||||
protected $middleware = [
|
||||
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
|
||||
\Illuminate\Session\Middleware\StartSession::class,
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
];
|
||||
|
||||
/**
|
||||
@ -24,8 +26,6 @@ class Kernel extends HttpKernel
|
||||
'web' => [
|
||||
\BookStack\Http\Middleware\EncryptCookies::class,
|
||||
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
||||
\Illuminate\Session\Middleware\StartSession::class,
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
\BookStack\Http\Middleware\VerifyCsrfToken::class,
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
\BookStack\Http\Middleware\Localization::class
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?php namespace BookStack\Providers;
|
||||
|
||||
use BookStack\Services\SettingService;
|
||||
use BookStack\Setting;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Validator;
|
||||
|
||||
@ -30,6 +32,8 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
$this->app->singleton(SettingService::class, function($app) {
|
||||
return new SettingService($app->make(Setting::class), $app->make('Illuminate\Contracts\Cache\Repository'));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php namespace BookStack\Repos;
|
||||
|
||||
use BookStack\Comment;
|
||||
use BookStack\Entity;
|
||||
use BookStack\Page;
|
||||
|
||||
/**
|
||||
* Class TagRepo
|
||||
@ -14,4 +14,38 @@ class CommentRepo {
|
||||
*/
|
||||
protected $comment;
|
||||
|
||||
public function __construct(Comment $comment)
|
||||
{
|
||||
$this->comment = $comment;
|
||||
}
|
||||
|
||||
public function create (Page $page, $data = []) {
|
||||
$userId = user()->id;
|
||||
$comment = $this->comment->newInstance();
|
||||
$comment->fill($data);
|
||||
// new comment
|
||||
$comment->page_id = $page->id;
|
||||
$comment->created_by = $userId;
|
||||
$comment->save();
|
||||
return $comment;
|
||||
}
|
||||
|
||||
public function update($comment, $input) {
|
||||
$userId = user()->id;
|
||||
$comment->updated_by = $userId;
|
||||
$comment->fill($input);
|
||||
$comment->save();
|
||||
return $comment;
|
||||
}
|
||||
|
||||
public function getCommentsForPage($pageId, $commentId, $count = 20) {
|
||||
if (empty($commentId)) {
|
||||
// requesting parent comments
|
||||
$query = $this->comment->getParentCommentsByPage($pageId);
|
||||
return $query->paginate($count);
|
||||
} else {
|
||||
// requesting the child comments.
|
||||
return Comment::whereRaw("page_id = $pageId AND parent_id = $commentId")->get();
|
||||
}
|
||||
}
|
||||
}
|
@ -86,8 +86,7 @@ class EntityRepo
|
||||
$this->entities = [
|
||||
'page' => $this->page,
|
||||
'chapter' => $this->chapter,
|
||||
'book' => $this->book,
|
||||
'page_revision' => $this->pageRevision
|
||||
'book' => $this->book
|
||||
];
|
||||
$this->viewService = $viewService;
|
||||
$this->permissionService = $permissionService;
|
||||
@ -314,11 +313,12 @@ class EntityRepo
|
||||
* Loads the book slug onto child elements to prevent access database access for getting the slug.
|
||||
* @param Book $book
|
||||
* @param bool $filterDrafts
|
||||
* @param bool $renderPages
|
||||
* @return mixed
|
||||
*/
|
||||
public function getBookChildren(Book $book, $filterDrafts = false)
|
||||
public function getBookChildren(Book $book, $filterDrafts = false, $renderPages = false)
|
||||
{
|
||||
$q = $this->permissionService->bookChildrenQuery($book->id, $filterDrafts)->get();
|
||||
$q = $this->permissionService->bookChildrenQuery($book->id, $filterDrafts, $renderPages)->get();
|
||||
$entities = [];
|
||||
$parents = [];
|
||||
$tree = [];
|
||||
@ -326,6 +326,10 @@ class EntityRepo
|
||||
foreach ($q as $index => $rawEntity) {
|
||||
if ($rawEntity->entity_type === 'BookStack\\Page') {
|
||||
$entities[$index] = $this->page->newFromBuilder($rawEntity);
|
||||
if ($renderPages) {
|
||||
$entities[$index]->html = $rawEntity->description;
|
||||
$entities[$index]->html = $this->renderPage($entities[$index]);
|
||||
};
|
||||
} else if ($rawEntity->entity_type === 'BookStack\\Chapter') {
|
||||
$entities[$index] = $this->chapter->newFromBuilder($rawEntity);
|
||||
$key = $entities[$index]->entity_type . ':' . $entities[$index]->id;
|
||||
@ -1054,7 +1058,7 @@ class EntityRepo
|
||||
public function restorePageRevision(Page $page, Book $book, $revisionId)
|
||||
{
|
||||
$this->savePageRevision($page);
|
||||
$revision = $this->getById('page_revision', $revisionId);
|
||||
$revision = $page->revisions()->where('id', '=', $revisionId)->first();
|
||||
$page->fill($revision->toArray());
|
||||
$page->slug = $this->findSuitableSlug('page', $page->name, $page->id, $book->id);
|
||||
$page->text = strip_tags($page->html);
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?php namespace BookStack\Services;
|
||||
|
||||
use BookStack\Book;
|
||||
use BookStack\Chapter;
|
||||
use BookStack\Page;
|
||||
use BookStack\Repos\EntityRepo;
|
||||
|
||||
@ -25,25 +27,105 @@ class ExportService
|
||||
*/
|
||||
public function pageToContainedHtml(Page $page)
|
||||
{
|
||||
$cssContent = file_get_contents(public_path('/css/export-styles.css'));
|
||||
$pageHtml = view('pages/export', ['page' => $page, 'pageContent' => $this->entityRepo->renderPage($page), 'css' => $cssContent])->render();
|
||||
$pageHtml = view('pages/export', [
|
||||
'page' => $page,
|
||||
'pageContent' => $this->entityRepo->renderPage($page)
|
||||
])->render();
|
||||
return $this->containHtml($pageHtml);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a page to a pdf file.
|
||||
* Convert a chapter to a self-contained HTML file.
|
||||
* @param Chapter $chapter
|
||||
* @return mixed|string
|
||||
*/
|
||||
public function chapterToContainedHtml(Chapter $chapter)
|
||||
{
|
||||
$pages = $this->entityRepo->getChapterChildren($chapter);
|
||||
$pages->each(function($page) {
|
||||
$page->html = $this->entityRepo->renderPage($page);
|
||||
});
|
||||
$html = view('chapters/export', [
|
||||
'chapter' => $chapter,
|
||||
'pages' => $pages
|
||||
])->render();
|
||||
return $this->containHtml($html);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a book to a self-contained HTML file.
|
||||
* @param Book $book
|
||||
* @return mixed|string
|
||||
*/
|
||||
public function bookToContainedHtml(Book $book)
|
||||
{
|
||||
$bookTree = $this->entityRepo->getBookChildren($book, true, true);
|
||||
$html = view('books/export', [
|
||||
'book' => $book,
|
||||
'bookChildren' => $bookTree
|
||||
])->render();
|
||||
return $this->containHtml($html);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a page to a PDF file.
|
||||
* @param Page $page
|
||||
* @return mixed|string
|
||||
*/
|
||||
public function pageToPdf(Page $page)
|
||||
{
|
||||
$cssContent = file_get_contents(public_path('/css/export-styles.css'));
|
||||
$pageHtml = view('pages/pdf', ['page' => $page, 'pageContent' => $this->entityRepo->renderPage($page), 'css' => $cssContent])->render();
|
||||
// return $pageHtml;
|
||||
$html = view('pages/pdf', [
|
||||
'page' => $page,
|
||||
'pageContent' => $this->entityRepo->renderPage($page)
|
||||
])->render();
|
||||
return $this->htmlToPdf($html);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a chapter to a PDF file.
|
||||
* @param Chapter $chapter
|
||||
* @return mixed|string
|
||||
*/
|
||||
public function chapterToPdf(Chapter $chapter)
|
||||
{
|
||||
$pages = $this->entityRepo->getChapterChildren($chapter);
|
||||
$pages->each(function($page) {
|
||||
$page->html = $this->entityRepo->renderPage($page);
|
||||
});
|
||||
$html = view('chapters/export', [
|
||||
'chapter' => $chapter,
|
||||
'pages' => $pages
|
||||
])->render();
|
||||
return $this->htmlToPdf($html);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a book to a PDF file
|
||||
* @param Book $book
|
||||
* @return string
|
||||
*/
|
||||
public function bookToPdf(Book $book)
|
||||
{
|
||||
$bookTree = $this->entityRepo->getBookChildren($book, true, true);
|
||||
$html = view('books/export', [
|
||||
'book' => $book,
|
||||
'bookChildren' => $bookTree
|
||||
])->render();
|
||||
return $this->htmlToPdf($html);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert normal webpage HTML to a PDF.
|
||||
* @param $html
|
||||
* @return string
|
||||
*/
|
||||
protected function htmlToPdf($html)
|
||||
{
|
||||
$containedHtml = $this->containHtml($html);
|
||||
$useWKHTML = config('snappy.pdf.binary') !== false;
|
||||
$containedHtml = $this->containHtml($pageHtml);
|
||||
if ($useWKHTML) {
|
||||
$pdf = \SnappyPDF::loadHTML($containedHtml);
|
||||
$pdf->setOption('print-media-type', true);
|
||||
} else {
|
||||
$pdf = \PDF::loadHTML($containedHtml);
|
||||
}
|
||||
@ -123,6 +205,40 @@ class ExportService
|
||||
return $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a chapter into a plain text string.
|
||||
* @param Chapter $chapter
|
||||
* @return string
|
||||
*/
|
||||
public function chapterToPlainText(Chapter $chapter)
|
||||
{
|
||||
$text = $chapter->name . "\n\n";
|
||||
$text .= $chapter->description . "\n\n";
|
||||
foreach ($chapter->pages as $page) {
|
||||
$text .= $this->pageToPlainText($page);
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a book into a plain text string.
|
||||
* @param Book $book
|
||||
* @return string
|
||||
*/
|
||||
public function bookToPlainText(Book $book)
|
||||
{
|
||||
$bookTree = $this->entityRepo->getBookChildren($book, true, true);
|
||||
$text = $book->name . "\n\n";
|
||||
foreach ($bookTree as $bookChild) {
|
||||
if ($bookChild->isA('chapter')) {
|
||||
$text .= $this->chapterToPlainText($bookChild);
|
||||
} else {
|
||||
$text .= $this->pageToPlainText($bookChild);
|
||||
}
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -41,7 +41,8 @@ class LdapService
|
||||
// Find user
|
||||
$userFilter = $this->buildFilter($this->config['user_filter'], ['user' => $userName]);
|
||||
$baseDn = $this->config['base_dn'];
|
||||
$users = $this->ldap->searchAndGetEntries($ldapConnection, $baseDn, $userFilter, ['cn', 'uid', 'dn', 'mail']);
|
||||
$emailAttr = $this->config['email_attribute'];
|
||||
$users = $this->ldap->searchAndGetEntries($ldapConnection, $baseDn, $userFilter, ['cn', 'uid', 'dn', $emailAttr]);
|
||||
if ($users['count'] === 0) return null;
|
||||
|
||||
$user = $users[0];
|
||||
@ -49,7 +50,7 @@ class LdapService
|
||||
'uid' => (isset($user['uid'])) ? $user['uid'][0] : $user['dn'],
|
||||
'name' => $user['cn'][0],
|
||||
'dn' => $user['dn'],
|
||||
'email' => (isset($user['mail'])) ? $user['mail'][0] : null
|
||||
'email' => (isset($user[$emailAttr])) ? (is_array($user[$emailAttr]) ? $user[$emailAttr][0] : $user[$emailAttr]) : null
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -475,10 +475,12 @@ class PermissionService
|
||||
* Get the children of a book in an efficient single query, Filtered by the permission system.
|
||||
* @param integer $book_id
|
||||
* @param bool $filterDrafts
|
||||
* @param bool $fetchPageContent
|
||||
* @return \Illuminate\Database\Query\Builder
|
||||
*/
|
||||
public function bookChildrenQuery($book_id, $filterDrafts = false) {
|
||||
$pageSelect = $this->db->table('pages')->selectRaw("'BookStack\\\\Page' as entity_type, id, slug, name, text, '' as description, book_id, priority, chapter_id, draft")->where('book_id', '=', $book_id)->where(function($query) use ($filterDrafts) {
|
||||
public function bookChildrenQuery($book_id, $filterDrafts = false, $fetchPageContent = false) {
|
||||
$pageContentSelect = $fetchPageContent ? 'html' : "''";
|
||||
$pageSelect = $this->db->table('pages')->selectRaw("'BookStack\\\\Page' as entity_type, id, slug, name, text, {$pageContentSelect} as description, book_id, priority, chapter_id, draft")->where('book_id', '=', $book_id)->where(function($query) use ($filterDrafts) {
|
||||
$query->where('draft', '=', 0);
|
||||
if (!$filterDrafts) {
|
||||
$query->orWhere(function($query) {
|
||||
|
@ -16,6 +16,7 @@ class SettingService
|
||||
|
||||
protected $setting;
|
||||
protected $cache;
|
||||
protected $localCache = [];
|
||||
|
||||
protected $cachePrefix = 'setting-';
|
||||
|
||||
@ -40,8 +41,12 @@ class SettingService
|
||||
public function get($key, $default = false)
|
||||
{
|
||||
if ($default === false) $default = config('setting-defaults.' . $key, false);
|
||||
if (isset($this->localCache[$key])) return $this->localCache[$key];
|
||||
|
||||
$value = $this->getValueFromStore($key, $default);
|
||||
return $this->formatValue($value, $default);
|
||||
$formatted = $this->formatValue($value, $default);
|
||||
$this->localCache[$key] = $formatted;
|
||||
return $formatted;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,9 +76,8 @@ class SettingService
|
||||
|
||||
// Check the cache
|
||||
$cacheKey = $this->cachePrefix . $key;
|
||||
if ($this->cache->has($cacheKey)) {
|
||||
return $this->cache->get($cacheKey);
|
||||
}
|
||||
$cacheVal = $this->cache->get($cacheKey, null);
|
||||
if ($cacheVal !== null) return $cacheVal;
|
||||
|
||||
// Check the database
|
||||
$settingObject = $this->getSettingObjectByKey($key);
|
||||
|
@ -181,14 +181,24 @@ class SocialAuthService
|
||||
public function getActiveDrivers()
|
||||
{
|
||||
$activeDrivers = [];
|
||||
foreach ($this->validSocialDrivers as $driverName) {
|
||||
if ($this->checkDriverConfigured($driverName)) {
|
||||
$activeDrivers[$driverName] = true;
|
||||
foreach ($this->validSocialDrivers as $driverKey) {
|
||||
if ($this->checkDriverConfigured($driverKey)) {
|
||||
$activeDrivers[$driverKey] = $this->getDriverName($driverKey);
|
||||
}
|
||||
}
|
||||
return $activeDrivers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the presentational name for a driver.
|
||||
* @param $driver
|
||||
* @return mixed
|
||||
*/
|
||||
public function getDriverName($driver)
|
||||
{
|
||||
return config('services.' . strtolower($driver) . '.name');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $socialDriver
|
||||
* @param \Laravel\Socialite\Contracts\User $socialUser
|
||||
|
@ -37,6 +37,15 @@ function user()
|
||||
return auth()->user() ?: \BookStack\User::getDefault();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if current user is a signed in user.
|
||||
* @return bool
|
||||
*/
|
||||
function signedInUser()
|
||||
{
|
||||
return auth()->user() && !auth()->user()->isDefault();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the current user has a permission.
|
||||
* If an ownable element is passed in the jointPermissions are checked against
|
||||
@ -64,7 +73,7 @@ function userCan($permission, Ownable $ownable = null)
|
||||
*/
|
||||
function setting($key = null, $default = false)
|
||||
{
|
||||
$settingService = app(\BookStack\Services\SettingService::class);
|
||||
$settingService = resolve(\BookStack\Services\SettingService::class);
|
||||
if (is_null($key)) return $settingService;
|
||||
return $settingService->get($key, $default);
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
"barryvdh/laravel-ide-helper": "^2.2.3",
|
||||
"barryvdh/laravel-debugbar": "^2.3.2",
|
||||
"league/flysystem-aws-s3-v3": "^1.0",
|
||||
"barryvdh/laravel-dompdf": "^0.7",
|
||||
"barryvdh/laravel-dompdf": "^0.8",
|
||||
"predis/predis": "^1.1",
|
||||
"gathercontent/htmldiff": "^0.2.1",
|
||||
"barryvdh/laravel-snappy": "^0.3.1",
|
||||
@ -36,10 +36,9 @@
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"classmap": [
|
||||
"tests/TestCase.php",
|
||||
"tests/BrowserKitTest.php"
|
||||
]
|
||||
"psr-4": {
|
||||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"post-root-package-install": [
|
||||
@ -48,6 +47,14 @@
|
||||
"post-create-project-cmd": [
|
||||
"php artisan key:generate"
|
||||
],
|
||||
"pre-update-cmd": [
|
||||
"php -r \"!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');\"",
|
||||
"php -r \"!file_exists('bootstrap/cache/compiled.php') || @unlink('bootstrap/cache/compiled.php');\""
|
||||
],
|
||||
"pre-install-cmd": [
|
||||
"php -r \"!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');\"",
|
||||
"php -r \"!file_exists('bootstrap/cache/compiled.php') || @unlink('bootstrap/cache/compiled.php');\""
|
||||
],
|
||||
"post-install-cmd": [
|
||||
"Illuminate\\Foundation\\ComposerScripts::postInstall",
|
||||
"php artisan optimize",
|
||||
|
420
composer.lock
generated
420
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -82,7 +82,7 @@ return [
|
||||
|
||||
'mysql_testing' => [
|
||||
'driver' => 'mysql',
|
||||
'host' => 'localhost',
|
||||
'host' => '127.0.0.1',
|
||||
'database' => 'bookstack-test',
|
||||
'username' => env('MYSQL_USER', 'bookstack-test'),
|
||||
'password' => env('MYSQL_PASSWORD', 'bookstack-test'),
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -13,7 +13,7 @@ return array(
|
||||
*/
|
||||
'show_warnings' => false, // Throw an Exception on warnings from dompdf
|
||||
'orientation' => 'portrait',
|
||||
'defines' => array(
|
||||
'defines' => [
|
||||
/**
|
||||
* The location of the DOMPDF font directory
|
||||
*
|
||||
@ -143,7 +143,7 @@ return array(
|
||||
* the desired content might be different (e.g. screen or projection view of html file).
|
||||
* Therefore allow specification of content here.
|
||||
*/
|
||||
"DOMPDF_DEFAULT_MEDIA_TYPE" => "screen",
|
||||
"DOMPDF_DEFAULT_MEDIA_TYPE" => "print",
|
||||
|
||||
/**
|
||||
* The default paper size.
|
||||
@ -260,7 +260,7 @@ return array(
|
||||
"DOMPDF_ENABLE_HTML5PARSER" => true,
|
||||
|
||||
|
||||
),
|
||||
],
|
||||
|
||||
|
||||
);
|
||||
];
|
||||
|
@ -41,30 +41,35 @@ return [
|
||||
'client_id' => env('GITHUB_APP_ID', false),
|
||||
'client_secret' => env('GITHUB_APP_SECRET', false),
|
||||
'redirect' => env('APP_URL') . '/login/service/github/callback',
|
||||
'name' => 'GitHub',
|
||||
],
|
||||
|
||||
'google' => [
|
||||
'client_id' => env('GOOGLE_APP_ID', false),
|
||||
'client_secret' => env('GOOGLE_APP_SECRET', false),
|
||||
'redirect' => env('APP_URL') . '/login/service/google/callback',
|
||||
'name' => 'Google',
|
||||
],
|
||||
|
||||
'slack' => [
|
||||
'client_id' => env('SLACK_APP_ID', false),
|
||||
'client_secret' => env('SLACK_APP_SECRET', false),
|
||||
'redirect' => env('APP_URL') . '/login/service/slack/callback',
|
||||
'name' => 'Slack',
|
||||
],
|
||||
|
||||
'facebook' => [
|
||||
'client_id' => env('FACEBOOK_APP_ID', false),
|
||||
'client_secret' => env('FACEBOOK_APP_SECRET', false),
|
||||
'redirect' => env('APP_URL') . '/login/service/facebook/callback',
|
||||
'name' => 'Facebook',
|
||||
],
|
||||
|
||||
'twitter' => [
|
||||
'client_id' => env('TWITTER_APP_ID', false),
|
||||
'client_secret' => env('TWITTER_APP_SECRET', false),
|
||||
'redirect' => env('APP_URL') . '/login/service/twitter/callback',
|
||||
'name' => 'Twitter',
|
||||
],
|
||||
|
||||
'ldap' => [
|
||||
@ -73,7 +78,8 @@ return [
|
||||
'pass' => env('LDAP_PASS', false),
|
||||
'base_dn' => env('LDAP_BASE_DN', false),
|
||||
'user_filter' => env('LDAP_USER_FILTER', '(&(uid=${user}))'),
|
||||
'version' => env('LDAP_VERSION', false)
|
||||
'version' => env('LDAP_VERSION', false),
|
||||
'email_attribute' => env('LDAP_EMAIL_ATTRIBUTE', 'mail'),
|
||||
]
|
||||
|
||||
];
|
||||
|
@ -11,14 +11,14 @@ class DummyContentSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$user = factory(BookStack\User::class, 1)->create();
|
||||
$user = factory(\BookStack\User::class)->create();
|
||||
$role = \BookStack\Role::getRole('editor');
|
||||
$user->attachRole($role);
|
||||
|
||||
|
||||
$books = factory(BookStack\Book::class, 20)->create(['created_by' => $user->id, 'updated_by' => $user->id])
|
||||
$books = factory(\BookStack\Book::class, 20)->create(['created_by' => $user->id, 'updated_by' => $user->id])
|
||||
->each(function($book) use ($user) {
|
||||
$chapters = factory(BookStack\Chapter::class, 5)->create(['created_by' => $user->id, 'updated_by' => $user->id])
|
||||
$chapters = factory(\BookStack\Chapter::class, 5)->create(['created_by' => $user->id, 'updated_by' => $user->id])
|
||||
->each(function($chapter) use ($user, $book){
|
||||
$pages = factory(\BookStack\Page::class, 5)->make(['created_by' => $user->id, 'updated_by' => $user->id, 'book_id' => $book->id]);
|
||||
$chapter->pages()->saveMany($pages);
|
||||
|
15
public/libs/simplemde/simplemde.min.js
vendored
Normal file
15
public/libs/simplemde/simplemde.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -305,6 +305,7 @@ export default function (ngApp, events) {
|
||||
$scope.draftsEnabled = $attrs.draftsEnabled === 'true';
|
||||
$scope.isUpdateDraft = Number($attrs.pageUpdateDraft) === 1;
|
||||
$scope.isNewPageDraft = Number($attrs.pageNewDraft) === 1;
|
||||
$scope.commentsLoaded = false;
|
||||
|
||||
// Set initial header draft text
|
||||
if ($scope.isUpdateDraft || $scope.isNewPageDraft) {
|
||||
@ -714,4 +715,79 @@ export default function (ngApp, events) {
|
||||
|
||||
}]);
|
||||
|
||||
// CommentCrudController
|
||||
ngApp.controller('CommentAddController', ['$scope', '$http', function ($scope, $http) {
|
||||
let vm = this;
|
||||
let comment = {};
|
||||
$scope.errors = {};
|
||||
vm.saveComment = function () {
|
||||
let pageId = $scope.comment.pageId;
|
||||
let comment = $scope.comment.newComment;
|
||||
let commentHTML = $scope.getCommentHTML();
|
||||
|
||||
$http.post(window.baseUrl(`/ajax/page/${pageId}/comment/`), {
|
||||
text: comment,
|
||||
html: commentHTML
|
||||
}).then(resp => {
|
||||
$scope.clearInput();
|
||||
if (!resp.data || resp.data.status !== 'success') {
|
||||
return events.emit('error', trans('error'));
|
||||
}
|
||||
events.emit('success', trans(resp.data.message));
|
||||
}, checkError('add'));
|
||||
|
||||
};
|
||||
|
||||
function checkError(errorGroupName) {
|
||||
$scope.errors[errorGroupName] = {};
|
||||
return function(response) {
|
||||
if (typeof response.data !== 'undefined' && typeof response.data.error !== 'undefined') {
|
||||
events.emit('error', response.data.error);
|
||||
}
|
||||
if (typeof response.data !== 'undefined' && typeof response.data.validation !== 'undefined') {
|
||||
$scope.errors[errorGroupName] = response.data.validation;
|
||||
console.log($scope.errors[errorGroupName])
|
||||
}
|
||||
}
|
||||
}
|
||||
}]);
|
||||
|
||||
|
||||
// CommentListController
|
||||
ngApp.controller('CommentListController', ['$scope', '$http', '$timeout', function ($scope, $http, $timeout) {
|
||||
let vm = this;
|
||||
$scope.errors = {};
|
||||
$scope.defaultAvatar = defaultAvatar;
|
||||
vm.totalCommentsStr = 'Loading...';
|
||||
$scope.editorChange = function (content) {
|
||||
console.log(content);
|
||||
}
|
||||
|
||||
$timeout(function() {
|
||||
console.log($scope.pageId);
|
||||
$http.get(window.baseUrl(`/ajax/page/${$scope.pageId}/comments/`)).then(resp => {
|
||||
if (!resp.data || resp.data.success !== true) {
|
||||
// TODO : Handle error
|
||||
return;
|
||||
}
|
||||
vm.comments = resp.data.comments.data;
|
||||
vm.totalComments = resp.data.comments.total;
|
||||
if (vm.totalComments === 0) {
|
||||
vm.totalCommentsStr = 'No comments found.';
|
||||
} else if (vm.totalComments === 1) {
|
||||
vm.totalCommentsStr = '1 Comments';
|
||||
} else {
|
||||
vm.totalCommentsStr = vm.totalComments + ' Comments'
|
||||
}
|
||||
}, checkError('app'));
|
||||
});
|
||||
|
||||
function checkError(errorGroupName) {
|
||||
$scope.errors[errorGroupName] = {};
|
||||
return function(response) {
|
||||
console.log(resp);
|
||||
}
|
||||
}
|
||||
}]);
|
||||
|
||||
};
|
||||
|
@ -214,6 +214,19 @@ export default function (ngApp, events) {
|
||||
}
|
||||
}]);
|
||||
|
||||
let renderer = new markdown.Renderer();
|
||||
// Custom markdown checkbox list item
|
||||
// Attribution: https://github.com/chjj/marked/issues/107#issuecomment-44542001
|
||||
renderer.listitem = function(text) {
|
||||
if (/^\s*\[[x ]\]\s*/.test(text)) {
|
||||
text = text
|
||||
.replace(/^\s*\[ \]\s*/, '<input type="checkbox"/>')
|
||||
.replace(/^\s*\[x\]\s*/, '<input type="checkbox" checked/>');
|
||||
return `<li class="checkbox-item">${text}</li>`;
|
||||
}
|
||||
return `<li>${text}</li>`;
|
||||
};
|
||||
|
||||
/**
|
||||
* Markdown input
|
||||
* Handles the logic for just the editor input field.
|
||||
@ -231,13 +244,13 @@ export default function (ngApp, events) {
|
||||
element = element.find('textarea').first();
|
||||
let content = element.val();
|
||||
scope.mdModel = content;
|
||||
scope.mdChange(markdown(content));
|
||||
scope.mdChange(markdown(content, {renderer: renderer}));
|
||||
|
||||
element.on('change input', (event) => {
|
||||
content = element.val();
|
||||
$timeout(() => {
|
||||
scope.mdModel = content;
|
||||
scope.mdChange(markdown(content));
|
||||
scope.mdChange(markdown(content, {renderer: renderer}));
|
||||
});
|
||||
});
|
||||
|
||||
@ -814,4 +827,52 @@ export default function (ngApp, events) {
|
||||
}
|
||||
};
|
||||
}]);
|
||||
|
||||
|
||||
ngApp.directive('simpleMarkdownInput', ['$timeout', function ($timeout) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
scope: {
|
||||
smdModel: '=',
|
||||
smdChange: '=',
|
||||
smdGetContent: '=',
|
||||
smdClear: '='
|
||||
},
|
||||
link: function (scope, element, attrs) {
|
||||
// Set initial model content
|
||||
element = element.find('textarea').first();
|
||||
let simplemde = new SimpleMDE({
|
||||
element: element[0],
|
||||
status: []
|
||||
});
|
||||
let content = element.val();
|
||||
simplemde.value(content)
|
||||
scope.smdModel = content;
|
||||
|
||||
simplemde.codemirror.on('change', (event) => {
|
||||
content = simplemde.value();
|
||||
$timeout(() => {
|
||||
scope.smdModel = content;
|
||||
if (scope.smdChange) {
|
||||
scope.smdChange(element, content);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if ('smdGetContent' in attrs) {
|
||||
scope.smdGetContent = function () {
|
||||
return simplemde.options.previewRender(simplemde.value());
|
||||
};
|
||||
}
|
||||
|
||||
if ('smdClear' in attrs) {
|
||||
scope.smdClear = function () {
|
||||
simplemde.value('');
|
||||
scope.smdModel = '';
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}]);
|
||||
|
||||
};
|
||||
|
@ -135,11 +135,19 @@
|
||||
border-left: 3px solid #BBB;
|
||||
background-color: #EEE;
|
||||
padding: $-s;
|
||||
padding-left: $-xl;
|
||||
display: block;
|
||||
position: relative;
|
||||
&:before {
|
||||
font-family: 'Material-Design-Iconic-Font';
|
||||
padding-right: $-s;
|
||||
left: $-xs + 4px;
|
||||
top: 50%;
|
||||
margin-top: -9px;
|
||||
//top: $-xs + 5px;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
font-size: 1.222em;
|
||||
line-height: 1;
|
||||
}
|
||||
&.success {
|
||||
border-left-color: $positive;
|
||||
|
@ -54,6 +54,9 @@ $button-border-radius: 2px;
|
||||
&.muted {
|
||||
@include generate-button-colors(#EEE, #888);
|
||||
}
|
||||
&.muted-light {
|
||||
@include generate-button-colors(#666, #e4e4e4);
|
||||
}
|
||||
}
|
||||
|
||||
.text-button {
|
||||
@ -92,6 +95,9 @@ $button-border-radius: 2px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
display: block;
|
||||
&.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.button.icon {
|
||||
@ -100,6 +106,19 @@ $button-border-radius: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.button.svg {
|
||||
svg {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
left: $-m;
|
||||
top: $-s - 2px;
|
||||
width: 24px;
|
||||
}
|
||||
padding: $-s $-m;
|
||||
padding-bottom: $-s - 2px;
|
||||
padding-left: $-m*2 + 24px;
|
||||
}
|
||||
|
||||
.button[disabled] {
|
||||
background-color: #BBB;
|
||||
cursor: default;
|
||||
|
@ -55,20 +55,6 @@ div[class^="col-"] img {
|
||||
}
|
||||
}
|
||||
|
||||
.center-box {
|
||||
margin: $-xl auto 0 auto;
|
||||
padding: $-m $-xxl $-xl*2 $-xxl;
|
||||
max-width: 346px;
|
||||
display: inline-block;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
&.login {
|
||||
background-color: #EEE;
|
||||
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
|
||||
border: 1px solid #DDD;
|
||||
}
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-left: -$-m;
|
||||
margin-right: -$-m;
|
||||
|
@ -311,3 +311,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-editor .CodeMirror, .comment-editor .CodeMirror-scroll {
|
||||
min-height: 175px;
|
||||
}
|
@ -281,6 +281,14 @@ ol {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
li.checkbox-item {
|
||||
list-style: none;
|
||||
margin-left: - ($-m * 1.3);
|
||||
input[type="checkbox"] {
|
||||
margin-right: $-xs;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Generic text styling classes
|
||||
*/
|
||||
|
@ -56,3 +56,6 @@ $text-light: #EEE;
|
||||
$bs-light: 0 0 4px 1px #CCC;
|
||||
$bs-med: 0 1px 3px 1px rgba(76, 76, 76, 0.26);
|
||||
$bs-hover: 0 2px 2px 1px rgba(0,0,0,.13);
|
||||
|
||||
// comments
|
||||
$comment-border: #DDD;
|
@ -1,4 +1,4 @@
|
||||
@import "reset";
|
||||
//@import "reset";
|
||||
@import "variables";
|
||||
@import "mixins";
|
||||
@import "html";
|
||||
@ -10,6 +10,7 @@
|
||||
@import "header";
|
||||
@import "lists";
|
||||
@import "pages";
|
||||
@import "comments";
|
||||
|
||||
table {
|
||||
border-spacing: 0;
|
||||
|
@ -12,10 +12,12 @@
|
||||
@import "animations";
|
||||
@import "tinymce";
|
||||
@import "highlightjs";
|
||||
@import "simplemde";
|
||||
@import "components";
|
||||
@import "header";
|
||||
@import "lists";
|
||||
@import "pages";
|
||||
@import "comments";
|
||||
|
||||
[v-cloak], [v-show] {display: none;}
|
||||
|
||||
@ -251,15 +253,24 @@ $btt-size: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.center-box {
|
||||
margin: $-xl auto 0 auto;
|
||||
padding: $-m $-xxl $-xl $-xxl;
|
||||
width: 420px;
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
//border: 1px solid #DDD;
|
||||
input {
|
||||
width: 100%;
|
||||
}
|
||||
&.login {
|
||||
background-color: #EEE;
|
||||
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
|
||||
border: 1px solid #DDD;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -14,7 +14,50 @@ return [
|
||||
'throttle' => 'Zu viele Anmeldeversuche. Bitte versuchen sie es in :seconds Sekunden erneut.',
|
||||
|
||||
/**
|
||||
* Email Confirmation Text
|
||||
* Login & Register
|
||||
*/
|
||||
'sign_up' => 'Registrieren',
|
||||
'log_in' => 'Anmelden',
|
||||
'logout' => 'Abmelden',
|
||||
|
||||
'name' => 'Name',
|
||||
'username' => 'Benutzername',
|
||||
'email' => 'E-Mail',
|
||||
'password' => 'Passwort',
|
||||
'password_confirm' => 'Passwort bestätigen',
|
||||
'password_hint' => 'Mindestlänge: 5 Zeichen',
|
||||
'forgot_password' => 'Passwort vergessen?',
|
||||
'remember_me' => 'Angemeldet bleiben',
|
||||
'ldap_email_hint' => 'Bitte geben Sie eine E-Mail-Adresse ein, um diese mit dem Account zu nutzen.',
|
||||
'create_account' => 'Account anlegen',
|
||||
'social_login' => 'Social Login',
|
||||
'social_registration' => 'Social Registrierung',
|
||||
'social_registration_text' => 'Mit einem dieser Möglichkeiten registrieren oder anmelden.',
|
||||
|
||||
|
||||
'register_thanks' => 'Vielen Dank für Ihre Registrierung!',
|
||||
'register_confirm' => 'Bitte prüfen Sie Ihren E-Mail Eingang und klicken auf den Verifizieren-Button, um :appName nutzen zu können.',
|
||||
'registrations_disabled' => 'Die Registrierung ist momentan nicht möglich',
|
||||
'registration_email_domain_invalid' => 'Diese E-Mail-Domain ist für die Benutzer der Applikation nicht freigeschaltet.',
|
||||
'register_success' => 'Vielen Dank für Ihre Registrierung! Die Daten sind gespeichert und Sie sind angemeldet.',
|
||||
|
||||
|
||||
/**
|
||||
* Password Reset
|
||||
*/
|
||||
'reset_password' => 'Passwort vergessen',
|
||||
'reset_password_send_instructions' => 'Bitte geben Sie unten Ihre E-Mail-Adresse ein und Sie erhalten eine E-Mail, um Ihr Passwort zurück zu setzen.',
|
||||
'reset_password_send_button' => 'Passwort zurücksetzen',
|
||||
'reset_password_sent_success' => 'Eine E-Mail mit den Instruktionen, um Ihr Passwort zurückzusetzen wurde an :email gesendet.',
|
||||
'reset_password_success' => 'Ihr Passwort wurde erfolgreich zurück gesetzt.',
|
||||
|
||||
'email_reset_subject' => 'Passwort zurücksetzen für :appName',
|
||||
'email_reset_text' => 'Sie erhalten diese E-Mail, weil eine Passwort-Rücksetzung für Ihren Account beantragt wurde.',
|
||||
'email_reset_not_requested' => 'Wenn Sie die Passwort-Rücksetzung nicht ausgelöst haben, ist kein weiteres Handeln notwendig.',
|
||||
|
||||
|
||||
/**
|
||||
* Email Confirmation
|
||||
*/
|
||||
'email_confirm_subject' => 'Bestätigen sie ihre E-Mail Adresse bei :appName',
|
||||
'email_confirm_greeting' => 'Danke, dass sie :appName beigetreten sind!',
|
||||
@ -23,4 +66,10 @@ return [
|
||||
'email_confirm_send_error' => 'Bestätigungs-E-Mail benötigt, aber das System konnte die E-Mail nicht versenden. Kontaktieren sie den Administrator, um sicherzustellen, dass das Sytsem korrekt eingerichtet ist.',
|
||||
'email_confirm_success' => 'Ihre E-Mail Adresse wurde bestätigt!',
|
||||
'email_confirm_resent' => 'Bestätigungs-E-Mail wurde erneut versendet, bitte überprüfen sie ihren Posteingang.',
|
||||
|
||||
'email_not_confirmed' => 'E-Mail-Adresse ist nicht bestätigt',
|
||||
'email_not_confirmed_text' => 'Ihre E-Mail-Adresse ist bisher nicht bestätigt.',
|
||||
'email_not_confirmed_click_link' => 'Bitte klicken Sie auf den Link in der E-Mail, die Sie nach der Registrierung erhalten haben.',
|
||||
'email_not_confirmed_resend' => 'Wenn Sie die E-Mail nicht erhalten haben, können Sie die Nachricht erneut anfordern. Füllen Sie hierzu bitte das folgende Formular aus:',
|
||||
'email_not_confirmed_resend_button' => 'Bestätigungs E-Mail erneut senden',
|
||||
];
|
||||
|
58
resources/lang/de/common.php
Normal file
58
resources/lang/de/common.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
return [
|
||||
|
||||
/**
|
||||
* Buttons
|
||||
*/
|
||||
'cancel' => 'Abbrechen',
|
||||
'confirm' => 'Bestätigen',
|
||||
'back' => 'Zurück',
|
||||
'save' => 'Speichern',
|
||||
'continue' => 'Weiter',
|
||||
'select' => 'Auswählen',
|
||||
|
||||
/**
|
||||
* Form Labels
|
||||
*/
|
||||
'name' => 'Name',
|
||||
'description' => 'Beschreibung',
|
||||
'role' => 'Rolle',
|
||||
|
||||
/**
|
||||
* Actions
|
||||
*/
|
||||
'actions' => 'Aktionen',
|
||||
'view' => 'Anzeigen',
|
||||
'create' => 'Anlegen',
|
||||
'update' => 'Aktualisieren',
|
||||
'edit' => 'Bearbeiten',
|
||||
'sort' => 'Sortieren',
|
||||
'move' => 'Verschieben',
|
||||
'delete' => 'Löschen',
|
||||
'search' => 'Suchen',
|
||||
'search_clear' => 'Suche löschen',
|
||||
'reset' => 'Zurücksetzen',
|
||||
'remove' => 'Entfernen',
|
||||
|
||||
|
||||
/**
|
||||
* Misc
|
||||
*/
|
||||
'deleted_user' => 'Gelöschte Benutzer',
|
||||
'no_activity' => 'Keine Aktivitäten zum Anzeigen',
|
||||
'no_items' => 'Keine Einträge gefunden.',
|
||||
'back_to_top' => 'nach oben',
|
||||
'toggle_details' => 'Details zeigen/verstecken',
|
||||
|
||||
/**
|
||||
* Header
|
||||
*/
|
||||
'view_profile' => 'Profil ansehen',
|
||||
'edit_profile' => 'Profil bearbeiten',
|
||||
|
||||
/**
|
||||
* Email Content
|
||||
*/
|
||||
'email_action_help' => 'Sollte es beim Anklicken des ":actionText" Buttons Probleme geben, kopieren Sie folgende URL und fügen diese in Ihrem Webbrowser ein:',
|
||||
'email_rights' => 'Alle Rechte vorbehalten',
|
||||
];
|
24
resources/lang/de/components.php
Normal file
24
resources/lang/de/components.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
return [
|
||||
|
||||
/**
|
||||
* Image Manager
|
||||
*/
|
||||
'image_select' => 'Bild auswählen',
|
||||
'image_all' => 'Alle',
|
||||
'image_all_title' => 'Alle Bilder anzeigen',
|
||||
'image_book_title' => 'Zeige alle Bilder, die in dieses Buch hochgeladen wurden',
|
||||
'image_page_title' => 'Zeige alle Bilder, die auf diese Seite hochgeladen wurden',
|
||||
'image_search_hint' => 'Nach Bildnamen suchen',
|
||||
'image_uploaded' => 'Hochgeladen am :uploadedDate',
|
||||
'image_load_more' => 'Mehr',
|
||||
'image_image_name' => 'Bildname',
|
||||
'image_delete_confirm' => 'Dieses Bild wird auf den folgenden Seiten benutzt. Bitte klicken Sie erneut auf löschen, wenn Sie dieses Bild tatsächlich entfernen möchten.',
|
||||
'image_select_image' => 'Bild auswählen',
|
||||
'image_dropzone' => 'Ziehen Sie Bilder hier hinein oder klicken Sie hier, um ein Bild auszuwählen',
|
||||
'images_deleted' => 'Bilder gelöscht',
|
||||
'image_preview' => 'Bildvorschau',
|
||||
'image_upload_success' => 'Bild erfolgreich hochgeladen',
|
||||
'image_update_success' => 'Bilddetails erfolgreich aktualisiert',
|
||||
'image_delete_success' => 'Bild erfolgreich gelöscht'
|
||||
];
|
225
resources/lang/de/entities.php
Normal file
225
resources/lang/de/entities.php
Normal file
@ -0,0 +1,225 @@
|
||||
<?php
|
||||
return [
|
||||
|
||||
/**
|
||||
* Shared
|
||||
*/
|
||||
'recently_created' => 'Kürzlich angelegt',
|
||||
'recently_created_pages' => 'Kürzlich angelegte Seiten',
|
||||
'recently_updated_pages' => 'Kürzlich aktualisierte Seiten',
|
||||
'recently_created_chapters' => 'Kürzlich angelegte Kapitel',
|
||||
'recently_created_books' => 'Kürzlich angelegte Bücher',
|
||||
'recently_update' => 'Kürzlich aktualisiert',
|
||||
'recently_viewed' => 'Kürzlich angesehen',
|
||||
'recent_activity' => 'Kürzliche Aktivität',
|
||||
'create_now' => 'Jetzt anlegen',
|
||||
'revisions' => 'Revisionen',
|
||||
'meta_created' => 'Angelegt am :timeLength',
|
||||
'meta_created_name' => 'Angelegt am :timeLength durch :user',
|
||||
'meta_updated' => 'Aktualisiert am :timeLength',
|
||||
'meta_updated_name' => 'Aktualisiert am :timeLength durch :user',
|
||||
'x_pages' => ':count Seiten',
|
||||
'entity_select' => 'Eintrag auswählen',
|
||||
'images' => 'Bilder',
|
||||
'my_recent_drafts' => 'Meine kürzlichen Entwürfe',
|
||||
'my_recently_viewed' => 'Kürzlich von mir angesehen',
|
||||
'no_pages_viewed' => 'Sie haben bisher keine Seiten angesehen.',
|
||||
'no_pages_recently_created' => 'Sie haben bisher keine Seiten angelegt.',
|
||||
'no_pages_recently_updated' => 'Sie haben bisher keine Seiten aktualisiert.',
|
||||
'export' => 'Exportieren',
|
||||
'export_html' => 'HTML-Datei',
|
||||
'export_pdf' => 'PDF-Datei',
|
||||
'export_text' => 'Text-Datei',
|
||||
|
||||
/**
|
||||
* Permissions and restrictions
|
||||
*/
|
||||
'permissions' => 'Berechtigungen',
|
||||
'permissions_intro' => 'Wenn individuelle Berechtigungen aktiviert werden, überschreiben diese Einstellungen durch Rollen zugewiesene Berechtigungen.',
|
||||
'permissions_enable' => 'Individuelle Berechtigungen aktivieren',
|
||||
'permissions_save' => 'Berechtigungen speichern',
|
||||
|
||||
/**
|
||||
* Search
|
||||
*/
|
||||
'search_results' => 'Suchergebnisse',
|
||||
'search_results_page' => 'Seiten-Suchergebnisse',
|
||||
'search_results_chapter' => 'Kapitel-Suchergebnisse',
|
||||
'search_results_book' => 'Buch-Suchergebnisse',
|
||||
'search_clear' => 'Suche zurücksetzen',
|
||||
'search_view_pages' => 'Zeige alle passenden Seiten',
|
||||
'search_view_chapters' => 'Zeige alle passenden Kapitel',
|
||||
'search_view_books' => 'Zeige alle passenden Bücher',
|
||||
'search_no_pages' => 'Es wurden keine passenden Suchergebnisse gefunden',
|
||||
'search_for_term' => 'Suche nach :term',
|
||||
'search_page_for_term' => 'Suche nach :term in Seiten',
|
||||
'search_chapter_for_term' => 'Suche nach :term in Kapiteln',
|
||||
'search_book_for_term' => 'Suche nach :term in Büchern',
|
||||
|
||||
/**
|
||||
* Books
|
||||
*/
|
||||
'book' => 'Buch',
|
||||
'books' => 'Bücher',
|
||||
'books_empty' => 'Es wurden keine Bücher angelegt',
|
||||
'books_popular' => 'Populäre Bücher',
|
||||
'books_recent' => 'Kürzlich genutzte Bücher',
|
||||
'books_popular_empty' => 'Die populärsten Bücher werden hier angezeigt.',
|
||||
'books_create' => 'Neues Buch anlegen',
|
||||
'books_delete' => 'Buch löschen',
|
||||
'books_delete_named' => 'Buch :bookName löschen',
|
||||
'books_delete_explain' => 'Sie möchten das Buch \':bookName\' löschen und alle Seiten und Kapitel entfernen.',
|
||||
'books_delete_confirmation' => 'Sind Sie sicher, dass Sie dieses Buch löschen möchten?',
|
||||
'books_edit' => 'Buch bearbeiten',
|
||||
'books_edit_named' => 'Buch :bookName bearbeiten',
|
||||
'books_form_book_name' => 'Buchname',
|
||||
'books_save' => 'Buch speichern',
|
||||
'books_permissions' => 'Buch-Berechtigungen',
|
||||
'books_permissions_updated' => 'Buch-Berechtigungen aktualisiert',
|
||||
'books_empty_contents' => 'Es sind noch keine Seiten oder Kapitel für dieses Buch angelegt.',
|
||||
'books_empty_create_page' => 'Neue Seite anlegen',
|
||||
'books_empty_or' => 'oder',
|
||||
'books_empty_sort_current_book' => 'Aktuelles Buch sortieren',
|
||||
'books_empty_add_chapter' => 'Neues Kapitel hinzufügen',
|
||||
'books_permissions_active' => 'Buch-Berechtigungen aktiv',
|
||||
'books_search_this' => 'Dieses Buch durchsuchen',
|
||||
'books_navigation' => 'Buch-Navigation',
|
||||
'books_sort' => 'Buchinhalte sortieren',
|
||||
'books_sort_named' => 'Buch :bookName sortieren',
|
||||
'books_sort_show_other' => 'Andere Bücher zeigen',
|
||||
'books_sort_save' => 'Neue Reihenfolge speichern',
|
||||
|
||||
/**
|
||||
* Chapters
|
||||
*/
|
||||
'chapter' => 'Kapitel',
|
||||
'chapters' => 'Kapitel',
|
||||
'chapters_popular' => 'Populäre Kapitel',
|
||||
'chapters_new' => 'Neues Kapitel',
|
||||
'chapters_create' => 'Neues Kapitel anlegen',
|
||||
'chapters_delete' => 'Kapitel entfernen',
|
||||
'chapters_delete_named' => 'Kapitel :chapterName entfernen',
|
||||
'chapters_delete_explain' => 'Sie möchten das Kapitel \':chapterName\' löschen und alle Seiten dem direkten Eltern-Buch hinzugefügen.',
|
||||
'chapters_delete_confirm' => 'Sind Sie sicher, dass Sie dieses Kapitel löschen möchten?',
|
||||
'chapters_edit' => 'Kapitel bearbeiten',
|
||||
'chapters_edit_named' => 'Kapitel :chapterName bearbeiten',
|
||||
'chapters_save' => 'Kapitel speichern',
|
||||
'chapters_move' => 'Kapitel verschieben',
|
||||
'chapters_move_named' => 'Kapitel :chapterName verschieben',
|
||||
'chapter_move_success' => 'Kapitel in das Buch :bookName verschoben.',
|
||||
'chapters_permissions' => 'Kapitel-Berechtigungen',
|
||||
'chapters_empty' => 'Aktuell sind keine Kapitel in diesem Buch angelegt.',
|
||||
'chapters_permissions_active' => 'Kapitel-Berechtigungen aktiv',
|
||||
'chapters_permissions_success' => 'Kapitel-Berechtigungenen aktualisisert',
|
||||
|
||||
/**
|
||||
* Pages
|
||||
*/
|
||||
'page' => 'Seite',
|
||||
'pages' => 'Seiten',
|
||||
'pages_popular' => 'Populäre Seiten',
|
||||
'pages_new' => 'Neue Seite',
|
||||
'pages_attachments' => 'Anhänge',
|
||||
'pages_navigation' => 'Seitennavigation',
|
||||
'pages_delete' => 'Seite löschen',
|
||||
'pages_delete_named' => 'Seite :pageName löschen',
|
||||
'pages_delete_draft_named' => 'Seitenentwurf von :pageName löschen',
|
||||
'pages_delete_draft' => 'Seitenentwurf löschen',
|
||||
'pages_delete_success' => 'Seite gelöscht',
|
||||
'pages_delete_draft_success' => 'Seitenentwurf gelöscht',
|
||||
'pages_delete_confirm' => 'Sind Sie sicher, dass Sie diese Seite löschen möchen?',
|
||||
'pages_delete_draft_confirm' => 'Sind Sie sicher, dass Sie diesen Seitenentwurf löschen möchten?',
|
||||
'pages_editing_named' => 'Seite :pageName bearbeiten',
|
||||
'pages_edit_toggle_header' => 'Toggle header',
|
||||
'pages_edit_save_draft' => 'Entwurf speichern',
|
||||
'pages_edit_draft' => 'Seitenentwurf bearbeiten',
|
||||
'pages_editing_draft' => 'Seitenentwurf bearbeiten',
|
||||
'pages_editing_page' => 'Seite bearbeiten',
|
||||
'pages_edit_draft_save_at' => 'Entwurf gespeichert um ',
|
||||
'pages_edit_delete_draft' => 'Entwurf löschen',
|
||||
'pages_edit_discard_draft' => 'Entwurf verwerfen',
|
||||
'pages_edit_set_changelog' => 'Veränderungshinweis setzen',
|
||||
'pages_edit_enter_changelog_desc' => 'Bitte geben Sie eine kurze Zusammenfassung Ihrer Änderungen ein',
|
||||
'pages_edit_enter_changelog' => 'Veränderungshinweis eingeben',
|
||||
'pages_save' => 'Seite speichern',
|
||||
'pages_title' => 'Seitentitel',
|
||||
'pages_name' => 'Seitenname',
|
||||
'pages_md_editor' => 'Redakteur',
|
||||
'pages_md_preview' => 'Vorschau',
|
||||
'pages_md_insert_image' => 'Bild einfügen',
|
||||
'pages_md_insert_link' => 'Link zu einem Objekt einfügen',
|
||||
'pages_not_in_chapter' => 'Seite ist in keinem Kapitel',
|
||||
'pages_move' => 'Seite verschieben',
|
||||
'pages_move_success' => 'Seite nach ":parentName" verschoben',
|
||||
'pages_permissions' => 'Seiten Berechtigungen',
|
||||
'pages_permissions_success' => 'Seiten Berechtigungen aktualisiert',
|
||||
'pages_revisions' => 'Seitenversionen',
|
||||
'pages_revisions_named' => 'Seitenversionen von :pageName',
|
||||
'pages_revision_named' => 'Seitenversion von :pageName',
|
||||
'pages_revisions_created_by' => 'Angelegt von',
|
||||
'pages_revisions_date' => 'Versionsdatum',
|
||||
'pages_revisions_changelog' => 'Veränderungshinweise',
|
||||
'pages_revisions_changes' => 'Veränderungen',
|
||||
'pages_revisions_current' => 'Aktuelle Version',
|
||||
'pages_revisions_preview' => 'Vorschau',
|
||||
'pages_revisions_restore' => 'Zurück sichern',
|
||||
'pages_revisions_none' => 'Diese Seite hat keine älteren Versionen.',
|
||||
'pages_copy_link' => 'Link kopieren',
|
||||
'pages_permissions_active' => 'Seiten-Berechtigungen aktiv',
|
||||
'pages_initial_revision' => 'Erste Veröffentlichung',
|
||||
'pages_initial_name' => 'Neue Seite',
|
||||
'pages_editing_draft_notification' => 'Sie bearbeiten momenten einen Entwurf, der zuletzt um :timeDiff gespeichert wurde.',
|
||||
'pages_draft_edited_notification' => 'Diese Seite wurde seit diesem Zeitpunkt verändert. Wir empfehlen Ihnen, diesen Entwurf zu verwerfen.',
|
||||
'pages_draft_edit_active' => [
|
||||
'start_a' => ':count Benutzer haben die Bearbeitung dieser Seite begonnen.',
|
||||
'start_b' => ':userName hat die Bearbeitung dieser Seite begonnen.',
|
||||
'time_a' => 'seit die Seiten zuletzt aktualisiert wurden.',
|
||||
'time_b' => 'in den letzten :minCount Minuten',
|
||||
'message' => ':start :time. Achten Sie darauf keine Aktualisierungen von anderen Benutzern zu überschreiben!',
|
||||
],
|
||||
'pages_draft_discarded' => 'Entwurf verworfen. Der aktuelle Seiteninhalt wurde geladen.',
|
||||
|
||||
/**
|
||||
* Editor sidebar
|
||||
*/
|
||||
'page_tags' => 'Seiten-Schlagwörter',
|
||||
'tag' => 'Schlagwort',
|
||||
'tags' => 'Schlagworte',
|
||||
'tag_value' => 'Schlagwortinhalt (Optional)',
|
||||
'tags_explain' => "Fügen Sie Schlagworte hinzu, um Ihren Inhalt zu kategorisieren. \n Sie können einen erklärenden Inhalt hinzufügen, um eine genauere Unterteilung vorzunehmen.",
|
||||
'tags_add' => 'Weiteres Schlagwort hinzufügen',
|
||||
'attachments' => 'Anhänge',
|
||||
'attachments_explain' => 'Sie können auf Ihrer Seite Dateien hochladen oder Links anfügen. Diese werden in der seitlich angezeigt.',
|
||||
'attachments_explain_instant_save' => 'Änderungen werden direkt gespeichert.',
|
||||
'attachments_items' => 'Angefügte Elemente',
|
||||
'attachments_upload' => 'Datei hochladen',
|
||||
'attachments_link' => 'Link anfügen',
|
||||
'attachments_set_link' => 'Link setzen',
|
||||
'attachments_delete_confirm' => 'Klicken Sie erneut auf löschen, um diesen Anhang zu entfernen.',
|
||||
'attachments_dropzone' => 'Ziehen Sie Dateien hier hinein oder klicken Sie hier, um eine Datei auszuwählen',
|
||||
'attachments_no_files' => 'Es wurden bisher keine Dateien hochgeladen.',
|
||||
'attachments_explain_link' => 'Wenn Sie keine Datei hochladen möchten, können Sie stattdessen einen Link anfügen. Dieser Link kann auf eine andere Seite oder zu einer Datei in der Cloud weisen.',
|
||||
'attachments_link_name' => 'Link-Name',
|
||||
'attachment_link' => 'Link zum Anhang',
|
||||
'attachments_link_url' => 'Link zu einer Datei',
|
||||
'attachments_link_url_hint' => 'URL einer Seite oder Datei',
|
||||
'attach' => 'anfügen',
|
||||
'attachments_edit_file' => 'Datei bearbeiten',
|
||||
'attachments_edit_file_name' => 'Dateiname',
|
||||
'attachments_edit_drop_upload' => 'Ziehen Sie Dateien hier hinein, um diese hochzuladen und zu überschreiben',
|
||||
'attachments_order_updated' => 'Reihenfolge der Anhänge aktualisiert',
|
||||
'attachments_updated_success' => 'Anhang-Details aktualisiert',
|
||||
'attachments_deleted' => 'Anhang gelöscht',
|
||||
'attachments_file_uploaded' => 'Datei erfolgrecich hochgeladen',
|
||||
'attachments_file_updated' => 'Datei erfolgreich aktualisisert',
|
||||
'attachments_link_attached' => 'Link erfolgreich der Seite hinzugefügt',
|
||||
|
||||
/**
|
||||
* Profile View
|
||||
*/
|
||||
'profile_user_for_x' => 'Benutzer seit :time',
|
||||
'profile_created_content' => 'Angelegte Inhalte',
|
||||
'profile_not_created_pages' => ':userName hat bisher keine Seiten angelegt.',
|
||||
'profile_not_created_chapters' => ':userName hat bisher keine Kapitel angelegt.',
|
||||
'profile_not_created_books' => ':userName hat bisher keine Bücher angelegt.',
|
||||
];
|
@ -8,5 +8,63 @@ return [
|
||||
|
||||
// Pages
|
||||
'permission' => 'Sie haben keine Berechtigung auf diese Seite zuzugreifen.',
|
||||
'permissionJson' => 'Sie haben keine Berechtigung die angeforderte Aktion auszuführen.'
|
||||
'permissionJson' => 'Sie haben keine Berechtigung die angeforderte Aktion auszuführen.',
|
||||
|
||||
// Auth
|
||||
'error_user_exists_different_creds' => 'Ein Benutzer mit der E-Mail-Adresse :email ist bereits mit anderen Anmeldedaten angelegt.',
|
||||
'email_already_confirmed' => 'Die E-Mail-Adresse ist bereits bestätigt. Bitte melden Sie sich an.',
|
||||
'email_confirmation_invalid' => 'Der Bestätigungs-Token ist nicht gültig oder wurde bereits verwendet. Bitte registrieren Sie sich erneut.',
|
||||
'email_confirmation_expired' => 'Der Bestätigungs-Token ist abgelaufen. Es wurde eine neue Bestätigungs-E-Mail gesendet.',
|
||||
'ldap_fail_anonymous' => 'Anonymer LDAP Zugriff ist fehlgeschlafgen',
|
||||
'ldap_fail_authed' => 'LDAP Zugriff mit DN & Passwort ist fehlgeschlagen',
|
||||
'ldap_extension_not_installed' => 'LDAP PHP Erweiterung ist nicht installiert.',
|
||||
'ldap_cannot_connect' => 'Die Verbindung zu LDAP-Server ist fehlgeschlagen. Beim initialen Verbindungsaufbau trat ein Fehler auf.',
|
||||
'social_no_action_defined' => 'Es ist keine Aktion definiert',
|
||||
'social_account_in_use' => 'Dieses :socialAccount Konto wird bereits verwendet. Bitte melden Sie sich mit dem :socialAccount Konto an.',
|
||||
'social_account_email_in_use' => 'Die E-Mail-Adresse :email ist bereits registriert. Wenn Sie bereits registriert sind, können Sie Ihr :socialAccount Konto in Ihren Profil-Einstellungen verknüpfen.',
|
||||
'social_account_existing' => 'Dieses :socialAccount Konto ist bereits mit Ihrem Profil verknüpft.',
|
||||
'social_account_already_used_existing' => 'Dieses :socialAccount Konto wird bereits durch einen anderen Benutzer verwendet.',
|
||||
'social_account_not_used' => 'Dieses :socialAccount Konto ist bisher keinem Benutzer zugeordnet. Bitte verknüpfen Sie deses in Ihrem Profil-Einstellungen.',
|
||||
'social_account_register_instructions' => 'Wenn Sie bisher keinen Social-Media Konto besitzen können Sie ein solches Konto mit der :socialAccount Option anlegen.',
|
||||
'social_driver_not_found' => 'Social-Media Konto Treiber nicht gefunden',
|
||||
'social_driver_not_configured' => 'Ihr :socialAccount Konto ist nicht korrekt konfiguriert.',
|
||||
|
||||
// System
|
||||
'path_not_writable' => 'Die Datei kann nicht in den angegebenen Pfad :filePath hochgeladen werden. Stellen Sie sicher, dass dieser Ordner auf dem Server beschreibbar ist.',
|
||||
'cannot_get_image_from_url' => 'Bild konnte nicht von der URL :url geladen werden.',
|
||||
'cannot_create_thumbs' => 'Der Server kann keine Vorschau-Bilder erzeugen. Bitte prüfen Sie, ob Sie die GD PHP Erweiterung installiert haben.',
|
||||
'server_upload_limit' => 'Der Server verbietet das Hochladen von Dateien mit dieser Dateigröße. Bitte versuchen Sie es mit einer kleineren Datei.',
|
||||
'image_upload_error' => 'Beim Hochladen des Bildes trat ein Fehler auf.',
|
||||
|
||||
// Attachments
|
||||
'attachment_page_mismatch' => 'Die Seite stimmt nach dem Hochladen des Anhangs nicht überein.',
|
||||
|
||||
// Pages
|
||||
'page_draft_autosave_fail' => 'Fehler beim Speichern des Entwurfs. Stellen Sie sicher, dass Sie mit dem Internet verbunden sind, bevor Sie den Entwurf dieser Seite speichern.',
|
||||
|
||||
// Entities
|
||||
'entity_not_found' => 'Eintrag nicht gefunden',
|
||||
'book_not_found' => 'Buch nicht gefunden',
|
||||
'page_not_found' => 'Seite nicht gefunden',
|
||||
'chapter_not_found' => 'Kapitel nicht gefunden',
|
||||
'selected_book_not_found' => 'Das gewählte Buch wurde nicht gefunden.',
|
||||
'selected_book_chapter_not_found' => 'Das gewählte Buch oder Kapitel wurde nicht gefunden.',
|
||||
'guests_cannot_save_drafts' => 'Gäste können keine Entwürfe speichern',
|
||||
|
||||
// Users
|
||||
'users_cannot_delete_only_admin' => 'Sie können den einzigen Administrator nicht löschen.',
|
||||
'users_cannot_delete_guest' => 'Sie können den Gast-Benutzer nicht löschen',
|
||||
|
||||
// Roles
|
||||
'role_cannot_be_edited' => 'Diese Rolle kann nicht bearbeitet werden.',
|
||||
'role_system_cannot_be_deleted' => 'Dies ist eine Systemrolle und kann nicht gelöscht werden',
|
||||
'role_registration_default_cannot_delete' => 'Diese Rolle kann nicht gelöscht werden solange sie als Standardrolle für neue Registrierungen gesetzt ist',
|
||||
|
||||
// Error pages
|
||||
'404_page_not_found' => 'Seite nicht gefunden',
|
||||
'sorry_page_not_found' => 'Entschuldigung. Die Seite, die Sie angefordert haben wurde nicht gefunden.',
|
||||
'return_home' => 'Zurück zur Startseite',
|
||||
'error_occurred' => 'Es ist ein Fehler aufgetreten',
|
||||
'app_down' => ':appName befindet sich aktuell im Wartungsmodus.',
|
||||
'back_soon' => 'Wir werden so schnell wie möglich wieder online sein.',
|
||||
];
|
||||
|
@ -16,7 +16,7 @@ return [
|
||||
'password' => 'Passörter müssen mindestens sechs Zeichen enthalten und die Wiederholung muss identisch sein.',
|
||||
'user' => "Wir können keinen Benutzer mit dieser E-Mail Adresse finden.",
|
||||
'token' => 'Dieser Passwort-Reset-Token ist ungültig.',
|
||||
'sent' => 'Wir haben ihnen eine E-Mail mit einem Link zum Zurücksetzen des Passworts zugesendet!',
|
||||
'sent' => 'Wir haben Ihnen eine E-Mail mit einem Link zum Zurücksetzen des Passworts zugesendet!',
|
||||
'reset' => 'Ihr Passwort wurde zurückgesetzt!',
|
||||
|
||||
];
|
||||
|
@ -10,14 +10,19 @@ return [
|
||||
|
||||
'settings' => 'Einstellungen',
|
||||
'settings_save' => 'Einstellungen speichern',
|
||||
'settings_save_success' => 'Einstellungen gespeichert',
|
||||
|
||||
/**
|
||||
* App settings
|
||||
*/
|
||||
|
||||
'app_settings' => 'Anwendungseinstellungen',
|
||||
'app_name' => 'Anwendungsname',
|
||||
'app_name_desc' => 'Dieser Name wird im Header und E-Mails angezeigt.',
|
||||
'app_name_desc' => 'Dieser Name wird im Header und in E-Mails angezeigt.',
|
||||
'app_name_header' => 'Anwendungsname im Header anzeigen?',
|
||||
'app_public_viewing' => 'Öffentliche Ansicht erlauben?',
|
||||
'app_secure_images' => 'Erhöhte Sicherheit für Bilduploads aktivieren?',
|
||||
'app_secure_images_desc' => 'Aus Leistungsgründen sind alle Bilder öffentlich sichtbar. Diese Option fügt zufällige, schwer zu eratene, Zeichenketten vor die Bild-URLs hinzu. Stellen sie sicher, dass Verzeichnindexes deaktiviert sind, um einen einfachen Zugrif zu verhindern.',
|
||||
'app_secure_images_desc' => 'Aus Leistungsgründen sind alle Bilder öffentlich sichtbar. Diese Option fügt zufällige, schwer zu eratene, Zeichenketten vor die Bild-URLs hinzu. Stellen sie sicher, dass Verzeichnindexes deaktiviert sind, um einen einfachen Zugriff zu verhindern.',
|
||||
'app_editor' => 'Seiteneditor',
|
||||
'app_editor_desc' => 'Wählen sie den Editor aus, der von allen Benutzern genutzt werden soll, um Seiten zu editieren.',
|
||||
'app_custom_html' => 'Benutzerdefinierter HTML <head> Inhalt',
|
||||
@ -25,15 +30,82 @@ return [
|
||||
'app_logo' => 'Anwendungslogo',
|
||||
'app_logo_desc' => 'Dieses Bild sollte 43px hoch sein. <br>Größere Bilder werden verkleinert.',
|
||||
'app_primary_color' => 'Primäre Anwendungsfarbe',
|
||||
'app_primary_color_desc' => 'Dies sollte ein HEX Wert sein. <br>Leer lassen des Feldes setzt auf die Standard-Anwendungsfarbe zurück.',
|
||||
'app_primary_color_desc' => 'Dies sollte ein HEX Wert sein. <br>Wenn Sie nicht eingeben, wird die Anwendung auf die Standardfarbe zurückgesetzt.',
|
||||
|
||||
/**
|
||||
* Registration settings
|
||||
*/
|
||||
|
||||
'reg_settings' => 'Registrierungseinstellungen',
|
||||
'reg_allow' => 'Registrierung erlauben?',
|
||||
'reg_default_role' => 'Standard-Benutzerrolle nach Registrierung',
|
||||
'reg_confirm_email' => 'Bestätigung per E-Mail erforderlich?',
|
||||
'reg_confirm_email_desc' => 'Falls die Einschränkung für; Domains genutzt wird, ist die Bestätigung per E-Mail zwingend erforderlich und der untenstehende Wert wird ignoriert.',
|
||||
'reg_confirm_email_desc' => 'Falls die Einschränkung für Domains genutzt wird, ist die Bestätigung per E-Mail zwingend erforderlich und der untenstehende Wert wird ignoriert.',
|
||||
'reg_confirm_restrict_domain' => 'Registrierung auf bestimmte Domains einschränken',
|
||||
'reg_confirm_restrict_domain_desc' => 'Fügen sie eine, durch Komma getrennte, Liste von E-Mail Domains hinzu, auf die die Registrierung eingeschränkt werden soll. Benutzern wird eine E-Mail gesendet, um ihre E-Mail Adresse zu bestätigen, bevor sie diese Anwendung nutzen können. <br> Hinweis: Benutzer können ihre E-Mail Adresse nach erfolgreicher Registrierung ändern.',
|
||||
'reg_confirm_restrict_domain_placeholder' => 'Keine Einschränkung gesetzt',
|
||||
|
||||
/**
|
||||
* Role settings
|
||||
*/
|
||||
|
||||
'roles' => 'Rollen',
|
||||
'role_user_roles' => 'Benutzer-Rollen',
|
||||
'role_create' => 'Neue Rolle anlegen',
|
||||
'role_create_success' => 'Rolle erfolgreich angelegt',
|
||||
'role_delete' => 'Rolle löschen',
|
||||
'role_delete_confirm' => 'Sie möchten die Rolle \':roleName\' löschen.',
|
||||
'role_delete_users_assigned' => 'Diese Rolle ist :userCount Benutzern zugeordnet. Sie können unten eine neue Rolle auswählen, die Sie diesen Benutzern zuordnen möchten.',
|
||||
'role_delete_no_migration' => "Den Benutzern keine andere Rolle zuordnen",
|
||||
'role_delete_sure' => 'Sind Sie sicher, dass Sie diese Rolle löschen möchten?',
|
||||
'role_delete_success' => 'Rolle erfolgreich gelöscht',
|
||||
'role_edit' => 'Rolle bearbeiten',
|
||||
'role_details' => 'Rollen-Details',
|
||||
'role_name' => 'Rollenname',
|
||||
'role_desc' => 'Kurzbeschreibung der Rolle',
|
||||
'role_system' => 'System-Berechtigungen',
|
||||
'role_manage_users' => 'Benutzer verwalten',
|
||||
'role_manage_roles' => 'Rollen & Rollen-Berechtigungen verwalten',
|
||||
'role_manage_entity_permissions' => 'Alle Buch-, Kapitel und Seiten-Berechtigungen verwalten',
|
||||
'role_manage_own_entity_permissions' => 'Nur Berechtigungen eigener Bücher, Kapitel und Seiten verwalten',
|
||||
'role_manage_settings' => 'Globaleinstellungen verwalrten',
|
||||
'role_asset' => 'Berechtigungen',
|
||||
'role_asset_desc' => 'Diese Berechtigungen gelten für den Standard-Zugriff innerhalb des Systems. Berechtigungen für Bücher, Kapitel und Seiten überschreiben diese Berechtigungenen.',
|
||||
'role_all' => 'Alle',
|
||||
'role_own' => 'Eigene',
|
||||
'role_controlled_by_asset' => 'Controlled by the asset they are uploaded to',
|
||||
'role_save' => 'Rolle speichern',
|
||||
'role_update_success' => 'Rolle erfolgreich gespeichert',
|
||||
'role_users' => 'Dieser Rolle zugeordnete Benutzer',
|
||||
'role_users_none' => 'Bisher sind dieser Rolle keiner Benutzer zugeordnet,',
|
||||
|
||||
/**
|
||||
* Users
|
||||
*/
|
||||
|
||||
'users' => 'Benutzer',
|
||||
'user_profile' => 'Benutzerprofil',
|
||||
'users_add_new' => 'Benutzer hinzufügen',
|
||||
'users_search' => 'Benutzer suchen',
|
||||
'users_role' => 'Benutzerrollen',
|
||||
'users_external_auth_id' => 'Externe Authentifizierungs-ID',
|
||||
'users_password_warning' => 'Füllen Sie die folgenden Felder nur aus, wenn Sie Ihr Passwort ändern möchten:',
|
||||
'users_system_public' => 'Dieser Benutzer repräsentiert alle Gast-Benutzer, die diese Seite betrachten. Er kann nicht zum Anmelden benutzt werden, sondern wird automatisch zugeordnet.',
|
||||
'users_delete' => 'Benutzer löschen',
|
||||
'users_delete_named' => 'Benutzer :userName löschen',
|
||||
'users_delete_warning' => 'Sie möchten den Benutzer \':userName\' gänzlich aus dem System löschen.',
|
||||
'users_delete_confirm' => 'Sind Sie sicher, dass Sie diesen Benutzer löschen möchten?',
|
||||
'users_delete_success' => 'Benutzer erfolgreich gelöscht.',
|
||||
'users_edit' => 'Benutzer bearbeiten',
|
||||
'users_edit_profile' => 'Profil bearbeiten',
|
||||
'users_edit_success' => 'Benutzer erfolgreich aktualisisert',
|
||||
'users_avatar' => 'Benutzer-Bild',
|
||||
'users_avatar_desc' => 'Dieses Bild sollte einen Durchmesser von ca. 256px haben.',
|
||||
'users_preferred_language' => 'Bevorzugte Sprache',
|
||||
'users_social_accounts' => 'Social-Media Konten',
|
||||
'users_social_accounts_info' => 'Hier können Sie andere Social-Media Konten für eine schnellere und einfachere Anmeldung verknüpfen. Wenn Sie ein Social-Media Konto hier lösen, bleibt der Zugriff erhalteb. Entfernen Sie in diesem Falle die Berechtigung in Ihren Profil-Einstellungen des verknüpften Social-Media Kontos.',
|
||||
'users_social_connect' => 'Social-Media Konto verknüpfen',
|
||||
'users_social_disconnect' => 'Social-Media Kontoverknüpfung lösen',
|
||||
'users_social_connected' => ':socialAccount Konto wurde erfolgreich mit dem Profil verknüpft.',
|
||||
'users_social_disconnected' => ':socialAccount Konto wurde erfolgreich vom Profil gelöst.',
|
||||
];
|
||||
|
@ -18,6 +18,8 @@ return [
|
||||
*/
|
||||
'sign_up' => 'Sign up',
|
||||
'log_in' => 'Log in',
|
||||
'log_in_with' => 'Login with :socialDriver',
|
||||
'sign_up_with' => 'Sign up with :socialDriver',
|
||||
'logout' => 'Logout',
|
||||
|
||||
'name' => 'Name',
|
||||
|
@ -26,6 +26,10 @@ return [
|
||||
'no_pages_viewed' => 'You have not viewed any pages',
|
||||
'no_pages_recently_created' => 'No pages have been recently created',
|
||||
'no_pages_recently_updated' => 'No pages have been recently updated',
|
||||
'export' => 'Export',
|
||||
'export_html' => 'Contained Web File',
|
||||
'export_pdf' => 'PDF File',
|
||||
'export_text' => 'Plain Text File',
|
||||
|
||||
/**
|
||||
* Permissions and restrictions
|
||||
@ -161,10 +165,6 @@ return [
|
||||
'pages_revisions_preview' => 'Preview',
|
||||
'pages_revisions_restore' => 'Restore',
|
||||
'pages_revisions_none' => 'This page has no revisions',
|
||||
'pages_export' => 'Export',
|
||||
'pages_export_html' => 'Contained Web File',
|
||||
'pages_export_pdf' => 'PDF File',
|
||||
'pages_export_text' => 'Plain Text File',
|
||||
'pages_copy_link' => 'Copy Link',
|
||||
'pages_permissions_active' => 'Page Permissions Active',
|
||||
'pages_initial_revision' => 'Initial publish',
|
||||
|
@ -116,8 +116,10 @@ return [
|
||||
'language_select' => [
|
||||
'en' => 'English',
|
||||
'de' => 'Deutsch',
|
||||
'es' => 'Español',
|
||||
'fr' => 'Français',
|
||||
'pt_BR' => 'Português do Brasil'
|
||||
'nl' => 'Nederlands',
|
||||
'pt_BR' => 'Português do Brasil',
|
||||
]
|
||||
///////////////////////////////////
|
||||
];
|
||||
|
40
resources/lang/es/activities.php
Normal file
40
resources/lang/es/activities.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/**
|
||||
* Activity text strings.
|
||||
* Is used for all the text within activity logs & notifications.
|
||||
*/
|
||||
|
||||
// Pages
|
||||
'page_create' => 'página creada',
|
||||
'page_create_notification' => 'Página creada exitosamente',
|
||||
'page_update' => 'página actualizada',
|
||||
'page_update_notification' => 'Página actualizada exitosamente',
|
||||
'page_delete' => 'página borrada',
|
||||
'page_delete_notification' => 'Página borrada exitosamente',
|
||||
'page_restore' => 'página restaurada',
|
||||
'page_restore_notification' => 'Página restaurada exitosamente',
|
||||
'page_move' => 'página movida',
|
||||
|
||||
// Chapters
|
||||
'chapter_create' => 'capítulo creado',
|
||||
'chapter_create_notification' => 'Capítulo creado exitosamente',
|
||||
'chapter_update' => 'capítulo actualizado',
|
||||
'chapter_update_notification' => 'Capítulo actualizado exitosamente',
|
||||
'chapter_delete' => 'capítulo borrado',
|
||||
'chapter_delete_notification' => 'Capítulo borrado exitosamente',
|
||||
'chapter_move' => 'capítulo movido',
|
||||
|
||||
// Books
|
||||
'book_create' => 'libro creado',
|
||||
'book_create_notification' => 'Libro creado exitosamente',
|
||||
'book_update' => 'libro actualizado',
|
||||
'book_update_notification' => 'Libro actualizado exitosamente',
|
||||
'book_delete' => 'libro borrado',
|
||||
'book_delete_notification' => 'Libro borrado exitosamente',
|
||||
'book_sort' => 'libro ordenado',
|
||||
'book_sort_notification' => 'Libro re-ordenado exitosamente',
|
||||
|
||||
];
|
74
resources/lang/es/auth.php
Normal file
74
resources/lang/es/auth.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used during authentication for various
|
||||
| messages that we need to display to the user. You are free to modify
|
||||
| these language lines according to your application's requirements.
|
||||
|
|
||||
*/
|
||||
'failed' => 'Las credenciales no concuerdan con nuestros registros.',
|
||||
'throttle' => 'Demasiados intentos fallidos de conexiÃn. Por favor intente nuevamente en :seconds segundos.',
|
||||
|
||||
/**
|
||||
* Login & Register
|
||||
*/
|
||||
'sign_up' => 'Inscribete',
|
||||
'log_in' => 'Log in',
|
||||
'logout' => 'Logout',
|
||||
|
||||
'name' => 'Nombre',
|
||||
'username' => 'Username',
|
||||
'email' => 'Email',
|
||||
'password' => 'Password',
|
||||
'password_confirm' => 'Confirmar Password',
|
||||
'password_hint' => 'Debe contener al menos 5 caracteres',
|
||||
'forgot_password' => 'Olvidó Password?',
|
||||
'remember_me' => 'Recordarme',
|
||||
'ldap_email_hint' => 'Por favor introduzca un mail para utilizar con esta cuenta.',
|
||||
'create_account' => 'Crear una cuenta',
|
||||
'social_login' => 'Login Social',
|
||||
'social_registration' => 'Registro Social',
|
||||
'social_registration_text' => 'Registrar y entrar utilizando otro servicio.',
|
||||
|
||||
'register_thanks' => 'Gracias por registrarse!',
|
||||
'register_confirm' => 'Por favor chequee su email y haga clic en el botón de confirmación enviado para acceder a :appName.',
|
||||
'registrations_disabled' => 'Los registros están deshabilitados actualmente',
|
||||
'registration_email_domain_invalid' => 'Este dominio de Email no tiene acceso a esta aplicación',
|
||||
'register_success' => 'Gracias por registrarse! Ahora se encuentra registrado y logueado.',
|
||||
|
||||
|
||||
/**
|
||||
* Password Reset
|
||||
*/
|
||||
'reset_password' => 'Reset Password',
|
||||
'reset_password_send_instructions' => 'Introduzca su email a continuación y le será enviado un correo con un link para la restauración',
|
||||
'reset_password_send_button' => 'Enviar Link de Reset',
|
||||
'reset_password_sent_success' => 'Un link para resetear password ha sido enviado a :email.',
|
||||
'reset_password_success' => 'Su password ha sido reiniciado de manera éxitosa.',
|
||||
|
||||
'email_reset_subject' => 'Reset de su password de :appName',
|
||||
'email_reset_text' => 'Ud. esta recibiendo este email debido a que recibimos una solicitud de reset de password de su cuenta.',
|
||||
'email_reset_not_requested' => 'Si ud. no solicitó un reset de password, no es requerida ninguna acción.',
|
||||
|
||||
|
||||
/**
|
||||
* Email Confirmation
|
||||
*/
|
||||
'email_confirm_subject' => 'Confirme su email en :appName',
|
||||
'email_confirm_greeting' => 'Gracias por unirse a :appName!',
|
||||
'email_confirm_text' => 'Por favor confirme su dirección de email haciendo click en el siguiente botón:',
|
||||
'email_confirm_action' => 'Confirmar Email',
|
||||
'email_confirm_send_error' => 'Confirmation de email requerida pero el sistema no pudo enviar el mail. Contacte al administrador para asegurarse que el email está seteado correctamente.',
|
||||
'email_confirm_success' => 'Su email hasido confirmado!',
|
||||
'email_confirm_resent' => 'Email de confirmación reenviado, Por favor chequee su Inbox.',
|
||||
|
||||
'email_not_confirmed' => 'Dirección de email no confirmada',
|
||||
'email_not_confirmed_text' => 'Su cuenta de email todavÃa no ha sido confirmada.',
|
||||
'email_not_confirmed_click_link' => 'Por favor chequee el email con el link de confirmación que ha sido enviado luego de registrarse.',
|
||||
'email_not_confirmed_resend' => 'Si no puede encontrar el email, puede solicitar el renvÃo del email de confirmación rellenando el formulario a continuación.',
|
||||
'email_not_confirmed_resend_button' => 'Reenviar Email de confirmación',
|
||||
];
|
58
resources/lang/es/common.php
Normal file
58
resources/lang/es/common.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
return [
|
||||
|
||||
/**
|
||||
* Buttons
|
||||
*/
|
||||
'cancel' => 'Cancelar',
|
||||
'confirm' => 'Confirmar',
|
||||
'back' => 'Atrás',
|
||||
'save' => 'Guardar',
|
||||
'continue' => 'Continuar',
|
||||
'select' => 'Seleccionar',
|
||||
|
||||
/**
|
||||
* Form Labels
|
||||
*/
|
||||
'name' => 'Nombre',
|
||||
'description' => 'Descripción',
|
||||
'role' => 'Rol',
|
||||
|
||||
/**
|
||||
* Actions
|
||||
*/
|
||||
'actions' => 'Acciones',
|
||||
'view' => 'Ver',
|
||||
'create' => 'Crear',
|
||||
'update' => 'Actualizar',
|
||||
'edit' => 'Editar',
|
||||
'sort' => 'Ordenar',
|
||||
'move' => 'Mover',
|
||||
'delete' => 'Borrar',
|
||||
'search' => 'Buscar',
|
||||
'search_clear' => 'Limpiar búsqueda',
|
||||
'reset' => 'Reset',
|
||||
'remove' => 'Remover',
|
||||
|
||||
|
||||
/**
|
||||
* Misc
|
||||
*/
|
||||
'deleted_user' => 'Usuario borrado',
|
||||
'no_activity' => 'Ninguna actividad para mostrar',
|
||||
'no_items' => 'No hay items disponibles',
|
||||
'back_to_top' => 'Volver arriba',
|
||||
'toggle_details' => 'Alternar detalles',
|
||||
|
||||
/**
|
||||
* Header
|
||||
*/
|
||||
'view_profile' => 'Ver Perfil',
|
||||
'edit_profile' => 'Editar Perfil',
|
||||
|
||||
/**
|
||||
* Email Content
|
||||
*/
|
||||
'email_action_help' => 'Si está teniendo problemas haga click en el botón ":actionText", copie y pegue la siguiente URL en su navegador web:',
|
||||
'email_rights' => 'Todos los derechos reservados',
|
||||
];
|
24
resources/lang/es/components.php
Normal file
24
resources/lang/es/components.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
return [
|
||||
|
||||
/**
|
||||
* Image Manager
|
||||
*/
|
||||
'image_select' => 'Seleccionar Imagen',
|
||||
'image_all' => 'Todo',
|
||||
'image_all_title' => 'Ver todas las imágenes',
|
||||
'image_book_title' => 'Ver las imágenes subidas a este libro',
|
||||
'image_page_title' => 'Ver las imágenes subidas a esta página',
|
||||
'image_search_hint' => 'Buscar por nombre de imagen',
|
||||
'image_uploaded' => 'Subido el :uploadedDate',
|
||||
'image_load_more' => 'Cargar más',
|
||||
'image_image_name' => 'Nombre de imagen',
|
||||
'image_delete_confirm' => 'Esta imagen esta siendo utilizada en las páginas a continuación, haga click de nuevo para confirmar que quiere borrar esta imagen.',
|
||||
'image_select_image' => 'Seleccionar Imagen',
|
||||
'image_dropzone' => 'Arrastre las imágenes o hacer click aquí para Subir',
|
||||
'images_deleted' => 'Imágenes borradas',
|
||||
'image_preview' => 'Preview de la imagen',
|
||||
'image_upload_success' => 'Imagen subida exitosamente',
|
||||
'image_update_success' => 'Detalles de la imagen actualizados exitosamente',
|
||||
'image_delete_success' => 'Imagen borrada exitosamente'
|
||||
];
|
226
resources/lang/es/entities.php
Normal file
226
resources/lang/es/entities.php
Normal file
@ -0,0 +1,226 @@
|
||||
<?php
|
||||
return [
|
||||
|
||||
/**
|
||||
* Shared
|
||||
*/
|
||||
'recently_created' => 'Recientemente creadod',
|
||||
'recently_created_pages' => 'Páginas recientemente creadas',
|
||||
'recently_updated_pages' => 'Páginas recientemente actualizadas',
|
||||
'recently_created_chapters' => 'Capítulos recientemente creados',
|
||||
'recently_created_books' => 'Libros recientemente creados',
|
||||
'recently_update' => 'Recientemente actualizado',
|
||||
'recently_viewed' => 'Recientemente visto',
|
||||
'recent_activity' => 'Actividad reciente',
|
||||
'create_now' => 'Crear uno ahora',
|
||||
'revisions' => 'Revisiones',
|
||||
'meta_created' => 'Creado el :timeLength',
|
||||
'meta_created_name' => 'Creado el :timeLength por :user',
|
||||
'meta_updated' => 'Actualizado el :timeLength',
|
||||
'meta_updated_name' => 'Actualizado el :timeLength por :user',
|
||||
'x_pages' => ':count Páginas',
|
||||
'entity_select' => 'Seleccione entidad',
|
||||
'images' => 'Imágenes',
|
||||
'my_recent_drafts' => 'Mis borradores recientes',
|
||||
'my_recently_viewed' => 'Mis visualizaciones recientes',
|
||||
'no_pages_viewed' => 'Ud. no ha visto ninguna página',
|
||||
'no_pages_recently_created' => 'Ninguna página ha sido creada recientemente',
|
||||
'no_pages_recently_updated' => 'Ninguna página ha sido actualizada recientemente',
|
||||
'export' => 'Export',
|
||||
'export_html' => 'Contained Web File',
|
||||
'export_pdf' => 'PDF File',
|
||||
'export_text' => 'Plain Text File',
|
||||
|
||||
/**
|
||||
* Permissions and restrictions
|
||||
*/
|
||||
'permissions' => 'Permisos',
|
||||
'permissions_intro' => 'una vez habilitado, Estos permisos tendrán prioridad por encima de cualquier permiso establecido.',
|
||||
'permissions_enable' => 'Habilitar permisos custom',
|
||||
'permissions_save' => 'Guardar permisos',
|
||||
|
||||
/**
|
||||
* Search
|
||||
*/
|
||||
'search_results' => 'Buscar resultados',
|
||||
'search_results_page' => 'resultados de búsqueda en página',
|
||||
'search_results_chapter' => 'Resultados de búsqueda en capítulo ',
|
||||
'search_results_book' => 'Resultados de búsqueda en libro',
|
||||
'search_clear' => 'Limpiar resultados',
|
||||
'search_view_pages' => 'Ver todas las páginas que concuerdan',
|
||||
'search_view_chapters' => 'Ver todos los capítulos que concuerdan',
|
||||
'search_view_books' => 'Ver todos los libros que concuerdan',
|
||||
'search_no_pages' => 'Ninguna página encontrada para la búsqueda',
|
||||
'search_for_term' => 'Busqueda por :term',
|
||||
'search_page_for_term' => 'Búsqueda de página por :term',
|
||||
'search_chapter_for_term' => 'Búsqueda por capítulo de :term',
|
||||
'search_book_for_term' => 'Búsqueda en libro de :term',
|
||||
|
||||
/**
|
||||
* Books
|
||||
*/
|
||||
'book' => 'Libro',
|
||||
'books' => 'Libros',
|
||||
'books_empty' => 'No hay libros creados',
|
||||
'books_popular' => 'Libros populares',
|
||||
'books_recent' => 'Libros recientes',
|
||||
'books_popular_empty' => 'Los libros más populares aparecerán aquí.',
|
||||
'books_create' => 'Crear nuevo libro',
|
||||
'books_delete' => 'Borrar libro',
|
||||
'books_delete_named' => 'Borrar libro :bookName',
|
||||
'books_delete_explain' => 'Esto borrará el libro con el nombre \':bookName\', Todos las páginas y capítulos serán removios.',
|
||||
'books_delete_confirmation' => '¿Está seguro de que desea borrar este libro?',
|
||||
'books_edit' => 'Editar Libro',
|
||||
'books_edit_named' => 'Editar Libro :bookName',
|
||||
'books_form_book_name' => 'Nombre de libro',
|
||||
'books_save' => 'Guardar libro',
|
||||
'books_permissions' => 'permisos de libro',
|
||||
'books_permissions_updated' => 'Permisos de libro actualizados',
|
||||
'books_empty_contents' => 'Ninguna página o capítulo ha sido creada para este libro.',
|
||||
'books_empty_create_page' => 'Crear una nueva página',
|
||||
'books_empty_or' => 'ó',
|
||||
'books_empty_sort_current_book' => 'Organizar el libro actual',
|
||||
'books_empty_add_chapter' => 'Agregar un capítulo',
|
||||
'books_permissions_active' => 'Permisos de libro activados',
|
||||
'books_search_this' => 'Buscar en este libro',
|
||||
'books_navigation' => 'Navegación de libro',
|
||||
'books_sort' => 'Organizar contenido de libro',
|
||||
'books_sort_named' => 'Organizar libro :bookName',
|
||||
'books_sort_show_other' => 'Mostrar otros libros',
|
||||
'books_sort_save' => 'Guardar nuevo orden',
|
||||
|
||||
/**
|
||||
* Chapters
|
||||
*/
|
||||
'chapter' => 'Capítulo',
|
||||
'chapters' => 'Capítulos',
|
||||
'chapters_popular' => 'Capítulos populares',
|
||||
'chapters_new' => 'Nuevo capítulo',
|
||||
'chapters_create' => 'Crear nuevo capítulo',
|
||||
'chapters_delete' => 'Borrar capítulo',
|
||||
'chapters_delete_named' => 'Borrar capítulo :chapterName',
|
||||
'chapters_delete_explain' => 'Esto borrará el caítulo con el nombre \':chapterName\', todas las páginas serán removidas
|
||||
y agregadas directamente al libro padre.',
|
||||
'chapters_delete_confirm' => 'Está ud. seguro de borrar este capítulo?',
|
||||
'chapters_edit' => 'Editar capítulo',
|
||||
'chapters_edit_named' => 'Editar capítulo :chapterName',
|
||||
'chapters_save' => 'Guardar capítulo',
|
||||
'chapters_move' => 'Mover capítulo',
|
||||
'chapters_move_named' => 'Mover Capítulo :chapterName',
|
||||
'chapter_move_success' => 'Capítulo movido a :bookName',
|
||||
'chapters_permissions' => 'Permisos de capítulo',
|
||||
'chapters_empty' => 'No existen páginas en este capítulo.',
|
||||
'chapters_permissions_active' => 'Permisos de capítulo activado',
|
||||
'chapters_permissions_success' => 'Permisos de capítulo actualizados',
|
||||
|
||||
/**
|
||||
* Pages
|
||||
*/
|
||||
'page' => 'Página',
|
||||
'pages' => 'Páginas',
|
||||
'pages_popular' => 'Páginas populares',
|
||||
'pages_new' => 'Nueva página',
|
||||
'pages_attachments' => 'Adjuntos',
|
||||
'pages_navigation' => 'Navegación de página',
|
||||
'pages_delete' => 'Borrar página',
|
||||
'pages_delete_named' => 'Borrar página :pageName',
|
||||
'pages_delete_draft_named' => 'Borrar borrador de página :pageName',
|
||||
'pages_delete_draft' => 'Borrar borrador de página',
|
||||
'pages_delete_success' => 'Página borrada',
|
||||
'pages_delete_draft_success' => 'Borrador de página borrado',
|
||||
'pages_delete_confirm' => 'Está ud. seguro de borrar esta página ?',
|
||||
'pages_delete_draft_confirm' => 'Está ud. seguro de que desea borrar este borrador de página?',
|
||||
'pages_editing_named' => 'Editando página :pageName',
|
||||
'pages_edit_toggle_header' => 'Toggle Título',
|
||||
'pages_edit_save_draft' => 'Guardar borrador',
|
||||
'pages_edit_draft' => 'Editar borrador de página',
|
||||
'pages_editing_draft' => 'Editando borrador',
|
||||
'pages_editing_page' => 'Editando página',
|
||||
'pages_edit_draft_save_at' => 'Borrador guardado el ',
|
||||
'pages_edit_delete_draft' => 'Borrar borrador',
|
||||
'pages_edit_discard_draft' => 'Descartar borrador',
|
||||
'pages_edit_set_changelog' => 'Set Changelog',
|
||||
'pages_edit_enter_changelog_desc' => 'Introduzca una breve descripción de los cambios que ha realizado',
|
||||
'pages_edit_enter_changelog' => 'Entrar en Changelog',
|
||||
'pages_save' => 'Guardar página',
|
||||
'pages_title' => 'Título de página',
|
||||
'pages_name' => 'Nombre de página',
|
||||
'pages_md_editor' => 'Editor',
|
||||
'pages_md_preview' => 'Preview',
|
||||
'pages_md_insert_image' => 'Insertar Imagen',
|
||||
'pages_md_insert_link' => 'Insert Entity Link',
|
||||
'pages_not_in_chapter' => 'Page is not in a chapter',
|
||||
'pages_move' => 'Move Page',
|
||||
'pages_move_success' => 'Page moved to ":parentName"',
|
||||
'pages_permissions' => 'Page Permissions',
|
||||
'pages_permissions_success' => 'Page permissions updated',
|
||||
'pages_revisions' => 'Page Revisions',
|
||||
'pages_revisions_named' => 'Page Revisions for :pageName',
|
||||
'pages_revision_named' => 'Page Revision for :pageName',
|
||||
'pages_revisions_created_by' => 'Created By',
|
||||
'pages_revisions_date' => 'Revision Date',
|
||||
'pages_revisions_changelog' => 'Changelog',
|
||||
'pages_revisions_changes' => 'Changes',
|
||||
'pages_revisions_current' => 'Current Version',
|
||||
'pages_revisions_preview' => 'Preview',
|
||||
'pages_revisions_restore' => 'Restore',
|
||||
'pages_revisions_none' => 'This page has no revisions',
|
||||
'pages_copy_link' => 'Copy Link',
|
||||
'pages_permissions_active' => 'Page Permissions Active',
|
||||
'pages_initial_revision' => 'Initial publish',
|
||||
'pages_initial_name' => 'New Page',
|
||||
'pages_editing_draft_notification' => 'You are currently editing a draft that was last saved :timeDiff.',
|
||||
'pages_draft_edited_notification' => 'This page has been updated by since that time. It is recommended that you discard this draft.',
|
||||
'pages_draft_edit_active' => [
|
||||
'start_a' => ':count users have started editing this page',
|
||||
'start_b' => ':userName has started editing this page',
|
||||
'time_a' => 'since the pages was last updated',
|
||||
'time_b' => 'in the last :minCount minutes',
|
||||
'message' => ':start :time. Take care not to overwrite each other\'s updates!',
|
||||
],
|
||||
'pages_draft_discarded' => 'Draft discarded, The editor has been updated with the current page content',
|
||||
|
||||
/**
|
||||
* Editor sidebar
|
||||
*/
|
||||
'page_tags' => 'Page Tags',
|
||||
'tag' => 'Tag',
|
||||
'tags' => '',
|
||||
'tag_value' => 'Tag Value (Optional)',
|
||||
'tags_explain' => "Add some tags to better categorise your content. \n You can assign a value to a tag for more in-depth organisation.",
|
||||
'tags_add' => 'Add another tag',
|
||||
'attachments' => 'Attachments',
|
||||
'attachments_explain' => 'Upload some files or attach some link to display on your page. These are visible in the page sidebar.',
|
||||
'attachments_explain_instant_save' => 'Changes here are saved instantly.',
|
||||
'attachments_items' => 'Attached Items',
|
||||
'attachments_upload' => 'Upload File',
|
||||
'attachments_link' => 'Attach Link',
|
||||
'attachments_set_link' => 'Set Link',
|
||||
'attachments_delete_confirm' => 'Click delete again to confirm you want to delete this attachment.',
|
||||
'attachments_dropzone' => 'Drop files or click here to attach a file',
|
||||
'attachments_no_files' => 'No files have been uploaded',
|
||||
'attachments_explain_link' => 'You can attach a link if you\'d prefer not to upload a file. This can be a link to another page or a link to a file in the cloud.',
|
||||
'attachments_link_name' => 'Link Name',
|
||||
'attachment_link' => 'Attachment link',
|
||||
'attachments_link_url' => 'Link to file',
|
||||
'attachments_link_url_hint' => 'Url of site or file',
|
||||
'attach' => 'Attach',
|
||||
'attachments_edit_file' => 'Edit File',
|
||||
'attachments_edit_file_name' => 'File Name',
|
||||
'attachments_edit_drop_upload' => 'Drop files or click here to upload and overwrite',
|
||||
'attachments_order_updated' => 'Attachment order updated',
|
||||
'attachments_updated_success' => 'Attachment details updated',
|
||||
'attachments_deleted' => 'Attachment deleted',
|
||||
'attachments_file_uploaded' => 'File successfully uploaded',
|
||||
'attachments_file_updated' => 'File successfully updated',
|
||||
'attachments_link_attached' => 'Link successfully attached to page',
|
||||
|
||||
/**
|
||||
* Profile View
|
||||
*/
|
||||
'profile_user_for_x' => 'User for :time',
|
||||
'profile_created_content' => 'Created Content',
|
||||
'profile_not_created_pages' => ':userName has not created any pages',
|
||||
'profile_not_created_chapters' => ':userName has not created any chapters',
|
||||
'profile_not_created_books' => ':userName has not created any books',
|
||||
];
|
70
resources/lang/es/errors.php
Normal file
70
resources/lang/es/errors.php
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/**
|
||||
* Error text strings.
|
||||
*/
|
||||
|
||||
// Permissions
|
||||
'permission' => 'You do not have permission to access the requested page.',
|
||||
'permissionJson' => 'You do not have permission to perform the requested action.',
|
||||
|
||||
// Auth
|
||||
'error_user_exists_different_creds' => 'A user with the email :email already exists but with different credentials.',
|
||||
'email_already_confirmed' => 'Email has already been confirmed, Try logging in.',
|
||||
'email_confirmation_invalid' => 'This confirmation token is not valid or has already been used, Please try registering again.',
|
||||
'email_confirmation_expired' => 'The confirmation token has expired, A new confirmation email has been sent.',
|
||||
'ldap_fail_anonymous' => 'LDAP access failed using anonymous bind',
|
||||
'ldap_fail_authed' => 'LDAP access failed using given dn & password details',
|
||||
'ldap_extension_not_installed' => 'LDAP PHP extension not installed',
|
||||
'ldap_cannot_connect' => 'Cannot connect to ldap server, Initial connection failed',
|
||||
'social_no_action_defined' => 'No action defined',
|
||||
'social_account_in_use' => 'This :socialAccount account is already in use, Try logging in via the :socialAccount option.',
|
||||
'social_account_email_in_use' => 'The email :email is already in use. If you already have an account you can connect your :socialAccount account from your profile settings.',
|
||||
'social_account_existing' => 'This :socialAccount is already attached to your profile.',
|
||||
'social_account_already_used_existing' => 'This :socialAccount account is already used by another user.',
|
||||
'social_account_not_used' => 'This :socialAccount account is not linked to any users. Please attach it in your profile settings. ',
|
||||
'social_account_register_instructions' => 'If you do not yet have an account, You can register an account using the :socialAccount option.',
|
||||
'social_driver_not_found' => 'Social driver not found',
|
||||
'social_driver_not_configured' => 'Your :socialAccount social settings are not configured correctly.',
|
||||
|
||||
// System
|
||||
'path_not_writable' => 'File path :filePath could not be uploaded to. Ensure it is writable to the server.',
|
||||
'cannot_get_image_from_url' => 'Cannot get image from :url',
|
||||
'cannot_create_thumbs' => 'The server cannot create thumbnails. Please check you have the GD PHP extension installed.',
|
||||
'server_upload_limit' => 'The server does not allow uploads of this size. Please try a smaller file size.',
|
||||
'image_upload_error' => 'An error occurred uploading the image',
|
||||
|
||||
// Attachments
|
||||
'attachment_page_mismatch' => 'Page mismatch during attachment update',
|
||||
|
||||
// Pages
|
||||
'page_draft_autosave_fail' => 'Failed to save draft. Ensure you have internet connection before saving this page',
|
||||
|
||||
// Entities
|
||||
'entity_not_found' => 'Entity not found',
|
||||
'book_not_found' => 'Book not found',
|
||||
'page_not_found' => 'Page not found',
|
||||
'chapter_not_found' => 'Chapter not found',
|
||||
'selected_book_not_found' => 'The selected book was not found',
|
||||
'selected_book_chapter_not_found' => 'The selected Book or Chapter was not found',
|
||||
'guests_cannot_save_drafts' => 'Guests cannot save drafts',
|
||||
|
||||
// Users
|
||||
'users_cannot_delete_only_admin' => 'You cannot delete the only admin',
|
||||
'users_cannot_delete_guest' => 'You cannot delete the guest user',
|
||||
|
||||
// Roles
|
||||
'role_cannot_be_edited' => 'This role cannot be edited',
|
||||
'role_system_cannot_be_deleted' => 'This role is a system role and cannot be deleted',
|
||||
'role_registration_default_cannot_delete' => 'This role cannot be deleted while set as the default registration role',
|
||||
|
||||
// Error pages
|
||||
'404_page_not_found' => 'Page Not Found',
|
||||
'sorry_page_not_found' => 'Sorry, The page you were looking for could not be found.',
|
||||
'return_home' => 'Return to home',
|
||||
'error_occurred' => 'An Error Occurred',
|
||||
'app_down' => ':appName is down right now',
|
||||
'back_soon' => 'It will be back up soon.',
|
||||
];
|
19
resources/lang/es/pagination.php
Normal file
19
resources/lang/es/pagination.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Anterior',
|
||||
'next' => 'Siguiente »',
|
||||
|
||||
];
|
22
resources/lang/es/passwords.php
Normal file
22
resources/lang/es/passwords.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => 'El Password debe ser como mínimo de seis caracteres y coincidir con la confirmación.',
|
||||
'user' => "No podemos encontrar un usuario con esta dirección de e-mail.",
|
||||
'token' => 'El token de reset del password es inválido.',
|
||||
'sent' => 'Hemos enviado a su cuenta de e-mail un link para restaurar su password!',
|
||||
'reset' => 'Su password ha sido restaurado!',
|
||||
|
||||
];
|
112
resources/lang/es/settings.php
Normal file
112
resources/lang/es/settings.php
Normal file
@ -0,0 +1,112 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/**
|
||||
* Settings text strings
|
||||
* Contains all text strings used in the general settings sections of BookStack
|
||||
* including users and roles.
|
||||
*/
|
||||
|
||||
'settings' => 'Settings',
|
||||
'settings_save' => 'Save Settings',
|
||||
'settings_save_success' => 'Settings saved',
|
||||
|
||||
/**
|
||||
* App settings
|
||||
*/
|
||||
|
||||
'app_settings' => 'App Settings',
|
||||
'app_name' => 'Application name',
|
||||
'app_name_desc' => 'This name is shown in the header and any emails.',
|
||||
'app_name_header' => 'Show Application name in header?',
|
||||
'app_public_viewing' => 'Allow public viewing?',
|
||||
'app_secure_images' => 'Enable higher security image uploads?',
|
||||
'app_secure_images_desc' => 'For performance reasons, all images are public. This option adds a random, hard-to-guess string in front of image urls. Ensure directory indexes are not enabled to prevent easy access.',
|
||||
'app_editor' => 'Page editor',
|
||||
'app_editor_desc' => 'Select which editor will be used by all users to edit pages.',
|
||||
'app_custom_html' => 'Custom HTML head content',
|
||||
'app_custom_html_desc' => 'Any content added here will be inserted into the bottom of the <head> section of every page. This is handy for overriding styles or adding analytics code.',
|
||||
'app_logo' => 'Application logo',
|
||||
'app_logo_desc' => 'This image should be 43px in height. <br>Large images will be scaled down.',
|
||||
'app_primary_color' => 'Application primary color',
|
||||
'app_primary_color_desc' => 'This should be a hex value. <br>Leave empty to reset to the default color.',
|
||||
|
||||
/**
|
||||
* Registration settings
|
||||
*/
|
||||
|
||||
'reg_settings' => 'Registration Settings',
|
||||
'reg_allow' => 'Allow registration?',
|
||||
'reg_default_role' => 'Default user role after registration',
|
||||
'reg_confirm_email' => 'Require email confirmation?',
|
||||
'reg_confirm_email_desc' => 'If domain restriction is used then email confirmation will be required and the below value will be ignored.',
|
||||
'reg_confirm_restrict_domain' => 'Restrict registration to domain',
|
||||
'reg_confirm_restrict_domain_desc' => 'Enter a comma separated list of email domains you would like to restrict registration to. Users will be sent an email to confirm their address before being allowed to interact with the application. <br> Note that users will be able to change their email addresses after successful registration.',
|
||||
'reg_confirm_restrict_domain_placeholder' => 'No restriction set',
|
||||
|
||||
/**
|
||||
* Role settings
|
||||
*/
|
||||
|
||||
'roles' => 'Roles',
|
||||
'role_user_roles' => 'User Roles',
|
||||
'role_create' => 'Create New Role',
|
||||
'role_create_success' => 'Role successfully created',
|
||||
'role_delete' => 'Delete Role',
|
||||
'role_delete_confirm' => 'This will delete the role with the name \':roleName\'.',
|
||||
'role_delete_users_assigned' => 'This role has :userCount users assigned to it. If you would like to migrate the users from this role select a new role below.',
|
||||
'role_delete_no_migration' => "Don't migrate users",
|
||||
'role_delete_sure' => 'Are you sure you want to delete this role?',
|
||||
'role_delete_success' => 'Role successfully deleted',
|
||||
'role_edit' => 'Edit Role',
|
||||
'role_details' => 'Role Details',
|
||||
'role_name' => 'Role Name',
|
||||
'role_desc' => 'Short Description of Role',
|
||||
'role_system' => 'System Permissions',
|
||||
'role_manage_users' => 'Manage users',
|
||||
'role_manage_roles' => 'Manage roles & role permissions',
|
||||
'role_manage_entity_permissions' => 'Manage all book, chapter & page permissions',
|
||||
'role_manage_own_entity_permissions' => 'Manage permissions on own book, chapter & pages',
|
||||
'role_manage_settings' => 'Manage app settings',
|
||||
'role_asset' => 'Asset Permissions',
|
||||
'role_asset_desc' => 'These permissions control default access to the assets within the system. Permissions on Books, Chapters and Pages will override these permissions.',
|
||||
'role_all' => 'All',
|
||||
'role_own' => 'Own',
|
||||
'role_controlled_by_asset' => 'Controlled by the asset they are uploaded to',
|
||||
'role_save' => 'Save Role',
|
||||
'role_update_success' => 'Role successfully updated',
|
||||
'role_users' => 'Users in this role',
|
||||
'role_users_none' => 'No users are currently assigned to this role',
|
||||
|
||||
/**
|
||||
* Users
|
||||
*/
|
||||
|
||||
'users' => 'Users',
|
||||
'user_profile' => 'User Profile',
|
||||
'users_add_new' => 'Add New User',
|
||||
'users_search' => 'Search Users',
|
||||
'users_role' => 'User Roles',
|
||||
'users_external_auth_id' => 'External Authentication ID',
|
||||
'users_password_warning' => 'Only fill the below if you would like to change your password:',
|
||||
'users_system_public' => 'This user represents any guest users that visit your instance. It cannot be used to log in but is assigned automatically.',
|
||||
'users_delete' => 'Delete User',
|
||||
'users_delete_named' => 'Delete user :userName',
|
||||
'users_delete_warning' => 'This will fully delete this user with the name \':userName\' from the system.',
|
||||
'users_delete_confirm' => 'Are you sure you want to delete this user?',
|
||||
'users_delete_success' => 'Users successfully removed',
|
||||
'users_edit' => 'Edit User',
|
||||
'users_edit_profile' => 'Edit Profile',
|
||||
'users_edit_success' => 'User successfully updated',
|
||||
'users_avatar' => 'User Avatar',
|
||||
'users_avatar_desc' => 'This image should be approx 256px square.',
|
||||
'users_preferred_language' => 'Preferred Language',
|
||||
'users_social_accounts' => 'Social Accounts',
|
||||
'users_social_accounts_info' => 'Here you can connect your other accounts for quicker and easier login. Disconnecting an account here does not previously authorized access. Revoke access from your profile settings on the connected social account.',
|
||||
'users_social_connect' => 'Connect Account',
|
||||
'users_social_disconnect' => 'Disconnect Account',
|
||||
'users_social_connected' => ':socialAccount account was successfully attached to your profile.',
|
||||
'users_social_disconnected' => ':socialAccount account was successfully disconnected from your profile.',
|
||||
|
||||
];
|
108
resources/lang/es/validation.php
Normal file
108
resources/lang/es/validation.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| as the size rules. Feel free to tweak each of these messages here.
|
||||
|
|
||||
*/
|
||||
|
||||
'accepted' => 'The :attribute must be accepted.',
|
||||
'active_url' => 'The :attribute is not a valid URL.',
|
||||
'after' => 'The :attribute must be a date after :date.',
|
||||
'alpha' => 'The :attribute may only contain letters.',
|
||||
'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
|
||||
'alpha_num' => 'The :attribute may only contain letters and numbers.',
|
||||
'array' => 'The :attribute must be an array.',
|
||||
'before' => 'The :attribute must be a date before :date.',
|
||||
'between' => [
|
||||
'numeric' => 'The :attribute must be between :min and :max.',
|
||||
'file' => 'The :attribute must be between :min and :max kilobytes.',
|
||||
'string' => 'The :attribute must be between :min and :max characters.',
|
||||
'array' => 'The :attribute must have between :min and :max items.',
|
||||
],
|
||||
'boolean' => 'The :attribute field must be true or false.',
|
||||
'confirmed' => 'The :attribute confirmation does not match.',
|
||||
'date' => 'The :attribute is not a valid date.',
|
||||
'date_format' => 'The :attribute does not match the format :format.',
|
||||
'different' => 'The :attribute and :other must be different.',
|
||||
'digits' => 'The :attribute must be :digits digits.',
|
||||
'digits_between' => 'The :attribute must be between :min and :max digits.',
|
||||
'email' => 'The :attribute must be a valid email address.',
|
||||
'filled' => 'The :attribute field is required.',
|
||||
'exists' => 'The selected :attribute is invalid.',
|
||||
'image' => 'The :attribute must be an image.',
|
||||
'in' => 'The selected :attribute is invalid.',
|
||||
'integer' => 'The :attribute must be an integer.',
|
||||
'ip' => 'The :attribute must be a valid IP address.',
|
||||
'max' => [
|
||||
'numeric' => 'The :attribute may not be greater than :max.',
|
||||
'file' => 'The :attribute may not be greater than :max kilobytes.',
|
||||
'string' => 'The :attribute may not be greater than :max characters.',
|
||||
'array' => 'The :attribute may not have more than :max items.',
|
||||
],
|
||||
'mimes' => 'The :attribute must be a file of type: :values.',
|
||||
'min' => [
|
||||
'numeric' => 'The :attribute must be at least :min.',
|
||||
'file' => 'The :attribute must be at least :min kilobytes.',
|
||||
'string' => 'The :attribute must be at least :min characters.',
|
||||
'array' => 'The :attribute must have at least :min items.',
|
||||
],
|
||||
'not_in' => 'The selected :attribute is invalid.',
|
||||
'numeric' => 'The :attribute must be a number.',
|
||||
'regex' => 'The :attribute format is invalid.',
|
||||
'required' => 'The :attribute field is required.',
|
||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||
'required_with' => 'The :attribute field is required when :values is present.',
|
||||
'required_with_all' => 'The :attribute field is required when :values is present.',
|
||||
'required_without' => 'The :attribute field is required when :values is not present.',
|
||||
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
||||
'same' => 'The :attribute and :other must match.',
|
||||
'size' => [
|
||||
'numeric' => 'The :attribute must be :size.',
|
||||
'file' => 'The :attribute must be :size kilobytes.',
|
||||
'string' => 'The :attribute must be :size characters.',
|
||||
'array' => 'The :attribute must contain :size items.',
|
||||
],
|
||||
'string' => 'The :attribute must be a string.',
|
||||
'timezone' => 'The :attribute must be a valid zone.',
|
||||
'unique' => 'The :attribute has already been taken.',
|
||||
'url' => 'The :attribute format is invalid.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => [
|
||||
'password-confirm' => [
|
||||
'required_with' => 'Password confirmation required',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [],
|
||||
|
||||
];
|
@ -26,6 +26,10 @@ return [
|
||||
'no_pages_viewed' => 'Vous n\'avez rien visité récemment',
|
||||
'no_pages_recently_created' => 'Aucune page créée récemment',
|
||||
'no_pages_recently_updated' => 'Aucune page mise à jour récemment',
|
||||
'export' => 'Exporter',
|
||||
'export_html' => 'Fichiers web',
|
||||
'export_pdf' => 'Fichier PDF',
|
||||
'export_text' => 'Document texte',
|
||||
|
||||
/**
|
||||
* Permissions and restrictions
|
||||
@ -160,10 +164,6 @@ return [
|
||||
'pages_revisions_preview' => 'Prévisualisation',
|
||||
'pages_revisions_restore' => 'Restaurer',
|
||||
'pages_revisions_none' => 'Cette page n\'a aucune révision',
|
||||
'pages_export' => 'Exporter',
|
||||
'pages_export_html' => 'Fichiers web',
|
||||
'pages_export_pdf' => 'Fichier PDF',
|
||||
'pages_export_text' => 'Document texte',
|
||||
'pages_copy_link' => 'Copier le lien',
|
||||
'pages_permissions_active' => 'Permissions de page actives',
|
||||
'pages_initial_revision' => 'Publication initiale',
|
||||
|
40
resources/lang/nl/activities.php
Normal file
40
resources/lang/nl/activities.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/**
|
||||
* Activity text strings.
|
||||
* Is used for all the text within activity logs & notifications.
|
||||
*/
|
||||
|
||||
// Pages
|
||||
'page_create' => 'maakte pagina',
|
||||
'page_create_notification' => 'Pagina Succesvol Aangemaakt',
|
||||
'page_update' => 'veranderde pagina',
|
||||
'page_update_notification' => 'Pagina Succesvol Bijgewerkt',
|
||||
'page_delete' => 'verwijderde pagina',
|
||||
'page_delete_notification' => 'Pagina Succesvol Verwijderd',
|
||||
'page_restore' => 'herstelde pagina',
|
||||
'page_restore_notification' => 'Pagina Succesvol Hersteld',
|
||||
'page_move' => 'verplaatste pagina',
|
||||
|
||||
// Chapters
|
||||
'chapter_create' => 'maakte hoofdstuk',
|
||||
'chapter_create_notification' => 'Hoofdstuk Succesvol Aangemaakt',
|
||||
'chapter_update' => 'veranderde hoofdstuk',
|
||||
'chapter_update_notification' => 'Hoofdstuk Succesvol Bijgewerkt',
|
||||
'chapter_delete' => 'verwijderde hoofdstuk',
|
||||
'chapter_delete_notification' => 'Hoofdstuk Succesvol Verwijderd',
|
||||
'chapter_move' => 'verplaatste hoofdstuk',
|
||||
|
||||
// Books
|
||||
'book_create' => 'maakte boek',
|
||||
'book_create_notification' => 'Boek Succesvol Aangemaakt',
|
||||
'book_update' => 'veranderde boek',
|
||||
'book_update_notification' => 'Boek Succesvol Bijgewerkt',
|
||||
'book_delete' => 'verwijderde boek',
|
||||
'book_delete_notification' => 'Boek Succesvol Verwijderd',
|
||||
'book_sort' => 'sorteerde boek',
|
||||
'book_sort_notification' => 'Boek Succesvol Gesorteerd',
|
||||
|
||||
];
|
76
resources/lang/nl/auth.php
Normal file
76
resources/lang/nl/auth.php
Normal file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used during authentication for various
|
||||
| messages that we need to display to the user. You are free to modify
|
||||
| these language lines according to your application's requirements.
|
||||
|
|
||||
*/
|
||||
'failed' => 'Deze inloggegevens zijn niet bij ons bekend.',
|
||||
'throttle' => 'Te veel loginpogingen! Probeer het opnieuw na :seconds seconden.',
|
||||
|
||||
/**
|
||||
* Login & Register
|
||||
*/
|
||||
'sign_up' => 'Registreren',
|
||||
'log_in' => 'Log in',
|
||||
'log_in_with' => 'Login met :socialDriver',
|
||||
'sign_up_with' => 'Registreer met :socialDriver',
|
||||
'logout' => 'Uitloggen',
|
||||
|
||||
'name' => 'Naam',
|
||||
'username' => 'Gebruikersnaam',
|
||||
'email' => 'Email',
|
||||
'password' => 'Wachtwoord',
|
||||
'password_confirm' => 'Wachtwoord Bevestigen',
|
||||
'password_hint' => 'Minimaal 5 tekens',
|
||||
'forgot_password' => 'Wachtwoord vergeten?',
|
||||
'remember_me' => 'Mij onthouden',
|
||||
'ldap_email_hint' => 'Geef een email op waarmee je dit account wilt gebruiken.',
|
||||
'create_account' => 'Account Aanmaken',
|
||||
'social_login' => 'Social Login',
|
||||
'social_registration' => 'Social Registratie',
|
||||
'social_registration_text' => 'Registreer en log in met een andere dienst.',
|
||||
|
||||
'register_thanks' => 'Bedankt voor het registreren!',
|
||||
'register_confirm' => 'Controleer je e-mail en bevestig je registratie om in te loggen op :appName.',
|
||||
'registrations_disabled' => 'Registratie is momenteel niet mogelijk',
|
||||
'registration_email_domain_invalid' => 'Dit e-maildomein is niet toegestaan',
|
||||
'register_success' => 'Bedankt voor het inloggen. Je bent ook geregistreerd.',
|
||||
|
||||
|
||||
/**
|
||||
* Password Reset
|
||||
*/
|
||||
'reset_password' => 'Wachtwoord Herstellen',
|
||||
'reset_password_send_instructions' => 'Geef je e-mail en we sturen je een link om je wachtwoord te herstellen',
|
||||
'reset_password_send_button' => 'Link Sturen',
|
||||
'reset_password_sent_success' => 'Een link om je wachtwoord te herstellen is verstuurd naar :email.',
|
||||
'reset_password_success' => 'Je wachtwoord is succesvol hersteld.',
|
||||
|
||||
'email_reset_subject' => 'Herstel je wachtwoord van :appName',
|
||||
'email_reset_text' => 'Je ontvangt deze e-mail zodat je je wachtwoord kunt herstellen.',
|
||||
'email_reset_not_requested' => 'Als je jouw wachtwoord niet wilt wijzigen, doe dan niets.',
|
||||
|
||||
|
||||
/**
|
||||
* Email Confirmation
|
||||
*/
|
||||
'email_confirm_subject' => 'Bevestig je e-mailadres op :appName',
|
||||
'email_confirm_greeting' => 'Bedankt voor je aanmelding op :appName!',
|
||||
'email_confirm_text' => 'Bevestig je registratie door op onderstaande knop te drukken:',
|
||||
'email_confirm_action' => 'Bevestig je e-mail',
|
||||
'email_confirm_send_error' => 'E-mail bevestiging is vereisd maar het systeem kon geen mail verzenden. Neem contact op met de beheerder.',
|
||||
'email_confirm_success' => 'Je e-mailadres is bevestigt!',
|
||||
'email_confirm_resent' => 'De bevestigingse-mails is opnieuw verzonden. Controleer je inbox.',
|
||||
|
||||
'email_not_confirmed' => 'E-mail nog niet bevestigd',
|
||||
'email_not_confirmed_text' => 'Je e-mailadres is nog niet bevestigd.',
|
||||
'email_not_confirmed_click_link' => 'Klik op de link in de e-mail die vlak na je registratie is verstuurd.',
|
||||
'email_not_confirmed_resend' => 'Als je deze e-mail niet kunt vinden kun je deze met onderstaande formulier opnieuw verzenden.',
|
||||
'email_not_confirmed_resend_button' => 'Bevestigingsmail Opnieuw Verzenden',
|
||||
];
|
58
resources/lang/nl/common.php
Normal file
58
resources/lang/nl/common.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
return [
|
||||
|
||||
/**
|
||||
* Buttons
|
||||
*/
|
||||
'cancel' => 'Annuleren',
|
||||
'confirm' => 'Bevestigen',
|
||||
'back' => 'Terug',
|
||||
'save' => 'Opslaan',
|
||||
'continue' => 'Doorgaan',
|
||||
'select' => 'Kies',
|
||||
|
||||
/**
|
||||
* Form Labels
|
||||
*/
|
||||
'name' => 'Naam',
|
||||
'description' => 'Beschrijving',
|
||||
'role' => 'Rol',
|
||||
|
||||
/**
|
||||
* Actions
|
||||
*/
|
||||
'actions' => 'Acties',
|
||||
'view' => 'Bekijk',
|
||||
'create' => 'Aanmaken',
|
||||
'update' => 'Update',
|
||||
'edit' => 'Bewerk',
|
||||
'sort' => 'Sorteer',
|
||||
'move' => 'Verplaats',
|
||||
'delete' => 'Verwijder',
|
||||
'search' => 'Zoek',
|
||||
'search_clear' => 'Zoekopdracht wissen',
|
||||
'reset' => 'Reset',
|
||||
'remove' => 'Verwijderen',
|
||||
|
||||
|
||||
/**
|
||||
* Misc
|
||||
*/
|
||||
'deleted_user' => 'Verwijderde gebruiker',
|
||||
'no_activity' => 'Geen activiteiten',
|
||||
'no_items' => 'Geen items beschikbaar',
|
||||
'back_to_top' => 'Terug naar boven',
|
||||
'toggle_details' => 'Details Weergeven',
|
||||
|
||||
/**
|
||||
* Header
|
||||
*/
|
||||
'view_profile' => 'Profiel Weergeven',
|
||||
'edit_profile' => 'Profiel Bewerken',
|
||||
|
||||
/**
|
||||
* Email Content
|
||||
*/
|
||||
'email_action_help' => 'Als je de knop ":actionText" niet werkt, kopieer en plak de onderstaande URL in je web browser:',
|
||||
'email_rights' => 'Alle rechten voorbehouden',
|
||||
];
|
24
resources/lang/nl/components.php
Normal file
24
resources/lang/nl/components.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
return [
|
||||
|
||||
/**
|
||||
* Image Manager
|
||||
*/
|
||||
'image_select' => 'Selecteer Afbeelding',
|
||||
'image_all' => 'Alles',
|
||||
'image_all_title' => 'Alle afbeeldingen weergeven',
|
||||
'image_book_title' => 'Afbeeldingen van dit boek weergeven',
|
||||
'image_page_title' => 'Afbeeldingen van deze pagina weergeven',
|
||||
'image_search_hint' => 'Zoek op afbeeldingsnaam',
|
||||
'image_uploaded' => 'Uploaded :uploadedDate',
|
||||
'image_load_more' => 'Meer Laden',
|
||||
'image_image_name' => 'Afbeeldingsnaam',
|
||||
'image_delete_confirm' => 'Deze afbeeldingen is op onderstaande pagina\'s in gebruik, Klik opnieuw op verwijderen om de afbeelding echt te verwijderen.',
|
||||
'image_select_image' => 'Kies Afbeelding',
|
||||
'image_dropzone' => 'Sleep afbeeldingen hier of klik hier om te uploaden',
|
||||
'images_deleted' => 'Verwijderde Afbeeldingen',
|
||||
'image_preview' => 'Afbeelding Voorbeeld',
|
||||
'image_upload_success' => 'Afbeelding succesvol geüpload',
|
||||
'image_update_success' => 'Afbeeldingsdetails succesvol verwijderd',
|
||||
'image_delete_success' => 'Afbeelding succesvol verwijderd'
|
||||
];
|
226
resources/lang/nl/entities.php
Normal file
226
resources/lang/nl/entities.php
Normal file
@ -0,0 +1,226 @@
|
||||
<?php
|
||||
return [
|
||||
|
||||
/**
|
||||
* Shared
|
||||
*/
|
||||
'recently_created' => 'Recent Aangemaakt',
|
||||
'recently_created_pages' => 'Recent Aangemaakte Pagina\'s',
|
||||
'recently_updated_pages' => 'Recent Bijgewerkte Pagina\'s',
|
||||
'recently_created_chapters' => 'Recent Aangemaakte Hoofdstukken',
|
||||
'recently_created_books' => 'Recent Aangemaakte Boeken',
|
||||
'recently_update' => 'Recent Bijgewerkt',
|
||||
'recently_viewed' => 'Recent Bekeken',
|
||||
'recent_activity' => 'Recente Activiteit',
|
||||
'create_now' => 'Maak er zelf één',
|
||||
'revisions' => 'Revisies',
|
||||
'meta_created' => 'Aangemaakt :timeLength',
|
||||
'meta_created_name' => 'Aangemaakt: :timeLength door :user',
|
||||
'meta_updated' => ':timeLength Aangepast',
|
||||
'meta_updated_name' => 'Aangepast: :timeLength door :user',
|
||||
'x_pages' => ':count Pagina\'s',
|
||||
'entity_select' => 'Entiteit Selecteren',
|
||||
'images' => 'Afbeeldingen',
|
||||
'my_recent_drafts' => 'Mijn Concepten',
|
||||
'my_recently_viewed' => 'Mijn Recent Bekeken',
|
||||
'no_pages_viewed' => 'Je hebt nog niets bekeken',
|
||||
'no_pages_recently_created' => 'Er zijn geen recent aangemaakte pagina\'s',
|
||||
'no_pages_recently_updated' => 'Er zijn geen recente wijzigingen',
|
||||
'export' => 'Exporteren',
|
||||
'export_html' => 'Contained Web File',
|
||||
'export_pdf' => 'PDF File',
|
||||
'export_text' => 'Plain Text File',
|
||||
|
||||
/**
|
||||
* Permissions and restrictions
|
||||
*/
|
||||
'permissions' => 'Permissies',
|
||||
'permissions_intro' => 'Als je dit aanzet, dan gelden rol-permissies niet meer voor deze pagina.',
|
||||
'permissions_enable' => 'Custom Permissies Aanzetten',
|
||||
'permissions_save' => 'Permissies Opslaan',
|
||||
|
||||
/**
|
||||
* Search
|
||||
*/
|
||||
'search_results' => 'Zoekresultaten',
|
||||
'search_results_page' => 'Pagina Zoekresultaten',
|
||||
'search_results_chapter' => 'Hoofdstuk Zoekresultaten',
|
||||
'search_results_book' => 'Boek Zoekresultaten',
|
||||
'search_clear' => 'Zoekopdracht wissen',
|
||||
'search_view_pages' => 'Bekijk alle gevonden pagina\'s',
|
||||
'search_view_chapters' => 'Bekijk alle gevonden hoofdstukken',
|
||||
'search_view_books' => 'Bekijk alle gevonden boeken',
|
||||
'search_no_pages' => 'Er zijn geen pagina\'s gevonden',
|
||||
'search_for_term' => 'Zoeken op :term',
|
||||
'search_page_for_term' => 'Pagina doorzoeken op :term',
|
||||
'search_chapter_for_term' => 'Hoofdstuk doorzoeken op :term',
|
||||
'search_book_for_term' => 'Boeken doorzoeken op :term',
|
||||
|
||||
/**
|
||||
* Books
|
||||
*/
|
||||
'book' => 'Boek',
|
||||
'books' => 'Boeken',
|
||||
'books_empty' => 'Er zijn geen boeken aangemaakt',
|
||||
'books_popular' => 'Populaire Boeken',
|
||||
'books_recent' => 'Recente Boeken',
|
||||
'books_popular_empty' => 'De meest populaire boeken worden hier weergegeven.',
|
||||
'books_create' => 'Nieuw Boek Aanmaken',
|
||||
'books_delete' => 'Boek Verwijderen',
|
||||
'books_delete_named' => 'Verwijder Boek :bookName',
|
||||
'books_delete_explain' => 'Deze actie verwijdert het boek \':bookName\', Alle pagina\'s en hoofdstukken worden verwijderd.',
|
||||
'books_delete_confirmation' => 'Weet je zeker dat je dit boek wilt verwijderen?',
|
||||
'books_edit' => 'Boek Bewerken',
|
||||
'books_edit_named' => 'Bewerkt Boek :bookName',
|
||||
'books_form_book_name' => 'Boek Naam',
|
||||
'books_save' => 'Boek Opslaan',
|
||||
'books_permissions' => 'Boek Permissies',
|
||||
'books_permissions_updated' => 'Boek Permissies Opgeslagen',
|
||||
'books_empty_contents' => 'Er zijn nog een hoofdstukken en pagina\'s voor dit boek gemaakt.',
|
||||
'books_empty_create_page' => 'Pagina Toevoegen',
|
||||
'books_empty_or' => 'of',
|
||||
'books_empty_sort_current_book' => 'Boek sorteren',
|
||||
'books_empty_add_chapter' => 'Hoofdstuk Toevoegen',
|
||||
'books_permissions_active' => 'Boek Permissies Actief',
|
||||
'books_search_this' => 'Zoeken in dit boek',
|
||||
'books_navigation' => 'Boek Navigatie',
|
||||
'books_sort' => 'Inhoud van het boek sorteren',
|
||||
'books_sort_named' => 'Sorteer Boek :bookName',
|
||||
'books_sort_show_other' => 'Bekijk Andere Boeken',
|
||||
'books_sort_save' => 'Nieuwe Order Opslaan',
|
||||
|
||||
/**
|
||||
* Chapters
|
||||
*/
|
||||
'chapter' => 'Hoofdstuk',
|
||||
'chapters' => 'Hoofdstukken',
|
||||
'chapters_popular' => 'Populaire Hoofdstukken',
|
||||
'chapters_new' => 'Nieuw Hoofdstuk',
|
||||
'chapters_create' => 'Hoofdstuk Toevoegen',
|
||||
'chapters_delete' => 'Hoofdstuk Verwijderen',
|
||||
'chapters_delete_named' => 'Verwijder Hoofdstuk :chapterName',
|
||||
'chapters_delete_explain' => 'Dit verwijdert het hoofdstuk \':chapterName\', Alle pagina\'s zullen verwijdert worden.
|
||||
en toegevoegd worden aan het bijbehorende boek.',
|
||||
'chapters_delete_confirm' => 'Weet je zeker dat je dit boek wilt verwijderen?',
|
||||
'chapters_edit' => 'Hoofdstuk Aanpassen',
|
||||
'chapters_edit_named' => 'Hoofdstuk :chapterName Aanpassen',
|
||||
'chapters_save' => 'Hoofdstuk Opslaan',
|
||||
'chapters_move' => 'Hoofdstuk Verplaatsen',
|
||||
'chapters_move_named' => 'Verplaatst Hoofdstuk :chapterName',
|
||||
'chapter_move_success' => 'Hoofdstuk Verplaatst Naar :bookName',
|
||||
'chapters_permissions' => 'Hoofdstuk Permissies',
|
||||
'chapters_empty' => 'Er zijn geen pagina\'s in dit hoofdstuk aangemaakt.',
|
||||
'chapters_permissions_active' => 'Hoofdstuk Permissies Actief',
|
||||
'chapters_permissions_success' => 'Hoofdstuk Permissies Bijgewerkt',
|
||||
|
||||
/**
|
||||
* Pages
|
||||
*/
|
||||
'page' => 'Pagina',
|
||||
'pages' => 'Pagina\'s',
|
||||
'pages_popular' => 'Populaire Pagina\'s',
|
||||
'pages_new' => 'Nieuwe Pagina',
|
||||
'pages_attachments' => 'Bijlages',
|
||||
'pages_navigation' => 'Pagina Navigatie',
|
||||
'pages_delete' => 'Pagina Verwijderen',
|
||||
'pages_delete_named' => 'Verwijderde Pagina :pageName',
|
||||
'pages_delete_draft_named' => 'Verwijderde Conceptpagina :pageName',
|
||||
'pages_delete_draft' => 'Verwijder Conceptpagina',
|
||||
'pages_delete_success' => 'Pagina verwijderd',
|
||||
'pages_delete_draft_success' => 'Concept verwijderd',
|
||||
'pages_delete_confirm' => 'Weet je zeker dat je deze pagina wilt verwijderen?',
|
||||
'pages_delete_draft_confirm' => 'Weet je zeker dat je dit concept wilt verwijderen?',
|
||||
'pages_editing_named' => 'Pagina :pageName Bewerken',
|
||||
'pages_edit_toggle_header' => 'Toggle header',
|
||||
'pages_edit_save_draft' => 'Concept opslaan',
|
||||
'pages_edit_draft' => 'Paginaconcept Bewerken',
|
||||
'pages_editing_draft' => 'Concept Bewerken',
|
||||
'pages_editing_page' => 'Concept Bewerken',
|
||||
'pages_edit_draft_save_at' => 'Concept opgeslagen op ',
|
||||
'pages_edit_delete_draft' => 'Concept Verwijderen',
|
||||
'pages_edit_discard_draft' => 'Concept Verwijderen',
|
||||
'pages_edit_set_changelog' => 'Changelog',
|
||||
'pages_edit_enter_changelog_desc' => 'Geef een korte omschrijving van de wijzingen die je gemaakt hebt.',
|
||||
'pages_edit_enter_changelog' => 'Enter Changelog',
|
||||
'pages_save' => 'Pagina Opslaan',
|
||||
'pages_title' => 'Pagina Titel',
|
||||
'pages_name' => 'Pagina Naam',
|
||||
'pages_md_editor' => 'Bewerker',
|
||||
'pages_md_preview' => 'Preview',
|
||||
'pages_md_insert_image' => 'Afbeelding Invoegen',
|
||||
'pages_md_insert_link' => 'Entity Link Invoegen',
|
||||
'pages_not_in_chapter' => 'Deze pagina staat niet in een hoofdstuk',
|
||||
'pages_move' => 'Pagina Verplaatsten',
|
||||
'pages_move_success' => 'Pagina verplaatst naar ":parentName"',
|
||||
'pages_permissions' => 'Pagina Permissies',
|
||||
'pages_permissions_success' => 'Pagina Permissies bijgwerkt',
|
||||
'pages_revisions' => 'Pagina Revisies',
|
||||
'pages_revisions_named' => 'Pagina Revisies voor :pageName',
|
||||
'pages_revision_named' => 'Pagina Revisie voor :pageName',
|
||||
'pages_revisions_created_by' => 'Aangemaakt door',
|
||||
'pages_revisions_date' => 'Revisiedatum',
|
||||
'pages_revisions_changelog' => 'Changelog',
|
||||
'pages_revisions_changes' => 'Wijzigingen',
|
||||
'pages_revisions_current' => 'Huidige Versie',
|
||||
'pages_revisions_preview' => 'Preview',
|
||||
'pages_revisions_restore' => 'Herstellen',
|
||||
'pages_revisions_none' => 'Deze pagina heeft geen revisies',
|
||||
'pages_copy_link' => 'Link Kopiëren',
|
||||
'pages_permissions_active' => 'Pagina Permissies Actief',
|
||||
'pages_initial_revision' => 'Eerste publicatie',
|
||||
'pages_initial_name' => 'Nieuwe Pagina',
|
||||
'pages_editing_draft_notification' => 'You are currently editing a draft that was last saved :timeDiff.',
|
||||
'pages_draft_edited_notification' => 'This page has been updated by since that time. It is recommended that you discard this draft.',
|
||||
'pages_draft_edit_active' => [
|
||||
'start_a' => ':count users have started editing this page',
|
||||
'start_b' => ':userName has started editing this page',
|
||||
'time_a' => 'since the pages was last updated',
|
||||
'time_b' => 'in the last :minCount minutes',
|
||||
'message' => ':start :time. Take care not to overwrite each other\'s updates!',
|
||||
],
|
||||
'pages_draft_discarded' => 'Draft discarded, The editor has been updated with the current page content',
|
||||
|
||||
/**
|
||||
* Editor sidebar
|
||||
*/
|
||||
'page_tags' => 'Pagina Labels',
|
||||
'tag' => 'Label',
|
||||
'tags' => '',
|
||||
'tag_value' => 'Label Waarde (Optioneel)',
|
||||
'tags_explain' => "Voeg labels toe om de inhoud te categoriseren. \n Je kunt meerdere labels toevoegen.",
|
||||
'tags_add' => 'Voeg een extra label toe',
|
||||
'attachments' => 'Bijlages',
|
||||
'attachments_explain' => 'Upload bijlages of voeg een link toe. Deze worden zichtbaar in het navigatiepaneel.',
|
||||
'attachments_explain_instant_save' => 'Wijzigingen worden meteen opgeslagen.',
|
||||
'attachments_items' => 'Bijlages',
|
||||
'attachments_upload' => 'Bestand Uploaden',
|
||||
'attachments_link' => 'Link Toevoegen',
|
||||
'attachments_set_link' => 'Zet Link',
|
||||
'attachments_delete_confirm' => 'Klik opnieuw op \'verwijderen\' om de bijlage definitief te verwijderen.',
|
||||
'attachments_dropzone' => 'Sleep hier een bestand of klik hier om een bestand toe te voegen',
|
||||
'attachments_no_files' => 'Er zijn geen bestanden geüpload',
|
||||
'attachments_explain_link' => 'Je kunt een link toevoegen als je geen bestanden wilt uploaden. Dit kan een link naar een andere pagina op deze website zijn, maar ook een link naar een andere website.',
|
||||
'attachments_link_name' => 'Link Naam',
|
||||
'attachment_link' => 'Bijlage link',
|
||||
'attachments_link_url' => 'Link naar bestand',
|
||||
'attachments_link_url_hint' => 'Url, site of bestand',
|
||||
'attach' => 'Koppelen',
|
||||
'attachments_edit_file' => 'Bestand Bewerken',
|
||||
'attachments_edit_file_name' => 'Bestandsnaam',
|
||||
'attachments_edit_drop_upload' => 'Sleep een bestand of klik hier om te uploaden en te overschrijven',
|
||||
'attachments_order_updated' => 'De volgorde van de bijlages is bijgewerkt',
|
||||
'attachments_updated_success' => 'Bijlage details bijgewerkt',
|
||||
'attachments_deleted' => 'Bijlage verwijderd',
|
||||
'attachments_file_uploaded' => 'Bestand succesvol geüpload',
|
||||
'attachments_file_updated' => 'Bestand succesvol bijgewerkt',
|
||||
'attachments_link_attached' => 'Link successfully gekoppeld aan de pagina',
|
||||
|
||||
/**
|
||||
* Profile View
|
||||
*/
|
||||
'profile_user_for_x' => 'Lid sinds :time',
|
||||
'profile_created_content' => 'Aangemaakte Inhoud',
|
||||
'profile_not_created_pages' => ':userName heeft geen pagina\'s gemaakt',
|
||||
'profile_not_created_chapters' => ':userName heeft geen hoofdstukken gemaakt',
|
||||
'profile_not_created_books' => ':userName heeft geen boeken gemaakt',
|
||||
];
|
70
resources/lang/nl/errors.php
Normal file
70
resources/lang/nl/errors.php
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/**
|
||||
* Error text strings.
|
||||
*/
|
||||
|
||||
// Permissions
|
||||
'permission' => 'Je hebt onvoldoende rechten om deze pagina te zien.',
|
||||
'permissionJson' => 'Je hebt onvoldoende rechten voor deze actie.',
|
||||
|
||||
// Auth
|
||||
'error_user_exists_different_creds' => 'Een gebruiker met het e-mailadres :email bestaat al.',
|
||||
'email_already_confirmed' => 'Het e-mailadres is al bevestigd. Probeer in te loggen.',
|
||||
'email_confirmation_invalid' => 'Deze bevestigingstoken is ongeldig, Probeer opnieuw te registreren.',
|
||||
'email_confirmation_expired' => 'De bevestigingstoken is verlopen, Een nieuwe bevestigingsmail is verzonden.',
|
||||
'ldap_fail_anonymous' => 'LDAP toegang kon geen \'anonymous bind\' uitvoeren',
|
||||
'ldap_fail_authed' => 'LDAP toegang was niet mogelijk met de opgegeven dn & wachtwoord',
|
||||
'ldap_extension_not_installed' => 'LDAP PHP extension not installed',
|
||||
'ldap_cannot_connect' => 'Kon niet met de LDAP server verbinden',
|
||||
'social_no_action_defined' => 'Geen actie gedefineerd',
|
||||
'social_account_in_use' => 'Dit :socialAccount account is al in gebruik, Probeer in te loggen met de :socialAccount optie.',
|
||||
'social_account_email_in_use' => 'Het e-mailadres :email is al in gebruik. Als je al een account hebt kun je een :socialAccount account verbinden met je profielinstellingen.',
|
||||
'social_account_existing' => 'Dit :socialAccount is al gekoppeld aan een profiel.',
|
||||
'social_account_already_used_existing' => 'Dit :socialAccount account is ingebruik door een andere gebruiker.',
|
||||
'social_account_not_used' => 'Dit :socialAccount account is niet gekopeld aan een gebruiker. Koppel het via je profielinstellingen. ',
|
||||
'social_account_register_instructions' => 'Als je nog geen account hebt kun je je registreren met de :socialAccount optie.',
|
||||
'social_driver_not_found' => 'Social driver niet gevonden',
|
||||
'social_driver_not_configured' => 'Je :socialAccount instellingen zijn correct geconfigureerd.',
|
||||
|
||||
// System
|
||||
'path_not_writable' => 'Bestand :filePath kon niet geupload worden. Zorg dat je schrijfrechten op de server hebt.',
|
||||
'cannot_get_image_from_url' => 'Kon geen afbeelding genereren van :url',
|
||||
'cannot_create_thumbs' => 'De server kon geen thumbnails maken. Controleer of je de GD PHP extensie geïnstalleerd hebt.',
|
||||
'server_upload_limit' => 'Het afbeeldingsformaat is te groot. Probeer een kleinere bestandsgrootte.',
|
||||
'image_upload_error' => 'Er ging iets fout bij het uploaden van de afbeelding',
|
||||
|
||||
// Attachments
|
||||
'attachment_page_mismatch' => 'Bij het bijwerken van de bijlage bleek de pagina onjuist',
|
||||
|
||||
// Pages
|
||||
'page_draft_autosave_fail' => 'Kon het concept niet opslaan. Zorg ervoor dat je een werkende internetverbinding hebt.',
|
||||
|
||||
// Entities
|
||||
'entity_not_found' => 'Entiteit niet gevonden',
|
||||
'book_not_found' => 'Boek niet gevonden',
|
||||
'page_not_found' => 'Pagina niet gevonden',
|
||||
'chapter_not_found' => 'Hoofdstuk niet gevonden',
|
||||
'selected_book_not_found' => 'Het geselecteerde boek is niet gevonden',
|
||||
'selected_book_chapter_not_found' => 'Het geselecteerde boek of hoofdstuk is niet gevonden',
|
||||
'guests_cannot_save_drafts' => 'Gasten kunnen geen concepten opslaan',
|
||||
|
||||
// Users
|
||||
'users_cannot_delete_only_admin' => 'Je kunt niet het enige admin account verwijderen',
|
||||
'users_cannot_delete_guest' => 'Je kunt het gastaccount niet verwijderen',
|
||||
|
||||
// Roles
|
||||
'role_cannot_be_edited' => 'Deze rol kan niet bewerkt worden',
|
||||
'role_system_cannot_be_deleted' => 'Dit is een systeemrol en kan niet verwijderd worden',
|
||||
'role_registration_default_cannot_delete' => 'Deze rol kan niet verwijerd worden zolang dit de standaardrol na registratie is.',
|
||||
|
||||
// Error pages
|
||||
'404_page_not_found' => 'Pagina Niet Gevonden',
|
||||
'sorry_page_not_found' => 'Sorry, de pagina die je zocht is niet beschikbaar.',
|
||||
'return_home' => 'Terug naar home',
|
||||
'error_occurred' => 'Er Ging Iets Fout',
|
||||
'app_down' => ':appName is nu niet beschikbaar',
|
||||
'back_soon' => 'Komt snel weer online.',
|
||||
];
|
19
resources/lang/nl/pagination.php
Normal file
19
resources/lang/nl/pagination.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Vorige',
|
||||
'next' => 'Volgende »',
|
||||
|
||||
];
|
22
resources/lang/nl/passwords.php
Normal file
22
resources/lang/nl/passwords.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => 'Wachtwoorden moeten overeenkomen en minimaal zes tekens lang zijn.',
|
||||
'user' => "We kunnen niemand vinden met dat e-mailadres.",
|
||||
'token' => 'De token om het wachtwoord te herstellen is ongeldig.',
|
||||
'sent' => 'We hebben je een link gestuurd om je wachtwoord te herstellen!',
|
||||
'reset' => 'Je wachtwoord is hersteld!',
|
||||
|
||||
];
|
111
resources/lang/nl/settings.php
Normal file
111
resources/lang/nl/settings.php
Normal file
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/**
|
||||
* Settings text strings
|
||||
* Contains all text strings used in the general settings sections of BookStack
|
||||
* including users and roles.
|
||||
*/
|
||||
|
||||
'settings' => 'Instellingen',
|
||||
'settings_save' => 'Instellingen Opslaan',
|
||||
'settings_save_success' => 'Instellingen Opgeslagen',
|
||||
|
||||
/**
|
||||
* App settings
|
||||
*/
|
||||
|
||||
'app_settings' => 'App Instellingen',
|
||||
'app_name' => 'Applicatienaam',
|
||||
'app_name_desc' => 'De applicatienaam wordt in e-mails in in de header weergegeven.',
|
||||
'app_name_header' => 'Applicatienaam in de header weergeven?',
|
||||
'app_public_viewing' => 'Publieke bewerkingen toestaan?',
|
||||
'app_secure_images' => 'Beter beveiligide afbeeldingen gebruiken?',
|
||||
'app_secure_images_desc' => 'Omwille van de performance zijn alle afbeeldingen publiek toegankelijk. Zorg ervoor dat je de \'directory index\' niet hebt ingeschakeld.',
|
||||
'app_editor' => 'Pagina Bewerken',
|
||||
'app_editor_desc' => 'Selecteer welke tekstverwerker je wilt gebruiken.',
|
||||
'app_custom_html' => 'Speciale HTML toevoegen',
|
||||
'app_custom_html_desc' => 'Alles wat je hier toevoegd wordt in de <head> sectie van elke pagina meengenomen. Dit kun je bijvoorbeeld voor analytics gebruiken.',
|
||||
'app_logo' => 'Applicatielogo',
|
||||
'app_logo_desc' => 'De afbeelding moet 43px hoog zijn. <br>Grotere afbeeldingen worden geschaald.',
|
||||
'app_primary_color' => 'Applicatie hoofdkleur',
|
||||
'app_primary_color_desc' => 'Geef een hexadecimale waarde. <br>Als je niks invult wordt de standaardkleur gebruikt.',
|
||||
|
||||
/**
|
||||
* Registration settings
|
||||
*/
|
||||
|
||||
'reg_settings' => 'Registratieinstellingen',
|
||||
'reg_allow' => 'Registratie toestaan?',
|
||||
'reg_default_role' => 'Standaard rol na registratie',
|
||||
'reg_confirm_email' => 'E-mailbevesting vereist?',
|
||||
'reg_confirm_email_desc' => 'Als domeinrestricties aan staan dan is altijd e-maibevestiging nodig. Onderstaande instelling wordt dan genegeerd.',
|
||||
'reg_confirm_restrict_domain' => 'Beperk registratie tot een maildomein',
|
||||
'reg_confirm_restrict_domain_desc' => 'Geen een komma-gescheiden lijst van domeinnamen die gebruikt mogen worden bij registratie. <br> Let op: na registratie kunnen gebruikers hun e-mailadres nog steeds wijzigen.',
|
||||
'reg_confirm_restrict_domain_placeholder' => 'Geen beperkingen ingesteld',
|
||||
|
||||
/**
|
||||
* Role settings
|
||||
*/
|
||||
|
||||
'roles' => 'Rollen',
|
||||
'role_user_roles' => 'Gebruikrollen',
|
||||
'role_create' => 'Nieuwe Rol Maken',
|
||||
'role_create_success' => 'Rol succesvol aangemaakt',
|
||||
'role_delete' => 'Rol Verwijderen',
|
||||
'role_delete_confirm' => 'Dit verwijdert de rol \':roleName\'.',
|
||||
'role_delete_users_assigned' => 'Er zijn :userCount gebruikers met deze rol. Selecteer hieronder een nieuwe rol als je deze gebruikers een andere rol wilt geven.',
|
||||
'role_delete_no_migration' => "Geen gebruikers migreren",
|
||||
'role_delete_sure' => 'Weet je zeker dat je deze rol wilt verwijderen?',
|
||||
'role_delete_success' => 'Rol succesvol verwijderd',
|
||||
'role_edit' => 'Rol Bewerken',
|
||||
'role_details' => 'Rol Details',
|
||||
'role_name' => 'Rolnaam',
|
||||
'role_desc' => 'Korte beschrijving van de rol',
|
||||
'role_system' => 'Systeem Permissies',
|
||||
'role_manage_users' => 'Gebruikers beheren',
|
||||
'role_manage_roles' => 'Rollen en rechten beheren',
|
||||
'role_manage_entity_permissions' => 'Beheer alle boeken-, hoofdstukken- en paginaresitrcties',
|
||||
'role_manage_own_entity_permissions' => 'Beheer restricties van je eigen boeken, hoofdstukken en pagina\'s',
|
||||
'role_manage_settings' => 'Beheer app instellingen',
|
||||
'role_asset' => 'Asset Permissies',
|
||||
'role_asset_desc' => 'Deze permissies bepalen de standaardtoegangsrechten. Permissies op boeken, hoofdstukken en pagina\'s overschrijven deze instelling.',
|
||||
'role_all' => 'Alles',
|
||||
'role_own' => 'Eigen',
|
||||
'role_controlled_by_asset' => 'Gecontroleerd door de asset waar deze is geüpload',
|
||||
'role_save' => 'Rol Opslaan',
|
||||
'role_update_success' => 'Rol succesvol bijgewerkt',
|
||||
'role_users' => 'Gebruikers in deze rol',
|
||||
'role_users_none' => 'Geen enkele gebruiker heeft deze rol',
|
||||
|
||||
/**
|
||||
* Users
|
||||
*/
|
||||
|
||||
'users' => 'Gebruikers',
|
||||
'user_profile' => 'Gebruikersprofiel',
|
||||
'users_add_new' => 'Gebruiker toevoegen',
|
||||
'users_search' => 'Gebruiker zoeken',
|
||||
'users_role' => 'Gebruikersrollen',
|
||||
'users_external_auth_id' => 'External Authentication ID',
|
||||
'users_password_warning' => 'Vul onderstaande formulier alleen in als je het wachtwoord wilt aanpassen:',
|
||||
'users_system_public' => 'De eigenschappen van deze gebruiker worden voor elke gastbezoeker gebruikt. Er kan niet mee ingelogd worden en wordt automatisch toegewezen.',
|
||||
'users_delete' => 'Verwijder gebruiker',
|
||||
'users_delete_named' => 'Verwijder gebruiker :userName',
|
||||
'users_delete_warning' => 'Dit zal de gebruiker \':userName\' volledig uit het systeem verwijderen.',
|
||||
'users_delete_confirm' => 'Weet je zeker dat je deze gebruiker wilt verwijderen?',
|
||||
'users_delete_success' => 'Gebruiker succesvol verwijderd',
|
||||
'users_edit' => 'Bewerk Gebruiker',
|
||||
'users_edit_profile' => 'Bewerk Profiel',
|
||||
'users_edit_success' => 'Gebruiker succesvol bijgewerkt',
|
||||
'users_avatar' => 'Avatar',
|
||||
'users_avatar_desc' => 'De afbeelding moet vierkant zijn en ongeveer 256px breed.',
|
||||
'users_preferred_language' => 'Voorkeurstaal',
|
||||
'users_social_accounts' => 'Social Accounts',
|
||||
'users_social_accounts_info' => 'Hier kun je accounts verbinden om makkelijker in te loggen. Via je profiel kun je ook weer rechten intrekken die bij deze social accountsh horen.',
|
||||
'users_social_connect' => 'Account Verbinden',
|
||||
'users_social_disconnect' => 'Account Ontkoppelen',
|
||||
'users_social_connected' => ':socialAccount account is succesvol aan je profiel gekoppeld.',
|
||||
'users_social_disconnected' => ':socialAccount account is succesvol ontkoppeld van je profiel.',
|
||||
];
|
108
resources/lang/nl/validation.php
Normal file
108
resources/lang/nl/validation.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| as the size rules. Feel free to tweak each of these messages here.
|
||||
|
|
||||
*/
|
||||
|
||||
'accepted' => 'The :attribute must be accepted.',
|
||||
'active_url' => 'The :attribute is not a valid URL.',
|
||||
'after' => 'The :attribute must be a date after :date.',
|
||||
'alpha' => 'The :attribute may only contain letters.',
|
||||
'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
|
||||
'alpha_num' => 'The :attribute may only contain letters and numbers.',
|
||||
'array' => 'The :attribute must be an array.',
|
||||
'before' => 'The :attribute must be a date before :date.',
|
||||
'between' => [
|
||||
'numeric' => 'The :attribute must be between :min and :max.',
|
||||
'file' => 'The :attribute must be between :min and :max kilobytes.',
|
||||
'string' => 'The :attribute must be between :min and :max characters.',
|
||||
'array' => 'The :attribute must have between :min and :max items.',
|
||||
],
|
||||
'boolean' => 'The :attribute field must be true or false.',
|
||||
'confirmed' => 'The :attribute confirmation does not match.',
|
||||
'date' => 'The :attribute is not a valid date.',
|
||||
'date_format' => 'The :attribute does not match the format :format.',
|
||||
'different' => 'The :attribute and :other must be different.',
|
||||
'digits' => 'The :attribute must be :digits digits.',
|
||||
'digits_between' => 'The :attribute must be between :min and :max digits.',
|
||||
'email' => 'The :attribute must be a valid email address.',
|
||||
'filled' => 'The :attribute field is required.',
|
||||
'exists' => 'The selected :attribute is invalid.',
|
||||
'image' => 'The :attribute must be an image.',
|
||||
'in' => 'The selected :attribute is invalid.',
|
||||
'integer' => 'The :attribute must be an integer.',
|
||||
'ip' => 'The :attribute must be a valid IP address.',
|
||||
'max' => [
|
||||
'numeric' => 'The :attribute may not be greater than :max.',
|
||||
'file' => 'The :attribute may not be greater than :max kilobytes.',
|
||||
'string' => 'The :attribute may not be greater than :max characters.',
|
||||
'array' => 'The :attribute may not have more than :max items.',
|
||||
],
|
||||
'mimes' => 'The :attribute must be a file of type: :values.',
|
||||
'min' => [
|
||||
'numeric' => 'The :attribute must be at least :min.',
|
||||
'file' => 'The :attribute must be at least :min kilobytes.',
|
||||
'string' => 'The :attribute must be at least :min characters.',
|
||||
'array' => 'The :attribute must have at least :min items.',
|
||||
],
|
||||
'not_in' => 'The selected :attribute is invalid.',
|
||||
'numeric' => 'The :attribute must be a number.',
|
||||
'regex' => 'The :attribute format is invalid.',
|
||||
'required' => 'The :attribute field is required.',
|
||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||
'required_with' => 'The :attribute field is required when :values is present.',
|
||||
'required_with_all' => 'The :attribute field is required when :values is present.',
|
||||
'required_without' => 'The :attribute field is required when :values is not present.',
|
||||
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
||||
'same' => 'The :attribute and :other must match.',
|
||||
'size' => [
|
||||
'numeric' => 'The :attribute must be :size.',
|
||||
'file' => 'The :attribute must be :size kilobytes.',
|
||||
'string' => 'The :attribute must be :size characters.',
|
||||
'array' => 'The :attribute must contain :size items.',
|
||||
],
|
||||
'string' => 'The :attribute must be a string.',
|
||||
'timezone' => 'The :attribute must be a valid zone.',
|
||||
'unique' => 'The :attribute has already been taken.',
|
||||
'url' => 'The :attribute format is invalid.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => [
|
||||
'password-confirm' => [
|
||||
'required_with' => 'Password confirmation required',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [],
|
||||
|
||||
];
|
@ -26,6 +26,10 @@ return [
|
||||
'no_pages_viewed' => 'Você não visualizou nenhuma página',
|
||||
'no_pages_recently_created' => 'Nenhuma página recentemente criada',
|
||||
'no_pages_recently_updated' => 'Nenhuma página recentemente atualizada',
|
||||
'export' => 'Exportar',
|
||||
'export_html' => 'Arquivo Web Contained',
|
||||
'export_pdf' => 'Arquivo PDF',
|
||||
'export_text' => 'Arquivo Texto',
|
||||
|
||||
/**
|
||||
* Permissions and restrictions
|
||||
@ -161,10 +165,6 @@ return [
|
||||
'pages_revisions_preview' => 'Preview',
|
||||
'pages_revisions_restore' => 'Restaurar',
|
||||
'pages_revisions_none' => 'Essa página não tem revisões',
|
||||
'pages_export' => 'Exportar',
|
||||
'pages_export_html' => 'Arquivo Web Contained',
|
||||
'pages_export_pdf' => 'Arquivo PDF',
|
||||
'pages_export_text' => 'Arquivo Texto',
|
||||
'pages_copy_link' => 'Copia Link',
|
||||
'pages_permissions_active' => 'Permissões de Página Ativas',
|
||||
'pages_initial_revision' => 'Publicação Inicial',
|
||||
|
@ -32,10 +32,11 @@
|
||||
|
||||
@if(count($socialDrivers) > 0)
|
||||
<hr class="margin-top">
|
||||
<h3 class="text-muted">{{ trans('auth.social_login') }}</h3>
|
||||
@foreach($socialDrivers as $driver => $enabled)
|
||||
<a id="social-login-{{$driver}}" href="{{ baseUrl("/login/service/" . $driver) }}">@icon($driver, ['width' => 56])</a>
|
||||
|
||||
@foreach($socialDrivers as $driver => $name)
|
||||
<a id="social-login-{{$driver}}" class="button block muted-light svg text-left" href="{{ baseUrl("/login/service/" . $driver) }}">
|
||||
@icon($driver)
|
||||
{{ trans('auth.log_in_with', ['socialDriver' => $name]) }}
|
||||
</a>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
|
@ -35,11 +35,11 @@
|
||||
|
||||
@if(count($socialDrivers) > 0)
|
||||
<hr class="margin-top">
|
||||
<h3 class="text-muted">{{ trans('auth.social_registration') }}</h3>
|
||||
<p class="text-small">{{ trans('auth.social_registration_text') }}</p>
|
||||
@foreach($socialDrivers as $driver => $enabled)
|
||||
<a href="{{ baseUrl("/register/service/" . $driver) }}">@icon($driver, ['width' => 56])</a>
|
||||
|
||||
@foreach($socialDrivers as $driver => $name)
|
||||
<a id="social-register-{{$driver}}" class="button block muted-light svg text-left" href="{{ baseUrl("/register/service/" . $driver) }}">
|
||||
@icon($driver)
|
||||
{{ trans('auth.sign_up_with', ['socialDriver' => $name]) }}
|
||||
</a>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
|
@ -17,15 +17,16 @@
|
||||
<!-- Scripts -->
|
||||
<script src="{{ baseUrl('/libs/jquery/jquery.min.js?version=2.1.4') }}"></script>
|
||||
<script src="{{ baseUrl('/libs/jquery/jquery-ui.min.js?version=1.11.4') }}"></script>
|
||||
<script src="{{ baseUrl('/translations.js') }}"></script>
|
||||
<script src="{{ baseUrl('/translations') }}"></script>
|
||||
|
||||
@yield('head')
|
||||
|
||||
@include('partials/custom-styles')
|
||||
|
||||
@if(setting('app-custom-head') && \Route::currentRouteName() !== 'settings')
|
||||
<!-- Custom user content -->
|
||||
@if(setting('app-custom-head'))
|
||||
{!! setting('app-custom-head') !!}
|
||||
<!-- End custom user content -->
|
||||
@endif
|
||||
</head>
|
||||
<body class="@yield('body-class')" ng-app="bookStack">
|
||||
@ -55,15 +56,15 @@
|
||||
<div class="float right">
|
||||
<div class="links text-center">
|
||||
<a href="{{ baseUrl('/books') }}"><i class="zmdi zmdi-book"></i>{{ trans('entities.books') }}</a>
|
||||
@if(isset($currentUser) && userCan('settings-manage'))
|
||||
@if(signedInUser() && userCan('settings-manage'))
|
||||
<a href="{{ baseUrl('/settings') }}"><i class="zmdi zmdi-settings"></i>{{ trans('settings.settings') }}</a>
|
||||
@endif
|
||||
@if(!isset($signedIn) || !$signedIn)
|
||||
@if(!signedInUser())
|
||||
<a href="{{ baseUrl('/login') }}"><i class="zmdi zmdi-sign-in"></i>{{ trans('auth.log_in') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
@if(isset($signedIn) && $signedIn)
|
||||
@include('partials._header-dropdown', ['currentUser' => $currentUser])
|
||||
@if(signedInUser())
|
||||
@include('partials._header-dropdown', ['currentUser' => user()])
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
80
resources/views/books/export.blade.php
Normal file
80
resources/views/books/export.blade.php
Normal file
@ -0,0 +1,80 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>{{ $book->name }}</title>
|
||||
|
||||
<style>
|
||||
@if (!app()->environment('testing'))
|
||||
{!! file_get_contents(public_path('/css/export-styles.css')) !!}
|
||||
@endif
|
||||
.page-break {
|
||||
page-break-after: always;
|
||||
}
|
||||
.chapter-hint {
|
||||
color: #888;
|
||||
margin-top: 32px;
|
||||
}
|
||||
.chapter-hint + h1 {
|
||||
margin-top: 0;
|
||||
}
|
||||
ul.contents ul li {
|
||||
list-style: circle;
|
||||
}
|
||||
@media screen {
|
||||
.page-break {
|
||||
border-top: 1px solid #DDD;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@yield('head')
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="page-content">
|
||||
|
||||
<h1 style="font-size: 4.8em">{{$book->name}}</h1>
|
||||
|
||||
<p>{{ $book->description }}</p>
|
||||
|
||||
@if(count($bookChildren) > 0)
|
||||
<ul class="contents">
|
||||
@foreach($bookChildren as $bookChild)
|
||||
<li><a href="#{{$bookChild->getType()}}-{{$bookChild->id}}">{{ $bookChild->name }}</a></li>
|
||||
@if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
|
||||
<ul>
|
||||
@foreach($bookChild->pages as $page)
|
||||
<li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
@foreach($bookChildren as $bookChild)
|
||||
<div class="page-break"></div>
|
||||
<h1 id="{{$bookChild->getType()}}-{{$bookChild->id}}">{{ $bookChild->name }}</h1>
|
||||
@if($bookChild->isA('chapter'))
|
||||
<p>{{ $bookChild->description }}</p>
|
||||
@if(count($bookChild->pages) > 0)
|
||||
@foreach($bookChild->pages as $page)
|
||||
<div class="page-break"></div>
|
||||
<div class="chapter-hint">{{$bookChild->name}}</div>
|
||||
<h1 id="page-{{$page->id}}">{{ $page->name }}</h1>
|
||||
{!! $page->html !!}
|
||||
@endforeach
|
||||
@endif
|
||||
@else
|
||||
{!! $bookChild->html !!}
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -11,6 +11,6 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<a href="{{ back()->getTargetUrl() }}" class="button muted">{{ trans('common.cancel') }}</a>
|
||||
<a href="{{ isset($book) ? $book->getUrl() : baseUrl('/books') }}" class="button muted">{{ trans('common.cancel') }}</a>
|
||||
<button type="submit" class="button pos">{{ trans('entities.books_save') }}</button>
|
||||
</div>
|
@ -5,11 +5,19 @@
|
||||
<div class="faded-small toolbar">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6 faded">
|
||||
<div class="col-sm-6 faded">
|
||||
@include('books._breadcrumbs', ['book' => $book])
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-sm-6">
|
||||
<div class="action-buttons faded">
|
||||
<span dropdown class="dropdown-container">
|
||||
<div dropdown-toggle class="text-button text-primary"><i class="zmdi zmdi-open-in-new"></i>{{ trans('entities.export') }}</div>
|
||||
<ul class="wide">
|
||||
<li><a href="{{ $book->getUrl('/export/html') }}" target="_blank">{{ trans('entities.export_html') }} <span class="text-muted float right">.html</span></a></li>
|
||||
<li><a href="{{ $book->getUrl('/export/pdf') }}" target="_blank">{{ trans('entities.export_pdf') }} <span class="text-muted float right">.pdf</span></a></li>
|
||||
<li><a href="{{ $book->getUrl('/export/plaintext') }}" target="_blank">{{ trans('entities.export_text') }} <span class="text-muted float right">.txt</span></a></li>
|
||||
</ul>
|
||||
</span>
|
||||
@if(userCan('page-create', $book))
|
||||
<a href="{{ $book->getUrl('/page/create') }}" class="text-pos text-button"><i class="zmdi zmdi-plus"></i>{{ trans('entities.pages_new') }}</a>
|
||||
@endif
|
||||
|
54
resources/views/chapters/export.blade.php
Normal file
54
resources/views/chapters/export.blade.php
Normal file
@ -0,0 +1,54 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>{{ $chapter->name }}</title>
|
||||
|
||||
<style>
|
||||
@if (!app()->environment('testing'))
|
||||
{!! file_get_contents(public_path('/css/export-styles.css')) !!}
|
||||
@endif
|
||||
.page-break {
|
||||
page-break-after: always;
|
||||
}
|
||||
ul.contents ul li {
|
||||
list-style: circle;
|
||||
}
|
||||
@media screen {
|
||||
.page-break {
|
||||
border-top: 1px solid #DDD;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@yield('head')
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="page-content">
|
||||
|
||||
<h1 style="font-size: 4.8em">{{$chapter->name}}</h1>
|
||||
|
||||
<p>{{ $chapter->description }}</p>
|
||||
|
||||
@if(count($pages) > 0)
|
||||
<ul class="contents">
|
||||
@foreach($pages as $page)
|
||||
<li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
@foreach($pages as $page)
|
||||
<div class="page-break"></div>
|
||||
<h1 id="page-{{$page->id}}">{{ $page->name }}</h1>
|
||||
{!! $page->html !!}
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -10,6 +10,14 @@
|
||||
</div>
|
||||
<div class="col-sm-4 faded">
|
||||
<div class="action-buttons">
|
||||
<span dropdown class="dropdown-container">
|
||||
<div dropdown-toggle class="text-button text-primary"><i class="zmdi zmdi-open-in-new"></i>{{ trans('entities.export') }}</div>
|
||||
<ul class="wide">
|
||||
<li><a href="{{ $chapter->getUrl('/export/html') }}" target="_blank">{{ trans('entities.export_html') }} <span class="text-muted float right">.html</span></a></li>
|
||||
<li><a href="{{ $chapter->getUrl('/export/pdf') }}" target="_blank">{{ trans('entities.export_pdf') }} <span class="text-muted float right">.pdf</span></a></li>
|
||||
<li><a href="{{ $chapter->getUrl('/export/plaintext') }}" target="_blank">{{ trans('entities.export_text') }} <span class="text-muted float right">.txt</span></a></li>
|
||||
</ul>
|
||||
</span>
|
||||
@if(userCan('page-create', $chapter))
|
||||
<a href="{{ $chapter->getUrl('/create-page') }}" class="text-pos text-button"><i class="zmdi zmdi-plus"></i>{{ trans('entities.pages_new') }}</a>
|
||||
@endif
|
||||
|
@ -10,6 +10,7 @@
|
||||
<p>{{ trans('errors.sorry_page_not_found') }}</p>
|
||||
<p><a href="{{ baseUrl('/') }}" class="button">{{ trans('errors.return_home') }}</a></p>
|
||||
|
||||
@if (setting('app-public') || !user()->isDefault())
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
@ -26,6 +27,7 @@
|
||||
@include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Chapter::class]), 'style' => 'compact'])
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@stop
|
@ -5,7 +5,9 @@
|
||||
<title>{{ $page->name }}</title>
|
||||
|
||||
<style>
|
||||
{!! $css !!}
|
||||
@if (!app()->environment('testing'))
|
||||
{!! file_get_contents(public_path('/css/export-styles.css')) !!}
|
||||
@endif
|
||||
</style>
|
||||
@yield('head')
|
||||
</head>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div ng-non-bindable>
|
||||
|
||||
<h1 id="bkmrk-page-title" class="float left">{{$page->name}}</h1>
|
||||
<h1 id="bkmrk-page-title">{{$page->name}}</h1>
|
||||
|
||||
<div style="clear:left;"></div>
|
||||
|
||||
|
@ -30,11 +30,5 @@
|
||||
clear: both;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tag-display {
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
@stop
|
@ -11,11 +11,11 @@
|
||||
<div class="col-sm-6 faded">
|
||||
<div class="action-buttons">
|
||||
<span dropdown class="dropdown-container">
|
||||
<div dropdown-toggle class="text-button text-primary"><i class="zmdi zmdi-open-in-new"></i>{{ trans('entities.pages_export') }}</div>
|
||||
<div dropdown-toggle class="text-button text-primary"><i class="zmdi zmdi-open-in-new"></i>{{ trans('entities.export') }}</div>
|
||||
<ul class="wide">
|
||||
<li><a href="{{ $page->getUrl('/export/html') }}" target="_blank">{{ trans('entities.pages_export_html') }} <span class="text-muted float right">.html</span></a></li>
|
||||
<li><a href="{{ $page->getUrl('/export/pdf') }}" target="_blank">{{ trans('entities.pages_export_pdf') }} <span class="text-muted float right">.pdf</span></a></li>
|
||||
<li><a href="{{ $page->getUrl('/export/plaintext') }}" target="_blank">{{ trans('entities.pages_export_text') }} <span class="text-muted float right">.txt</span></a></li>
|
||||
<li><a href="{{ $page->getUrl('/export/html') }}" target="_blank">{{ trans('entities.export_html') }} <span class="text-muted float right">.html</span></a></li>
|
||||
<li><a href="{{ $page->getUrl('/export/pdf') }}" target="_blank">{{ trans('entities.export_pdf') }} <span class="text-muted float right">.pdf</span></a></li>
|
||||
<li><a href="{{ $page->getUrl('/export/plaintext') }}" target="_blank">{{ trans('entities.export_text') }} <span class="text-muted float right">.txt</span></a></li>
|
||||
</ul>
|
||||
</span>
|
||||
@if(userCan('page-update', $page))
|
||||
@ -110,11 +110,19 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
@include('pages/comments', ['pageId' => $page->id])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@include('partials/highlight')
|
||||
@stop
|
||||
|
||||
@section('scripts')
|
||||
<script>
|
||||
var defaultAvatar = '{{baseUrl('/user_avatar.png')}}';
|
||||
setupPageShow({{$page->id}});
|
||||
</script>
|
||||
@stop
|
||||
|
@ -21,6 +21,10 @@
|
||||
<form action="{{ baseUrl("/settings/users/create") }}" method="post">
|
||||
{!! csrf_field() !!}
|
||||
@include('users/forms/' . $authMethod)
|
||||
<div class="form-group">
|
||||
<a href="{{ baseUrl($currentUser->can('users-manage') ? "/settings/users" : "/") }}" class="button muted">{{ trans('common.cancel') }}</a>
|
||||
<button class="button pos" type="submit">{{ trans('common.save') }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
@ -19,13 +19,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6" ng-non-bindable>
|
||||
<div class="col-sm-6" ng-non-bindable>
|
||||
{!! csrf_field() !!}
|
||||
<input type="hidden" name="_method" value="put">
|
||||
@include('users.forms.' . $authMethod, ['model' => $user])
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group" id="logo-control">
|
||||
<label for="user-avatar">{{ trans('settings.users_avatar') }}</label>
|
||||
<p class="small">{{ trans('settings.users_avatar_desc') }}</p>
|
||||
@ -51,6 +51,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<a href="{{ baseUrl($currentUser->can('users-manage') ? "/settings/users" : "/") }}" class="button muted">{{ trans('common.cancel') }}</a>
|
||||
<button class="button pos" type="submit">{{ trans('common.save') }}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<hr class="margin-top large">
|
||||
@ -60,7 +64,7 @@
|
||||
<p class="text-muted">{{ trans('settings.users_social_accounts_info') }}</p>
|
||||
<div class="row">
|
||||
@foreach($activeSocialDrivers as $driver => $enabled)
|
||||
<div class="col-md-3 text-center">
|
||||
<div class="col-sm-3 col-xs-6 text-center">
|
||||
<div>@icon($driver, ['width' => 56])</div>
|
||||
<div>
|
||||
@if($user->hasSocialAccount($driver))
|
||||
|
@ -23,8 +23,3 @@
|
||||
@include('form.text', ['name' => 'external_auth_id'])
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="form-group">
|
||||
<a href="{{ baseUrl("/settings/users") }}" class="button muted">{{ trans('common.cancel') }}</a>
|
||||
<button class="button pos" type="submit">{{ trans('common.save') }}</button>
|
||||
</div>
|
@ -32,9 +32,3 @@
|
||||
<label for="password-confirm">{{ trans('auth.password_confirm') }}</label>
|
||||
@include('form.password', ['name' => 'password-confirm'])
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<a href="{{ baseUrl("/settings/users") }}" class="button muted">{{ trans('common.cancel') }}</a>
|
||||
<button class="button pos" type="submit">{{ trans('common.save') }}</button>
|
||||
</div>
|
||||
|
||||
|
@ -19,8 +19,3 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="form-group">
|
||||
<a href="{{ baseUrl("/settings/users") }}" class="button muted">{{ trans('common.cancel') }}</a>
|
||||
<button class="button pos" type="submit">{{ trans('common.save') }}</button>
|
||||
</div>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
Route::get('/translations.js', 'HomeController@getTranslations');
|
||||
Route::get('/translations', 'HomeController@getTranslations');
|
||||
|
||||
// Authenticated routes...
|
||||
Route::group(['middleware' => 'auth'], function () {
|
||||
@ -26,6 +26,9 @@ Route::group(['middleware' => 'auth'], function () {
|
||||
Route::get('/{slug}/delete', 'BookController@showDelete');
|
||||
Route::get('/{bookSlug}/sort', 'BookController@sort');
|
||||
Route::put('/{bookSlug}/sort', 'BookController@saveSort');
|
||||
Route::get('/{bookSlug}/export/html', 'BookController@exportHtml');
|
||||
Route::get('/{bookSlug}/export/pdf', 'BookController@exportPdf');
|
||||
Route::get('/{bookSlug}/export/plaintext', 'BookController@exportPlainText');
|
||||
|
||||
// Pages
|
||||
Route::get('/{bookSlug}/page/create', 'PageController@create');
|
||||
@ -64,6 +67,9 @@ Route::group(['middleware' => 'auth'], function () {
|
||||
Route::put('/{bookSlug}/chapter/{chapterSlug}/move', 'ChapterController@move');
|
||||
Route::get('/{bookSlug}/chapter/{chapterSlug}/edit', 'ChapterController@edit');
|
||||
Route::get('/{bookSlug}/chapter/{chapterSlug}/permissions', 'ChapterController@showRestrict');
|
||||
Route::get('/{bookSlug}/chapter/{chapterSlug}/export/pdf', 'ChapterController@exportPdf');
|
||||
Route::get('/{bookSlug}/chapter/{chapterSlug}/export/html', 'ChapterController@exportHtml');
|
||||
Route::get('/{bookSlug}/chapter/{chapterSlug}/export/plaintext', 'ChapterController@exportPlainText');
|
||||
Route::put('/{bookSlug}/chapter/{chapterSlug}/permissions', 'ChapterController@restrict');
|
||||
Route::get('/{bookSlug}/chapter/{chapterSlug}/delete', 'ChapterController@showDelete');
|
||||
Route::delete('/{bookSlug}/chapter/{chapterSlug}', 'ChapterController@destroy');
|
||||
@ -114,11 +120,11 @@ Route::group(['middleware' => 'auth'], function () {
|
||||
Route::get('/ajax/search/entities', 'SearchController@searchEntitiesAjax');
|
||||
|
||||
// Comments
|
||||
Route::post('/ajax/page/{pageId}/comment/', 'CommentController@add');
|
||||
Route::put('/ajax/page/comment/{id}', 'CommentController@update');
|
||||
Route::post('/ajax/page/{pageId}/comment/', 'CommentController@save');
|
||||
Route::put('/ajax/page/{pageId}/comment/{commentId}', 'CommentController@save');
|
||||
Route::delete('/ajax/comment/{id}', 'CommentController@destroy');
|
||||
Route::get('/ajax/page/{pageId}/comment/', 'CommentController@getLastXComments');
|
||||
Route::get('/ajax/page/{pageId}/comment/{id}/sub-comments', 'CommentController@getChildComments');
|
||||
Route::get('/ajax/page/{pageId}/comments/{commentId}/sub-comments', 'CommentController@getComments');
|
||||
Route::get('/ajax/page/{pageId}/comments/', 'CommentController@getComments');
|
||||
|
||||
// Links
|
||||
Route::get('/link/{id}', 'PageController@redirectFromLink');
|
||||
@ -136,7 +142,7 @@ Route::group(['middleware' => 'auth'], function () {
|
||||
|
||||
// Settings
|
||||
Route::group(['prefix' => 'settings'], function() {
|
||||
Route::get('/', 'SettingController@index');
|
||||
Route::get('/', 'SettingController@index')->name('settings');
|
||||
Route::post('/', 'SettingController@update');
|
||||
|
||||
// Users
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php namespace Tests;
|
||||
|
||||
|
||||
class ActivityTrackingTest extends BrowserKitTest
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php namespace Tests;
|
||||
|
||||
class AttachmentTest extends BrowserKitTest
|
||||
{
|
||||
@ -75,7 +75,6 @@ class AttachmentTest extends BrowserKitTest
|
||||
{
|
||||
$page = \BookStack\Page::first();
|
||||
$this->asAdmin();
|
||||
$admin = $this->getAdmin();
|
||||
$fileName = 'upload_test_file.txt';
|
||||
|
||||
$this->uploadFile($fileName, $page->id);
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php namespace Tests;
|
||||
|
||||
use BookStack\Notifications\ConfirmEmail;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
@ -88,7 +88,7 @@ class AuthTest extends BrowserKitTest
|
||||
->press('Resend Confirmation Email');
|
||||
|
||||
// Get confirmation and confirm notification matches
|
||||
$emailConfirmation = DB::table('email_confirmations')->where('user_id', '=', $dbUser->id)->first();
|
||||
$emailConfirmation = \DB::table('email_confirmations')->where('user_id', '=', $dbUser->id)->first();
|
||||
Notification::assertSentTo($dbUser, ConfirmEmail::class, function($notification, $channels) use ($emailConfirmation) {
|
||||
return $notification->token === $emailConfirmation->token;
|
||||
});
|
||||
@ -177,7 +177,7 @@ class AuthTest extends BrowserKitTest
|
||||
->seePageIs('/settings/users');
|
||||
|
||||
$userPassword = \BookStack\User::find($user->id)->password;
|
||||
$this->assertTrue(Hash::check('newpassword', $userPassword));
|
||||
$this->assertTrue(\Hash::check('newpassword', $userPassword));
|
||||
}
|
||||
|
||||
public function test_user_deletion()
|
||||
@ -238,7 +238,6 @@ class AuthTest extends BrowserKitTest
|
||||
Notification::assertSentTo($user, \BookStack\Notifications\ResetPassword::class);
|
||||
$n = Notification::sent($user, \BookStack\Notifications\ResetPassword::class);
|
||||
|
||||
$reset = DB::table('password_resets')->where('email', '=', 'admin@admin.com')->first();
|
||||
$this->visit('/password/reset/' . $n->first()->token)
|
||||
->see('Reset Password')
|
||||
->submitForm('Reset Password', [
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php namespace Tests;
|
||||
use BookStack\User;
|
||||
|
||||
class LdapTest extends BrowserKitTest
|
||||
@ -12,7 +12,7 @@ class LdapTest extends BrowserKitTest
|
||||
{
|
||||
parent::setUp();
|
||||
app('config')->set(['auth.method' => 'ldap', 'services.ldap.base_dn' => 'dc=ldap,dc=local', 'auth.providers.users.driver' => 'ldap']);
|
||||
$this->mockLdap = Mockery::mock(BookStack\Services\Ldap::class);
|
||||
$this->mockLdap = \Mockery::mock(\BookStack\Services\Ldap::class);
|
||||
$this->app['BookStack\Services\Ldap'] = $this->mockLdap;
|
||||
$this->mockUser = factory(User::class)->make();
|
||||
}
|
||||
@ -22,7 +22,7 @@ class LdapTest extends BrowserKitTest
|
||||
$this->mockLdap->shouldReceive('connect')->once()->andReturn($this->resourceId);
|
||||
$this->mockLdap->shouldReceive('setVersion')->once();
|
||||
$this->mockLdap->shouldReceive('searchAndGetEntries')->times(4)
|
||||
->with($this->resourceId, config('services.ldap.base_dn'), Mockery::type('string'), Mockery::type('array'))
|
||||
->with($this->resourceId, config('services.ldap.base_dn'), \Mockery::type('string'), \Mockery::type('array'))
|
||||
->andReturn(['count' => 1, 0 => [
|
||||
'uid' => [$this->mockUser->name],
|
||||
'cn' => [$this->mockUser->name],
|
||||
@ -50,7 +50,7 @@ class LdapTest extends BrowserKitTest
|
||||
$this->mockLdap->shouldReceive('setVersion')->once();
|
||||
$ldapDn = 'cn=test-user,dc=test' . config('services.ldap.base_dn');
|
||||
$this->mockLdap->shouldReceive('searchAndGetEntries')->times(2)
|
||||
->with($this->resourceId, config('services.ldap.base_dn'), Mockery::type('string'), Mockery::type('array'))
|
||||
->with($this->resourceId, config('services.ldap.base_dn'), \Mockery::type('string'), \Mockery::type('array'))
|
||||
->andReturn(['count' => 1, 0 => [
|
||||
'cn' => [$this->mockUser->name],
|
||||
'dn' => $ldapDn,
|
||||
@ -73,7 +73,7 @@ class LdapTest extends BrowserKitTest
|
||||
$this->mockLdap->shouldReceive('connect')->once()->andReturn($this->resourceId);
|
||||
$this->mockLdap->shouldReceive('setVersion')->once();
|
||||
$this->mockLdap->shouldReceive('searchAndGetEntries')->times(2)
|
||||
->with($this->resourceId, config('services.ldap.base_dn'), Mockery::type('string'), Mockery::type('array'))
|
||||
->with($this->resourceId, config('services.ldap.base_dn'), \Mockery::type('string'), \Mockery::type('array'))
|
||||
->andReturn(['count' => 1, 0 => [
|
||||
'uid' => [$this->mockUser->name],
|
||||
'cn' => [$this->mockUser->name],
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php namespace Tests;
|
||||
|
||||
class SocialAuthTest extends BrowserKitTest
|
||||
{
|
||||
@ -11,10 +11,10 @@ class SocialAuthTest extends BrowserKitTest
|
||||
$this->setSettings(['registration-enabled' => 'true']);
|
||||
config(['GOOGLE_APP_ID' => 'abc123', 'GOOGLE_APP_SECRET' => '123abc', 'APP_URL' => 'http://localhost']);
|
||||
|
||||
$mockSocialite = Mockery::mock('Laravel\Socialite\Contracts\Factory');
|
||||
$mockSocialite = \Mockery::mock('Laravel\Socialite\Contracts\Factory');
|
||||
$this->app['Laravel\Socialite\Contracts\Factory'] = $mockSocialite;
|
||||
$mockSocialDriver = Mockery::mock('Laravel\Socialite\Contracts\Provider');
|
||||
$mockSocialUser = Mockery::mock('\Laravel\Socialite\Contracts\User');
|
||||
$mockSocialDriver = \Mockery::mock('Laravel\Socialite\Contracts\Provider');
|
||||
$mockSocialUser = \Mockery::mock('\Laravel\Socialite\Contracts\User');
|
||||
|
||||
$mockSocialite->shouldReceive('driver')->twice()->with('google')->andReturn($mockSocialDriver);
|
||||
$mockSocialDriver->shouldReceive('redirect')->once()->andReturn(redirect('/'));
|
||||
@ -34,18 +34,16 @@ class SocialAuthTest extends BrowserKitTest
|
||||
|
||||
public function test_social_login()
|
||||
{
|
||||
$user = factory(\BookStack\User::class)->make();
|
||||
|
||||
config([
|
||||
'GOOGLE_APP_ID' => 'abc123', 'GOOGLE_APP_SECRET' => '123abc',
|
||||
'GITHUB_APP_ID' => 'abc123', 'GITHUB_APP_SECRET' => '123abc',
|
||||
'APP_URL' => 'http://localhost'
|
||||
]);
|
||||
|
||||
$mockSocialite = Mockery::mock('Laravel\Socialite\Contracts\Factory');
|
||||
$mockSocialite = \Mockery::mock('Laravel\Socialite\Contracts\Factory');
|
||||
$this->app['Laravel\Socialite\Contracts\Factory'] = $mockSocialite;
|
||||
$mockSocialDriver = Mockery::mock('Laravel\Socialite\Contracts\Provider');
|
||||
$mockSocialUser = Mockery::mock('\Laravel\Socialite\Contracts\User');
|
||||
$mockSocialDriver = \Mockery::mock('Laravel\Socialite\Contracts\Provider');
|
||||
$mockSocialUser = \Mockery::mock('\Laravel\Socialite\Contracts\User');
|
||||
|
||||
$mockSocialUser->shouldReceive('getId')->twice()->andReturn('logintest123');
|
||||
|
||||
@ -68,7 +66,7 @@ class SocialAuthTest extends BrowserKitTest
|
||||
->seePageIs('/login');
|
||||
|
||||
// Test social callback with matching social account
|
||||
DB::table('social_accounts')->insert([
|
||||
\DB::table('social_accounts')->insert([
|
||||
'user_id' => $this->getAdmin()->id,
|
||||
'driver' => 'github',
|
||||
'driver_id' => 'logintest123'
|
||||
|
@ -1,9 +1,12 @@
|
||||
<?php
|
||||
<?php namespace Tests;
|
||||
|
||||
use BookStack\Role;
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Laravel\BrowserKitTesting\TestCase;
|
||||
use Symfony\Component\DomCrawler\Crawler;
|
||||
|
||||
abstract class BrowserKitTest extends \Laravel\BrowserKitTesting\TestCase
|
||||
abstract class BrowserKitTest extends TestCase
|
||||
{
|
||||
|
||||
use DatabaseTransactions;
|
||||
@ -28,7 +31,7 @@ abstract class BrowserKitTest extends \Laravel\BrowserKitTesting\TestCase
|
||||
{
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
|
||||
return $app;
|
||||
}
|
||||
@ -48,7 +51,7 @@ abstract class BrowserKitTest extends \Laravel\BrowserKitTesting\TestCase
|
||||
*/
|
||||
public function getAdmin() {
|
||||
if($this->admin === null) {
|
||||
$adminRole = \BookStack\Role::getRole('admin');
|
||||
$adminRole = Role::getSystemRole('admin');
|
||||
$this->admin = $adminRole->users->first();
|
||||
}
|
||||
return $this->admin;
|
||||
@ -95,9 +98,9 @@ abstract class BrowserKitTest extends \Laravel\BrowserKitTesting\TestCase
|
||||
protected function createEntityChainBelongingToUser($creatorUser, $updaterUser = false)
|
||||
{
|
||||
if ($updaterUser === false) $updaterUser = $creatorUser;
|
||||
$book = factory(BookStack\Book::class)->create(['created_by' => $creatorUser->id, 'updated_by' => $updaterUser->id]);
|
||||
$chapter = factory(BookStack\Chapter::class)->create(['created_by' => $creatorUser->id, 'updated_by' => $updaterUser->id]);
|
||||
$page = factory(BookStack\Page::class)->create(['created_by' => $creatorUser->id, 'updated_by' => $updaterUser->id, 'book_id' => $book->id]);
|
||||
$book = factory(\BookStack\Book::class)->create(['created_by' => $creatorUser->id, 'updated_by' => $updaterUser->id]);
|
||||
$chapter = factory(\BookStack\Chapter::class)->create(['created_by' => $creatorUser->id, 'updated_by' => $updaterUser->id]);
|
||||
$page = factory(\BookStack\Page::class)->create(['created_by' => $creatorUser->id, 'updated_by' => $updaterUser->id, 'book_id' => $book->id]);
|
||||
$book->chapters()->saveMany([$chapter]);
|
||||
$chapter->pages()->saveMany([$page]);
|
||||
$restrictionService = $this->app[\BookStack\Services\PermissionService::class];
|
||||
@ -117,7 +120,7 @@ abstract class BrowserKitTest extends \Laravel\BrowserKitTesting\TestCase
|
||||
protected function getEditor($attributes = [])
|
||||
{
|
||||
$user = factory(\BookStack\User::class)->create($attributes);
|
||||
$role = \BookStack\Role::getRole('editor');
|
||||
$role = Role::getRole('editor');
|
||||
$user->attachRole($role);;
|
||||
return $user;
|
||||
}
|
||||
@ -211,7 +214,6 @@ abstract class BrowserKitTest extends \Laravel\BrowserKitTesting\TestCase
|
||||
/**
|
||||
* Check if the page contains the given element.
|
||||
* @param string $selector
|
||||
* @return bool
|
||||
*/
|
||||
protected function pageHasElement($selector)
|
||||
{
|
||||
@ -223,7 +225,6 @@ abstract class BrowserKitTest extends \Laravel\BrowserKitTesting\TestCase
|
||||
/**
|
||||
* Check if the page contains the given element.
|
||||
* @param string $selector
|
||||
* @return bool
|
||||
*/
|
||||
protected function pageNotHasElement($selector)
|
||||
{
|
||||
|
102
tests/CommandsTest.php
Normal file
102
tests/CommandsTest.php
Normal file
@ -0,0 +1,102 @@
|
||||
<?php namespace Tests;
|
||||
|
||||
use BookStack\JointPermission;
|
||||
use BookStack\Page;
|
||||
use BookStack\Repos\EntityRepo;
|
||||
|
||||
class CommandsTest extends TestCase
|
||||
{
|
||||
|
||||
public function test_clear_views_command()
|
||||
{
|
||||
$this->asEditor();
|
||||
$page = Page::first();
|
||||
|
||||
$this->get($page->getUrl());
|
||||
|
||||
$this->assertDatabaseHas('views', [
|
||||
'user_id' => $this->getEditor()->id,
|
||||
'viewable_id' => $page->id,
|
||||
'views' => 1
|
||||
]);
|
||||
|
||||
$exitCode = \Artisan::call('bookstack:clear-views');
|
||||
$this->assertTrue($exitCode === 0, 'Command executed successfully');
|
||||
|
||||
$this->assertDatabaseMissing('views', [
|
||||
'user_id' => $this->getEditor()->id
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_clear_activity_command()
|
||||
{
|
||||
$this->asEditor();
|
||||
$page = Page::first();
|
||||
\Activity::add($page, 'page_update', $page->book->id);
|
||||
|
||||
$this->assertDatabaseHas('activities', [
|
||||
'key' => 'page_update',
|
||||
'entity_id' => $page->id,
|
||||
'user_id' => $this->getEditor()->id
|
||||
]);
|
||||
|
||||
$exitCode = \Artisan::call('bookstack:clear-activity');
|
||||
$this->assertTrue($exitCode === 0, 'Command executed successfully');
|
||||
|
||||
|
||||
$this->assertDatabaseMissing('activities', [
|
||||
'key' => 'page_update'
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_clear_revisions_command()
|
||||
{
|
||||
$this->asEditor();
|
||||
$entityRepo = $this->app[EntityRepo::class];
|
||||
$page = Page::first();
|
||||
$entityRepo->updatePage($page, $page->book_id, ['name' => 'updated page', 'html' => '<p>new content</p>', 'summary' => 'page revision testing']);
|
||||
$entityRepo->updatePageDraft($page, ['name' => 'updated page', 'html' => '<p>new content in draft</p>', 'summary' => 'page revision testing']);
|
||||
|
||||
$this->assertDatabaseHas('page_revisions', [
|
||||
'page_id' => $page->id,
|
||||
'type' => 'version'
|
||||
]);
|
||||
$this->assertDatabaseHas('page_revisions', [
|
||||
'page_id' => $page->id,
|
||||
'type' => 'update_draft'
|
||||
]);
|
||||
|
||||
$exitCode = \Artisan::call('bookstack:clear-revisions');
|
||||
$this->assertTrue($exitCode === 0, 'Command executed successfully');
|
||||
|
||||
$this->assertDatabaseMissing('page_revisions', [
|
||||
'page_id' => $page->id,
|
||||
'type' => 'version'
|
||||
]);
|
||||
$this->assertDatabaseHas('page_revisions', [
|
||||
'page_id' => $page->id,
|
||||
'type' => 'update_draft'
|
||||
]);
|
||||
|
||||
$exitCode = \Artisan::call('bookstack:clear-revisions', ['--all' => true]);
|
||||
$this->assertTrue($exitCode === 0, 'Command executed successfully');
|
||||
|
||||
$this->assertDatabaseMissing('page_revisions', [
|
||||
'page_id' => $page->id,
|
||||
'type' => 'update_draft'
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_regen_permissions_command()
|
||||
{
|
||||
JointPermission::query()->truncate();
|
||||
$page = Page::first();
|
||||
|
||||
$this->assertDatabaseMissing('joint_permissions', ['entity_id' => $page->id]);
|
||||
|
||||
$exitCode = \Artisan::call('bookstack:regenerate-permissions');
|
||||
$this->assertTrue($exitCode === 0, 'Command executed successfully');
|
||||
|
||||
$this->assertDatabaseHas('joint_permissions', ['entity_id' => $page->id]);
|
||||
}
|
||||
}
|
18
tests/CreatesApplication.php
Normal file
18
tests/CreatesApplication.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php namespace Tests;
|
||||
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
|
||||
trait CreatesApplication
|
||||
{
|
||||
/**
|
||||
* Creates the application.
|
||||
*
|
||||
* @return \Illuminate\Foundation\Application
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
return $app;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user