Skip to content

Commit 6c77661

Browse files
authored
Merge pull request #1 from Part-DB/master
pull master
2 parents 7239aef + 9732b71 commit 6c77661

File tree

63 files changed

+1390
-899
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1390
-899
lines changed

.github/workflows/assets_artifact_build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
${{ runner.os }}-yarn-
5858
5959
- name: Setup node
60-
uses: actions/setup-node@v3
60+
uses: actions/setup-node@v4
6161
with:
6262
node-version: '18'
6363

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
run: composer install --prefer-dist --no-progress
8888

8989
- name: Setup node
90-
uses: actions/setup-node@v3
90+
uses: actions/setup-node@v4
9191
with:
9292
node-version: '18'
9393

README.md

+11-15
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
![Docker Build Status](https://github.com/Part-DB/Part-DB-symfony/workflows/Docker%20Image%20Build/badge.svg)
1010
[![Crowdin](https://badges.crowdin.net/e/8325196085d4bee8c04b75f7c915452a/localized.svg)](https://part-db.crowdin.com/part-db)
1111

12-
**[Documentation](https://docs.part-db.de/)** | **[Demo](https://part-db.herokuapp.com)** | **[Docker Image](https://hub.docker.com/r/jbtronics/part-db1)**
12+
**[Documentation](https://docs.part-db.de/)** | **[Demo](https://demo.part-db.de/)** | **[Docker Image](https://hub.docker.com/r/jbtronics/part-db1)**
1313

1414
# Part-DB
1515

@@ -24,8 +24,8 @@ for everybody.
2424

2525
## Demo
2626

27-
If you want to test Part-DB without installing it, you can use [this](https://part-db.herokuapp.com) Heroku instance.
28-
(Or this link for the [German Version](https://part-db.herokuapp.com/de/)).
27+
If you want to test Part-DB without installing it, you can use [this](https://demo.part-db.de/) Heroku instance.
28+
(Or this link for the [German Version](https://demo.part-db.de/de/)).
2929

3030
You can log in with username: *user* and password: *user*.
3131

@@ -101,24 +101,20 @@ for a detailed guide how to install Part-DB.**
101101
In bigger instances with concurrent accesses, MySQL is more performant. This can not be changed easily later, so
102102
choose wisely.
103103
4. Install composer dependencies and generate autoload files: `composer install -o --no-dev`
104-
5. If you have put Part-DB into a subdirectory on your server (like `part-db/`), you have to edit the file
105-
`webpack.config.js` and uncomment the lines (remove the `//` before the lines) `.setPublicPath('/part-db/build')` (
106-
line 43) and
107-
`.setManifestKeyPrefix('build/')` (line 44). You have to replace `/part-db` with your own path on line 44.
108-
6. Install client side dependencies and build it: `yarn install` and `yarn build`
109-
7. _Optional_ (speeds up first load): Warmup cache: `php bin/console cache:warmup`
110-
8. Upgrade database to new scheme (or create it, when it was empty): `php bin/console doctrine:migrations:migrate` and
104+
5. Install client side dependencies and build it: `yarn install` and `yarn build`
105+
6. _Optional_ (speeds up first load): Warmup cache: `php bin/console cache:warmup`
106+
7. Upgrade database to new scheme (or create it, when it was empty): `php bin/console doctrine:migrations:migrate` and
111107
follow the instructions given. During the process the password for the admin is user is shown. Copy it. **Caution**:
112108
This steps tamper with your database and could potentially destroy it. So make sure to make a backup of your
113109
database.
114-
9. You can configure Part-DB via `config/parameters.yaml`. You should check if settings match your expectations, after
110+
8. You can configure Part-DB via `config/parameters.yaml`. You should check if settings match your expectations, after
115111
you installed/upgraded Part-DB. Check if `partdb.default_currency` matches your mainly used currency (this can not be
116112
changed after creating price information).
117113
Run `php bin/console cache:clear` when you changed something.
118-
10. Access Part-DB in your browser (under the URL you put it) and login with user *admin*. Password is the one outputted
119-
during DB setup.
120-
If you can not remember the password, set a new one with `php bin/console app:set-password admin`. You can create
121-
new users with the admin user and start using Part-DB.
114+
9. Access Part-DB in your browser (under the URL you put it) and login with user *admin*. Password is the one outputted
115+
during DB setup.
116+
If you can not remember the password, set a new one with `php bin/console app:set-password admin`. You can create
117+
new users with the admin user and start using Part-DB.
122118

123119
When you want to upgrade to a newer version, then just copy the new files into the folder
124120
and repeat the steps 4. to 7.

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8.1
1+
1.9.0-dev

assets/ckeditor/plugins/PartDBLabel/PartDBLabelUI.js

+3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ const PLACEHOLDERS = [
8585
['[[COMMENT_T]]', 'Comment (plain text)'],
8686
['[[LAST_MODIFIED]]', 'Last modified datetime'],
8787
['[[CREATION_DATE]]', 'Creation datetime'],
88+
['[[IPN_BARCODE_QR]]', 'IPN as QR code'],
89+
['[[IPN_BARCODE_C128]]', 'IPN as Code 128 barcode'],
90+
['[[IPN_BARCODE_C39]]', 'IPN as Code 39 barcode'],
8891
]
8992
},
9093
{

assets/ckeditor/plugins/PartDBLabel/lang/de.js

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ Object.assign( window.CKEDITOR_TRANSLATIONS[ 'de' ].dictionary, {
4848
'Comment (plain text)': 'Kommentar (Nur-Text)',
4949
'Last modified datetime': 'Zuletzt geändert',
5050
'Creation datetime': 'Erstellt',
51+
'IPN as QR code': 'IPN als QR Code',
52+
'IPN as Code 128 barcode': 'IPN als Code 128 Barcode',
53+
'IPN as Code 39 barcode': 'IPN als Code 39 Barcode',
5154

5255
'Lot ID': 'Lot ID',
5356
'Lot name': 'Lot Name',

bin/console

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
use App\Kernel;
55
use Symfony\Bundle\FrameworkBundle\Console\Application;
66

7+
//Increase xdebug.max_nesting_level to 1000 if required (see issue #411)
8+
//Check if xdebug extension is active, and xdebug.max_nesting_level is set to 256 or lower
9+
if (extension_loaded('xdebug') && ((int) ini_get('xdebug.max_nesting_level')) <= 256) {
10+
//Increase xdebug.max_nesting_level to 1000
11+
ini_set('xdebug.max_nesting_level', '1000');
12+
}
13+
714
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
815
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
916
}

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"symfony/runtime": "6.3.*",
7171
"symfony/security-bundle": "6.3.*",
7272
"symfony/serializer": "6.3.*",
73+
"symfony/string": "6.3.*",
7374
"symfony/translation": "6.3.*",
7475
"symfony/twig-bundle": "6.3.*",
7576
"symfony/ux-translator": "^2.10",

0 commit comments

Comments
 (0)