Skip to content

Commit

Permalink
Merge pull request #1260 from sinapis-amicus/master
Browse files Browse the repository at this point in the history
correct spelling errors & typos
  • Loading branch information
dromer authored Jan 10, 2023
2 parents 8accb90 + 3575eea commit f6176c3
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Guidelines:
* Report your __browser type and version__, any __JavaScript errors in the console__ and any other details like __server operating system__, __php version__, __SQL Server type and version__ etc.
* Check your logs, especially your __Web Server Log__ as well as __app/logs/partkeepr.log__
* Only attach the parts of the logs which are __relevant__ to the problem.
* Make sure the problem is __reproducable__. If it only happened one time, you have to find out on how to reproduce it.
* Explain, in simple words, __when__ the issue occured. For example: Don't write "I can't create a part". Rather write: "I clicked on Add Part, entered a Part Name, then I clicked the save button, then nothing happens. There were no JavaScript errors in the console, and no HTTP Request was sent."
* Make sure the problem is __reproducible__. If it only happened one time, you have to find out on how to reproduce it.
* Explain, in simple words, __when__ the issue occurred. For example: Don't write "I can't create a part". Rather write: "I clicked on Add Part, entered a Part Name, then I clicked the save button, then nothing happens. There were no JavaScript errors in the console, and no HTTP Request was sent."
* Try to limit your bug report to only __essential__ steps on how to reproduce the issue.
* In short, help the volunteers maintaining the project to spend as little effort as possible on the issue, so that we can have more time adding features and fixing bugs more easily.

Expand Down
2 changes: 1 addition & 1 deletion app/PartKeeprRequirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function_exists('imagecreate'),
$this->addRequirement(
function_exists('imagettftext'),
sprintf('GD library has no FreeType support'),
sprintf('Install the FreeType extension and make sure GD extention can use it')
sprintf('Install the FreeType extension and make sure GD extension can use it')
);

