forked from miguel456/rbrecruiter
Compare commits
196 Commits
Author | SHA1 | Date | |
---|---|---|---|
85c719c24d | |||
5df3f965ef | |||
4eb115d165 | |||
0433ce7693 | |||
773ec570d9 | |||
53c23f3698 | |||
f1db159eee | |||
0d14a65ee5 | |||
2942157603 | |||
11f3fb90d0 | |||
937a0206a5 | |||
3598a32ecf | |||
ac8b303e2c | |||
e93abd2ab7 | |||
20ab381076 | |||
e566e40404 | |||
b0a935b8b3 | |||
0dfb68dba2 | |||
24303052ad | |||
178bc31a6e | |||
98e557a840 | |||
95bf7c239e | |||
4d2595dd39 | |||
4e81a41210 | |||
1319ce6b86 | |||
bea83b650c | |||
675cc3c329 | |||
e8119b763c | |||
04838048ce | |||
87f8e63b24 | |||
7292aab4b7 | |||
9f3780d844 | |||
e37b38f2d9 | |||
c83e720a6d | |||
9241a83844 | |||
c6685331a8 | |||
9da9b8e6fc | |||
bb019f71e2 | |||
0cde3444ce | |||
b61fb5642e | |||
f7614916bf | |||
2ad1548cd6 | |||
43579c8fc9 | |||
0c9cea5c05 | |||
4371dd971c | |||
c57ace1ad9 | |||
c35b37d9b3 | |||
f25c9f7bc7 | |||
25cebeefab | |||
8b47dbe2e0 | |||
290dbe99b6 | |||
d7b506ec52 | |||
d41d94b934 | |||
b571d72eaf | |||
0c1f6f75eb | |||
5ea9e11a62 | |||
fbd1e83306 | |||
50ed47964c | |||
58d6a8ef1f | |||
d988b9a5cb | |||
eeae03dec5 | |||
c374100eed | |||
01e3a9edce | |||
d93170b555 | |||
8e85e08171 | |||
de3dba3627 | |||
f7a18816bc | |||
369185c4ed | |||
5ee79880d5 | |||
75d7181bca | |||
3fe3df7357 | |||
7e58c3af6b | |||
5ca155ba42 | |||
7c7c20d5b2 | |||
fdb508fd5a | |||
cbe660f4ad | |||
6e34b6b8fa | |||
60874c046f | |||
e9dd1567b8 | |||
a95c9518b3 | |||
af96d193a4 | |||
48054f0837 | |||
9b5e35b241 | |||
4c7783f366 | |||
af2c23a73c | |||
af17bbe468 | |||
17f61f0d6b | |||
a5aef7deb7 | |||
f32c4dc68c | |||
687316d77a | |||
ff70c21283 | |||
727c14d0c2 | |||
6b7d2db612 | |||
d743554df6 | |||
fd8bf4f0f2 | |||
bd530696d2 | |||
3040afd730 | |||
e7d2c548c0 | |||
f001a16d4d | |||
d8dbb1a0a2 | |||
4e1b4f5afd | |||
81c0b65404 | |||
a10f3f9c96 | |||
326e0f8c7c | |||
a0192cdb02 | |||
8f45563b24 | |||
004e9edcb0 | |||
fafc9dca87 | |||
800d205c74 | |||
3cd7292c36 | |||
36db8a1337 | |||
bcd11c462a | |||
6703ac89c1 | |||
fda34ad8bf | |||
2cde1cdbbe | |||
0bca7619f7 | |||
d223515d19 | |||
93fb7a8432 | |||
6bf0d9f373 | |||
db5d150758 | |||
348b1a37d0 | |||
86bf02bb42 | |||
6c45573fbe | |||
910863bdea | |||
884ff74f42 | |||
4f1935fbf2 | |||
3a53f3bbc2 | |||
6c08e839d6 | |||
362ce6c866 | |||
d336354482 | |||
88cf53c53d | |||
a5568be339 | |||
d393a8cedc | |||
62d5f68279 | |||
5c068a325d | |||
15c02c1de1 | |||
3782f79b51 | |||
0c53757912 | |||
6db69f997d | |||
edb2e4b2d6 | |||
baac37e967 | |||
5952ed9248 | |||
356483ef7b | |||
b80e168dfb | |||
9b469c434b | |||
ca3a06f248 | |||
1e2f331778 | |||
4a09fa581d | |||
c58b5b56d7 | |||
bf5d4058ad | |||
f871e14307 | |||
1e78a8e6d9 | |||
17fb0e236f | |||
27b1f3170b | |||
00cc36246f | |||
41e3e817a2 | |||
2afea88846 | |||
ea96cbc1f5 | |||
2996e66c8b | |||
a32af7c464 | |||
cd874c5f58 | |||
42de40e320 | |||
faa3a65e2b | |||
ba3a139d1c | |||
25ddf81118 | |||
9431eb5036 | |||
a3071dccf9 | |||
b0cbf65cfc | |||
6be5e241d4 | |||
d6c49a5cf0 | |||
075617fd32 | |||
da73c91b4a | |||
ca82f5882d | |||
88c36dd3f8 | |||
535a2c3973 | |||
ad5c3404cc | |||
64d418c590 | |||
62b063ee63 | |||
2c0c404d73 | |||
168f08bd96 | |||
94d08f1886 | |||
0cf6208577 | |||
9255a6c88d | |||
098205a969 | |||
bf426e3bdd | |||
02059bbcb0 | |||
91627decbe | |||
2763f777ab | |||
d392c0593f | |||
5f1f92a9ce | |||
9e2d571298 | |||
e16be5dc46 | |||
1a04880489 | |||
3693ce3431 | |||
4a766620ff | |||
bca6020ab0 |
12
.env.example
12
.env.example
@ -3,6 +3,9 @@ APP_ENV=local
|
||||
APP_KEY=
|
||||
APP_DEBUG=true
|
||||
APP_URL=http://localhost
|
||||
APP_LOGO="https://www.raspberrypi.org/app/uploads/2020/05/Raspberry-Pi-OS-downloads-image-150x150-1.png"
|
||||
APP_SITEHOMEPAGE=""
|
||||
# This can be your main homepage, other than this site itself
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
|
||||
@ -18,9 +21,6 @@ RECAPTCHA_PRIVATE_KEY=
|
||||
RECAPTCHA_VERIFY_URL="https://www.google.com/recaptcha/api/siteverify"
|
||||
# WARNING: Your contact form will be useless if you change this value. Only change this URL if Google updates it.
|
||||
|
||||
IPGEO_API_KEY=""
|
||||
IPGEO_API_URL=""
|
||||
|
||||
MOJANG_STATUS_URL="https://status.mojang.com/check"
|
||||
MOJANG_API_URL="https://api.mojang.com"
|
||||
|
||||
@ -29,7 +29,7 @@ IPGEO_API_URL="https://api.ipgeolocation.io/ipgeo"
|
||||
|
||||
ARCANEDEV_LOGVIEWER_MIDDLEWARE=web,auth,can:admin.maintenance.logs.view
|
||||
|
||||
RELEASE=staffmanagement@0.2.0
|
||||
RELEASE=staffmanagement@0.6.1
|
||||
|
||||
SLACK_INTEGRATION_WEBHOOK=
|
||||
|
||||
@ -65,4 +65,8 @@ PUSHER_APP_CLUSTER=mt1
|
||||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
||||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
||||
|
||||
# Mostly for developers, but with Papertrail, you can easily see what the app's users are doing without relying on
|
||||
# the internal log viewer.
|
||||
SENTRY_LARAVEL_DSN=
|
||||
PAPERTRAIL_URL=
|
||||
PAPERTRAIL_PORT
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
||||
/public/storage
|
||||
/storage/*.key
|
||||
/vendor
|
||||
/tools
|
||||
.env
|
||||
.env.backup
|
||||
.phpunit.result.cache
|
||||
|
2
.idea/hrm-mcserver.iml
generated
2
.idea/hrm-mcserver.iml
generated
@ -39,7 +39,9 @@
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/laravel/ui" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/league/commonmark" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/league/flysystem" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/league/mime-type-detection" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/maximebf/debugbar" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/mcamara/laravel-localization" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/mockery/mockery" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/monolog/monolog" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/myclabs/deep-copy" />
|
||||
|
14
.idea/php.xml
generated
14
.idea/php.xml
generated
@ -127,6 +127,20 @@
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/string" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-grapheme" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php80" />
|
||||
<path value="$PROJECT_DIR$/vendor/bacon/bacon-qr-code" />
|
||||
<path value="$PROJECT_DIR$/vendor/dasprid/enum" />
|
||||
<path value="$PROJECT_DIR$/vendor/geo-sot/laravel-env-editor" />
|
||||
<path value="$PROJECT_DIR$/vendor/laravel/slack-notification-channel" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php70" />
|
||||
<path value="$PROJECT_DIR$/vendor/pragmarx/google2fa-laravel" />
|
||||
<path value="$PROJECT_DIR$/vendor/pragmarx/google2fa" />
|
||||
<path value="$PROJECT_DIR$/vendor/pragmarx/google2fa-qrcode" />
|
||||
<path value="$PROJECT_DIR$/vendor/arcanedev/log-viewer" />
|
||||
<path value="$PROJECT_DIR$/vendor/arcanedev/support" />
|
||||
<path value="$PROJECT_DIR$/vendor/paragonie/constant_time_encoding" />
|
||||
<path value="$PROJECT_DIR$/vendor/graham-campbell/markdown" />
|
||||
<path value="$PROJECT_DIR$/vendor/league/mime-type-detection" />
|
||||
<path value="$PROJECT_DIR$/vendor/mcamara/laravel-localization" />
|
||||
</include_path>
|
||||
</component>
|
||||
<component name="PhpProjectSharedConfiguration" php_language_level="7.2" />
|
||||
|
5
.phive/phars.xml
Normal file
5
.phive/phars.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phive xmlns="https://phar.io/phive">
|
||||
<phar name="phpunit" version="^9.2.5" installed="9.2.5" location="./tools/phpunit" copy="false"/>
|
||||
<phar name="php-cs-fixer" version="^2.16.4" installed="2.16.4" location="./tools/php-cs-fixer" copy="false"/>
|
||||
</phive>
|
76
CODE_OF_CONDUCT.md
Normal file
76
CODE_OF_CONDUCT.md
Normal file
@ -0,0 +1,76 @@
|
||||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
In the interest of fostering an open and welcoming environment, we as
|
||||
contributors and maintainers pledge to making participation in our project and
|
||||
our community a harassment-free experience for everyone, regardless of age, body
|
||||
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
||||
level of experience, education, socio-economic status, nationality, personal
|
||||
appearance, race, religion, or sexual identity and orientation.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to creating a positive environment
|
||||
include:
|
||||
|
||||
* Using welcoming and inclusive language
|
||||
* Being respectful of differing viewpoints and experiences
|
||||
* Gracefully accepting constructive criticism
|
||||
* Focusing on what is best for the community
|
||||
* Showing empathy towards other community members
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||
advances
|
||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or electronic
|
||||
address, without explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Our Responsibilities
|
||||
|
||||
Project maintainers are responsible for clarifying the standards of acceptable
|
||||
behavior and are expected to take appropriate and fair corrective action in
|
||||
response to any instances of unacceptable behavior.
|
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or
|
||||
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||
permanently any contributor for other behaviors that they deem inappropriate,
|
||||
threatening, offensive, or harmful.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies both within project spaces and in public spaces
|
||||
when an individual is representing the project or its community. Examples of
|
||||
representing a project or community include using an official project e-mail
|
||||
address, posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event. Representation of a project may be
|
||||
further defined and clarified by project maintainers.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported by contacting the project team at support@spacejewel-hosting.com. All
|
||||
complaints will be reviewed and investigated and will result in a response that
|
||||
is deemed necessary and appropriate to the circumstances. The project team is
|
||||
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||
Further details of specific enforcement policies may be posted separately.
|
||||
|
||||
Project maintainers who do not follow or enforce the Code of Conduct in good
|
||||
faith may face temporary or permanent repercussions as determined by other
|
||||
members of the project's leadership.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see
|
||||
https://www.contributor-covenant.org/faq
|
29
CONTRIBUTING.md
Normal file
29
CONTRIBUTING.md
Normal file
@ -0,0 +1,29 @@
|
||||
# Thank you for contributing!
|
||||
|
||||
Read this file carefully before contributing to the project. It's important that everyone follows these rules to ensure smooth contribution.
|
||||
|
||||
## General workflow
|
||||
|
||||
Since the project is under version 1.0.0, the master branch can be quite unstable, and even unusable. For this reason, I recommend you stick to the published
|
||||
releases, unless you intend on helping out with the project.
|
||||
|
||||
New features are commited directly to the ``master`` branch, while translations are commited to a special service branch, merged onto ``translate``, tested, and
|
||||
merged back to master. Above version 1.0.0, new features should follow the same procedure as translations.
|
||||
|
||||
## Before commiting
|
||||
|
||||
Before commiting, make sure your code adheres to the Laravel coding guidelines, as well as PSR-4. I'll personally review and merge each PR.
|
||||
Thank you for your interest!
|
||||
|
||||
|
||||
# Bug reports
|
||||
|
||||
As always, bug reports should stick to the bug report template. GitHub makes this easy for you by letting you choose which issue template you'd like to use
|
||||
before reporting an isuse. This helps everyone stay in the same page.
|
||||
|
||||
Issues published without a template might take longer to be resolved, or may be ignored and marked ``wontfix``.
|
||||
|
||||
|
||||
# Licensing
|
||||
|
||||
Any contributions you make will be under the GNU GPL v3 license, which is the license that covers this project.
|
17
README.md
17
README.md
@ -1,10 +1,11 @@
|
||||
# Raspberry Teams - The Simple Staff Application Manager v 0.1.0
|
||||
## The quick and pain-free staff application manager (for Minecraft)
|
||||
|
||||
# RB Recruiter v 0.6.2 [](https://crowdin.com/project/raspberry-staff-manager)
|
||||
## The quick and pain-free form management solution for communities
|
||||
|
||||
Have you ever gotten tired of managing your Minecraft server/network's applications through Discord (or anything else) and having to scroll through hundreds of new messages just to find that one applicant's username?
|
||||
|
||||
|
||||
Wish you had a better application managemet strategy? Well, then Raspberry Teams is for you! It was originally designed and developed for internal use, but sharing is caring! After noticing a worrying lack of "human resources" management systems on SpigotMC's resources section (There was only one outdated/unsupported project), I've decided to take it up into my own terms and start working on it.
|
||||
Wish you had a better application managemet strategy? Well, then Raspberry Teams is for you! It was originally designed and developed for internal use for a gameserver network, but sharing is caring!
|
||||
|
||||
|
||||
# Features (not exhaustive)
|
||||
@ -46,6 +47,14 @@ Tech stack:
|
||||
- AdminLTE / Bootstrap 4
|
||||
- jQuery / Plain Javascript
|
||||
- vueJS (in the future)
|
||||
|
||||
# Stability
|
||||
|
||||
Currently, the ``master`` branch is highly unstable, since it's under active development. Expect it to break with each commit. Even though I make an effort to make sure each commit is good to go before pushing, things might still break unexpectedly, and you may find a lot of bugs (which you should report).
|
||||
|
||||
Every released version is currently pre-release. If you really want to run this before version ``1.0.0`` comes out, always stay on the latest version, as those will always be tested before release, ensuring less chaos.
|
||||
|
||||
*Note: This application is NOT production ready! It won't be until the first stable release comes out, which might take a bit longer.
|
||||
|
||||
# Operating System Requirements
|
||||
|
||||
@ -60,7 +69,7 @@ Tech stack:
|
||||
|
||||
- JSON
|
||||
- Curl (highly recommended)
|
||||
|
||||
- Image Magick (imagick) for 2FA support
|
||||
|
||||
# Installation
|
||||
|
||||
|
19
SECURITY.md
Normal file
19
SECURITY.md
Normal file
@ -0,0 +1,19 @@
|
||||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
The following versions are currently supported:
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 0.1.x | :x: |
|
||||
| 0.5.x | :x: |
|
||||
| 0.6.x | :white_check_mark: |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
To securely report a vulnerability, you may send me an email directly containing the details of said vulnerability: ``me@nogueira.codes``.
|
||||
|
||||
You may optionally encrypt your message with my [public PGP key](http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x48DF709E7405702B).
|
||||
|
||||
Use this free [online encryption tool](https://www.igolder.com/pgp/encryption/) if you don't know how to use PGP on your desktop.
|
@ -7,11 +7,13 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Appointment extends Model
|
||||
{
|
||||
public $fillable = [
|
||||
'appointmentDescription',
|
||||
'appointmentDate',
|
||||
'applicationID',
|
||||
'appointmentDescription',
|
||||
'appointmentDate',
|
||||
'applicationID',
|
||||
'appointmentStatus',
|
||||
'appointmentLocation'
|
||||
'appointmentLocation',
|
||||
'meetingNotes',
|
||||
'userAccepted'
|
||||
];
|
||||
|
||||
public function application()
|
||||
|
@ -8,7 +8,7 @@ class Ban extends Model
|
||||
{
|
||||
|
||||
public $fillable = [
|
||||
|
||||
|
||||
'userID',
|
||||
'reason',
|
||||
'bannedUntil',
|
||||
@ -16,7 +16,11 @@ class Ban extends Model
|
||||
'authorUserID'
|
||||
|
||||
];
|
||||
|
||||
|
||||
public $dates = [
|
||||
'bannedUntil'
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('App\User', 'userID', 'id');
|
||||
|
@ -99,12 +99,16 @@ class Install extends Command
|
||||
$settings['MAIL_PASSWORD'] = $this->secret('SMTP Password (Input won\'t be seen)');
|
||||
$settings['MAIL_PORT'] = $this->ask('SMTP Server Port');
|
||||
$settings['MAIL_HOST'] = $this->ask('SMTP Server Hostname');
|
||||
$settings['MAIL_FROM_ADDRESS'] = $this->ask('E-mail address to send from');
|
||||
|
||||
$this->info('== Notification Settings (5/6) (Slack) ==');
|
||||
$settings['SLACK_INTEGRATION_WEBHOOK'] = $this->ask('Integration webhook URL');
|
||||
|
||||
$this->info('== Web Settings (6/6) ==');
|
||||
$settings['APP_URL'] = $this->ask('Application\'s URL');
|
||||
$settings['APP_URL'] = $this->ask('Application\'s URL (ex. https://where.you.installed.theapp.com): ');
|
||||
$settings['APP_LOGO'] = $this->ask('App logo (Link to an image): ');
|
||||
$settings['APP_SITEHOMEPAGE'] = $this->ask('Site homepage (appears in the main header): ');
|
||||
|
||||
|
||||
} while(!$this->confirm('Are you sure you want to save these settings? You can always go back and try again.'));
|
||||
|
||||
|
@ -16,11 +16,6 @@ class IP
|
||||
public function lookup(string $IP): object
|
||||
{
|
||||
|
||||
if (empty($IP))
|
||||
{
|
||||
throw new LogicException(__METHOD__ . 'is missing parameter IP!');
|
||||
}
|
||||
|
||||
$params = [
|
||||
'apiKey' => config('general.keys.ipapi.apikey'),
|
||||
'ip' => $IP
|
||||
|
14
app/Facades/ContextAwareValidation.php
Normal file
14
app/Facades/ContextAwareValidation.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace App\Facades;
|
||||
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
class ContextAwareValidation extends Facade
|
||||
{
|
||||
|
||||
protected static function getFacadeAccessor()
|
||||
{
|
||||
return 'contextAwareValidator';
|
||||
}
|
||||
|
||||
}
|
13
app/Facades/Options.php
Normal file
13
app/Facades/Options.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\Facades;
|
||||
use \Illuminate\Support\Facades\Facade;
|
||||
|
||||
class Options extends Facade
|
||||
{
|
||||
public static function getFacadeAccessor()
|
||||
{
|
||||
return 'smOptions';
|
||||
}
|
||||
}
|
138
app/Helpers/ContextAwareValidator.php
Normal file
138
app/Helpers/ContextAwareValidator.php
Normal file
@ -0,0 +1,138 @@
|
||||
<?php
|
||||
|
||||
namespace App\Helpers;
|
||||
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class ContextAwareValidator
|
||||
{
|
||||
|
||||
/**
|
||||
* The excludedNames array will make the validator ignore any of these names when including names into the rules.
|
||||
* @var array
|
||||
*/
|
||||
private $excludedNames = [
|
||||
'_token',
|
||||
'_method',
|
||||
'formName'
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* Utility wrapper for json_encode.
|
||||
*
|
||||
* @param array $value The array to be converted.
|
||||
* @return string The JSON representation of $value
|
||||
*/
|
||||
private function encode(array $value) : string
|
||||
{
|
||||
return json_encode($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* The getValidator() method will take an array of fields from the request body, iterates through them,
|
||||
* and dynamically adds validation rules for them. Depending on parameters, it may or may not generate
|
||||
* a form structure for rendering purposes.
|
||||
*
|
||||
* This method is mostly meant by internal use by means of static proxies (Facades), in order to reduce code repetition;
|
||||
* Using it outside it's directed scope may cause unexpected results; For instance, the method expects inputs to be in array format, e.g. myFieldNameID1[],
|
||||
* myFieldNameID2[], and so on and so forth.
|
||||
*
|
||||
* This isn't checked by the code yet, but if you're implementing it this way in the HTML markup, make sure it's consistent (e.g. use a loop).
|
||||
*
|
||||
* P.S This method automatically ignores the CSRF token for validation.
|
||||
*
|
||||
* @param array $fields The request form fields
|
||||
* @param bool $generateStructure Whether to incldue a JSON-ready form structure for rendering
|
||||
* @param bool $includeFormName Whether to include formName in the list of validation rules
|
||||
* @return Validator|Collection A validator instance you can use to check for validity, or a Collection with a validator and structure (validator, structure)
|
||||
*/
|
||||
public function getValidator(array $fields, bool $generateStructure = false, bool $includeFormName = false)
|
||||
{
|
||||
$formStructure = [];
|
||||
$validator = [];
|
||||
|
||||
if ($includeFormName)
|
||||
{
|
||||
$validator['formName'] = 'required|string|max:100';
|
||||
}
|
||||
|
||||
foreach ($fields as $fieldName => $field)
|
||||
{
|
||||
if(!in_array($fieldName, $this->excludedNames))
|
||||
{
|
||||
$validator[$fieldName . ".0"] = 'required|string';
|
||||
$validator[$fieldName . ".1"] = 'required|string';
|
||||
|
||||
if ($generateStructure)
|
||||
{
|
||||
$formStructure['fields'][$fieldName]['title'] = $field[0];
|
||||
$formStructure['fields'][$fieldName]['type'] = $field[1];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$validatorInstance = Validator::make($fields, $validator);
|
||||
|
||||
return ($generateStructure) ?
|
||||
collect([
|
||||
'validator' => $validatorInstance,
|
||||
'structure' => $this->encode($formStructure)
|
||||
])
|
||||
: $validatorInstance;
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* The getResponseValidator method is similar to the getValidator method; It basically takes
|
||||
* an array of fields from a previous form (that probably went through the other method) and adds validation
|
||||
* to the field names.
|
||||
*
|
||||
* Also generates the storable response structure if you tell it to.
|
||||
*
|
||||
* @param array $fields The received fields
|
||||
* @param array $formStructure The form structure - You must supply this if you want the response structure
|
||||
* @param bool $generateResponseStructure Whether to generate the response structure
|
||||
* @return Validator|Collection A collection or a validator, depending on the args. Will return validatior if only fields are supplied.
|
||||
*/
|
||||
public function getResponseValidator(array $fields, array $formStructure = [], bool $generateResponseStructure = true)
|
||||
{
|
||||
|
||||
$responseStructure = [];
|
||||
$validator = [];
|
||||
|
||||
if (empty($formStructure) && $generateResponseStructure)
|
||||
{
|
||||
throw new \InvalidArgumentException('Illegal combination of arguments supplied! Please check the method\'s documentation.');
|
||||
}
|
||||
|
||||
foreach($fields as $fieldName => $value)
|
||||
{
|
||||
if(!in_array($fieldName, $this->excludedNames))
|
||||
{
|
||||
$validator[$fieldName] = 'required|string';
|
||||
|
||||
if ($generateResponseStructure)
|
||||
{
|
||||
$responseStructure['responses'][$fieldName]['type'] = $formStructure['fields'][$fieldName]['type'] ?? 'Unavailable';
|
||||
$responseStructure['responses'][$fieldName]['title'] = $formStructure['fields'][$fieldName]['title'];
|
||||
$responseStructure['responses'][$fieldName]['response'] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$validatorInstance = Validator::make($fields, $validator);
|
||||
|
||||
return ($generateResponseStructure) ?
|
||||
collect([
|
||||
'validator' => $validatorInstance,
|
||||
'responseStructure' => $this->encode($responseStructure)
|
||||
])
|
||||
: $validatorInstance;
|
||||
|
||||
}
|
||||
|
||||
}
|
94
app/Helpers/Options.php
Normal file
94
app/Helpers/Options.php
Normal file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\Helpers;
|
||||
|
||||
use App\Options as Option;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class Options
|
||||
{
|
||||
|
||||
public function getOption(string $option): string
|
||||
{
|
||||
$value = Cache::get($option);
|
||||
|
||||
if (is_null($value))
|
||||
{
|
||||
Log::debug('Option ' . $option . 'not found in cache, refreshing from database');
|
||||
$value = Option::where('option_name', $option)->first();
|
||||
if (is_null($value))
|
||||
throw new \Exception('This option does not exist.');
|
||||
|
||||
Cache::put($option, $value);
|
||||
Cache::put($option . '_desc', 'Undefined description');
|
||||
}
|
||||
|
||||
return $value->option_value;
|
||||
}
|
||||
|
||||
public function setOption(string $option, string $value, string $description)
|
||||
{
|
||||
Option::create([
|
||||
'option_name' => $option,
|
||||
'option_value' => $value,
|
||||
'friendly_name' => $description
|
||||
]);
|
||||
|
||||
Cache::put($option, $value, now()->addDay());
|
||||
Cache::put($option . '_desc', $description, now()->addDay());
|
||||
}
|
||||
|
||||
public function pullOption($option): array
|
||||
{
|
||||
$oldOption = Option::where('option_name', $option)->first();
|
||||
Option::find($oldOption->id)->delete();
|
||||
|
||||
// putMany is overkill here
|
||||
return [
|
||||
Cache::pull($option),
|
||||
Cache::pull($option . '_desc')
|
||||
];
|
||||
}
|
||||
|
||||
public function changeOption($option, $newValue)
|
||||
{
|
||||
$dbOption = Option::where('option_name', $option);
|
||||
|
||||
if ($dbOption->first())
|
||||
{
|
||||
$dbOptionInstance = Option::find($dbOption->first()->id);
|
||||
Cache::forget($option);
|
||||
|
||||
Log::debug('Changing db configuration option', [
|
||||
'old_value' => $dbOptionInstance->option_value,
|
||||
'new_value' => $newValue
|
||||
]);
|
||||
|
||||
$dbOptionInstance->option_value = $newValue;
|
||||
$dbOptionInstance->save();
|
||||
|
||||
Log::debug('New db configuration option saved',
|
||||
[
|
||||
'option' => $dbOptionInstance->option_value
|
||||
]);
|
||||
|
||||
Cache::put('option_name', $newValue, now()->addDay());
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new \Exception('This option does not exist.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function optionExists(string $option): bool
|
||||
{
|
||||
$dbOption = Option::where('option_name', $option)->first();
|
||||
$locallyCachedOption = Cache::get($option);
|
||||
|
||||
return !is_null($dbOption) || !is_null($locallyCachedOption);
|
||||
}
|
||||
|
||||
}
|
@ -18,8 +18,11 @@ use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
use ContextAwareValidator;
|
||||
|
||||
class ApplicationController extends Controller
|
||||
{
|
||||
|
||||
private function canVote($votes)
|
||||
{
|
||||
$allvotes = collect([]);
|
||||
@ -45,11 +48,8 @@ class ApplicationController extends Controller
|
||||
}
|
||||
|
||||
|
||||
public function showUserApp(Request $request, $applicationID)
|
||||
public function showUserApp(Request $request, Application $application)
|
||||
{
|
||||
// TODO: Inject it instead (do this where there is no injection, not just here)
|
||||
$application = Application::find($applicationID);
|
||||
|
||||
$this->authorize('view', $application);
|
||||
|
||||
if (!is_null($application))
|
||||
@ -78,6 +78,8 @@ class ApplicationController extends Controller
|
||||
|
||||
public function showAllApps()
|
||||
{
|
||||
$this->authorize('viewAny', Application::class);
|
||||
|
||||
return view('dashboard.appmanagement.all')
|
||||
->with('applications', Application::paginate(6));
|
||||
}
|
||||
@ -186,36 +188,16 @@ class ApplicationController extends Controller
|
||||
Log::info('Processing new application!');
|
||||
|
||||
$formStructure = json_decode($vacancy->first()->forms->formStructure, true);
|
||||
$responseStructure = [];
|
||||
|
||||
$excludedNames = [
|
||||
'_token',
|
||||
];
|
||||
|
||||
$validator = [];
|
||||
|
||||
foreach($request->all() as $fieldName => $value)
|
||||
{
|
||||
if(!in_array($fieldName, $excludedNames))
|
||||
{
|
||||
$validator[$fieldName] = 'required|string';
|
||||
|
||||
$responseStructure['responses'][$fieldName]['type'] = $formStructure['fields'][$fieldName]['type'] ?? 'Unavailable';
|
||||
$responseStructure['responses'][$fieldName]['title'] = $formStructure['fields'][$fieldName]['title'];
|
||||
$responseStructure['responses'][$fieldName]['response'] = $value;
|
||||
}
|
||||
}
|
||||
$responseValidation = ContextAwareValidator::getResponseValidator($request->all(), $formStructure);
|
||||
|
||||
Log::info('Built response & validator structure!');
|
||||
|
||||
$validation = Validator::make($request->all(), $validator);
|
||||
|
||||
if (!$validation->fails())
|
||||
if (!$responseValidation->get('validator')->fails())
|
||||
{
|
||||
$response = Response::create([
|
||||
'responseFormID' => $vacancy->first()->forms->id,
|
||||
'associatedVacancyID' => $vacancy->first()->id, // Since a form can be used by multiple vacancies, we can only know which specific vacancy this response ties to by using a vacancy ID
|
||||
'responseData' => json_encode($responseStructure)
|
||||
'responseData' => $responseValidation->get('responseStructure')
|
||||
]);
|
||||
|
||||
Log::info('Registered form response for user ' . Auth::user()->name . ' for vacancy ' . $vacancy->first()->vacancyName);
|
||||
@ -249,35 +231,27 @@ class ApplicationController extends Controller
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
public function updateApplicationStatus(Request $request, $applicationID, $newStatus)
|
||||
public function updateApplicationStatus(Request $request, Application $application, $newStatus)
|
||||
{
|
||||
$application = Application::find($applicationID);
|
||||
$this->authorize('update', Application::class);
|
||||
|
||||
if (!is_null($application))
|
||||
switch ($newStatus)
|
||||
{
|
||||
switch ($newStatus)
|
||||
{
|
||||
case 'deny':
|
||||
case 'deny':
|
||||
|
||||
event(new ApplicationDeniedEvent($application));
|
||||
break;
|
||||
event(new ApplicationDeniedEvent($application));
|
||||
break;
|
||||
|
||||
case 'interview':
|
||||
Log::info('User ' . Auth::user()->name . ' has moved application ID ' . $application->id . 'to interview stage');
|
||||
$request->session()->flash('success', 'Application moved to interview stage! (:');
|
||||
$application->setStatus('STAGE_INTERVIEW');
|
||||
case 'interview':
|
||||
Log::info('User ' . Auth::user()->name . ' has moved application ID ' . $application->id . 'to interview stage');
|
||||
$request->session()->flash('success', 'Application moved to interview stage! (:');
|
||||
$application->setStatus('STAGE_INTERVIEW');
|
||||
|
||||
$application->user->notify(new ApplicationMoved());
|
||||
break;
|
||||
$application->user->notify(new ApplicationMoved());
|
||||
break;
|
||||
|
||||
default:
|
||||
$request->session()->flash('error', 'There are no suitable statuses to update to. Do not mess with the URL.');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$request->session()->flash('The application you\'re trying to update does not exist.');
|
||||
default:
|
||||
$request->session()->flash('error', 'There are no suitable statuses to update to. Do not mess with the URL.');
|
||||
}
|
||||
|
||||
return redirect()->back();
|
||||
@ -291,7 +265,7 @@ class ApplicationController extends Controller
|
||||
|
||||
$request->session()->flash('success', 'Application deleted. Comments, appointments and responses have also been deleted.');
|
||||
return redirect()->back();
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -24,84 +24,60 @@ class AppointmentController extends Controller
|
||||
|
||||
];
|
||||
|
||||
public function saveAppointment(Request $request, $applicationID)
|
||||
public function saveAppointment(Request $request, Application $application)
|
||||
{
|
||||
// Unrelated TODO: change if's in application page to a switch statement, & have the row encompass it
|
||||
|
||||
$this->authorize('create', Appointment::class);
|
||||
$appointmentDate = Carbon::parse($request->appointmentDateTime);
|
||||
|
||||
$app = Application::find($applicationID);
|
||||
|
||||
if (!is_null($app))
|
||||
{
|
||||
// make sure this is a valid date by parsing it first
|
||||
$appointmentDate = Carbon::parse($request->appointmentDateTime);
|
||||
$appointment = Appointment::create([
|
||||
'appointmentDescription' => $request->appointmentDescription,
|
||||
'appointmentDate' => $appointmentDate->toDateTimeString(),
|
||||
'applicationID' => $application->id,
|
||||
'appointmentLocation' => (in_array($request->appointmentLocation, $this->allowedPlatforms)) ? $request->appointmentLocation : 'DISCORD',
|
||||
]);
|
||||
$application->setStatus('STAGE_INTERVIEW_SCHEDULED');
|
||||
|
||||
|
||||
$appointment = Appointment::create([
|
||||
'appointmentDescription' => $request->appointmentDescription,
|
||||
'appointmentDate' => $appointmentDate->toDateTimeString(),
|
||||
'applicationID' => $applicationID,
|
||||
'appointmentLocation' => (in_array($request->appointmentLocation, $this->allowedPlatforms)) ? $request->appointmentLocation : 'DISCORD',
|
||||
]);
|
||||
$app->setStatus('STAGE_INTERVIEW_SCHEDULED');
|
||||
Log::info('User ' . Auth::user()->name . ' has scheduled an appointment with ' . $application->user->name . ' for application ID' . $application->id, [
|
||||
'datetime' => $appointmentDate->toDateTimeString(),
|
||||
'scheduled' => now()
|
||||
]);
|
||||
|
||||
$application->user->notify(new AppointmentScheduled($appointment));
|
||||
$request->session()->flash('success', 'Appointment successfully scheduled @ ' . $appointmentDate->toDateTimeString());
|
||||
|
||||
Log::info('User ' . Auth::user()->name . ' has scheduled an appointment with ' . $app->user->name . ' for application ID' . $app->id, [
|
||||
'datetime' => $appointmentDate->toDateTimeString(),
|
||||
'scheduled' => now()
|
||||
]);
|
||||
|
||||
$app->user->notify(new AppointmentScheduled($appointment));
|
||||
$request->session()->flash('success', 'Appointment successfully scheduled @ ' . $appointmentDate->toDateTimeString());
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$request->session()->flash('error', 'Cant\'t schedule an appointment for an application that doesn\'t exist.');
|
||||
}
|
||||
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
public function updateAppointment(Request $request, $applicationID, $status)
|
||||
public function updateAppointment(Request $request, Application $application, $status)
|
||||
{
|
||||
$this->authorize('update', $application->appointment);
|
||||
|
||||
$this->authorize('update', Appointment::class);
|
||||
|
||||
$application = Application::find($applicationID);
|
||||
$validStatuses = [
|
||||
'SCHEDULED',
|
||||
'CONCLUDED'
|
||||
];
|
||||
|
||||
// NOTE: This is a little confusing, refactor
|
||||
$application->appointment->appointmentStatus = (in_array($status, $validStatuses)) ? strtoupper($status) : 'SCHEDULED';
|
||||
$application->appointment->save();
|
||||
|
||||
if (!is_null($application))
|
||||
{
|
||||
// NOTE: This is a little confusing, refactor
|
||||
$application->appointment->appointmentStatus = (in_array($status, $validStatuses)) ? strtoupper($status) : 'SCHEDULED';
|
||||
$application->appointment->save();
|
||||
$application->setStatus('STAGE_PEERAPPROVAL');
|
||||
$application->user->notify(new ApplicationMoved());
|
||||
|
||||
$application->setStatus('STAGE_PEERAPPROVAL');
|
||||
$application->user->notify(new ApplicationMoved());
|
||||
|
||||
$request->session()->flash('success', 'Interview finished! Staff members can now vote on it.');
|
||||
}
|
||||
else
|
||||
{
|
||||
$request->session()->flash('error', 'The application you\'re trying to update doesn\'t exist or have an appointment.');
|
||||
}
|
||||
|
||||
$request->session()->flash('success', 'Interview finished! Staff members can now vote on it.');
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
// also updates
|
||||
public function saveNotes(SaveNotesRequest $request, $applicationID)
|
||||
public function saveNotes(SaveNotesRequest $request, Application $application)
|
||||
{
|
||||
$application = Application::find($applicationID);
|
||||
|
||||
if (!is_null($application))
|
||||
{
|
||||
$application->load('appointment');
|
||||
|
||||
$application->appointment->meetingNotes = $request->noteText;
|
||||
$application->appointment->save();
|
||||
|
||||
@ -109,7 +85,7 @@ class AppointmentController extends Controller
|
||||
}
|
||||
else
|
||||
{
|
||||
$request->session()->flash('error', 'Sanity check failed: There\'s no appointment to save notes to!');
|
||||
$request->session()->flash('error', 'There\'s no appointment to save notes to!');
|
||||
}
|
||||
|
||||
return redirect()->back();
|
||||
|
@ -44,7 +44,7 @@ class LoginController extends Controller
|
||||
|
||||
// We can't customise the error message, since that would imply overriding the login method, which is large.
|
||||
// Also, the user should never know that they're banned.
|
||||
public function attemptLogin(Request $request)
|
||||
public function attemptLogin(Request $request)
|
||||
{
|
||||
$user = User::where('email', $request->email)->first();
|
||||
|
||||
@ -60,9 +60,9 @@ class LoginController extends Controller
|
||||
return $this->originalAttemptLogin($request);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $this->originalAttemptLogin($request);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -70,7 +70,7 @@ class RegisterController extends Controller
|
||||
'uuid' => ['required', 'string', 'unique:users', 'min:32', 'max:32'],
|
||||
'name' => ['required', 'string', 'max:255'],
|
||||
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
|
||||
'password' => ['required', 'string', 'min:8', 'confirmed'],
|
||||
'password' => ['required', 'string', 'min:10', 'confirmed', 'regex:/^.*(?=.{3,})(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[\d\x])(?=.*[!$#%]).*$/'],
|
||||
], [
|
||||
'uuid.required' => 'Please enter a valid (and Premium) Minecraft username! We do not support cracked users.'
|
||||
]);
|
||||
|
16
app/Http/Controllers/Auth/TwofaController.php
Normal file
16
app/Http/Controllers/Auth/TwofaController.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Traits\AuthenticatesTwoFactor;
|
||||
|
||||
class TwofaController extends Controller
|
||||
{
|
||||
use AuthenticatesTwoFactor;
|
||||
|
||||
|
||||
protected $redirectTo = '/dashboard';
|
||||
|
||||
}
|
@ -15,11 +15,7 @@ class BanController extends Controller
|
||||
public function insert(BanUserRequest $request, User $user)
|
||||
{
|
||||
|
||||
if ($user->is(Auth::user()))
|
||||
{
|
||||
$request->session()->flash('error', 'You can\'t ban yourself!');
|
||||
return redirect()->back();
|
||||
}
|
||||
$this->authorize('create', [Ban::class, $user]);
|
||||
|
||||
if (is_null($user->bans))
|
||||
{
|
||||
@ -28,35 +24,39 @@ class BanController extends Controller
|
||||
$duration = strtolower($request->durationOperator);
|
||||
$durationOperand = $request->durationOperand;
|
||||
|
||||
$expiryDate = now();
|
||||
|
||||
if (!empty($duration))
|
||||
{
|
||||
$expiryDate = now();
|
||||
|
||||
switch($duration)
|
||||
{
|
||||
case 'days':
|
||||
$expiryDate->addDays($duration);
|
||||
$expiryDate->addDays($durationOperand);
|
||||
break;
|
||||
|
||||
case 'weeks':
|
||||
$expiryDate->addWeeks($duration);
|
||||
$expiryDate->addWeeks($durationOperand);
|
||||
break;
|
||||
|
||||
case 'months':
|
||||
$expiryDate->addMonths($duration);
|
||||
$expiryDate->addMonths($durationOperand);
|
||||
break;
|
||||
|
||||
case 'years':
|
||||
$expiryDate->addYears($duration);
|
||||
$expiryDate->addYears($durationOperand);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Essentially permanent
|
||||
$expiryDate->addYears(5);
|
||||
}
|
||||
|
||||
$ban = Ban::create([
|
||||
'userID' => $user->id,
|
||||
'reason' => $request->reason,
|
||||
'bannedUntil' => $expiryDate->toDateTimeString() ?? null,
|
||||
'reason' => $reason,
|
||||
'bannedUntil' => $expiryDate->format('Y-m-d H:i:s'),
|
||||
'userAgent' => "Unknown",
|
||||
'authorUserID' => Auth::user()->id
|
||||
]);
|
||||
|
@ -22,7 +22,7 @@ class CommentController extends Controller
|
||||
public function insert(NewCommentRequest $request, Application $application)
|
||||
{
|
||||
$this->authorize('create', Comment::class);
|
||||
|
||||
|
||||
$comment = Comment::create([
|
||||
'authorID' => Auth::user()->id,
|
||||
'applicationID' => $application->id,
|
||||
@ -32,14 +32,6 @@ class CommentController extends Controller
|
||||
if ($comment)
|
||||
{
|
||||
|
||||
foreach (User::all() as $user)
|
||||
{
|
||||
if ($user->isStaffMember())
|
||||
{
|
||||
$user->notify(new NewComment($comment, $application));
|
||||
}
|
||||
}
|
||||
|
||||
$request->session()->flash('success', 'Comment posted! (:');
|
||||
}
|
||||
else
|
||||
|
@ -4,11 +4,23 @@ namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use GuzzleHttp;
|
||||
use App\Notifications\NewContact;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
use App\User;
|
||||
|
||||
class ContactController extends Controller
|
||||
{
|
||||
|
||||
protected $users;
|
||||
|
||||
|
||||
public function __construct(User $users)
|
||||
{
|
||||
$this->users = $users;
|
||||
}
|
||||
|
||||
|
||||
public function create(Request $request)
|
||||
{
|
||||
$name = $request->name;
|
||||
@ -18,12 +30,14 @@ class ContactController extends Controller
|
||||
|
||||
$challenge = $request->input('captcha');
|
||||
|
||||
// TODO: now: add middleware for this verification, move to invisible captcha
|
||||
$verifyrequest = Http::asForm()->post(config('recaptcha.verify.apiurl'), [
|
||||
'secret' => config('recaptcha.keys.secret'),
|
||||
'response' => $challenge,
|
||||
'remoteip' => $_SERVER['REMOTE_ADDR']
|
||||
'remoteip' => $request->ip()
|
||||
]);
|
||||
|
||||
|
||||
$response = json_decode($verifyrequest->getBody(), true);
|
||||
|
||||
if (!$response['success'])
|
||||
@ -32,7 +46,18 @@ class ContactController extends Controller
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
// TODO: Send mail
|
||||
|
||||
foreach(User::all() as $user)
|
||||
{
|
||||
if ($user->hasRole('admin'))
|
||||
{
|
||||
$user->notify(new NewContact(collect([
|
||||
'message' => $msg,
|
||||
'ip' => $request->ip(),
|
||||
'email' => $email
|
||||
])));
|
||||
}
|
||||
}
|
||||
|
||||
$request->session()->flash('success', 'Message sent successfully! We usually respond within 48 hours.');
|
||||
return redirect()->back();
|
||||
|
@ -6,16 +6,30 @@ use App\Application;
|
||||
use App\Events\ApplicationApprovedEvent;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class DevToolsController extends Controller
|
||||
{
|
||||
|
||||
// The use case for Laravel's gate and/or validation Requests is so tiny here that a full-blown policy would be overkill.
|
||||
protected function isolatedAuthorise()
|
||||
{
|
||||
if (!Auth::user()->can('admin.developertools.use'))
|
||||
{
|
||||
abort(403, 'You\'re not authorized to access this page.');
|
||||
}
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->isolatedAuthorise();
|
||||
return view('dashboard.administration.devtools')
|
||||
->with('applications', Application::where('applicationStatus', 'STAGE_PEERAPPROVAL')->get());
|
||||
}
|
||||
|
||||
public function forceVoteCount(Request $request)
|
||||
{
|
||||
$this->isolatedAuthorise();
|
||||
$application = Application::find($request->application);
|
||||
|
||||
if (!is_null($application))
|
||||
|
@ -7,6 +7,8 @@ use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
use ContextAwareValidator;
|
||||
|
||||
class FormController extends Controller
|
||||
{
|
||||
|
||||
@ -29,39 +31,17 @@ class FormController extends Controller
|
||||
{
|
||||
|
||||
$this->authorize('create', Form::class);
|
||||
$fields = $request->all();
|
||||
|
||||
$formFields = $request->all();
|
||||
$contextValidation = ContextAwareValidator::getValidator($fields, true, true);
|
||||
|
||||
$formStructure = [];
|
||||
$excludedNames = [
|
||||
'_token',
|
||||
'formName' // It's added outside the loop. Not excluding causes unwanted duplication.
|
||||
];
|
||||
$validator = [
|
||||
'formName' => 'required|string|max:100'
|
||||
];
|
||||
|
||||
foreach ($formFields as $fieldName => $field)
|
||||
if (!$contextValidation->get('validator')->fails())
|
||||
{
|
||||
if(!in_array($fieldName, $excludedNames))
|
||||
{
|
||||
$validator[$fieldName . ".0"] = 'required|string';
|
||||
$validator[$fieldName . ".1"] = 'required|string';
|
||||
|
||||
$formStructure['fields'][$fieldName]['title'] = $field[0];
|
||||
$formStructure['fields'][$fieldName]['type'] = $field[1];
|
||||
}
|
||||
}
|
||||
|
||||
$validation = Validator::make($formFields, $validator);
|
||||
|
||||
if (!$validation->fails())
|
||||
{
|
||||
$storableFormStructure = json_encode($formStructure);
|
||||
$storableFormStructure = $contextValidation->get('structure');
|
||||
|
||||
Form::create(
|
||||
[
|
||||
'formName' => $formFields['formName'],
|
||||
'formName' => $fields['formName'],
|
||||
'formStructure' => $storableFormStructure,
|
||||
'formStatus' => 'ACTIVE'
|
||||
]
|
||||
@ -71,14 +51,12 @@ class FormController extends Controller
|
||||
return redirect()->to(route('showForms'));
|
||||
}
|
||||
|
||||
$request->session()->flash('errors', $validation->errors()->getMessages());
|
||||
$request->session()->flash('errors', $contextValidation->get('validator')->errors()->getMessages());
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
public function destroy(Request $request, $id)
|
||||
public function destroy(Request $request, Form $form)
|
||||
{
|
||||
|
||||
$form = Form::find($id);
|
||||
$this->authorize('delete', $form);
|
||||
$deletable = true;
|
||||
|
||||
@ -105,9 +83,49 @@ class FormController extends Controller
|
||||
|
||||
public function preview(Request $request, Form $form)
|
||||
{
|
||||
$this->authorize('viewAny', Form::class);
|
||||
|
||||
return view('dashboard.administration.formpreview')
|
||||
->with('form', json_decode($form->formStructure, true))
|
||||
->with('title', $form->formName);
|
||||
->with('title', $form->formName)
|
||||
->with('formID', $form->id);
|
||||
}
|
||||
|
||||
public function edit(Request $request, Form $form)
|
||||
{
|
||||
$this->authorize('update', $form);
|
||||
|
||||
return view('dashboard.administration.editform')
|
||||
->with('formStructure', json_decode($form->formStructure, true))
|
||||
->with('title', $form->formName)
|
||||
->with('formID', $form->id);
|
||||
}
|
||||
|
||||
public function update(Request $request, Form $form)
|
||||
{
|
||||
$this->authorize('update', $form);
|
||||
|
||||
$contextValidation = ContextAwareValidator::getValidator($request->all(), true);
|
||||
$this->authorize('update', $form);
|
||||
|
||||
|
||||
if (!$contextValidation->get('validator')->fails())
|
||||
{
|
||||
// Add the new structure into the form. New, subsquent fields will be identified by the "new" prefix
|
||||
// This prefix doesn't actually change the app's behavior when it receives applications.
|
||||
// Additionally, old applications won't of course display new and updated fields, because we can't travel into the past and get data for them
|
||||
$form->formStructure = $contextValidation->get('structure');
|
||||
$form->save();
|
||||
|
||||
$request->session()->flash('success', 'Hooray! Your form was updated. New applications for it\'s vacancy will use it.');
|
||||
}
|
||||
else
|
||||
{
|
||||
$request->session()->flash('errors', $contextValidation->get('validator')->errors()->getMessages());
|
||||
}
|
||||
|
||||
return redirect()->to(route('previewForm', ['form' => $form->id]));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
77
app/Http/Controllers/OptionsController.php
Normal file
77
app/Http/Controllers/OptionsController.php
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Facades\Options;
|
||||
use App\Options as Option;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class OptionsController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Http\Response|\Illuminate\View\View
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
// TODO: Obtain this from the facade
|
||||
$options = Option::all();
|
||||
|
||||
|
||||
return view('dashboard.administration.settings')
|
||||
->with('options', $options);
|
||||
}
|
||||
|
||||
public function saveSettings(Request $request)
|
||||
{
|
||||
if (Auth::user()->can('admin.settings.edit'))
|
||||
{
|
||||
Log::debug('Updating application options', [
|
||||
'ip' => $request->ip(),
|
||||
'ua' => $request->userAgent(),
|
||||
'username' => Auth::user()->username
|
||||
]);
|
||||
foreach($request->all() as $optionName => $option)
|
||||
{
|
||||
try
|
||||
{
|
||||
Log::debug('Going through option ' . $optionName);
|
||||
if (Options::optionExists($optionName))
|
||||
{
|
||||
Log::debug('Option exists, updating to new values', [
|
||||
'opt' => $optionName,
|
||||
'new_value' => $option
|
||||
]);
|
||||
Options::changeOption($optionName, $option);
|
||||
}
|
||||
}
|
||||
catch(\Exception $ex)
|
||||
{
|
||||
Log::error('Unable to update options!', [
|
||||
'msg' => $ex->getMessage(),
|
||||
'trace' => $ex->getTraceAsString()
|
||||
]);
|
||||
report($ex);
|
||||
|
||||
$errorCond = true;
|
||||
$request->session()->flash('error', 'An error occurred while trying to save settings: ' . $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($errorCond))
|
||||
{
|
||||
$request->session()->flash('success', 'Settings saved successfully!');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$request->session()->flash('error', 'You do not have permission to update this resource.');
|
||||
}
|
||||
|
||||
return redirect()->back();
|
||||
}
|
||||
}
|
@ -87,7 +87,6 @@ class ProfileController extends Controller
|
||||
|
||||
public function saveProfile(ProfileSave $request)
|
||||
{
|
||||
// TODO: Switch to route model binding
|
||||
$profile = User::find(Auth::user()->id)->profile;
|
||||
$social = [];
|
||||
|
||||
@ -120,19 +119,6 @@ class ProfileController extends Controller
|
||||
$request->session()->flash('success', 'Profile settings saved successfully.');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$gm = 'Guru Meditation #' . rand(0, 1000);
|
||||
Log::alert('[GURU MEDITATION]: Could not find profile for authenticated user ' . Auth::user()->name . 'whilst trying to update it! Please verify that profiles are being created automatically during signup.',
|
||||
[
|
||||
'uuid' => Auth::user()->uuid,
|
||||
'timestamp' => now(),
|
||||
'route' => $request->route()->getName(),
|
||||
'gmcode' => $gm // If this error is reported, the GM code, denoting a severe error, will help us find this entry in the logs
|
||||
|
||||
]);
|
||||
$request->session()->flash('error', 'A technical error has occurred whilst trying to save your profile. Incident details have been recorded. Please report this incident to administrators with the following case number: ' . $gm);
|
||||
}
|
||||
|
||||
return redirect()->back();
|
||||
|
||||
|
@ -8,6 +8,8 @@ use App\Http\Requests\FlushSessionsRequest;
|
||||
use App\Http\Requests\DeleteUserRequest;
|
||||
use App\Http\Requests\SearchPlayerRequest;
|
||||
use App\Http\Requests\UpdateUserRequest;
|
||||
use App\Http\Requests\Add2FASecretRequest;
|
||||
use App\Http\Requests\Remove2FASecretRequest;
|
||||
|
||||
use App\User;
|
||||
use App\Ban;
|
||||
@ -21,6 +23,8 @@ use App\Notifications\EmailChanged;
|
||||
use App\Notifications\ChangedPassword;
|
||||
use Spatie\Permission\Models\Role;
|
||||
|
||||
use Google2FA;
|
||||
|
||||
class UserController extends Controller
|
||||
{
|
||||
|
||||
@ -112,10 +116,32 @@ class UserController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function showAccount()
|
||||
public function showAccount(Request $request)
|
||||
{
|
||||
$QRCode = null;
|
||||
|
||||
if (!$request->user()->has2FA())
|
||||
{
|
||||
if ($request->session()->has('twofaAttemptFailed'))
|
||||
{
|
||||
$twoFactorSecret = $request->session()->get('current2FA');
|
||||
}
|
||||
else
|
||||
{
|
||||
$twoFactorSecret = Google2FA::generateSecretKey(32, '');
|
||||
$request->session()->put('current2FA', $twoFactorSecret);
|
||||
}
|
||||
|
||||
$QRCode = Google2FA::getQRCodeInline(
|
||||
config('app.name'),
|
||||
$request->user()->email,
|
||||
$twoFactorSecret
|
||||
);
|
||||
}
|
||||
|
||||
return view('dashboard.user.profile.useraccount')
|
||||
->with('ip', request()->ip());
|
||||
->with('ip', request()->ip())
|
||||
->with('twofaQRCode', $QRCode);
|
||||
}
|
||||
|
||||
|
||||
@ -189,6 +215,9 @@ class UserController extends Controller
|
||||
|
||||
public function delete(DeleteUserRequest $request, User $user)
|
||||
{
|
||||
|
||||
$this->authorize('delete', $user);
|
||||
|
||||
if ($request->confirmPrompt == 'DELETE ACCOUNT')
|
||||
{
|
||||
$user->delete();
|
||||
@ -206,6 +235,8 @@ class UserController extends Controller
|
||||
public function update(UpdateUserRequest $request, User $user)
|
||||
{
|
||||
|
||||
$this->authorize('adminEdit', $user);
|
||||
|
||||
// Mass update would not be possible here without extra code, making route model binding useless
|
||||
$user->email = $request->email;
|
||||
$user->name = $request->name;
|
||||
@ -242,10 +273,67 @@ class UserController extends Controller
|
||||
|
||||
}
|
||||
|
||||
public function add2FASecret(Add2FASecretRequest $request)
|
||||
{
|
||||
$currentSecret = $request->session()->get('current2FA');
|
||||
$isValid = Google2FA::verifyKey($currentSecret, $request->otp);
|
||||
|
||||
if ($isValid)
|
||||
{
|
||||
$request->user()->twofa_secret = $currentSecret;
|
||||
$request->user()->save();
|
||||
|
||||
Log::warning('SECURITY: User activated two-factor authentication', [
|
||||
'initiator' => $request->user()->email,
|
||||
'ip' => $request->ip()
|
||||
]);
|
||||
|
||||
Google2FA::login();
|
||||
|
||||
Log::warning('SECURITY: Started two factor session automatically', [
|
||||
'initiator' => $request->user()->email,
|
||||
'ip' => $request->ip()
|
||||
]);
|
||||
|
||||
$request->session()->forget('current2FA');
|
||||
|
||||
if ($request->session()->has('twofaAttemptFailed'))
|
||||
$request->session()->forget('twofaAttemptFailed');
|
||||
|
||||
|
||||
$request->session()->flash('success', '2FA succesfully enabled! You\'ll now be prompted for an OTP each time you log in.');
|
||||
}
|
||||
else
|
||||
{
|
||||
$request->session()->flash('error', 'Incorrect code. Please reopen the 2FA settings panel and try again.');
|
||||
$request->session()->put('twofaAttemptFailed', true);
|
||||
}
|
||||
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
public function remove2FASecret(Remove2FASecretRequest $request)
|
||||
{
|
||||
Log::warning('SECURITY: Disabling two factor authentication (user initiated)', [
|
||||
'initiator' => $request->user()->email,
|
||||
'ip' => $request->ip()
|
||||
]);
|
||||
|
||||
$request->user()->twofa_secret = null;
|
||||
$request->user()->save();
|
||||
|
||||
$request->session()->flash('success', 'Two-factor authentication disabled.');
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function terminate(Request $request, User $user)
|
||||
{
|
||||
$this->authorize('terminate', User::class);
|
||||
|
||||
// TODO: move logic to policy
|
||||
if (!$user->isStaffMember() || $user->is(Auth::user()))
|
||||
{
|
||||
$request->session()->flash('error', 'You cannot terminate this user.');
|
||||
|
@ -64,10 +64,9 @@ class VacancyController extends Controller
|
||||
|
||||
}
|
||||
|
||||
public function updatePositionAvailability(Request $request, $status, $id)
|
||||
public function updatePositionAvailability(Request $request, $status, Vacancy $vacancy)
|
||||
{
|
||||
|
||||
$vacancy = Vacancy::find($id);
|
||||
$this->authorize('update', $vacancy);
|
||||
|
||||
if (!is_null($vacancy))
|
||||
@ -112,24 +111,24 @@ class VacancyController extends Controller
|
||||
}
|
||||
|
||||
|
||||
public function edit(Request $request, Vacancy $position)
|
||||
public function edit(Request $request, Vacancy $vacancy)
|
||||
{
|
||||
$this->authorize('update', $vacancy);
|
||||
return view('dashboard.administration.editposition')
|
||||
->with('vacancy', $position);
|
||||
->with('vacancy', $vacancy);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function update(VacancyEditRequest $request, Vacancy $position)
|
||||
public function update(VacancyEditRequest $request, Vacancy $vacancy)
|
||||
{
|
||||
$this->authorize('update', $vacancy);
|
||||
|
||||
$position->vacancyFullDescription = $request->vacancyFullDescription;
|
||||
$position->vacancyDescription = $request->vacancyDescription;
|
||||
$position->vacancyCount = $request->vacancyCount;
|
||||
$vacancy->vacancyFullDescription = $request->vacancyFullDescription;
|
||||
$vacancy->vacancyDescription = $request->vacancyDescription;
|
||||
$vacancy->vacancyCount = $request->vacancyCount;
|
||||
|
||||
$position->save();
|
||||
$vacancy->save();
|
||||
|
||||
$request->session()->flash('success', 'Vacancy successfully updated.');
|
||||
return redirect()->back();
|
||||
|
@ -13,33 +13,23 @@ use Illuminate\Support\Facades\Log;
|
||||
class VoteController extends Controller
|
||||
{
|
||||
|
||||
public function vote(VoteRequest $voteRequest, $applicationID)
|
||||
public function vote(VoteRequest $voteRequest, Application $application)
|
||||
{
|
||||
$application = Application::find($applicationID);
|
||||
$this->authorize('create', Vote::class);
|
||||
|
||||
if (!is_null($application))
|
||||
{
|
||||
$vote = Vote::create([
|
||||
'userID' => Auth::user()->id,
|
||||
'allowedVoteType' => $voteRequest->voteType,
|
||||
]);
|
||||
$vote = Vote::create([
|
||||
'userID' => Auth::user()->id,
|
||||
'allowedVoteType' => $voteRequest->voteType,
|
||||
]);
|
||||
$vote->application()->attach($application->id);
|
||||
|
||||
$vote->application()->attach($applicationID);
|
||||
|
||||
Log::info('User ' . Auth::user()->name . ' has voted in applicant ' . $application->user->name . '\'s application', [
|
||||
'voteType' => $voteRequest->voteType
|
||||
]);
|
||||
|
||||
$voteRequest->session()->flash('success', 'Your vote has been registered! You will now be notified about the outcome of this application.');
|
||||
}
|
||||
else
|
||||
{
|
||||
$voteRequest->session()->flash('error', 'Can\t vote a non existant application!');
|
||||
}
|
||||
Log::info('User ' . Auth::user()->name . ' has voted in applicant ' . $application->user->name . '\'s application', [
|
||||
'voteType' => $voteRequest->voteType
|
||||
]);
|
||||
$voteRequest->session()->flash('success', 'Your vote has been registered!');
|
||||
|
||||
// Cron job will run command that processes votes
|
||||
|
||||
return redirect()->back();
|
||||
}
|
||||
}
|
||||
|
@ -64,6 +64,12 @@ class Kernel extends HttpKernel
|
||||
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
|
||||
'eligibility' => \App\Http\Middleware\ApplicationEligibility::class,
|
||||
'usernameUUID' => \App\Http\Middleware\UsernameUUID::class,
|
||||
'forcelogout' => \App\Http\Middleware\ForceLogoutMiddleware::class
|
||||
'forcelogout' => \App\Http\Middleware\ForceLogoutMiddleware::class,
|
||||
'2fa' => \PragmaRX\Google2FALaravel\Middleware::class,
|
||||
'localize' => \Mcamara\LaravelLocalization\Middleware\LaravelLocalizationRoutes::class,
|
||||
'localizationRedirect' => \Mcamara\LaravelLocalization\Middleware\LaravelLocalizationRedirectFilter::class,
|
||||
'localeSessionRedirect' => \Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect::class,
|
||||
'localeCookieRedirect' => \Mcamara\LaravelLocalization\Middleware\LocaleCookieRedirect::class,
|
||||
'localeViewPath' => \Mcamara\LaravelLocalization\Middleware\LaravelLocalizationViewPath::class
|
||||
];
|
||||
}
|
||||
|
@ -12,12 +12,12 @@ class TrustProxies extends Middleware
|
||||
*
|
||||
* @var array|string
|
||||
*/
|
||||
protected $proxies;
|
||||
protected $proxies = "*";
|
||||
|
||||
/**
|
||||
* The headers that should be used to detect proxies.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $headers = Request::HEADER_X_FORWARDED_ALL;
|
||||
protected $headers = Request::HEADER_X_FORWARDED_AWS_ELB;
|
||||
}
|
||||
|
31
app/Http/Requests/Add2FASecretRequest.php
Normal file
31
app/Http/Requests/Add2FASecretRequest.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Add2FASecretRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
// current logic only updates currently authenticated user
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'otp' => 'required|string|min:6|max:6'
|
||||
];
|
||||
}
|
||||
}
|
@ -27,7 +27,7 @@ class BanUserRequest extends FormRequest
|
||||
{
|
||||
return [
|
||||
'reason' => 'required|string',
|
||||
'durationOperand' => 'nullable|integer',
|
||||
'durationOperand' => 'nullable|string',
|
||||
'durationOperator' => 'nullable|string'
|
||||
];
|
||||
}
|
||||
|
31
app/Http/Requests/Remove2FASecretRequest.php
Normal file
31
app/Http/Requests/Remove2FASecretRequest.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Remove2FASecretRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'currentPassword' => 'required|password',
|
||||
'consent' => 'required|accepted'
|
||||
];
|
||||
}
|
||||
}
|
45
app/Listeners/LogAuthenticationFailure.php
Normal file
45
app/Listeners/LogAuthenticationFailure.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners;
|
||||
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class LogAuthenticationFailure
|
||||
{
|
||||
/**
|
||||
* Create the event listener.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @param object $event
|
||||
* @return void
|
||||
*/
|
||||
public function handle($event)
|
||||
{
|
||||
$targetAccountID = 0;
|
||||
$originalIP = "0.0.0.0";
|
||||
|
||||
if (isset($event->user->id))
|
||||
{
|
||||
$targetAccountID = $event->user->id;
|
||||
}
|
||||
|
||||
Log::alert('SECURITY (login): Detected failed authentication attempt!', [
|
||||
'targetAccountID' => $targetAccountID,
|
||||
'existingAccount' => ($targetAccountID == 0) ? false : true,
|
||||
'sourceIP' => request()->ip(),
|
||||
'matchesAccountLastIP' => request()->ip() == $originalIP,
|
||||
'sourceUserAgent' => request()->userAgent(),
|
||||
]);
|
||||
}
|
||||
}
|
36
app/Listeners/LogAuthenticationSuccess.php
Normal file
36
app/Listeners/LogAuthenticationSuccess.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners;
|
||||
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class LogAuthenticationSuccess
|
||||
{
|
||||
/**
|
||||
* Create the event listener.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @param object $event
|
||||
* @return void
|
||||
*/
|
||||
public function handle($event)
|
||||
{
|
||||
Log::info('SECURITY (postauth-pre2fa): Detected successful login attempt', [
|
||||
'accountID' => $event->user->id,
|
||||
'sourceIP' => request()->ip(),
|
||||
'matchesAccountLastIP' => request()->ip() == $event->user->originalIP,
|
||||
'sourceUserAgent' => request()->userAgent(),
|
||||
]);
|
||||
}
|
||||
}
|
@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use App\Facades\Options;
|
||||
use App\Traits\Cancellable;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
@ -11,7 +13,7 @@ use App\Application;
|
||||
|
||||
class ApplicationApproved extends Notification implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
use Queueable, Cancellable;
|
||||
|
||||
public $application;
|
||||
|
||||
@ -24,15 +26,15 @@ class ApplicationApproved extends Notification implements ShouldQueue
|
||||
{
|
||||
$this->application = $application;
|
||||
}
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
|
||||
public function channels()
|
||||
{
|
||||
return ['mail', 'slack'];
|
||||
return $this->chooseChannelsViaOptions();
|
||||
}
|
||||
|
||||
public function optOut($notifiable)
|
||||
{
|
||||
return Options::getOption('notify_applicant_approved') !== 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -52,7 +52,7 @@ class ApplicationDenied extends Notification implements ShouldQueue
|
||||
->line('Your most recent application has been denied.')
|
||||
->line('Our review team denies applications for several reasons, including poor answers.')
|
||||
->line('Please review your application and try again in 30 days.')
|
||||
->action('Review application', url(route('showUserApp', ['id' => $this->application->id])))
|
||||
->action('Review application', url(route('showUserApp', ['application' => $this->application->id])))
|
||||
->line('Better luck next time!');
|
||||
}
|
||||
|
||||
|
@ -6,10 +6,12 @@ use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Notifications\Notification;
|
||||
use App\Traits\Cancellable;
|
||||
use App\Facades\Options;
|
||||
|
||||
class ApplicationMoved extends Notification implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
use Queueable, Cancellable;
|
||||
|
||||
/**
|
||||
* Create a new notification instance.
|
||||
@ -21,15 +23,9 @@ class ApplicationMoved extends Notification implements ShouldQueue
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
public function optOut($notifiable)
|
||||
{
|
||||
return ['mail'];
|
||||
return Options::getOption('notify_application_status_change') !== 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -10,9 +10,12 @@ use Illuminate\Notifications\Notification;
|
||||
use App\Application;
|
||||
use App\Vacancy;
|
||||
|
||||
use App\Traits\Cancellable;
|
||||
use App\Facades\Options;
|
||||
|
||||
class NewApplicant extends Notification implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
use Queueable, Cancellable;
|
||||
|
||||
|
||||
protected $application;
|
||||
@ -31,15 +34,19 @@ class NewApplicant extends Notification implements ShouldQueue
|
||||
$this->vacancy = $vacancy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
public function channels()
|
||||
{
|
||||
return ['slack'];
|
||||
if (Options::getOption('enable_slack_notifications') == 1)
|
||||
{
|
||||
return ['slack'];
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
public function optOut($notifiable)
|
||||
{
|
||||
return Options::getOption('notify_new_user') !== 1;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -55,7 +62,7 @@ class NewApplicant extends Notification implements ShouldQueue
|
||||
->subject(config('app.name') . ' - New application')
|
||||
->line('Someone has just applied for a position. Check it out!')
|
||||
->line('You are receiving this because you\'re a staff member at ' . config('app.name') . '.')
|
||||
->action('View Application', url(route('showUserApp', ['id' => $this->application->id])))
|
||||
->action('View Application', url(route('showUserApp', ['application' => $this->application->id])))
|
||||
->line('Thank you!');
|
||||
}
|
||||
|
||||
@ -67,7 +74,7 @@ class NewApplicant extends Notification implements ShouldQueue
|
||||
$vacancyDetails['name'] = $this->vacancy->vacancyName;
|
||||
$vacancyDetails['slots'] = $this->vacancy->vacancyCount;
|
||||
|
||||
$url = route('showUserApp', ['id' => $this->application->id]);
|
||||
$url = route('showUserApp', ['application' => $this->application->id]);
|
||||
$applicant = $this->application->user->name;
|
||||
|
||||
return (new SlackMessage)
|
||||
|
@ -8,10 +8,12 @@ use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Notifications\Notification;
|
||||
use App\Comment;
|
||||
use App\Application;
|
||||
use App\Traits\Cancellable;
|
||||
use App\Facades\Options;
|
||||
|
||||
class NewComment extends Notification implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
use Queueable, Cancellable;
|
||||
|
||||
|
||||
protected $application;
|
||||
@ -26,15 +28,9 @@ class NewComment extends Notification implements ShouldQueue
|
||||
$this->application = $application;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
public function optOut($notifiable)
|
||||
{
|
||||
return ['mail'];
|
||||
return Options::getOption('notify_application_comment') !== 1;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -50,7 +46,7 @@ class NewComment extends Notification implements ShouldQueue
|
||||
->subject(config('app.name') . ' - New comment')
|
||||
->line('Someone has just posted a new comment on an application you follow.')
|
||||
->line('You\'re receiving this email because you\'ve voted/commented on this application.')
|
||||
->action('Check it out', url(route('showUserApp', ['id' => $this->application->id])))
|
||||
->action('Check it out', url(route('showUserApp', ['application' => $this->application->id])))
|
||||
->line('Thank you!');
|
||||
}
|
||||
|
||||
|
78
app/Notifications/NewContact.php
Normal file
78
app/Notifications/NewContact.php
Normal file
@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Notifications\Notification;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class NewContact extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* Create a new notification instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Collection $message)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
{
|
||||
return ['mail'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the mail representation of the notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||
*/
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
if ($this->message->has([
|
||||
'message',
|
||||
'ip',
|
||||
'email'
|
||||
]))
|
||||
{
|
||||
return (new MailMessage)
|
||||
->line('We\'ve received a new contact form submission in the StaffManagement app center.')
|
||||
->line('This is what they sent: ')
|
||||
->line('')
|
||||
->line($this->message->get('message'))
|
||||
->line('')
|
||||
->line('This message was received from ' . $this->message->get('ip') . ' and submitted by ' . $this->message->get('email') . '.')
|
||||
->action('Sign in', url(route('login')))
|
||||
->line('Thank you!');
|
||||
}
|
||||
|
||||
throw new \InvalidArgumentException("Invalid arguments supplied to NewContact!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the array representation of the notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($notifiable)
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
@ -10,10 +10,12 @@ use Illuminate\Notifications\Messages\SlackMessage;
|
||||
|
||||
use App\User;
|
||||
use App\Facades\UUID;
|
||||
use App\Traits\Cancellable;
|
||||
use App\Facades\Options;
|
||||
|
||||
class NewUser extends Notification implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
use Queueable, Cancellable;
|
||||
|
||||
public $user;
|
||||
|
||||
@ -27,18 +29,14 @@ class NewUser extends Notification implements ShouldQueue
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
public function channels($notifiable)
|
||||
{
|
||||
return ($notifiable->isStaffMember())
|
||||
? ['slack', 'mail']
|
||||
: ['mail'];
|
||||
return $this->chooseChannelsViaOptions();
|
||||
}
|
||||
|
||||
public function optOut($notifiable)
|
||||
{
|
||||
return Options::getOption('notify_new_user') !== 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -9,10 +9,12 @@ use Illuminate\Notifications\Notification;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
use App\Vacancy;
|
||||
use App\Facades\Options;
|
||||
use App\Traits\Cancellable;
|
||||
|
||||
class VacancyClosed extends Notification implements ShouldQueue
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
use Queueable, SerializesModels, Cancellable;
|
||||
|
||||
protected $vacancy;
|
||||
|
||||
@ -26,15 +28,9 @@ class VacancyClosed extends Notification implements ShouldQueue
|
||||
$this->vacancy = $vacancy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
public function optOut($notifiable)
|
||||
{
|
||||
return ['mail'];
|
||||
return Options::getOption('notify_vacancystatus_change') !== 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3,6 +3,7 @@
|
||||
namespace App\Observers;
|
||||
|
||||
use App\Application;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class ApplicationObserver
|
||||
{
|
||||
@ -55,7 +56,7 @@ class ApplicationObserver
|
||||
}
|
||||
}
|
||||
|
||||
// application can now be deleted
|
||||
// application can now be deleted
|
||||
}
|
||||
|
||||
/**
|
||||
|
13
app/Options.php
Normal file
13
app/Options.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Options extends Model
|
||||
{
|
||||
public $fillable = [
|
||||
'option_name',
|
||||
'option_value'
|
||||
];
|
||||
}
|
@ -13,7 +13,7 @@ class AppointmentPolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param User $user
|
||||
* @return mixed
|
||||
*/
|
||||
public function viewAny(User $user)
|
||||
@ -24,8 +24,8 @@ class AppointmentPolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param \App\Appointment $appointment
|
||||
* @param User $user
|
||||
* @param Appointment $appointment
|
||||
* @return mixed
|
||||
*/
|
||||
public function view(User $user, Appointment $appointment)
|
||||
@ -36,7 +36,7 @@ class AppointmentPolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param User $user
|
||||
* @return mixed
|
||||
*/
|
||||
public function create(User $user)
|
||||
@ -47,8 +47,8 @@ class AppointmentPolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param \App\Appointment $appointment
|
||||
* @param User $user
|
||||
* @param Appointment $appointment
|
||||
* @return mixed
|
||||
*/
|
||||
public function update(User $user, Appointment $appointment)
|
||||
@ -59,8 +59,8 @@ class AppointmentPolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param \App\Appointment $appointment
|
||||
* @param User $user
|
||||
* @param Appointment $appointment
|
||||
* @return mixed
|
||||
*/
|
||||
public function delete(User $user, Appointment $appointment)
|
||||
@ -71,8 +71,8 @@ class AppointmentPolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param \App\Appointment $appointment
|
||||
* @param User $user
|
||||
* @param Appointment $appointment
|
||||
* @return mixed
|
||||
*/
|
||||
public function restore(User $user, Appointment $appointment)
|
||||
@ -83,8 +83,8 @@ class AppointmentPolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param \App\Appointment $appointment
|
||||
* @param User $user
|
||||
* @param Appointment $appointment
|
||||
* @return mixed
|
||||
*/
|
||||
public function forceDelete(User $user, Appointment $appointment)
|
||||
|
@ -5,6 +5,8 @@ namespace App\Policies;
|
||||
use App\Ban;
|
||||
use App\User;
|
||||
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class BanPolicy
|
||||
{
|
||||
@ -36,12 +38,19 @@ class BanPolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param \App\User $user
|
||||
* @param User $targetUser
|
||||
* @return mixed
|
||||
*/
|
||||
public function create(User $user)
|
||||
public function create(User $user, User $targetUser)
|
||||
{
|
||||
//
|
||||
Log::debug("Authorization check started", [
|
||||
'requiredRoles' => 'admin',
|
||||
'hasRequiredRole' => $user->hasRole('admin'),
|
||||
'targetUser' => $targetUser->username,
|
||||
'isCurrentUser' => Auth::user()->is($user)
|
||||
]);
|
||||
return $user->hasRole('admin') && $user->isNot($targetUser);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -53,7 +62,7 @@ class BanPolicy
|
||||
*/
|
||||
public function update(User $user, Ban $ban)
|
||||
{
|
||||
//
|
||||
return $user->hasRole('admin');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -57,7 +57,7 @@ class FormPolicy
|
||||
*/
|
||||
public function update(User $user, Form $form)
|
||||
{
|
||||
// unused
|
||||
return $user->can('admin.hiring.forms');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -24,6 +24,12 @@ class UserPolicy
|
||||
return $authUser->is($user) || $authUser->hasRole('admin');
|
||||
}
|
||||
|
||||
// This refers to the admin tools that let staff update more information than users themselves can
|
||||
public function adminEdit(User $authUser, User $user)
|
||||
{
|
||||
return $authUser->hasRole('admin') && $authUser->isNot($user);
|
||||
}
|
||||
|
||||
public function viewStaff(User $user)
|
||||
{
|
||||
return $user->can('admin.stafflist');
|
||||
@ -38,4 +44,9 @@ class UserPolicy
|
||||
{
|
||||
return $authUser->hasRole('admin');
|
||||
}
|
||||
|
||||
public function delete(User $authUser, User $subject)
|
||||
{
|
||||
return $authUser->hasRole('admin') && $authUser->isNot($subject);
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Application;
|
||||
use App\Observers\ApplicationObserver;
|
||||
use App\Observers\UserObserver;
|
||||
use App\User;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
@ -32,6 +34,10 @@ class AppServiceProvider extends ServiceProvider
|
||||
]);
|
||||
|
||||
Schema::defaultStringLength(191);
|
||||
|
||||
User::observe(UserObserver::class);
|
||||
Application::observe(ApplicationObserver::class);
|
||||
|
||||
$this->app['request']->server->set('HTTPS', $this->app->environment() != 'local');
|
||||
}
|
||||
}
|
||||
|
@ -2,15 +2,15 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Http\Controllers\BanController;
|
||||
use App\Http\Controllers\VoteController;
|
||||
use App\Http\Controllers\ProfileController;
|
||||
use App\Http\Controllers\AppointmentController;
|
||||
use App\Policies\ProfilePolicy;
|
||||
use App\Policies\VacancyPolicy;
|
||||
use App\Policies\UserPolicy;
|
||||
use App\Policies\BanPolicy;
|
||||
use App\Policies\FormPolicy;
|
||||
use App\Policies\VotePolicy;
|
||||
use App\Policies\ApplicationPolicy;
|
||||
use App\Policies\AppointmentPolicy;
|
||||
|
||||
use App\User;
|
||||
use App\Form;
|
||||
use App\Vote;
|
||||
@ -18,6 +18,8 @@ use App\Vacancy;
|
||||
use App\Application;
|
||||
use App\Appointment;
|
||||
use App\Ban;
|
||||
|
||||
|
||||
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
|
||||
@ -36,9 +38,9 @@ class AuthServiceProvider extends ServiceProvider
|
||||
Vacancy::class => VacancyPolicy::class,
|
||||
//Form::class => FormPolicy::class
|
||||
'App\Form' => 'App\Policies\FormPolicy',
|
||||
Vote::class => VoteController::class,
|
||||
Ban::class => BanController::class,
|
||||
Appointment::class => AppointmentController::class
|
||||
Vote::class => VotePolicy::class,
|
||||
Ban::class => BanPolicy::class,
|
||||
Appointment::class => AppointmentPolicy::class
|
||||
];
|
||||
|
||||
/**
|
||||
|
34
app/Providers/ContextAwareValidatorProvider.php
Normal file
34
app/Providers/ContextAwareValidatorProvider.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
use App;
|
||||
|
||||
class ContextAwareValidatorProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
App::bind('contextAwareValidator', function(){
|
||||
|
||||
return new App\Helpers\ContextAwareValidator();
|
||||
|
||||
});
|
||||
}
|
||||
}
|
@ -2,7 +2,11 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Listeners\LogAuthenticationFailure;
|
||||
use App\Listeners\LogAuthenticationSuccess;
|
||||
use App\Listeners\OnUserRegistration;
|
||||
use Illuminate\Auth\Events\Failed;
|
||||
use Illuminate\Auth\Events\Login;
|
||||
use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
@ -20,6 +24,12 @@ class EventServiceProvider extends ServiceProvider
|
||||
SendEmailVerificationNotification::class,
|
||||
OnUserRegistration::class
|
||||
],
|
||||
Failed::class => [
|
||||
LogAuthenticationFailure::class
|
||||
],
|
||||
Login::class => [
|
||||
LogAuthenticationSuccess::class
|
||||
],
|
||||
'App\Events\ApplicationApprovedEvent' => [
|
||||
'App\Listeners\PromoteUser'
|
||||
],
|
||||
|
31
app/Providers/OptionsProvider.php
Normal file
31
app/Providers/OptionsProvider.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use App;
|
||||
|
||||
class OptionsProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
App::bind('smOptions', function (){
|
||||
return new App\Helpers\Options();
|
||||
});
|
||||
}
|
||||
}
|
40
app/Traits/AuthenticatesTwoFactor.php
Normal file
40
app/Traits/AuthenticatesTwoFactor.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
use Google2FA;
|
||||
use App\Http\Requests\Add2FASecretRequest;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
|
||||
trait AuthenticatesTwoFactor
|
||||
{
|
||||
|
||||
public function verify2FA(Add2FASecretRequest $request)
|
||||
{
|
||||
$isValid = Google2FA::verifyKey($request->user()->twofa_secret, $request->otp);
|
||||
|
||||
if ($isValid)
|
||||
{
|
||||
Google2FA::login();
|
||||
|
||||
Log::info('SECURITY (postauth): One-time password verification succeeded', [
|
||||
'initiator' => $request->user()->email,
|
||||
'ip' => $request->ip()
|
||||
]);
|
||||
|
||||
return redirect()->to($this->redirectTo);
|
||||
}
|
||||
else
|
||||
{
|
||||
Log::warning('SECURITY (preauth): One-time password verification failed', [
|
||||
'initiator' => $request->user()->email,
|
||||
'ip' => $request->ip()
|
||||
]);
|
||||
|
||||
$request->session()->flash('error', 'Your one time password is invalid.');
|
||||
return redirect()->back();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
49
app/Traits/Cancellable.php
Normal file
49
app/Traits/Cancellable.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
|
||||
use App\Facades\Options;
|
||||
|
||||
trait Cancellable
|
||||
{
|
||||
|
||||
public function chooseChannelsViaOptions()
|
||||
{
|
||||
$channels = [];
|
||||
|
||||
if (Options::getOption('enable_slack_notifications') == 1)
|
||||
{
|
||||
array_push($channels, 'slack');
|
||||
}
|
||||
elseif(Options::getOption('enable_email_notifications') == 1)
|
||||
{
|
||||
array_push($channels, 'email');
|
||||
}
|
||||
|
||||
return $channels;
|
||||
}
|
||||
|
||||
public function channels()
|
||||
{
|
||||
return ['mail'];
|
||||
}
|
||||
|
||||
public function via($notifiable)
|
||||
{
|
||||
if ($this->optOut($notifiable))
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
return $this->channels();
|
||||
}
|
||||
|
||||
|
||||
public function optOut($notifiable)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
11
app/User.php
11
app/User.php
@ -7,11 +7,10 @@ use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Spatie\Permission\Traits\HasRoles;
|
||||
|
||||
class User extends Authenticatable
|
||||
class User extends Authenticatable implements MustVerifyEmail
|
||||
{
|
||||
use Notifiable;
|
||||
use HasRoles;
|
||||
//use MustVerifyEmail;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
@ -68,18 +67,24 @@ class User extends Authenticatable
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function isBanned()
|
||||
{
|
||||
return !$this->bans()->get()->isEmpty();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function isStaffMember()
|
||||
{
|
||||
return $this->hasAnyRole('reviewer', 'admin', 'hiringManager');
|
||||
}
|
||||
|
||||
public function has2FA()
|
||||
{
|
||||
return !is_null($this->twofa_secret);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function routeNotificationForSlack($notification)
|
||||
|
@ -9,6 +9,7 @@
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": "^7.2.5",
|
||||
"ext-imagick": "*",
|
||||
"ext-json": "*",
|
||||
"arcanedev/log-viewer": "^7.0",
|
||||
"doctrine/dbal": "^2.10",
|
||||
@ -22,6 +23,8 @@
|
||||
"laravel/slack-notification-channel": "^2.0",
|
||||
"laravel/tinker": "^2.0",
|
||||
"laravel/ui": "^2.0",
|
||||
"mcamara/laravel-localization": "^1.5",
|
||||
"pragmarx/google2fa-laravel": "^1.3",
|
||||
"sentry/sentry-laravel": "1.7.1",
|
||||
"spatie/laravel-permission": "^3.13"
|
||||
},
|
||||
|
2202
composer.lock
generated
2202
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'title' => 'Raspberry Net',
|
||||
'title' => env('APP_NAME'),
|
||||
'title_prefix' => '',
|
||||
'title_postfix' => '',
|
||||
|
||||
@ -45,12 +45,12 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'logo' => 'RaspberryNet Staff',
|
||||
'logo_img' => 'https://www.raspberrypi.org/app/uploads/2020/05/Raspberry-Pi-OS-downloads-image-150x150-1.png',
|
||||
'logo' => env('APP_NAME'),
|
||||
'logo_img' => env('APP_LOGO'),
|
||||
'logo_img_class' => 'brand-image img-circle elevation-3',
|
||||
'logo_img_xl' => null,
|
||||
'logo_img_xl_class' => 'brand-image-xs',
|
||||
'logo_img_alt' => 'Raspberry Network Staff Temporary Logo',
|
||||
'logo_img_alt' => env('APP_NAME') . '\'s Temporary Logo',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -209,74 +209,76 @@ return [
|
||||
|
||||
'menu' => [
|
||||
[
|
||||
'text' => 'Home',
|
||||
'icon' => 'fas fa-home',
|
||||
'url' => 'dashboard'
|
||||
'text' => 'm_home',
|
||||
'icon' => 'fas fa-home',
|
||||
'url' => 'dashboard'
|
||||
],
|
||||
[
|
||||
'text' => 'Directory',
|
||||
'icon' => 'fas fa-users',
|
||||
'url' => 'users/directory',
|
||||
'can' => 'profiles.view.others'
|
||||
'text' => 'm_directory',
|
||||
'icon' => 'fas fa-users',
|
||||
'url' => 'users/directory',
|
||||
'can' => 'profiles.view.others'
|
||||
],
|
||||
[
|
||||
'header' => 'Applications',
|
||||
'header' => 'h_applications',
|
||||
'can' => 'applications.view.own'
|
||||
],
|
||||
[
|
||||
'text' => 'My Applications',
|
||||
'text' => 'm_my_applications',
|
||||
'icon' => 'fas fa-fw fa-list-ul',
|
||||
'can' => 'applications.view.own',
|
||||
'submenu' => [
|
||||
[
|
||||
'text' => 'Current Applications',
|
||||
'text' => 'm_curr_applications',
|
||||
'icon' => 'fas fa-fw fa-check-double',
|
||||
'url' => '/applications/my-applications'
|
||||
]
|
||||
],
|
||||
|
||||
],
|
||||
'My Profile',
|
||||
[
|
||||
'text' => 'Profile Settings',
|
||||
'header' => 'h_my_profile',
|
||||
],
|
||||
[
|
||||
'text' => 'm_profile_settings',
|
||||
'url' => '/profile/settings',
|
||||
'icon' => 'fas fa-fw fa-cog'
|
||||
],
|
||||
[
|
||||
'text' => 'My Account Settings',
|
||||
'text' => 'm_account_settings',
|
||||
'icon' => 'fas fa-user-circle',
|
||||
'url' => '/profile/settings/account'
|
||||
],
|
||||
[
|
||||
'header' => 'Application Management',
|
||||
'header' => 'h_app_management',
|
||||
'can' => ['applications.view.all', 'applications.vote']
|
||||
],
|
||||
[
|
||||
'text' => 'All applications',
|
||||
'url' => 'applications/staff/all',
|
||||
'icon' => 'fas fa-list-ol',
|
||||
'can' => 'applications.view.all'
|
||||
'text' => 'm_all_apps',
|
||||
'url' => 'applications/staff/all',
|
||||
'icon' => 'fas fa-list-ol',
|
||||
'can' => 'applications.view.all'
|
||||
],
|
||||
[
|
||||
'text' => 'Outstanding Applications',
|
||||
'text' => 'm_outstanding_apps',
|
||||
'url' => '/applications/staff/outstanding',
|
||||
'icon' => 'far fa-folder-open',
|
||||
'can' => 'applications.view.all'
|
||||
],
|
||||
[
|
||||
'text' => 'Interview Queue',
|
||||
'text' => 'm_interview_queue',
|
||||
'url' => '/applications/staff/pending-interview',
|
||||
'icon' => 'fas fa-fw fa-microphone-alt',
|
||||
'can' => 'applications.view.all'
|
||||
],
|
||||
[
|
||||
'text' => 'Peer Approval Queue',
|
||||
'text' => 'm_peer_approval',
|
||||
'url' => '/applications/staff/peer-review',
|
||||
'icon' => 'fas fa-fw fa-search',
|
||||
'can' => 'applications.view.all'
|
||||
],
|
||||
[
|
||||
'header' => 'Administration',
|
||||
'header' => 'h_admin',
|
||||
'can' => [ // may need to be modified
|
||||
'admin.hiring.*',
|
||||
'admin.userlist',
|
||||
@ -286,38 +288,38 @@ return [
|
||||
]
|
||||
],
|
||||
[
|
||||
'text' => 'Staff Members',
|
||||
'text' => 'm_staff_m',
|
||||
'icon' => 'fas fa-fw fa-users',
|
||||
'url' => '/hr/staff-members',
|
||||
'can' => 'admin.stafflist'
|
||||
],
|
||||
[ // players who haven't been promoted yet
|
||||
'text' => 'Registered Players',
|
||||
'text' => 'm_reg_players',
|
||||
'icon' => 'fas fa-fw fa-user-friends',
|
||||
'url' => '/hr/players',
|
||||
'can' => 'admin.userlist'
|
||||
],
|
||||
[
|
||||
'text' => 'Hiring Management',
|
||||
'icon' => 'far fa-calendar-plus',
|
||||
'text' => 'sm_hiring_man',
|
||||
'icon' => 'far fa-calendar-plus',
|
||||
'can' => 'admin.hiring.*',
|
||||
'submenu' => [
|
||||
[
|
||||
'text' => 'Open Positions',
|
||||
'text' => 'm_open_pos',
|
||||
'icon' => 'fas fa-box-open',
|
||||
'url' => '/admin/positions'
|
||||
],
|
||||
[
|
||||
'text' => 'Forms',
|
||||
'text' => 'sm_forms',
|
||||
'icon' => 'fab fa-wpforms',
|
||||
'submenu' => [
|
||||
[
|
||||
'text' => 'All forms',
|
||||
'text' => 'sm_all_forms',
|
||||
'icon' => 'far fa-list-alt',
|
||||
'url' => '/admin/forms'
|
||||
],
|
||||
[
|
||||
'text' => 'Form Builder',
|
||||
'text' => 'm_form_builder',
|
||||
'icon' => 'fas fa-fw fa-hammer',
|
||||
'url' => '/admin/forms/builder'
|
||||
]
|
||||
@ -326,26 +328,26 @@ return [
|
||||
]
|
||||
],
|
||||
[
|
||||
'text' => 'App Settings',
|
||||
'text' => 'sm_app_settings',
|
||||
'icon' => 'fas fa-fw fa-cog',
|
||||
'can' => 'admin.notificationsettings',
|
||||
'submenu' => [
|
||||
[
|
||||
'text' => 'Global Notification Settings',
|
||||
'icon' => 'far fa-bell',
|
||||
'url' => '/admin/notifications',
|
||||
'can' => 'admin.notificationsettings.edit'
|
||||
'text' => 'm_global_app_s',
|
||||
'icon' => 'fas fa-cogs',
|
||||
'url' => '/admin/settings',
|
||||
'can' => 'admin.settings.view'
|
||||
],
|
||||
[
|
||||
'text' => 'Developer Tools',
|
||||
'text' => 'm_devtools',
|
||||
'icon' => 'fas fa-code',
|
||||
'url' => '/admin/devtools',
|
||||
'can' => 'admin.developertools.use'
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'text' => 'System Logs',
|
||||
'text' => 'm_s_logs',
|
||||
'url' => '/admin/maintenance/system-logs',
|
||||
'icon' => 'fas fa-clipboard-list',
|
||||
'can' => 'admin.maintenance.logs.view'
|
||||
@ -368,7 +370,6 @@ return [
|
||||
JeroenNoten\LaravelAdminLte\Menu\Filters\HrefFilter::class,
|
||||
JeroenNoten\LaravelAdminLte\Menu\Filters\SearchFilter::class,
|
||||
JeroenNoten\LaravelAdminLte\Menu\Filters\ActiveFilter::class,
|
||||
JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter::class,
|
||||
JeroenNoten\LaravelAdminLte\Menu\Filters\ClassesFilter::class,
|
||||
JeroenNoten\LaravelAdminLte\Menu\Filters\GateFilter::class,
|
||||
JeroenNoten\LaravelAdminLte\Menu\Filters\LangFilter::class,
|
||||
@ -528,6 +529,16 @@ return [
|
||||
]
|
||||
]
|
||||
],
|
||||
|
||||
[
|
||||
'name' => 'AuthCustomisations',
|
||||
'active' => true,
|
||||
'files' => [
|
||||
[
|
||||
'type' => 'css',
|
||||
'asset' => false,
|
||||
'location' => '/css/authpages.css'
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
];
|
||||
|
@ -15,6 +15,19 @@ return [
|
||||
|
||||
'name' => env('APP_NAME', 'Laravel'),
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Homepage
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value is the application's homepage.
|
||||
| If you have a main website other than this application itself, you can link it here.
|
||||
| It will be used exclusively on the "Homepage" header menu.
|
||||
|
|
||||
*/
|
||||
'sitehomepage' => env('APP_SITEHOMEPAGE', 'https://google.com'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Environment
|
||||
@ -175,10 +188,12 @@ return [
|
||||
App\Providers\AuthServiceProvider::class,
|
||||
App\Providers\UUIDConversionProvider::class,
|
||||
App\Providers\IPInfoProvider::class,
|
||||
App\Providers\ContextAwareValidatorProvider::class,
|
||||
// App\Providers\BroadcastServiceProvider::class,
|
||||
App\Providers\EventServiceProvider::class,
|
||||
App\Providers\RouteServiceProvider::class,
|
||||
\App\Providers\MojangStatusProvider::class,
|
||||
\App\Providers\OptionsProvider::class
|
||||
|
||||
],
|
||||
|
||||
@ -234,6 +249,8 @@ return [
|
||||
'UUID' => App\Facades\UUID::class,
|
||||
'IP' => App\Facades\IP::class,
|
||||
'Markdown' => GrahamCampbell\Markdown\Facades\Markdown::class,
|
||||
'ContextAwareValidator' => App\Facades\ContextAwareValidation::class,
|
||||
'Settings' => App\Facades\Options::class
|
||||
|
||||
],
|
||||
|
||||
|
79
config/google2fa.php
Normal file
79
config/google2fa.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* Enable / disable Google2FA.
|
||||
*/
|
||||
'enabled' => env('OTP_ENABLED', true),
|
||||
|
||||
/*
|
||||
* Lifetime in minutes.
|
||||
*
|
||||
* In case you need your users to be asked for a new one time passwords from time to time.
|
||||
*/
|
||||
'lifetime' => env('OTP_LIFETIME', 0), // 0 = eternal
|
||||
|
||||
/*
|
||||
* Renew lifetime at every new request.
|
||||
*/
|
||||
'keep_alive' => env('OTP_KEEP_ALIVE', true),
|
||||
|
||||
/*
|
||||
* Auth container binding.
|
||||
*/
|
||||
'auth' => 'auth',
|
||||
|
||||
/*
|
||||
* 2FA verified session var.
|
||||
*/
|
||||
|
||||
'session_var' => 'google2fa',
|
||||
|
||||
/*
|
||||
* One Time Password request input name.
|
||||
*/
|
||||
'otp_input' => 'otp',
|
||||
|
||||
/*
|
||||
* One Time Password Window.
|
||||
*/
|
||||
'window' => 1,
|
||||
|
||||
/*
|
||||
* Forbid user to reuse One Time Passwords.
|
||||
*/
|
||||
'forbid_old_passwords' => false,
|
||||
|
||||
/*
|
||||
* User's table column for google2fa secret.
|
||||
*/
|
||||
'otp_secret_column' => 'twofa_secret',
|
||||
|
||||
/*
|
||||
* One Time Password View.
|
||||
*/
|
||||
'view' => 'auth.2fa',
|
||||
|
||||
/*
|
||||
* One Time Password error message.
|
||||
*/
|
||||
'error_messages' => [
|
||||
'wrong_otp' => "Your one time code was incorrect.",
|
||||
'cannot_be_empty' => 'The one time code cannot be empty.',
|
||||
'unknown' => 'An unknown error has occurred. Please try again.',
|
||||
],
|
||||
|
||||
/*
|
||||
* Throw exceptions or just fire events?
|
||||
*/
|
||||
'throw_exceptions' => env('OTP_THROW_EXCEPTION', true),
|
||||
|
||||
/*
|
||||
* Which image backend to use for generating QR codes?
|
||||
*
|
||||
* Supports imagemagick, svg and eps
|
||||
*/
|
||||
'qrcode_image_backend' => \PragmaRX\Google2FALaravel\Support\Constants::QRCODE_IMAGE_BACKEND_IMAGEMAGICK,
|
||||
|
||||
];
|
70
config/laravellocalization.php
Normal file
70
config/laravellocalization.php
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
// Uncomment the languages that your site supports - or add new ones.
|
||||
// These are sorted by the native name, which is the order you might show them in a language selector.
|
||||
// Regional languages are sorted by their base language, so "British English" sorts as "English, British"
|
||||
'supportedLocales' => [
|
||||
'en' => ['name' => 'English', 'script' => 'Latn', 'native' => 'English', 'regional' => 'en_GB'],
|
||||
'es' => ['name' => 'Spanish', 'script' => 'Latn', 'native' => 'Español', 'regional' => 'es_ES'],
|
||||
'pt' => ['name' => 'Portuguese', 'script' => 'Latn', 'native' => 'Português', 'regional' => 'pt_PT'],
|
||||
'fr' => ['name' => 'French', 'script' => 'Latn', 'native' => 'Français', 'regional' => 'fr_FR'],
|
||||
],
|
||||
|
||||
// Requires middleware `LaravelSessionRedirect.php`.
|
||||
//
|
||||
// Automatically determine locale from browser (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language)
|
||||
// on first call if it's not defined in the URL. Redirect user to computed localized url.
|
||||
// For example, if users browser language is `de`, and `de` is active in the array `supportedLocales`,
|
||||
// the `/about` would be redirected to `/de/about`.
|
||||
//
|
||||
// The locale will be stored in session and only be computed from browser
|
||||
// again if the session expires.
|
||||
//
|
||||
// If false, system will take app.php locale attribute
|
||||
'useAcceptLanguageHeader' => true,
|
||||
|
||||
// If `hideDefaultLocaleInURL` is true, then a url without locale
|
||||
// is identical with the same url with default locale.
|
||||
// For example, if `en` is default locale, then `/en/about` and `/about`
|
||||
// would be identical.
|
||||
//
|
||||
// If in addition the middleware `LaravelLocalizationRedirectFilter` is active, then
|
||||
// every url with default locale is redirected to url without locale.
|
||||
// For example, `/en/about` would be redirected to `/about`.
|
||||
// It is recommended to use `hideDefaultLocaleInURL` only in
|
||||
// combination with the middleware `LaravelLocalizationRedirectFilter`
|
||||
// to avoid duplicate content (SEO).
|
||||
//
|
||||
// If `useAcceptLanguageHeader` is true, then the first time
|
||||
// the locale will be determined from browser and redirect to that language.
|
||||
// After that, `hideDefaultLocaleInURL` behaves as usual.
|
||||
'hideDefaultLocaleInURL' => true,
|
||||
|
||||
// If you want to display the locales in particular order in the language selector you should write the order here.
|
||||
//CAUTION: Please consider using the appropriate locale code otherwise it will not work
|
||||
//Example: 'localesOrder' => ['es','en'],
|
||||
'localesOrder' => ['en', 'pt', 'fr', 'es'],
|
||||
|
||||
// If you want to use custom lang url segments like 'at' instead of 'de-AT', you can use the mapping to tallow the LanguageNegotiator to assign the descired locales based on HTTP Accept Language Header. For example you want ot use 'at', so map HTTP Accept Language Header 'de-AT' to 'at' (['de-AT' => 'at']).
|
||||
'localesMapping' => [],
|
||||
|
||||
// Locale suffix for LC_TIME and LC_MONETARY
|
||||
// Defaults to most common ".UTF-8". Set to blank on Windows systems, change to ".utf8" on CentOS and similar.
|
||||
'utf8suffix' => env('LARAVELLOCALIZATION_UTF8SUFFIX', '.UTF-8'),
|
||||
|
||||
// URLs which should not be processed, e.g. '/nova', '/nova/*', '/nova-api/*' or specific application URLs
|
||||
// Defaults to []
|
||||
'urlsIgnored' => [
|
||||
'/js/*',
|
||||
'/img/*',
|
||||
'/css/*',
|
||||
'/vendor/*',
|
||||
'/app.css',
|
||||
'/robots.txt',
|
||||
'/slides/*',
|
||||
'/auth/logout'
|
||||
],
|
||||
|
||||
];
|
5
crowdin.yml
Normal file
5
crowdin.yml
Normal file
@ -0,0 +1,5 @@
|
||||
files:
|
||||
- source: /**/lang/**/en/*.php
|
||||
ignore:
|
||||
- /**/lang/en/*2.php
|
||||
translation: /**/lang/**/%two_letters_code%/%original_file_name%
|
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddTwofaSecretToUsers extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('twofa_secret')->nullable()->after('password');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropColumn('twofa_secret');
|
||||
});
|
||||
}
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateOptionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('options', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('option_name');
|
||||
$table->string('option_value');
|
||||
$table->string('friendly_name');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('options');
|
||||
}
|
||||
}
|
@ -13,5 +13,6 @@ class DatabaseSeeder extends Seeder
|
||||
{
|
||||
$this->call(PermissionSeeder::class);
|
||||
$this->call(UserSeeder::class);
|
||||
$this->call(DefaultOptionsSeeder::class);
|
||||
}
|
||||
}
|
||||
|
27
database/seeds/DefaultOptionsSeeder.php
Normal file
27
database/seeds/DefaultOptionsSeeder.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use App\Facades\Options;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DefaultOptionsSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
Options::setOption('notify_new_application_email', true, 'Notify when a new application comes through'); // done
|
||||
Options::setOption('notify_application_comment', false, 'Notify when someone comments on an application'); // done
|
||||
Options::setOption('notify_new_user', true, 'Notify when someone signs up'); // done
|
||||
Options::setOption('notify_application_status_change', true, 'Notify when an application changes status'); // done
|
||||
Options::setOption('notify_applicant_approved', true, 'Notify when an applicant is approved'); // done
|
||||
Options::setOption('notify_vacancystatus_change', false, 'Notify when a vacancy\'s status changes'); // done
|
||||
|
||||
|
||||
Options::setOption('enable_slack_notifications', true, 'Enable slack notifications');
|
||||
Options::setOption('enable_email_notifications', true, 'Enable e-mail notifications');
|
||||
|
||||
}
|
||||
}
|
31
database/seeds/NewPermissions.php
Normal file
31
database/seeds/NewPermissions.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Spatie\Permission\Models\Permission;
|
||||
use Spatie\Permission\Models\Role;
|
||||
|
||||
class NewPermissions extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$developer = Role::create([
|
||||
'name' => 'developer'
|
||||
]);
|
||||
|
||||
$admin = Role::where('name', 'admin')->first();
|
||||
|
||||
Permission::create(['name' => 'admin.settings.view']);
|
||||
Permission::create(['name' => 'admin.settings.edit']);
|
||||
|
||||
$developer->givePermissionTo('admin.developertools.use');
|
||||
$admin->givePermissionTo('admin.settings.view');
|
||||
$admin->givePermissionTo('admin.settings.edit');
|
||||
|
||||
|
||||
}
|
||||
}
|
9993
package-lock.json
generated
9993
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"postinstall": "npm run prod",
|
||||
"dev": "npm run development",
|
||||
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
|
||||
"watch": "npm run development -- --watch",
|
||||
|
2
public/app.css
vendored
2
public/app.css
vendored
@ -1,4 +1,4 @@
|
||||
.page-bg {
|
||||
.view {
|
||||
background: url("/slides/06.png")no-repeat center center;
|
||||
background-size: cover;
|
||||
}
|
||||
|
81
public/css/login.css
vendored
Normal file
81
public/css/login.css
vendored
Normal file
@ -0,0 +1,81 @@
|
||||
body {
|
||||
font-family: "Karla", sans-serif;
|
||||
background-color: #d0d0ce;
|
||||
min-height: 100vh; }
|
||||
|
||||
.brand-wrapper {
|
||||
margin-bottom: 19px; }
|
||||
.brand-wrapper .logo {
|
||||
height: 37px; }
|
||||
|
||||
.login-card {
|
||||
border: 0;
|
||||
border-radius: 27.5px;
|
||||
box-shadow: 0 10px 30px 0 rgba(172, 168, 168, 0.43);
|
||||
overflow: hidden; }
|
||||
.login-card-img {
|
||||
border-radius: 0;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover; }
|
||||
.login-card .card-body {
|
||||
padding: 85px 60px 60px; }
|
||||
@media (max-width: 422px) {
|
||||
.login-card .card-body {
|
||||
padding: 35px 24px; } }
|
||||
.login-card-description {
|
||||
font-size: 25px;
|
||||
color: #000;
|
||||
font-weight: normal;
|
||||
margin-bottom: 23px; }
|
||||
.login-card form {
|
||||
max-width: 326px; }
|
||||
.login-card .form-control {
|
||||
border: 1px solid #d5dae2;
|
||||
padding: 15px 25px;
|
||||
margin-bottom: 20px;
|
||||
min-height: 45px;
|
||||
font-size: 13px;
|
||||
line-height: 15;
|
||||
font-weight: normal; }
|
||||
.login-card .form-control::-webkit-input-placeholder {
|
||||
color: #919aa3; }
|
||||
.login-card .form-control::-moz-placeholder {
|
||||
color: #919aa3; }
|
||||
.login-card .form-control:-ms-input-placeholder {
|
||||
color: #919aa3; }
|
||||
.login-card .form-control::-ms-input-placeholder {
|
||||
color: #919aa3; }
|
||||
.login-card .form-control::placeholder {
|
||||
color: #919aa3; }
|
||||
.login-card .login-btn {
|
||||
padding: 13px 20px 12px;
|
||||
background-color: #000;
|
||||
border-radius: 4px;
|
||||
font-size: 17px;
|
||||
font-weight: bold;
|
||||
line-height: 20px;
|
||||
color: #fff;
|
||||
margin-bottom: 24px; }
|
||||
.login-card .login-btn:hover {
|
||||
border: 1px solid #000;
|
||||
background-color: transparent;
|
||||
color: #000; }
|
||||
.login-card .forgot-password-link {
|
||||
font-size: 14px;
|
||||
color: #919aa3;
|
||||
margin-bottom: 12px; }
|
||||
.login-card-footer-text {
|
||||
font-size: 16px;
|
||||
color: #0d2366;
|
||||
margin-bottom: 60px; }
|
||||
@media (max-width: 767px) {
|
||||
.login-card-footer-text {
|
||||
margin-bottom: 24px; } }
|
||||
.login-card-footer-nav a {
|
||||
font-size: 14px;
|
||||
color: #919aa3; }
|
||||
|
||||
/*# sourceMappingURL=login.css.map */
|
1
public/css/login.css.map
Executable file
1
public/css/login.css.map
Executable file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["login.scss"],"names":[],"mappings":"AAAA;EACI,gCAAgC;EAChC,yBAAyB;EACzB,iBAAiB,EAAA;;AAGrB;EACI,mBAAmB,EAAA;EADvB;IAIQ,YAAY,EAAA;;AAIpB;EACI,SAAS;EACT,qBAAqB;EACrB,mDAAmD;EACnD,gBAAgB,EAAA;EAGhB;IACI,gBAAgB;IAChB,kBAAkB;IAClB,WAAW;IACX,YAAY;IACZ,oBAAiB;OAAjB,iBAAiB,EAAA;EAZzB;IAeQ,uBAAuB,EAAA;IAEvB;MAjBR;QAkBY,kBAAkB,EAAA,EAEzB;EAED;IACI,eAAe;IACf,WAAW;IACX,mBAAmB;IACnB,mBAAmB,EAAA;EA1B3B;IA8BQ,gBAAgB,EAAA;EA9BxB;IAkCQ,yBAAyB;IACzB,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,mBAAmB,EAAA;IAxC3B;MA2CY,cAAc,EAAA;IA3C1B;MA2CY,cAAc,EAAA;IA3C1B;MA2CY,cAAc,EAAA;IA3C1B;MA2CY,cAAc,EAAA;IA3C1B;MA2CY,cAAc,EAAA;EA3C1B;IAgDQ,uBAAuB;IACvB,sBAAsB;IACtB,kBAAkB;IAClB,eAAe;IACf,iBAAiB;IACjB,iBAAiB;IACjB,WAAW;IACX,mBAAmB,EAAA;IAvD3B;MA0DY,sBAAsB;MACtB,6BAA6B;MAC7B,WAAW,EAAA;EA5DvB;IAiEQ,eAAe;IACf,cAAc;IACd,mBAAmB,EAAA;EAGvB;IACI,eAAe;IACf,cAAc;IACd,mBAAmB,EAAA;IAEnB;MALJ;QAMQ,mBAAmB,EAAA,EAE1B;EAEA;IAEO,eAAe;IACf,cAAc,EAAA","file":"login.css","sourcesContent":["body {\n font-family: \"Karla\", sans-serif;\n background-color: #d0d0ce;\n min-height: 100vh;\n}\n\n.brand-wrapper {\n margin-bottom: 19px;\n\n .logo {\n height: 37px;\n }\n}\n\n.login-card {\n border: 0;\n border-radius: 27.5px;\n box-shadow: 0 10px 30px 0 rgba(172, 168, 168, 0.43);\n overflow: hidden;\n\n\n &-img {\n border-radius: 0;\n position: absolute;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .card-body {\n padding: 85px 60px 60px;\n\n @media (max-width: 422px) {\n padding: 35px 24px;\n }\n }\n\n &-description {\n font-size: 25px;\n color: #000;\n font-weight: normal;\n margin-bottom: 23px;\n }\n\n form {\n max-width: 326px;\n }\n\n .form-control {\n border: 1px solid #d5dae2;\n padding: 15px 25px;\n margin-bottom: 20px;\n min-height: 45px;\n font-size: 13px;\n line-height: 15;\n font-weight: normal;\n\n &::placeholder {\n color: #919aa3;\n }\n }\n\n .login-btn {\n padding: 13px 20px 12px;\n background-color: #000;\n border-radius: 4px;\n font-size: 17px;\n font-weight: bold;\n line-height: 20px;\n color: #fff;\n margin-bottom: 24px;\n\n &:hover {\n border: 1px solid #000;\n background-color: transparent;\n color: #000;\n }\n }\n\n .forgot-password-link {\n font-size: 14px;\n color: #919aa3;\n margin-bottom: 12px;\n }\n\n &-footer-text {\n font-size: 16px;\n color: #0d2366;\n margin-bottom: 60px;\n\n @media (max-width: 767px) {\n margin-bottom: 24px;\n }\n }\n\n &-footer-nav {\n a {\n font-size: 14px;\n color: #919aa3;\n }\n }\n}\n"]}
|
BIN
public/img/authbg.jpg
Normal file
BIN
public/img/authbg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 623 KiB |
1
public/img/editor.svg
Normal file
1
public/img/editor.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg id="a5860ba0-ef67-4914-ac96-07e2ebcccb4f" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="1095.74023" height="664.03433" viewBox="0 0 1095.74023 664.03433"><title>abstract</title><rect x="701" y="661" width="394.74023" height="2" fill="#3f3d56"/><polygon points="474 429 474 216 718 216 718 0 0 0 0 643 718 643 718 429 474 429" fill="#3f3d56"/><polygon points="718 216 718 0 469 0 469 213 249 213 249 0 0 0 0 216 225 216 225 429 0 429 0 643 476 643 476 429 474 429 474 216 718 216" opacity="0.1"/><path d="M224.12988,117.98284a172.00382,172.00382,0,0,1-172,172v-172Z" transform="translate(-52.12988 -117.98284)" fill="#6c63ff"/><path d="M132.12988,117.98284a80.00357,80.00357,0,0,1-80,80v44a124.00426,124.00426,0,0,0,124-124Z" transform="translate(-52.12988 -117.98284)" opacity="0.1"/><polygon points="718 60 718 29 553 29 553 0 517 0 517 29 517 60 517 84 517 115 553 115 718 115 718 84 553 84 553 60 718 60" fill="#d0cde1"/><path d="M481.12988,448.98284a81,81,0,1,0-92,80.23639V642.98284H256.36627a81,81,0,1,0,0,22H389.12988v48h22v-48h45v-22h-45V529.21923A81.00034,81.00034,0,0,0,481.12988,448.98284Z" transform="translate(-52.12988 -117.98284)" fill="#d0cde1"/><polygon points="626.5 445.263 662.508 507.631 698.517 570 626.5 570 554.483 570 590.492 507.631 626.5 445.263" fill="#d0cde1"/><polygon points="610.5 578 538.483 578 574.492 515.631 574.742 515.198 561.5 492.263 525.492 554.631 489.483 617 561.5 617 633.517 617 611 578 610.5 578" fill="#6c63ff"/><polygon points="159 345 159 291 186 291 186 259 52 259 52 393 186 393 186 345 159 345" fill="#d0cde1"/><rect x="89" y="234" width="50" height="50" fill="#6c63ff"/><path d="M989.162,357.83165,972.618,401.5551l-59.664,20.935s-36-4-36,16c0,14.18058,43,2,43,2l78.66169-23.57271,24.816-61.44917Z" transform="translate(-52.12988 -117.98284)" fill="#ffb8b8"/><rect x="635" y="228" width="234" height="202" fill="#6c63ff"/><polygon points="747.5 289.263 783.508 351.631 819.517 414 747.5 414 675.483 414 711.492 351.631 747.5 289.263" fill="#3f3d56"/><polygon points="747.331 334.415 763.665 362.708 780 391 747.331 391 714.661 391 730.996 362.708 747.331 334.415" fill="#d0cde1"/><polygon points="747.331 242.415 763.665 270.708 780 299 747.331 299 714.661 299 730.996 270.708 747.331 242.415" fill="#d0cde1"/><path d="M1024.15387,329.42035s-16.544-2.36343-24.816,28.36116-10.63544,33.088-10.63544,33.088,48.45031,7.09029,49.632,4.72686S1048.96988,336.51064,1024.15387,329.42035Z" transform="translate(-52.12988 -117.98284)" fill="#2f2e41"/><circle cx="962.57027" cy="167.71406" r="31.9063" fill="#ffb8b8"/><path d="M1000.51957,311.69463s10.63544,27.17944,7.09029,30.72459,43.72345,8.272,43.72345,8.272,3.54515-17.72572-10.63543-28.36116c0,0-5.90858-17.72572-4.72686-21.27087S1000.51957,311.69463,1000.51957,311.69463Z" transform="translate(-52.12988 -117.98284)" fill="#ffb8b8"/><path d="M1028.88073,323.51178a85.216,85.216,0,0,0-31.9063,21.27087c-14.18058,15.36229-21.27087,20.08915-21.27087,20.08915s-16.544,5.90857-10.63544,34.26973c2.95429,14.18058.88629,30.13373-1.92028,42.54174a265.8223,265.8223,0,0,0-6.35172,58.65559v12.2473s-108.71777,228.071-72.08461,243.43328,69.72118,20.08915,72.08461,16.544,44.90517-187.89267,44.90517-187.89267,11.81715,197.34639,41.36,197.34639,77.99318-8.272,77.99318-8.272l-60.26746-236.343s14.18058-40.17831-21.27087-68.53947l-4.72686-12.99886c19.60447.01,28.56614-124.06968,8.272-134.7155C1043.06131,321.14835,1038.33445,317.6032,1028.88073,323.51178Z" transform="translate(-52.12988 -117.98284)" fill="#2f2e41"/><path d="M999.33786,387.32438l-16.544,43.72345-59.664,20.935s-36-4-36,16c0,14.18058,43,2,43,2l78.6617-23.57271,24.816-61.44918Z" transform="translate(-52.12988 -117.98284)" fill="#ffb8b8"/><ellipse cx="868.62393" cy="652.21718" rx="20.68001" ry="11.81715" fill="#2f2e41"/><ellipse cx="1026.97373" cy="652.21718" rx="20.68001" ry="11.81715" fill="#2f2e41"/><path d="M1027.01734,240.95422h-.00012a25.34145,25.34145,0,0,0-4.89258.48651,21.44172,21.44172,0,0,0-9.34021-2.15271h-.84777c-16.34473,0-29.59461,14.7901-29.59461,33.03461v.00006h5.47669l.88452-6.73224L990,272.32269h4.56226a64.57589,64.57589,0,0,0-2.119,16.55036v33.62384h8.28027l4.79395-12.45795-1.19849,12.45795h53.22314l4.35816-11.32538-1.0896,11.32538h5.99243V296.09613C1066.80311,265.64215,1048.99037,240.95422,1027.01734,240.95422Z" transform="translate(-52.12988 -117.98284)" fill="#2f2e41"/></svg>
|
After Width: | Height: | Size: 4.3 KiB |
BIN
public/img/login.jpg
Executable file
BIN
public/img/login.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 436 KiB |
1
public/js/formbuilder.js
vendored
1
public/js/formbuilder.js
vendored
@ -1,3 +1,4 @@
|
||||
// TODO: Add cleaner and less verbose solution found in formeditor.js
|
||||
$(document).ready(function() {
|
||||
$("#add").click(function() {
|
||||
var lastField = $("#buildyourform div:last");
|
||||
|
19
public/js/formeditor.js
vendored
Normal file
19
public/js/formeditor.js
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
// reminder: use vuejs instead, this is still an ugly and cheap solution
|
||||
$(document).ready(function(){
|
||||
|
||||
var fieldID = 0;
|
||||
var wrapper = $('.field-container');
|
||||
var newBtn = $('#add');
|
||||
|
||||
$(newBtn).click(function(e){
|
||||
e.preventDefault()
|
||||
fieldID++;
|
||||
|
||||
$(wrapper).append('<div id=group' + fieldID + '><input type="text" name="newFieldID' + fieldID + '[]" class="form-control" />');
|
||||
$(wrapper).append('<select name="newFieldID' + fieldID + '[]" class="custom-select"> <option value="nil" disabled>Choose a type</option> <option value="textbox">Textbox</option> <option value="textarea">Multi line answer</option> <option value="checkbox">Checkbox</option> </select>');
|
||||
//$(wrapper).append('<button type="button" class="btn btn-danger btn-sm float-right delete"><i class="fas fa-minus"></i></button></div>');
|
||||
|
||||
|
||||
});
|
||||
|
||||
});
|
25
resources/js/app.js
vendored
25
resources/js/app.js
vendored
@ -43,28 +43,3 @@ $("#comment").keyup(function(){
|
||||
$("#submitComment").on('click', function(){
|
||||
$("#newComment").submit();
|
||||
});
|
||||
|
||||
window.Vue = require('vue');
|
||||
|
||||
/**
|
||||
* The following block of code may be used to automatically register your
|
||||
* Vue components. It will recursively scan this directory for the Vue
|
||||
* components and automatically register them with their "basename".
|
||||
*
|
||||
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
|
||||
*/
|
||||
|
||||
// const files = require.context('./', true, /\.vue$/i)
|
||||
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))
|
||||
|
||||
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
|
||||
|
||||
/**
|
||||
* Next, we will create a fresh Vue application instance and attach it to
|
||||
* the page. Then, you may begin adding components to this application
|
||||
* or customize the JavaScript scaffolding to fit your unique needs.
|
||||
*/
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
});
|
||||
|
612
resources/lang/en/messages.php
Normal file
612
resources/lang/en/messages.php
Normal file
@ -0,0 +1,612 @@
|
||||
<?php
|
||||
/*
|
||||
* -- Information for translators | READ BEFORE TRANSLATING ANYTHING ---
|
||||
* In this file, only translate messages to the right, in this fashion:
|
||||
* 'something' => 'translate-me'
|
||||
* Also, don't translate, change, or move placeholders (:this-is-a-placeholder) starting with a colon.
|
||||
* Try to keep the message as close to the original in meaning as possible. These simple rules also apply to other files you're translating, such as:
|
||||
* auth.php, pagination.php, passwords.php, and validation.php.
|
||||
* It is VERY important that you "escape" single quotes with a backslash if they're present in your language, like this: I\'m an escaped quote
|
||||
*
|
||||
* Additionally, don't change anything in square or curly brackets, and don't remove pipe (|) characters.
|
||||
* If you see two messages separated by pipe, then usually the left side is singular and the right side is plural, so translate accordingly.
|
||||
*
|
||||
* Thank you for translating!
|
||||
*/
|
||||
|
||||
return [
|
||||
|
||||
// ============== MENU TRANSLATIONS ======================
|
||||
|
||||
|
||||
'menu' => [
|
||||
|
||||
'my_apps' => 'My Applications',
|
||||
'current_apps' => 'Current Applications',
|
||||
'profile_settings' => 'Profile Settings',
|
||||
'hiring_man' => 'Hiring Management',
|
||||
'all_forms' => 'All Forms',
|
||||
'app_settings' => 'App Settings',
|
||||
'global_app_settings' => 'Global App Settings',
|
||||
'system_logs' => 'System Logs'
|
||||
],
|
||||
|
||||
|
||||
|
||||
// ============== REUSABLE, GENERIC STRINGS ===============
|
||||
|
||||
'reusable' => [
|
||||
'created_at' => 'Created at',
|
||||
'updated_at' => 'Updated at',
|
||||
'actions' => 'Actions',
|
||||
'delete' => 'Delete',
|
||||
'status' => 'Status',
|
||||
'view' => 'View',
|
||||
'view_c' => 'View Details',
|
||||
'no_access' => 'Application Access Denied',
|
||||
'validation_err' => 'Validation error!',
|
||||
'description' => 'Description',
|
||||
'join_date' => 'Join Date',
|
||||
'my_acc' => 'My Account',
|
||||
'confirm' => 'Please Confirm',
|
||||
'confirm_plain' => 'Confirm',
|
||||
'confirm_click' => 'Click to Confirm',
|
||||
'date' => 'Date',
|
||||
'datetime' => 'Time & Date',
|
||||
'location' => 'Location',
|
||||
'none_yet' => 'None yet',
|
||||
'reason' => 'Reason',
|
||||
'days' => 'Days',
|
||||
'weeks' => 'Weeks',
|
||||
'months' => 'Months',
|
||||
'years' => 'Years',
|
||||
'yes' => 'Yes',
|
||||
'no' => 'No',
|
||||
'roles' => 'Roles',
|
||||
'member_since' => 'Member since :date',
|
||||
'lookup' => 'Lookup :ipAddress',
|
||||
'abt' => 'About',
|
||||
'acc' => 'Account',
|
||||
'settings' => 'Settings',
|
||||
'profile' => 'My Profile',
|
||||
'code' => 'code',
|
||||
'here' => 'here',
|
||||
'auth_req' => 'Please authenticate',
|
||||
'eligible' => 'Eligible',
|
||||
'ineligible' => 'Ineligible',
|
||||
'schedule' => 'Schedule',
|
||||
'schedule_action' => 'Schedule an Appointment',
|
||||
'platform' => 'Platform',
|
||||
'notepad' => 'Shared Notepad', // Context: The shared notepad that appears when votes are needed,
|
||||
'appointment_info' => 'Appointment Information',
|
||||
'ip_info' => 'IP Address Information for'
|
||||
],
|
||||
|
||||
|
||||
// ============== HOMEPAGE MESSAGES ======================
|
||||
|
||||
'home' => 'Home',
|
||||
'homepagetxt' => 'Homepage',
|
||||
'login' => 'Sign in',
|
||||
'logout' => 'Sign out',
|
||||
'register' => 'Sign up',
|
||||
'dashboard' => 'Dashboard',
|
||||
'back' => 'Go back',
|
||||
'homepage_welcome' => 'Welcome to our team management center!',
|
||||
'homepage_explainer_line1' => 'Here, you can apply for open staff member positions, view your application status, and manage your profile.',
|
||||
'homepage_explainer_line2' => 'Sign up with Email to continue.',
|
||||
'footer_copy' => 'All rights reserved',
|
||||
'global_error' => 'An error occurred',
|
||||
'global_success' => 'Success!',
|
||||
'txt_learn_more' => 'Learn more',
|
||||
'opening_nodetails' => 'There don\'t seem to be any details',
|
||||
'opening_nodetails_exp' => 'This opening does not have any details yet.',
|
||||
'details_m_title' => 'Opening details',
|
||||
'open_positions' => 'Open Positions',
|
||||
'last_updated' => 'Last updated',
|
||||
'open_position_count' => '{1} There is :count open position!|[2,*] There are :count open positions!',
|
||||
'ineligible_days_remaining' => 'Ineligible (:days) day(s) remaining',
|
||||
'txt_apply' => 'Apply', // Context: Apply as in applying for a "job", e.g. registering for a job
|
||||
'txt_application' => 'Application',
|
||||
'application_closed' => 'Applications Closed',
|
||||
'application_closed_intro' => 'Hello there!',
|
||||
'application_closed_intro_line2' => '
|
||||
We are currently not hiring any new staff members at the moment. If you\'d like to apply, check out our Discord\'s
|
||||
announcement channel for news when a new position opens.
|
||||
Our application cycle usually lasts two weeks, so if you\'re seeing this, it\'s because it finished, and new one will begin soon.
|
||||
',
|
||||
'where_work' => 'Where you\'ll work',
|
||||
'join_team' => 'Join The Team',
|
||||
'join_team_cta' => 'Join the team today and help out network grow and prosper!',
|
||||
'contact_cta' => 'Any questions? Leave a message!',
|
||||
'contact_disclaimer' => '*This is not an application form. Any applications sent here will be ignored.',
|
||||
'contactlabel_name' => 'Name',
|
||||
'contactlabel_email' => 'E-mail',
|
||||
'contactlabel_subject' => 'Subject (ex. Site Suggestion)',
|
||||
'contactlabel_send' => 'Send',
|
||||
|
||||
|
||||
|
||||
// ======================== AUTHENTICATION MESSAGES ===========================
|
||||
|
||||
'2fa_txt' => 'Two-Factor Authentication',
|
||||
'2fa_sronly' => 'Two-factor secret code (You can find this on Google Authenticator)',
|
||||
'2fa_lostcode' => 'Don\'t know the code?',
|
||||
'2fa_cancel_login' => 'Cancel login (logout)',
|
||||
|
||||
'terms' => 'Terms of Use',
|
||||
'ppolicy' => 'Privacy Policy',
|
||||
|
||||
'signin_cta' => 'Sign into your account',
|
||||
'password' => 'Password',
|
||||
'remember_me' => 'Remember me',
|
||||
'forgot_pw' => 'Forgot password?',
|
||||
'register_cta' => 'Register here',
|
||||
'no_acc' => 'Don\'t have an account?',
|
||||
'register_acc' => 'Register a new account',
|
||||
'pwsec' => [
|
||||
'line1' => 'Basic password security',
|
||||
'line2' => 'For your security, we implement strict password policies. It\'s also advisable to let your password manager or browser generate and save passwords for you (if it\'s a private device).',
|
||||
'line3' => 'Passwords must be a combination of: ',
|
||||
'line4' => 'A minimum of 10 characters;',
|
||||
'line5' => 'At least 3 uppercase characters;',
|
||||
'line6' => 'At least 3 numbers;',
|
||||
'line7' => 'Any number of special characters.'
|
||||
],
|
||||
'sronly_confirmpassword' => 'Confirm Password', // hint: sronly stands for screen-reader only
|
||||
'sronly_mcusername' => 'Minecraft Username (Premium)',
|
||||
'have_account' => 'Have an account with us?',
|
||||
'login_here' => 'Login here',
|
||||
'register_txt' => 'Register',
|
||||
|
||||
// ===================== DASHBOARD & COMPONENT MESSAGES ===========================
|
||||
|
||||
'modal_close' => 'Close',
|
||||
'component_nopermission' => 'We\'re sorry, but you do not have permission to access this web page.',
|
||||
'component_accessdenied' => 'Access Denied',
|
||||
'component_contact' => 'Please contact your administrator if you believe this was in error.',
|
||||
'welcome_back' => 'Welcome back,',
|
||||
'eligible' => 'Eligible',
|
||||
'ineligible' => 'Ineligible',
|
||||
'eligibility_status' => 'Your current application eligibility status: :badgeStatus',
|
||||
'ongoing_apps' => 'Ongoing apps',
|
||||
'denied_apps' => 'Denied apps',
|
||||
'users_staff' => 'Total Users + Staff',
|
||||
'new_apps' => 'New applications',
|
||||
'v_backlog' => 'Vote backlog',
|
||||
'ranks' => 'Available ranks',
|
||||
'open' => 'Open',
|
||||
'closed' => 'Closed',
|
||||
'upcoming' => 'Your upcoming interviews',
|
||||
'soon' => 'Coming soon',
|
||||
|
||||
|
||||
//=================== ADMINISTRATION MESSAGES (for all administration pages) ===============
|
||||
|
||||
'adm' => 'Administration',
|
||||
'devtools' => 'Developer Tools',
|
||||
'devtools_evn' => 'Event Management',
|
||||
'devoptions' => 'Developer Options',
|
||||
'forceeval' => 'Please choose an application to force re-evaluation',
|
||||
'appid' => 'Application ID',
|
||||
'no_valid_app' => 'There are no valid applications',
|
||||
'choose_app' => 'Choose an application',
|
||||
'dispatch_event' => 'Dispatch event now',
|
||||
'devtools_warn' => 'Do not use these options if you don\'t know what you\'re doing, even if you have access to this page.',
|
||||
'warn' => 'Warning',
|
||||
'override_votes' => 'Override Vote Evaluation',
|
||||
'artisan_evaluate' => 'Artisan: Evaluate Votes Now', // Tip: Artisan is a program name, therefore not translatable
|
||||
'devtools_info' => 'This panel may be also used to completely override the vote system in stalemate scenarios',
|
||||
|
||||
|
||||
'forms' => 'Forms',
|
||||
'positions' => 'Positions', // Context: Positions as in job opening
|
||||
'edit_form' => 'Edit Form',
|
||||
'edt' => 'Editor',
|
||||
'edit' => 'Edit',
|
||||
'edt_action' => 'Editing',
|
||||
'txtbox' => 'Textbox',
|
||||
'multiline' => 'Multi line answer',
|
||||
'checkbox' => 'Checkbox',
|
||||
'field_type' => 'Choose a field type',
|
||||
'save_exit' => 'Save & Quit',
|
||||
'new_field' => 'New field',
|
||||
'vacancy_edit' => 'Vacancy Editor',
|
||||
'new_vacancy' => 'New Vacancy',
|
||||
'form_consistency' => 'For consistency purposes, grayed out fields can\'t be edited.',
|
||||
|
||||
'vacancy' => [
|
||||
'add' => 'Add vacancy',
|
||||
'name' => 'Vacancy Name',
|
||||
'description' => 'Vacancy Description',
|
||||
'details' => 'Vacancy Details',
|
||||
'markdown' => 'Markdown Supported',
|
||||
'no_details' => 'No details yet... Add some!',
|
||||
'permission_group' => 'Permission Group',
|
||||
'permission_group_tooltip' => 'The permission group from your server/network\'s permissions manager. Compatible with Luckperms and PEX.',
|
||||
'discord_roleid' => 'Discord Role ID',
|
||||
'discord_roleid_tooltip' => 'Discord Desktop: Go to your Account Settings > Appearance -> Advanced and toggle Developer Mode. On your server\'s roles tab, right click any role to copy it\'s ID.',
|
||||
'current_form' => 'Current Form (uneditable)',
|
||||
'remaining_slots' => 'Remaining slots',
|
||||
'free_slots' => 'Free slots',
|
||||
'free_slots_tooltip' => 'How many submissions before the vacancy stops accepting new applicants?',
|
||||
'save' => 'Save Changes',
|
||||
'cancel' => 'Cancel',
|
||||
'close_vacancy' => 'Close Position',
|
||||
'description_tooltip' => 'Add things like admission requirements, rank resposibilities and roles, and anything else you feel is necessary',
|
||||
''
|
||||
|
||||
],
|
||||
|
||||
'form' => 'Form',
|
||||
|
||||
'form_builder' => [
|
||||
'builder' => 'Form Builder',
|
||||
'builder_name' => 'Application Form Management Tool',
|
||||
'name_form' => 'Name your form...',
|
||||
'save_form' => 'Save Form',
|
||||
],
|
||||
|
||||
'form_preview' => [
|
||||
'preview' => 'Preview',
|
||||
'title' => 'Application Form Preview',
|
||||
'looks' => 'This is how your form looks like to applicants',
|
||||
'f_info' => 'You may edit it and add more fields later.',
|
||||
''
|
||||
],
|
||||
|
||||
'forms_p' => [
|
||||
|
||||
'available_forms' => 'Available forms',
|
||||
'form_title' => 'Form title',
|
||||
'empty_noforms' => 'Nothing to see here! Please add some forms first.',
|
||||
'new_form' => 'NEW FORM'
|
||||
],
|
||||
|
||||
'players' => [
|
||||
|
||||
'reg_players' => 'Registered Players',
|
||||
'reg_players_staff' => 'See Registered Players (Applicant Pool)',
|
||||
'total_banned' => 'Total Banned Players',
|
||||
'search' => 'Search players',
|
||||
'f_p_search' => 'Full/partial email search',
|
||||
'p_disclaimer' => 'Please note: This list only includes players registered in the team management portal. In a future release, all network players will be shown here.',
|
||||
'listing' => 'Player Listing',
|
||||
'reg_date' => 'Registration Date',
|
||||
'ign' => 'IGN', // Context: Short for In-Game Name
|
||||
'banned' => 'Banned',
|
||||
'active' => 'Active',
|
||||
'no_reg' => 'There are no registered players!',
|
||||
'no_reg_exp' => "
|
||||
Registered players are those without a staff role in the team management application.
|
||||
There may be other users registered in the platform, but they won't be displayed here.
|
||||
",
|
||||
'see_staff' => 'See Staff Members'
|
||||
|
||||
],
|
||||
|
||||
'positions_p' => [
|
||||
|
||||
'application_form' => 'Application Form',
|
||||
'select_form' => 'Select a form...',
|
||||
'no_form_error' => "
|
||||
You cannot create a vacancy without any forms with which people would apply.
|
||||
create a form first, then, create a vacancy.
|
||||
A single form is allowed to have multiple vacancies, so you can attach future vacancies to the same form if you'd like.
|
||||
",
|
||||
'new_pos' => 'NEW POSITION',
|
||||
'empty_pos_warning' => 'Nothing to see here! Open some vacancies first. This will get applicants pouring in! (hopefully)',
|
||||
'manage_forms' => 'MANAGE APPLICATION FORMS',
|
||||
|
||||
],
|
||||
|
||||
'settings' => [
|
||||
|
||||
'settings' => 'Settings',
|
||||
'settings_header' => 'Notification Settings',
|
||||
'settings_p' => 'Change which notifications are sent here.',
|
||||
'back_btn' => 'Back to Dashboard'
|
||||
|
||||
],
|
||||
|
||||
'staff' => [
|
||||
|
||||
'members' => 'Staff Members',
|
||||
'active_sm' => 'Active Staff Members',
|
||||
'm_listing' => 'Member Listing',
|
||||
'f_name' => 'Full Name',
|
||||
'rank' => 'Rank',
|
||||
],
|
||||
|
||||
// ======================== APPLICATION RENDERING MESSAGES =========================
|
||||
|
||||
'application_r' => [
|
||||
|
||||
'appl_submit_warn' => 'Are you sure you want to submit your application? Please review each of your answers carefully before doing so.',
|
||||
'appl_submit_doublewarn' => 'Please note: Applications CANNOT be modified once they\'re submitted!',
|
||||
'acceptsend' => 'Accept & Send',
|
||||
'review' => 'Review',
|
||||
'applying_for' => 'You are applying for: :name',
|
||||
'welcome' => [
|
||||
'yrs_old' => 'Years old', // Context: "years old" as in: Tom is 24 years old
|
||||
'line1' => 'We\'re glad you\'ve decided to apply. Generally, applications take 48 hours to be processed and reviewed. Depending on the circumstances and the volume of applications, you may receive an answer in a shorter time.',
|
||||
'line2' => 'Please fill out the form below. Keep all answers concise and complete. Please keep in mind that the age requirement is at least :agerqr.',
|
||||
'line3' => 'Asking about your application will result in instant denial. Everything you need to know is here.'
|
||||
],
|
||||
'app_timeout' => 'Your account is not permitted to submit another application. Please wait :days more days before trying to submit an application.'
|
||||
],
|
||||
|
||||
|
||||
'application_m' => [
|
||||
'title' => 'Application Management',
|
||||
'all_apps' => 'All Applications',
|
||||
'modal_confirm' => 'Are you sure?',
|
||||
'really_delete' => 'Really delete this?',
|
||||
|
||||
|
||||
'outstanding_sm' => 'Outstanding',
|
||||
'outstanding_apps' => 'Outstanding Applications',
|
||||
'outstanding_subm' => 'Outstanding (Submitted)',
|
||||
|
||||
'interview_q' => 'Interview Queue',
|
||||
'interview_p' => 'Interview',
|
||||
'interview_s' => 'Interview Scheduled',
|
||||
'finished_int' => 'Finished Interviews',
|
||||
'schedule_int' => 'Schedule Interviews',
|
||||
'p_review' => 'Peer Review',
|
||||
'applicant' => 'Applicant',
|
||||
'interviewee' => 'Interviewee',
|
||||
'pending_int' => 'Pending Interview',
|
||||
'schedule' => 'Schedule',
|
||||
|
||||
'view_interview_queue' => 'View Interview Queue',
|
||||
'view_approval_queue' => 'View Approval Queue',
|
||||
'view_outstanding_queue' => 'View Outstanding Queue',
|
||||
|
||||
'approved' => 'Approved',
|
||||
'denied' => 'Denied',
|
||||
'unknown_stat' => 'Unknown',
|
||||
|
||||
'consequence_irreversible' => 'IRREVERSIBLE',
|
||||
'delete_action_warning' => 'This action is :consequence.',
|
||||
'delete_explainer' => 'Comments, appointments and any votes attached to this application WILL be deleted too. Please make sure this application really needs to be deleted.',
|
||||
|
||||
'all_apps_header' => 'You\'re looking at all applications ever received',
|
||||
'all_apps_exp' => 'Here, you have quick and easy access to all applications ever received by the system.',
|
||||
|
||||
'no_apps' => 'There are no applications here',
|
||||
'no_apps_exp' => 'We couldn\'t find any applications. Maybe no one has applied yet? Please try again later.',
|
||||
'int_applications' => 'Applications',
|
||||
|
||||
'no_apps_pending_int' => 'No Applications Pending Interview',
|
||||
'no_apps_pending_int_exp' => 'There are no applications that have been moved up to the Interview stage. Please check the outstanding queue.There are no applications that have been moved up to the Interview stage. Please check the outstanding queue.',
|
||||
'upcoming_int' => 'My Upcoming Interviews',
|
||||
'pending_schedule' => 'Pending Schedule',
|
||||
|
||||
'no_upcoming' => 'There are no upcoming interviews',
|
||||
'no_upcoming_exp' => 'Please check other queues down in the application process. Applicants here may have already been interviewed.',
|
||||
|
||||
'no_outstanding' => 'Seeing no applications? Check with an Administrator to make sure that there are available open positions.',
|
||||
'no_outstanding_exp' => 'Advertising on relevant forums made for this purpose is also a good idea.',
|
||||
|
||||
'applicant_name' => 'Applicant Name',
|
||||
'application_date' => 'Application Date',
|
||||
|
||||
'no_pending' => 'There are no pending applications',
|
||||
'no_pending_exp' => 'It seems like no one new has applied yet. Checkout the interview and approval queues for applications that might have moved up the ladder by now.',
|
||||
|
||||
'voting_reminder' => [
|
||||
|
||||
'title' => 'Voting Reminder',
|
||||
'line1' => 'Applications which gain more than 50% of positive votes are automatically approved after one day.',
|
||||
'line2' => 'Conversely, applications that do not reach this number are automatically denied.',
|
||||
'line3' => 'Please note that the vote system can be overridden'
|
||||
|
||||
],
|
||||
|
||||
'no_pending_review' => 'There are no applications pending review',
|
||||
'no_pending_review_exp' => 'Check the other queues for any applications! Applications will be shown here as soon as their interview is completed. You\'ll be able to view meeting notes and vote based on your observations.',
|
||||
|
||||
],
|
||||
|
||||
// ============= PROFILE & USER MESSAGES ===============
|
||||
|
||||
'profile' => [
|
||||
|
||||
'title' => ':name\'s profile',
|
||||
'profile' => 'Profile',
|
||||
'users' => 'Users',
|
||||
'account_banned' => 'Account banned',
|
||||
'account_banned_exp' => 'This user has been banned by the moderators.',
|
||||
'ban_confirm' => 'Please confirm that you want to ban this user account. You\'ll need to add a reason and expiration date to confirm this. Bans don\'t transfer to connected Minecraft networks (yet).',
|
||||
'leave_empty' => 'Leave empty for a permanent ban',
|
||||
'duration' => 'Duration',
|
||||
'p_duration' => 'Punishment duration',
|
||||
'p_duration_exp' => 'e.g. Spamming',
|
||||
'ban' => 'Ban',
|
||||
|
||||
'terminate_notice' => 'You are about to terminate a staff member',
|
||||
'terminate_notice_warning' => 'Terminating a staff member will remove their privileges on the team management site and Network.
|
||||
They will be notified of their termination. Make sure to have discussed this with them first.',
|
||||
'terminate_notice_consequence' => 'THIS PROCESS IS IRREVERSIBLE AND IMMEDIATE',
|
||||
'terminate_txt' => 'Terminate Staff Member',
|
||||
|
||||
'delete_acc_warn' => 'WARNING: This is a potentially destructive action!',
|
||||
'delete_acc_consequence' => 'Deleting a user\'s account is an irreversible process. Historic and current applications, votes, and profile content, as well as any personally identifiable information will be immediately erased.',
|
||||
'type_to_confirm' => 'Type to confirm:',
|
||||
'type_placeholder' => 'Please type the above',
|
||||
|
||||
'delete_acc' => 'Delete Account',
|
||||
'edit_acc' => 'Edit Account',
|
||||
|
||||
'ban_acc' => 'Ban Account',
|
||||
'unban_acc' => 'Unban Account',
|
||||
|
||||
'search_result' => 'Search results',
|
||||
|
||||
'origin_cc' => 'Origin country',
|
||||
'state_prov' => 'State/Province',
|
||||
'district' => 'District (if any)',
|
||||
'city' => 'City',
|
||||
'zipcode' => 'Zipcode',
|
||||
'coords' => 'Coordinates',
|
||||
'european' => 'European?',
|
||||
'isp' => 'ISP', // Internet service provider
|
||||
'org' => 'Organization (if any)',
|
||||
'ctype' => 'C. Type', // Internet Connection type
|
||||
'timezone' => 'Timezone',
|
||||
'noresults' => 'This query returned no results.',
|
||||
|
||||
'edituser' => 'Edit PII and Roles', // PII: Personally identifiable information
|
||||
'edituser_consequence' => 'Warning! This is a sensitive setting! Changing this could have unintended consequences!',
|
||||
'acc_management' => 'Account Management (Admin)',
|
||||
'discord_tag' => 'User\'s Discord Tag: :discordTag',
|
||||
'account_settings' => 'Account Settings',
|
||||
'account_settings_personal' => 'My Account Settings',
|
||||
|
||||
'2fa_welcome' => 'We\'re glad you decided to increase your account\'s security!',
|
||||
'supported_apps' => 'Supported apps you can install: ',
|
||||
'scan_code' => 'Scan the :scannable code with your preferred app, and then copy the code here.',
|
||||
'otp' => 'One-time code',
|
||||
'2fa_enable' => 'Enable 2FA',
|
||||
'2fa_remove_consequence' => 'Removing two-factor authentication will reduce the security of your account.',
|
||||
'2fa_password_confirm' => 'Confirm your password to continue',
|
||||
'2fa_password_confirm_exp' => 'To prevent unauthorized changes, a password is always required for sensitive operations.',
|
||||
'2fa_disable_consent' => '"I understand the possible consequences of disabling two factor authentication"',
|
||||
'2fa_remove' => 'Remove 2FA',
|
||||
'2fa_remove_extended' => 'Remove Two-Factor Authentication',
|
||||
'2fa_send_code' => 'Send 2FA Code',
|
||||
'2fa_send_code_s' => '2FA Code (ex. 41351)',
|
||||
|
||||
'security_lgotherdev' => 'For your security, you\'ll need to re-enter your password before logging out other devices. If you believe your account has been compromised, please change your password instead, as that will automatically log out anyone else who might using your account, and prevent them from signing back in.',
|
||||
'password_reenter' => 'Re-enter your password',
|
||||
|
||||
'acc_security' => 'Account Security',
|
||||
'2fa' => 'Two Factor Authentication',
|
||||
'sessions' => 'Sessions',
|
||||
'contact_settings' => 'Contact Settings (E-Mail)',
|
||||
|
||||
'change_password' => 'Change Password',
|
||||
'change_password_exp' => 'Change your password here. This will log you out from all existing sessions for your security.',
|
||||
|
||||
'old_pass' => 'Old Password',
|
||||
'forgot_pw' => 'Forgot your password? Reset it :link',
|
||||
'new_pw' => 'New Password',
|
||||
|
||||
'2fa_enable_success' => 'Hooray! 2FA is setup correctly for your account. A code will be asked each time you login.',
|
||||
'2fa_avail' => 'Two-factor auth is available for your account.',
|
||||
'2fa_avail_exp' => ' Enabling this security option greatly increases your account\'s security in case your password ever gets stolen.',
|
||||
|
||||
'session_manager' => 'Session Manager',
|
||||
'terminate_others' => 'Terminating other sessions is generally a good idea if your account has been compromised.',
|
||||
'current_session' => 'Your current session: logged in from :ipAddress',
|
||||
'flush_session' => 'Flush sessions',
|
||||
'personal_data_change' => 'Need to change personal data? You can do so here.',
|
||||
'current_email' => 'Current Email Address',
|
||||
'new_email' => 'New Email Address',
|
||||
'current_password' => 'Current Password',
|
||||
'security_nochangepw' => 'For security reasons, you cannot make important account changes without confirming your password. You\'ll also need to verify your new email.',
|
||||
'change_email' => 'Change Email Address',
|
||||
|
||||
'basic_info' => 'Basic Information',
|
||||
'fl_name' => 'First / Last Name',
|
||||
'shortbio' => 'Short Bio',
|
||||
'about_me' => 'About Me',
|
||||
'pref_media' => 'Preferences & Media',
|
||||
'avatar_source' => 'Retrieve avatar from: ',
|
||||
'social_media' => 'Social Media',
|
||||
|
||||
'github_user' => 'Github Username',
|
||||
'twitter_user' => 'Twitter Username',
|
||||
'insta_user' => 'Instagram Username',
|
||||
'discord_user' => 'Discord Handle',
|
||||
|
||||
'update_prfl' => 'Update Profile'
|
||||
|
||||
],
|
||||
|
||||
// ==================== USER ACCOUNT MESSAGES (NON-PRIVILEGED) =====================
|
||||
|
||||
'user' => [
|
||||
|
||||
'app_process' => [
|
||||
'title' => 'Application Process',
|
||||
'line1' => 'Please allow up to three days for your application to be processed. Your application will be reviewed by every team member, and will move up in stages.',
|
||||
'line2' => 'If an interview is scheduled, you\'ll need to open your application here and confirm the time, date, and location assigned for you.'
|
||||
],
|
||||
|
||||
'account_standing' => 'Account Standing',
|
||||
'account_eligibility' => 'Your account is currently :eligibility for application',
|
||||
'days_remaining_acc_alt' => 'As of today, there are :days remaining until you\'re permitted to submit another application.',
|
||||
'my_ongoingapps' => 'My Ongoing Applications',
|
||||
|
||||
'submitted' => 'Submitted',
|
||||
'peer_approval' => 'Peer Approval',
|
||||
'peer_approval_q' => 'Peer Approval Queue',
|
||||
|
||||
'nothing_to_show' => 'Nothing to show',
|
||||
'nothing_to_show_exp' => 'You currently have no applications to display. If you\'re eligible, you may apply once every month.',
|
||||
|
||||
'directory' => [
|
||||
|
||||
'itsyou' => 'It\'s you!',
|
||||
'title' => 'User Directory',
|
||||
'directory' => 'Directory'
|
||||
|
||||
]
|
||||
|
||||
],
|
||||
|
||||
'view_app' => [
|
||||
|
||||
'title' => 'Viewing application',
|
||||
'viewing_app' => 'Viewing :user\'s application',
|
||||
'cantvote' => 'You cannot vote on this application anymore.',
|
||||
'no_notes' => 'There are no notes yet. Add some!',
|
||||
'deny_confirm' => 'Are you sure you want to deny this application? Please keep in mind that this user will only be allowed to apply 30 days after their first application.',
|
||||
'deny_confirm_consequence' => 'This action cannot be undone.',
|
||||
'deny_confirm_btn' => 'Confirm: Deny Applicant',
|
||||
'form_updated_alert' => 'If this form has been updated, new fields and updated questions will not show up here!',
|
||||
'context_info' => 'Contextual Information',
|
||||
'appl_ip' => 'Applicant IP Address',
|
||||
'appl_for' => 'Applying for',
|
||||
'currentstatus' => 'Current Status',
|
||||
'decisionmod' => 'Decision & Moderation Tools',
|
||||
'denyapp' => 'Deny applicant',
|
||||
'nextstage' => 'Move to next stage',
|
||||
'appointment_desc' => 'Appointment description',
|
||||
'int_date_time' => 'Interview Date & Time',
|
||||
'choosedate' => 'Click to choose a date',
|
||||
'appointment_loc' => 'Appointment Location',
|
||||
'pref_platform' => 'Select your preferred platform',
|
||||
'coming_soon_int' => 'Embedded in-house video conferencing coming soon, powered by Jitsi Meet',
|
||||
'scheduled_for' => 'Interview Scheduled for:',
|
||||
'platform' => 'Platform',
|
||||
'finish_meeting' => 'Finish Meeting',
|
||||
'view_notes' => 'View Meeting Notes',
|
||||
'vote_app' => 'Vote on this application',
|
||||
|
||||
'vote_explainer' => [
|
||||
|
||||
'line1' => 'If you weren\'t present during this meeting, you can view the shared meeting notepad to help you make a decision.',
|
||||
'line2' => 'You may vote on as many applications as needed; However, you can only vote once per application.',
|
||||
'line3' => 'Votes carry no weight based on rank. This system has been designed with fairness and ease of use in mind.'
|
||||
|
||||
],
|
||||
|
||||
'vote_approve' => 'Vote: Approve Applicant',
|
||||
'vote_deny' => 'Vote: Deny Applicant',
|
||||
'm_notes' => 'Meeting notes',
|
||||
'view_more' => 'View more Applications',
|
||||
'comments' => 'Comments',
|
||||
'no_comments' => 'There are no comments here.',
|
||||
'no_comments_exp' => 'There are no comments here! Comments are only visible to staff members. Be the first to share your input! Commenting may help with decision-making when time comes to vote for an application.',
|
||||
'commenting_as' => 'Commenting as :username',
|
||||
'max_chars' => 'max characters', // Context: A number is added before max characters
|
||||
'post' => 'Post', // Context: Post as in post comment
|
||||
|
||||
]
|
||||
|
||||
// ==================== END OF MAIN I18N FILE ======================
|
||||
|
||||
];
|
19
resources/lang/es/auth.php
Normal file
19
resources/lang/es/auth.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?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' => 'These credentials do not match our records.',
|
||||
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
|
||||
|
||||
];
|
612
resources/lang/es/messages.php
Normal file
612
resources/lang/es/messages.php
Normal file
@ -0,0 +1,612 @@
|
||||
<?php
|
||||
/*
|
||||
* -- Information for translators | READ BEFORE TRANSLATING ANYTHING ---
|
||||
* In this file, only translate messages to the right, in this fashion:
|
||||
* 'something' => 'translate-me'
|
||||
* Also, don't translate, change, or move placeholders (:this-is-a-placeholder) starting with a colon.
|
||||
* Try to keep the message as close to the original in meaning as possible. These simple rules also apply to other files you're translating, such as:
|
||||
* auth.php, pagination.php, passwords.php, and validation.php.
|
||||
* It is VERY important that you "escape" single quotes with a backslash if they're present in your language, like this: I\'m an escaped quote
|
||||
*
|
||||
* Additionally, don't change anything in square or curly brackets, and don't remove pipe (|) characters.
|
||||
* If you see two messages separated by pipe, then usually the left side is singular and the right side is plural, so translate accordingly.
|
||||
*
|
||||
* Thank you for translating!
|
||||
*/
|
||||
|
||||
return [
|
||||
|
||||
// ============== MENU TRANSLATIONS ======================
|
||||
|
||||
|
||||
'menu' => [
|
||||
|
||||
'my_apps' => 'My Applications',
|
||||
'current_apps' => 'Current Applications',
|
||||
'profile_settings' => 'Profile Settings',
|
||||
'hiring_man' => 'Hiring Management',
|
||||
'all_forms' => 'All Forms',
|
||||
'app_settings' => 'App Settings',
|
||||
'global_app_settings' => 'Global App Settings',
|
||||
'system_logs' => 'System Logs'
|
||||
],
|
||||
|
||||
|
||||
|
||||
// ============== REUSABLE, GENERIC STRINGS ===============
|
||||
|
||||
'reusable' => [
|
||||
'created_at' => 'Created at',
|
||||
'updated_at' => 'Updated at',
|
||||
'actions' => 'Actions',
|
||||
'delete' => 'Delete',
|
||||
'status' => 'Status',
|
||||
'view' => 'View',
|
||||
'view_c' => 'View Details',
|
||||
'no_access' => 'Application Access Denied',
|
||||
'validation_err' => 'Validation error!',
|
||||
'description' => 'Description',
|
||||
'join_date' => 'Join Date',
|
||||
'my_acc' => 'My Account',
|
||||
'confirm' => 'Please Confirm',
|
||||
'confirm_plain' => 'Confirm',
|
||||
'confirm_click' => 'Click to Confirm',
|
||||
'date' => 'Date',
|
||||
'datetime' => 'Time & Date',
|
||||
'location' => 'Location',
|
||||
'none_yet' => 'None yet',
|
||||
'reason' => 'Reason',
|
||||
'days' => 'Days',
|
||||
'weeks' => 'Weeks',
|
||||
'months' => 'Months',
|
||||
'years' => 'Years',
|
||||
'yes' => 'Yes',
|
||||
'no' => 'No',
|
||||
'roles' => 'Roles',
|
||||
'member_since' => 'Member since :date',
|
||||
'lookup' => 'Lookup :ipAddress',
|
||||
'abt' => 'About',
|
||||
'acc' => 'Account',
|
||||
'settings' => 'Settings',
|
||||
'profile' => 'My Profile',
|
||||
'code' => 'code',
|
||||
'here' => 'here',
|
||||
'auth_req' => 'Please authenticate',
|
||||
'eligible' => 'Eligible',
|
||||
'ineligible' => 'Ineligible',
|
||||
'schedule' => 'Schedule',
|
||||
'schedule_action' => 'Schedule an Appointment',
|
||||
'platform' => 'Platform',
|
||||
'notepad' => 'Shared Notepad', // Context: The shared notepad that appears when votes are needed,
|
||||
'appointment_info' => 'Appointment Information',
|
||||
'ip_info' => 'IP Address Information for'
|
||||
],
|
||||
|
||||
|
||||
// ============== HOMEPAGE MESSAGES ======================
|
||||
|
||||
'home' => 'Home',
|
||||
'homepagetxt' => 'Homepage',
|
||||
'login' => 'Sign in',
|
||||
'logout' => 'Sign out',
|
||||
'register' => 'Sign up',
|
||||
'dashboard' => 'Dashboard',
|
||||
'back' => 'Go back',
|
||||
'homepage_welcome' => 'Welcome to our team management center!',
|
||||
'homepage_explainer_line1' => 'Here, you can apply for open staff member positions, view your application status, and manage your profile.',
|
||||
'homepage_explainer_line2' => 'Sign up with Email to continue.',
|
||||
'footer_copy' => 'All rights reserved',
|
||||
'global_error' => 'An error occurred',
|
||||
'global_success' => 'Success!',
|
||||
'txt_learn_more' => 'Learn more',
|
||||
'opening_nodetails' => 'There don\'t seem to be any details',
|
||||
'opening_nodetails_exp' => 'This opening does not have any details yet.',
|
||||
'details_m_title' => 'Opening details',
|
||||
'open_positions' => 'Open Positions',
|
||||
'last_updated' => 'Last updated',
|
||||
'open_position_count' => '{1} There is :count open position!|[2,*] There are :count open positions!',
|
||||
'ineligible_days_remaining' => 'Ineligible (:days) day(s) remaining',
|
||||
'txt_apply' => 'Apply', // Context: Apply as in applying for a "job", e.g. registering for a job
|
||||
'txt_application' => 'Application',
|
||||
'application_closed' => 'Applications Closed',
|
||||
'application_closed_intro' => 'Hello there!',
|
||||
'application_closed_intro_line2' => '
|
||||
We are currently not hiring any new staff members at the moment. If you\'d like to apply, check out our Discord\'s
|
||||
announcement channel for news when a new position opens.
|
||||
Our application cycle usually lasts two weeks, so if you\'re seeing this, it\'s because it finished, and new one will begin soon.
|
||||
',
|
||||
'where_work' => 'Where you\'ll work',
|
||||
'join_team' => 'Join The Team',
|
||||
'join_team_cta' => 'Join the team today and help out network grow and prosper!',
|
||||
'contact_cta' => 'Any questions? Leave a message!',
|
||||
'contact_disclaimer' => '*This is not an application form. Any applications sent here will be ignored.',
|
||||
'contactlabel_name' => 'Name',
|
||||
'contactlabel_email' => 'E-mail',
|
||||
'contactlabel_subject' => 'Subject (ex. Site Suggestion)',
|
||||
'contactlabel_send' => 'Send',
|
||||
|
||||
|
||||
|
||||
// ======================== AUTHENTICATION MESSAGES ===========================
|
||||
|
||||
'2fa_txt' => 'Two-Factor Authentication',
|
||||
'2fa_sronly' => 'Two-factor secret code (You can find this on Google Authenticator)',
|
||||
'2fa_lostcode' => 'Don\'t know the code?',
|
||||
'2fa_cancel_login' => 'Cancel login (logout)',
|
||||
|
||||
'terms' => 'Terms of Use',
|
||||
'ppolicy' => 'Privacy Policy',
|
||||
|
||||
'signin_cta' => 'Sign into your account',
|
||||
'password' => 'Password',
|
||||
'remember_me' => 'Remember me',
|
||||
'forgot_pw' => 'Forgot password?',
|
||||
'register_cta' => 'Register here',
|
||||
'no_acc' => 'Don\'t have an account?',
|
||||
'register_acc' => 'Register a new account',
|
||||
'pwsec' => [
|
||||
'line1' => 'Basic password security',
|
||||
'line2' => 'For your security, we implement strict password policies. It\'s also advisable to let your password manager or browser generate and save passwords for you (if it\'s a private device).',
|
||||
'line3' => 'Passwords must be a combination of: ',
|
||||
'line4' => 'A minimum of 10 characters;',
|
||||
'line5' => 'At least 3 uppercase characters;',
|
||||
'line6' => 'At least 3 numbers;',
|
||||
'line7' => 'Any number of special characters.'
|
||||
],
|
||||
'sronly_confirmpassword' => 'Confirm Password', // hint: sronly stands for screen-reader only
|
||||
'sronly_mcusername' => 'Minecraft Username (Premium)',
|
||||
'have_account' => 'Have an account with us?',
|
||||
'login_here' => 'Login here',
|
||||
'register_txt' => 'Register',
|
||||
|
||||
// ===================== DASHBOARD & COMPONENT MESSAGES ===========================
|
||||
|
||||
'modal_close' => 'Close',
|
||||
'component_nopermission' => 'We\'re sorry, but you do not have permission to access this web page.',
|
||||
'component_accessdenied' => 'Access Denied',
|
||||
'component_contact' => 'Please contact your administrator if you believe this was in error.',
|
||||
'welcome_back' => 'Welcome back,',
|
||||
'eligible' => 'Eligible',
|
||||
'ineligible' => 'Ineligible',
|
||||
'eligibility_status' => 'Your current application eligibility status: :badgeStatus',
|
||||
'ongoing_apps' => 'Ongoing apps',
|
||||
'denied_apps' => 'Denied apps',
|
||||
'users_staff' => 'Total Users + Staff',
|
||||
'new_apps' => 'New applications',
|
||||
'v_backlog' => 'Vote backlog',
|
||||
'ranks' => 'Available ranks',
|
||||
'open' => 'Open',
|
||||
'closed' => 'Closed',
|
||||
'upcoming' => 'Your upcoming interviews',
|
||||
'soon' => 'Coming soon',
|
||||
|
||||
|
||||
//=================== ADMINISTRATION MESSAGES (for all administration pages) ===============
|
||||
|
||||
'adm' => 'Administration',
|
||||
'devtools' => 'Developer Tools',
|
||||
'devtools_evn' => 'Event Management',
|
||||
'devoptions' => 'Developer Options',
|
||||
'forceeval' => 'Please choose an application to force re-evaluation',
|
||||
'appid' => 'Application ID',
|
||||
'no_valid_app' => 'There are no valid applications',
|
||||
'choose_app' => 'Choose an application',
|
||||
'dispatch_event' => 'Dispatch event now',
|
||||
'devtools_warn' => 'Do not use these options if you don\'t know what you\'re doing, even if you have access to this page.',
|
||||
'warn' => 'Warning',
|
||||
'override_votes' => 'Override Vote Evaluation',
|
||||
'artisan_evaluate' => 'Artisan: Evaluate Votes Now', // Tip: Artisan is a program name, therefore not translatable
|
||||
'devtools_info' => 'This panel may be also used to completely override the vote system in stalemate scenarios',
|
||||
|
||||
|
||||
'forms' => 'Forms',
|
||||
'positions' => 'Positions', // Context: Positions as in job opening
|
||||
'edit_form' => 'Edit Form',
|
||||
'edt' => 'Editor',
|
||||
'edit' => 'Edit',
|
||||
'edt_action' => 'Editing',
|
||||
'txtbox' => 'Textbox',
|
||||
'multiline' => 'Multi line answer',
|
||||
'checkbox' => 'Checkbox',
|
||||
'field_type' => 'Choose a field type',
|
||||
'save_exit' => 'Save & Quit',
|
||||
'new_field' => 'New field',
|
||||
'vacancy_edit' => 'Vacancy Editor',
|
||||
'new_vacancy' => 'New Vacancy',
|
||||
'form_consistency' => 'For consistency purposes, grayed out fields can\'t be edited.',
|
||||
|
||||
'vacancy' => [
|
||||
'add' => 'Add vacancy',
|
||||
'name' => 'Vacancy Name',
|
||||
'description' => 'Vacancy Description',
|
||||
'details' => 'Vacancy Details',
|
||||
'markdown' => 'Markdown Supported',
|
||||
'no_details' => 'No details yet... Add some!',
|
||||
'permission_group' => 'Permission Group',
|
||||
'permission_group_tooltip' => 'The permission group from your server/network\'s permissions manager. Compatible with Luckperms and PEX.',
|
||||
'discord_roleid' => 'Discord Role ID',
|
||||
'discord_roleid_tooltip' => 'Discord Desktop: Go to your Account Settings > Appearance -> Advanced and toggle Developer Mode. On your server\'s roles tab, right click any role to copy it\'s ID.',
|
||||
'current_form' => 'Current Form (uneditable)',
|
||||
'remaining_slots' => 'Remaining slots',
|
||||
'free_slots' => 'Free slots',
|
||||
'free_slots_tooltip' => 'How many submissions before the vacancy stops accepting new applicants?',
|
||||
'save' => 'Save Changes',
|
||||
'cancel' => 'Cancel',
|
||||
'close_vacancy' => 'Close Position',
|
||||
'description_tooltip' => 'Add things like admission requirements, rank resposibilities and roles, and anything else you feel is necessary',
|
||||
''
|
||||
|
||||
],
|
||||
|
||||
'form' => 'Form',
|
||||
|
||||
'form_builder' => [
|
||||
'builder' => 'Form Builder',
|
||||
'builder_name' => 'Application Form Management Tool',
|
||||
'name_form' => 'Name your form...',
|
||||
'save_form' => 'Save Form',
|
||||
],
|
||||
|
||||
'form_preview' => [
|
||||
'preview' => 'Preview',
|
||||
'title' => 'Application Form Preview',
|
||||
'looks' => 'This is how your form looks like to applicants',
|
||||
'f_info' => 'You may edit it and add more fields later.',
|
||||
''
|
||||
],
|
||||
|
||||
'forms_p' => [
|
||||
|
||||
'available_forms' => 'Available forms',
|
||||
'form_title' => 'Form title',
|
||||
'empty_noforms' => 'Nothing to see here! Please add some forms first.',
|
||||
'new_form' => 'NEW FORM'
|
||||
],
|
||||
|
||||
'players' => [
|
||||
|
||||
'reg_players' => 'Registered Players',
|
||||
'reg_players_staff' => 'See Registered Players (Applicant Pool)',
|
||||
'total_banned' => 'Total Banned Players',
|
||||
'search' => 'Search players',
|
||||
'f_p_search' => 'Full/partial email search',
|
||||
'p_disclaimer' => 'Please note: This list only includes players registered in the team management portal. In a future release, all network players will be shown here.',
|
||||
'listing' => 'Player Listing',
|
||||
'reg_date' => 'Registration Date',
|
||||
'ign' => 'IGN', // Context: Short for In-Game Name
|
||||
'banned' => 'Banned',
|
||||
'active' => 'Active',
|
||||
'no_reg' => 'There are no registered players!',
|
||||
'no_reg_exp' => "
|
||||
Registered players are those without a staff role in the team management application.
|
||||
There may be other users registered in the platform, but they won't be displayed here.
|
||||
",
|
||||
'see_staff' => 'See Staff Members'
|
||||
|
||||
],
|
||||
|
||||
'positions_p' => [
|
||||
|
||||
'application_form' => 'Application Form',
|
||||
'select_form' => 'Select a form...',
|
||||
'no_form_error' => "
|
||||
You cannot create a vacancy without any forms with which people would apply.
|
||||
create a form first, then, create a vacancy.
|
||||
A single form is allowed to have multiple vacancies, so you can attach future vacancies to the same form if you'd like.
|
||||
",
|
||||
'new_pos' => 'NEW POSITION',
|
||||
'empty_pos_warning' => 'Nothing to see here! Open some vacancies first. This will get applicants pouring in! (hopefully)',
|
||||
'manage_forms' => 'MANAGE APPLICATION FORMS',
|
||||
|
||||
],
|
||||
|
||||
'settings' => [
|
||||
|
||||
'settings' => 'Settings',
|
||||
'settings_header' => 'Notification Settings',
|
||||
'settings_p' => 'Change which notifications are sent here.',
|
||||
'back_btn' => 'Back to Dashboard'
|
||||
|
||||
],
|
||||
|
||||
'staff' => [
|
||||
|
||||
'members' => 'Staff Members',
|
||||
'active_sm' => 'Active Staff Members',
|
||||
'm_listing' => 'Member Listing',
|
||||
'f_name' => 'Full Name',
|
||||
'rank' => 'Rank',
|
||||
],
|
||||
|
||||
// ======================== APPLICATION RENDERING MESSAGES =========================
|
||||
|
||||
'application_r' => [
|
||||
|
||||
'appl_submit_warn' => 'Are you sure you want to submit your application? Please review each of your answers carefully before doing so.',
|
||||
'appl_submit_doublewarn' => 'Please note: Applications CANNOT be modified once they\'re submitted!',
|
||||
'acceptsend' => 'Accept & Send',
|
||||
'review' => 'Review',
|
||||
'applying_for' => 'You are applying for: :name',
|
||||
'welcome' => [
|
||||
'yrs_old' => 'Years old', // Context: "years old" as in: Tom is 24 years old
|
||||
'line1' => 'We\'re glad you\'ve decided to apply. Generally, applications take 48 hours to be processed and reviewed. Depending on the circumstances and the volume of applications, you may receive an answer in a shorter time.',
|
||||
'line2' => 'Please fill out the form below. Keep all answers concise and complete. Please keep in mind that the age requirement is at least :agerqr.',
|
||||
'line3' => 'Asking about your application will result in instant denial. Everything you need to know is here.'
|
||||
],
|
||||
'app_timeout' => 'Your account is not permitted to submit another application. Please wait :days more days before trying to submit an application.'
|
||||
],
|
||||
|
||||
|
||||
'application_m' => [
|
||||
'title' => 'Application Management',
|
||||
'all_apps' => 'All Applications',
|
||||
'modal_confirm' => 'Are you sure?',
|
||||
'really_delete' => 'Really delete this?',
|
||||
|
||||
|
||||
'outstanding_sm' => 'Outstanding',
|
||||
'outstanding_apps' => 'Outstanding Applications',
|
||||
'outstanding_subm' => 'Outstanding (Submitted)',
|
||||
|
||||
'interview_q' => 'Interview Queue',
|
||||
'interview_p' => 'Interview',
|
||||
'interview_s' => 'Interview Scheduled',
|
||||
'finished_int' => 'Finished Interviews',
|
||||
'schedule_int' => 'Schedule Interviews',
|
||||
'p_review' => 'Peer Review',
|
||||
'applicant' => 'Applicant',
|
||||
'interviewee' => 'Interviewee',
|
||||
'pending_int' => 'Pending Interview',
|
||||
'schedule' => 'Schedule',
|
||||
|
||||
'view_interview_queue' => 'View Interview Queue',
|
||||
'view_approval_queue' => 'View Approval Queue',
|
||||
'view_outstanding_queue' => 'View Outstanding Queue',
|
||||
|
||||
'approved' => 'Approved',
|
||||
'denied' => 'Denied',
|
||||
'unknown_stat' => 'Unknown',
|
||||
|
||||
'consequence_irreversible' => 'IRREVERSIBLE',
|
||||
'delete_action_warning' => 'This action is :consequence.',
|
||||
'delete_explainer' => 'Comments, appointments and any votes attached to this application WILL be deleted too. Please make sure this application really needs to be deleted.',
|
||||
|
||||
'all_apps_header' => 'You\'re looking at all applications ever received',
|
||||
'all_apps_exp' => 'Here, you have quick and easy access to all applications ever received by the system.',
|
||||
|
||||
'no_apps' => 'There are no applications here',
|
||||
'no_apps_exp' => 'We couldn\'t find any applications. Maybe no one has applied yet? Please try again later.',
|
||||
'int_applications' => 'Applications',
|
||||
|
||||
'no_apps_pending_int' => 'No Applications Pending Interview',
|
||||
'no_apps_pending_int_exp' => 'There are no applications that have been moved up to the Interview stage. Please check the outstanding queue.There are no applications that have been moved up to the Interview stage. Please check the outstanding queue.',
|
||||
'upcoming_int' => 'My Upcoming Interviews',
|
||||
'pending_schedule' => 'Pending Schedule',
|
||||
|
||||
'no_upcoming' => 'There are no upcoming interviews',
|
||||
'no_upcoming_exp' => 'Please check other queues down in the application process. Applicants here may have already been interviewed.',
|
||||
|
||||
'no_outstanding' => 'Seeing no applications? Check with an Administrator to make sure that there are available open positions.',
|
||||
'no_outstanding_exp' => 'Advertising on relevant forums made for this purpose is also a good idea.',
|
||||
|
||||
'applicant_name' => 'Applicant Name',
|
||||
'application_date' => 'Application Date',
|
||||
|
||||
'no_pending' => 'There are no pending applications',
|
||||
'no_pending_exp' => 'It seems like no one new has applied yet. Checkout the interview and approval queues for applications that might have moved up the ladder by now.',
|
||||
|
||||
'voting_reminder' => [
|
||||
|
||||
'title' => 'Voting Reminder',
|
||||
'line1' => 'Applications which gain more than 50% of positive votes are automatically approved after one day.',
|
||||
'line2' => 'Conversely, applications that do not reach this number are automatically denied.',
|
||||
'line3' => 'Please note that the vote system can be overridden'
|
||||
|
||||
],
|
||||
|
||||
'no_pending_review' => 'There are no applications pending review',
|
||||
'no_pending_review_exp' => 'Check the other queues for any applications! Applications will be shown here as soon as their interview is completed. You\'ll be able to view meeting notes and vote based on your observations.',
|
||||
|
||||
],
|
||||
|
||||
// ============= PROFILE & USER MESSAGES ===============
|
||||
|
||||
'profile' => [
|
||||
|
||||
'title' => ':name\'s profile',
|
||||
'profile' => 'Profile',
|
||||
'users' => 'Users',
|
||||
'account_banned' => 'Account banned',
|
||||
'account_banned_exp' => 'This user has been banned by the moderators.',
|
||||
'ban_confirm' => 'Please confirm that you want to ban this user account. You\'ll need to add a reason and expiration date to confirm this. Bans don\'t transfer to connected Minecraft networks (yet).',
|
||||
'leave_empty' => 'Leave empty for a permanent ban',
|
||||
'duration' => 'Duration',
|
||||
'p_duration' => 'Punishment duration',
|
||||
'p_duration_exp' => 'e.g. Spamming',
|
||||
'ban' => 'Ban',
|
||||
|
||||
'terminate_notice' => 'You are about to terminate a staff member',
|
||||
'terminate_notice_warning' => 'Terminating a staff member will remove their privileges on the team management site and Network.
|
||||
They will be notified of their termination. Make sure to have discussed this with them first.',
|
||||
'terminate_notice_consequence' => 'THIS PROCESS IS IRREVERSIBLE AND IMMEDIATE',
|
||||
'terminate_txt' => 'Terminate Staff Member',
|
||||
|
||||
'delete_acc_warn' => 'WARNING: This is a potentially destructive action!',
|
||||
'delete_acc_consequence' => 'Deleting a user\'s account is an irreversible process. Historic and current applications, votes, and profile content, as well as any personally identifiable information will be immediately erased.',
|
||||
'type_to_confirm' => 'Type to confirm:',
|
||||
'type_placeholder' => 'Please type the above',
|
||||
|
||||
'delete_acc' => 'Delete Account',
|
||||
'edit_acc' => 'Edit Account',
|
||||
|
||||
'ban_acc' => 'Ban Account',
|
||||
'unban_acc' => 'Unban Account',
|
||||
|
||||
'search_result' => 'Search results',
|
||||
|
||||
'origin_cc' => 'Origin country',
|
||||
'state_prov' => 'State/Province',
|
||||
'district' => 'District (if any)',
|
||||
'city' => 'City',
|
||||
'zipcode' => 'Zipcode',
|
||||
'coords' => 'Coordinates',
|
||||
'european' => 'European?',
|
||||
'isp' => 'ISP', // Internet service provider
|
||||
'org' => 'Organization (if any)',
|
||||
'ctype' => 'C. Type', // Internet Connection type
|
||||
'timezone' => 'Timezone',
|
||||
'noresults' => 'This query returned no results.',
|
||||
|
||||
'edituser' => 'Edit PII and Roles', // PII: Personally identifiable information
|
||||
'edituser_consequence' => 'Warning! This is a sensitive setting! Changing this could have unintended consequences!',
|
||||
'acc_management' => 'Account Management (Admin)',
|
||||
'discord_tag' => 'User\'s Discord Tag: :discordTag',
|
||||
'account_settings' => 'Account Settings',
|
||||
'account_settings_personal' => 'My Account Settings',
|
||||
|
||||
'2fa_welcome' => 'We\'re glad you decided to increase your account\'s security!',
|
||||
'supported_apps' => 'Supported apps you can install: ',
|
||||
'scan_code' => 'Scan the :scannable code with your preferred app, and then copy the code here.',
|
||||
'otp' => 'One-time code',
|
||||
'2fa_enable' => 'Enable 2FA',
|
||||
'2fa_remove_consequence' => 'Removing two-factor authentication will reduce the security of your account.',
|
||||
'2fa_password_confirm' => 'Confirm your password to continue',
|
||||
'2fa_password_confirm_exp' => 'To prevent unauthorized changes, a password is always required for sensitive operations.',
|
||||
'2fa_disable_consent' => '"I understand the possible consequences of disabling two factor authentication"',
|
||||
'2fa_remove' => 'Remove 2FA',
|
||||
'2fa_remove_extended' => 'Remove Two-Factor Authentication',
|
||||
'2fa_send_code' => 'Send 2FA Code',
|
||||
'2fa_send_code_s' => '2FA Code (ex. 41351)',
|
||||
|
||||
'security_lgotherdev' => 'For your security, you\'ll need to re-enter your password before logging out other devices. If you believe your account has been compromised, please change your password instead, as that will automatically log out anyone else who might using your account, and prevent them from signing back in.',
|
||||
'password_reenter' => 'Re-enter your password',
|
||||
|
||||
'acc_security' => 'Account Security',
|
||||
'2fa' => 'Two Factor Authentication',
|
||||
'sessions' => 'Sessions',
|
||||
'contact_settings' => 'Contact Settings (E-Mail)',
|
||||
|
||||
'change_password' => 'Change Password',
|
||||
'change_password_exp' => 'Change your password here. This will log you out from all existing sessions for your security.',
|
||||
|
||||
'old_pass' => 'Old Password',
|
||||
'forgot_pw' => 'Forgot your password? Reset it :link',
|
||||
'new_pw' => 'New Password',
|
||||
|
||||
'2fa_enable_success' => 'Hooray! 2FA is setup correctly for your account. A code will be asked each time you login.',
|
||||
'2fa_avail' => 'Two-factor auth is available for your account.',
|
||||
'2fa_avail_exp' => ' Enabling this security option greatly increases your account\'s security in case your password ever gets stolen.',
|
||||
|
||||
'session_manager' => 'Session Manager',
|
||||
'terminate_others' => 'Terminating other sessions is generally a good idea if your account has been compromised.',
|
||||
'current_session' => 'Your current session: logged in from :ipAddress',
|
||||
'flush_session' => 'Flush sessions',
|
||||
'personal_data_change' => 'Need to change personal data? You can do so here.',
|
||||
'current_email' => 'Current Email Address',
|
||||
'new_email' => 'New Email Address',
|
||||
'current_password' => 'Current Password',
|
||||
'security_nochangepw' => 'For security reasons, you cannot make important account changes without confirming your password. You\'ll also need to verify your new email.',
|
||||
'change_email' => 'Change Email Address',
|
||||
|
||||
'basic_info' => 'Basic Information',
|
||||
'fl_name' => 'First / Last Name',
|
||||
'shortbio' => 'Short Bio',
|
||||
'about_me' => 'About Me',
|
||||
'pref_media' => 'Preferences & Media',
|
||||
'avatar_source' => 'Retrieve avatar from: ',
|
||||
'social_media' => 'Social Media',
|
||||
|
||||
'github_user' => 'Github Username',
|
||||
'twitter_user' => 'Twitter Username',
|
||||
'insta_user' => 'Instagram Username',
|
||||
'discord_user' => 'Discord Handle',
|
||||
|
||||
'update_prfl' => 'Update Profile'
|
||||
|
||||
],
|
||||
|
||||
// ==================== USER ACCOUNT MESSAGES (NON-PRIVILEGED) =====================
|
||||
|
||||
'user' => [
|
||||
|
||||
'app_process' => [
|
||||
'title' => 'Application Process',
|
||||
'line1' => 'Please allow up to three days for your application to be processed. Your application will be reviewed by every team member, and will move up in stages.',
|
||||
'line2' => 'If an interview is scheduled, you\'ll need to open your application here and confirm the time, date, and location assigned for you.'
|
||||
],
|
||||
|
||||
'account_standing' => 'Account Standing',
|
||||
'account_eligibility' => 'Your account is currently :eligibility for application',
|
||||
'days_remaining_acc_alt' => 'As of today, there are :days remaining until you\'re permitted to submit another application.',
|
||||
'my_ongoingapps' => 'My Ongoing Applications',
|
||||
|
||||
'submitted' => 'Submitted',
|
||||
'peer_approval' => 'Peer Approval',
|
||||
'peer_approval_q' => 'Peer Approval Queue',
|
||||
|
||||
'nothing_to_show' => 'Nothing to show',
|
||||
'nothing_to_show_exp' => 'You currently have no applications to display. If you\'re eligible, you may apply once every month.',
|
||||
|
||||
'directory' => [
|
||||
|
||||
'itsyou' => 'It\'s you!',
|
||||
'title' => 'User Directory',
|
||||
'directory' => 'Directory'
|
||||
|
||||
]
|
||||
|
||||
],
|
||||
|
||||
'view_app' => [
|
||||
|
||||
'title' => 'Viewing application',
|
||||
'viewing_app' => 'Viewing :user\'s application',
|
||||
'cantvote' => 'You cannot vote on this application anymore.',
|
||||
'no_notes' => 'There are no notes yet. Add some!',
|
||||
'deny_confirm' => 'Are you sure you want to deny this application? Please keep in mind that this user will only be allowed to apply 30 days after their first application.',
|
||||
'deny_confirm_consequence' => 'This action cannot be undone.',
|
||||
'deny_confirm_btn' => 'Confirm: Deny Applicant',
|
||||
'form_updated_alert' => 'If this form has been updated, new fields and updated questions will not show up here!',
|
||||
'context_info' => 'Contextual Information',
|
||||
'appl_ip' => 'Applicant IP Address',
|
||||
'appl_for' => 'Applying for',
|
||||
'currentstatus' => 'Current Status',
|
||||
'decisionmod' => 'Decision & Moderation Tools',
|
||||
'denyapp' => 'Deny applicant',
|
||||
'nextstage' => 'Move to next stage',
|
||||
'appointment_desc' => 'Appointment description',
|
||||
'int_date_time' => 'Interview Date & Time',
|
||||
'choosedate' => 'Click to choose a date',
|
||||
'appointment_loc' => 'Appointment Location',
|
||||
'pref_platform' => 'Select your preferred platform',
|
||||
'coming_soon_int' => 'Embedded in-house video conferencing coming soon, powered by Jitsi Meet',
|
||||
'scheduled_for' => 'Interview Scheduled for:',
|
||||
'platform' => 'Platform',
|
||||
'finish_meeting' => 'Finish Meeting',
|
||||
'view_notes' => 'View Meeting Notes',
|
||||
'vote_app' => 'Vote on this application',
|
||||
|
||||
'vote_explainer' => [
|
||||
|
||||
'line1' => 'If you weren\'t present during this meeting, you can view the shared meeting notepad to help you make a decision.',
|
||||
'line2' => 'You may vote on as many applications as needed; However, you can only vote once per application.',
|
||||
'line3' => 'Votes carry no weight based on rank. This system has been designed with fairness and ease of use in mind.'
|
||||
|
||||
],
|
||||
|
||||
'vote_approve' => 'Vote: Approve Applicant',
|
||||
'vote_deny' => 'Vote: Deny Applicant',
|
||||
'm_notes' => 'Meeting notes',
|
||||
'view_more' => 'View more Applications',
|
||||
'comments' => 'Comments',
|
||||
'no_comments' => 'There are no comments here.',
|
||||
'no_comments_exp' => 'There are no comments here! Comments are only visible to staff members. Be the first to share your input! Commenting may help with decision-making when time comes to vote for an application.',
|
||||
'commenting_as' => 'Commenting as :username',
|
||||
'max_chars' => 'max characters', // Context: A number is added before max characters
|
||||
'post' => 'Post', // Context: Post as in post comment
|
||||
|
||||
]
|
||||
|
||||
// ==================== END OF MAIN I18N FILE ======================
|
||||
|
||||
];
|
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' => '« Previous',
|
||||
'next' => 'Next »',
|
||||
|
||||
];
|
22
resources/lang/es/passwords.php
Normal file
22
resources/lang/es/passwords.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset 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.
|
||||
|
|
||||
*/
|
||||
|
||||
'reset' => 'Your password has been reset!',
|
||||
'sent' => 'We have emailed your password reset link!',
|
||||
'throttled' => 'Please wait before retrying.',
|
||||
'token' => 'This password reset token is invalid.',
|
||||
'user' => "We can't find a user with that email address.",
|
||||
|
||||
];
|
151
resources/lang/es/validation.php
Normal file
151
resources/lang/es/validation.php
Normal file
@ -0,0 +1,151 @@
|
||||
<?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.',
|
||||
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
|
||||
'alpha' => 'The :attribute may only contain letters.',
|
||||
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
|
||||
'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.',
|
||||
'before_or_equal' => 'The :attribute must be a date before or equal to :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_equals' => 'The :attribute must be a date equal to :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.',
|
||||
'dimensions' => 'The :attribute has invalid image dimensions.',
|
||||
'distinct' => 'The :attribute field has a duplicate value.',
|
||||
'email' => 'The :attribute must be a valid email address.',
|
||||
'ends_with' => 'The :attribute must end with one of the following: :values.',
|
||||
'exists' => 'The selected :attribute is invalid.',
|
||||
'file' => 'The :attribute must be a file.',
|
||||
'filled' => 'The :attribute field must have a value.',
|
||||
'gt' => [
|
||||
'numeric' => 'The :attribute must be greater than :value.',
|
||||
'file' => 'The :attribute must be greater than :value kilobytes.',
|
||||
'string' => 'The :attribute must be greater than :value characters.',
|
||||
'array' => 'The :attribute must have more than :value items.',
|
||||
],
|
||||
'gte' => [
|
||||
'numeric' => 'The :attribute must be greater than or equal :value.',
|
||||
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
|
||||
'string' => 'The :attribute must be greater than or equal :value characters.',
|
||||
'array' => 'The :attribute must have :value items or more.',
|
||||
],
|
||||
'image' => 'The :attribute must be an image.',
|
||||
'in' => 'The selected :attribute is invalid.',
|
||||
'in_array' => 'The :attribute field does not exist in :other.',
|
||||
'integer' => 'The :attribute must be an integer.',
|
||||
'ip' => 'The :attribute must be a valid IP address.',
|
||||
'ipv4' => 'The :attribute must be a valid IPv4 address.',
|
||||
'ipv6' => 'The :attribute must be a valid IPv6 address.',
|
||||
'json' => 'The :attribute must be a valid JSON string.',
|
||||
'lt' => [
|
||||
'numeric' => 'The :attribute must be less than :value.',
|
||||
'file' => 'The :attribute must be less than :value kilobytes.',
|
||||
'string' => 'The :attribute must be less than :value characters.',
|
||||
'array' => 'The :attribute must have less than :value items.',
|
||||
],
|
||||
'lte' => [
|
||||
'numeric' => 'The :attribute must be less than or equal :value.',
|
||||
'file' => 'The :attribute must be less than or equal :value kilobytes.',
|
||||
'string' => 'The :attribute must be less than or equal :value characters.',
|
||||
'array' => 'The :attribute must not have more than :value items.',
|
||||
],
|
||||
'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.',
|
||||
'mimetypes' => '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.',
|
||||
'not_regex' => 'The :attribute format is invalid.',
|
||||
'numeric' => 'The :attribute must be a number.',
|
||||
'password' => 'The password is incorrect.',
|
||||
'present' => 'The :attribute field must be present.',
|
||||
'regex' => 'The :attribute format is invalid.',
|
||||
'required' => 'The :attribute field is required.',
|
||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||
'required_with' => 'The :attribute field is required when :values is present.',
|
||||
'required_with_all' => 'The :attribute field is required when :values are 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.',
|
||||
],
|
||||
'starts_with' => 'The :attribute must start with one of the following: :values.',
|
||||
'string' => 'The :attribute must be a string.',
|
||||
'timezone' => 'The :attribute must be a valid zone.',
|
||||
'unique' => 'The :attribute has already been taken.',
|
||||
'uploaded' => 'The :attribute failed to upload.',
|
||||
'url' => 'The :attribute format is invalid.',
|
||||
'uuid' => 'The :attribute must be a valid UUID.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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' => [
|
||||
'attribute-name' => [
|
||||
'rule-name' => 'custom-message',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap our attribute placeholder
|
||||
| with something more reader friendly such as "E-Mail Address" instead
|
||||
| of "email". This simply helps us make our message more expressive.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [],
|
||||
|
||||
];
|
19
resources/lang/fr/auth.php
Normal file
19
resources/lang/fr/auth.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?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' => 'These credentials do not match our records.',
|
||||
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
|
||||
|
||||
];
|
612
resources/lang/fr/messages.php
Normal file
612
resources/lang/fr/messages.php
Normal file
@ -0,0 +1,612 @@
|
||||
<?php
|
||||
/*
|
||||
* -- Information for translators | READ BEFORE TRANSLATING ANYTHING ---
|
||||
* In this file, only translate messages to the right, in this fashion:
|
||||
* 'something' => 'translate-me'
|
||||
* Also, don't translate, change, or move placeholders (:this-is-a-placeholder) starting with a colon.
|
||||
* Try to keep the message as close to the original in meaning as possible. These simple rules also apply to other files you're translating, such as:
|
||||
* auth.php, pagination.php, passwords.php, and validation.php.
|
||||
* It is VERY important that you "escape" single quotes with a backslash if they're present in your language, like this: I\'m an escaped quote
|
||||
*
|
||||
* Additionally, don't change anything in square or curly brackets, and don't remove pipe (|) characters.
|
||||
* If you see two messages separated by pipe, then usually the left side is singular and the right side is plural, so translate accordingly.
|
||||
*
|
||||
* Thank you for translating!
|
||||
*/
|
||||
|
||||
return [
|
||||
|
||||
// ============== MENU TRANSLATIONS ======================
|
||||
|
||||
|
||||
'menu' => [
|
||||
|
||||
'my_apps' => 'My Applications',
|
||||
'current_apps' => 'Current Applications',
|
||||
'profile_settings' => 'Profile Settings',
|
||||
'hiring_man' => 'Hiring Management',
|
||||
'all_forms' => 'All Forms',
|
||||
'app_settings' => 'App Settings',
|
||||
'global_app_settings' => 'Global App Settings',
|
||||
'system_logs' => 'System Logs'
|
||||
],
|
||||
|
||||
|
||||
|
||||
// ============== REUSABLE, GENERIC STRINGS ===============
|
||||
|
||||
'reusable' => [
|
||||
'created_at' => 'Created at',
|
||||
'updated_at' => 'Updated at',
|
||||
'actions' => 'Actions',
|
||||
'delete' => 'Delete',
|
||||
'status' => 'Status',
|
||||
'view' => 'View',
|
||||
'view_c' => 'View Details',
|
||||
'no_access' => 'Application Access Denied',
|
||||
'validation_err' => 'Validation error!',
|
||||
'description' => 'Description',
|
||||
'join_date' => 'Join Date',
|
||||
'my_acc' => 'My Account',
|
||||
'confirm' => 'Please Confirm',
|
||||
'confirm_plain' => 'Confirm',
|
||||
'confirm_click' => 'Click to Confirm',
|
||||
'date' => 'Date',
|
||||
'datetime' => 'Time & Date',
|
||||
'location' => 'Location',
|
||||
'none_yet' => 'None yet',
|
||||
'reason' => 'Reason',
|
||||
'days' => 'Days',
|
||||
'weeks' => 'Weeks',
|
||||
'months' => 'Months',
|
||||
'years' => 'Years',
|
||||
'yes' => 'Yes',
|
||||
'no' => 'No',
|
||||
'roles' => 'Roles',
|
||||
'member_since' => 'Member since :date',
|
||||
'lookup' => 'Lookup :ipAddress',
|
||||
'abt' => 'About',
|
||||
'acc' => 'Account',
|
||||
'settings' => 'Settings',
|
||||
'profile' => 'My Profile',
|
||||
'code' => 'code',
|
||||
'here' => 'here',
|
||||
'auth_req' => 'Please authenticate',
|
||||
'eligible' => 'Eligible',
|
||||
'ineligible' => 'Ineligible',
|
||||
'schedule' => 'Schedule',
|
||||
'schedule_action' => 'Schedule an Appointment',
|
||||
'platform' => 'Platform',
|
||||
'notepad' => 'Shared Notepad', // Context: The shared notepad that appears when votes are needed,
|
||||
'appointment_info' => 'Appointment Information',
|
||||
'ip_info' => 'IP Address Information for'
|
||||
],
|
||||
|
||||
|
||||
// ============== HOMEPAGE MESSAGES ======================
|
||||
|
||||
'home' => 'Home',
|
||||
'homepagetxt' => 'Homepage',
|
||||
'login' => 'Sign in',
|
||||
'logout' => 'Sign out',
|
||||
'register' => 'Sign up',
|
||||
'dashboard' => 'Dashboard',
|
||||
'back' => 'Go back',
|
||||
'homepage_welcome' => 'Welcome to our team management center!',
|
||||
'homepage_explainer_line1' => 'Here, you can apply for open staff member positions, view your application status, and manage your profile.',
|
||||
'homepage_explainer_line2' => 'Sign up with Email to continue.',
|
||||
'footer_copy' => 'All rights reserved',
|
||||
'global_error' => 'An error occurred',
|
||||
'global_success' => 'Success!',
|
||||
'txt_learn_more' => 'Learn more',
|
||||
'opening_nodetails' => 'There don\'t seem to be any details',
|
||||
'opening_nodetails_exp' => 'This opening does not have any details yet.',
|
||||
'details_m_title' => 'Opening details',
|
||||
'open_positions' => 'Open Positions',
|
||||
'last_updated' => 'Last updated',
|
||||
'open_position_count' => '{1} There is :count open position!|[2,*] There are :count open positions!',
|
||||
'ineligible_days_remaining' => 'Ineligible (:days) day(s) remaining',
|
||||
'txt_apply' => 'Apply', // Context: Apply as in applying for a "job", e.g. registering for a job
|
||||
'txt_application' => 'Application',
|
||||
'application_closed' => 'Applications Closed',
|
||||
'application_closed_intro' => 'Hello there!',
|
||||
'application_closed_intro_line2' => '
|
||||
We are currently not hiring any new staff members at the moment. If you\'d like to apply, check out our Discord\'s
|
||||
announcement channel for news when a new position opens.
|
||||
Our application cycle usually lasts two weeks, so if you\'re seeing this, it\'s because it finished, and new one will begin soon.
|
||||
',
|
||||
'where_work' => 'Where you\'ll work',
|
||||
'join_team' => 'Join The Team',
|
||||
'join_team_cta' => 'Join the team today and help out network grow and prosper!',
|
||||
'contact_cta' => 'Any questions? Leave a message!',
|
||||
'contact_disclaimer' => '*This is not an application form. Any applications sent here will be ignored.',
|
||||
'contactlabel_name' => 'Name',
|
||||
'contactlabel_email' => 'E-mail',
|
||||
'contactlabel_subject' => 'Subject (ex. Site Suggestion)',
|
||||
'contactlabel_send' => 'Send',
|
||||
|
||||
|
||||
|
||||
// ======================== AUTHENTICATION MESSAGES ===========================
|
||||
|
||||
'2fa_txt' => 'Two-Factor Authentication',
|
||||
'2fa_sronly' => 'Two-factor secret code (You can find this on Google Authenticator)',
|
||||
'2fa_lostcode' => 'Don\'t know the code?',
|
||||
'2fa_cancel_login' => 'Cancel login (logout)',
|
||||
|
||||
'terms' => 'Terms of Use',
|
||||
'ppolicy' => 'Privacy Policy',
|
||||
|
||||
'signin_cta' => 'Sign into your account',
|
||||
'password' => 'Password',
|
||||
'remember_me' => 'Remember me',
|
||||
'forgot_pw' => 'Forgot password?',
|
||||
'register_cta' => 'Register here',
|
||||
'no_acc' => 'Don\'t have an account?',
|
||||
'register_acc' => 'Register a new account',
|
||||
'pwsec' => [
|
||||
'line1' => 'Basic password security',
|
||||
'line2' => 'For your security, we implement strict password policies. It\'s also advisable to let your password manager or browser generate and save passwords for you (if it\'s a private device).',
|
||||
'line3' => 'Passwords must be a combination of: ',
|
||||
'line4' => 'A minimum of 10 characters;',
|
||||
'line5' => 'At least 3 uppercase characters;',
|
||||
'line6' => 'At least 3 numbers;',
|
||||
'line7' => 'Any number of special characters.'
|
||||
],
|
||||
'sronly_confirmpassword' => 'Confirm Password', // hint: sronly stands for screen-reader only
|
||||
'sronly_mcusername' => 'Minecraft Username (Premium)',
|
||||
'have_account' => 'Have an account with us?',
|
||||
'login_here' => 'Login here',
|
||||
'register_txt' => 'Register',
|
||||
|
||||
// ===================== DASHBOARD & COMPONENT MESSAGES ===========================
|
||||
|
||||
'modal_close' => 'Close',
|
||||
'component_nopermission' => 'We\'re sorry, but you do not have permission to access this web page.',
|
||||
'component_accessdenied' => 'Access Denied',
|
||||
'component_contact' => 'Please contact your administrator if you believe this was in error.',
|
||||
'welcome_back' => 'Welcome back,',
|
||||
'eligible' => 'Eligible',
|
||||
'ineligible' => 'Ineligible',
|
||||
'eligibility_status' => 'Your current application eligibility status: :badgeStatus',
|
||||
'ongoing_apps' => 'Ongoing apps',
|
||||
'denied_apps' => 'Denied apps',
|
||||
'users_staff' => 'Total Users + Staff',
|
||||
'new_apps' => 'New applications',
|
||||
'v_backlog' => 'Vote backlog',
|
||||
'ranks' => 'Available ranks',
|
||||
'open' => 'Open',
|
||||
'closed' => 'Closed',
|
||||
'upcoming' => 'Your upcoming interviews',
|
||||
'soon' => 'Coming soon',
|
||||
|
||||
|
||||
//=================== ADMINISTRATION MESSAGES (for all administration pages) ===============
|
||||
|
||||
'adm' => 'Administration',
|
||||
'devtools' => 'Developer Tools',
|
||||
'devtools_evn' => 'Event Management',
|
||||
'devoptions' => 'Developer Options',
|
||||
'forceeval' => 'Please choose an application to force re-evaluation',
|
||||
'appid' => 'Application ID',
|
||||
'no_valid_app' => 'There are no valid applications',
|
||||
'choose_app' => 'Choose an application',
|
||||
'dispatch_event' => 'Dispatch event now',
|
||||
'devtools_warn' => 'Do not use these options if you don\'t know what you\'re doing, even if you have access to this page.',
|
||||
'warn' => 'Warning',
|
||||
'override_votes' => 'Override Vote Evaluation',
|
||||
'artisan_evaluate' => 'Artisan: Evaluate Votes Now', // Tip: Artisan is a program name, therefore not translatable
|
||||
'devtools_info' => 'This panel may be also used to completely override the vote system in stalemate scenarios',
|
||||
|
||||
|
||||
'forms' => 'Forms',
|
||||
'positions' => 'Positions', // Context: Positions as in job opening
|
||||
'edit_form' => 'Edit Form',
|
||||
'edt' => 'Editor',
|
||||
'edit' => 'Edit',
|
||||
'edt_action' => 'Editing',
|
||||
'txtbox' => 'Textbox',
|
||||
'multiline' => 'Multi line answer',
|
||||
'checkbox' => 'Checkbox',
|
||||
'field_type' => 'Choose a field type',
|
||||
'save_exit' => 'Save & Quit',
|
||||
'new_field' => 'New field',
|
||||
'vacancy_edit' => 'Vacancy Editor',
|
||||
'new_vacancy' => 'New Vacancy',
|
||||
'form_consistency' => 'For consistency purposes, grayed out fields can\'t be edited.',
|
||||
|
||||
'vacancy' => [
|
||||
'add' => 'Add vacancy',
|
||||
'name' => 'Vacancy Name',
|
||||
'description' => 'Vacancy Description',
|
||||
'details' => 'Vacancy Details',
|
||||
'markdown' => 'Markdown Supported',
|
||||
'no_details' => 'No details yet... Add some!',
|
||||
'permission_group' => 'Permission Group',
|
||||
'permission_group_tooltip' => 'The permission group from your server/network\'s permissions manager. Compatible with Luckperms and PEX.',
|
||||
'discord_roleid' => 'Discord Role ID',
|
||||
'discord_roleid_tooltip' => 'Discord Desktop: Go to your Account Settings > Appearance -> Advanced and toggle Developer Mode. On your server\'s roles tab, right click any role to copy it\'s ID.',
|
||||
'current_form' => 'Current Form (uneditable)',
|
||||
'remaining_slots' => 'Remaining slots',
|
||||
'free_slots' => 'Free slots',
|
||||
'free_slots_tooltip' => 'How many submissions before the vacancy stops accepting new applicants?',
|
||||
'save' => 'Save Changes',
|
||||
'cancel' => 'Cancel',
|
||||
'close_vacancy' => 'Close Position',
|
||||
'description_tooltip' => 'Add things like admission requirements, rank resposibilities and roles, and anything else you feel is necessary',
|
||||
''
|
||||
|
||||
],
|
||||
|
||||
'form' => 'Form',
|
||||
|
||||
'form_builder' => [
|
||||
'builder' => 'Form Builder',
|
||||
'builder_name' => 'Application Form Management Tool',
|
||||
'name_form' => 'Name your form...',
|
||||
'save_form' => 'Save Form',
|
||||
],
|
||||
|
||||
'form_preview' => [
|
||||
'preview' => 'Preview',
|
||||
'title' => 'Application Form Preview',
|
||||
'looks' => 'This is how your form looks like to applicants',
|
||||
'f_info' => 'You may edit it and add more fields later.',
|
||||
''
|
||||
],
|
||||
|
||||
'forms_p' => [
|
||||
|
||||
'available_forms' => 'Available forms',
|
||||
'form_title' => 'Form title',
|
||||
'empty_noforms' => 'Nothing to see here! Please add some forms first.',
|
||||
'new_form' => 'NEW FORM'
|
||||
],
|
||||
|
||||
'players' => [
|
||||
|
||||
'reg_players' => 'Registered Players',
|
||||
'reg_players_staff' => 'See Registered Players (Applicant Pool)',
|
||||
'total_banned' => 'Total Banned Players',
|
||||
'search' => 'Search players',
|
||||
'f_p_search' => 'Full/partial email search',
|
||||
'p_disclaimer' => 'Please note: This list only includes players registered in the team management portal. In a future release, all network players will be shown here.',
|
||||
'listing' => 'Player Listing',
|
||||
'reg_date' => 'Registration Date',
|
||||
'ign' => 'IGN', // Context: Short for In-Game Name
|
||||
'banned' => 'Banned',
|
||||
'active' => 'Active',
|
||||
'no_reg' => 'There are no registered players!',
|
||||
'no_reg_exp' => "
|
||||
Registered players are those without a staff role in the team management application.
|
||||
There may be other users registered in the platform, but they won't be displayed here.
|
||||
",
|
||||
'see_staff' => 'See Staff Members'
|
||||
|
||||
],
|
||||
|
||||
'positions_p' => [
|
||||
|
||||
'application_form' => 'Application Form',
|
||||
'select_form' => 'Select a form...',
|
||||
'no_form_error' => "
|
||||
You cannot create a vacancy without any forms with which people would apply.
|
||||
create a form first, then, create a vacancy.
|
||||
A single form is allowed to have multiple vacancies, so you can attach future vacancies to the same form if you'd like.
|
||||
",
|
||||
'new_pos' => 'NEW POSITION',
|
||||
'empty_pos_warning' => 'Nothing to see here! Open some vacancies first. This will get applicants pouring in! (hopefully)',
|
||||
'manage_forms' => 'MANAGE APPLICATION FORMS',
|
||||
|
||||
],
|
||||
|
||||
'settings' => [
|
||||
|
||||
'settings' => 'Settings',
|
||||
'settings_header' => 'Notification Settings',
|
||||
'settings_p' => 'Change which notifications are sent here.',
|
||||
'back_btn' => 'Back to Dashboard'
|
||||
|
||||
],
|
||||
|
||||
'staff' => [
|
||||
|
||||
'members' => 'Staff Members',
|
||||
'active_sm' => 'Active Staff Members',
|
||||
'm_listing' => 'Member Listing',
|
||||
'f_name' => 'Full Name',
|
||||
'rank' => 'Rank',
|
||||
],
|
||||
|
||||
// ======================== APPLICATION RENDERING MESSAGES =========================
|
||||
|
||||
'application_r' => [
|
||||
|
||||
'appl_submit_warn' => 'Are you sure you want to submit your application? Please review each of your answers carefully before doing so.',
|
||||
'appl_submit_doublewarn' => 'Please note: Applications CANNOT be modified once they\'re submitted!',
|
||||
'acceptsend' => 'Accept & Send',
|
||||
'review' => 'Review',
|
||||
'applying_for' => 'You are applying for: :name',
|
||||
'welcome' => [
|
||||
'yrs_old' => 'Years old', // Context: "years old" as in: Tom is 24 years old
|
||||
'line1' => 'We\'re glad you\'ve decided to apply. Generally, applications take 48 hours to be processed and reviewed. Depending on the circumstances and the volume of applications, you may receive an answer in a shorter time.',
|
||||
'line2' => 'Please fill out the form below. Keep all answers concise and complete. Please keep in mind that the age requirement is at least :agerqr.',
|
||||
'line3' => 'Asking about your application will result in instant denial. Everything you need to know is here.'
|
||||
],
|
||||
'app_timeout' => 'Your account is not permitted to submit another application. Please wait :days more days before trying to submit an application.'
|
||||
],
|
||||
|
||||
|
||||
'application_m' => [
|
||||
'title' => 'Application Management',
|
||||
'all_apps' => 'All Applications',
|
||||
'modal_confirm' => 'Are you sure?',
|
||||
'really_delete' => 'Really delete this?',
|
||||
|
||||
|
||||
'outstanding_sm' => 'Outstanding',
|
||||
'outstanding_apps' => 'Outstanding Applications',
|
||||
'outstanding_subm' => 'Outstanding (Submitted)',
|
||||
|
||||
'interview_q' => 'Interview Queue',
|
||||
'interview_p' => 'Interview',
|
||||
'interview_s' => 'Interview Scheduled',
|
||||
'finished_int' => 'Finished Interviews',
|
||||
'schedule_int' => 'Schedule Interviews',
|
||||
'p_review' => 'Peer Review',
|
||||
'applicant' => 'Applicant',
|
||||
'interviewee' => 'Interviewee',
|
||||
'pending_int' => 'Pending Interview',
|
||||
'schedule' => 'Schedule',
|
||||
|
||||
'view_interview_queue' => 'View Interview Queue',
|
||||
'view_approval_queue' => 'View Approval Queue',
|
||||
'view_outstanding_queue' => 'View Outstanding Queue',
|
||||
|
||||
'approved' => 'Approved',
|
||||
'denied' => 'Denied',
|
||||
'unknown_stat' => 'Unknown',
|
||||
|
||||
'consequence_irreversible' => 'IRREVERSIBLE',
|
||||
'delete_action_warning' => 'This action is :consequence.',
|
||||
'delete_explainer' => 'Comments, appointments and any votes attached to this application WILL be deleted too. Please make sure this application really needs to be deleted.',
|
||||
|
||||
'all_apps_header' => 'You\'re looking at all applications ever received',
|
||||
'all_apps_exp' => 'Here, you have quick and easy access to all applications ever received by the system.',
|
||||
|
||||
'no_apps' => 'There are no applications here',
|
||||
'no_apps_exp' => 'We couldn\'t find any applications. Maybe no one has applied yet? Please try again later.',
|
||||
'int_applications' => 'Applications',
|
||||
|
||||
'no_apps_pending_int' => 'No Applications Pending Interview',
|
||||
'no_apps_pending_int_exp' => 'There are no applications that have been moved up to the Interview stage. Please check the outstanding queue.There are no applications that have been moved up to the Interview stage. Please check the outstanding queue.',
|
||||
'upcoming_int' => 'My Upcoming Interviews',
|
||||
'pending_schedule' => 'Pending Schedule',
|
||||
|
||||
'no_upcoming' => 'There are no upcoming interviews',
|
||||
'no_upcoming_exp' => 'Please check other queues down in the application process. Applicants here may have already been interviewed.',
|
||||
|
||||
'no_outstanding' => 'Seeing no applications? Check with an Administrator to make sure that there are available open positions.',
|
||||
'no_outstanding_exp' => 'Advertising on relevant forums made for this purpose is also a good idea.',
|
||||
|
||||
'applicant_name' => 'Applicant Name',
|
||||
'application_date' => 'Application Date',
|
||||
|
||||
'no_pending' => 'There are no pending applications',
|
||||
'no_pending_exp' => 'It seems like no one new has applied yet. Checkout the interview and approval queues for applications that might have moved up the ladder by now.',
|
||||
|
||||
'voting_reminder' => [
|
||||
|
||||
'title' => 'Voting Reminder',
|
||||
'line1' => 'Applications which gain more than 50% of positive votes are automatically approved after one day.',
|
||||
'line2' => 'Conversely, applications that do not reach this number are automatically denied.',
|
||||
'line3' => 'Please note that the vote system can be overridden'
|
||||
|
||||
],
|
||||
|
||||
'no_pending_review' => 'There are no applications pending review',
|
||||
'no_pending_review_exp' => 'Check the other queues for any applications! Applications will be shown here as soon as their interview is completed. You\'ll be able to view meeting notes and vote based on your observations.',
|
||||
|
||||
],
|
||||
|
||||
// ============= PROFILE & USER MESSAGES ===============
|
||||
|
||||
'profile' => [
|
||||
|
||||
'title' => ':name\'s profile',
|
||||
'profile' => 'Profile',
|
||||
'users' => 'Users',
|
||||
'account_banned' => 'Account banned',
|
||||
'account_banned_exp' => 'This user has been banned by the moderators.',
|
||||
'ban_confirm' => 'Please confirm that you want to ban this user account. You\'ll need to add a reason and expiration date to confirm this. Bans don\'t transfer to connected Minecraft networks (yet).',
|
||||
'leave_empty' => 'Leave empty for a permanent ban',
|
||||
'duration' => 'Duration',
|
||||
'p_duration' => 'Punishment duration',
|
||||
'p_duration_exp' => 'e.g. Spamming',
|
||||
'ban' => 'Ban',
|
||||
|
||||
'terminate_notice' => 'You are about to terminate a staff member',
|
||||
'terminate_notice_warning' => 'Terminating a staff member will remove their privileges on the team management site and Network.
|
||||
They will be notified of their termination. Make sure to have discussed this with them first.',
|
||||
'terminate_notice_consequence' => 'THIS PROCESS IS IRREVERSIBLE AND IMMEDIATE',
|
||||
'terminate_txt' => 'Terminate Staff Member',
|
||||
|
||||
'delete_acc_warn' => 'WARNING: This is a potentially destructive action!',
|
||||
'delete_acc_consequence' => 'Deleting a user\'s account is an irreversible process. Historic and current applications, votes, and profile content, as well as any personally identifiable information will be immediately erased.',
|
||||
'type_to_confirm' => 'Type to confirm:',
|
||||
'type_placeholder' => 'Please type the above',
|
||||
|
||||
'delete_acc' => 'Delete Account',
|
||||
'edit_acc' => 'Edit Account',
|
||||
|
||||
'ban_acc' => 'Ban Account',
|
||||
'unban_acc' => 'Unban Account',
|
||||
|
||||
'search_result' => 'Search results',
|
||||
|
||||
'origin_cc' => 'Origin country',
|
||||
'state_prov' => 'State/Province',
|
||||
'district' => 'District (if any)',
|
||||
'city' => 'City',
|
||||
'zipcode' => 'Zipcode',
|
||||
'coords' => 'Coordinates',
|
||||
'european' => 'European?',
|
||||
'isp' => 'ISP', // Internet service provider
|
||||
'org' => 'Organization (if any)',
|
||||
'ctype' => 'C. Type', // Internet Connection type
|
||||
'timezone' => 'Timezone',
|
||||
'noresults' => 'This query returned no results.',
|
||||
|
||||
'edituser' => 'Edit PII and Roles', // PII: Personally identifiable information
|
||||
'edituser_consequence' => 'Warning! This is a sensitive setting! Changing this could have unintended consequences!',
|
||||
'acc_management' => 'Account Management (Admin)',
|
||||
'discord_tag' => 'User\'s Discord Tag: :discordTag',
|
||||
'account_settings' => 'Account Settings',
|
||||
'account_settings_personal' => 'My Account Settings',
|
||||
|
||||
'2fa_welcome' => 'We\'re glad you decided to increase your account\'s security!',
|
||||
'supported_apps' => 'Supported apps you can install: ',
|
||||
'scan_code' => 'Scan the :scannable code with your preferred app, and then copy the code here.',
|
||||
'otp' => 'One-time code',
|
||||
'2fa_enable' => 'Enable 2FA',
|
||||
'2fa_remove_consequence' => 'Removing two-factor authentication will reduce the security of your account.',
|
||||
'2fa_password_confirm' => 'Confirm your password to continue',
|
||||
'2fa_password_confirm_exp' => 'To prevent unauthorized changes, a password is always required for sensitive operations.',
|
||||
'2fa_disable_consent' => '"I understand the possible consequences of disabling two factor authentication"',
|
||||
'2fa_remove' => 'Remove 2FA',
|
||||
'2fa_remove_extended' => 'Remove Two-Factor Authentication',
|
||||
'2fa_send_code' => 'Send 2FA Code',
|
||||
'2fa_send_code_s' => '2FA Code (ex. 41351)',
|
||||
|
||||
'security_lgotherdev' => 'For your security, you\'ll need to re-enter your password before logging out other devices. If you believe your account has been compromised, please change your password instead, as that will automatically log out anyone else who might using your account, and prevent them from signing back in.',
|
||||
'password_reenter' => 'Re-enter your password',
|
||||
|
||||
'acc_security' => 'Account Security',
|
||||
'2fa' => 'Two Factor Authentication',
|
||||
'sessions' => 'Sessions',
|
||||
'contact_settings' => 'Contact Settings (E-Mail)',
|
||||
|
||||
'change_password' => 'Change Password',
|
||||
'change_password_exp' => 'Change your password here. This will log you out from all existing sessions for your security.',
|
||||
|
||||
'old_pass' => 'Old Password',
|
||||
'forgot_pw' => 'Forgot your password? Reset it :link',
|
||||
'new_pw' => 'New Password',
|
||||
|
||||
'2fa_enable_success' => 'Hooray! 2FA is setup correctly for your account. A code will be asked each time you login.',
|
||||
'2fa_avail' => 'Two-factor auth is available for your account.',
|
||||
'2fa_avail_exp' => ' Enabling this security option greatly increases your account\'s security in case your password ever gets stolen.',
|
||||
|
||||
'session_manager' => 'Session Manager',
|
||||
'terminate_others' => 'Terminating other sessions is generally a good idea if your account has been compromised.',
|
||||
'current_session' => 'Your current session: logged in from :ipAddress',
|
||||
'flush_session' => 'Flush sessions',
|
||||
'personal_data_change' => 'Need to change personal data? You can do so here.',
|
||||
'current_email' => 'Current Email Address',
|
||||
'new_email' => 'New Email Address',
|
||||
'current_password' => 'Current Password',
|
||||
'security_nochangepw' => 'For security reasons, you cannot make important account changes without confirming your password. You\'ll also need to verify your new email.',
|
||||
'change_email' => 'Change Email Address',
|
||||
|
||||
'basic_info' => 'Basic Information',
|
||||
'fl_name' => 'First / Last Name',
|
||||
'shortbio' => 'Short Bio',
|
||||
'about_me' => 'About Me',
|
||||
'pref_media' => 'Preferences & Media',
|
||||
'avatar_source' => 'Retrieve avatar from: ',
|
||||
'social_media' => 'Social Media',
|
||||
|
||||
'github_user' => 'Github Username',
|
||||
'twitter_user' => 'Twitter Username',
|
||||
'insta_user' => 'Instagram Username',
|
||||
'discord_user' => 'Discord Handle',
|
||||
|
||||
'update_prfl' => 'Update Profile'
|
||||
|
||||
],
|
||||
|
||||
// ==================== USER ACCOUNT MESSAGES (NON-PRIVILEGED) =====================
|
||||
|
||||
'user' => [
|
||||
|
||||
'app_process' => [
|
||||
'title' => 'Application Process',
|
||||
'line1' => 'Please allow up to three days for your application to be processed. Your application will be reviewed by every team member, and will move up in stages.',
|
||||
'line2' => 'If an interview is scheduled, you\'ll need to open your application here and confirm the time, date, and location assigned for you.'
|
||||
],
|
||||
|
||||
'account_standing' => 'Account Standing',
|
||||
'account_eligibility' => 'Your account is currently :eligibility for application',
|
||||
'days_remaining_acc_alt' => 'As of today, there are :days remaining until you\'re permitted to submit another application.',
|
||||
'my_ongoingapps' => 'My Ongoing Applications',
|
||||
|
||||
'submitted' => 'Submitted',
|
||||
'peer_approval' => 'Peer Approval',
|
||||
'peer_approval_q' => 'Peer Approval Queue',
|
||||
|
||||
'nothing_to_show' => 'Nothing to show',
|
||||
'nothing_to_show_exp' => 'You currently have no applications to display. If you\'re eligible, you may apply once every month.',
|
||||
|
||||
'directory' => [
|
||||
|
||||
'itsyou' => 'It\'s you!',
|
||||
'title' => 'User Directory',
|
||||
'directory' => 'Directory'
|
||||
|
||||
]
|
||||
|
||||
],
|
||||
|
||||
'view_app' => [
|
||||
|
||||
'title' => 'Viewing application',
|
||||
'viewing_app' => 'Viewing :user\'s application',
|
||||
'cantvote' => 'You cannot vote on this application anymore.',
|
||||
'no_notes' => 'There are no notes yet. Add some!',
|
||||
'deny_confirm' => 'Are you sure you want to deny this application? Please keep in mind that this user will only be allowed to apply 30 days after their first application.',
|
||||
'deny_confirm_consequence' => 'This action cannot be undone.',
|
||||
'deny_confirm_btn' => 'Confirm: Deny Applicant',
|
||||
'form_updated_alert' => 'If this form has been updated, new fields and updated questions will not show up here!',
|
||||
'context_info' => 'Contextual Information',
|
||||
'appl_ip' => 'Applicant IP Address',
|
||||
'appl_for' => 'Applying for',
|
||||
'currentstatus' => 'Current Status',
|
||||
'decisionmod' => 'Decision & Moderation Tools',
|
||||
'denyapp' => 'Deny applicant',
|
||||
'nextstage' => 'Move to next stage',
|
||||
'appointment_desc' => 'Appointment description',
|
||||
'int_date_time' => 'Interview Date & Time',
|
||||
'choosedate' => 'Click to choose a date',
|
||||
'appointment_loc' => 'Appointment Location',
|
||||
'pref_platform' => 'Select your preferred platform',
|
||||
'coming_soon_int' => 'Embedded in-house video conferencing coming soon, powered by Jitsi Meet',
|
||||
'scheduled_for' => 'Interview Scheduled for:',
|
||||
'platform' => 'Platform',
|
||||
'finish_meeting' => 'Finish Meeting',
|
||||
'view_notes' => 'View Meeting Notes',
|
||||
'vote_app' => 'Vote on this application',
|
||||
|
||||
'vote_explainer' => [
|
||||
|
||||
'line1' => 'If you weren\'t present during this meeting, you can view the shared meeting notepad to help you make a decision.',
|
||||
'line2' => 'You may vote on as many applications as needed; However, you can only vote once per application.',
|
||||
'line3' => 'Votes carry no weight based on rank. This system has been designed with fairness and ease of use in mind.'
|
||||
|
||||
],
|
||||
|
||||
'vote_approve' => 'Vote: Approve Applicant',
|
||||
'vote_deny' => 'Vote: Deny Applicant',
|
||||
'm_notes' => 'Meeting notes',
|
||||
'view_more' => 'View more Applications',
|
||||
'comments' => 'Comments',
|
||||
'no_comments' => 'There are no comments here.',
|
||||
'no_comments_exp' => 'There are no comments here! Comments are only visible to staff members. Be the first to share your input! Commenting may help with decision-making when time comes to vote for an application.',
|
||||
'commenting_as' => 'Commenting as :username',
|
||||
'max_chars' => 'max characters', // Context: A number is added before max characters
|
||||
'post' => 'Post', // Context: Post as in post comment
|
||||
|
||||
]
|
||||
|
||||
// ==================== END OF MAIN I18N FILE ======================
|
||||
|
||||
];
|
19
resources/lang/fr/pagination.php
Normal file
19
resources/lang/fr/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' => '« Previous',
|
||||
'next' => 'Next »',
|
||||
|
||||
];
|
22
resources/lang/fr/passwords.php
Normal file
22
resources/lang/fr/passwords.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset 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.
|
||||
|
|
||||
*/
|
||||
|
||||
'reset' => 'Your password has been reset!',
|
||||
'sent' => 'We have emailed your password reset link!',
|
||||
'throttled' => 'Please wait before retrying.',
|
||||
'token' => 'This password reset token is invalid.',
|
||||
'user' => "We can't find a user with that email address.",
|
||||
|
||||
];
|
151
resources/lang/fr/validation.php
Normal file
151
resources/lang/fr/validation.php
Normal file
@ -0,0 +1,151 @@
|
||||
<?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.',
|
||||
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
|
||||
'alpha' => 'The :attribute may only contain letters.',
|
||||
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
|
||||
'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.',
|
||||
'before_or_equal' => 'The :attribute must be a date before or equal to :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_equals' => 'The :attribute must be a date equal to :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.',
|
||||
'dimensions' => 'The :attribute has invalid image dimensions.',
|
||||
'distinct' => 'The :attribute field has a duplicate value.',
|
||||
'email' => 'The :attribute must be a valid email address.',
|
||||
'ends_with' => 'The :attribute must end with one of the following: :values.',
|
||||
'exists' => 'The selected :attribute is invalid.',
|
||||
'file' => 'The :attribute must be a file.',
|
||||
'filled' => 'The :attribute field must have a value.',
|
||||
'gt' => [
|
||||
'numeric' => 'The :attribute must be greater than :value.',
|
||||
'file' => 'The :attribute must be greater than :value kilobytes.',
|
||||
'string' => 'The :attribute must be greater than :value characters.',
|
||||
'array' => 'The :attribute must have more than :value items.',
|
||||
],
|
||||
'gte' => [
|
||||
'numeric' => 'The :attribute must be greater than or equal :value.',
|
||||
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
|
||||
'string' => 'The :attribute must be greater than or equal :value characters.',
|
||||
'array' => 'The :attribute must have :value items or more.',
|
||||
],
|
||||
'image' => 'The :attribute must be an image.',
|
||||
'in' => 'The selected :attribute is invalid.',
|
||||
'in_array' => 'The :attribute field does not exist in :other.',
|
||||
'integer' => 'The :attribute must be an integer.',
|
||||
'ip' => 'The :attribute must be a valid IP address.',
|
||||
'ipv4' => 'The :attribute must be a valid IPv4 address.',
|
||||
'ipv6' => 'The :attribute must be a valid IPv6 address.',
|
||||
'json' => 'The :attribute must be a valid JSON string.',
|
||||
'lt' => [
|
||||
'numeric' => 'The :attribute must be less than :value.',
|
||||
'file' => 'The :attribute must be less than :value kilobytes.',
|
||||
'string' => 'The :attribute must be less than :value characters.',
|
||||
'array' => 'The :attribute must have less than :value items.',
|
||||
],
|
||||
'lte' => [
|
||||
'numeric' => 'The :attribute must be less than or equal :value.',
|
||||
'file' => 'The :attribute must be less than or equal :value kilobytes.',
|
||||
'string' => 'The :attribute must be less than or equal :value characters.',
|
||||
'array' => 'The :attribute must not have more than :value items.',
|
||||
],
|
||||
'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.',
|
||||
'mimetypes' => '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.',
|
||||
'not_regex' => 'The :attribute format is invalid.',
|
||||
'numeric' => 'The :attribute must be a number.',
|
||||
'password' => 'The password is incorrect.',
|
||||
'present' => 'The :attribute field must be present.',
|
||||
'regex' => 'The :attribute format is invalid.',
|
||||
'required' => 'The :attribute field is required.',
|
||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||
'required_with' => 'The :attribute field is required when :values is present.',
|
||||
'required_with_all' => 'The :attribute field is required when :values are 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.',
|
||||
],
|
||||
'starts_with' => 'The :attribute must start with one of the following: :values.',
|
||||
'string' => 'The :attribute must be a string.',
|
||||
'timezone' => 'The :attribute must be a valid zone.',
|
||||
'unique' => 'The :attribute has already been taken.',
|
||||
'uploaded' => 'The :attribute failed to upload.',
|
||||
'url' => 'The :attribute format is invalid.',
|
||||
'uuid' => 'The :attribute must be a valid UUID.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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' => [
|
||||
'attribute-name' => [
|
||||
'rule-name' => 'custom-message',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap our attribute placeholder
|
||||
| with something more reader friendly such as "E-Mail Address" instead
|
||||
| of "email". This simply helps us make our message more expressive.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [],
|
||||
|
||||
];
|
19
resources/lang/pt/auth.php
Normal file
19
resources/lang/pt/auth.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?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' => 'Estas credenciais não coincidem com os nossos registos.',
|
||||
'throttle' => 'Demasiadas tentativas de acesso. Tente novamente em :seconds segundos.',
|
||||
|
||||
];
|
612
resources/lang/pt/messages.php
Normal file
612
resources/lang/pt/messages.php
Normal file
@ -0,0 +1,612 @@
|
||||
<?php
|
||||
/*
|
||||
* -- Information for translators | READ BEFORE TRANSLATING ANYTHING ---
|
||||
* In this file, only translate messages to the right, in this fashion:
|
||||
* 'something' => 'translate-me'
|
||||
* Also, don't translate, change, or move placeholders (:this-is-a-placeholder) starting with a colon.
|
||||
* Try to keep the message as close to the original in meaning as possible. These simple rules also apply to other files you're translating, such as:
|
||||
* auth.php, pagination.php, passwords.php, and validation.php.
|
||||
* It is VERY important that you "escape" single quotes with a backslash if they're present in your language, like this: I\'m an escaped quote
|
||||
*
|
||||
* Additionally, don't change anything in square or curly brackets, and don't remove pipe (|) characters.
|
||||
* If you see two messages separated by pipe, then usually the left side is singular and the right side is plural, so translate accordingly.
|
||||
*
|
||||
* Thank you for translating!
|
||||
*/
|
||||
|
||||
return [
|
||||
|
||||
// ============== MENU TRANSLATIONS ======================
|
||||
|
||||
|
||||
'menu' => [
|
||||
|
||||
'my_apps' => 'As minhas Candidaturas',
|
||||
'current_apps' => 'Candidaturas Atuais',
|
||||
'profile_settings' => 'Configurações do Perfil',
|
||||
'hiring_man' => 'Gestão de Contratação',
|
||||
'all_forms' => 'Todos os Formulários',
|
||||
'app_settings' => 'Configurações da App',
|
||||
'global_app_settings' => 'Configurações globais do aplicativo',
|
||||
'system_logs' => 'Registos do Sistema'
|
||||
],
|
||||
|
||||
|
||||
|
||||
// ============== REUSABLE, GENERIC STRINGS ===============
|
||||
|
||||
'reusable' => [
|
||||
'created_at' => 'Data de Criação',
|
||||
'updated_at' => 'Atualizado em',
|
||||
'actions' => 'Ações',
|
||||
'delete' => 'Apagar',
|
||||
'status' => 'Estado',
|
||||
'view' => 'Ver',
|
||||
'view_c' => 'Ver Detalhes',
|
||||
'no_access' => 'Acesso Negado à Aplicação',
|
||||
'validation_err' => 'Erro de validação!',
|
||||
'description' => 'Descrição',
|
||||
'join_date' => 'Data de inscrição',
|
||||
'my_acc' => 'Minha Conta',
|
||||
'confirm' => 'Por favor confirme',
|
||||
'confirm_plain' => 'Confirmar',
|
||||
'confirm_click' => 'Clique para confirmar',
|
||||
'date' => 'Data',
|
||||
'datetime' => 'Hora & Data',
|
||||
'location' => 'Local',
|
||||
'none_yet' => 'Nenhum ainda',
|
||||
'reason' => 'Motivo',
|
||||
'days' => 'Dias',
|
||||
'weeks' => 'Semanas',
|
||||
'months' => 'Meses',
|
||||
'years' => 'Anos',
|
||||
'yes' => 'Sim',
|
||||
'no' => 'Não',
|
||||
'roles' => 'Funções',
|
||||
'member_since' => 'Membro desde :date',
|
||||
'lookup' => 'Pesquisar :ipAddress',
|
||||
'abt' => 'Sobre',
|
||||
'acc' => 'Conta',
|
||||
'settings' => 'Definições',
|
||||
'profile' => 'Meu perfil',
|
||||
'code' => 'código',
|
||||
'here' => 'aqui',
|
||||
'auth_req' => 'Por favor autentique-se',
|
||||
'eligible' => 'Qualificado',
|
||||
'ineligible' => 'Não elegível',
|
||||
'schedule' => 'Agendar',
|
||||
'schedule_action' => 'Marcar um Compromisso',
|
||||
'platform' => 'Plataforma',
|
||||
'notepad' => 'Bloco Notas Partilhado', // Context: The shared notepad that appears when votes are needed,
|
||||
'appointment_info' => 'Informação da Marcação',
|
||||
'ip_info' => 'Informação de Endereço IP para'
|
||||
],
|
||||
|
||||
|
||||
// ============== HOMEPAGE MESSAGES ======================
|
||||
|
||||
'home' => 'Início',
|
||||
'homepagetxt' => 'Página Inicial',
|
||||
'login' => 'Iniciar sessão',
|
||||
'logout' => 'Terminar sessão',
|
||||
'register' => 'Inscreva-se',
|
||||
'dashboard' => 'Painel de controlo',
|
||||
'back' => 'Retroceder',
|
||||
'homepage_welcome' => 'Bem-vindo ao nosso centro de gestão de equipas!',
|
||||
'homepage_explainer_line1' => 'Aqui, você pode candidatar-se a cargos abertos, ver o estado da sua candidatura, e gerir o seu perfil.',
|
||||
'homepage_explainer_line2' => 'Registe-se com o E-mail para continuar.',
|
||||
'footer_copy' => 'Todos os direitos reservados',
|
||||
'global_error' => 'Ocorreu um erro',
|
||||
'global_success' => 'Sucesso!',
|
||||
'txt_learn_more' => 'Mais informações',
|
||||
'opening_nodetails' => 'Parecem não haver detalhes',
|
||||
'opening_nodetails_exp' => 'Esta candidatura ainda não tem detalhes.',
|
||||
'details_m_title' => 'Detalhes da Candidatura',
|
||||
'open_positions' => 'Vagas Abertas',
|
||||
'last_updated' => 'Última atualização',
|
||||
'open_position_count' => '{1} Há :count vaga aberta!|[2,*] Há :count vagas abertas!',
|
||||
'ineligible_days_remaining' => 'Não elegível (:days) dia(s) restantes',
|
||||
'txt_apply' => 'Candidatar-se', // Context: Apply as in applying for a "job", e.g. registering for a job
|
||||
'txt_application' => 'Candidatura',
|
||||
'application_closed' => 'Candidaturas Fechadas',
|
||||
'application_closed_intro' => 'Olá!',
|
||||
'application_closed_intro_line2' => '
|
||||
Atualmente não estamos contratando nenhum novo membro da equipa no momento. Se você quiser se candidatar, confira o canal de anúncios
|
||||
do Discord para saber quando abre uma nova vaga.
|
||||
Nosso ciclo de candidaturas geralmente dura duas semanas, então se você está vendo isso, é porque ela terminou, e um novo começará em breve.
|
||||
',
|
||||
'where_work' => 'Onde você trabalhará',
|
||||
'join_team' => 'Junte-se à equipa',
|
||||
'join_team_cta' => 'Junte-se hoje à equipa e ajude a rede a crescer e prosperar!',
|
||||
'contact_cta' => 'Alguma pergunta? Deixe uma mensagem!',
|
||||
'contact_disclaimer' => '*Este não é um formulário de candidatura. Qualquer candidatura enviada aqui será ignorada.',
|
||||
'contactlabel_name' => 'Nome',
|
||||
'contactlabel_email' => 'Endereço E-mail',
|
||||
'contactlabel_subject' => 'Assunto (ex. sugestão do site)',
|
||||
'contactlabel_send' => 'Enviar',
|
||||
|
||||
|
||||
|
||||
// ======================== AUTHENTICATION MESSAGES ===========================
|
||||
|
||||
'2fa_txt' => 'Autenticação de dois Fatores',
|
||||
'2fa_sronly' => 'Código secreto de dois fatores (Poderá encontrar isso no Google Authenticator)',
|
||||
'2fa_lostcode' => 'Não sabe o código?',
|
||||
'2fa_cancel_login' => 'Cancelar login (sair)',
|
||||
|
||||
'terms' => 'Condições de Utilização',
|
||||
'ppolicy' => 'Política de privacidade',
|
||||
|
||||
'signin_cta' => 'Entrar na sua conta',
|
||||
'password' => 'Palavra-passe',
|
||||
'remember_me' => 'Lembrar-me',
|
||||
'forgot_pw' => 'Esqueceu-se da palavra-passe?',
|
||||
'register_cta' => 'Registe-se aqui',
|
||||
'no_acc' => 'Não tem uma conta?',
|
||||
'register_acc' => 'Registar nova conta',
|
||||
'pwsec' => [
|
||||
'line1' => 'Verificar a segurança da password',
|
||||
'line2' => 'Para sua segurança, implementamos políticas de palavra-passe rigorosas. Também é aconselhável deixar o seu gestor de senhas ou o navegador gerar e salvar senhas para você (se for um dispositivo privado).',
|
||||
'line3' => 'As senhas devem ser uma combinação de: ',
|
||||
'line4' => 'Um mínimo de 10 caracteres;',
|
||||
'line5' => 'Pelo menos 3 caracteres maiúsculos;',
|
||||
'line6' => 'Pelo menos 3 números;',
|
||||
'line7' => 'Números e caracteres especiais.'
|
||||
],
|
||||
'sronly_confirmpassword' => 'Confirmar palavra-passe', // hint: sronly stands for screen-reader only
|
||||
'sronly_mcusername' => 'Utilizador do Minecraft (Premium)',
|
||||
'have_account' => 'Já tem uma conta?',
|
||||
'login_here' => 'Inicie sessão aqui',
|
||||
'register_txt' => 'Registe-se',
|
||||
|
||||
// ===================== DASHBOARD & COMPONENT MESSAGES ===========================
|
||||
|
||||
'modal_close' => 'Fechar',
|
||||
'component_nopermission' => 'Não tem permissões para aceder a este recurso.',
|
||||
'component_accessdenied' => 'Acesso negado',
|
||||
'component_contact' => 'Por favor, entre em contacto com seu administrador se acredita que isso foi um erro.',
|
||||
'welcome_back' => 'Bem-vindo de volta,',
|
||||
'eligible' => 'Qualificado',
|
||||
'ineligible' => 'Não elegível',
|
||||
'eligibility_status' => 'Seu atual estado de elegibilidade: :badgeStatus',
|
||||
'ongoing_apps' => 'Candidaturas a decorrer',
|
||||
'denied_apps' => 'Candidaturas negadas',
|
||||
'users_staff' => 'Utilizadores totais + Equipa',
|
||||
'new_apps' => 'Novas Candidaturas',
|
||||
'v_backlog' => 'Votos em atraso',
|
||||
'ranks' => 'Cargos disponíveis',
|
||||
'open' => 'Abrir',
|
||||
'closed' => 'Fechada',
|
||||
'upcoming' => 'As suas próximas entrevistas',
|
||||
'soon' => 'Disponível em breve',
|
||||
|
||||
|
||||
//=================== ADMINISTRATION MESSAGES (for all administration pages) ===============
|
||||
|
||||
'adm' => 'Administração',
|
||||
'devtools' => 'Ferramentas de Programador',
|
||||
'devtools_evn' => 'Gestão de Eventos',
|
||||
'devoptions' => 'Opções de Desenvolvedor',
|
||||
'forceeval' => 'Por favor, escolha uma candidatura para forçar reavaliação',
|
||||
'appid' => 'ID da candidatura',
|
||||
'no_valid_app' => 'Não há candidaturas válidas',
|
||||
'choose_app' => 'Escolha uma candidatura',
|
||||
'dispatch_event' => 'Enviar evento agora',
|
||||
'devtools_warn' => 'Não use estas opções se você não sabe o que está fazendo, mesmo se tiver acesso a esta página.',
|
||||
'warn' => 'Atenção',
|
||||
'override_votes' => 'Substituir Avaliação do Voto',
|
||||
'artisan_evaluate' => 'Artisan: Avaliar Votos Agora', // Tip: Artisan is a program name, therefore not translatable
|
||||
'devtools_info' => 'Este painel também pode ser usado para substituir completamente o sistema de votação em cenários de impasse',
|
||||
|
||||
|
||||
'forms' => 'Formulários',
|
||||
'positions' => 'Vagas', // Context: Positions as in job opening
|
||||
'edit_form' => 'Editar Formulário',
|
||||
'edt' => 'Editor',
|
||||
'edit' => 'Editar',
|
||||
'edt_action' => 'Editando',
|
||||
'txtbox' => 'Caixa de texto',
|
||||
'multiline' => 'Múltipla resposta',
|
||||
'checkbox' => 'Caixa de verificação',
|
||||
'field_type' => 'Selecione um Tipo de Campo',
|
||||
'save_exit' => 'Guardar e Sair',
|
||||
'new_field' => 'Novo Campo',
|
||||
'vacancy_edit' => 'Editor de vagas',
|
||||
'new_vacancy' => 'Nova vaga',
|
||||
'form_consistency' => 'Para fins de consistência, campos acinzentados não podem ser editados.',
|
||||
|
||||
'vacancy' => [
|
||||
'add' => 'Adicionar vaga',
|
||||
'name' => 'Nome da vaga',
|
||||
'description' => 'Descrição da vaga',
|
||||
'details' => 'Detalhes da vaga',
|
||||
'markdown' => 'Markdown suportado',
|
||||
'no_details' => 'Sem detalhes ainda... Adicione alguns!',
|
||||
'permission_group' => 'Grupos de Permissão',
|
||||
'permission_group_tooltip' => 'O grupo de permissões do seu servidor/rede. Compatível com a Luckperms e PEX.',
|
||||
'discord_roleid' => 'ID do cargo Discord',
|
||||
'discord_roleid_tooltip' => 'Discord Desktop: Vá para as configurações da sua conta > Aparência -> Avançado e ative o Modo Desenvolvedor. Na página de cargos do seu servidor, clique com o botão direito de qualquer cargo para copiar o ID.',
|
||||
'current_form' => 'Formulário atual (não editável)',
|
||||
'remaining_slots' => 'Espaços restantes',
|
||||
'free_slots' => 'Espaços livres',
|
||||
'free_slots_tooltip' => 'Quantas submissões antes que a vaga pare de aceitar novos candidatos?',
|
||||
'save' => 'Guardar Alterações',
|
||||
'cancel' => 'Cancelar',
|
||||
'close_vacancy' => 'Fechar vaga',
|
||||
'description_tooltip' => 'Adicione coisas como requisitos de admissão, responsabilidades e funções, e qualquer outra coisa que você ache necessária',
|
||||
''
|
||||
|
||||
],
|
||||
|
||||
'form' => 'Formulário',
|
||||
|
||||
'form_builder' => [
|
||||
'builder' => 'Construtor de Formulários',
|
||||
'builder_name' => 'Ferramenta de Gestão de Formulários de Candidatura',
|
||||
'name_form' => 'Nomeie o seu formulário...',
|
||||
'save_form' => 'Guardar Formulário',
|
||||
],
|
||||
|
||||
'form_preview' => [
|
||||
'preview' => 'Pré-visualizar',
|
||||
'title' => 'Pré-visualização do Formulário de Candidatura',
|
||||
'looks' => 'É assim que o seu formulário aparece para os candidatos',
|
||||
'f_info' => 'Você pode editá-lo e adicionar mais campos posteriormente.',
|
||||
''
|
||||
],
|
||||
|
||||
'forms_p' => [
|
||||
|
||||
'available_forms' => 'Formulários disponíveis',
|
||||
'form_title' => 'Título do Formulário',
|
||||
'empty_noforms' => 'Nada para ver aqui! Por favor, crie alguns formulários primeiro.',
|
||||
'new_form' => 'NOVO FORMULÁRIO'
|
||||
],
|
||||
|
||||
'players' => [
|
||||
|
||||
'reg_players' => 'Jogadores registados',
|
||||
'reg_players_staff' => 'Ver Jogadores Registados (Grupo de Candidatos)',
|
||||
'total_banned' => 'Total de jogadores banidos',
|
||||
'search' => 'Procurar jogadores',
|
||||
'f_p_search' => 'Pesquisa de e-mail completa/parcial',
|
||||
'p_disclaimer' => 'Atenção: Esta lista inclui apenas jogadores registados no portal de gestão de equipa. Numa versão futura, todos os jogadores da rede serão mostrados aqui.',
|
||||
'listing' => 'Lista de jogadores',
|
||||
'reg_date' => 'Data de registo',
|
||||
'ign' => 'IGN', // Context: Short for In-Game Name
|
||||
'banned' => 'Banido',
|
||||
'active' => 'Ativo',
|
||||
'no_reg' => 'Não há jogadores inscritos!',
|
||||
'no_reg_exp' => "
|
||||
Jogadores registados são aqueles que não possuem uma função administrativa no aplicativo de gestão de equipa.
|
||||
Pode haver outros utilizadores registados na plataforma, mas eles não serão exibidos aqui.
|
||||
",
|
||||
'see_staff' => 'Ver Membros da Equipa'
|
||||
|
||||
],
|
||||
|
||||
'positions_p' => [
|
||||
|
||||
'application_form' => 'Formulário de Candidatura',
|
||||
'select_form' => 'Selecione um formulário...',
|
||||
'no_form_error' => "
|
||||
Não pode criar uma vaga sem qualquer formulário cujos quais as pessoas se poderiam candidatar.
|
||||
Crie um formulário primeiro, e depois crie uma vaga.
|
||||
Um único formulário pode ter várias vagas, para que possa anexar futuras vagas ao mesmo formulário, se quiser.
|
||||
",
|
||||
'new_pos' => 'NOVA VAGA',
|
||||
'empty_pos_warning' => 'Nada para ver aqui! Abra algumas vagas primeiro. Isso fará os candidatos aparecerem! (esperançoso)',
|
||||
'manage_forms' => 'GERIR FORMULÁRIOS DE CANDIDATURA',
|
||||
|
||||
],
|
||||
|
||||
'settings' => [
|
||||
|
||||
'settings' => 'Definições',
|
||||
'settings_header' => 'Configuração das notificações',
|
||||
'settings_p' => 'Altere quais notificações são enviadas aqui.',
|
||||
'back_btn' => 'Voltar ao painel'
|
||||
|
||||
],
|
||||
|
||||
'staff' => [
|
||||
|
||||
'members' => 'Membros da Equipa',
|
||||
'active_sm' => 'Membros Ativos da Equipa',
|
||||
'm_listing' => 'Lista de Membros',
|
||||
'f_name' => 'Nome completo',
|
||||
'rank' => 'Cargo',
|
||||
],
|
||||
|
||||
// ======================== APPLICATION RENDERING MESSAGES =========================
|
||||
|
||||
'application_r' => [
|
||||
|
||||
'appl_submit_warn' => 'Tem certeza de que deseja enviar a sua candidatura? Por favor, analise cada uma das suas respostas cuidadosamente antes de enviá-la.',
|
||||
'appl_submit_doublewarn' => 'Por favor, note: Candidaturas NÃO PODEM serem modificadas assim que forem enviadas!',
|
||||
'acceptsend' => 'Aceitar e Enviar',
|
||||
'review' => 'Rever',
|
||||
'applying_for' => 'Você está se candidatando para: :name',
|
||||
'welcome' => [
|
||||
'yrs_old' => 'Anos de idade', // Context: "years old" as in: Tom is 24 years old
|
||||
'line1' => 'Estamos felizes que você decidiu se candidatar. Geralmente, as candidaturas levam 48 horas para serem processadas e revisadas. Dependendo das circunstâncias e do volume de candidaturas, você poderá receber uma resposta em um período mais curto de tempo.',
|
||||
'line2' => 'Por favor, preencha o formulário abaixo. Mantenha todas as respostas concisas e completas. Lembre-se de que o requisito de idade é de pelo menos :agerqr.',
|
||||
'line3' => 'Perguntar sobre a sua candidatura resultará em ser negado instantaneamente. Tudo o que você precisa saber está aqui.'
|
||||
],
|
||||
'app_timeout' => 'A sua conta não pode enviar outra candidatura. Por favor, espere :days mais dias antes de tentar enviar uma candidatura.'
|
||||
],
|
||||
|
||||
|
||||
'application_m' => [
|
||||
'title' => 'Gestão de Candidaturas',
|
||||
'all_apps' => 'Todas as Candidaturas',
|
||||
'modal_confirm' => 'Tem a certeza?',
|
||||
'really_delete' => 'Deseja realmente excluir isto?',
|
||||
|
||||
|
||||
'outstanding_sm' => 'Pendente',
|
||||
'outstanding_apps' => 'Candidaturas Pendendes',
|
||||
'outstanding_subm' => 'Pendente (Enviado)',
|
||||
|
||||
'interview_q' => 'Fila de entrevistas',
|
||||
'interview_p' => 'Entrevista',
|
||||
'interview_s' => 'Entrevista Agendada',
|
||||
'finished_int' => 'Entrevistas concluídas',
|
||||
'schedule_int' => 'Agendar Entrevistas',
|
||||
'p_review' => 'Revisão por pares',
|
||||
'applicant' => 'Candidato',
|
||||
'interviewee' => 'Entrevistado',
|
||||
'pending_int' => 'Entrevista Pendente',
|
||||
'schedule' => 'Agendar',
|
||||
|
||||
'view_interview_queue' => 'Ver fila de entrevistas',
|
||||
'view_approval_queue' => 'Ver Fila de Aprovação por Pares',
|
||||
'view_outstanding_queue' => 'Visualizar fila de pendentes',
|
||||
|
||||
'approved' => 'Aprovado',
|
||||
'denied' => 'Recusado',
|
||||
'unknown_stat' => 'Desconhecido',
|
||||
|
||||
'consequence_irreversible' => 'IRREVERSÍVEL',
|
||||
'delete_action_warning' => 'Esta ação é :consequence.',
|
||||
'delete_explainer' => 'Comentários, compromissos e quaisquer votos anexados a esta candidatura também serão excluídos. Por favor, certifique-se de que esta candidatura realmente precisa ser excluída.',
|
||||
|
||||
'all_apps_header' => 'Você está a ver todas as candidaturas recebidas',
|
||||
'all_apps_exp' => 'Aqui, você tem acesso rápido e fácil a todas as candidaturas recebidos pelo sistema.',
|
||||
|
||||
'no_apps' => 'Não há candidaturas aqui',
|
||||
'no_apps_exp' => 'Não conseguimos encontrar nenhuma candidatura. Talvez ninguém se inscreveu ainda? Por favor, tente novamente mais tarde.',
|
||||
'int_applications' => 'Candidaturas',
|
||||
|
||||
'no_apps_pending_int' => 'Nenhuma candidatura pendente de entrevista',
|
||||
'no_apps_pending_int_exp' => 'Não há aplicativos que tenham sido movidos para a fase de Entrevistas. Verifique a fila pendente. Aqui não há aplicativos que tenham sido movidos para a fase de Entrevistas. Por favor, verifique a fila pendente.',
|
||||
'upcoming_int' => 'Minhas próximas entrevistas',
|
||||
'pending_schedule' => 'Agendamento pendente',
|
||||
|
||||
'no_upcoming' => 'Não há próximas entrevistas',
|
||||
'no_upcoming_exp' => 'Por favor, verifique outras filas no processo de candidatura. Os candidatos aqui podem já ter sido entrevistados.',
|
||||
|
||||
'no_outstanding' => 'Não está vendo candidaturas? Verifique com um administrador para certificar-se de que existem posições abertas.',
|
||||
'no_outstanding_exp' => 'É também uma boa ideia a publicidade em fóruns relevantes para este fim.',
|
||||
|
||||
'applicant_name' => 'Nome do Candidato',
|
||||
'application_date' => 'Data de Inscrição',
|
||||
|
||||
'no_pending' => 'Não existem candidaturas pendente',
|
||||
'no_pending_exp' => 'Parece que ninguém novo se candidatou ainda. Confira as filas de entrevista e aprovação para candidaturas que podem ter movido fases até agora.',
|
||||
|
||||
'voting_reminder' => [
|
||||
|
||||
'title' => 'Lembrete de votação',
|
||||
'line1' => 'Candidaturas que obtêm mais de 50% dos votos positivos são automaticamente aprovadas após um dia.',
|
||||
'line2' => 'Inversamente, candidaturas que não atingem esse número são automaticamente negadas.',
|
||||
'line3' => 'Por favor, lembre-se que o sistema de votação pode ser substituído'
|
||||
|
||||
],
|
||||
|
||||
'no_pending_review' => 'Não há candidaturas pendentes de entrevista',
|
||||
'no_pending_review_exp' => 'Verifique as outras filas para ver mais candidaturas! As candidaturas serão mostradas aqui assim que as suas entrevistas forem concluídas. Poderá ver notas da reunião e votar baseando-se nas suas observações.',
|
||||
|
||||
],
|
||||
|
||||
// ============= PROFILE & USER MESSAGES ===============
|
||||
|
||||
'profile' => [
|
||||
|
||||
'title' => 'Perfil de :name',
|
||||
'profile' => 'Perfil',
|
||||
'users' => 'Utilizadores',
|
||||
'account_banned' => 'Conta banida',
|
||||
'account_banned_exp' => 'Este utilizador foi banido pelos moderadores.',
|
||||
'ban_confirm' => 'Por favor, confirme que você deseja banir este utilizador. Você precisará adicionar um motivo e uma data de expiração para confirmar isto. Banimentos não transferem para redes de Minecraft conectadas (ainda).',
|
||||
'leave_empty' => 'Deixe em branco para um banimento permanente',
|
||||
'duration' => 'Duração',
|
||||
'p_duration' => 'Duração da penalização',
|
||||
'p_duration_exp' => 'por exemplo, spam',
|
||||
'ban' => 'Banir',
|
||||
|
||||
'terminate_notice' => 'Você está prestes a excluir um membro da equipa',
|
||||
'terminate_notice_warning' => 'Excluir um membro da equipa irá remover os respetivos privilégios do site de gestão da equipa e da Rede.
|
||||
Eles serão notificados sobre o cancelamento. Certifique-se de que já tenha discutido isto com eles.',
|
||||
'terminate_notice_consequence' => 'ESTE PROCESSO É IRREVERSÍVEL E IMEDIATO',
|
||||
'terminate_txt' => 'Apagar membro da equipa',
|
||||
|
||||
'delete_acc_warn' => 'AVISO: Esta é uma ação potencialmente destrutiva!',
|
||||
'delete_acc_consequence' => 'Excluir uma conta de utilizador é um processo irreversível. Candidaturas históricas e atuais, votos e conteúdo do perfil, bem como qualquer informação que seja pessoalmente identificável serão imediatamente apagados.',
|
||||
'type_to_confirm' => 'Digite para confirmar:',
|
||||
'type_placeholder' => 'Digite o valor acima',
|
||||
|
||||
'delete_acc' => 'Apagar conta',
|
||||
'edit_acc' => 'Editar Conta',
|
||||
|
||||
'ban_acc' => 'Banir conta',
|
||||
'unban_acc' => 'Desbloquar conta',
|
||||
|
||||
'search_result' => 'Resultados da pesquisa',
|
||||
|
||||
'origin_cc' => 'País de origem',
|
||||
'state_prov' => 'Estado/Província',
|
||||
'district' => 'Distrito (se houver)',
|
||||
'city' => 'Cidade',
|
||||
'zipcode' => 'Código postal',
|
||||
'coords' => 'Coordenadas',
|
||||
'european' => 'Europeu?',
|
||||
'isp' => 'Provedor', // Internet service provider
|
||||
'org' => 'Organização (se houver)',
|
||||
'ctype' => 'T. de Ligação', // Internet Connection type
|
||||
'timezone' => 'Fuso horário',
|
||||
'noresults' => 'A sua pesquisa não retornou resultados.',
|
||||
|
||||
'edituser' => 'Editar dados pessoais e cargos', // PII: Personally identifiable information
|
||||
'edituser_consequence' => 'Aviso! Esta é uma configuração sensível! Mudar isto pode ter consequências não intencionais!',
|
||||
'acc_management' => 'Gestão de conta (administrador)',
|
||||
'discord_tag' => 'Tag do Discord: :discordTag',
|
||||
'account_settings' => 'Definições de Conta',
|
||||
'account_settings_personal' => 'Minhas Configurações de Conta',
|
||||
|
||||
'2fa_welcome' => 'Estamos felizes por você ter decidido aumentar a segurança de sua conta!',
|
||||
'supported_apps' => 'Aplicativos suportados que você pode instalar: ',
|
||||
'scan_code' => 'Leia o código :scannable com o seu aplicativo preferido e copie o código aqui.',
|
||||
'otp' => 'Código de uso único',
|
||||
'2fa_enable' => 'Ativar 2FA',
|
||||
'2fa_remove_consequence' => 'Remover a autenticação de dois fatores reduzirá a segurança de sua conta.',
|
||||
'2fa_password_confirm' => 'Confirme a sua palavra-passe para continuar',
|
||||
'2fa_password_confirm_exp' => 'Para impedir alterações não autorizadas, uma senha é sempre necessária para operações confidenciais.',
|
||||
'2fa_disable_consent' => '"Eu compreendo as possíveis consequências de desativar a autenticação de dois fatores"',
|
||||
'2fa_remove' => 'Remover 2FA',
|
||||
'2fa_remove_extended' => 'Desativar autenticação em dois passos',
|
||||
'2fa_send_code' => 'Enviar código 2FA',
|
||||
'2fa_send_code_s' => 'Código de autenticação (ex. 41351)',
|
||||
|
||||
'security_lgotherdev' => 'Para sua segurança, você precisará re-introduzir a sua senha antes de desconectar outros dispositivos. Se você acredita que sua conta foi comprometida, altere sua senha em vez disso, já que isso desconectará automaticamente qualquer pessoa que poderá estar usando sua conta e impedir que faça login novamente.',
|
||||
'password_reenter' => 'Repita a sua palavra-passe',
|
||||
|
||||
'acc_security' => 'Segurança da conta',
|
||||
'2fa' => 'Autenticação de dois Fatores',
|
||||
'sessions' => 'Sessões',
|
||||
'contact_settings' => 'Configurações de Contacto (E-Mail)',
|
||||
|
||||
'change_password' => 'Alterar palavra-passe',
|
||||
'change_password_exp' => 'Altere sua senha aqui. Isto desconectará você de todas as sessões existentes para sua segurança.',
|
||||
|
||||
'old_pass' => 'Palavra-passe antiga',
|
||||
'forgot_pw' => 'Esqueceu sua senha? Reponha-a :link',
|
||||
'new_pw' => 'Nova palavra-passe',
|
||||
|
||||
'2fa_enable_success' => 'Fixe! A 2FA está configurada corretamente para a sua conta. Será solicitado um código toda vez que você fizer login.',
|
||||
'2fa_avail' => 'A autenticação de dois fatores está disponível para sua conta.',
|
||||
'2fa_avail_exp' => ' Habilitar esta opção de segurança aumenta consideravelmente a segurança da sua conta caso a sua senha seja roubada.',
|
||||
|
||||
'session_manager' => 'Gestor de Sessões',
|
||||
'terminate_others' => 'Terminar outras sessões é geralmente uma boa ideia se sua conta foi comprometida.',
|
||||
'current_session' => 'Sua sessão atual: conectado a partir de :ipAddress',
|
||||
'flush_session' => 'Limpar sessões',
|
||||
'personal_data_change' => 'Precisa alterar dados pessoais? Você pode fazer isso aqui.',
|
||||
'current_email' => 'Endereço de e-mail atual',
|
||||
'new_email' => 'Novo endereço de e-mail',
|
||||
'current_password' => 'Palavra-passe Atual',
|
||||
'security_nochangepw' => 'Por motivos de segurança, você não pode fazer alterações de conta importantes sem confirmar a sua senha. Você também precisará confirmar o seu novo e-mail.',
|
||||
'change_email' => 'Alterar Endereço de Email',
|
||||
|
||||
'basic_info' => 'Informações básicas',
|
||||
'fl_name' => 'Primeiro e último nome',
|
||||
'shortbio' => 'Pequena biografia',
|
||||
'about_me' => 'Sobre mim',
|
||||
'pref_media' => 'Preferências & Média',
|
||||
'avatar_source' => 'Obter o avatar de: ',
|
||||
'social_media' => 'Redes Sociais',
|
||||
|
||||
'github_user' => 'Utilizador GitHub',
|
||||
'twitter_user' => 'Utilizador no Twitter',
|
||||
'insta_user' => 'Nome de Utilizador do Instagram',
|
||||
'discord_user' => '"Handle" do Discord',
|
||||
|
||||
'update_prfl' => 'Atualizar Perfil'
|
||||
|
||||
],
|
||||
|
||||
// ==================== USER ACCOUNT MESSAGES (NON-PRIVILEGED) =====================
|
||||
|
||||
'user' => [
|
||||
|
||||
'app_process' => [
|
||||
'title' => 'Processo de Candidatura',
|
||||
'line1' => 'Por favor, aguarde pelo menos três dias para que sua candidatura seja processada. A inscrição será revisada por todos os membros da equipa, e será promovida em fases.',
|
||||
'line2' => 'Se uma entrevista estiver programada, você precisará abrir o aplicativo aqui e confirmar a hora, data e local atribuídos para você.'
|
||||
],
|
||||
|
||||
'account_standing' => 'Estado da Conta',
|
||||
'account_eligibility' => 'Sua conta está atualmente :eligibility para candidatura',
|
||||
'days_remaining_acc_alt' => 'A partir de hoje, há :days restantes até que você tenha permissão para enviar outra candidatura.',
|
||||
'my_ongoingapps' => 'Minhas Candidaturas em Andamento',
|
||||
|
||||
'submitted' => 'Enviado',
|
||||
'peer_approval' => 'Aprovação em Pares',
|
||||
'peer_approval_q' => 'Fila de Aprovação por Pares',
|
||||
|
||||
'nothing_to_show' => 'Nada a exibir',
|
||||
'nothing_to_show_exp' => 'Você atualmente não tem nenhuma candidatura para exibir. Se você é elegível, você pode-se candidatar uma vez por mês.',
|
||||
|
||||
'directory' => [
|
||||
|
||||
'itsyou' => 'É você!',
|
||||
'title' => 'Diretório de Utilizadores',
|
||||
'directory' => 'Diretório'
|
||||
|
||||
]
|
||||
|
||||
],
|
||||
|
||||
'view_app' => [
|
||||
|
||||
'title' => 'Vendo candidatura',
|
||||
'viewing_app' => 'Visualizando a candidatura de :user',
|
||||
'cantvote' => 'Não pode votar nesta candidatura novamente.',
|
||||
'no_notes' => 'Ainda não há notas. Adicione algumas!',
|
||||
'deny_confirm' => 'Tem certeza que deseja negar esta candidatura? Por favor, tenha em mente que este utilizador só terá permissão para se candidatar 30 dias após sua primeira candidatura.',
|
||||
'deny_confirm_consequence' => 'Esta ação não pode ser desfeita.',
|
||||
'deny_confirm_btn' => 'Confirmar: Negar candidato',
|
||||
'form_updated_alert' => 'Se este formulário foi atualizado, novos campos e perguntas atualizadas não aparecerão aqui!',
|
||||
'context_info' => 'Informações contextuais',
|
||||
'appl_ip' => 'Endereço IP do candidato',
|
||||
'appl_for' => 'Candidatando-se a',
|
||||
'currentstatus' => 'Estado atual',
|
||||
'decisionmod' => 'Ferramentas de Decisão & Moderação',
|
||||
'denyapp' => 'Recusar candidato',
|
||||
'nextstage' => 'Mover para a próxima fase',
|
||||
'appointment_desc' => 'Descrição do agendamento',
|
||||
'int_date_time' => 'Data e Hora da Entrevista',
|
||||
'choosedate' => 'Clique para escolher uma data',
|
||||
'appointment_loc' => 'Local do Agendamento',
|
||||
'pref_platform' => 'Selecione sua plataforma preferida',
|
||||
'coming_soon_int' => 'Videoconferência interna em breve, suportada por Jitsi Meet',
|
||||
'scheduled_for' => 'Entrevista Agendada para:',
|
||||
'platform' => 'Plataforma',
|
||||
'finish_meeting' => 'Finalizar reunião',
|
||||
'view_notes' => 'Notas da Reunião',
|
||||
'vote_app' => 'Votar nesta candidatura',
|
||||
|
||||
'vote_explainer' => [
|
||||
|
||||
'line1' => 'Se você não estava presente durante esta reunião, pode visualizar o bloco de notas da reunião partilhado para ajudá-lo a tomar uma decisão.',
|
||||
'line2' => 'Você pode votar em quantas candidaturas forem necessárias; no entanto, só pode votar uma vez por candidatura.',
|
||||
'line3' => 'Os votos não têm peso baseado no cargo. Esse sistema foi projetado com justiça e facilidade de uso em mente.'
|
||||
|
||||
],
|
||||
|
||||
'vote_approve' => 'Voto: Aprovar o candidato',
|
||||
'vote_deny' => 'Voto: Negar o candidato',
|
||||
'm_notes' => 'Notas da Reunião',
|
||||
'view_more' => 'Ver mais candidaturas',
|
||||
'comments' => 'Comentários',
|
||||
'no_comments' => 'Ainda não há comentários.',
|
||||
'no_comments_exp' => 'Não há comentários aqui! Comentários só são visíveis para os membros da equipa. Seja o primeiro a partilhar a sua opinião! Comentar pode ajudar na tomada de decisões quando chegar o momento de votar na candidatura.',
|
||||
'commenting_as' => 'Comentando como :username',
|
||||
'max_chars' => 'caracteres no máximo', // Context: A number is added before max characters
|
||||
'post' => 'Publicar', // Context: Post as in post comment
|
||||
|
||||
]
|
||||
|
||||
// ==================== END OF MAIN I18N FILE ======================
|
||||
|
||||
];
|
19
resources/lang/pt/pagination.php
Normal file
19
resources/lang/pt/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' => 'Seguinte »',
|
||||
|
||||
];
|
22
resources/lang/pt/passwords.php
Normal file
22
resources/lang/pt/passwords.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset 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.
|
||||
|
|
||||
*/
|
||||
|
||||
'reset' => 'Sua palavra-passe foi redefinida!',
|
||||
'sent' => 'Enviamos um e-mail com um link para redefinir a sua password!',
|
||||
'throttled' => 'Por favor, aguarde antes de tentar novamente.',
|
||||
'token' => 'Token para recuperação de senha inválido.',
|
||||
'user' => "Não foi possível encontrar um utilizador com este e-mail.",
|
||||
|
||||
];
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user