$this->addRequirement(
Expand Down
2 changes: 1 addition & 1 deletion app/config/parameters.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ $container->setParameter('fr3d_ldap.driver.username', null);
// The password to use for LDAP queries
$container->setParameter('fr3d_ldap.driver.password', null);

// true to require a DN for binding attemts, false otherwise
// true to require a DN for binding attempts, false otherwise
$container->setParameter('fr3d_ldap.driver.bindRequiresDn', false);

// The base DN to query for users
Expand Down
6 changes: 3 additions & 3 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This image is not ready to run but serves as a basis for the other images relate

The docker-compose file registers multiple container services. The main PartKeepr application is called `app`. The database is a basic configuration with `mariadb:10.1` for compatibility. Third, there is a service called `initdb`. Its purpose is to restore the database and `data` folder to a pristine state. This one should normally not be used unless one wants to reset the database.

**Note:** There needs to be a useful default inserted into the initdb. At the moment it only clears out the database to be valid but containing no parts at all. Exactly the situtation you have after a fresh installation. Some test data might be useful here.
**Note:** There needs to be a useful default inserted into the initdb. At the moment it only clears out the database to be valid but containing no parts at all. Exactly the situation you have after a fresh installation. Some test data might be useful here.

## The main development image

Expand Down Expand Up @@ -54,13 +54,13 @@ This guide assumes, you have just freshly checked out the PartKeer repository fr
- Call `docker-compose pull` to fetch all images from the docker hub. Alternatively you could [build the images manually](#building-the-images-manually).
- Now you need to fire up the database and let it initialize. This is done by callng `docker-compose up -d db`. You can peek into the process by `docker-compose logs -f db`. Wait for a message that the server is ready for connections and listening on port 3306. Using `<Ctrl><c>`, you can exit from the logs.
- Build the `initdb` image by calling `docker-compose build initdb`. This will take a few moments as it builds a docker image.
By default the line `RESET_DATABASE: 'yes'` in the file `docker-compose.yml` is commented. This is to avoid accidentially removing your data. Uncomment the line. Then:
By default the line `RESET_DATABASE: 'yes'` in the file `docker-compose.yml` is commented. This is to avoid accidentally removing your data. Uncomment the line. Then:
- Initialize the data by calling `docker-compose up initdb`.
- Recomment the line in the `docker-compose.yml` file you just uncommented.
- Now, you can fire up the main container by calling `docker-compose up -d app`.
- The container will initialize some dependencies. This might take some time as well. Again using `docker-compose logs -f app` you can peek into the process and with `<Ctrl><c>` you can return to the console.
There might be some error messages regarding missing tables.
- The partkeepr instance is avaliable at http://127.0.0.1:8082/.
- The partkeepr instance is available at http://127.0.0.1:8082/.
- Note: If you don't set `PARTKEEPR_FORCE_UPDATE` to `yes` in the `docker-compose` file on your first run you will get a white screen as you need to start the [setup](http://127.0.0.1:8082/setup/) once. Just accept the defaults but do not create a new set of users (keep the existing ones) and select HTTP Basic authentication.
- You may or may or not want to set up a cron job as described. The check is disabled by default.
- Alternatively, you can run the cron command manually with `php app/console partkeepr:cron:run` after logging in to the container with `docker exec -it partkeepr_dev_app_1 bash`.
Expand Down
2 changes: 1 addition & 1 deletion docker/development/app/user-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cd /var/www/pk

# Check if parameters are present
if [ ! -f app/config/parameters.php ]; then
echo 'No configuration was found yet. A defult configuration was generated.' >&2
echo 'No configuration was found yet. A default configuration was generated.' >&2
echo 'Please visit the setup page if you encounter issues.' >&2

# Remove any db related config from the dist file
Expand Down
2 changes: 1 addition & 1 deletion src/PartKeepr/AuthBundle/Services/UserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function getProviderTypeByClass($providerClass)
}

/**
* Syncronizes the data of the given user with the FOSRestBundle.
* Synchronizes the data of the given user with the FOSRestBundle.
*
*
* @param $user
Expand Down
2 changes: 1 addition & 1 deletion src/PartKeepr/CoreBundle/Services/SystemService.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getSystemInformation()
/**
* Returns the database schema status.
*
* This method is usuall called once the user logs in, and alerts him if the schema is not up-to-date.
* This method is usually called once the user logs in, and alerts him if the schema is not up-to-date.
*
* Returns either status incomplete if the schema is not up-to-date, or complete if everything is OK.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Ext.define("PartKeepr.ModelTreeMaker.ModelTreeMaker", {
* @param {Ext.data.NodeInterface} node The current node
* @param {Ext.data.Model} model The model
* @param {String} prefix The prefix. Omit if first called
* @param {Function} callback The calback, optional
* @param {Function} callback The callback, optional
*/
make: function (node, model, prefix, callback)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Ext.define("PartKeepr.StorageLocationMultiCreateWindow", {
this.addButton.enable();

if (response.data.length > 0) {
Ext.Msg.alert(i18n("Errors occured"), implode("<br>", response.data));
Ext.Msg.alert(i18n("Errors occurred"), implode("<br>", response.data));
} else {
this.close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ Ext.define("PartKeepr.Widgets.EntityQueryPanel", {

},
/**
* Syncronizes the internal columns storage with the grid. The reason it is done that way is because we can't
* operate on the return value of getColumns() directly, as these are instanciated objects which get removed
* Synchronizes the internal columns storage with the grid. The reason it is done that way is because we can't
* operate on the return value of getColumns() directly, as these are instantiated objects which get removed
* during a reconfigure operation.
*/
syncColumns: function ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Ext.define("PartKeepr.data.CallActions", {
/**
* Sets data to all associations
*
* @param {Object} data The associations to set. Silently ignores non-existant associations.
* @param {Object} data The associations to set. Silently ignores non-existent associations.
*/
setAssociationData: function (data)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Ext.define("PartKeepr.data.HydraModel", {
/**
* Sets data to all associations
*
* @param {Object} data The associations to set. Silently ignores non-existant associations.
* @param {Object} data The associations to set. Silently ignores non-existent associations.
*/
setAssociationData: function (data)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Ext.define('Ext.ux.NumericField', {
},

/**
* Converts a Float value into a currency formated value ready to display .
* Converts a Float value into a currency formatted value ready to display .
*
* @param {Object} value
* @return {Object} The converted value.
Expand All @@ -45,7 +45,7 @@ Ext.define('Ext.ux.NumericField', {
*
* See {@link #rawToValue} for the opposite conversion.
*
* This implementation converts the raw value to a value formated as currency.
* This implementation converts the raw value to a value formatted as currency.
*
* @param {Object} value The mixed-type value to convert to the raw representation.
* @return {Object} The converted raw value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,10 @@ bCrypt.prototype.crypt_raw = function(password, salt, log_rounds, cdata, callbac
var one_percent;

if (log_rounds < 4) {
throw "Minium of 4 rounds required, changing to default";
throw "Minimum of 4 rounds required, changing to default";
}
if (log_rounds > 30) {
throw "Maximum of 30 rounds exceded";
throw "Maximum of 30 rounds exceeded";
}

if (salt.length != this.BCRYPT_SALT_LEN)
Expand Down Expand Up @@ -556,7 +556,7 @@ bCrypt.prototype.hashpw = function(password, salt, callback, progress) {
bCrypt.prototype.gensalt = function(rounds) {
var iteration_count = rounds;
if (iteration_count < 4 || iteration_count > 30) {
throw "Rounds exceded maximum (30)!"
throw "Rounds exceeded maximum (30)!"
}
var output = [];
output.push("$2a$");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
* (or CSPRNG for short) designed by Robert J. Jenkins Jr. in 1996 and
* based on RC4. It is designed for speed and security.
*
* ISAAC's informations & analysis:
* ISAAC's information & analysis:
* http://burtleburtle.net/bob/rand/isaac.html
* ISAAC's implementation details:
* http://burtleburtle.net/bob/rand/isaacafa.html
*
* ISAAC succesfully passed TestU01
* ISAAC successfully passed TestU01
*
* ----------------------------------------------------------------------
*
Expand Down
2 changes: 1 addition & 1 deletion src/PartKeepr/SetupBundle/Services/UnitSetupService.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(EntityManager $entityManager, KernelInterface $kerne
/**
* Imports units.
*
* @throws \Exception If an error occured
* @throws \Exception If an error occurred
*
* @return array An array with the keys "skipped" and "imported" which contain the number of units skipped and imported
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ protected function configure()
{
$this
->setName('partkeepr:cron:synctips')
->setDescription('Syncronizes the tips from the PartKeepr website');
->setDescription('Synchronizes the tips from the PartKeepr website');
}

protected function execute(InputInterface $input, OutputInterface $output)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(ContainerInterface $container, EntityManager $entity
}

/**
* Syncronizes the tip database against the master wiki.
* Synchronizes the tip database against the master wiki.
*
* @throws \Exception
*/
Expand All @@ -58,7 +58,7 @@ public function syncTips()
* Updates the tip database. Expects an array of page names.
*
* This method clears all page names and re-creates them. This saves
* alot of engineering, because we don't need to match contents
* a lot of engineering, because we don't need to match contents
* within the database against contents in an array.
*
* @param array $aPageNames The page names as array. Page names are stored as string.
Expand Down
2 changes: 1 addition & 1 deletion web/setup/js/Cards/ExistingConfigParserCard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* This card runs the prequisites test to make sure basic things like PHP and Doctrine are installed and configured.
* This card runs the prerequisites test to make sure basic things like PHP and Doctrine are installed and configured.
*/
Ext.define('PartKeeprSetup.ExistingConfigParserCard', {
extend: 'PartKeeprSetup.AbstractTestCard',
Expand Down
2 changes: 1 addition & 1 deletion web/setup/js/Cards/PrerequisitesTestCard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* This card runs the prequisites test to make sure basic things like PHP and Doctrine are installed and configured.
* This card runs the prerequisites test to make sure basic things like PHP and Doctrine are installed and configured.
*/
Ext.define('PartKeeprSetup.PrerequisitesTestCard', {
extend: 'PartKeeprSetup.AbstractTestCard',
Expand Down
2 changes: 1 addition & 1 deletion web/setup/js/TestResultPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Ext.define('PartKeeprSetup.TestResultPanel', {
},
/**
* Appends the specific test to the output panel,
* and fires the error event if an error occured.
* and fires the error event if an error occurred.
*
* @param test PartKeeprSetup.AbstractTest
*/
Expand Down

0 comments on commit f6176c3

Please sign in to comment.